/* ForecastPro landing site.
 *
 * Brand tokens come from tokens.css (a verbatim copy of design/tokens.css, shared with the
 * web app). This file only adds landing-specific tokens (prefixed --lp-) and components.
 * No external fonts, no inline styles (the CSP in _headers forbids them).
 */

:root {
  --lp-max: 1160px;
  --lp-narrow: 760px;
  --lp-gutter: clamp(16px, 4vw, 32px);
  --lp-header-h: 64px;
  --lp-body: 16px;
  --lp-hero: clamp(2.3rem, 1.3rem + 4.2vw, 3.75rem);
  --lp-h2: clamp(1.75rem, 1.25rem + 2vw, 2.6rem);
  --lp-h3: 1.125rem;
  --lp-section-y: clamp(72px, 10vw, 128px);
  --lp-grad-text: linear-gradient(120deg, #f2f3f5 10%, #aeb7ff 55%, #8b95ff 100%);
  --lp-grad-border: linear-gradient(140deg, rgba(174, 183, 255, 0.55), rgba(88, 101, 242, 0.08) 45%, rgba(88, 101, 242, 0.4));
  --lp-card-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 40%);
  --lp-header-bg: rgba(26, 27, 30, 0.72);
  --lp-grid-line: rgba(255, 255, 255, 0.04);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--lp-header-h) + 20px);
  background: var(--bg-deepest);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-deepest);
  color: var(--text-default);
  font: 400 var(--lp-body)/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img, svg { display: block; max-width: 100%; }

ul, ol { margin: 0; padding: 0; }

::selection { background: rgba(88, 101, 242, 0.45); color: #fff; }

/* Visible, consistent focus (brand focus ring from tokens). */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid transparent; /* shows up in forced-colors mode */
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-input);
}
p a:focus-visible,
li a:focus-visible,
dd a:focus-visible {
  box-shadow: none;
  outline: 2px solid var(--accent-text);
  border-radius: 2px;
}

#main:focus-visible { box-shadow: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-input);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 0 var(--lp-gutter);
}

.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Buttons (same shape language as the app) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-input);
  font: inherit;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .icon-sm { transition: transform var(--dur) var(--ease); }
.btn:hover .icon-sm { transform: translateX(2px); }

.btn-lg { height: 48px; padding: 0 22px; font-size: var(--text-md); border-radius: 8px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-secondary {
  background: var(--bg-active);
  color: var(--text-primary);
  border-color: var(--border-soft);
}
.btn-secondary:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--lp-header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-slow) var(--ease), background var(--dur-slow) var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--border-soft);
  background: rgba(26, 27, 30, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--lp-header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--text-primary); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px -6px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.brand-mark svg { width: 21px; height: 21px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-input);
  color: var(--text-muted);
  font-size: var(--text-base);
  font-weight: 500;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-link:hover,
