/* ThreatPulz AI holding page.
 *
 * Colours come from packages/ui-tokens and the brand mark: #683593 is the
 * artwork's own purple (8:1 on the light canvas); #B388D9 is the lifted purple
 * the dark theme uses, because #683593 is only 2.35:1 on near-black.
 *
 * Every graphic on the page is HTML or inline SVG coloured through these
 * variables, so light and dark both work without a second set of images.
 *
 * External stylesheet, and no style="" attributes anywhere, so the CSP can
 * stay at style-src 'self'.
 */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-var.woff2") format("woff2-variations"),
       url("/assets/inter-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+25B2, U+2713, U+2192, U+FEFF, U+FFFD;
}

:root {
  --bg: #fafafc;
  --bg-tint: #f4f1f9;
  --surface: #ffffff;
  --surface-2: #f6f4fa;
  --border: #e4e1ec;
  --border-strong: #cdc7dd;
  --ink: #16161f;
  --ink-muted: #4f4f63;
  --ink-subtle: #6b6b80;
  --brand: #683593;
  --brand-hover: #56297b;
  --brand-soft: #f1e9f8;
  --on-brand: #ffffff;
  --glow: rgba(104, 53, 147, 0.13);
  --grid: rgba(104, 53, 147, 0.07);
  --shadow: 0 1px 2px rgba(22, 22, 31, 0.04), 0 12px 32px -12px rgba(60, 30, 90, 0.18);

  --crit-bg: #ffe4e6;  --crit-fg: #9f1239;
  --high-bg: #fef3c7;  --high-fg: #854d0e;
  --mod-bg:  #e0f2fe;  --mod-fg:  #075985;
  --ok-bg:   #dcfce7;  --ok-fg:   #166534;

  --tier-direct: #e11d48;
  --tier-supply: #d97706;
  --tier-sector: #2563eb;
  --tier-ambient: #94a3b8;

  --font: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b12;
    --bg-tint: #0f0e18;
    --surface: #14131e;
    --surface-2: #1a1926;
    --border: #272535;
    --border-strong: #3a3750;
    --ink: #f2f0f5;
    --ink-muted: #b8b5c7;
    --ink-subtle: #8f8ca2;
    --brand: #b388d9;
    --brand-hover: #c7a6e4;
    --brand-soft: rgba(179, 136, 217, 0.12);
    --on-brand: #160b21;
    --glow: rgba(179, 136, 217, 0.16);
    --grid: rgba(179, 136, 217, 0.06);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.8), 0 0 60px -30px rgba(179, 136, 217, 0.45);

    --crit-bg: rgba(244, 63, 94, 0.16);  --crit-fg: #fda4af;
    --high-bg: rgba(245, 158, 11, 0.16); --high-fg: #fcd34d;
    --mod-bg:  rgba(56, 189, 248, 0.15); --mod-fg:  #7dd3fc;
    --ok-bg:   rgba(34, 197, 94, 0.15);  --ok-fg:   #86efac;

    --tier-direct: #fb7185;
    --tier-supply: #fbbf24;
    --tier-sector: #60a5fa;
    --tier-ambient: #64748b;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 0.2em; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[id] { scroll-margin-top: 5rem; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  padding: 0.5rem 0.9rem; border-radius: 8px;
  background: var(--brand); color: var(--on-brand); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.875rem; padding: 0 1.35rem;
  border: 1px solid transparent; border-radius: 10px;
  background: var(--brand); color: var(--on-brand);
  font: inherit; font-weight: 600; font-size: 0.975rem;
  text-decoration: none; cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.button:hover { background: var(--brand-hover); color: var(--on-brand); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: 0.6; cursor: progress; }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.button--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--brand); }
