/* WiFi X-Ray — landing page stylesheet.
   Loaded after site.css and scoped to body.home, so the research library and the
   legal pages keep the quiet document design system untouched.

   Direction: a dark "signal" canvas so the app's light macOS screenshots read as
   objects floating in front of it, mint accent matched to Theme.accent in the app,
   and a cool blue used only for depth and glow. Everything is token-driven so the
   light theme is a token swap rather than a second stylesheet.

   Motion rule: every scroll effect degrades to "already visible" under
   prefers-reduced-motion. Nothing is gated behind an animation finishing. */

/* ============================================================
   1. Tokens
   ============================================================ */

body.home {
  --mint:        #7bf0a8;
  --mint-deep:   #34c759;
  --mint-ink:    #052012;
  --blue:        #4f7dff;
  --violet:      #8b6dff;

  --fg:          #dfe8f2;
  --fg-strong:   #ffffff;
  --muted:       #8f9fb4;
  --faint:       #64748b;

  --bg:          #050910;
  --bg-2:        #08101c;
  --surface:     rgba(255, 255, 255, .038);
  --surface-2:   rgba(255, 255, 255, .065);
  --line:        rgba(178, 205, 240, .13);
  --line-strong: rgba(178, 205, 240, .26);

  --accent:      var(--mint);
  --accent-hover:#a8f7c6;
  --accent-soft: rgba(123, 240, 168, .11);
  --accent-line: rgba(123, 240, 168, .30);

  --glow-mint:   0 0 60px rgba(123, 240, 168, .22);
  --glow-blue:   0 0 90px rgba(79, 125, 255, .28);

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --page: 1240px;
  --gut:  clamp(20px, 4vw, 56px);

  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  background: var(--bg);
  color: var(--fg);
  overflow-x: clip;
}

body.home.theme-light {
  --mint:        #15803d;
  --mint-deep:   #0f6b31;
  --mint-ink:    #ffffff;
  --blue:        #2f5fe0;
  --violet:      #6d4fe0;

  --fg:          #24352e;
  --fg-strong:   #061410;
  --muted:       #5d6f68;
  --faint:       #85958e;

  --bg:          #f4f8f5;
  --bg-2:        #e9f2ec;
  --surface:     rgba(255, 255, 255, .78);
  --surface-2:   #ffffff;
  --line:        rgba(16, 48, 34, .11);
  --line-strong: rgba(16, 48, 34, .2);

  --accent:      var(--mint);
  --accent-hover:#0f6b31;
  --accent-soft: rgba(21, 128, 61, .09);
  --accent-line: rgba(21, 128, 61, .24);

  --glow-mint:   0 0 60px rgba(21, 128, 61, .12);
  --glow-blue:   0 0 90px rgba(47, 95, 224, .12);
}

/* ============================================================
   2. Page furniture
   ============================================================ */

body.home .wrap { max-width: var(--page); padding: 0 var(--gut); }

/* Scroll progress rail --------------------------------------------------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto; height: 2px; z-index: 90; pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%; width: 100%;
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--mint), var(--blue) 70%, var(--violet));
  box-shadow: 0 0 14px rgba(123, 240, 168, .55);
}

/* Ambient field ---------------------------------------------------------- */
.bg-field {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 46% at 72% -6%,  rgba(79, 125, 255, .26), transparent 62%),
    radial-gradient(ellipse 52% 40% at 12% 4%,   rgba(123, 240, 168, .13), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 108%, rgba(139, 109, 255, .16), transparent 65%),
    var(--bg);
}
.bg-field::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 100% 62% at 50% 0%, #000 12%, transparent 78%);
  opacity: .5;
}
.theme-light .bg-field {
  background:
    radial-gradient(ellipse 70% 46% at 78% -8%, rgba(47, 95, 224, .10), transparent 60%),
    radial-gradient(ellipse 55% 40% at 8% 2%,   rgba(21, 128, 61, .10),  transparent 58%),
    var(--bg);
}

