/* ============================================================
   UX CHECK — landing
   Aesthetic: design-critique surface. Redline annotation,
   dashed selection, mono spec labels. Violet accent, coral signal.
   Light only — soft pastel ground, bold type, black pill CTAs.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --violet-100: #EDE7FF;
  --violet-300: #BCA8FF;
  --violet-400: #9B7BFF;
  --violet-500: #7C5CFF;
  --violet-600: #6438F5;
  --coral:      #FF5A5A;
  --mint:       #4ED9A4;

  --ff-sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --ff-mono: "DM Mono", ui-monospace, "SF Mono", monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-xl: 34px;

  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1240px;

  --ease: cubic-bezier(.22, .68, .28, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* white ground; depth comes from hairlines and the pastel plates, not fills */
  --bg:        #FFFFFF;
  --bg-2:      #FBFCFE;
  --surface:   #FFFFFF;
  --surface-2: #F7F9FC;
  --line:      #E6E9F1;
  --line-soft: #EFF1F7;
  --ink:       #0E0E14;
  --ink-2:     #666D7E;
  --ink-3:     #9AA1B1;
  --accent:    var(--violet-600);
  --accent-2:  var(--violet-500);
  --accent-ink:#FFFFFF;
  --ink-invert:#0E0E14;   /* the black pill */
  --glow:      rgba(100, 56, 245, .13);
  --grain-op:  .022;
  --card-sheen: linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,255,255,0) 46%);
  --shadow-lg: 0 30px 64px -30px rgba(24, 30, 62, .28);
  --shadow-sm: 0 10px 28px -18px rgba(24, 30, 62, .22);
  /* pastel plates for the feature cards */
  --tint-1: #E7E3FD;
  --tint-2: #DFF2EA;
  --tint-3: #E1EBFC;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -.008em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* clearance for the fixed bottom nav */
  padding-bottom: clamp(88px, 9vw, 104px);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* display type: bold and tight. On a light ground the weight has to carry the
   hierarchy — the airy trick that works on near-black just reads washed out. */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
/* the min must stay small enough that the nowrap "UX mistake." fits 320px */
h1 { font-size: clamp(2.1rem, 7.4vw, 5.4rem); letter-spacing: -.042em; line-height: .98; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -.038em; }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -.032em; }
p  { margin: 0; }

/* accent phrases — with one typeface the emphasis carries on slant + colour */
em {
  font-style: italic;
  font-weight: 600;
  letter-spacing: -.03em;
}

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* film grain */
.grain {
  position: fixed; inset: -50%;
  z-index: 9999; pointer-events: none;
  opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease-out) var(--d, 0s), transform .8s var(--ease-out) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   NAV
   ============================================================ */
/* the nav lives at the bottom of the screen — inside thumb reach, and it keeps
   the download action permanently on screen without a second floating bar */
.nav {
  position: fixed; z-index: 100;
  left: 0; right: 0; bottom: max(16px, env(safe-area-inset-bottom));
  padding: 0 var(--pad);
  display: flex; justify-content: center;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px);
  padding: 7px 7px 7px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 40px -14px rgba(24,30,62,.42);
  max-width: 100%;
}

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 26px; height: 26px; flex: none;
  transition: transform .5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(90deg); }
.foot .brand-mark { width: 24px; height: 24px; }
.brand-name { font-size: 1rem; font-weight: 700; letter-spacing: -.03em; }