.button--small { min-height: 2.25rem; padding: 0 0.9rem; font-size: 0.875rem; border-radius: 8px; }
.button--block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.nav__links { display: none; gap: 1.5rem; margin-left: auto; }
.nav__links a { color: var(--ink-muted); text-decoration: none; font-size: 0.925rem; font-weight: 500; }
.nav__links a:hover { color: var(--ink); }
.nav .button { margin-left: auto; }
@media (min-width: 760px) {
  .nav__links { display: flex; }
  .nav .button { margin-left: 0; }
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--brand); text-decoration: none; }
.brand__mark { width: 36px; height: 36px; border-radius: 50%; }
.brand__word { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; }
.brand__ai { color: var(--ink-subtle); font-weight: 500; }
.brand--small .brand__mark { width: 28px; height: 28px; }
.brand--small .brand__word { font-size: 1rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 3.5rem 0 4rem; }
@media (min-width: 960px) { .hero { padding: 5rem 0 6rem; } }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(48rem 32rem at 78% 30%, var(--glow), transparent 70%),
    radial-gradient(30rem 24rem at 0% 100%, var(--glow), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 35%, transparent 80%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4rem; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 0 0 1.25rem; padding: 0.3rem 0.8rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.eyebrow__dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--brand); animation: beat 2.4s ease-out infinite; }

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.4rem);
  line-height: 1.06; font-weight: 680; letter-spacing: -0.04em;
}
.lede {
  margin: 1.4rem 0 0; max-width: 36rem;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
}
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.console {
  margin: 2.25rem 0 0; padding: 0; list-style: none;
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.5;
  color: var(--ink-subtle);
}
.console li { display: flex; gap: 0.6rem; align-items: baseline; padding: 0.18rem 0; }
.console__tag {
  flex: none; min-width: 4.4rem; text-align: center;
  padding: 0.05rem 0.35rem; border-radius: 4px;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.console__tag--ok { background: var(--ok-bg); color: var(--ok-fg); }
.console__tag--review { background: var(--high-bg); color: var(--high-fg); }
.console__tag--brief { background: var(--brand-soft); color: var(--brand); }

/* Hero visual */
.hero__visual { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; min-width: 0; }
.orbit { position: absolute; inset: -12% -6%; pointer-events: none; }
.orbit span {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 1px solid var(--grid);
  aspect-ratio: 1; height: auto;
}
.orbit span:nth-child(1) { width: 62%; }
.orbit span:nth-child(2) { width: 84%; animation: spin 40s linear infinite; }
.orbit span:nth-child(3) { width: 106%; animation: spin 70s linear infinite reverse; }
.orbit span:nth-child(2)::after, .orbit span:nth-child(3)::after {
  content: ""; position: absolute; top: 12%; left: 12%;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 14px 2px var(--glow);
}
.orbit span:nth-child(3)::after { top: auto; bottom: 18%; left: auto; right: 6%; width: 6px; height: 6px; }

/* Shared mock window */
.mock {
  position: relative;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mock__bar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--border);
}
.mock__dots { display: inline-flex; gap: 5px; }
.mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.mock__title { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-subtle); letter-spacing: 0.02em; }

.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip {
  display: inline-flex; align-items: center;
  padding: 0.1rem 0.5rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
}
.chip--critical { background: var(--crit-bg); color: var(--crit-fg); }
.chip--high { background: var(--high-bg); color: var(--high-fg); }
.chip--moderate { background: var(--mod-bg); color: var(--mod-fg); }
.chip--tier { background: var(--brand-soft); color: var(--brand); }
.chip--muted { background: var(--surface-2); color: var(--ink-subtle); border: 1px solid var(--border); }

/* Brief mock */
.brief { max-width: 30rem; }
.brief__lead { padding: 1.1rem 1.1rem 1rem; }
.brief__headline { margin: 0.65rem 0 0.3rem; font-weight: 650; font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.01em; }
.brief__summary { margin: 0; color: var(--ink-muted); font-size: 0.86rem; line-height: 1.5; }
.brief__meta { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.85rem; font-size: 0.78rem; color: var(--ink-subtle); }
.score b { color: var(--ink); font-size: 1.05rem; font-weight: 700; }
.spark { width: 7rem; height: 1.6rem; flex: 1; max-width: 9rem; }
.spark__line { fill: none; stroke: var(--crit-fg); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark__area { fill: var(--crit-bg); }
.trend--up { color: var(--crit-fg); font-weight: 600; white-space: nowrap; }
.brief__ask {
  margin: 0 1.1rem 0.9rem; padding: 0.8rem 0.9rem;
  border-radius: 10px; background: var(--brand-soft);
}
.brief__label { margin: 0 0 0.35rem; font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); }
.brief__ask ol { margin: 0; padding-left: 1.1rem; font-size: 0.82rem; line-height: 1.5; color: var(--ink); }
.brief__row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.1rem; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--ink-muted);
}
.brief__rowtext { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sources strip */
.sources { border-block: 1px solid var(--border); background: var(--bg-tint); padding: 1.5rem 0; }
.sources__label { margin: 0 0 0.75rem; text-align: center; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-subtle); }
.sources__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.sources__list li {
  padding: 0.3rem 0.75rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--ink-muted); font-size: 0.82rem; font-weight: 500;
}