/* Header ----------------------------------------------------------------- */
body.home .site-head {
  background: transparent; border-bottom: 1px solid transparent;
  backdrop-filter: none; transition: background .3s var(--ease-soft), border-color .3s var(--ease-soft);
}
body.home .site-head .wrap { height: 68px; }
body.home .site-head.is-stuck {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}
body.home .brand { color: var(--fg-strong); font-weight: 700; letter-spacing: -.02em; font-size: 17px; }
body.home .brand-mark {
  width: 27px; height: 27px; border-radius: 9px; overflow: hidden;
  box-shadow: 0 0 0 4px rgba(123, 240, 168, .09), var(--glow-mint);
}
body.home .brand-mark svg { width: 100%; height: 100%; display: block; }
body.home .site-nav { gap: 26px; font-size: 14.5px; }
body.home .site-nav > a { color: var(--muted); font-weight: 550; position: relative; }
body.home .site-nav > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1.5px;
  background: var(--accent); transition: right .3s var(--ease-out);
}
body.home .site-nav > a:hover { color: var(--fg-strong); }
body.home .site-nav > a:hover::after { right: 0; }
body.home .theme-toggle {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font: 700 12.5px var(--sans); letter-spacing: .01em;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px;
  color: var(--muted); background: var(--surface);
  transition: color .2s var(--ease-soft), border-color .2s var(--ease-soft), background .2s var(--ease-soft);
}
body.home .theme-toggle span { font-size: 15px; line-height: 1; }
body.home .theme-toggle:hover { border-color: var(--accent-line); color: var(--fg-strong); }
@media (max-width: 460px) { body.home .theme-toggle b { display: none; } }

/* ============================================================
   3. Buttons
   ============================================================ */

body.home .btn {
  position: relative; border-radius: 999px; font-weight: 680; letter-spacing: -.01em;
  padding: 15px 30px; background: var(--mint); color: var(--mint-ink);
  box-shadow: 0 10px 34px rgba(123, 240, 168, .20);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), background .2s;
  overflow: hidden; isolation: isolate;
}
body.home .btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
body.home .btn:hover { background: var(--accent-hover); color: var(--mint-ink); box-shadow: 0 16px 46px rgba(123, 240, 168, .34); }
body.home .btn:hover::before { transform: translateX(120%); }
body.home .btn.sm { padding: 10px 19px; font-size: 14px; }
body.home .btn.alt {
  background: var(--surface); color: var(--fg-strong); border: 1px solid var(--line-strong);
  box-shadow: none; backdrop-filter: blur(8px);
}
body.home .btn.alt:hover { background: var(--surface-2); border-color: var(--accent-line); color: var(--fg-strong); box-shadow: none; }
body.home .btn.alt::before { display: none; }
body.home .site-nav a.btn, body.home .site-nav a.btn:hover { color: var(--mint-ink); }

/* Magnetic wrapper: JS nudges --mx/--my a few pixels toward the cursor. */
.magnetic { display: inline-flex; transform: translate3d(var(--mx, 0), var(--my, 0), 0); transition: transform .4s var(--ease-out); }

/* ============================================================
   4. Shared section chrome
   ============================================================ */

body.home .sec { position: relative; padding: clamp(84px, 11vw, 152px) 0; }
body.home .sec-head { max-width: 62ch; margin: 0 0 clamp(40px, 5vw, 64px); }
body.home .sec-head.center { margin-inline: auto; text-align: center; }

.eyebrow-row {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-row::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55;
}
.center .eyebrow-row::before { display: none; }

body.home h2.big {
  font-size: clamp(33px, 5.2vw, 62px); line-height: 1.02; letter-spacing: -.042em;
  margin: 0 0 18px; text-wrap: balance;
}
body.home h2.big em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.03em; }
body.home .sec-head p { color: var(--muted); font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.6; margin: 0; max-width: 56ch; }
body.home .sec-head.center p { margin-inline: auto; }

/* Reveal primitive ------------------------------------------------------- */
[data-reveal] {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity .85s var(--ease-out) var(--d, 0s), transform .85s var(--ease-out) var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="scale"] { transform: translate3d(0, 40px, 0) scale(.965); }
[data-reveal="left"]  { transform: translate3d(-28px, 0, 0); }
[data-reveal="right"] { transform: translate3d(28px, 0, 0); }

/* ============================================================
   5. Hero
   ============================================================ */

.hero-x {
  position: relative; padding: clamp(52px, 8vw, 92px) 0 clamp(60px, 8vw, 104px);
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.12fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  max-width: 1420px; margin-inline: auto; padding-inline: var(--gut);
  min-height: min(94vh, 940px);
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 26px;
  padding: 7px 15px 7px 11px; border-radius: 999px;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
}
.pulse-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid currentColor; animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: .9 } 100% { transform: scale(1.9); opacity: 0 } }

