/* tasteskill / base.css
   A neutral foundation: reset, token names, fluid type steps, a 12-column grid, states and the motion
   helpers from references/motion.md. It has no look of its own. Copy it into the project, replace the
   token values with the ones on the direction sheet, and build on top. Delete what you do not use. */

/* ---------- tokens (replace with the dealt palette and type system) ---------- */
:root {
  --bg: #ffffff;
  --surface: #f2f2f2;
  --ink: #111111;
  --muted: #5c5c5c;
  --accent: #111111;
  --accent-ink: #ffffff;

  --font-display: system-ui, sans-serif;
  --font-text: system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3rem, 1rem + 9vw, 9rem); /* set from the hero blueprint */

  --margin: clamp(1rem, 2.2vw, 2rem);    /* page side margin: tight, so content reaches the edges */
  --gutter: clamp(1rem, 2vw, 2rem);      /* column gap */
  --section: clamp(5rem, 12vw, 13rem);   /* space between sections */
  --radius: 0px;                          /* one radius for the whole page: 0, or large, decided once */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);        /* entrances, moving hovers, UI under 600ms */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);        /* reveals of 800ms and longer, line rises, openings */
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);     /* wipes, panels, things that travel while visible */
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);       /* slow scale and drift on photographs */
  --ease-exit: cubic-bezier(0.55, 0.055, 0.675, 0.19); /* something leaving for good, short */
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  --t-open: 1200ms;                                  /* picture openings and clip wipes */
  --stagger-line: 90ms;
  --stagger-item: 70ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 6rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: inherit; text-wrap: balance; hyphens: none; }
.display { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.035em; }
.head { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.025em; }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.nums { font-variant-numeric: tabular-nums; }
.only-wide { display: none; }
@media (min-width: 48em) { .only-wide { display: inline; } }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: calc(var(--section) / 2); }
.section + .section { margin-top: 0; }
.bleed { margin-inline: calc(var(--margin) * -1); }
.cover { width: 100%; height: 100%; object-fit: cover; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
}
.field { width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; background: var(--surface); border: 0; border-radius: var(--radius); font-size: max(1rem, var(--step-body)); }

