/* STRYDE slot machine code input · stage 1 — the drop page and ONE real input. The page's tokens, its words and its
   layout, the shoe box (taped shut), and the code field: for now a plain, visible text field (section 3). Stage 2
   draws the slot machine and hides the field over its reels.

   1 tokens: primitive → semantic → component      2 the page: header, words, layout
   3 the field (stage 2 replaces it with the cabinet)
   8 under the field: hint      10 the box */

/* ---- 1. TOKENS ---- */
:root {
  /* primitive: a cream print room, safety orange, deep navy, polished chrome, warm bulbs */
  --cream-50: #FBF6EC; --cream-100: #F0E9D9; --cream-200: #E4D9C3; --cream-300: #D3C4A6;
  --ink-900: #1E2228; --ink-700: #3A3F47; --ink-500: #6B6E73;
  --orange-300: #FF9A4A; --orange-500: #F2721F; --orange-600: #E2621A; --orange-700: #C24E10;
  --navy-950: #121A2C; --navy-900: #1A2238; --navy-800: #22304F; --navy-700: #2E3A5C;
  --chrome-0: #F7F7F5; --chrome-1: #DCDBD7; --chrome-2: #BDBCB7; --chrome-3: #93928D; --chrome-4: #6F6E6A;
  --bulb-core: #FFF6DC; --bulb-warm: #FFD27A; --bulb-glow: 255 196 96;
  --red-500: #FF3B30; --red-600: #E0241B; --red-glow: 255 48 36;
  --cardboard-1: #D6A873; --cardboard-2: #C08F59; --cardboard-3: #A67542;

  --display: 'Anton', 'Archivo', Impact, sans-serif;
  --sign: 'Archivo', 'Arial Black', sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* semantic */
  --page: var(--cream-100); --on-page: var(--ink-900); --on-page-muted: var(--ink-500);
  --accent: var(--orange-500); --on-accent: #fff;
  --focus: var(--orange-500);
  --danger: var(--red-500);

  /* component: chrome is one recipe used everywhere on the cabinet */
  --chrome-v: linear-gradient(180deg, var(--chrome-0) 0%, var(--chrome-1) 16%, var(--chrome-3) 46%, var(--chrome-2) 60%, var(--chrome-0) 84%, var(--chrome-3) 100%);
  --chrome-h: linear-gradient(90deg, var(--chrome-4) 0%, var(--chrome-0) 20%, var(--chrome-2) 48%, var(--chrome-0) 76%, var(--chrome-4) 100%);
  --cab-drop: 0 2.2em 3.4em -1.4em rgb(60 40 20 / .45), 0 .8em 1.2em -.6em rgb(60 40 20 / .35);
}

/* ---- 2. THE PAGE ---- */
* { box-sizing: border-box; }
html { background: var(--page); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; font-family: var(--sans); color: var(--on-page); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden;
  background: radial-gradient(70vmax 50vmax at 72% 30%, rgb(255 250 238 / .9), transparent 70%), var(--page); }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.site { display: flex; align-items: center; gap: 24px; height: 64px; max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 3.5vw, 40px); }