.hero-x h1 {
  font-size: clamp(46px, 6.6vw, 92px); line-height: .96; letter-spacing: -.055em;
  margin: 0 0 26px; color: var(--fg-strong);
}
.hero-x h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.04em;
  background: linear-gradient(96deg, var(--mint), #56d8ff 55%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.theme-light .hero-x h1 em { background: none; color: var(--mint); }

/* Line-by-line mask reveal for the headline. */
.reveal-line { display: block; overflow: hidden; padding-bottom: .06em; }
.reveal-line > span {
  display: block; transform: translateY(102%);
  transition: transform 1.05s var(--ease-out) var(--d, 0s);
}
.loaded .reveal-line > span { transform: none; }

.hero-lede {
  font-size: clamp(17px, 1.6vw, 20.5px); line-height: 1.58; color: var(--muted);
  max-width: 46ch; margin: 0 0 34px;
}
.hero-lede b { color: var(--fg-strong); font-weight: 620; }

.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.text-link {
  display: inline-flex; align-items: center; gap: 9px; color: var(--fg-strong);
  font-weight: 620; font-size: 15px; text-decoration: none;
}
.text-link span {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-size: 13px;
  transition: transform .3s var(--ease-out), border-color .3s, background .3s;
}
.text-link:hover { color: var(--accent); text-decoration: none; }
.text-link:hover span { transform: translateY(3px); border-color: var(--accent-line); background: var(--accent-soft); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 36px 0 0; padding: 0; list-style: none;
  font-size: 13px; color: var(--muted); font-weight: 560;
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* Hero stage ------------------------------------------------------------- */
.hero-stage { position: relative; min-width: 0; perspective: 1600px; }
.hero-stage .glow {
  position: absolute; inset: 6% -6% -10% -6%; filter: blur(70px); pointer-events: none;
  background: radial-gradient(ellipse at 60% 45%, rgba(79, 125, 255, .42), transparent 66%);
}
.theme-light .hero-stage .glow { background: radial-gradient(ellipse at 60% 45%, rgba(21, 128, 61, .17), transparent 66%); }

.app-window {
  position: relative; z-index: 2; padding: 9px; border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(255,255,255,.16), rgba(255,255,255,.03));
  border: 1px solid var(--line-strong);
  box-shadow: 0 50px 110px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255,255,255,.09);
  transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 2.5deg));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out);
}
.theme-light .app-window {
  background: #fff; border-color: rgba(16, 48, 34, .12);
  box-shadow: 0 40px 90px rgba(20, 70, 45, .18);
}
.win-bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 9px; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #fb7185; flex: none; }
.win-bar i:nth-child(2) { background: #fbbf24; }
.win-bar i:nth-child(3) { background: #4ade80; }
.win-bar span { margin-left: 10px; font-size: 11.5px; font-weight: 650; color: var(--faint); letter-spacing: .01em; white-space: nowrap; }
.win-bar b { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--accent); font-weight: 700; white-space: nowrap; }
.app-window > img { width: 100%; border-radius: 15px; display: block; border: 1px solid var(--line); }

/* Floating HUD cards over the screenshot. */
.hud {
  position: absolute; z-index: 4; border-radius: var(--r); padding: 14px 16px;
  background: color-mix(in srgb, var(--bg-2) 82%, transparent);
  border: 1px solid var(--line-strong); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .42);
  animation: float 7s var(--ease-soft) infinite;
}
.theme-light .hud { background: rgba(255,255,255,.92); box-shadow: 0 20px 46px rgba(20, 70, 45, .16); }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-11px) } }

