/* The product page, #646 "Mix": A's flap hero (dark), B's pass and screens (Bone), C's lit board (dark).
   Tokens are the app's LAST CALL palette (documentation/design-system/tokens.json). Fonts are
   self-hosted, SIL OFL 1.1 (licences beside them in fonts/). */
@font-face { font-family: "B612"; font-weight: 400; font-display: swap; src: url("fonts/B612-Regular.ttf") format("truetype"); }
@font-face { font-family: "B612"; font-weight: 700; font-display: swap; src: url("fonts/B612-Bold.ttf") format("truetype"); }
@font-face { font-family: "B612 Mono"; font-weight: 700; font-display: swap; src: url("fonts/B612Mono-Bold.ttf") format("truetype"); }
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("fonts/Oswald-Medium.ttf") format("truetype"); }
@font-face { font-family: "Oswald"; font-weight: 600; font-display: swap; src: url("fonts/Oswald-SemiBold.ttf") format("truetype"); }

:root {
  color-scheme: dark;
  --house: #000000; --flap: #1C1A18; --flap-hi: #242220;
  --bone: #EDE7DC; --bone-2: #E2DACB; --ink: #1C1A18; --ink-2: #5E574C; --edge: #8C8376;
  --amber: #FFB454; --penumbra: #9A948A; --rim: #857E72;
  --f-sign: "Oswald", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --f-body: "B612", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-flap: "B612 Mono", "Courier New", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* .key and .wl set display, which would beat the attribute */
body { margin: 0; background: var(--house); color: var(--bone); font: 15px/1.5 var(--f-body); }
h1, h2, h3 { font-family: var(--f-sign); font-weight: 600; text-transform: uppercase; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--amber); }
img { max-width: 100%; }

/* Flap cells: the board's split-flap letters, settling in one after another. */
.flaps { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; perspective: 600px; margin: 0; text-decoration: none; }
.cell { --s: 1; display: inline-flex; align-items: center; justify-content: center; width: calc(1.9rem * var(--s)); height: calc(2.5rem * var(--s)); border-radius: 3px; background: linear-gradient(var(--flap-hi), var(--flap)); box-shadow: inset 0 1px 0 var(--rim); font: 700 calc(1.3rem * var(--s))/1 var(--f-flap); color: var(--bone); position: relative; animation: settle .45s calc(var(--i, 0) * 60ms) cubic-bezier(.2,.7,.3,1.1) backwards; }
.cell::after { content: ""; position: absolute; inset: 52% 0 auto; height: 1.5px; background: var(--house); box-shadow: 0 1.5px 2px rgba(0,0,0,.75); }
.cell.lit { background: var(--amber); color: var(--ink); }
@keyframes settle { 0% { transform: rotateX(-88deg); filter: brightness(.45); } 70% { transform: rotateX(9deg); } 100% { transform: none; filter: none; } }
.sign { font: 500 .9rem/1 var(--f-sign); text-transform: uppercase; letter-spacing: .28em; color: var(--amber); }

/* A key never crops its label: it wraps, and goes full width on phones (DESIGN_SYSTEM § Keys and buttons). */
.key { display: flex; align-items: center; justify-content: center; text-align: center; white-space: normal; width: 100%; padding: 14px 22px; min-height: 52px; border-radius: 4px; background: var(--amber); color: var(--ink); font: 600 1rem/1.2 var(--f-sign); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); border: 0; cursor: pointer; }
.key:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.key:disabled { opacity: .6; cursor: progress; }