.nav-link.is-active { color: var(--text-primary); background: var(--bg-hover); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-input);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
}
.nav-toggle[hidden] { display: none !important; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Header login shortcut shown on small screens only when JS (and the menu) is unavailable. */
.nav-fallback { display: none; }

@media (max-width: 880px) {
  .site-nav { display: none; }
  .nav-fallback { display: inline-flex; margin-left: auto; }

  .js .nav-fallback { display: none; }
  .js .nav-toggle { display: grid; }
  .js .site-nav {
    position: absolute;
    top: var(--lp-header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 0;
    padding: 12px var(--lp-gutter) 20px;
    /* Opaque on purpose: a translucent panel inside the blurred header lets the page show through. */
    background: var(--bg-deepest);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
  }
  .js .site-nav.is-open { display: flex; }
  .js .nav-links { flex-direction: column; }
  .js .nav-link { height: 44px; font-size: var(--text-md); }
  .js .nav-actions { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .js .nav-actions .btn { height: 44px; }
  .js .nav-actions .btn-ghost { background: var(--bg-active); border-color: var(--border-soft); color: var(--text-primary); }
}

/* ---------- Shared section scaffolding ---------- */

.section { position: relative; padding: var(--lp-section-y) 0; }
.section + .section { padding-top: 0; }
.hero + .section { padding-top: clamp(64px, 8vw, 104px); }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2 { font-size: var(--lp-h2); letter-spacing: -0.025em; }
.section-lead {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: clamp(16px, 0.9rem + 0.35vw, 18px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent-text);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.8;
}
.section-head .eyebrow::after {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.8;
}

.grad-text {
  background: var(--lp-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid rgba(88, 101, 242, 0.28);
  flex-shrink: 0;
}
.icon-tile .icon { width: 20px; height: 20px; }

.disclaimer {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}
.disclaimer strong { color: var(--text-default); font-weight: 600; }

/* Pills used across illustrations (mirrors the app's action/status pills). */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill-buy     { background: var(--success-soft); color: var(--success-text); }
.pill-hold    { background: rgba(128, 132, 142, 0.2); color: var(--text-muted); }
.pill-accent  { background: var(--accent-soft);  color: var(--accent-text); }


/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(44px, 6vw, 84px) 0 clamp(8px, 2vw, 24px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, var(--lp-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--lp-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 50% at 50% 0%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 50% at 50% 0%, #000 35%, transparent 80%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -320px;
  width: min(1100px, 140vw);
  height: 720px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 35% 50%, rgba(88, 101, 242, 0.30), transparent),
    radial-gradient(closest-side at 70% 55%, rgba(0, 168, 252, 0.10), transparent);
  pointer-events: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(88, 101, 242, 0.12);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
}
.hero-kicker .pulse {
  position: relative;
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--success-text);
}
.hero-kicker .pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--success-text);
  opacity: 0;
  animation: lp-pulse 2.4s var(--ease) infinite;
}
@keyframes lp-pulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: var(--lp-hero);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 750;
}
.hero-lead {
  max-width: 40em;
  color: var(--text-muted);
  font-size: clamp(17px, 0.95rem + 0.4vw, 19px);
  line-height: 1.6;
}
.hero-lead strong { color: var(--text-primary); font-weight: 600; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero .cta-row { justify-content: center; margin-top: 30px; }
.btn .icon-down { transition: transform var(--dur) var(--ease); }
.btn:hover .icon-sm.icon-down { transform: translateY(2px); }

/* Two unbreakable halves: on one line they are joined by a middle dot; where they cannot fit
   side by side they stack, and that dot is hidden, so no line starts or ends with a "·". */
.hero-price {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 14px;
}
.hero-price strong { color: var(--text-primary); font-weight: 650; }
.hp-group { display: inline-flex; gap: 10px; white-space: nowrap; }
.hp-sep { color: var(--text-dim); }
@media (max-width: 560px) {
  .hero-price { flex-direction: column; align-items: center; }
  .hp-sep-mid { display: none; }
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 16px;
  list-style: none;
  color: var(--text-default);
  font-size: var(--text-base);
  font-weight: 500;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon-sm { color: var(--success-text); }

.hero-disclaimer { max-width: 46em; margin: 28px auto 0; text-align: center; }

/* The stage: real screenshots in device frames over the candlestick artwork. */
.stage {
  position: relative;
  isolation: isolate;
  margin: clamp(40px, 6vw, 64px) auto 0;
  max-width: 1100px;
}
.stage-devices { position: relative; padding-bottom: clamp(28px, 4vw, 48px); }
.stage-art {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -6%;
  width: max(100vw, 1200px);
  max-width: none;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 82%, transparent);
}
.art-wick { fill: none; stroke-width: 1.4; }
.art-rise { stroke: rgba(69, 196, 116, 0.42); fill: rgba(69, 196, 116, 0.26); }
.art-fall { stroke: rgba(255, 116, 121, 0.36); fill: rgba(255, 116, 121, 0.2); }
.art-body { stroke-width: 1; }
.art-ma { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; }

.device-browser {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-deepest);
  box-shadow:
    0 0 0 1px rgba(174, 183, 255, 0.28),
    0 0 0 6px rgba(88, 101, 242, 0.06),
    0 50px 120px -40px rgba(88, 101, 242, 0.55),
    0 30px 80px -30px rgba(0, 0, 0, 0.85);
}
.device-browser::after {
  /* A soft sheen along the top edge of the glass. */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 12%);
  pointer-events: none;
}
.browser-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  background: #202124;
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 7px; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--bg-active); }
.browser-dots span:first-child { background: #5a3b3d; }
.browser-dots span:nth-child(2) { background: #5a4d33; }
.browser-dots span:nth-child(3) { background: #33503f; }
.browser-url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.browser-url .icon-xs { color: var(--success-text); }
.browser-bar .demo-tag { justify-self: end; }
.icon-xs { width: 12px; height: 12px; flex-shrink: 0; }

.shot {
  width: 100%;
  height: auto;
  background: var(--bg-deepest);
}

.device-phone {
  position: absolute;
  right: clamp(-40px, -3vw, -12px);
  bottom: 0;
  width: clamp(132px, 22%, 244px);
  padding: 7px;
  border-radius: 34px;
  background: linear-gradient(160deg, #3b3d45, #121316 45%, #26272c);
  box-shadow:
    0 0 0 1px rgba(174, 183, 255, 0.22),
    0 40px 80px -24px rgba(0, 0, 0, 0.9),
    0 20px 60px -20px rgba(88, 101, 242, 0.45);
}
.device-phone picture { display: block; overflow: hidden; border-radius: 0 0 28px 28px; }
.phone-status {
  display: grid;
  place-items: center;
  height: 26px;
  border-radius: 28px 28px 0 0;
  background: #26272b;
}
.phone-island {
  width: 32%;
  height: 12px;
  border-radius: var(--radius-pill);
  background: #0b0b0d;
}

.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px dashed rgba(181, 186, 193, 0.45);
  border-radius: var(--radius-pill);
  background: rgba(26, 27, 30, 0.85);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stage-caption,
.preview figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: center;
}

@media (max-width: 760px) {
  .browser-bar { grid-template-columns: auto 1fr; height: 32px; padding: 0 10px; }
  .browser-bar .demo-tag { display: none; }
  .browser-url { justify-self: center; font-size: 11px; padding: 3px 10px; }
  .browser-dots span { width: 8px; height: 8px; }
  .browser-dots { gap: 5px; }
  .device-browser { border-radius: 10px; }
  .device-phone { right: -6px; width: 34%; padding: 4px; border-radius: 20px; }
  .device-phone picture { border-radius: 0 0 16px 16px; }
  .phone-status { height: 14px; border-radius: 16px 16px 0 0; }
  .phone-island { height: 6px; }
  .stage-devices { padding-bottom: 36px; }
}
/* Phones: a 1440 px desktop capture would be drawn at under a third of its size, so the hero
   shows the phone capture alone, near its native 260 px (the desktop <picture> also swaps in a
   1x1 placeholder at this width, so it is not downloaded). */
@media (max-width: 640px) {
  .stage .device-browser { display: none; }
  .stage-devices { display: flex; justify-content: center; padding-bottom: 8px; }
  .device-phone {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(274px, 100%);
    padding: 7px;
    border-radius: 34px;
  }
  .device-phone picture { border-radius: 0 0 28px 28px; }
  .phone-status { height: 26px; border-radius: 28px 28px 0 0; }
  .phone-island { height: 12px; }
}
@media (max-width: 520px) {
  .hero .cta-row { width: 100%; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-trust { gap: 8px 16px; font-size: 13px; }
}

/* ---------- How it works ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-soft) 12%, rgba(88, 101, 242, 0.6) 62%, var(--border-soft) 88%, transparent);
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 26px;
  background: var(--lp-card-sheen), var(--bg-base);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.step:hover { border-color: #4b4e57; transform: translateY(-2px); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.step-num {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.step h3 { font-size: var(--lp-h3); margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.step-gate {
  border-color: rgba(88, 101, 242, 0.55);
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.12), rgba(88, 101, 242, 0) 55%), var(--bg-base);
  box-shadow: 0 24px 60px -30px rgba(88, 101, 242, 0.55);
}
.step-gate:hover { border-color: rgba(174, 183, 255, 0.7); }
.step-gate .icon-tile { background: var(--accent); color: #fff; border-color: transparent; }
.step-tag {
  display: inline-block;
  margin: -4px 0 18px;
  color: var(--accent-text);
  font-size: var(--text-sm);
  font-weight: 600;
}
.step-facts {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border-soft);
  list-style: none;
}
.step > p { margin-bottom: 18px; }
.step-facts li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.step-facts span { color: var(--text-dim); }
.step-facts b { color: var(--text-default); font-size: 13px; font-weight: 600; text-align: right; white-space: nowrap; }
.step-facts span { white-space: nowrap; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Real dashboard ---------- */

.section-preview { isolation: isolate; }
.section-preview::before {
  content: "";
  position: absolute;
  inset: 20% 0 auto;
  height: 60%;
  z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(88, 101, 242, 0.16), transparent 70%);
  pointer-events: none;
}
.preview { margin: 0; }
.preview-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  list-style: none;
}
.preview-notes li {
  padding: 16px 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--lp-card-sheen), var(--bg-base);
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.preview-notes b { display: block; margin-bottom: 4px; color: var(--text-primary); font-weight: 600; }

@media (max-width: 800px) {
  .preview-notes { grid-template-columns: 1fr; gap: 10px; }
}

/* Gauge pieces (Fear & Greed mini gauge in the features grid). */
.gauge-track { fill: none; stroke: var(--bg-active); stroke-width: 8; stroke-linecap: round; }
.gauge-needle { stroke: var(--text-primary); stroke-width: 2.5; stroke-linecap: round; }
.gauge-hub { fill: var(--text-primary); }

/* ---------- The math (MathML) ---------- */

.section-math { isolation: isolate; }
.section-math::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--lp-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--lp-grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 40% at 50% 12%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 40% at 50% 12%, #000 10%, transparent 70%);
  pointer-events: none;
}
.math-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.math-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  background: var(--lp-card-sheen), var(--bg-base);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-slow) var(--ease);
}
.math-card:hover { border-color: #4b4e57; }
.math-card-gate {
  border-color: rgba(88, 101, 242, 0.5);
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.10), rgba(88, 101, 242, 0) 45%), var(--bg-base);
}
.math-card-gate:hover { border-color: rgba(174, 183, 255, 0.7); }
.math-head h3 { margin-top: 10px; font-size: var(--lp-h3); }
.math-tag {
  display: inline-block;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.math-tag.tag-gate { color: var(--accent-text); }
.math-params { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.math-params span {
  padding: 2px 9px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-default);
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.eq {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-items: safe center;
  gap: 12px;
  margin: 16px 0;
  padding: 16px 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--bg-input);
  scrollbar-width: thin;
}
.eq math {
  margin: 0;
  color: var(--text-primary);
  font-family: "STIX Two Math", "Cambria Math", "Latin Modern Math", "STIX Math", math;
  font-size: 1.12rem;
}
.eq-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 1.8em;
  max-width: 100%;
}
.eq math[display="block"] { flex: 0 0 auto; margin: 0; }
.eq mtext { font-family: var(--font-sans); font-size: 0.86em; color: var(--text-default); }
.eq mtd { padding: 2px 10px 2px 2px; text-align: left; }
.math-note { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.math-note strong { color: var(--text-primary); }
.mono { font-family: var(--font-mono); font-size: 0.92em; }

.profiles {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--lp-card-sheen), var(--bg-base);
}
.profiles-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 16px; }
.profiles-head h3 { font-size: var(--lp-h3); }
.profiles-head p { color: var(--text-muted); font-size: 14px; }
.profiles .table-wrap { margin: 0; }
.profiles .table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* One column per risk level (parameters down the side), so all three levels fit on a phone. */
.profiles-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.profiles-table thead th:first-child { width: 31%; }
.profiles-table th,
.profiles-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
.profiles-table thead th { color: var(--text-muted); background: var(--bg-input); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.profiles-table tbody th { color: var(--text-primary); font-weight: 600; white-space: normal; }
.profiles-table tbody th .mono { margin-left: 2px; color: var(--accent-text); }
.profiles-table td { color: var(--text-default); font-family: var(--font-mono); font-size: 13.5px; }
.profiles-table tbody tr:last-child th,
.profiles-table tbody tr:last-child td { border-bottom: 0; }
.profiles-table tr > :nth-child(3) { background: rgba(88, 101, 242, 0.06); }
.profiles-table thead th:nth-child(3) { background: rgba(88, 101, 242, 0.12); }
.profiles-foot { margin-top: 14px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 960px) {
  .math-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .math-card, .profiles { padding: 18px; }
  .eq { padding: 14px 10px; margin-left: -6px; margin-right: -6px; }
  .eq math { font-size: 0.95rem; }
  .profiles-table { table-layout: auto; }
  .profiles-table thead th:first-child { width: auto; }
  .profiles-table th,
  .profiles-table td { padding: 10px 8px; }
  .profiles-table thead th { font-size: 11px; letter-spacing: 0.02em; }
  .profiles-table tbody th { font-size: 13.5px; }
  .profiles-table td { font-size: 13px; }
}
/* The narrowest phones (320–360 px): the widest formulas and the trend table fit without a
   scrollbar. */
@media (max-width: 360px) {
  .eq { padding-left: 6px; padding-right: 6px; }
  .eq math { font-size: 0.86rem; }
  .eq mtd { padding-right: 4px; }
}

/* ---------- Safety & control ---------- */

.safety-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.safety-intro h2 { font-size: var(--lp-h2); letter-spacing: -0.025em; }
.safety-intro .section-lead { margin-top: 18px; }

.custody {
  margin: 0;
  padding: clamp(16px, 2.4vw, 24px);
  background: var(--lp-card-sheen), var(--bg-base);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
.custody-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}
.custody-node {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  min-width: 0;
}
.custody-node b { color: var(--text-primary); font-size: var(--text-md); }
.custody-node > span { display: block; color: var(--text-muted); font-size: 13.5px; line-height: 1.5; }
.custody-node.yours {
  border-color: rgba(69, 196, 116, 0.45);
  background: linear-gradient(180deg, rgba(35, 165, 89, 0.10), rgba(35, 165, 89, 0) 60%), var(--bg-card);
}
.custody-node .row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.custody-node .row .icon-sm { color: var(--accent-text); }
.custody-node.yours .row .icon-sm { color: var(--success-text); }
.custody-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.custody-link .wire {
  position: relative;
  width: 64px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent-text) 0 6px, transparent 6px 11px);
  background-size: 22px 2px;
  animation: lp-flow 1.2s linear infinite;
}
.custody-link .wire::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -4px;
  border-left: 7px solid var(--accent-text);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