.hud-grade { left: clamp(-26px, -2vw, 0px); bottom: -26px; width: 168px; }
.hud-grade small { display: block; font-size: 9px; font-weight: 850; letter-spacing: .14em; color: var(--faint); }
.hud-grade strong { display: block; margin: 3px 0 0; font-size: 50px; line-height: 1; letter-spacing: -.08em; color: var(--fg-strong); }
.hud-grade strong span { font-size: 24px; color: var(--accent); }
.hud-grade p { margin: 6px 0 0; font-size: 10.5px; color: var(--muted); }
.hud-bar { margin-top: 9px; height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 83%; border-radius: 999px; background: linear-gradient(90deg, var(--mint), #56d8ff); }

.hud-scan { right: clamp(-20px, -1.5vw, 0px); top: -22px; width: 214px; padding: 13px 15px; animation-delay: -3.5s; }
.hud-scan header { display: flex; align-items: center; justify-content: space-between; font-size: 9.5px; font-weight: 850; letter-spacing: .13em; color: var(--faint); margin-bottom: 10px; }
.hud-scan header b { color: var(--accent); letter-spacing: .04em; font-size: 10px; }
.scan-row {
  display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--fg);
  padding: 4px 0; opacity: 0; transform: translateX(-8px);
  animation: scanIn .5s var(--ease-out) forwards;
}
.scan-row i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 8px var(--accent); }
.scan-row.unknown i { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.scan-row span { margin-left: auto; color: var(--faint); font-size: 10px; font-variant-numeric: tabular-nums; }
.scan-row:nth-child(2) { animation-delay: .5s } .scan-row:nth-child(3) { animation-delay: .9s }
.scan-row:nth-child(4) { animation-delay: 1.3s } .scan-row:nth-child(5) { animation-delay: 1.7s }
.scan-row:nth-child(6) { animation-delay: 2.1s }
@keyframes scanIn { to { opacity: 1; transform: none } }

/* Scroll cue ------------------------------------------------------------- */
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint);
}
.scroll-cue i { display: block; width: 1px; height: 44px; background: linear-gradient(var(--accent), transparent); }

/* ============================================================
   6. Ticker
   ============================================================ */

.ticker {
  border-block: 1px solid var(--line); padding: 20px 0; overflow: hidden;
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.ticker-track { display: flex; width: max-content; gap: 52px; animation: slide 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%) } }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--muted);
}
.ticker-track span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .6; }

/* ============================================================
   7. Manifesto — word illumination on scroll
   ============================================================ */

.manifesto { padding: clamp(96px, 14vw, 190px) 0; }
.manifesto p {
  font-size: clamp(25px, 3.9vw, 48px); line-height: 1.24; letter-spacing: -.035em;
  max-width: 19ch; margin: 0; font-weight: 620; text-wrap: balance;
}
.manifesto .w { color: var(--faint); transition: color .35s var(--ease-soft), opacity .35s; opacity: .38; }
.manifesto .w.lit { color: var(--fg-strong); opacity: 1; }
.manifesto .w.accent.lit { color: var(--accent); }
.manifesto-foot {
  margin-top: clamp(34px, 4vw, 52px); display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 900px;
}
.manifesto-foot div { border-left: 2px solid var(--accent-line); padding-left: 16px; }
.manifesto-foot h3 { font-size: 15.5px; margin: 0 0 5px; color: var(--fg-strong); }
.manifesto-foot p { font-size: 14.5px; line-height: 1.55; color: var(--muted); font-weight: 400; letter-spacing: 0; max-width: none; }

/* ============================================================
   8. Sticky steps
   ============================================================ */

.steps-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px); align-items: start;
}
.steps-sticky { position: sticky; top: 108px; }
.steps-frame {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--bg-2);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
}
.theme-light .steps-frame { box-shadow: 0 30px 70px rgba(20, 70, 45, .14); }
.steps-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left;
  opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
}
.steps-frame img.on { opacity: 1; transform: none; }
.steps-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
  border-radius: inherit;
}
.steps-rail { display: flex; flex-direction: column; gap: 8px; }
.step {
  position: relative; padding: 30px 0 30px 62px; border-top: 1px solid var(--line);
  cursor: default;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n {
  position: absolute; left: 0; top: 30px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  border: 1px solid var(--line-strong); color: var(--muted);
  transition: all .4s var(--ease-out);
}
.step h3 { font-size: clamp(20px, 2.2vw, 27px); letter-spacing: -.03em; margin: 0 0 9px; color: var(--faint); transition: color .4s var(--ease-soft); }
.step p { margin: 0; color: var(--faint); font-size: 16px; line-height: 1.6; max-width: 46ch; opacity: .72; transition: color .4s var(--ease-soft), opacity .4s var(--ease-soft); }
.step.on .step-n { background: var(--accent); border-color: var(--accent); color: var(--mint-ink); box-shadow: var(--glow-mint); }
.step.on h3 { color: var(--fg-strong); }
.step.on p { color: var(--muted); opacity: 1; }
.step::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0;
  background: var(--accent); transition: width .6s var(--ease-out);
}
.step.on::before { width: 100%; }

