/* ============================================================
   MacroSpyder — Landing (Gatekeeper) redesign
   Aligned with terminal app: Hanken Grotesk + JetBrains Mono,
   emerald accent, dark financial surface.
   ============================================================ */
:root {
  --font-ui: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* light financial surface (mirrors app light theme) — default */
  --bg:        #fbfbfc;
  --bg-2:      #f2f3f6;
  --surface:   #ffffff;
  --surface-2: #f7f8fa;
  --raised:    #ffffff;
  --border:    #ebecef;
  --border-2:  #dfe0e5;
  --grid:      #eceef1;
  --text:      #16171a;
  --text-2:    #5e616b;
  --text-3:    #9a9da6;

  /* accent — overridable by Tweaks */
  --accent:    #0a9d62;
  --accent-2:  #12b87a;
  --accent-soft: color-mix(in oklab, var(--accent) 12%, transparent);
  --on-accent: #ffffff;
  --warm:      #d9744f;   /* coral secondary, used sparingly */
  --warm-soft: color-mix(in oklab, var(--warm) 14%, transparent);

  --pos: #0a9d62;
  --neg: #d92d4b;

  --radius: 14px;           /* overridable by Tweaks */
  --maxw: 1240px;
  --shadow: 0 1px 2px rgba(20,20,30,.05), 0 14px 40px rgba(20,20,30,.08);
}

/* ---------- FORCE DARK THEME (Landing page defaults to dark for premium Bloomberg feel) ---------- */
body, :root {
  --bg:        #0a0b0e;
  --bg-2:      #0c0e12;
  --surface:   #111317;
  --surface-2: #0f1115;
  --raised:    #16181d;
  --border:    #20232a;
  --border-2:  #2c2f37;
  --grid:      #15181e;
  --text:      #f4f5f7;
  --text-2:    #9aa0ab;
  --text-3:    #636974;
  --accent-soft: color-mix(in oklab, var(--accent) 16%, transparent);
  --warm-soft: color-mix(in oklab, var(--warm) 16%, transparent);
  --pos: #2bd48f;
  --neg: #ff5d73;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 50px rgba(0,0,0,.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); color: var(--text); }

/* page background texture: faint grid + radial glow */
.bg-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 76% -8%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 60%),
    radial-gradient(900px 600px at 8% 4%, color-mix(in oklab, var(--warm) 7%, transparent), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 0%, transparent 72%);
}
.shell { position: relative; z-index: 1; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ============================ NAV ============================ */
.nav {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
}
.nav-in { height: 60px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-dot {
  width: 11px; height: 11px; border-radius: 4px; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 18px color-mix(in oklab, var(--accent) 60%, transparent);
}
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand-sub {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
  padding-left: 11px; margin-left: 3px; border-left: 1px solid var(--border-2);
}
.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 13.5px; color: var(--text-2); padding: 7px 12px; border-radius: 8px;
  transition: color .14s, background .14s;
}
.nav-links a:hover { color: var(--text); background: var(--raised); }
.nav-ver {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
  display: flex; align-items: center; gap: 7px;
}
.nav-ver .live { width: 6px; height: 6px; border-radius: 50%; background: var(--pos);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--pos) 22%, transparent); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 9px; border: 1px solid var(--border-2); background: var(--raised);
  color: var(--text); font-family: var(--font-ui); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: border-color .14s, background .14s;
}
.btn-ghost:hover { border-color: var(--accent); }

/* ============================ TICKER ============================ */
.ticker {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  overflow: hidden; position: relative; z-index: 30;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(90deg, var(--surface-2), transparent); }
.ticker::after  { right: 0; background: linear-gradient(270deg, var(--surface-2), transparent); }
.ticker-track {
  display: inline-flex; align-items: center; gap: 0; white-space: nowrap;
  padding: 9px 0; animation: marquee 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick {
  display: inline-flex; align-items: baseline; gap: 9px; padding: 0 22px;
  border-right: 1px solid var(--border); font-size: 12.5px;
}
.tick .t-sym { color: var(--text-2); font-weight: 600; }
.tick .t-val { font-family: var(--font-mono); color: var(--text); }
.tick .t-chg { font-family: var(--font-mono); font-size: 11.5px; }
.tick .up { color: var(--pos); }
.tick .down { color: var(--neg); }
.tick .flat { color: var(--text-3); }

/* ============================ HERO ============================ */
.hero { padding: 78px 0 64px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--border-2); background: var(--raised);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--text-2);
  text-transform: uppercase;
}
.eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

h1.headline {
  margin: 24px 0 0; font-weight: 700; font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.04; letter-spacing: -.025em;
}
h1.headline .line-2 {
  background: linear-gradient(95deg, var(--accent-2), var(--accent) 55%, var(--warm));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  margin-top: 22px; max-width: 540px; font-size: 16.5px; line-height: 1.62; color: var(--text-2);
}
.lede b { color: var(--text); font-weight: 600; }

