/* ==========================================================================
   FastKey — landing site
   Direction: instant · mechanical · honest. Daylight workshop: cool white
   ground, near-black indigo ink, tactile keycaps, two indigo-drenched bands.
   Display voice: Schibsted Grotesk. Text voice: Apple system font.
   Motion: mechanical press/release, transform+opacity, reduced-motion safe.
   ========================================================================== */

/* ---- Font (variable WOFF2, bundled, OFL) --------------------------------- */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/SchibstedGrotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/SchibstedGrotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0;
}

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Ground — cool white tinted toward the brand indigo (never cream) */
  --bg: #fbfbfe;
  --bg-2: #f3f3fb;
  --card: #ffffff;

  /* Brand indigo — the one chroma (Committed) */
  --indigo: #5646e6;
  --indigo-deep: #37299f;
  --indigo-ink: #241a6b;
  --grad-icon: linear-gradient(135deg, #6f66fa 0%, #4a2ba8 62%, #2e0f73 100%);
  --grad-drench: linear-gradient(168deg, #4433c8 0%, #37299f 55%, #2a1c85 100%);

  /* Signals — semantic only */
  --bolt: #ffd60a;
  --bolt-deep: #b28d00;
  --miss: #e5484d;
  --ok: #189a4a;

  /* Ink */
  --ink: #17142e;
  --ink-2: #47435f;
  --ink-3: #676283;
  --on-drench: #ffffff;
  --on-drench-sub: #cfc9ff;

  /* Lines & tactile shadows */
  --border: #e6e4f4;
  --border-strong: #d2cfec;
  --key-face: linear-gradient(180deg, #ffffff 0%, #f6f5fd 100%);
  --key-wall: #dbd8f0;
  --shadow-key: 0 1px 0 #fff inset, 0 -2px 0 rgba(86, 70, 230, 0.06) inset,
                0 6px 0 var(--key-wall), 0 8px 4px rgba(23, 20, 46, 0.06),
                0 18px 34px -14px rgba(38, 28, 120, 0.28);
  --shadow-key-down: 0 1px 0 #fff inset, 0 -1px 0 rgba(86, 70, 230, 0.05) inset,
                     0 2px 0 var(--key-wall), 0 3px 3px rgba(23, 20, 46, 0.08),
                     0 8px 16px -10px rgba(38, 28, 120, 0.24);
  --shadow-card: 0 1px 2px rgba(23, 20, 46, 0.04), 0 16px 40px -20px rgba(38, 28, 120, 0.16);

  /* Radii */
  --r-sm: 10px; --r: 16px; --r-key: 22px; --r-lg: 26px; --r-pill: 999px;

  /* Spacing */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.25rem;
  --s6: 1.5rem; --s8: 2rem; --s10: 2.5rem; --s12: 3rem; --s16: 4rem; --s20: 5rem;

  /* Motion — mechanical: quick outs, no bounce */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 90ms;
  --t-fast: 150ms;
  --t: 240ms;
  --t-slow: 420ms;

  /* Type */
  --font-display: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --fs-hero: clamp(2.7rem, 1.35rem + 5.2vw, 5rem);
  --fs-h2: clamp(1.85rem, 1.15rem + 2.5vw, 3rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  --fs-lead: clamp(1.06rem, 0.98rem + 0.42vw, 1.28rem);
  --fs-body: 1.0625rem;

  --maxw: 1140px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --z-base: 1; --z-raise: 5; --z-nav: 100; --z-overlay: 200;
  --header-h: 64px;
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}
body {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; text-wrap: balance; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
code { font-family: var(--font-mono); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: var(--z-overlay);
  background: var(--ink); color: #fff; padding: var(--s3) var(--s5); border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
/* Grid/flex items must be allowed to shrink below their content's min-content
   (long mono code lines otherwise prop tracks open and overflow the viewport) */
.problem > *, .trust > *, .bento > *, .race > *, .inside > *, .feat--wide > * { min-width: 0; }
.section--alt { background: var(--bg-2); }
.section--drench { background: var(--grad-drench); color: var(--on-drench); }
.section--drench .lead { color: var(--on-drench-sub); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; }

.h2 { font-size: var(--fs-h2); font-weight: 800; margin-bottom: var(--s4); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 65ch; }
.section-head.center .lead { margin-inline: auto; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 700; font-size: .97rem;
  padding: .68em 1.25em; border-radius: var(--r-pill);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease);
  will-change: transform;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 17px; height: 17px; }
.btn--primary {
  background: var(--indigo); color: #fff;
  box-shadow: 0 2px 0 var(--indigo-deep), 0 10px 24px -10px rgba(86, 70, 230, 0.55);
}
.btn--primary:hover { transform: translateY(-1px); background: #4c3ce0; }
.btn--primary:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--indigo-deep), 0 4px 12px -6px rgba(86, 70, 230, 0.5); }
.btn--ghost { color: var(--ink); border: 1px solid var(--border-strong); background: var(--card); }
.btn--ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn--bolt {
  background: var(--bolt); color: var(--ink);
  box-shadow: 0 2px 0 var(--bolt-deep), 0 12px 28px -10px rgba(0, 0, 0, 0.45);
}
.btn--bolt:hover { transform: translateY(-1px); background: #ffdf3d; }
.btn--bolt:active { transform: translateY(1px); }
.btn--lg { font-size: 1.06rem; padding: .8em 1.5em; }

/* ---- Nav ------------------------------------------------------------------ */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: var(--z-nav);
  transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease),
              backdrop-filter var(--t) var(--ease);
}
.nav.is-scrolled {
  background: rgba(251, 251, 254, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--s6); }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.14rem; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; }
.nav__links { display: flex; gap: clamp(1rem, 2.5vw, 1.9rem); }
.nav__links a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav__right { display: flex; align-items: center; gap: var(--s3); }
.nav__toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ''; position: absolute; left: 10px; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.nav__toggle span { top: 19px; }
.nav__toggle span::before { left: 0; top: -6px; }
.nav__toggle span::after { left: 0; top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.nav__menu {
  display: none; flex-direction: column; gap: var(--s2);
  padding: var(--s4) var(--gutter) var(--s6);
  background: rgba(251, 251, 254, 0.97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__menu a { padding: var(--s3) 0; color: var(--ink); font-weight: 600; }
.nav.is-open .nav__menu { display: flex; }

/* ---- Keycap (the brand object) -------------------------------------------- */
.key {
  position: relative;
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  background: var(--key-face);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-key);
  box-shadow: var(--shadow-key);
  transition: transform var(--t-press) ease-out, box-shadow var(--t-press) ease-out;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.key.is-down, .key:active { transform: translateY(4px); box-shadow: var(--shadow-key-down); }
.key__led {
  position: absolute; top: 14%; left: 50%; transform: translateX(-50%);
  width: 9%; aspect-ratio: 1; border-radius: 50%;
  background: #cbc8e6; box-shadow: 0 1px 1px rgba(23, 20, 46, 0.25) inset;
  transition: background-color var(--t-fast) ease-out, box-shadow var(--t-fast) ease-out;
}
.key__led.is-on, .key[aria-pressed="true"] .key__led {
  background: var(--bolt);
  box-shadow: 0 0 0 2px rgba(255, 214, 10, 0.25), 0 0 18px 4px rgba(255, 214, 10, 0.55);
}
.key__glyph { font-size: 34%; line-height: 1; margin-left: 9%; color: var(--ink-2); }
.key__label { font-family: var(--font-display); font-weight: 500; font-size: 11%; letter-spacing: .02em; color: var(--ink-3); margin: 4% 0 8% 9%; }

.key--hero { width: min(300px, 68vw); aspect-ratio: 1.06; font-size: min(300px, 68vw); }
.key--rig { width: min(210px, 56vw); aspect-ratio: 1.06; font-size: min(210px, 56vw); }
.key--mini {
  width: 84px; aspect-ratio: 1.06; font-size: 84px; border-radius: 14px;
  pointer-events: none; align-items: center; justify-content: center;
}
.key--mini .key__glyph { margin: 26% 0 0; color: var(--ink-2); }

/* miss flash: the whole key blinks red edge */
@keyframes missflash {
  0% { box-shadow: var(--shadow-key), 0 0 0 3px rgba(229, 72, 77, 0.9); }
  100% { box-shadow: var(--shadow-key), 0 0 0 3px rgba(229, 72, 77, 0); }
}
.key.is-missed { animation: missflash 460ms ease-out; }

/* ---- Hero ------------------------------------------------------------------ */
.hero { padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 6.5rem)); padding-bottom: clamp(3.5rem, 7vw, 6rem); overflow: clip; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero__title { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.03em; margin-bottom: var(--s5); }
.hero__flip { color: var(--indigo); }
.hero__sub { font-size: var(--fs-lead); color: var(--ink-2); max-width: 34rem; margin-bottom: var(--s8); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero__cta.center { justify-content: center; }
.hero__note { margin-top: var(--s5); font-size: .9rem; color: var(--ink-3); display: flex; align-items: center; flex-wrap: wrap; gap: .6em; }
.hero__note--drench { color: var(--on-drench-sub); justify-content: center; }
.sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

.hero__stage { display: grid; place-items: center; }
.herokey-wrap { text-align: center; }
.herokey__meter { margin-top: var(--s6); font-size: .95rem; color: var(--ink-3); }
.herokey__meter .ms {
  font-family: var(--font-mono); font-weight: 700; color: var(--indigo);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: .15em .6em; margin-right: .5em;
}

/* hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > :nth-child(4) { animation-delay: .24s; }
  .hero__stage { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) .18s forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---- Problem --------------------------------------------------------------- */
.problem { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.problem__copy .lead { margin-bottom: var(--s4); }

.code {
  font-family: var(--font-mono); font-size: .92rem; line-height: 1.7;
  background: var(--ink); color: #e8e6f6;
  border-radius: var(--r); padding: var(--s5) var(--s6);
  overflow-x: auto; margin-top: var(--s6);
  box-shadow: var(--shadow-card);
}
.code .c { color: #8d88b0; }
.code strong { color: var(--bolt); font-weight: 700; }
.code .bad { color: #ff9296; font-weight: 700; }
.code .good { color: #7ee2a8; font-weight: 700; }
.inline {
  font-size: .88em; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 6px; padding: .1em .4em; color: var(--indigo-ink); white-space: nowrap;
}
.section--drench .inline { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }

.typebox {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: var(--s8);
}
.typebox__head { font-size: .85rem; color: var(--ink-3); display: block; margin-bottom: var(--s4); }
.typebox__line {
  font-family: var(--font-mono); font-size: clamp(1.15rem, 2.4vw, 1.5rem); min-height: 2.2em;
  color: var(--ink); word-break: break-word;
}
.typebox__line .swallow { color: var(--miss); text-decoration: line-through; text-decoration-thickness: 2px; }
.typebox__line .boltup { color: var(--indigo); font-weight: 700; }
.caret { display: inline-block; width: 2px; height: 1.15em; background: var(--indigo); vertical-align: text-bottom; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.typebox__verdict { margin-top: var(--s4); font-size: .95rem; font-weight: 600; min-height: 1.5em; }
.typebox__verdict.is-bad { color: var(--miss); }
.typebox__verdict.is-good { color: var(--ok); }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

/* ---- Tap race (drenched) ----------------------------------------------------- */
.race { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3.5vw, 2.5rem); max-width: 880px; margin-inline: auto; }
.rig {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s5);
}
.rig__title { font-size: var(--fs-h3); font-weight: 700; }
.rig__badge {
  font-family: var(--font-mono); font-size: .82rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--r-pill);
  padding: .25em .85em; color: var(--on-drench-sub);
  display: inline-flex; align-items: center; gap: .4em;
}
.rig__badge--bolt { color: var(--bolt); border-color: rgba(255, 214, 10, 0.5); }
.rig__badge svg { width: 13px; height: 13px; }
.rig__stats { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.rig__stats > div { display: flex; flex-direction: column-reverse; gap: .1rem; }
.rig__stats dt { font-size: .78rem; color: var(--on-drench-sub); }
.rig__stats dd { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 1.9rem; font-weight: 800; line-height: 1; }
.rig__stats .is-miss dd { color: #ffb0b3; }
.rig--fast .rig__stats > div:nth-child(2) dd { color: var(--bolt); }
.rig__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.race__note { text-align: center; max-width: 52ch; margin: var(--s10) auto 0; color: var(--on-drench-sub); font-size: .98rem; }
.race__note em { color: #fff; font-style: normal; font-weight: 600; }

/* keycaps inside the drench band sit on their own light plinth shadow */
.section--drench .key { --key-wall: #b9b4e4; border-color: #cdc9f2; }

/* ---- Trust ------------------------------------------------------------------- */
.trust { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.trust__copy .lead { margin-bottom: var(--s6); }
.trustlist { list-style: none; padding: 0; margin: 0 0 var(--s8); display: grid; gap: var(--s5); }
.trustlist li { display: grid; grid-template-columns: 26px 1fr; gap: var(--s4); }
.trustlist svg { width: 22px; height: 22px; color: var(--ok); margin-top: .15em; }
.trustlist strong { display: block; font-family: var(--font-display); font-weight: 700; margin-bottom: .15em; }
.trustlist div { color: var(--ink-2); }

.proof {
  background: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  overflow: hidden;
}
.proof__bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.proof__bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.proof__bar i:first-child { background: #ff5f57; }
.proof__bar i:nth-child(2) { background: #febc2e; }
.proof__bar i:nth-child(3) { background: #28c840; }
.proof__bar span { margin-left: auto; font-size: .78rem; color: #8d88b0; font-family: var(--font-mono); }
.code--panel { margin: 0; border-radius: 0; box-shadow: none; background: transparent; }
.proof__cap { padding: 0 var(--s6) var(--s5); font-size: .85rem; color: #8d88b0; }

/* Safety card — reassurance visual (replaces any technical proof panel) */
.safecard {
  position: relative; display: grid; place-items: center;
  min-height: 300px; border-radius: var(--r-lg);
  background: linear-gradient(168deg, #f3f2fd 0%, #eae8fb 100%);
  border: 1px solid var(--border); overflow: hidden;
}
.safecard__ring, .safecard__ring--2 {
  position: absolute; border-radius: 50%; border: 1.5px solid rgba(86, 70, 230, 0.16);
}
.safecard__ring { width: 190px; height: 190px; }
.safecard__ring--2 { width: 270px; height: 270px; border-color: rgba(86, 70, 230, 0.09); }
.safecard__shield {
  width: 72px; height: 72px; color: var(--indigo); position: relative;
  filter: drop-shadow(0 10px 22px rgba(86, 70, 230, 0.28));
}
.safecard__cap {
  position: absolute; bottom: var(--s6); left: 0; right: 0; text-align: center;
  font-size: .92rem; color: var(--ink-2); line-height: 1.5;
}
@media (prefers-reduced-motion: no-preference) {
  .safecard__ring { animation: safepulse 4s var(--ease) infinite; }
  .safecard__ring--2 { animation: safepulse 4s var(--ease) infinite .5s; }
  @keyframes safepulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: .7; } }
}

/* ---- Features bento ------------------------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.feat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s8); box-shadow: var(--shadow-card);
}
.feat--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s8); align-items: center; }
.feat h3 { font-size: var(--fs-h3); font-weight: 700; margin-bottom: var(--s3); }
.feat p { color: var(--ink-2); }
.feat__timeline {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s3) var(--s4); align-items: center;
}
.tl__event {
  font-family: var(--font-mono); font-size: .84rem; color: var(--ink-2);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: .3em .9em; text-align: center;
}
.tl__fix { display: flex; align-items: center; gap: .4em; }
.tl__fix::before { content: ''; flex: 0 0 28px; height: 1px; background: var(--border-strong); }
.tl__fix::after { content: 're-applied & verified'; font-size: .8rem; color: var(--ink-3); }
.tl__fix svg { width: 16px; height: 16px; color: var(--bolt-deep); flex: none; }

/* ---- Comparison table ------------------------------------------------------------ */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); background: var(--card); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .96rem; }
.compare th, .compare td { text-align: left; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--ink-2); padding-top: var(--s5); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody td:first-child { font-weight: 600; color: var(--ink); width: 24%; }
.compare tbody td { color: var(--ink-2); }
.col-fk { background: rgba(86, 70, 230, 0.05); }
.compare td.col-fk { color: var(--ink); }
.brand--table { font-size: 1rem; gap: .4rem; }
.brand--table .brand__mark { width: 22px; height: 22px; border-radius: 6px; }
.yes, .no { display: inline-flex; width: 19px; height: 19px; border-radius: 50%; align-items: center; justify-content: center; margin-right: .5em; vertical-align: -4px; }
.yes { background: rgba(24, 154, 74, 0.12); color: var(--ok); }
.no { background: rgba(229, 72, 77, 0.1); color: var(--miss); }
.yes svg, .no svg { width: 11px; height: 11px; }

/* ---- Inside the app (mockups) ------------------------------------------------------ */
.inside { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: start; gap: clamp(1.5rem, 4vw, 3.5rem); }
.mock--menu { width: min(320px, 88vw); }
.menubar {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(23, 20, 46, 0.06); border: 1px solid var(--border); border-bottom: 0;
  border-radius: var(--r-sm) var(--r-sm) 0 0; padding: 6px 12px; font-size: .82rem; color: var(--ink-2);
}
.menubar__icon { font-weight: 700; color: var(--ink); }
.menu {
  background: rgba(251, 251, 254, 0.92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong); border-radius: 0 0 var(--r) var(--r);
  box-shadow: var(--shadow-card); padding: 6px; display: flex; flex-direction: column;
  font-size: .9rem;
}
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 5px 10px; }
.menu__head { color: var(--ink-3); font-size: .8rem; padding: 4px 12px; }
.menu__status { color: var(--ok); font-weight: 600; }
.menu__item { padding: 5px 12px 5px 28px; border-radius: 7px; position: relative; color: var(--ink); }
.menu__item.is-on::before { content: '✓'; position: absolute; left: 10px; font-weight: 700; }
.menu__item.is-hot { background: var(--indigo); color: #fff; }

.mock--taptest { width: min(400px, 92vw); }
.window { background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--r); box-shadow: var(--shadow-card); overflow: hidden; }
.window__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; }
.window__bar i:first-child { background: #ff5f57; } .window__bar i:nth-child(2) { background: #febc2e; } .window__bar i:nth-child(3) { background: #28c840; }
.window__bar span { margin-left: 6px; font-size: .8rem; color: var(--ink-3); }
.window__body { padding: var(--s6); }
.tt__row { font-family: var(--font-mono); font-size: 1.02rem; margin-bottom: var(--s2); }
.tt__row strong { color: var(--indigo); }
.tt__dim { font-size: .85rem; color: var(--ink-3); margin-bottom: var(--s4); }
.tt__verdict { font-weight: 700; color: var(--ok); }
.mock__cap { margin-top: var(--s3); text-align: center; font-size: .85rem; color: var(--ink-3); }

/* ---- Pricing ------------------------------------------------------------------------ */
.getcard {
  max-width: 560px; margin-inline: auto; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: clamp(2rem, 5vw, 3.25rem);
}
.getcard__cta {
  display: flex; flex-direction: column; gap: var(--s3);
  max-width: 300px; margin: 0 auto;
}
.getcard__cta .btn { width: 100%; justify-content: center; }
.getcard__cta .soon-note { margin-top: var(--s2); }
.getcard__price { margin-bottom: var(--s6); }
.price { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); display: block; line-height: 1; }
.price__once { color: var(--ink-3); font-size: .98rem; }
.getlist { list-style: none; padding: 0; margin: 0 auto var(--s8); display: grid; gap: var(--s3); max-width: 34ch; text-align: left; }
.getlist li { display: flex; gap: .6em; align-items: flex-start; color: var(--ink-2); }
.getlist svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: .2em; }
.soon-note { margin-top: var(--s4); font-size: .88rem; color: var(--ink-3); max-width: 40ch; margin-inline: auto; }

/* ---- FAQ ------------------------------------------------------------------------------ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: var(--s3); }
.faq__item { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  width: 100%; text-align: left; padding: var(--s5) var(--s6);
  font-family: var(--font-display); font-weight: 700; font-size: 1.04rem;
}
.pm { position: relative; flex: 0 0 18px; height: 18px; }
.pm::before, .pm::after { content: ''; position: absolute; inset: 8px 0; background: var(--indigo); border-radius: 2px; transition: transform var(--t) var(--ease); }
.pm::after { transform: rotate(90deg); }
.faq__item.open .pm::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow) var(--ease); }
.faq__a > p { overflow: hidden; padding-inline: var(--s6); color: var(--ink-2); }
.faq__item.open .faq__a { grid-template-rows: 1fr; }
.faq__item.open .faq__a > p { padding-bottom: var(--s5); }
@media (prefers-reduced-motion: reduce) { .faq__a { transition: none; } }

/* ---- Final CTA -------------------------------------------------------------------------- */
.finalcta .h2 { margin-top: var(--s6); }
.finalcta .lead { margin-inline: auto; margin-bottom: var(--s8); }
.finalcta__key { display: flex; justify-content: center; }
.finalcta .key--mini .key__led { top: 16%; }

/* ---- Footer ----------------------------------------------------------------------------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: var(--s16) 0 var(--s8); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s8); margin-bottom: var(--s10); }
.footer__brand p { color: var(--ink-2); font-size: .95rem; margin-top: var(--s4); max-width: 34ch; }
.footer__love { font-weight: 600; color: var(--ink); }
.footer__col { display: flex; flex-direction: column; gap: var(--s3); }
.footer__col h4 { font-size: .88rem; color: var(--ink-3); font-weight: 700; }
.footer__col a { color: var(--ink-2); font-size: .95rem; }
.footer__col a:hover { color: var(--indigo); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s3);
  padding-top: var(--s6); border-top: 1px solid var(--border);
  font-size: .88rem; color: var(--ink-3);
}

/* ---- Reveal-on-scroll --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__copy > *, .hero__stage { opacity: 1 !important; transform: none !important; animation: none !important; }
  .key, .btn { transition: none; }
}

/* ---- Legal / utility pages ------------------------------------------------------------------ */
.legal { max-width: 720px; margin-inline: auto; padding-top: calc(var(--header-h) + var(--s12)); padding-bottom: var(--s20); }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; margin-bottom: var(--s2); }
.legal .updated { color: var(--ink-3); font-size: .9rem; margin-bottom: var(--s10); }
.legal h2 { font-size: 1.35rem; font-weight: 700; margin: var(--s10) 0 var(--s3); }
.legal p, .legal li { color: var(--ink-2); margin-bottom: var(--s3); }
.legal ul { padding-left: 1.2em; }
.legal strong { color: var(--ink); }

/* ===== Thank-you page ===== */
.thanks-page { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); min-height: 100vh; }
.thanks {
  min-height: 100vh; display: grid; place-items: center;
  padding: clamp(1.5rem, 5vw, 4rem) var(--gutter);
}
.thankcard {
  width: 100%; max-width: 560px; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: clamp(1.75rem, 5vw, 3rem);
}
.thankcard__mark { width: 60px; height: 60px; border-radius: 15px; margin: 0 auto var(--s5); }
.thankcard__title { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
.thankcard__sub { color: var(--ink-2); font-size: 1.05rem; line-height: 1.55; margin: var(--s3) auto 0; max-width: 42ch; }

.spinner {
  width: 26px; height: 26px; margin: var(--s6) auto 0;
  border: 3px solid var(--border-strong); border-top-color: var(--indigo);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* License key — wraps fully, no scrollbar */
.keybox {
  text-align: left; margin: var(--s8) 0 var(--s5);
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--r);
  padding: var(--s5);
}
.keybox__label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: var(--s3); }
.keybox__key {
  display: block; font-family: var(--font-mono); font-size: .82rem; line-height: 1.7;
  color: var(--indigo-ink); word-break: break-all; user-select: all;
}

.keep { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-bottom: var(--s6); }
.keep .btn { min-width: 150px; justify-content: center; }

.emailform {
  margin: 0 0 var(--s8); padding: var(--s5); text-align: left;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r);
}
.emailform label { display: block; font-size: .92rem; color: var(--ink-2); margin-bottom: var(--s3); }
.emailform__row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.emailform input {
  flex: 1 1 200px; min-width: 0; font: inherit; font-size: 1rem;
  padding: .62em .9em; color: var(--ink);
  background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
}
.emailform input:focus-visible { outline: 3px solid var(--indigo); outline-offset: 1px; }
.emailform__row .btn { flex: 0 0 auto; justify-content: center; }
.emailform__msg { min-height: 1.2em; margin: var(--s3) 0 0; font-size: .9rem; }
.emailform__msg.ok { color: var(--ok); }
.emailform__msg.err { color: var(--miss); }

.steps3 { text-align: left; border-top: 1px solid var(--border); padding-top: var(--s6); }
.steps3 h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: var(--s4); }
.steps3 ol { margin: 0; padding-left: 1.3em; display: grid; gap: var(--s3); }
.steps3 li { color: var(--ink-2); line-height: 1.5; }

.thankcard__love { margin-top: var(--s6); font-size: .85rem; color: var(--ink-3); }

/* ---- Responsive ----------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__note { justify-content: center; }
  .problem, .trust { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .feat--wide { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__right .btn { display: none; }
  .race { grid-template-columns: 1fr; max-width: 420px; }
  .inside { grid-template-columns: 1fr; justify-items: center; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
  .rig__stats dd { font-size: 1.6rem; }
}