/* ============================================================
   9. Bento feature grid
   ============================================================ */

.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr);
}
.tile {
  position: relative; grid-column: span 2; padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .35s var(--ease-soft), transform .45s var(--ease-out), background .35s;
}
.theme-light .tile { background: #fff; box-shadow: 0 10px 30px rgba(20, 70, 45, .05); }
.tile::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none;
  background: radial-gradient(340px circle at var(--px, 50%) var(--py, 0%), rgba(123, 240, 168, .12), transparent 65%);
}
.tile:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.tile:hover::before { opacity: 1; }
.tile.wide { grid-column: span 3; }
.tile.hero-tile { grid-column: span 4; }
.tile .ico {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
  border: 1px solid var(--accent-line);
}
.tile .ico svg { width: 21px; height: 21px; }
.tile h3 { font-size: 19px; letter-spacing: -.02em; margin: 0 0 8px; color: var(--fg-strong); }
.tile p { margin: 0; font-size: 15px; line-height: 1.58; color: var(--muted); }
.tile .tag-free, .tile .tag-pro {
  display: inline-block; margin-top: 14px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.tile .tag-free { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.tile .tag-pro  { color: var(--blue); background: rgba(79, 125, 255, .12); border: 1px solid rgba(79, 125, 255, .3); }

/* The one tile that carries a picture. */
.tile.shot { padding: 0; grid-column: span 6; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: 0; }
.tile.shot .tile-copy { padding: clamp(28px, 3.4vw, 46px); }
.tile.shot figure { margin: 0; align-self: stretch; overflow: hidden; position: relative; min-height: 260px; }
.tile.shot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top;
  border-left: 1px solid var(--line);
}

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile, .tile.wide, .tile.hero-tile { grid-column: span 2; }
  .tile.shot { grid-column: span 4; grid-template-columns: 1fr; }
  .tile.shot figure { min-height: 220px; }
  .tile.shot img { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile.hero-tile, .tile.shot { grid-column: span 1; }
}

/* ============================================================
   10. Grade dial + counters
   ============================================================ */

.grade-band {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 80px); align-items: center;
}
.dial { position: relative; width: min(340px, 78vw); margin-inline: auto; aspect-ratio: 1; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.dial .track { fill: none; stroke: var(--line); stroke-width: 10; }
.dial .arc {
  fill: none; stroke: url(#dialGrad); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: var(--circ) var(--circ); stroke-dashoffset: var(--circ);
  transition: stroke-dashoffset 2.1s var(--ease-out);
  filter: drop-shadow(0 0 14px rgba(123, 240, 168, .5));
}
.dial.in .arc { stroke-dashoffset: calc(var(--circ) - var(--circ) * .83); }
.dial-face {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.dial-face strong { font-size: clamp(64px, 11vw, 104px); line-height: 1; letter-spacing: -.07em; color: var(--fg-strong); }
.dial-face small { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dial-face .lbl { display: block; margin-top: 3px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 800; }

.stat-rows { display: grid; gap: 2px; }
.stat-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.stat-row:first-child { border-top: 1px solid var(--line); }
.stat-row b {
  font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.045em; color: var(--fg-strong);
  font-variant-numeric: tabular-nums; min-width: 2.6ch;
}
.stat-row span { color: var(--muted); font-size: 15.5px; }
.stat-row em { font-style: normal; color: var(--faint); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }

/* ============================================================
   11. Pinned horizontal gallery
   ============================================================ */

.gallery { position: relative; }
.gallery-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.gallery-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 0 var(--gut) 26px; max-width: 1420px; margin-inline: auto; width: 100%;
}
.gallery-head h2 { margin: 0; font-size: clamp(27px, 3.6vw, 44px); letter-spacing: -.04em; }
.gallery-count { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 700; white-space: nowrap; }
.gallery-count b { color: var(--accent); }
.gallery-track {
  display: flex; gap: clamp(16px, 2vw, 30px); padding-inline: var(--gut);
  will-change: transform; transform: translate3d(var(--x, 0px), 0, 0);
}
.slide { flex: 0 0 min(78vw, 860px); }
.slide figure { margin: 0; }
.slide .frame {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong);
  background: var(--bg-2); box-shadow: 0 40px 90px rgba(0, 0, 0, .45);
}
.theme-light .slide .frame { box-shadow: 0 26px 60px rgba(20, 70, 45, .13); }
.slide img { width: 100%; display: block; }
.slide figcaption { margin-top: 16px; display: flex; align-items: baseline; gap: 12px; }
.slide figcaption b { font-size: 17px; color: var(--fg-strong); letter-spacing: -.02em; }
.slide figcaption span { font-size: 14.5px; color: var(--muted); }

@media (max-width: 860px) {
  .gallery { height: auto !important; }
  .gallery-pin { position: static; height: auto; padding: clamp(70px, 10vw, 110px) 0; }
  .gallery-track {
    transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 18px; -webkit-overflow-scrolling: touch;
  }
  .slide { flex-basis: min(84vw, 520px); scroll-snap-align: center; }
}

/* ============================================================
   12. Comparison
   ============================================================ */

.cmp {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); backdrop-filter: blur(10px);
}
.theme-light .cmp { background: #fff; box-shadow: 0 14px 40px rgba(20, 70, 45, .06); }
.cmp table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp thead th {
  font-size: 11.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--faint);
  font-weight: 800; background: color-mix(in srgb, var(--bg-2) 70%, transparent);
}
.cmp thead th.us { color: var(--accent); }
.cmp tbody td:first-child { color: var(--fg); font-weight: 550; }
.cmp tbody td { color: var(--faint); }
.cmp td.us { color: var(--fg-strong); font-weight: 620; background: var(--accent-soft); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out) var(--d, 0s), transform .6s var(--ease-out) var(--d, 0s); }
.cmp.in tbody tr { opacity: 1; transform: none; }
.mark { display: inline-flex; align-items: center; gap: 8px; }
.mark svg { width: 15px; height: 15px; flex: none; }
.mark.y svg { color: var(--accent); }
.mark.n svg { color: var(--faint); opacity: .6; }

