/* Self-hosted fonts (SIL OFL, see /fonts/LICENSE-OFL.txt) — no requests to third parties. */
@font-face { font-family: "Inter"; src: url("/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Tokens (dark-first) ---------- */
:root {
  --bg: #07080b;
  --bg-2: #0a0c11;
  --surface: #0e1016;
  --surface-2: #141721;
  --surface-3: #1b1f2b;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #eef0f4;
  --text-2: #c3c7d2;
  --muted: #8d92a1;
  --accent: #34d399;
  --accent-2: #22d3ee;
  --accent-soft: rgba(52, 211, 153, 0.1);
  --accent-line: rgba(52, 211, 153, 0.28);
  --good: #34d399;
  --bad: #f87171;
  --warn: #fbbf24;
  --primary-bg: #f2f3f6;
  --primary-text: #07080b;
  --code-bg: #090b10;
  --code-text: #dfe3ec;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.85);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
::selection { background: rgba(52, 211, 153, 0.3); color: #fff; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
b, strong { font-weight: 600; color: var(--text); }
code, pre, kbd { font-family: var(--mono); font-size: 0.86em; }
:not(pre) > code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--text-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
img, svg { display: block; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Typography ---------- */
h1, h2, h3 { color: var(--text); font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -0.04em; margin: 22px 0 20px; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.032em; margin: 0 0 14px; }
h3 { font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; margin: 0 0 6px; }
p { text-wrap: pretty; }
.gradient-text { background: linear-gradient(100deg, #fff 10%, var(--accent) 55%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: var(--text-2); margin: 0 0 32px; max-width: 36em; }
.muted { color: var(--muted); }
.fine { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2); padding: 5px 12px 5px 10px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.kicker { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin: 0 0 14px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7, 8, 11, 0.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 6px 18px -6px rgba(52, 211, 153, 0.6);
}
.logo-mark svg { width: 16px; height: 16px; stroke: #04130d; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 14.5px; }
.nav-links a:not(.btn) { color: var(--muted); padding: 8px 12px; border-radius: 8px; transition: color 150ms ease, background 150ms ease; }
.nav-links a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.nav-links .btn { margin-left: 8px; }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; place-items: center; }
@media (max-width: 820px) {
  .menu-toggle { display: grid; }
  .nav-links.collapsible { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; background: #0a0b0f; border-bottom: 1px solid var(--line-2); box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.8); }
  .nav-links.collapsible.open { display: flex; }
  .nav-links.collapsible a:not(.btn) { padding: 12px; font-size: 16px; }
  .nav-links.collapsible .btn { margin: 8px 0 0; height: 48px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 11px; font: 600 14.5px var(--font); letter-spacing: -0.005em; border: 1px solid transparent; cursor: pointer;
  white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, box-shadow 200ms ease, color 150ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active:not([disabled]) { transform: scale(0.97); }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--primary-bg); color: var(--primary-text); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 8px 24px -10px rgba(255, 255, 255, 0.35); }
.btn-primary:hover { background: #fff; }
.btn-accent { background: var(--accent); color: #04130d; }
.btn-accent:hover { background: #4be3a8; }
.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn.danger { color: var(--bad); }
.btn.danger-solid { background: var(--bad); color: #1a0505; box-shadow: none; }
.btn.danger-solid:hover { background: #fb8f8f; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { box-shadow: 0 0 0 1px #fff inset, 0 10px 30px -8px rgba(255, 255, 255, 0.45); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 64px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 340px at 72% 22%, rgba(34, 211, 238, 0.13), transparent 70%),
    radial-gradient(520px 320px at 30% 8%, rgba(52, 211, 153, 0.14), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); opacity: 0.55;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } .hero { padding: 56px 0 40px; } }

.capture { display: flex; gap: 8px; padding: 6px; max-width: 480px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); }
.capture:focus-within { border-color: rgba(52, 211, 153, 0.5); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12); }
.capture .input { border: 0; background: transparent; height: 46px; min-width: 0; }
.capture .input:focus { outline: none; box-shadow: none; }
.capture .btn { height: 46px; }
@media (max-width: 520px) { .capture { flex-direction: column; } .capture .btn { width: 100%; } }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row .icon { width: 15px; height: 15px; color: var(--accent); }

/* Chat demo */
.chat { position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.chat::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(52, 211, 153, 0.45), transparent 35%, transparent 70%, rgba(34, 211, 238, 0.3)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.chat-head .title { margin-left: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.chat-body { padding: 20px; display: grid; gap: 12px; font-size: 14px; line-height: 1.55; }
.msg-user { justify-self: end; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text); padding: 10px 14px; border-radius: 14px 14px 4px 14px; max-width: 88%; }
.tool-call { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--text-2); background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); padding: 8px 10px; border-radius: 10px; }
.tool-call .icon { width: 14px; height: 14px; color: var(--accent); }
.tool-call .meta { margin-left: auto; color: var(--muted); }
.msg-ai { color: var(--text-2); padding: 2px 2px 0; }
.msg-ai ol { margin: 8px 0 8px; padding-left: 20px; }
.msg-ai li { margin: 4px 0; }
.msg-ai li::marker { color: var(--muted); }
.score { display: inline-block; font: 600 12.5px var(--mono); padding: 1px 7px; border-radius: 6px; }
.score.bad { background: rgba(248, 113, 113, 0.14); color: var(--bad); }
.score.good { background: rgba(52, 211, 153, 0.14); color: var(--good); }
.example-note { font-size: 12px; color: var(--muted); text-align: center; margin: 0; padding: 10px 0 14px; border-top: 1px solid var(--line); }

/* ---------- Sections ---------- */
section, [id] { scroll-margin-top: 84px; }
section { padding: 104px 0; position: relative; }
@media (max-width: 700px) { section { padding: 72px 0; } }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--text-2); font-size: 17.5px; margin: 0; }

/* Stats strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.facts > div { padding: 22px 24px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts b { display: block; font-size: 24px; letter-spacing: -0.02em; font-weight: 650; }
.facts span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts > div:nth-child(3) { border-left: 0; } .facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.step .num { font: 500 12px var(--mono); color: var(--accent); letter-spacing: 0.1em; }
.step h3 { margin-top: 14px; font-size: 18px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
.step .icon-tile { position: absolute; top: 24px; right: 24px; }

/* Cards & bento */
.icon-tile { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.icon-tile .icon { width: 18px; height: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .card { grid-column: span 2; display: flex; flex-direction: column; gap: 18px; transition: border-color 200ms ease, transform 250ms var(--ease-out); }
.bento .card.wide { grid-column: span 3; }
@media (hover: hover) and (pointer: fine) { .bento .card:hover { border-color: var(--line-2); transform: translateY(-2px); } }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento .card, .bento .card.wide { grid-column: span 1; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { font: 500 11.5px var(--mono); color: var(--text-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.viz { margin-top: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 13px; min-height: 118px; }
.viz-label { font: 500 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.viz-score { display: flex; align-items: center; gap: 16px; }
.ring { --p: 50; --c: var(--good); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, 0.07) 0); position: relative; font: 650 16px var(--font); }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg-2); }
.ring span { position: relative; }
.ring.bad { --c: var(--bad); }
.viz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.viz-list li { display: flex; justify-content: space-between; gap: 10px; color: var(--text-2); }
.viz-list .x { color: var(--bad); } .viz-list .ok { color: var(--good); }
.bar-row { display: grid; grid-template-columns: 110px 1fr 38px; align-items: center; gap: 10px; color: var(--text-2); margin: 0 0 8px; }
.bar-row:last-child { margin-bottom: 0; }
.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.bar-row .n { font: 500 12px var(--mono); color: var(--muted); text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 12px var(--mono); padding: 4px 9px; border-radius: 8px; background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.22); color: #9cf0cc; }
.chip.dim { background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); color: var(--muted); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats div { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.mini-stats b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.mini-stats span { font-size: 11.5px; color: var(--muted); }
.rank-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; color: var(--text-2); padding: 5px 0; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-row .pos { font: 500 12px var(--mono); color: var(--muted); }
.rank-row .sp { font: 500 10.5px var(--mono); color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.3); border-radius: 6px; padding: 1px 6px; }

/* Prompts */
.prompts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 760px) { .prompts { grid-template-columns: 1fr; } }
.prompt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: 15px/1.5 var(--font); cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out); }
.prompt:hover { border-color: var(--line-2); background: var(--surface-2); color: var(--text); }
.prompt:active { transform: scale(0.99); }
.prompt .icon { color: var(--muted); margin-left: auto; }
.prompt .q { color: var(--accent); font-family: var(--mono); font-size: 13px; }
.prompt.copied .icon { color: var(--accent); }

/* Tabs + code */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.tab { font: 500 13.5px var(--font); background: transparent; color: var(--muted); border: 0; padding: 8px 14px; border-radius: 9px; cursor: pointer; transition: color 150ms ease, background-color 150ms ease; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface-3); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }
.code { position: relative; background: var(--code-bg); color: var(--code-text); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px 20px 22px; overflow-x: auto; box-shadow: var(--shadow); }
.code pre { margin: 0; white-space: pre; line-height: 1.65; font-size: 13.5px; }
.code .hint { color: var(--muted); font-family: var(--font); font-size: 13.5px; margin: 0 90px 14px 0; white-space: normal; }
.copy { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--font); background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; cursor: pointer; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.copy:hover { background: rgba(255, 255, 255, 0.11); }
.copy:active { transform: scale(0.96); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: relative; box-shadow: var(--shadow); }
.plan.highlight { background: linear-gradient(180deg, rgba(52, 211, 153, 0.07), var(--surface) 45%); border-color: var(--accent-line); box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.15), var(--shadow-lg); }
.plan .badge { position: absolute; top: 24px; right: 24px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font: 600 11.5px var(--font); padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 16px; color: var(--text-2); font-weight: 600; }
.plan .price { font-size: 46px; font-weight: 650; letter-spacing: -0.04em; margin: 6px 0 2px; line-height: 1.1; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .per { font: 500 12.5px var(--mono); color: var(--muted); margin: 0 0 14px; }
.plan .blurb { color: var(--muted); font-size: 15px; margin: 0; }
.plan ul { list-style: none; padding: 20px 0 0; margin: 20px 0 26px; flex: 1; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.plan li .icon { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; }
.plan .btn { width: 100%; }
.pricing-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.pricing-note span { display: inline-flex; align-items: center; gap: 6px; }
.pricing-note .icon { width: 15px; height: 15px; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; transition: border-color 150ms ease; }
details[open] { border-color: var(--line-2); }
summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 9px; height: 9px; border-right: 1.75px solid var(--muted); border-bottom: 1.75px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform 200ms var(--ease-out); flex: none; }
details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
details p { color: var(--text-2); margin: -4px 0 18px; font-size: 15px; }
details.plain { background: none; border: 0; padding: 0; }
details.plain summary { padding: 0; font-size: 14px; font-weight: 500; color: var(--muted); justify-content: flex-start; }
details.plain summary::after { width: 7px; height: 7px; }

/* ---------- CTA band ---------- */
.cta-card { position: relative; overflow: hidden; text-align: center; padding: 64px 32px; border-radius: 28px; border: 1px solid var(--line-2); background: radial-gradient(500px 240px at 50% 0%, rgba(52, 211, 153, 0.16), transparent 70%), var(--surface); box-shadow: var(--shadow-lg); }
.cta-card h2 { max-width: 16em; margin-left: auto; margin-right: auto; }
.cta-card p { color: var(--text-2); margin: 0 auto 28px; max-width: 34em; }
.cta-card .capture { margin: 0 auto; }
@media (max-width: 600px) { .cta-card { padding: 44px 18px; } }

/* ---------- Forms ---------- */
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.input {
  flex: 1; min-width: 220px; height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03); color: var(--text); font: 16px var(--font); transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input::placeholder { color: #6b7080; }
.input:focus { outline: none; border-color: rgba(52, 211, 153, 0.55); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12); }
.label { font-weight: 600; font-size: 13.5px; color: var(--text-2); }
.status { margin: 12px 0 0; font-size: 14.5px; min-height: 22px; color: var(--text-2); }
.status:empty { min-height: 0; margin: 0; }
.status.ok { color: var(--good); }
.status.err { color: var(--bad); }
.code-input { width: 100%; font: 600 26px var(--mono); letter-spacing: 0.35em; text-align: center; height: 60px; }

/* ---------- Panels / account ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .panel { padding: 22px; } }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-head h2 { font-size: 19px; letter-spacing: -0.02em; margin: 0 0 4px; }
.panel-head p { color: var(--muted); margin: 0; font-size: 14.5px; }
.auth-card { max-width: 460px; margin: 0 auto; }
.auth-card h1 { font-size: 30px; letter-spacing: -0.03em; margin: 14px 0 8px; line-height: 1.15; }
.auth-card .sub { color: var(--muted); margin: 0; }
.auth-wrap { padding: 72px 0 96px; position: relative; isolation: isolate; }
.auth-wrap::before { content: ""; position: absolute; inset: 0 0 auto; height: 480px; z-index: -1; pointer-events: none; background: radial-gradient(520px 260px at 50% 0%, rgba(52, 211, 153, 0.12), transparent 70%); }
.key-box { display: flex; gap: 10px; align-items: center; background: var(--code-bg); color: var(--code-text); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 10px 10px 16px; font-family: var(--mono); font-size: 14px; word-break: break-all; }
.key-box > span { flex: 1; }
.key-box .copy { position: static; flex: none; }
.warn { background: rgba(251, 191, 36, 0.07); border: 1px solid rgba(251, 191, 36, 0.25); color: #f5d28a; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin: 0; }
.stat { font-size: 56px; font-weight: 650; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.dash-head h1 { font-size: 34px; letter-spacing: -0.035em; margin: 0; line-height: 1.1; }
.dash-head p { margin: 6px 0 0; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-stat { position: relative; overflow: hidden; background: radial-gradient(420px 200px at 0% 0%, rgba(52, 211, 153, 0.12), transparent 70%), var(--surface); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 6px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
td { color: var(--text-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.pos { color: var(--good); }
.empty { color: var(--muted); margin: 0; font-size: 14.5px; padding: 18px; border: 1px dashed var(--line-2); border-radius: 12px; text-align: center; }
.hidden { display: none !important; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack.tight { gap: 10px; }
.stack.hidden { display: none !important; }
.stack > .eyebrow { align-self: flex-start; }
.stack > .input { flex: none; }
.perm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.perm-list li { display: flex; gap: 10px; color: var(--text-2); font-size: 15px; }
.perm-list .icon { color: var(--accent); margin-top: 3px; width: 16px; height: 16px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.result-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.result-icon.bad { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.3); color: var(--bad); }
.result-icon .icon { width: 22px; height: 22px; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; color: var(--text-2); font-size: 15px; }
.check-list .icon { color: var(--accent); margin-top: 3px; width: 16px; height: 16px; }

/* Billing + danger zone */
.sub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sub-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.badge-status { font: 600 11.5px var(--font); padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: var(--muted); text-transform: capitalize; }
.badge-status.ok { background: rgba(52, 211, 153, 0.12); color: var(--good); }
.badge-status.warn { background: rgba(251, 191, 36, 0.12); color: var(--warn); }

/* ---------- Legal pages ---------- */
.legal { padding-top: 8px; }
.legal h1 { font-size: clamp(34px, 5vw, 44px); margin: 0 0 8px; }
.legal h2 { font-size: 21px; letter-spacing: -0.015em; margin: 44px 0 10px; }
.legal p, .legal li { color: var(--text-2); line-height: 1.75; }
.legal .meta { color: var(--muted); margin: 0 0 32px; }
.legal .note { background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.legal table { margin: 8px 0 0; }
.placeholder { background: rgba(251, 191, 36, 0.18); color: #f5d28a; border-radius: 4px; padding: 0 4px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 56px 0 40px; }
.foot h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); text-decoration: none; }
.foot p { margin: 14px 0 0; max-width: 26em; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 32px; border-top: 1px solid var(--line); font-size: 13px; }
.foot-min { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0; }
.foot-min a { color: var(--muted); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
/* Comfortable tap targets for small text links on touch screens */
@media (pointer: coarse) { .foot a, .foot-min a, .fine a, .foot-base a { display: inline-block; padding-block: 8px; } .foot ul { gap: 2px; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.chat-body > * { animation: rise 520ms var(--ease-out) both; }
.chat-body > :nth-child(1) { animation-delay: 150ms; }
.chat-body > :nth-child(2) { animation-delay: 450ms; }
.chat-body > :nth-child(3) { animation-delay: 600ms; }
.chat-body > :nth-child(4) { animation-delay: 750ms; }
.chat-body > :nth-child(5) { animation-delay: 1000ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chat-body > * { animation: none; }
  .btn, .card, .prompt, .copy { transition: none; }
}