@keyframes lp-flow { to { background-position: 22px 0; } }
@keyframes lp-flow-v { to { background-position: 0 22px; } }

.perms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.perm {
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}
.perm h3 {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.perm ul { display: grid; gap: 8px; list-style: none; }
.perm li { display: flex; align-items: center; gap: 8px; color: var(--text-default); font-size: 14px; }
.perm.can .icon-sm { color: var(--success-text); }
.perm.cannot .icon-sm { color: var(--danger-text); }
.custody-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.custody-note .icon-sm { margin-top: 2px; color: var(--text-muted); }

.region-note {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 168, 252, 0.3);
  border-radius: var(--radius-card);
  background: var(--info-soft);
  color: var(--text-default);
  font-size: 14px;
  line-height: 1.55;
}
.region-note .icon { color: var(--info-text); margin-top: 1px; }
.region-note strong { color: var(--text-primary); }

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
.control {
  padding: 24px;
  background: var(--lp-card-sheen), var(--bg-base);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.control:hover { border-color: #4b4e57; transform: translateY(-2px); }
.control h3 { margin: 18px 0 8px; font-size: var(--lp-h3); }
.control p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

@media (max-width: 1000px) {
  .safety-top { grid-template-columns: 1fr; }
  .control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .control-grid { grid-template-columns: 1fr; gap: 14px; }
  .control { padding: 22px; }
  .perms { grid-template-columns: 1fr; }
  .custody-flow { grid-template-columns: 1fr; gap: 10px; }
  .custody-link { flex-direction: row; gap: 12px; padding: 2px 0; }
  .custody-link .wire {
    width: 2px;
    height: 30px;
    background: repeating-linear-gradient(180deg, var(--accent-text) 0 6px, transparent 6px 11px);
    background-size: 2px 22px;
    animation-name: lp-flow-v;
  }
  .custody-link .wire::after {
    right: -4px;
    top: auto;
    bottom: -3px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--accent-text);
    border-bottom: 0;
  }
}

/* ---------- Features (bento grid) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  overflow: hidden;
  background: var(--lp-card-sheen), var(--bg-base);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.feature:hover { border-color: #4b4e57; transform: translateY(-2px); }
.feature.span-2 { grid-column: span 2; }
.feature h3 { margin: 18px 0 8px; font-size: var(--lp-h3); }
.feature p { color: var(--text-muted); font-size: 15px; line-height: 1.6; max-width: 46ch; }
.feature-art { margin-top: auto; padding-top: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-default);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-mono);
}
.chip.tf { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }

.quote {
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}
.quote-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.quote-head .sym { color: var(--text-primary); font-weight: 700; font-size: 14px; }
.quote-head .meta { margin-left: auto; color: var(--text-muted); font-size: var(--text-xs); }
.quote p { max-width: none; color: var(--text-default); font-size: 14px; line-height: 1.6; }
.confidence {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
.meter {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-active);
  overflow: hidden;
}
.meter > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-text));
}
.meter-55 > span { width: 55%; }
.quote .confidence { margin-top: 10px; }

.mini-gauge { display: flex; justify-content: center; }
.mini-gauge svg { width: 168px; height: 94px; }
.mini-gauge .scale { display: flex; justify-content: space-between; width: 168px; margin-top: 6px; color: var(--text-muted); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

.source-list { display: grid; gap: 8px; list-style: none; }
.source-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text-default);
  font-size: 13px;
  font-weight: 500;
}
.source-list .skeleton-line { flex: 1; height: 6px; border-radius: 4px; background: var(--bg-active); }
.source-list .skeleton-line.s2 { max-width: 60%; }
.source-list .skeleton-line.s3 { max-width: 75%; }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 0;
  padding: 16px 16px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}
.timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 25px;
  height: 2px;
  background: var(--bg-active);
}
.tick { position: relative; display: grid; justify-items: center; gap: 8px; color: var(--text-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.tick i {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-active);
  border: 2px solid var(--bg-input);
  box-shadow: 0 0 0 1px var(--border-soft);
}
.tick.done i { background: var(--success-text); }
.tick.next i { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tick.next { color: var(--accent-text); font-weight: 600; }

.keys { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 9px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 13px;
}
.key-row b { color: var(--text-primary); font-weight: 600; }
.key-row code { color: var(--text-muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; }
.key-row .pill { margin-left: auto; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature.span-2 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .feature.span-2 { grid-column: auto; }
  .feature { padding: 22px; }
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .timeline .tick:nth-child(n+5) { display: none; }
}
@media (max-width: 360px) {
  .key-row { gap: 6px; padding: 9px 10px; }
  .key-row code { font-size: 10px; letter-spacing: 0; }
  .key-row .pill { padding: 3px 7px; letter-spacing: 0.02em; }
}

/* ---------- Built to a higher standard ---------- */

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
.proof {
  padding: 24px;
  background: var(--lp-card-sheen), var(--bg-base);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.proof:hover { border-color: #4b4e57; transform: translateY(-2px); }
.proof h3 { margin: 18px 0 8px; font-size: var(--lp-h3); }
.proof p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.proof-figure {
  display: flex;
  align-items: flex-start;
  height: 40px;
  font-size: 40px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: var(--lp-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.proof-figure span { font-size: 26px; margin-left: 2px; }
.proof-note {
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1000px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .proof-grid { grid-template-columns: 1fr; gap: 14px; }
  .proof { padding: 22px; }
}

/* ---------- Pricing ---------- */

.section-pricing { isolation: isolate; }
.section-pricing::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10% 0 auto;
  height: 70%;
  background: radial-gradient(ellipse 50% 50% at 30% 50%, rgba(88, 101, 242, 0.14), transparent 70%);
  pointer-events: none;
}
.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.price-card {
  position: relative;
  padding: clamp(24px, 3.2vw, 36px);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(88, 101, 242, 0.24), transparent 70%),
    var(--bg-base);
  box-shadow:
    0 0 0 1px rgba(174, 183, 255, 0.35),
    0 40px 100px -50px rgba(88, 101, 242, 0.7),
    0 24px 60px -30px rgba(0, 0, 0, 0.8);
}
.plan-name {
  color: var(--accent-text);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.price {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-top: 14px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.price-currency { margin-top: 8px; font-size: 28px; font-weight: 650; }
.price-amount { font-size: clamp(56px, 7vw, 72px); font-weight: 780; line-height: 1; letter-spacing: -0.045em; }
.price-period { align-self: flex-end; margin: 0 0 8px 8px; color: var(--text-muted); font-size: 18px; font-weight: 500; }
.price-sub { margin-top: 10px; color: var(--text-muted); font-size: 14px; }
.price-list {
  display: grid;
  gap: 11px;
  margin: 24px 0 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  list-style: none;
}
.price-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-default); font-size: 15px; line-height: 1.45; }
.price-list .icon-sm { margin-top: 2px; color: var(--success-text); }
.price-list a { overflow-wrap: anywhere; }
.btn-block { display: flex; width: 100%; }
.price-foot { margin-top: 14px; color: var(--text-muted); font-size: 13.5px; line-height: 1.55; text-align: center; }

.price-facts { display: grid; gap: 12px; }
.fact {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--lp-card-sheen), var(--bg-base);
}
.fact h3 { margin-bottom: 6px; font-size: 16px; }
.fact p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.fact b { color: var(--text-default); font-weight: 600; }
.fact-muted { background: transparent; border-style: dashed; }
.pricing-disclaimer { max-width: 50em; margin: 28px auto 0; text-align: center; }

@media (max-width: 900px) {
  .pricing { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .fact { flex-direction: column; gap: 12px; padding: 18px; }
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq-aside { position: sticky; top: calc(var(--lp-header-h) + 32px); }
.faq-aside h2 { font-size: var(--lp-h2); letter-spacing: -0.025em; }
.faq-aside p { margin-top: 16px; color: var(--text-muted); }
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--bg-base);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.faq-item[open] { background: var(--bg-card); border-color: #4b4e57; }
.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 56px 18px 20px;
  color: var(--text-primary);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius-card);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background:
    linear-gradient(var(--text-muted), var(--text-muted)) center / 10px 2px no-repeat,
    linear-gradient(var(--text-muted), var(--text-muted)) center / 2px 10px no-repeat,
    var(--bg-active);
  transition: transform var(--dur-slow) var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(var(--accent-text), var(--accent-text)) center / 10px 2px no-repeat,
    linear-gradient(var(--accent-text), var(--accent-text)) center / 2px 10px no-repeat,
    var(--accent-soft);
}
.faq-item summary:hover { color: #fff; }
.faq-answer { padding: 0 20px 20px; color: var(--text-muted); font-size: 15px; line-height: 1.65; }
.faq-answer p + p { margin-top: 10px; }
.faq-answer strong { color: var(--text-default); }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
}

/* ---------- Final CTA ---------- */

.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px);
  text-align: center;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(88, 101, 242, 0.32), transparent 70%),
    var(--bg-base);
  border: 1px solid rgba(88, 101, 242, 0.4);
  box-shadow: 0 40px 100px -50px rgba(88, 101, 242, 0.6);
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--lp-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--lp-grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 20%, transparent 75%);
}
.final-cta .brand-mark { width: 52px; height: 52px; margin: 0 auto 24px; border-radius: 14px; }
.final-cta .brand-mark svg { width: 34px; height: 34px; }
.final-cta h2 { font-size: var(--lp-h2); letter-spacing: -0.025em; }
.final-cta .section-lead { max-width: 40em; margin-left: auto; margin-right: auto; }
.final-cta .cta-row { justify-content: center; }
.final-cta .disclaimer { max-width: 44em; margin: 22px auto 0; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border-soft);
  background: #17181b;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-about p { margin-top: 14px; max-width: 30em; color: var(--text-muted); font-size: 14px; }