/* ============================================================
   13. Privacy statement
   ============================================================ */

.privacy-band { text-align: center; position: relative; }
.privacy-band::before {
  content: ""; position: absolute; inset: -20% 10% auto; height: 420px; pointer-events: none;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 68%);
}
.privacy-band > * { position: relative; }
.privacy-band h2 { font-size: clamp(30px, 5.4vw, 66px); letter-spacing: -.05em; line-height: 1.03; margin: 0 auto 22px; max-width: 16ch; }
.privacy-band > p { color: var(--muted); font-size: clamp(16.5px, 1.6vw, 19px); max-width: 58ch; margin: 0 auto; line-height: 1.6; }
.privacy-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.privacy-chips span {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--fg);
}
.privacy-chips svg { width: 15px; height: 15px; color: var(--accent); }

/* ============================================================
   14. Pricing
   ============================================================ */

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 900px; margin-inline: auto; }
.plan {
  position: relative; padding: 32px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column;
}
.theme-light .plan { background: #fff; box-shadow: 0 12px 36px rgba(20, 70, 45, .06); }
.plan.featured { border-color: transparent; background: var(--bg-2); }
.theme-light .plan.featured { background: #fff; }
.plan.featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), var(--mint), var(--blue), var(--violet), var(--mint));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 7s linear infinite;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spinBorder { to { --a: 360deg } }
.plan-badge {
  position: absolute; top: -12px; right: 26px; padding: 5px 13px; border-radius: 999px;
  background: var(--mint); color: var(--mint-ink); font-size: 10.5px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase;
}
.plan h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 750; }
.plan .amount { display: flex; align-items: baseline; gap: 9px; margin-bottom: 6px; }
.plan .amount b { font-size: 46px; letter-spacing: -.05em; color: var(--fg-strong); line-height: 1; }
.plan .amount span { font-size: 14px; color: var(--muted); }
.plan > p { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 11px; font-size: 15px; color: var(--fg); line-height: 1.5; }
.plan li svg { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; }
.plan .btn { width: 100%; margin-top: auto; }

/* ============================================================
   15. FAQ
   ============================================================ */