/* ---------- motion helpers (content stays visible without JavaScript) ---------- */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
.shutter { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: ad-rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js .lines [data-line] { transform: translateY(105%); animation: ad-line 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter[data-reveal] img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
}
@keyframes ad-rise { to { opacity: 1; transform: none; } }
@keyframes ad-line { to { transform: none; } }


/* Mobile first: the base rules are the phone page (390px). Wider screens add to it with min-width. */
.js .lines [data-line] { animation-duration: 760ms !important; animation-delay: calc(var(--i, 0) * 100ms + 60ms) !important; }
:root {
  --bg: #dedad3;
  --surface: #d3cec6;
  --surface-2: #c7c1b8;
  --ink: #0a0a0a;
  --muted: #45413c;
  --accent: #256f82;
  --accent-ink: #ffffff;
  --font-display: "Red Hat Display", system-ui, sans-serif;
  --font-text: "Red Hat Text", system-ui, sans-serif;
  --step-small: 0.875rem;
  --step-body: 1.125rem;
  --step-lead: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  --step-head: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem);
  --step-big: clamp(2.4rem, 1rem + 4.4vw, 5rem);
  --margin: clamp(1rem, 2.2vw, 2rem);
  --section: clamp(6rem, 13vw, 13rem);
  --radius: 0px;
  --card-r: 600 / 825;
  --tap: 3rem;
}
body { overflow-x: clip; }
img.card { background: transparent; aspect-ratio: var(--card-r); width: 100%; height: auto; object-fit: contain; }
.button { min-height: 3.25rem; font-size: 1.125rem; font-weight: 500; padding: 0 1.6rem; }
@media (hover: hover) { .button:hover { background: var(--ink); color: var(--bg); } a.link-plain:hover { color: var(--accent); } }
.mono-type { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.045em; line-height: 0.85; }
h2, h3 { font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.head { font-size: var(--step-head); line-height: 1.05; }
.big { font-size: var(--step-big); line-height: 0.98; letter-spacing: -0.035em; }

/* ---------- hero (phone): RIP, the pack, SCORE, then the one action ---------- */
.hero {
  --rip: 40vw; --score: 27vw; --cw: 33vw; --sw: 27vw; --side-drop: 5vw;
  --fanh: calc(var(--cw) * 1.375 + 10px + 5.8rem);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto auto auto; padding: 0 var(--margin) 2.5rem; overflow: clip;
}
.nav { grid-row: 1; grid-column: 1; display: flex; justify-content: flex-end; align-items: center; gap: 1.5rem; min-height: 3.5rem; font-size: 1rem; font-weight: 500; position: relative; z-index: 3; }
.nav a { text-decoration: none; padding-block: 0.75rem; }
.nav .scan { display: none; }
.hero h1 { grid-row: 2 / 5; grid-column: 1; display: grid; grid-template-rows: subgrid; }
.hero .l1 { grid-row: 1; justify-self: start; font-size: var(--rip); margin-left: -0.05em; }
.hero .l2 { grid-row: 3; justify-self: end; font-size: var(--score); margin-right: -0.02em; }
.fan { grid-row: 3; grid-column: 1; position: relative; height: var(--fanh); margin-block: 0.9rem 1rem; z-index: 1; }
.fan figure { position: absolute; top: var(--side-drop); width: var(--sw); }
.fan figure:nth-child(1), .fan figure:nth-child(4) { display: none; }
.fan figure:nth-child(2) { left: max(0px, calc(50% - var(--cw) / 2 - var(--sw) - 2vw)); transform: rotate(-5deg); }
.fan figure:nth-child(3) { top: 0; left: calc(50% - var(--cw) / 2); width: var(--cw); z-index: 2; }
.fan figure:nth-child(5) { left: min(calc(100% - var(--sw)), calc(50% + var(--cw) / 2 + 2vw)); transform: rotate(5deg); }
/* the price sits under the card, never on its art */
.tag { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; z-index: 3; background: var(--ink); color: var(--bg); padding: 0.55rem 0.85rem; white-space: nowrap; font-family: var(--font-text); }
.tag b { display: block; font-family: var(--font-display); font-weight: 900; font-size: var(--step-head); letter-spacing: -0.02em; line-height: 1; }
.tag span { font-size: var(--step-small); }
.hero-mid { grid-row: 5; grid-column: 1; position: relative; z-index: 2; margin-top: 1.5rem; }
.hero-mid p { font-size: 1.125rem; max-width: 34ch; }
.hero-mid .button { margin-top: 1.25rem; width: 100%; }
.hero-mid .after { margin-top: 0.75rem; font-size: var(--step-small); color: var(--muted); }
.hero-note { grid-row: 6; grid-column: 1; display: flex; align-items: center; gap: 0.9rem; margin-top: 2rem; padding: 0.9rem 1rem; background: var(--surface); font-size: 1rem; position: relative; z-index: 2; }
.hero-note img { width: 56px; height: auto; background: transparent; flex: none; }

/* ---------- how it works ---------- */
.how { padding-block: var(--section) 0; }
.col { width: 100%; padding-inline: var(--margin); }
.col h2 { margin-bottom: 2.5rem; }
.stage + .stage { margin-top: 3.5rem; }
.stage p { line-height: 1.6; color: var(--muted); }
.stage p strong { color: var(--ink); font-weight: 500; }
.ev { margin-top: 1.25rem; }

/* interface fragments (the app's own look: dark screen, its own borders) */
[data-ui] { font-family: var(--font-text); }
.scr { background: #06070c; color: #f2f2f0; padding: 1.25rem; }
.scr .row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.scr .dim { color: #b5b1aa; font-size: 0.875rem; }
.scr .fig { font-family: var(--font-display); font-weight: 900; font-size: var(--step-head); letter-spacing: -0.02em; line-height: 1; }
.perm { display: grid; gap: 0.9rem; }
.perm .q { font-size: 1rem; }
.perm .btns { display: flex; justify-content: flex-end; gap: 1.5rem; font-weight: 500; }
.perm .btns span:last-child { color: #5ad1ff; }
.finder { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.25rem; align-items: center; }
.finder .frame { position: relative; padding: 0.6rem; border: 2px solid #5ad1ff; }
.finder .lock { display: inline-block; margin-top: 0.5rem; padding: 0.15rem 0.5rem; background: #5ad1ff; color: #06070c; font-weight: 500; font-size: 0.875rem; }
.sheet .fig { margin-top: 0.4rem; }
.sheet .vars { margin-top: 1rem; display: grid; gap: 0.35rem; }
.sheet .vars div { display: flex; justify-content: space-between; background: #121626; padding: 0.4rem 0.6rem; }

/* ---------- showcase: rip a pack (phone order: say it, pick, see, act) ---------- */
.show { margin-top: var(--section); background: var(--surface); display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: 3rem var(--margin); }
.show h2 { font-size: var(--step-head); }
.show .desc { margin-top: 1rem; max-width: 34ch; }
.tabs { display: flex; gap: 4px; }
.tabs button { flex: 1 1 auto; min-height: var(--tap); padding: 0 0.75rem; background: var(--surface-2); color: var(--ink); font-size: 1rem; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.tabs button:active { transform: scale(0.97); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); font-weight: 500; }
.plate { background: #06070c; color: #f2f2f0; padding: 0.9rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 0.6rem; align-items: start; }
.plate figure { position: relative; }
.plate figcaption { margin-top: 0.4rem; font-size: 0.875rem; line-height: 1.3; display: grid; color: #cfcac2; }
.plate figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate figcaption b { color: #f2f2f0; font-weight: 500; }
.plate .total { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
.plate .total .fig { font-family: var(--font-display); font-weight: 900; font-size: var(--step-head); letter-spacing: -0.03em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.plate .total p { font-size: 0.875rem; line-height: 1.3; color: #cfcac2; margin-top: 0.4rem; }
.plate .hit img { outline: 3px solid #5ad1ff; outline-offset: 2px; border-radius: 4.5%; }
.cells { display: grid; grid-template-columns: 1fr 1fr; }
.cells > * { min-height: 3.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; font-weight: 500; text-decoration: none; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.cells > *:active { transform: scale(0.98); }
.cells .rip { background: var(--ink); color: var(--bg); }
.cells .go { background: var(--surface-2); color: var(--ink); }
@media (hover: hover) {
  .tabs button:hover:not([aria-pressed="true"]) { background: var(--bg); }
  .cells .rip:hover { background: var(--accent); color: var(--accent-ink); }
  .cells .go:hover { background: var(--ink); color: var(--bg); }
}
.show .fine { font-size: var(--step-small); color: var(--muted); max-width: 40ch; }
@media (prefers-reduced-motion: no-preference) {
  .plate.dealing figure { animation: deal 520ms var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); }
}
@keyframes deal { from { opacity: 0; transform: translateY(28px) rotate(-3deg); } to { opacity: 1; transform: none; } }

/* ---------- features ---------- */
.feat { padding-block: var(--section) 0; padding-inline: var(--margin); }
.feat h2 { margin-bottom: 2.5rem; }
.mod { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.mod + .mod { margin-top: 4rem; }
.panel { background: var(--surface); padding: 1rem; overflow: hidden; }
.panel.scr { background: #06070c; }
.mod h3 { font-family: var(--font-text); font-weight: 500; font-size: var(--step-body); letter-spacing: 0; line-height: 1.3; }
.mod p { font-size: 1rem; color: var(--muted); margin-top: 0.6rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pair figcaption { font-size: 0.875rem; margin-top: 0.35rem; }
.guess { display: grid; gap: 0.5rem; }
.guess .g { display: grid; grid-template-columns: 2.6rem 1fr auto; gap: 0.75rem; align-items: center; padding: 0.4rem 0.5rem; background: #121626; }
.guess .g.on { background: #5ad1ff; color: #06070c; }
.guess .g.on em { color: #1f3a42; }
.guess .g span { font-size: 0.875rem; }
.guess .g em { font-style: normal; color: #b5b1aa; display: block; font-size: 0.875rem; }
.receipt .line { display: flex; justify-content: space-between; font-size: 0.875rem; padding-block: 0.2rem; font-variant-numeric: tabular-nums; }
.receipt .sum { margin: 0.8rem -1.25rem -1.25rem; padding: 0.8rem 1.25rem; background: #121626; display: flex; justify-content: space-between; align-items: end; }
.prog { display: grid; gap: 0.7rem; }
.prog .bar { height: 8px; background: #262d45; margin-top: 0.3rem; }
.prog .bar i { display: block; height: 100%; background: #5ad1ff; }

/* ---------- list: what now ---------- */
.now { padding: var(--section) var(--margin) 0; }
.now h2 { font-size: 10vw; }
.now-grid { margin-top: 2.5rem; }
.now-pic { width: 60%; margin: 0 0 2.5rem auto; background: var(--surface); padding: 1rem; }
.now-pic figcaption { font-size: var(--step-small); margin-top: 0.75rem; }
.now-name { display: none; }
.now table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.now table, .now tbody, .now tr { display: block; }
.now tr { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding-bottom: 22px; }
.now td { display: block; padding: 0; vertical-align: top; }
.now td:first-child { grid-column: 1; grid-row: 1; color: var(--muted); }
.now td:nth-child(2) { grid-column: 1 / span 2; grid-row: 2; }
.now td:last-child { grid-column: 2; grid-row: 1; text-align: right; }
.now tr.gap { padding-top: 18px; }
.now .note { margin-top: 1rem; font-size: var(--step-small); color: var(--muted); }

/* ---------- pricing ---------- */
.pro { padding: var(--section) var(--margin) 0; }
.pro-grid { margin-top: 2rem; }
.plans { display: flex; flex-direction: column; align-items: start; }
.plans button { font-family: var(--font-display); font-weight: 900; font-size: 10vw; letter-spacing: -0.035em; line-height: 1.1; min-height: var(--tap); color: var(--muted); display: flex; align-items: center; gap: 0.3em; transition: color var(--t-hover) ease; }
.plans button::before { content: ""; width: 0.3em; height: 0.3em; border-radius: 50%; background: currentColor; opacity: 0; }
.plans button[aria-pressed="true"] { color: var(--ink); }
.plans button[aria-pressed="true"]::before { opacity: 1; }
@media (hover: hover) { .plans button:hover { color: var(--ink); } }
.stage-p { margin-top: 2rem; }
.stage-p .price { font-family: var(--font-display); font-weight: 900; font-size: 20vw; letter-spacing: -0.04em; line-height: 0.9; display: flex; align-items: baseline; gap: 0.75rem; font-variant-numeric: tabular-nums; }
.stage-p .price small { font-family: var(--font-text); font-weight: 400; font-size: 1.125rem; letter-spacing: 0; }
.stage-p .what { margin-top: 1.5rem; font-size: 1.125rem; max-width: 38ch; }
.stage-p .button { margin-top: 2rem; width: 100%; }
.stage-p .swap { transition: opacity 200ms ease; }
.stage-p.fading .swap { opacity: 0; }
.pro-notes { margin-top: 2.5rem; }
.pro-notes p { font-size: 1rem; }
.pro-notes p + p { margin-top: 1rem; color: var(--muted); }

/* ---------- faq ---------- */
.faq { padding: var(--section) var(--margin) 0; overflow-x: clip; }
.faq h2 { font-size: 10vw; }
.qs { margin-top: 2.5rem; }
.qs > div { display: grid; gap: 8px; }
.qs details { padding: 0.25rem var(--margin); margin-inline: calc(var(--margin) * -1); transition: background-color var(--t-ui) ease; }
.qs details[open] { background: var(--surface); padding-block: 1rem 1.25rem; }
.qs summary { list-style: none; cursor: pointer; min-height: var(--tap); font-size: 1.125rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ""; width: 0.55em; height: 0.55em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-25%); transition: transform var(--t-ui) var(--ease-out); flex: none; }
.qs details[open] summary::after { transform: rotate(-135deg); }
@media (hover: hover) { .qs summary:hover { color: var(--accent); } }
.qs details p { margin-top: 0.75rem; max-width: 48ch; font-size: 1rem; }

/* ---------- cta ---------- */
.cta { display: block; margin-top: var(--section); background: var(--accent); color: var(--accent-ink); min-height: max(46svh, calc(30vw * 0.8 + 8rem)); position: relative; text-decoration: none; padding: var(--margin); overflow: clip; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.cta:active { background: var(--ink); color: var(--bg); }
@media (hover: hover) { .cta:hover { background: var(--ink); color: var(--bg); } }
.cta:focus-visible { background: var(--ink); color: var(--bg); }
.cta p { font-size: 1.125rem; max-width: 22ch; position: relative; z-index: 1; }
.cta svg { position: absolute; top: var(--margin); right: var(--margin); width: 32px; height: 32px; }
.cta .word { position: absolute; left: var(--margin); right: var(--margin); bottom: 24px; font-size: 27vw; line-height: 0.74; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--bg); position: relative; overflow: hidden; padding: 3rem var(--margin) 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.foot-top .inv h2 { font-size: 10vw; }
.foot-top .inv .button { margin-top: 2rem; width: 100%; }
.foot-top ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: 2rem; font-size: 1rem; }
.foot-top a, .legal a { text-decoration: none; display: inline-block; padding-block: 0.6rem; }
@media (hover: hover) {
  .foot-top .inv .button:hover { background: var(--bg); color: var(--ink); }
  .foot-top a:hover, .legal a:hover { color: #5ad1ff; }
}
.foot-spacer { display: none; }
.legal { margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem; font-size: 0.875rem; color: #c9c4bc; padding-bottom: 1.25rem; }
.legal p { max-width: 70ch; }
.legal nav { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.foot .name { font-size: 40vw; white-space: nowrap; line-height: 0.8; margin-left: -0.04em; transform: translateY(26%); margin-top: 1.5rem; }

/* ---------- motion layer ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-mid > * { opacity: 0; animation: ad-rise 700ms var(--ease-out) forwards; animation-delay: 520ms; }
  .js .fan figure img { animation: drift 7s var(--ease-soft) infinite alternate; }
  .js .fan figure:nth-child(2n) img { animation-duration: 8.5s; animation-delay: -2s; }
  .js .fan { opacity: 0; animation: fan-in 1000ms var(--ease-expo) 380ms forwards; }
  .js .hero-note { opacity: 0; animation: ad-rise 700ms var(--ease-out) 700ms forwards; }
  .js .nav { opacity: 0; animation: ad-rise 600ms var(--ease-out) 200ms forwards; }
  [data-reveal] { transition-delay: calc(var(--i, 0) * 80ms) !important; }
}
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes fan-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ================= tablet and up (701px+) ================= */
@media (min-width: 701px) {
  .hero { --rip: 30vw; --score: 22vw; --cw: 24vw; --sw: 20vw; --side-drop: 4vw; }
  .nav .scan { display: inline; }
  .hero-mid .button { width: auto; }
  .hero-note { justify-self: start; max-width: 26rem; }
  .col { width: min(36rem, 100%); margin-left: 22vw; padding-inline: 0; }
  .col h2 { margin-bottom: 3rem; }
  .stage + .stage { margin-top: 4.5rem; }
  .finder { grid-template-columns: 9rem 1fr; }
  .show { padding: var(--margin); }
  .feat-in { margin-left: 12vw; }
  .feat h2 { margin-bottom: 4rem; }
  .mod { grid-template-columns: 22.5rem 15.6rem; gap: 1.25rem; }
  .mod + .mod { margin-top: 6.5rem; }
  .now h2 { font-size: var(--step-big); text-indent: 3vw; }
  .now-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 6rem; align-items: end; }
  .now-pic { grid-column: 1 / span 4; width: 100%; margin: 0; padding: 1.5rem; }
  .now-name { display: block; grid-column: 5; align-self: start; font-size: var(--step-small); padding-top: 0.2rem; }
  .now table { grid-column: 6 / span 7; align-self: start; display: table; }
  .now tbody { display: table-row-group; }
  .now tr { display: table-row; padding: 0; }
  .now td { display: table-cell; padding: 0 0 26px; }
  .now td:first-child { width: 30%; }
  .now td:last-child { padding-left: 1rem; }
  .now tr.gap td { padding-top: 18px; }
  .now .note { grid-column: 6 / span 7; margin-top: 0; }
  .pro-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 3.5rem; }
  .plans { grid-column: 1 / span 6; }
  .plans button { font-size: var(--step-big); }
  .stage-p { grid-column: 8 / span 5; margin-top: 0; }
  .stage-p .price { font-size: clamp(4rem, 9vw, 9rem); }
  .stage-p .button { width: auto; }
  .pro-notes { grid-column: 1 / span 12; margin-top: 5rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .pro-notes p:nth-child(1) { grid-column: 1 / span 5; }
  .pro-notes p:nth-child(2) { grid-column: 8 / span 5; margin-top: 0; }
  .faq h2 { font-size: var(--step-big); }
  .qs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 5rem; }
  .qs > div { grid-column: 5 / span 8; gap: 12px; }
  .qs details { padding: 12px 24px; margin-inline: -24px; }
  .qs details[open] { padding-block: 24px; }
  .qs summary { font-size: var(--step-lead); }
  .qs details p { margin-top: 1rem; font-size: var(--step-body); }
  .cta { min-height: max(60svh, calc(30vw * 0.8 + 9rem)); }
  .cta p { font-size: var(--step-lead); max-width: 30ch; }
  .cta svg { width: 48px; height: 48px; }
  .foot { padding-top: clamp(3rem, 7vw, 7rem); grid-template-rows: auto 1fr auto auto; }
  .foot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .foot-top .inv { grid-column: 1 / span 7; }
  .foot-top .inv h2 { font-size: var(--step-big); }
  .foot-top .inv .button { width: auto; }
  .foot-top ul { grid-column: 10 / span 3; display: grid; gap: 0; align-content: start; margin-top: 0; }
  .foot-spacer { display: block; min-height: 7rem; }
  .legal { margin-top: 0; flex-direction: row; justify-content: space-between; gap: 2rem; }
  .legal nav { justify-content: end; align-content: start; }
  .foot .name { font-size: 30vw; margin-top: -6vw; }
}

/* ================= desktop (901px+): the monument spans the whole first screen ================= */
@media (min-width: 901px) {
  .hero { min-height: 100svh; grid-template-rows: auto 1fr auto; padding: 0 var(--margin); }
  .nav { position: absolute; top: var(--margin); right: var(--margin); min-height: 0; }
  .nav a { padding-block: 0.25rem; }
  .hero h1 { grid-row: 1 / 4; }
  .hero .l1 { font-size: clamp(5.5rem, 19vw, 22rem); margin-top: clamp(1.5rem, 3.2vw, 3.2rem); margin-left: 0; }
  .hero .l2 { font-size: clamp(5.5rem, 19vw, 22rem); margin-bottom: -0.1em; margin-right: 0; }
  .hero-mid { grid-row: 2; align-self: center; max-width: 30rem; margin-top: 0; padding-block: 1.5rem; }
  .hero-mid .button { margin-top: 2rem; }
  .hero-mid .after { margin-top: 0.9rem; }
  .hero-note { grid-row: 2; align-self: end; margin: 0; padding: 0 0 1.2rem; background: none; max-width: 19rem; font-size: var(--step-small); align-items: end; }
  .hero-note img { width: 72px; }
  .fan { grid-row: auto; grid-column: auto; position: absolute; right: calc(var(--margin) + 1vw); top: clamp(4.5rem, 7vw, 7rem); width: 52vw; height: 41vw; margin: 0; }
  .fan figure, .fan figure:nth-child(1), .fan figure:nth-child(4) { display: block; top: 0; width: 17vw; transform-origin: 50% 120%; right: auto; }
  .fan figure:nth-child(1) { left: 0; transform: rotate(-11deg) translateY(4vw); }
  .fan figure:nth-child(2) { left: 9vw; transform: rotate(-5.5deg) translateY(1.2vw); }
  .fan figure:nth-child(3) { left: 17.5vw; width: 17vw; transform: translateY(-0.6vw); }
  .fan figure:nth-child(4) { left: 27vw; transform: rotate(5.5deg) translateY(1.2vw); }
  .fan figure:nth-child(5) { left: 35vw; transform: rotate(11deg) translateY(4vw); }
  .tag { top: calc(100% + 0.8vw); bottom: auto; }
  .show { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto auto; gap: 0; padding: 0; min-height: 88svh; }
  .show .plate-wrap { grid-column: 1; grid-row: 1 / 5; padding: 40px; display: grid; place-items: center; }
  .show > :not(.plate-wrap) { grid-column: 2; padding-inline: 40px var(--margin); }
  .show .tabs { grid-row: 1; padding-top: 40px; gap: 0.5rem 1.75rem; flex-wrap: wrap; }
  .show .show-text { grid-row: 2; align-self: center; }
  .show .fine { grid-row: 3; padding-bottom: 3rem; }
  .show .cells { grid-row: 4; padding-bottom: 40px; }
  .show .desc { margin-top: 3rem; }
  .tabs button { flex: none; min-height: 0; padding: 0.4rem 0; background: none; color: var(--muted); font-size: 1.125rem; }
  .tabs button[aria-pressed="true"] { background: none; color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
  .tabs button:hover:not([aria-pressed="true"]) { background: none; color: var(--ink); }
  .cells > * { min-height: 72px; }
  .plate { width: 100%; aspect-ratio: 1; padding: clamp(1rem, 2.2vw, 2rem); grid-template-rows: 1fr 1fr; gap: clamp(0.6rem, 1.4vw, 1.25rem); }
  .plate figcaption { display: flex; justify-content: space-between; gap: 0.4rem; }
  .plate .hit img { outline-offset: 3px; }
}

/* ================= wide (1101px+) ================= */
@media (min-width: 1101px) {
  .hero-note { grid-row: 3; }
  .col { margin-left: 30vw; }
  .feat-in { margin-left: 22vw; }
  .now-pic { grid-column: 1 / span 4; width: 22vw; }
  .now-name { grid-column: 7; }
  .now table, .now .note { grid-column: 8 / span 5; }
  .foot { min-height: 100svh; }
}

/* ---------- roast fixes 2026-11-04 ---------- */
.tag span:first-child { display: block; color: #cfcac2; }
.cells.ripped .go { order: -1; background: var(--ink); color: var(--bg); }
.cells.ripped .rip { background: var(--surface-2); color: var(--ink); }
@media (hover: hover) { .cells.ripped .go:hover { background: var(--accent); color: var(--accent-ink); } .cells.ripped .rip:hover { background: var(--ink); color: var(--bg); } }
.stage-p .parent { display: inline-block; margin-top: 1rem; padding-block: 0.6rem; font-size: 1rem; }
.stage-p .button { margin-right: 1.5rem; }

/* live rip: a dark band, the words, then the clip as the app records it */
.liverip { background: var(--ink); color: var(--bg); padding: 3.5rem var(--margin); display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.liverip h2 { font-size: 10vw; }
.liverip .lr-text p { margin-top: 1.25rem; font-size: var(--step-body); max-width: 38ch; }
.liverip .lr-links { display: flex; flex-direction: column; align-items: start; gap: 0.5rem; margin-top: 1.75rem; }
.liverip .lr-links .button { width: 100%; }
.liverip .lr-links .button:hover { background: var(--bg); color: var(--ink); }
.liverip .lr-links a.link-plain { padding-block: 0.6rem; }
.lr-frame { width: min(82%, 22rem); justify-self: center; }
.lr-frame video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #121626; }
.lr-frame .dim { color: #b5b1aa; margin-top: 0.75rem; }
.lr-frame img { width: 78%; align-self: center; }
.lr-frame .rec { color: #ff8a80; font-weight: 500; }
.lr-frame .lr-sum { align-items: end; }
.lr-frame .lr-sum .fig { display: block; }
.lr-frame figcaption { font-size: var(--step-small); }
@media (min-width: 701px) {
  .liverip { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: clamp(4rem, 7vw, 7rem) var(--margin); align-items: center; margin-top: 0; }
  .liverip .lr-text { grid-column: 1 / span 6; }
  .liverip h2 { font-size: var(--step-big); }
  .liverip .lr-links .button { width: auto; }
  .lr-frame { grid-column: 8 / span 4; width: min(100%, 20rem); }
}
/* phone: the clip comes right after its heading */
.liverip .lr-text { display: contents; }
.liverip h2 { order: 1; }
.lr-frame { order: 2; }
.liverip .lr-text p { order: 3; margin-top: -1rem; }
.liverip .lr-text .lr-links { margin-top: -0.5rem; }
@media (min-width: 701px) {
  .liverip .lr-text { display: block; }
  .liverip .lr-text p { margin-top: 1.25rem; }
  .liverip .lr-text .lr-links { margin-top: 1.75rem; }
}
@media (min-width: 901px) {
  /* desktop: the four scan steps and the four free things use the whole width, two by two */
  .col, .feat-in { width: auto; margin-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem calc(var(--gutter) * 3); align-items: start; }
  .col { padding-inline: var(--margin); }
  .col h2, .feat-in h2 { grid-column: 1 / -1; margin-bottom: 0; }
  .stage + .stage, .mod + .mod { margin-top: 0; }
  .mod { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
.nocap, .uncapped .capped { display: none; }
.uncapped .nocap { display: inline; }

/* ---------- one brand with the app, 2026-11-10 ----------
   The landing page keeps its paper and its monument type layout; the faces and the accent are the app's own (play.html :root):
   Tilt Warp + Figtree from /fonts, ink #06070c, the yellow of the app's main button, the cyan of its scan frame (in the dark
   interface pieces above). Before: Red Hat + a muted teal, so "Open the scanner" felt like a jump to another product. */
@font-face { font-family: "Tilt Warp"; font-weight: 400 900; font-display: swap; src: url(/fonts/tilt-warp.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 300 900; font-display: swap; src: url(/fonts/figtree.woff2) format("woff2"); }
:root {
  --ink: #06070c; --accent: #ffd23f; --accent-ink: #06070c;
  --font-display: "Tilt Warp", "Arial Black", sans-serif; --font-text: Figtree, system-ui, sans-serif;
  --step-small: 0.9375rem;
  --section: clamp(3.5rem, 10vw, 11rem); /* phone: was 6rem between sections (13 screens of page) */
}
.mono-type { letter-spacing: -0.02em; }
h2, h3, .big, .head { letter-spacing: -0.01em; }
.button { font-weight: 700; box-shadow: inset 0 0 0 2px var(--ink); } /* yellow needs an edge on the paper */
.stage p strong, .mod h3 { font-weight: 700; }
:focus-visible { outline-color: currentColor; }
@media (hover: hover) { a.link-plain:hover, .qs summary:hover { color: var(--muted); } } /* yellow is a fill, never text on paper */
.stage + .stage { margin-top: 2.25rem; }
.mod + .mod { margin-top: 2.75rem; }
.col h2, .feat h2 { margin-bottom: 1.75rem; }
@media (min-width: 701px) { .stage + .stage { margin-top: 4.5rem; } .mod + .mod { margin-top: 6.5rem; } .col h2 { margin-bottom: 3rem; } .feat h2 { margin-bottom: 4rem; } }
@media (min-width: 901px) { .stage + .stage, .mod + .mod { margin-top: 0; } .col h2, .feat-in h2 { margin-bottom: 0; } }
/* plan picker: a three-part switch like the pack tabs (it was three giant words that did not look like a control) */
.plans { flex-direction: row; align-items: stretch; gap: 4px; width: 100%; }
.plans button { flex: 1 1 0; justify-content: center; min-height: var(--tap); padding: 0 0.5rem; background: var(--surface-2); color: var(--ink); font-family: var(--font-text); font-weight: 500; font-size: 1rem; letter-spacing: 0; line-height: 1.2; }
.plans button::before { display: none; }
.plans button[aria-pressed="true"] { background: var(--ink); color: var(--bg); font-weight: 700; }
@media (min-width: 701px) { .plans { align-self: start; } .plans button { font-size: 1.125rem; } }