.footer-col h2 {
  margin-bottom: 14px;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-col ul { display: grid; gap: 10px; list-style: none; }
.footer-col a { color: var(--text-muted); font-size: 14px; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--text-primary); }
.footer-legal {
  display: grid;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.footer-legal p { color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.footer-legal .risk { color: var(--text-default); }
.footer-legal .risk strong { color: var(--text-primary); }
.footer-legal a { color: var(--text-default); }
.footer-legal a:hover { color: var(--text-primary); }
.footer-compact { margin-top: 0; padding-top: 0; border-top: 0; text-align: center; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Legal pages ---------- */

.legal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--border-soft);
}
.legal-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -300px;
  width: min(900px, 140vw);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(88, 101, 242, 0.22), transparent);
  pointer-events: none;
}
.legal-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); letter-spacing: -0.03em; }
.legal-hero .meta { margin-top: 12px; color: var(--text-muted); font-size: 14px; }

.legal-hero .lead { max-width: 46em; margin-top: 14px; color: var(--text-muted); font-size: 16px; line-height: 1.6; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; color: var(--text-muted); font-size: 13.5px; }
.legal-meta span { display: inline-flex; align-items: center; gap: 6px; }
.legal-meta span + span::before { content: ""; width: 3px; height: 3px; margin-right: 12px; border-radius: 50%; background: var(--text-dim); }
@media (max-width: 520px) {
  .legal-meta { flex-direction: column; }
  .legal-meta span + span::before { display: none; }
}
/* The lawyer-review marker on each legal page (scripts/launch_check.py looks for
   class="template-banner"): a quiet line, removed once a lawyer has approved the page. */