.nav-links { display: flex; gap: clamp(14px, 2vw, 24px); }
.nav-links a {
  font-size: .88rem; font-weight: 500; color: var(--ink-2);
  position: relative; padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: .93rem; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn-sm { padding: 9px 17px; font-size: .85rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

/* light pill on near-black — the primary action reads as a physical object */
.btn-solid {
  background: var(--ink-invert);
  color: #fff;
  font-weight: 500;
}
.btn-solid:hover { transform: translateY(-2px); background: #24242E; box-shadow: 0 16px 34px -16px rgba(14,14,20,.5); }
.btn-solid:active { transform: translateY(0); }

/* small rounded-square companions to the pill */
.btn-icon {
  width: 46px; height: 46px; padding: 0;
  border-radius: 14px;
  display: grid; place-items: center;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink-2);
}
.btn-sm + .btn-icon, .btn-icon { flex: none; }
.btn-icon:hover { color: var(--ink); border-color: var(--ink-3); transform: translateY(-2px); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* not a button — Android isn't shipped yet, so it must not look tappable */
.soon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  font-family: var(--ff-mono); font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
  cursor: default;
}
.soon svg { opacity: .65; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(36px, 5vw, 68px) var(--pad) 0; overflow: hidden; }

.hero-bg {
  position: absolute; inset: -10% -10% auto -10%; height: 130%;
  pointer-events: none;
  background:
    radial-gradient(56% 40% at 50% 0%, #EEF3FD, transparent 72%),
    radial-gradient(38% 30% at 86% 18%, #F6F1FD, transparent 74%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: radial-gradient(64% 56% at 42% 30%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(64% 56% at 42% 30%, #000 0%, transparent 76%);
  opacity: .5;
}

/* Bevel composition: everything centred, device floating below the fold line */
.hero-inner {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding-bottom: clamp(40px, 6vw, 72px);
}

.hero-center {
  max-width: 60rem; margin: 0 auto;
  text-align: center;
  display: grid; justify-items: center;
  padding-top: clamp(28px, 5vw, 64px);
}

.hero-shot {
  position: relative;
  width: min(760px, 100%);
  margin: clamp(28px, 4vw, 48px) auto clamp(-90px, -6vw, -40px);
}
.hero-shot::before {
  content: ""; position: absolute; z-index: -1;
  left: 14%; top: 6%; width: 72%; height: 74%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  filter: blur(34px);
}
.hero-shot img {
  width: 100%; height: auto;
  filter: drop-shadow(0 40px 60px rgba(24, 30, 62, .22));
  animation: float 9s var(--ease) infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-mono); font-size: .74rem;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-2);
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--mint) 60%, transparent);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mint) 55%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ch here is relative to the h1's own (huge) font-size, not the body's */
.hero h1 { margin: 0; max-width: 16ch; }
.hero h1 em { color: var(--accent); }

.footnote {
  margin-top: 20px;
  font-size: .78rem; color: var(--ink-3);
  letter-spacing: -.005em;
}

/* hand-drawn underline on "hiding a mistake" */
.marked { position: relative; white-space: nowrap; }
.marked .scribble {
  position: absolute; left: -1%; right: -1%; bottom: -.14em;
  width: 102%; height: .3em; overflow: visible;
}
.marked .scribble path {
  fill: none; stroke: var(--coral); stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  animation: draw 1.1s var(--ease-out) .7s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.lede {
  margin-top: 26px;
  max-width: 30em;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  color: var(--ink-2);
  line-height: 1.65;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row.center { justify-content: center; }

.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 4vw, 46px);
  list-style: none; margin: 40px 0 0; padding: 22px 0 0;
  border-top: 1px dashed var(--line);
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats b {
  font-size: 1.75rem; font-weight: 600;
  letter-spacing: -.04em; line-height: 1;
}
.hero-stats span {
  font-family: var(--ff-mono); font-size: .7rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3);
}

/* ---------- hero demo frame ---------- */

.demo-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background-image: var(--card-sheen);
}
.demo-frame::after {
  content: ""; position: absolute; inset: 8px;
  border: 1px dashed color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: calc(var(--r-xl) - 8px);
  pointer-events: none;
}