.trust-row { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.trust-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: .04em; }
.src-tag {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--text-2);
  padding: 4px 10px; border: 1px solid var(--border-2); border-radius: 7px; background: var(--surface);
}

/* feature grid */
.features { margin-top: 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat {
  position: relative; padding: 18px 18px 17px; border-radius: var(--radius);
  border: 1px solid var(--border); background:
    linear-gradient(180deg, color-mix(in oklab, var(--raised) 92%, transparent), var(--surface-2));
  overflow: hidden; transition: border-color .16s, transform .16s;
}
.feat:hover { border-color: var(--border-2); transform: translateY(-2px); }
.feat::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent); opacity: 0; transition: opacity .16s;
}
.feat:hover::after { opacity: 1; }
.feat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.feat-ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.feat-ico svg { width: 17px; height: 17px; }
.feat-code { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.feat h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.feat p { margin-top: 5px; font-size: 12.8px; line-height: 1.5; color: var(--text-2); }

/* ============================ AUTH CARD ============================ */
.auth {
  position: relative; border-radius: 18px; border: 1px solid var(--border-2);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow); overflow: hidden;
}
.auth::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 42%, transparent), transparent 38%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.auth-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px 0; }
.auth-tabs { display: flex; gap: 4px; flex: 1; }
.auth-tab {
  position: relative; padding: 10px 4px; font-size: 14.5px; font-weight: 600; color: var(--text-3);
  background: none; border: none; cursor: pointer; font-family: var(--font-ui); margin-right: 18px;
  transition: color .14s;
}
.auth-tab:hover { color: var(--text-2); }
.auth-tab.active { color: var(--text); }
.auth-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.auth-lock {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono);
  font-size: 10.5px; color: var(--text-3);
}
.auth-lock svg { width: 12px; height: 12px; }
.auth-body { padding: 22px; border-top: 1px solid var(--border); margin-top: 14px; }

.field-l { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-3); margin: 0 0 8px; }
.input-wrap { position: relative; margin-bottom: 18px; }
.input-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-3); }
.input {
  width: 100%; height: 46px; padding: 0 14px 0 40px; border-radius: 10px;
  border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text);
  font-family: var(--font-ui); font-size: 14px; outline: none; transition: border-color .14s, box-shadow .14s;
}
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row-between { display: flex; align-items: center; justify-content: space-between; margin: -6px 0 18px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.check input { accent-color: var(--accent); width: 15px; height: 15px; }
.link-q { font-size: 12.5px; color: var(--accent); }
.link-q:hover { text-decoration: underline; }

.btn-primary {
  width: 100%; height: 48px; border: none; border-radius: 11px; cursor: pointer;
  font-family: var(--font-ui); font-size: 14.5px; font-weight: 700; color: var(--on-accent);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 8px 24px color-mix(in oklab, var(--accent) 30%, transparent);
  transition: transform .12s, box-shadow .14s, filter .14s;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap;
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 10px 30px color-mix(in oklab, var(--accent) 42%, transparent); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary svg { width: 17px; height: 17px; }

.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-3);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; }
.or::before, .or::after { content: ""; height: 1px; flex: 1; background: var(--border); }

.btn-sso {
  width: 100%; height: 46px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--border-2); background: var(--raised); color: var(--text);
  font-family: var(--font-ui); font-size: 13.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: border-color .14s, background .14s;
}
.btn-sso:hover { border-color: var(--warm); background: var(--surface); }
.btn-sso .key { color: var(--warm); display: inline-flex; }
.btn-sso .key svg { width: 16px; height: 16px; }
.btn-sso b { color: var(--warm); font-weight: 700; }
.auth-foot {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3);
}
.auth-foot svg { width: 13px; height: 13px; color: var(--pos); flex: none; }

/* ============================ PRODUCT PREVIEW ============================ */
.preview { padding: 26px 0 40px; }
.preview-cap {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.preview-cap .pc-l { display: flex; align-items: center; gap: 11px; }
.section-kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.preview-cap h2 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.preview-cap p { font-size: 13px; color: var(--text-2); }

.terminal {
  border-radius: 16px; border: 1px solid var(--border-2); background: var(--surface);
  box-shadow: var(--shadow); overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.term-dots { display: flex; gap: 7px; }
.term-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); display: block; }
.term-dots i:first-child { background: #e0685c; } .term-dots i:nth-child(2){ background:#e6b15e;} .term-dots i:nth-child(3){ background: var(--accent); }
.term-title { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.term-seg { margin-left: auto; display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--border); }
.term-seg button {
  height: 26px; padding: 0 11px; border: none; background: none; border-radius: 6px; cursor: pointer;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); transition: color .12s, background .12s;
}
.term-seg button.active { background: var(--raised); color: var(--text); }
.term-seg button:not(.active):hover { color: var(--text-2); }