/* Sections */
.section { padding: 4.5rem 0; }
@media (min-width: 960px) { .section { padding: 6.5rem 0; } }
.section--tint { background: var(--bg-tint); border-block: 1px solid var(--border); }
.section__head { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }
.section__head h2 { margin: 0; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); line-height: 1.12; font-weight: 680; letter-spacing: -0.035em; }
.section__lede { margin: 1rem 0 0; color: var(--ink-muted); font-size: 1.075rem; }
.kicker { margin: 0 0 0.6rem; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; align-items: center; padding: 2.5rem 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; padding: 3.5rem 0; }
  .feature--flip .feature__copy { order: 2; }
}
.feature__copy h3 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); line-height: 1.2; font-weight: 660; letter-spacing: -0.025em; }
.feature__copy > p:not(.kicker) { margin: 1rem 0 0; color: var(--ink-muted); }
.feature__visual { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.feature__visual::before {
  content: ""; position: absolute; inset: 8% 4%; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent);
}

.ticks { margin: 1.4rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--ink); font-size: 0.95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.3rem;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--brand-soft);
}
.ticks li::after {
  content: ""; position: absolute; left: 0.38rem; top: 0.52rem;
  width: 0.32rem; height: 0.55rem;
  border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Q&A mock */
.qa { padding: 1.1rem; display: grid; gap: 0.5rem; max-width: 30rem; }
.qa__step {
  display: grid; grid-template-columns: auto 1fr; gap: 0.8rem;
  padding: 0.8rem 0.9rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2);
}
.qa__step--active { border-color: var(--brand); background: var(--brand-soft); }
.qa__num {
  display: grid; place-items: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  border: 1px solid var(--border-strong); color: var(--ink-subtle);
  font-size: 0.75rem; font-weight: 650;
}
.qa__step--done .qa__num, .qa__step--active .qa__num { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.qa__title { margin: 0 0 0.15rem; font-weight: 620; font-size: 0.88rem; }
.qa__text { margin: 0; color: var(--ink-muted); font-size: 0.82rem; line-height: 1.45; }
.qa__text + .qa__text { margin-top: 0.3rem; }
.qa__text--good { font-style: italic; }

/* Exposure graph */
.tiers { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1.4rem 0 0; padding: 0; list-style: none; font-size: 0.9rem; color: var(--ink-muted); }
.tiers li { display: inline-flex; align-items: center; gap: 0.45rem; }
.tier { width: 0.7rem; height: 0.7rem; border-radius: 50%; }
.tier--direct { background: var(--tier-direct); }
.tier--supply { background: var(--tier-supply); }
.tier--sector { background: var(--tier-sector); }
.tier--ambient { background: var(--tier-ambient); }

.graph { width: 100%; max-width: 32rem; height: auto; overflow: visible; }
.graph__rings circle { fill: none; stroke: var(--border); stroke-dasharray: 3 5; }
.graph__edges line { stroke: var(--border-strong); stroke-width: 1.25; }
.graph__hot {
  fill: none; stroke: var(--tier-direct); stroke-width: 2.25; stroke-linecap: round;
  stroke-dasharray: 6 7; animation: flow 1.4s linear infinite;
}
.graph__node circle { stroke-width: 2; }
.graph__node--threat circle { fill: var(--crit-bg); stroke: var(--tier-direct); }
.graph__node--threat path { fill: var(--tier-direct); }
.graph__node--supplier circle { fill: var(--surface); stroke: var(--tier-supply); }
.graph__node--hit circle { fill: var(--high-bg); animation: ping 2s ease-out infinite; transform-origin: 360px 110px; }
.graph__node--tech circle { fill: var(--surface); stroke: var(--tier-direct); }
.graph__node--sector circle { fill: var(--surface); stroke: var(--tier-sector); }
.graph__node--you circle { fill: var(--brand); stroke: none; }
.graph__node--you .graph__halo { fill: var(--glow); }
.graph__you { fill: var(--on-brand); font-size: 13px; font-weight: 700; font-family: var(--font); }
.graph__label { fill: var(--ink-muted); font-size: 12px; font-weight: 550; font-family: var(--font); }
.graph__label--threat { fill: var(--crit-fg); font-weight: 650; }

/* Pipeline */
.pipeline {
  position: relative;
  display: grid; gap: 0.75rem;
  width: 100%; max-width: 30rem; margin: 0; padding: 0; list-style: none;
}
.pipeline::before {
  content: ""; position: absolute; left: 1.95rem; top: 1.5rem; bottom: 1.5rem; z-index: 0;
  width: 2px; background: linear-gradient(var(--border-strong), var(--brand));
}
.pipeline__stage {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow);
}
.pipeline__icon {
  grid-row: span 2;
  display: grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 9px;
  background: var(--surface-2); color: var(--ink-muted); border: 1px solid var(--border);
}
.pipeline__icon svg, .card__icon svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pipeline__title { margin: 0; font-weight: 640; font-size: 0.95rem; }
.pipeline__text { margin: 0; color: var(--ink-subtle); font-size: 0.82rem; }
.pipeline__stage--review { border-color: var(--high-fg); }
.pipeline__stage--review .pipeline__icon { background: var(--high-bg); color: var(--high-fg); border-color: transparent; }
.pipeline__stage--review .pipeline__text { font-family: var(--mono); font-size: 0.76rem; color: var(--high-fg); }
.pipeline__stage--out { border-color: var(--brand); }
.pipeline__stage--out .pipeline__icon { background: var(--brand); color: var(--on-brand); border-color: transparent; }