.demo-chrome {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.demo-label, .demo-score {
  font-family: var(--ff-mono); font-size: .7rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.demo-label b { color: var(--ink-2); font-weight: 500; }
.demo-score { color: var(--accent); }
.demo-score #huntFound { font-weight: 500; }

/* ── the real level, rebuilt: a light app screen inside the dark frame ── */
.lvl-top { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; }
.lvl-back { color: var(--ink-3); font-size: 1.3rem; line-height: 1; }
.lvl-name { display: grid; gap: 1px; }
.lvl-name b { font-size: .95rem; font-weight: 600; letter-spacing: -.02em; }
.lvl-name i { font-style: normal; font-size: .76rem; color: var(--ink-3); }

.lvl-hud { padding: 0 18px 14px; display: grid; gap: 9px; }
.lvl-hud-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lvl-count { font-size: .82rem; color: var(--ink-2); }
.lvl-count b { color: var(--ink); font-weight: 600; }
.lvl-hint {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  font-size: .78rem; font-weight: 500; cursor: pointer;
  transition: border-color .3s var(--ease), color .3s;
}
.lvl-hint:hover { border-color: var(--accent); color: var(--accent); }
.lvl-hint[disabled] { opacity: .4; cursor: default; }
.lvl-bar { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.lvl-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width .5s var(--ease-out); }
.lvl-misses { font-size: .74rem; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.lvl-misses .x {
  width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--coral) 22%, transparent); color: var(--coral); font-size: .62rem;
}
.lvl-misses.hot-warn b { color: var(--coral); }

/* the inspected screen is light — it is a real app screen, not page chrome */
.lvl-screen {
  margin: 0 12px 12px; padding: 16px 14px 14px;
  border-radius: 20px;
  background: #F4F4F6; color: #16161A;
  display: grid; gap: 10px;
}
.lvl-screen-title { text-align: center; font-weight: 600; font-size: .9rem; letter-spacing: -.02em; }
.lvl-card { background: #fff; border-radius: 14px; padding: 12px; display: grid; gap: 10px; }
.lvl-product { grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.lvl-thumb {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: #EFE7DA; font-size: 1.3rem;
}
.lvl-prod { display: grid; gap: 2px; justify-items: start; }
.lvl-prod b { font-size: .92rem; font-weight: 600; letter-spacing: -.02em; }
.lvl-prod i { font-style: normal; font-size: .74rem; color: #8A8A93; }

/* MISTAKE 1 — price set in error-red */
.lvl-price { color: #E2483D; font-weight: 700; font-size: 1.02rem; }
.lvl-off { margin-left: 6px; font-size: .7rem; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: #F6E6C8; color: #8A6A1F; }

/* MISTAKE 2 — the total explained in prose */
.lvl-prose { display: block; font-size: .78rem; line-height: 1.45; text-align: left; color: #16161A; }

/* MISTAKE 3 — summary labels with no amounts */
.lvl-rows { display: grid; gap: 6px; }
.lvl-rows span { display: flex; justify-content: space-between; font-size: .8rem; }
.lvl-rows i { font-style: normal; color: #6E6E77; }

/* MISTAKE 4 — auto-renewal buried in unreadable micro-type */
.lvl-fine { display: block; font-size: .58rem; line-height: 1.35; color: #C6C6CC; text-align: left; }

.lvl-pay { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.lvl-visa { background: #1A1F71; color: #fff; font-size: .58rem; font-weight: 700; letter-spacing: .06em; padding: 4px 7px; border-radius: 4px; }
.lvl-dots { font-size: .82rem; letter-spacing: .06em; }

/* MISTAKE 5 — destructive red on the confirming action */
.lvl-cta {
  display: block; width: 100%; text-align: center;
  background: #E2483D; color: #fff;
  font-weight: 600; font-size: .92rem;
  padding: 13px; border-radius: 12px;
}

/* ── clickable hotspots (shared by every level) ── */
.hot {
  background: none;
  border: 1px dashed transparent;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit; color: inherit; text-align: inherit;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.hot:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.hot-block { display: block; width: 100%; }

.hot.solved {
  position: relative;
  border-color: var(--coral);
  border-style: solid;
  background: color-mix(in srgb, var(--coral) 9%, transparent);
  cursor: default;
  animation: nab .5s var(--ease-out);
}
@keyframes nab { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }

/* corner handles, as on a selected object in a design tool */
.hot.solved::before, .hot.solved::after {
  content: ""; position: absolute; width: 7px; height: 7px;
  background: #fff; border: 1.5px solid var(--coral); border-radius: 1px;
}
.hot.solved::before { top: -4px; left: -4px; }
.hot.solved::after  { bottom: -4px; right: -4px; }

/* a miss nudges the whole screen rather than punishing one element */
.lvl-screen.wrong { animation: nudge .38s var(--ease); }
@keyframes nudge {
  0%,100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}

/* hotspots sit on the light screen, so the affordance inverts */
.lvl-screen .hot { border-radius: 10px; }
.lvl-screen .hot:hover { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.lvl-screen .hot.solved { background: color-mix(in srgb, var(--coral) 12%, transparent); }
.lvl-screen .hot.solved::before, .lvl-screen .hot.solved::after { background: #fff; }

/* verdict drawer */
.verdict {
  border-top: 1px solid var(--line-soft);
  background: var(--surface-2);
  padding: 16px 20px;
  min-height: 92px;
  display: grid; align-content: center;
}
.verdict-hint { font-size: .86rem; color: var(--ink-3); }

.verdict-item { display: grid; gap: 6px; animation: rise .45s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.verdict-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--ff-mono); font-size: .64rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-3);
}
.chip-fail { color: var(--coral); border-color: color-mix(in srgb, var(--coral) 40%, transparent); background: color-mix(in srgb, var(--coral) 10%, transparent); }
.chip-law  { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.verdict-title { margin: 0; font-size: .96rem; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.verdict-item p { font-size: .85rem; color: var(--ink-2); line-height: 1.5; }
.verdict-done { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.verdict-done b { color: var(--mint); }

.demo-caption {
  margin-top: 14px; text-align: center;
  font-family: var(--ff-mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.kbd {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 5px;
  border: 1px solid var(--line); color: var(--accent);
  margin-right: 4px; vertical-align: -3px;
}

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  padding: 13px 0;
  margin: 0 calc(var(--pad) * -1);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 22px; width: max-content;
  animation: slide 42s linear infinite;
  font-family: var(--ff-mono); font-size: .74rem;
  text-transform: uppercase; letter-spacing: .16em; color: var(--ink-3);
}
.marquee-track i { color: var(--accent); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(64px, 6.5vw, 96px) var(--pad); max-width: var(--maxw); margin: 0 auto; }

.sec-head { max-width: 46rem; margin-bottom: clamp(36px, 4vw, 52px); position: relative; }
.sec-head.narrow { max-width: 38rem; }
.sec-num {
  display: block; margin-bottom: 18px;
  font-family: var(--ff-mono); font-size: .72rem;
  letter-spacing: .2em; color: var(--accent);
}
.sec-num::before { content: "["; margin-right: 4px; color: var(--ink-3); }
.sec-num::after  { content: "]"; margin-left: 4px; color: var(--ink-3); }
.sec-head h2 em { color: var(--accent); }
.sec-sub { margin-top: 20px; font-size: 1.05rem; color: var(--ink-2); max-width: 36em; }

/* ---------- why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.card {
  position: relative;
  padding: 32px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  background-image: var(--card-sheen);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: auto auto -40% -20%;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  opacity: 0; transition: opacity .55s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow-sm); }
.card:hover::before { opacity: 1; }
.card-num {
  position: relative;
  font-family: var(--ff-mono); font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.card h3 { position: relative; margin: 14px 0 12px; font-size: 1.32rem; letter-spacing: -.022em; }
.card p  { position: relative; color: var(--ink-2); font-size: .96rem; line-height: 1.6; }

/* ---------- feature plates (Bevel-style tinted cards) ---------- */
.plates { padding-top: clamp(48px, 6vw, 80px); }
.plate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }

.plate {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(26px, 2.4vw, 38px) clamp(22px, 2vw, 32px) 0;
  min-height: clamp(430px, 46vw, 560px);
  display: flex; flex-direction: column;
  overflow: hidden;                 /* the screenshot bleeds off the bottom */
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.plate-1 { background: linear-gradient(170deg, var(--tint-1), #F4F1FE 78%); }
.plate-2 { background: linear-gradient(170deg, var(--tint-2), #F1FAF6 78%); }
.plate-3 { background: linear-gradient(170deg, var(--tint-3), #F1F6FE 78%); }
.plate:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }

.plate h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  letter-spacing: -.04em;
  margin-bottom: 12px;
}
.plate p {
  color: var(--ink-2);
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
  line-height: 1.5;
  max-width: 24ch;
}

/* the shot sits flush to the bottom edge and is cropped by the plate */
.plate-shot { margin-top: auto; padding-top: 28px; display: flex; justify-content: center; }
.plate-shot img,
.shot-slot {
  width: min(80%, 268px);
  margin-bottom: -16%;              /* crop: the phone runs off the card */
}
.shot-slot {
  aspect-ratio: 1170 / 2532;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -6px 40px -12px rgba(24,30,62,.28);
}
/* a real screenshot carries its own frame and corners — don't re-round it,
   and use drop-shadow so the shadow follows the device, not a box */
.plate-shot img {
  height: auto;
  object-fit: contain;
  object-position: top center;
  filter: drop-shadow(0 14px 30px rgba(24,30,62,.22));
}

/* placeholder until the real screenshots land */
.shot-slot {
  display: grid; align-content: start; justify-items: center; gap: 6px;
  padding: 22px 14px;
  background: rgba(255,255,255,.6);
  border: 1.5px dashed color-mix(in srgb, var(--accent) 34%, transparent);
  border-bottom: none;
}
.shot-note {
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .02em;
  color: var(--accent); text-align: center; word-break: break-all;
}
.shot-dim {
  font-family: var(--ff-mono); font-size: .6rem;
  letter-spacing: .1em; color: var(--ink-3);
}

@media (max-width: 900px) {
  .plate-grid { grid-template-columns: 1fr; }
  .plate { min-height: 0; padding-bottom: 0; }
  .plate p { max-width: 40ch; }
  .plate-shot img, .shot-slot { width: min(62%, 250px); }
}

/* ---------- modes ---------- */
.mode {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(36px, 4.5vw, 60px) 0;
  border-top: 1px dashed var(--line);
}
.mode-alt .mode-copy { order: 2; }
.mode-alt .mode-visual { order: 1; }

.mode-tag {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 16px;
}
.mode-tag span {
  padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.mode-copy h3 { margin-bottom: 16px; }
.mode-copy > p { color: var(--ink-2); font-size: 1rem; line-height: 1.65; }

.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 11px; }
.ticks li {
  position: relative; padding-left: 28px;
  font-size: .93rem; color: var(--ink-2);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 13px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* the hero product shot replaced the hand-built phone mock that used to live
   here; the playable demo frame moved into this section instead */
.hunt-live { width: min(420px, 100%); }

/* ---------- puzzle (playable) ---------- */
.puzzle {
  width: min(400px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background-image: var(--card-sheen);
}
.puzzle-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
}
.reset {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 11px; cursor: pointer;
  font-family: var(--ff-mono); font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  transition: color .3s, border-color .3s;
}
.reset:hover { color: var(--accent); border-color: var(--accent); }

.puzzle-list { list-style: none; margin: 0; padding: 16px; display: grid; gap: 9px; }

.piece {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .28s var(--ease), background .3s;
}
.piece:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.piece.dragging {
  /* no transform transition while dragging: the piece must track the pointer
     exactly, and the drop-target math reads its live rect */
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  cursor: grabbing;
  border-color: var(--accent);
  border-style: dashed;
  box-shadow: 0 18px 40px -16px var(--glow);
  transform: scale(1.02);
  z-index: 5; position: relative;
  background: var(--surface);
}
.piece.settling { transition: transform .32s var(--ease-out); }

.grip { width: 12px; height: 20px; flex: none; opacity: .5;
  background-image: radial-gradient(currentColor 1px, transparent 1.2px);
  background-size: 5px 5px; color: var(--ink-3);
}
.piece-face { flex: 1; border-radius: 8px; padding: 8px 12px; font-size: .88rem; }
.face-image { height: 46px; display: grid; place-items: center;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); }
.face-title { font-weight: 600; font-size: 1rem; }
.face-price { font-family: var(--ff-mono); font-weight: 500; }
.face-meta  { color: var(--ink-3); font-size: .8rem; }
.face-cta   { background: var(--accent); color: var(--accent-ink); font-weight: 600; text-align: center; }

.puzzle-list.solved .piece { border-color: color-mix(in srgb, var(--mint) 50%, transparent); }

.puzzle-verdict {
  padding: 14px 18px; border-top: 1px solid var(--line-soft);
  background: var(--surface-2);
  font-size: .84rem; color: var(--ink-3); line-height: 1.5;
  min-height: 62px; display: grid; align-content: center;
}
.puzzle-verdict.win { color: var(--ink-2); }
.puzzle-verdict.win b { color: var(--mint); }

/* ---------- flat-lay break ---------- */
.flatlay {
  position: relative;
  margin: clamp(48px, 7vw, 96px) calc(var(--pad) * -1) 0;
  padding: clamp(40px, 5vw, 72px) 0 0;
  background: #fff;
  overflow: hidden;                  /* the edge objects run off the page */
  border-top: 1px dashed var(--line);
}
.flatlay-copy { max-width: 46rem; margin: 0 auto; text-align: center; padding: 0 var(--pad); }
.flatlay-copy h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); }
.flatlay-copy > p {
  margin: 20px auto 0; max-width: 34em;
  color: var(--ink-2); font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.6;
}
.flatlay-copy .cta-row { margin-top: 30px; }

/* the scene: a single large phone, cropped by the bottom of the section */
.flatlay-scene {
  display: flex; justify-content: center;
  height: clamp(320px, 38vw, 540px);
  margin-top: clamp(24px, 3.5vw, 48px);
}
.obj { display: block; }
.obj img, .obj-slot { display: block; width: 100%; height: auto; }

.obj-phone {
  width: clamp(230px, 27vw, 380px);
  filter: drop-shadow(0 34px 54px rgba(24, 30, 62, .24));
}

/* placeholder until assets/shot-home.png exists */
.obj-slot {
  aspect-ratio: 328 / 681;
  display: grid; place-content: center; gap: 5px;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 30px;
  background: color-mix(in srgb, var(--accent) 5%, #fff);
  font-family: var(--ff-mono); letter-spacing: .04em;
  color: var(--accent); text-align: center; padding: 10px;
}
.obj-slot b { font-size: .72rem; font-weight: 500; }
.obj-slot i { font-style: normal; font-size: .6rem; color: var(--ink-3); letter-spacing: .1em; }

/* ---------- lesson card ---------- */
.lesson-card {
  width: min(420px, 100%);
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  background-image: var(--card-sheen);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.lesson-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 30%, transparent), transparent 46%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px;
}
.lesson-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.lesson-law { font-family: var(--ff-mono); font-size: .68rem; color: var(--ink-3); letter-spacing: .08em; }
.lesson-card h4 { font-size: 1.28rem; margin-bottom: 10px; letter-spacing: -.022em; }
.lesson-card > p { font-size: .92rem; color: var(--ink-2); line-height: 1.6; }
.lesson-card b { color: var(--ink); font-weight: 600; }

.ba { display: flex; align-items: center; gap: 14px; margin: 22px 0 16px; }
.ba-col { flex: 1; display: grid; gap: 7px; justify-items: start;
  padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.ba-tag { font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ba-swatch { font-family: var(--ff-mono); font-size: 1rem; font-weight: 500; }
.s-bad  { color: color-mix(in srgb, var(--ink-3) 42%, var(--surface-2)); }
.s-good { color: var(--ink); }
.ba-num { font-family: var(--ff-mono); font-size: .7rem; }
.ba-col.bad  .ba-num { color: var(--coral); }
.ba-col.good .ba-num { color: var(--mint); }
.ba-col.good { border-color: color-mix(in srgb, var(--mint) 40%, transparent); }
.ba-arrow { color: var(--ink-3); font-size: 1.1rem; }
.lesson-foot { font-family: var(--ff-mono); font-size: .68rem; color: var(--ink-3); letter-spacing: .04em; }

/* ---------- progress ladder ---------- */
.progress {
  max-width: none;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.prog-inner { max-width: var(--maxw); margin: 0 auto; }

.ladder { list-style: none; margin: 0; padding: 0; counter-reset: rung; }
.rung {
  display: grid; grid-template-columns: 96px 1fr auto;
  gap: 24px; align-items: center;
  padding: 26px 4px;
  border-top: 1px solid var(--line);
  position: relative;
}
.rung:last-child { border-bottom: 1px solid var(--line); }
.rung::after {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0;
  background: var(--accent);
  transition: width .7s var(--ease-out);
}
.rung:hover::after { width: 100%; }
.rung-no { font-family: var(--ff-mono); font-size: .78rem; color: var(--ink-3); letter-spacing: .04em; }
.rung h3 { font-size: 1.18rem; letter-spacing: -.02em; margin-bottom: 5px; }
.rung p { font-size: .93rem; color: var(--ink-2); }
.rung-badge {
  font-family: var(--ff-mono); font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px;
  border: 1px dashed var(--line); color: var(--ink-3);
  white-space: nowrap;
}
.rung.done .rung-badge { border-style: solid; border-color: color-mix(in srgb, var(--mint) 45%, transparent); color: var(--mint); }
.rung.now .rung-badge  { border-style: solid; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rung.now .rung-no { color: var(--accent); }

/* the ladder keeps growing — this rung is the weekly drop, not a tier */
.rung-next { border-top-style: dashed; }
.rung-next .rung-no { color: var(--mint); }
.rung-next .rung-badge {
  border-style: solid;
  border-color: color-mix(in srgb, var(--mint) 45%, transparent);
  background: color-mix(in srgb, var(--mint) 12%, transparent);
  color: var(--mint);
}
.rung-next .rung-badge::before {
  content: ""; display: inline-block; vertical-align: 1px;
  width: 6px; height: 6px; margin-right: 7px; border-radius: 50%;
  background: var(--mint);
  animation: pulse 2.6s infinite;
}

/* ---------- tag cloud ---------- */
.tag-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud li {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .92rem; color: var(--ink-2);
  transition: transform .35s var(--ease), color .3s, border-color .3s, background .3s;
}
.tag-cloud li:hover { transform: translateY(-3px) rotate(-1.2deg); color: var(--ink); border-color: var(--accent); }
.tag-cloud li.hi {
  font-style: italic; font-weight: 600; letter-spacing: -.02em;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

/* ---------- faq ---------- */
.acc { display: grid; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer;
  padding: 24px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem); font-weight: 500; letter-spacing: -.02em;
  transition: color .3s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent); }
.pm { position: relative; width: 15px; height: 15px; flex: none; }
.pm::before, .pm::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .4s var(--ease);
}
.pm::after { transform: rotate(90deg); }
details[open] .pm::after { transform: rotate(0); }
details[open] summary { color: var(--accent); }
.acc details p {
  padding: 0 60px 26px 4px;
  color: var(--ink-2); font-size: .97rem; line-height: 1.65;
  max-width: 56em;
  animation: rise .4s var(--ease-out);
}

/* links inside FAQ answers need to look like links — the global reset strips
   colour and underline from every anchor */
.acc details p a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  transition: border-color .3s var(--ease);
}
.acc details p a:hover { border-bottom-color: var(--accent); }

/* ---------- final cta ---------- */
.get-card {
  position: relative;
  text-align: center;
  padding: clamp(46px, 7vw, 84px) clamp(24px, 5vw, 64px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 100% at 50% 0%, var(--glow), transparent 62%),
    var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.get-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 0%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 0%, #000, transparent 76%);
}
.get-card > * { position: relative; }
.get-corner {
  position: absolute; width: 12px; height: 12px;
  border: 2px solid var(--accent); border-radius: 2px;
  background: var(--surface);
}
.get-corner.tl { top: 14px; left: 14px; }
.get-corner.tr { top: 14px; right: 14px; }
.get-corner.bl { bottom: 14px; left: 14px; }
.get-corner.br { bottom: 14px; right: 14px; }

.get-card h2 { margin: 22px 0 0; }
.get-card h2 em { color: var(--accent); }
.get-sub { margin: 20px auto 0; max-width: 34em; color: var(--ink-2); }
.get-meta {
  margin-top: 26px;
  font-family: var(--ff-mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.get-soon { margin-top: 12px; font-size: .88rem; color: var(--ink-3); }
.get-soon a {
  color: var(--ink-2);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.get-soon a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line-soft); padding: 44px var(--pad); background: var(--bg-2); }
.foot-in {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.foot .brand { margin-right: 0; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-size: .87rem; color: var(--ink-2); transition: color .3s; }
.foot-links a:hover { color: var(--accent); }
.foot-note { margin-left: auto; font-size: .8rem; color: var(--ink-3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  /* the product shot can't sit beside the copy any more — stack it under */
  .hero-inner { min-height: 0; }
  .hero-head { max-width: none; }
  .hero-foot {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: clamp(32px, 5vw, 48px);
  }
  .hero-shot {
    width: 100%; max-width: 520px;
    margin: 20px auto clamp(-56px, -5vw, -24px);
  }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .mode, .why-grid { grid-template-columns: 1fr; }
  .mode-alt .mode-copy { order: 0; }
  .mode-alt .mode-visual { order: 0; }
  .mode-visual { margin-top: 8px; }
  .rung { grid-template-columns: 1fr auto; gap: 12px 18px; }
  .rung-no { grid-column: 1 / -1; }
  .foot-note { margin-left: 0; width: 100%; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 1.6rem; }
  .btn { padding: 12px 18px; }
  /* the pill grows, the square icon buttons stay square */
  .cta-row .btn:not(.btn-icon), .cta-row .soon { flex: 1; justify-content: center; }
  .cta-row .btn-icon { flex: none; }
  .acc details p { padding-right: 10px; }
  .ba { flex-direction: column; align-items: stretch; }
  .ba-arrow { transform: rotate(90deg); text-align: center; }
}
