/* Shared design system — palette and typography for the whole site, defined once here as CSS
   custom properties (light + dark). Linked by every page. */
:root {
  --ground: #0d1013; --surface: #151a1e; --surface-2: #1b2228; --border: #263038;
  --text: #e7ece9; --text-dim: #9fb0aa; --text-faint: #6c7d77;
  --accent: #33b07a; --accent-strong: #46c98e; --accent-ink: #04140d;
  --sev-crit: #e5484d; --sev-warn: #f5a623;
  --radius: 14px; --radius-sm: 9px; --maxw: 1120px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
}
:root[data-theme="light"] {
  --ground: #f5f7f4; --surface: #ffffff; --surface-2: #eef2ee; --border: #d8e0d9;
  --text: #14201a; --text-dim: #4a5a52; --text-faint: #6f8078;
  --accent: #1c8f5e; --accent-strong: #157a4f; --accent-ink: #ffffff;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --ground: #f5f7f4; --surface: #ffffff; --surface-2: #eef2ee; --border: #d8e0d9;
    --text: #14201a; --text-dim: #4a5a52; --text-faint: #6f8078;
    --accent: #1c8f5e; --accent-strong: #157a4f; --accent-ink: #ffffff;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--font-sans);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
code { font-family: var(--font-mono); font-size: .92em; }
section { padding: clamp(56px, 9vw, 104px) 0; }
section.bg { background: var(--surface); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-strong); margin: 0 0 14px; }
.lede { color: var(--text-dim); font-size: clamp(16px, 2vw, 19px); max-width: 60ch; }
.sec-head { max-width: 62ch; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 36px); }
.sec-head p { color: var(--text-dim); margin-top: 12px; }

header.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--ground) 82%, transparent); border-bottom: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; font-size: 17px; text-decoration: none; color: inherit; }
.brand .logo { width: 26px; height: 26px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 8px; font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 14.5px; }
.nav-links a:hover { color: var(--text); }
.nav-sep { width: 1px; height: 18px; background: var(--border); flex: none; }
.nav-links .nav-util { color: var(--text-faint); }
.nav-links .nav-util:hover { color: var(--text); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); color: var(--text);
  width: 40px; height: 36px; border-radius: 9px; cursor: pointer; align-items: center; justify-content: center;
  padding: 0; font-size: 17px; line-height: 1; }
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle .x { display: none; }
header.nav.open .nav-toggle .bars { display: none; }
header.nav.open .nav-toggle .x { display: inline; }
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 6px 0 12px; background: color-mix(in srgb, var(--ground) 97%, transparent);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); box-shadow: 0 18px 40px -24px rgba(0,0,0,.6);
    display: none; }
  header.nav.open .nav-links { display: flex; }
  .nav-links a { padding: 13px 24px; font-size: 16px; color: var(--text-dim); }
  .nav-links a:hover { color: var(--text); }
  .nav-sep { display: none; }
  .nav-links .nav-cta { margin: 10px 24px 2px; justify-content: center; font-size: 15px; }
}

.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px;
  padding: 11px 18px; border-radius: 999px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

.hero { padding-top: clamp(48px, 7vw, 84px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.hero-grid.solo { grid-template-columns: 1fr; max-width: 780px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 780; }
.hero h1 .hl { color: var(--accent-strong); }
.hero .lede { margin: 22px 0 30px; font-size: clamp(17px, 2.1vw, 20px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row.center { justify-content: center; }
.hero-note { margin-top: 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.55); overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border);
  background: var(--surface-2); font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.panel-body { padding: 16px 18px 20px; font-family: var(--font-mono); font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.row:last-child { border-bottom: 0; }
.pill { font-size: 11px; padding: 2px 9px; border-radius: 999px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.pill.crit { background: color-mix(in srgb, var(--sev-crit) 18%, transparent); color: var(--sev-crit); }
.pill.warn { background: color-mix(in srgb, var(--sev-warn) 20%, transparent); color: var(--sev-warn); }
.pill.ok { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-strong); }
.muted { color: var(--text-faint); }
.verdict { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--radius-sm); color: var(--accent-strong); font-family: var(--font-mono); font-size: 13px; }
.hero-visual img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); display: block; }

/* ---- hero carousel (only rendered when >1 visual is present) ---- */
.carousel-viewport { position: relative; }
.slide { display: none; }
.slide.active { display: block; animation: slideFade .35s ease; }
@keyframes slideFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .slide.active { animation: none; } }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.dots { display: flex; gap: 8px; align-items: center; }
.dot-btn { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: 0; padding: 0; cursor: pointer; transition: width .2s ease, background .2s ease; }
.dot-btn.active { background: var(--accent); width: 22px; border-radius: 999px; }
.arrow { background: transparent; border: 1px solid var(--border); color: var(--text-dim); width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.arrow:hover { border-color: var(--accent); color: var(--accent-strong); }

.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; justify-content: center;
  padding: 20px 24px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); letter-spacing: .04em; }