/* Scorecard */
.scorecard { padding: 1.25rem; max-width: 28rem; }
.scorecard__top { display: flex; justify-content: space-between; align-items: flex-start; }
.scorecard__label { margin: 0; font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-subtle); }
.scorecard__value { margin: 0.1rem 0 0; font-size: 2.6rem; font-weight: 720; letter-spacing: -0.04em; line-height: 1; }
.scorecard__value span { font-size: 1rem; font-weight: 500; color: var(--ink-subtle); letter-spacing: 0; }
.stack { display: flex; height: 0.75rem; margin: 1.25rem 0 0.8rem; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.stack__seg { height: 100%; }
.stack__seg--base { width: 52%; background: var(--brand); }
.stack__seg--exposure { width: 14%; background: var(--tier-supply); }
.stack__seg--trend { width: 8%; background: var(--tier-direct); }
.stack__legend { display: grid; gap: 0.3rem; margin: 0; padding: 0; list-style: none; font-size: 0.84rem; color: var(--ink-muted); }
.stack__legend li { display: flex; align-items: center; gap: 0.5rem; }
.stack__legend b { margin-left: auto; color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.stack__key { width: 0.65rem; height: 0.65rem; border-radius: 3px; }
.stack__key--base { background: var(--brand); }
.stack__key--exposure { background: var(--tier-supply); }
.stack__key--trend { background: var(--tier-direct); }
.prov {
  margin: 1.1rem 0 0; padding: 0.8rem 0.9rem;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border);
  font-family: var(--mono); font-size: 0.74rem; line-height: 1.7; color: var(--ink-muted);
  white-space: pre; overflow-x: auto;
}
.prov__k { color: var(--brand); }
.prov__ok { color: var(--ok-fg); font-weight: 600; }

/* Cards */
.cards { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.card {
  padding: 1.4rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 150ms ease, transform 150ms ease;
}
.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card__icon {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; margin-bottom: 1rem;
  border-radius: 10px; background: var(--brand-soft); color: var(--brand);
}
.card__icon svg { width: 1.3rem; height: 1.3rem; }
.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 640; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-muted); font-size: 0.93rem; line-height: 1.55; }