/* A: the hero. */
.hero { padding: 40px 16px 34px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.hero h2 { font-size: 1.9rem; letter-spacing: .06em; }
.hero .sub { max-width: 46ch; color: var(--penumbra); }
.platforms { font-size: .8rem; color: var(--penumbra); }

/* B: the pass, the stubs and the screens, on Bone. */
.pb { background: var(--bone); color: var(--ink); }
.pb .muted { color: var(--ink-2); max-width: 52ch; }
.pb-hero { display: grid; gap: 26px; padding: 34px 16px 16px; }
.pb-left { display: grid; gap: 14px; min-width: 0; }
.pb-left h2 { font-size: 1.7rem; letter-spacing: .05em; }
.pass { margin-top: 8px; background: var(--bone-2); border: 1px solid var(--edge); border-radius: 8px; padding: 18px 18px 20px; max-width: 520px; width: 100%; }
.pass-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font: 600 .8rem/1.2 var(--f-sign); letter-spacing: .2em; text-transform: uppercase; padding-bottom: 12px; }
.pass-h span:last-child { color: var(--ink-2); font-weight: 500; }
.pass dl { margin: 0; }
.prow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; border-top: 1px solid var(--edge); }
.prow dt { font: 500 .72rem/1.2 var(--f-sign); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); flex: none; }
.prow dd { margin: 0; font: 700 1rem/1.25 var(--f-flap); text-align: right; min-width: 0; overflow-wrap: anywhere; }
/* The GATE pass's semicircle notches, cut in the page's colour. */
.notch { position: relative; margin: 6px -18px 16px; height: 22px; display: flex; align-items: center; padding-inline: 18px; }
.notch::before, .notch::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--bone); }
.notch::before { left: -11px; } .notch::after { right: -11px; }
.perf { flex: 1; border: 0; border-top: 2px dashed var(--rim); margin: 0; opacity: .7; }
.pb .key { background: linear-gradient(#7A4716, #4F2E0C); color: var(--bone); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
/* #691: the Android waitlist, in the pass's place for the App Store key. */
.wl { display: grid; gap: 10px; }
.wl-title { font: 600 1rem/1.25 var(--f-sign); letter-spacing: .08em; text-transform: uppercase; }
.wl-body, .wl-consent { color: var(--ink-2); }
.wl-consent { font-size: .8rem; }
.wl label { margin-top: 4px; font: 500 .72rem/1.2 var(--f-sign); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.wl input[type="email"] { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--edge); border-radius: 4px; background: var(--bone); color: var(--ink); font: 1rem/1.2 var(--f-body); }
.wl input[type="email"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.wl-status { margin: 0; font-weight: 700; }
.wl-status:not(:empty) { margin-top: 12px; }
.wl-status:focus { outline: none; }
.shot { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid #2a2724; background: var(--flap); }
.shot.light { border-color: #CFC6B6; background: var(--bone-2); }
.pb-shot { display: none; }
.stubs { display: grid; gap: 12px; padding: 10px 16px; }
.stub { background: var(--bone-2); border: 1px solid var(--edge); border-radius: 8px; padding: 16px; display: grid; gap: 6px; }
.stub b { font: 600 .9rem/1.2 var(--f-sign); letter-spacing: .14em; text-transform: uppercase; }
.stub span { font-size: .88rem; color: #4A443B; }
.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 30px 16px 40px; }
.strip figure { margin: 0; display: grid; gap: 8px; align-content: start; }
.strip figcaption { font-size: .78rem; color: var(--ink-2); }
.strip .wide { grid-column: 1 / -1; }
.strip .duo-pair { gap: 10px; }

/* C: the lit board above the last key, drawn to the 01_board App Store capture. */
.final { display: grid; justify-items: center; text-align: center; gap: 20px; padding: 44px 16px 40px; }
.final h2 { font-size: 1rem; letter-spacing: .12em; }
.final .key { max-width: 22rem; }
.game { width: 100%; max-width: 420px; container-type: inline-size; display: grid; gap: 7cqi; }
.game-top { position: relative; display: flex; justify-content: center; min-height: 11cqi; }
.game-clock { position: absolute; left: 0; top: 0; display: flex; gap: 1cqi; }
.game-clock span, .game-word span { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 10cqi; padding: 0 1.6cqi; border-radius: 2px; background: linear-gradient(#2B2826 0 52%, #1E1B19 52%); box-shadow: 0 1px 2px rgba(0,0,0,.7); font: 700 6.4cqi/1 var(--f-flap); color: var(--bone); }
.game-clock span:last-child::before { content: ""; position: absolute; top: 1cqi; right: 1cqi; width: 1.2cqi; height: 1.2cqi; background: var(--amber); }
.game-word { display: flex; gap: .4cqi; align-self: center; margin-top: 15cqi; }
.game-word span { width: 6.6cqi; height: 8.6cqi; padding: 0; font-size: 5.6cqi; }
.game-clock span::after, .game-word span::after, .gtile::after { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 1px; background: #0B0A09; }
.tray { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3.6cqi; padding: 1.9cqi; background: #15120F; border-radius: 3px; }
.gtile { position: relative; aspect-ratio: 1 / .975; border-radius: 2px; background: linear-gradient(#2B2826 0 52%, #1E1B19 52%); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 3px rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; font: 700 12.5cqi/1 var(--f-flap); color: var(--bone); animation: settle .45s calc(var(--i, 0) * 40ms) cubic-bezier(.2,.7,.3,1.1) backwards; }
.gtile::after { height: 2px; margin-top: -1px; }
.gtile.lit { background: linear-gradient(#FFB454 0 52%, #F7AC4C 52%); color: var(--ink); }
.gtile.lit::after { background: #C9863A; }
.trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.trace polyline { fill: none; stroke-linejoin: round; stroke-linecap: round; }

.mfoot { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: .78rem; color: var(--penumbra); padding: 26px 16px 30px; border-top: 1px solid #2a2724; }
.mfoot a { color: var(--penumbra); }

/* The privacy policy: the same house, one column of text. */
.bar { padding: 20px 16px; border-bottom: 1px solid #2a2724; }
.bar .cell { --s: .7; animation: none; }
.prose { max-width: 70ch; margin: 0 auto; padding: 32px 16px 48px; }
.prose h1 { font-size: 1.6rem; letter-spacing: .06em; margin: 28px 0 12px; }
.prose h2 { font-size: 1.05rem; letter-spacing: .12em; color: var(--amber); margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 12px; color: var(--bone); }

@media (min-width: 760px) {
  .hero { padding: 64px 40px 44px; }
  .hero h2 { font-size: 2.6rem; }
  .hero .cell { --s: 1.35; }
  .pb-hero { grid-template-columns: minmax(0, 560px) minmax(0, 330px); justify-content: space-between; align-items: center; gap: 48px; padding: 56px 48px 24px; max-width: 1120px; margin: 0 auto; }
  .pb-left h2 { font-size: 2.4rem; max-width: 18ch; }
  .pb-shot { display: block; }
  .stubs { grid-template-columns: repeat(3, 1fr); padding-inline: 48px; max-width: 1120px; margin: 0 auto; }
  .strip { grid-template-columns: repeat(4, 1fr); padding-inline: 48px; max-width: 1120px; margin: 0 auto; }
  .strip .duo-pair { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { .cell, .gtile { animation: none; } }