.strip b { color: var(--text-dim); font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid, .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
section.bg .card { background: var(--surface-2); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14.5px; margin: 0; }
.ico { width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 15%, transparent); font-size: 21px; margin-bottom: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step .n { font-family: var(--font-mono); font-size: 13px; color: var(--accent-ink); background: var(--accent);
  width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 7px; }
.step p { color: var(--text-dim); font-size: 14.5px; margin: 0; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; align-items: stretch; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column; }
section.bg .tier { background: var(--surface-2); }
.tier.feature { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -34px var(--accent); }
.tier .tname { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.tier .price { font-size: 34px; font-weight: 760; margin: 12px 0 2px; letter-spacing: -0.02em; }
.tier .price small { font-size: 15px; color: var(--text-faint); font-weight: 500; }
.tier .sub { color: var(--text-dim); font-size: 14px; min-height: 40px; }
.tier ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.tier li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-dim); }
.tier li::before { content: "✓"; color: var(--accent-strong); font-weight: 800; }
.tier li.no { color: var(--text-faint); }
.tier li.no::before { content: "–"; color: var(--text-faint); }
.tier .btn { margin-top: auto; justify-content: center; }
.badge { align-self: flex-start; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }

.faq { max-width: 780px; margin: 36px auto 0; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 18px; }
section.bg details { background: var(--surface-2); }
details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-strong); font-weight: 700; }
details[open] summary::after { content: "−"; }
details p { color: var(--text-dim); font-size: 14.5px; margin: 0 0 16px; }

.band { text-align: center; background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band h2 { font-size: clamp(26px, 4vw, 40px); }
.band .lede { margin: 16px auto 26px; }
footer { padding: 40px 0 56px; color: var(--text-faint); font-size: 13.5px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.foot-in a { color: var(--text-dim); text-decoration: none; }
.foot-in a:hover { color: var(--accent-strong); }
.foot-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.theme-toggle { background: transparent; border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; font-family: var(--font-mono); }

/* ---- content pages (success / account): a centered narrow column ---- */
.page { max-width: 640px; margin: 0 auto; padding: clamp(56px, 10vw, 100px) 24px; }
.page .eyebrow { text-align: center; }
.page h1 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 760; text-align: center; }
.page > .lede { margin: 16px auto 0; text-align: center; }
.page-icon { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent); font-size: 28px; }
.keybox { margin: 28px 0 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; align-items: center; gap: 12px; }
.keybox code { flex: 1; font-family: var(--font-mono); font-size: 14px; color: var(--text); word-break: break-all; }
.notice { margin-top: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.notice.ok { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.notice h3 { font-size: 15px; margin-bottom: 6px; }
.notice p { color: var(--text-dim); font-size: 14.5px; margin: 0; }
.notice p a, .olist a, .page .lede a { color: var(--accent-strong); text-decoration: none; font-weight: 600; }
.notice p a:hover, .olist a:hover { text-decoration: underline; }
.olist { counter-reset: o; list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.olist li { counter-increment: o; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start;
  color: var(--text-dim); font-size: 14.5px; }
.olist li::before { content: counter(o); font-family: var(--font-mono); font-weight: 700; color: var(--accent-ink);
  background: var(--accent); width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.olist li code { color: var(--text); }
.page-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---- docs page: sticky TOC sidebar + content column ---- */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 48px; max-width: 1040px;
  margin: 0 auto; padding: clamp(36px, 6vw, 64px) 24px; align-items: start; }
.docs-toc { position: sticky; top: 82px; display: grid; gap: 2px; }
.docs-toc .toc-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 8px; }
.docs-toc a { color: var(--text-dim); text-decoration: none; font-size: 14px; padding: 4px 0 4px 12px;
  border-left: 2px solid transparent; }
.docs-toc a:hover, .docs-toc a.active { color: var(--accent-strong); border-left-color: var(--accent); }
.docs-content { min-width: 0; }
.docs-content .doc-sec { padding: 0 0 38px; }
.docs-content .doc-lede { color: var(--text-dim); font-size: clamp(16px,2vw,18px); margin: 0 0 34px; }
.docs-content h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 760; margin-bottom: 10px; }
.docs-content h2 { font-size: 23px; margin-bottom: 12px; scroll-margin-top: 82px; padding-top: 8px; }
.docs-content h3 { font-size: 16px; margin: 20px 0 6px; }
.docs-content p { color: var(--text-dim); font-size: 15px; margin: 0 0 12px; }
.docs-content ul { padding-left: 20px; margin: 0 0 12px; color: var(--text-dim); }
.docs-content li { font-size: 15px; margin: 4px 0; }
.docs-content a { color: var(--accent-strong); text-decoration: none; font-weight: 600; }
.docs-content a:hover { text-decoration: underline; }
.docs-content pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; color: var(--text); margin: 0 0 14px; }
.docs-content :not(pre) > code { background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 1px 6px; border-radius: 5px; font-family: var(--font-mono); font-size: .9em; }
.docs-content pre code { background: transparent; padding: 0; }
@media (max-width: 820px) { .docs { grid-template-columns: 1fr; gap: 8px; } .docs-toc { position: static; margin-bottom: 8px; } }