.logo { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-size: 28px; letter-spacing: .01em; text-decoration: none; line-height: 1; }
.links { display: none; margin: 0 auto; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.links a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.links { align-items: center; } .links a:hover { color: var(--accent); }
.cta { margin-left: auto; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 10px; border: 2px solid var(--on-page);
  font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.cta:hover { background: var(--on-page); color: var(--page); }
@media (min-width: 900px) { .links { display: flex; } .cta { margin-left: 0; } }

/* stacked by default (phones, portrait tablets): the words, the machine, the box */
.drop { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 760px; margin: 0 auto; padding: 4px clamp(16px, 4vw, 32px) 56px; grid-template-areas: "copy" "otp" "box"; }
.copy { grid-area: copy; }
.otp { grid-area: otp; }
.box { grid-area: box; }
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .9; letter-spacing: -.005em; font-size: clamp(48px, 14.5vw, 104px); }
.closes { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.closes b { font-variant-numeric: tabular-nums; }
.lede { margin: 10px 0 0; max-width: 34em; font-size: 15px; line-height: 1.45; color: var(--ink-700); }

/* side by side: laptops, desktops, landscape tablets and phones — the words and the box left, the machine right */
@media (min-width: 1000px), (orientation: landscape) and (min-width: 640px) {
  .drop { max-width: 1320px; grid-template-columns: minmax(0, 33fr) minmax(0, 67fr); grid-template-areas: "copy otp" "box otp"; grid-template-rows: auto 1fr;
    column-gap: clamp(24px, 3.5vw, 56px); row-gap: 20px; align-items: start; padding-top: clamp(4px, 2vh, 28px); }
  h1 { font-size: clamp(56px, min(6.9vw, 13vh), 124px); }
  .box { max-width: min(100%, 340px); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .site { height: 52px; }
  .drop { padding-top: 0; row-gap: 12px; }
  h1 { font-size: clamp(40px, 13vh, 64px); }
  .eyebrow { font-size: 11px; } .lede { font-size: 13px; }
}

/* a short phone: fewer words above the machine, so all of it fits the first screen */
@media (orientation: portrait) and (max-height: 660px) {
  .site { height: 54px; }
  .eyebrow { display: none; }
  h1 { font-size: 44px; }
  .closes { margin-top: 8px; padding: 5px 10px; font-size: 11.5px; }
  .lede { font-size: 13.5px; margin-top: 6px; }
  .drop { gap: 12px; }
}

/* ---- 3. THE FIELD ---- */
/* the real input, plain and visible for now; stage 2 lays it invisibly over the reels */
.otp { position: relative; width: 100%; max-width: 560px; justify-self: center; }
.reels { position: relative; height: 96px; }
.code { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0 0 0 .7em; border: 2px solid var(--on-page); border-radius: 16px;
  background: var(--cream-50); color: var(--navy-900); font: 800 44px/1 var(--sans); letter-spacing: .7em; font-variant-numeric: tabular-nums; }

/* ---- 8. UNDER THE FIELD: hint ---- */
.under { contain: layout style; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; margin-top: 12px; font-size: 14px; }
.hint { margin: 0; font-size: 13px; color: var(--on-page-muted); }

/* ---- 10. THE BOX ---- */
.box { margin: 0; justify-self: start; width: 100%; }
.box-in { position: relative; aspect-ratio: 584 / 700; border-radius: 18px; overflow: hidden; background: var(--cream-200); perspective: 1400px;
  box-shadow: 0 24px 40px -24px rgb(60 40 20 / .5); }
.box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); }
.lid { position: absolute; inset: 0; transform-origin: 50% 0; container-type: inline-size;
  background:
    repeating-linear-gradient(97deg, rgb(255 255 255 / .035) 0 2px, transparent 2px 7px),
    radial-gradient(120% 90% at 28% 18%, var(--cardboard-1), var(--cardboard-2) 62%, var(--cardboard-3));
  box-shadow: inset 0 0 0 12px rgb(120 78 38 / .22), inset 0 0 50px rgb(80 50 20 / .35); }
.lid > * { position: absolute; }
.lid-stamp { left: 9%; top: 9%; font: 400 21cqw/1 var(--display); color: rgb(42 34 30 / .78); transform: rotate(-7deg); letter-spacing: .01em; }
.lid-label { right: 8%; bottom: 8%; width: 36%; padding: 3% 4%; background: #FAF7F0; border-radius: 3px; box-shadow: 0 2px 4px rgb(0 0 0 / .2); transform: rotate(2deg); display: grid; gap: 6px; }
.lid-label i { height: 9cqw; background: repeating-linear-gradient(90deg, #222 0 2px, transparent 2px 4px, #222 4px 5px, transparent 5px 8px, #222 8px 11px, transparent 11px 12px); }
.lid-label small { font-size: max(8px, 2.6cqw); font-weight: 700; letter-spacing: .06em; color: #333; }
.tape { top: 44%; height: 13%; width: 50%; overflow: hidden; display: flex; align-items: center; background: linear-gradient(180deg, #F88B3E, var(--orange-500) 50%, var(--orange-600));
  box-shadow: 0 2px 6px rgb(0 0 0 / .25); }
.tape.l { left: 0; } .tape.r { right: 0; }
.tape b { white-space: nowrap; font: 400 4.6cqw/1 var(--display); letter-spacing: .08em; color: var(--navy-900); }
.tape.r b { transform: translateX(-50cqw); }
.lid-lock { left: 50%; top: 66%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  background: rgb(26 34 56 / .9); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lid-lock svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.box figcaption { display: grid; gap: 2px; margin-top: 10px; font-size: 13.5px; color: var(--ink-700); }
.box figcaption b { font-size: 15px; color: var(--on-page); }