.term-body { display: grid; grid-template-columns: 1fr 234px; }
.chart-col { padding: 18px 20px 12px; min-width: 0; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.chart-head .ch-name { font-size: 14px; font-weight: 600; }
.chart-head .ch-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.chart-head .ch-val { text-align: right; }
.chart-head .ch-price { font-family: var(--font-mono); font-size: 19px; font-weight: 600; }
.chart-head .ch-delta { font-family: var(--font-mono); font-size: 12px; color: var(--neg); }
.chart-box { position: relative; height: 290px; }
.chart-box svg { width: 100%; height: 100%; display: block; overflow: visible; }
.gridline { stroke: var(--grid); stroke-width: 1; }
.axis-lbl { font-family: var(--font-mono); font-size: 10px; fill: var(--text-3); }
.last-dot-ring { fill: none; stroke: var(--accent); opacity: .5; }
.last-pill {
  position: absolute; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--on-accent); background: var(--accent); padding: 2px 7px; border-radius: 6px;
  transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
}

.term-side { border-left: 1px solid var(--border); background: var(--surface-2); padding: 16px; }
.side-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 12px; }
.stat-line { display: flex; align-items: baseline; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); }
.stat-line:last-of-type { border-bottom: none; }
.stat-line .sl-k { font-size: 12px; color: var(--text-2); }
.stat-line .sl-v { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); }
.stat-line .sl-v.pos { color: var(--pos); } .stat-line .sl-v.neg { color: var(--neg); }
.side-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.side-foot .src-mini { color: var(--text-2); }

/* ============================ STATS BAND ============================ */
.stats { padding: 18px 0 56px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--border);
}
.stat-cell { background: var(--surface); padding: 26px 24px; }
.stat-num { font-family: var(--font-mono); font-size: 34px; font-weight: 600; letter-spacing: -.02em; }
.stat-num .u { color: var(--accent); }
.stat-cap { margin-top: 6px; font-size: 12.5px; color: var(--text-2); }

/* ============================ PRICING ============================ */
.pricing { padding: 24px 0 80px; }
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.sec-head .section-kicker { display: block; margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; letter-spacing: -.02em; }
.sec-head p { margin-top: 12px; font-size: 15px; color: var(--text-2); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.tier {
  position: relative; border-radius: 18px; border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); padding: 26px 24px 28px;
  transition: border-color .16s, transform .16s;
}
.tier:hover { transform: translateY(-3px); border-color: var(--border-2); }
.tier.featured { border-color: color-mix(in oklab, var(--accent) 55%, var(--border-2)); }
.tier.featured::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent), 0 24px 60px color-mix(in oklab, var(--accent) 12%, transparent);
}
.tier-badge {
  position: absolute; top: -12px; right: 22px; height: 24px; padding: 0 11px; border-radius: 999px;
  display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .06em; color: var(--on-accent); background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
.tier-name { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.tier-price { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; }
.tier-price .p { font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.tier-price .sub { font-size: 12.5px; color: var(--text-3); }
.tier-cta {
  width: 100%; height: 44px; margin: 20px 0 22px; border-radius: 11px; cursor: pointer;
  font-family: var(--font-ui); font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--border-2); background: var(--raised); color: var(--text);
  transition: border-color .14s, background .14s;
}
.tier-cta:hover { border-color: var(--accent); }
.tier.featured .tier-cta {
  border: none; color: var(--on-accent); background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 8px 22px color-mix(in oklab, var(--accent) 28%, transparent);
}
.tier-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.tier-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.2px; color: var(--text); line-height: 1.45; }
.tier-list li svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.tier-list li.yes svg { color: var(--accent); }
.tier-list li.no { color: var(--text-3); }
.tier-list li.no svg { color: var(--text-3); }
.tier-list li b { font-weight: 700; }

/* ============================ CTA STRIP + FOOTER ============================ */
.endcta { padding: 0 0 64px; }
.endcta-box {
  border-radius: 20px; border: 1px solid var(--border-2); padding: 44px 40px;
  background:
    radial-gradient(700px 300px at 80% -40%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.endcta-box h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.02em; }
.endcta-box p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; }
.endcta-actions { display: flex; gap: 12px; }

.footer { border-top: 1px solid var(--border); padding: 34px 0; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .copyright { font-size: 12.5px; color: var(--text-3); }
.footer .foot-links { display: flex; gap: 20px; }
.footer .foot-links a { font-size: 12.5px; color: var(--text-2); }
.footer .foot-links a:hover { color: var(--text); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .auth { max-width: 460px; }
  .term-body { grid-template-columns: 1fr; }
  .term-side { border-left: none; border-top: 1px solid var(--border); display: grid;
    grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .side-label { grid-column: 1 / -1; }
  .side-foot { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  .nav-links { display: none; }
  .hero { padding: 48px 0 44px; }
  .features { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .preview-cap { align-items: flex-start; }
  .endcta-box { padding: 30px 24px; }
  h1.headline { font-size: clamp(34px, 9vw, 44px); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