.faq-x { max-width: 820px; margin-inline: auto; }
.faq-x details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq-x summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: clamp(16.5px, 1.8vw, 20px); font-weight: 620; color: var(--fg-strong); letter-spacing: -.02em;
  transition: color .25s;
}
.faq-x summary::-webkit-details-marker { display: none; }
.faq-x summary:hover { color: var(--accent); }
.faq-x summary i {
  position: relative; width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-strong); transition: all .3s var(--ease-out);
}
.faq-x summary i::before, .faq-x summary i::after {
  content: ""; position: absolute; inset: 50% 7px auto; height: 1.5px; background: currentColor; transform: translateY(-50%);
}
.faq-x summary i::after { transform: translateY(-50%) rotate(90deg); transition: transform .3s var(--ease-out); }
.faq-x details[open] summary { color: var(--accent); }
.faq-x details[open] summary i { background: var(--accent-soft); border-color: var(--accent-line); }
.faq-x details[open] summary i::after { transform: translateY(-50%) rotate(0deg); }
.faq-x details > div { padding: 0 0 24px; max-width: 62ch; }
.faq-x details p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* ============================================================
   16. Closing CTA
   ============================================================ */

.cta-x { position: relative; text-align: center; padding: clamp(90px, 12vw, 160px) 0 clamp(96px, 13vw, 170px); overflow: hidden; }
.cta-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.cta-rings i {
  position: absolute; border-radius: 50%; border: 1px solid var(--line);
  width: var(--s); height: var(--s); animation: pulseRing 5s var(--ease-out) infinite;
}
.cta-rings i:nth-child(1) { --s: 300px } .cta-rings i:nth-child(2) { --s: 540px; animation-delay: .9s }
.cta-rings i:nth-child(3) { --s: 800px; animation-delay: 1.8s } .cta-rings i:nth-child(4) { --s: 1100px; animation-delay: 2.7s }
@keyframes pulseRing { 0% { opacity: 0; transform: scale(.86) } 40% { opacity: 1 } 100% { opacity: 0; transform: scale(1.1) } }
.cta-x > .wrap { position: relative; }
.cta-x h2 { font-size: clamp(34px, 6.4vw, 78px); letter-spacing: -.055em; line-height: .98; margin: 0 auto 22px; max-width: 15ch; }
.cta-x p { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 50ch; margin: 0 auto 38px; }
.cta-x .btn-row { justify-content: center; }
.cta-fine { margin-top: 26px !important; font-size: 13.5px !important; color: var(--faint) !important; }

/* ============================================================
   17. Footer
   ============================================================ */

body.home .site-foot { background: transparent; border-top: 1px solid var(--line); padding: 60px 0 44px; }
body.home .foot-grid h4 { color: var(--faint); }
body.home .foot-grid a { color: var(--muted); }
body.home .foot-grid a:hover { color: var(--accent); }
body.home .foot-note { border-color: var(--line); color: var(--faint); }

/* ============================================================
   18. Responsive
   ============================================================ */

@media (max-width: 980px) {
  .hero-x { grid-template-columns: 1fr; min-height: 0; padding-top: 30px; gap: 54px; }
  .hero-x h1 { font-size: clamp(44px, 10vw, 68px); }
  .app-window { transform: none; }
  .hud-scan { top: -18px; right: -8px; transform: scale(.9); transform-origin: top right; }
  .hud-grade { bottom: -20px; left: -8px; transform: scale(.9); transform-origin: bottom left; }
  .scroll-cue { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-sticky { position: static; order: -1; }
  .grade-band { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  /* Both HUD cards over a full-bleed window just cover the screenshot. Keep the
     grade — it is the actual claim — and drop the scan list. */
  .hud-scan { display: none; }
  .hud-grade { bottom: -16px; }
  .win-bar span { display: none; }
  .hero-x { gap: 40px; }
  .hero-lede { margin-bottom: 28px; }
  .hero-meta { margin-top: 26px; gap: 9px 20px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-cta .btn { width: 100%; }
  .hero-cta .magnetic { display: flex; }
  .text-link { justify-content: center; }
  .step { padding-left: 52px; }
  .step-n { width: 34px; height: 34px; }
  .cmp th, .cmp td { padding: 13px 12px; font-size: 14px; }
}

/* ============================================================
   19. Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .cmp tbody tr { opacity: 1 !important; transform: none !important; transition: none !important; }
  .reveal-line > span { transform: none !important; }
  .ticker-track, .hud, .pulse-dot::after, .cta-rings i, .plan.featured::before { animation: none !important; }
  .scan-row { opacity: 1; transform: none; animation: none !important; }
  .gallery { height: auto !important; }
  .gallery-pin { position: static; height: auto; padding: 90px 0; }
  .gallery-track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; }
  .slide { scroll-snap-align: center; }
  .dial .arc { transition: none; }
  .app-window { transform: none !important; }
}