/* Compare */
.compare { display: grid; gap: 1rem; max-width: 56rem; margin: 0 auto; }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.compare__col { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.compare__col--is { border-color: var(--brand); box-shadow: var(--shadow); }
.compare__col h3 { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 650; }
.compare__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.65rem; }
.compare__col li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; color: var(--ink-muted); }
.compare__col li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.compare__col--is li::before { content: "✓"; color: var(--brand); }
.compare__col--not li::before { content: "×"; color: var(--ink-subtle); font-size: 1.15rem; line-height: 1.3; }

/* Signup */
.signup { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .signup { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }
.signup__copy h2 { margin: 0; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.12; font-weight: 680; letter-spacing: -0.035em; }
.signup__copy > p:not(.kicker) { margin: 1rem 0 0; color: var(--ink-muted); font-size: 1.05rem; }
.signup__alt { font-size: 0.95rem !important; }

.form {
  display: grid; gap: 1rem;
  padding: 1.25rem; border-radius: 18px;
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow);
}
@media (min-width: 640px) { .form { padding: 2rem; } }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field__label { font-size: 0.875rem; font-weight: 600; }
.field__opt { margin-left: 0.35rem; font-weight: 400; color: var(--ink-subtle); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 2.75rem; padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.25rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-subtle) 50%), linear-gradient(135deg, var(--ink-subtle) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.2rem, calc(100% - 0.8rem) 1.2rem;
  background-size: 0.35rem 0.35rem; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--glow);
}
.form.was-validated .field :invalid { border-color: var(--crit-fg); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.65rem; align-items: start; font-size: 0.875rem; color: var(--ink-muted); }
.check input { width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Turnstile renders a 65px-high iframe here; reserve the space so the form
   doesn't jump when it arrives. "flexible" size needs at least 300px. */
.turnstile { min-height: 65px; }
.form__noscript { margin: 0; padding: 0.75rem 0.9rem; border-radius: 10px; background: var(--high-bg); color: var(--high-fg); font-size: 0.875rem; }
.form__noscript a { color: inherit; }
.form__status { margin: 0; min-height: 1.4em; font-size: 0.925rem; text-align: center; }
.form__status--hint { color: var(--ink-muted); }
.form__status--ok { color: var(--ok-fg); font-weight: 600; }
.form__status--error { color: var(--crit-fg); }
.form--done .field, .form--done .form__row, .form--done .check, .form--done button, .form--done .turnstile { display: none; }
.form--done .form__status { padding: 2rem 0; font-size: 1.05rem; }

/* FAQ */
.faq__list { max-width: 48rem; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; cursor: pointer; list-style: none;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--brand); font-size: 1.35rem; font-weight: 400; line-height: 1; transition: transform 150ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.25rem 1.15rem; color: var(--ink-muted); }

/* Footer */
.footer { padding: 2rem 0 2.5rem; border-top: 1px solid var(--border); color: var(--ink-subtle); font-size: 0.875rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; }
.footer p { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
@media (min-width: 760px) { .footer .footer__links { margin-left: auto; } }

/* Simple pages (thanks, error, privacy, 404) */
.page-simple { max-width: 44rem; margin: 0 auto; padding: 4rem 1rem 5rem; }
@media (min-width: 640px) { .page-simple { padding: 5rem 2rem 6rem; } }
.page-simple h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.page-simple h2 { margin: 2.25rem 0 0.5rem; font-size: 1.2rem; letter-spacing: -0.01em; }
.page-simple p, .page-simple li { color: var(--ink-muted); }
.page-simple .cta { margin-top: 2rem; }

/* Motion */
@keyframes beat {
  0%   { box-shadow: 0 0 0 0 var(--glow); }
  60%  { box-shadow: 0 0 0 0.45rem transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: -26; } }
@keyframes ping {
  0%   { stroke-opacity: 1; stroke-width: 2; }
  70%  { stroke-opacity: 0.2; stroke-width: 9; }
  100% { stroke-opacity: 1; stroke-width: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