.template-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 52em;
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.55;
}
.template-banner strong { color: var(--text-muted); font-weight: 600; }
.template-banner .icon-sm { margin-top: 1px; color: var(--text-dim); }

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: var(--lp-section-y);
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--lp-header-h) + 24px);
  max-height: calc(100vh - var(--lp-header-h) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.toc summary { display: block; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc h2 {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.toc ol { display: grid; gap: 2px; list-style: none; counter-reset: toc; }
.toc a {
  display: block;
  padding: 5px 10px;
  border-left: 2px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.4;
}
.toc a:hover { color: var(--text-primary); border-left-color: var(--accent); text-decoration: none; }

.prose { max-width: var(--lp-narrow); color: var(--text-default); font-size: 16px; line-height: 1.7; }
.prose h2 {
  margin: 44px 0 14px;
  padding-top: 4px;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 10px; font-size: 1.05rem; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent-text); }
.prose strong { color: var(--text-primary); }
.prose code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.88em;
}
.prose .callout {
  margin: 18px 0 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  background: var(--bg-base);
}
.prose .callout.danger { border-left-color: var(--danger); }
.prose .callout.warn { border-left-color: var(--warning); }
.prose .summary-box {
  margin: 0 0 28px;
  padding: 20px 22px;
  border: 1px solid rgba(174, 183, 255, 0.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.10), rgba(88, 101, 242, 0) 70%), var(--bg-base);
}
.prose .summary-box h2 { margin: 0 0 10px; padding: 0; font-size: 1.05rem; }
.prose .summary-box ul { margin-bottom: 0; }
.prose .summary-box li { margin: 7px 0; }
.prose .big-clause {
  margin: 18px 0 22px;
  padding: 18px 20px;
  border: 1px solid rgba(242, 63, 67, 0.45);
  border-radius: var(--radius-card);
  background: var(--danger-soft);
}
.prose .big-clause p { margin: 0; color: var(--text-primary); font-size: 16.5px; font-weight: 600; line-height: 1.6; letter-spacing: 0.005em; }
.prose .big-clause p + p { margin-top: 10px; color: var(--text-default); font-size: 15px; font-weight: 400; }
.prose h3 { scroll-margin-top: calc(var(--lp-header-h) + 20px); }
.prose .caps { text-transform: uppercase; letter-spacing: 0.02em; }
.prose .callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border-soft); border-radius: var(--radius-card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
.prose th { color: var(--text-primary); background: var(--bg-base); font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

/* Unfilled [PLACEHOLDERS] get highlighted by site.js so none ship unnoticed. */
mark.ph {
  padding: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline dashed rgba(240, 177, 50, 0.7);
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; padding: 0; background: var(--bg-base); border: 1px solid var(--border-soft); border-radius: var(--radius-card); }
  .toc summary {
    position: relative;
    padding: 14px 48px 14px 18px;
    border-radius: var(--radius-card);
    cursor: pointer;
  }
  .toc summary h2 { margin: 0; }
  .toc summary::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform var(--dur) var(--ease);
  }
  .toc details[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 18px 16px; }
}
@media (min-width: 901px) {
  /* Always expanded next to the text; site.js keeps it open on wide screens. */
  .toc summary { pointer-events: none; }
}
@media (max-width: 520px) {
  .toc ol { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */

.notfound {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--lp-header-h));
  padding: 64px 0;
  text-align: center;
}
.notfound::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--lp-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--lp-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 55% at 50% 45%, #000 20%, transparent 75%);
}
.notfound .notfound-code {
  display: inline-block;
  max-width: none;
  margin: 0;
  color: transparent;
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}
.notfound svg.lost { width: min(360px, 80vw); height: auto; margin: 8px auto 20px; }
.lost-line { fill: none; stroke: var(--accent-text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lost-dash { fill: none; stroke: var(--text-muted); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; }
.lost-dot { fill: var(--accent-text); }
.notfound h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
.notfound p { max-width: 30em; margin: 14px auto 0; color: var(--text-muted); }
.notfound .cta-row { justify-content: center; }
.notfound .disclaimer { margin-top: 24px; }

/* ---------- Reveal on scroll (enabled by site.js only when motion is OK) ---------- */

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
.reveal-ready .reveal.d1 { transition-delay: 60ms; }
.reveal-ready .reveal.d2 { transition-delay: 120ms; }
.reveal-ready .reveal.d3 { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .step:hover, .control:hover, .feature:hover, .proof:hover { transform: none; }
}

@media (forced-colors: active) {
  .grad-text { background: none; color: CanvasText; }
  .btn { border-color: ButtonText; }
}

@media print {
  .site-header, .nav-toggle, .skip-link, .final-cta, .hero::before, .hero::after { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
