/* ==========================================================================
   Autopia — palette pulled from the logo (sunset over palms)
   ========================================================================== */
:root {
  --ink: #1e170f;
  --ink-2: #4a4037;
  --ink-3: #7a6f64;
  --bg: #fffaf3;
  --bg-2: #fbf1e3;
  --surface: #ffffff;
  --line: #eadfce;
  --line-2: #dccdb8;

  --ocean-deep: #024a81;
  --ocean: #0a77a5;
  --gold: #fdc451;
  --sunset: #da7b36;
  --ember: #d14324;
  --sage: #a8ad73;

  --primary: #c9461f;
  --primary-hover: #b03a17;
  --on-primary: #ffffff;
  --link: #0a6690;

  --code-bg: #14100b;
  --code-line: #2b241b;
  --code-text: #efe6d8;

  --success: #2f7d4f;
  --danger: #b3261e;

  --grad-sky: linear-gradient(180deg, #024a81 0%, #0a77a5 22%, #a8ad73 45%, #fdc451 62%, #da7b36 80%, #d14324 100%);
  --grad-sun: linear-gradient(100deg, #fdc451 0%, #da7b36 50%, #d14324 100%);
  --grad-text: linear-gradient(100deg, #cf7f12 0%, #d2622a 50%, #c2381b 100%);

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(30, 23, 15, .06), 0 8px 24px rgba(30, 23, 15, .06);
  --shadow-lg: 0 2px 4px rgba(30, 23, 15, .06), 0 24px 60px rgba(30, 23, 15, .12);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --max: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f6eee2;
    --ink-2: #cfc3b3;
    --ink-3: #9a8e80;
    --bg: #120e0a;
    --bg-2: #1a140e;
    --surface: #1d1711;
    --line: #2e261d;
    --line-2: #3d3327;
    --primary: #e2602f;
    --primary-hover: #ef7442;
    --link: #5cb8e0;
    --code-bg: #0b0906;
    --code-line: #231d15;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .45);
    --success: #5cc187;
    --danger: #f2877f;
    --grad-text: var(--grad-sun);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--ocean); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1 var(--font);
  cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 64px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; gap: 28px; margin-right: auto; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }

@media (max-width: 820px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-inner { flex-wrap: wrap; height: auto; padding: 12px 0 16px; }
  .nav.open .nav-links, .nav.open .nav-actions { display: flex; flex-direction: column; width: 100%; gap: 4px; }
  .nav.open .nav-links a { padding: 10px 0; }
  .nav.open .nav-actions { flex-direction: row; margin-top: 8px; }
  .nav.open .nav-actions .btn { flex: 1; }
  .nav-inner { gap: 16px; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(253, 196, 81, .35), rgba(218, 123, 54, .14) 55%, transparent 75%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-sun); }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); margin: 20px 0 20px; font-weight: 800; }
.hero h1 .accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: "✓"; color: var(--success); font-weight: 700; margin-right: 6px; }

/* ---------- code window ---------- */
.code-window {
  background: var(--code-bg); color: var(--code-text);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid #2b241b;
  min-width: 0;
}
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; border-bottom: 1px solid var(--code-line); }
.code-tabs { display: flex; gap: 2px; }
.code-tab {
  background: none; border: 0; color: #9a8e80; cursor: pointer;
  font: 500 13px/1 var(--font); padding: 14px 12px; border-bottom: 2px solid transparent;
}
.code-tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--gold); }
.copy-btn { background: none; border: 1px solid var(--code-line); color: #9a8e80; border-radius: 6px; font: 500 12px/1 var(--font); padding: 6px 10px; cursor: pointer; }
.copy-btn:hover { color: #fff; border-color: #4a4037; }
.code-body { margin: 0; padding: 18px 20px; font-size: 13px; line-height: 1.7; overflow-x: auto; white-space: pre; }
.code-body[hidden] { display: none; }
.code-divider { padding: 8px 20px; font: 600 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #7a6f64; border-top: 1px solid var(--code-line); border-bottom: 1px solid var(--code-line); background: #0f0c08; display: flex; justify-content: space-between; }
.code-divider .ok { color: #5cc187; }
.tk-k { color: #f2a65a; }  /* keyword / key */
.tk-s { color: #fdc451; }  /* string */
.tk-n { color: #7cc4e4; }  /* number / bool */
.tk-c { color: #6f6558; }  /* comment */
.tk-f { color: #e8826a; }  /* flag / fn */

/* ---------- sections ---------- */
section { scroll-margin-top: 72px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sunset); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 40px); }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--sunset) 14%, transparent); color: var(--primary); margin-bottom: 18px;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 15px; }

/* result types strip */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }
.step code { font-size: 13px; background: var(--bg-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured .badge { position: absolute; top: -13px; left: 32px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 18px; }
.plan .desc { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.price { margin: 22px 0 4px; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.price small { font-size: 16px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan .quota { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: color-mix(in srgb, var(--success) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232f7d4f'%3E%3Cpath d='M8.1 13.3 4.8 10l-1.1 1.1 4.4 4.4 9.2-9.2-1.1-1.1z'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .btn { margin-top: auto; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }

/* cta band */
.cta-band { padding: 0 0 96px; }
.cta-card {
  position: relative; overflow: hidden; border-radius: 20px; padding: 64px 48px; text-align: center; color: #fff;
  background: linear-gradient(160deg, #024a81 0%, #0a77a5 30%, #da7b36 78%, #d14324 100%);
}
.cta-card::after {
  content: ""; position: absolute; left: 50%; bottom: -180px; width: 420px; height: 420px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(253, 196, 81, .75), rgba(253, 196, 81, 0));
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(28px, 3.6vw, 40px); }
.cta-card p { margin: 14px auto 28px; max-width: 520px; font-size: 18px; opacity: .92; }
.cta-card .btn-primary { background: #fff; color: #1e170f; }  /* fixed dark text so it stays readable in dark mode too */
.cta-card .btn-primary:hover { background: #fdf3e3; }
/* Secondary CTA button: solid dark glass so white text pops over the bright gradient glow */
.cta-card .btn-ghost { background: rgba(20, 15, 10, .32); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cta-card .btn-ghost:hover { background: rgba(20, 15, 10, .5); border-color: #fff; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0; font-size: 14px; color: var(--ink-3); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-3); }

@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .features, .steps, .pricing { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .features, .steps, .pricing { grid-template-columns: 1fr; }
  .cta-card { padding: 48px 24px; }
  .code-body { font-size: 12px; padding: 16px; }
}

/* ==========================================================================
   Auth pages
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  position: relative; overflow: hidden; color: #fff; padding: 40px 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--grad-sky);
}
.auth-side::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/logo.png") center / cover no-repeat;
  opacity: .22; mix-blend-mode: multiply;
}
.auth-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 30, 55, .25), rgba(30, 23, 15, .55)); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side .brand { color: #fff; }
.auth-side h2 { font-size: clamp(28px, 3vw, 38px); max-width: 440px; }
.auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; font-size: 16px; opacity: .95; }
.auth-side li { display: flex; gap: 10px; align-items: center; }
.auth-side li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.auth-side .mini-code { margin-top: 32px; background: rgba(11, 9, 6, .6); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; padding: 14px 16px; font: 13px/1.6 var(--mono); overflow-x: auto; white-space: pre; backdrop-filter: blur(6px); }
.auth-side .foot { font-size: 13px; opacity: .8; }

.auth-main { display: flex; flex-direction: column; padding: 32px 24px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-3); }
.auth-top .brand { display: none; }
.auth-form-wrap { width: 100%; max-width: 400px; margin: auto; padding: 32px 0; }
.auth-form-wrap h1 { font-size: 30px; font-weight: 800; }
.auth-form-wrap .sub { color: var(--ink-3); margin: 8px 0 28px; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.field-row a { font-size: 13px; }
.input-wrap { position: relative; }
.input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink);
  font: 15px var(--font); transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--ink-3); opacity: .7; }
.input:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ocean) 22%, transparent); }
.input.has-toggle { padding-right: 64px; }
.field.invalid .input { border-color: var(--danger); }
.field .error { display: none; font-size: 13px; color: var(--danger); }
.field.invalid .error { display: block; }
.toggle-pw { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--ink-3); font: 600 13px var(--font); padding: 8px; cursor: pointer; }
.toggle-pw:hover { color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.strength span { height: 4px; border-radius: 2px; background: var(--line); transition: background .2s; }
.strength[data-score="1"] span:nth-child(-n+1) { background: var(--ember); }
.strength[data-score="2"] span:nth-child(-n+2) { background: var(--sunset); }
.strength[data-score="3"] span:nth-child(-n+3) { background: var(--gold); }
.strength[data-score="4"] span { background: var(--success); }
.hint { font-size: 12px; color: var(--ink-3); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--primary); flex: none; }

.captcha { min-height: 78px; }
.captcha-wrap .error { display: none; font-size: 13px; color: var(--danger); margin-top: 6px; }
.captcha-wrap.invalid .error { display: block; }

.alert { display: none; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.alert.show { display: block; }
.alert.error { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.alert.success { background: color-mix(in srgb, var(--success) 10%, transparent); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }

.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.switch { text-align: center; font-size: 14px; color: var(--ink-3); margin-top: 24px; }
.legal { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 16px; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-top .brand { display: inline-flex; }
}
@media (max-width: 400px) {
  .two-col { grid-template-columns: 1fr; }
  .captcha { transform: scale(.92); transform-origin: 0 0; }
}

/* ==========================================================================
   Stats, two-product layout, comparison, flow
   ========================================================================== */

.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.features.grid-2x2 { grid-template-columns: repeat(2, 1fr); }
.feature-wide { grid-column: 1 / -1; border-left: 4px solid var(--primary); }
.feature-wide h3 { font-size: 22px; }
.feature-wide p { max-width: 760px; }
.safety-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px !important; color: var(--ink-3) !important; }
@media (max-width: 640px) { .features.grid-2x2 { grid-template-columns: 1fr; } }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stat { padding: 32px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { color: var(--ink-3); font-size: 14px; }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat { padding: 22px 16px; }
}

/* pricing variants */
.pricing.two { grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; }
.pricing.four { grid-template-columns: repeat(4, 1fr); }
.pricing.four .plan { padding: 26px; }
.pricing.four .price { font-size: 38px; }
.per { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 1060px) { .pricing.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pricing.two, .pricing.four { grid-template-columns: 1fr; } }

/* product teaser band */
.teaser {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  background: var(--code-bg); color: #f6eee2; border-radius: 20px; padding: 56px; overflow: hidden; position: relative;
}
.teaser::before {
  content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(218, 123, 54, .35), rgba(209, 67, 36, .12) 60%, transparent);
}
.teaser > * { position: relative; }
.teaser .kicker { color: var(--gold); }
.teaser h2 { font-size: clamp(28px, 3.4vw, 38px); }
.teaser p { color: #cfc3b3; margin: 14px 0 26px; font-size: 17px; }
.teaser .btn-primary { background: var(--gold); color: #1e170f; }
.teaser .btn-primary:hover { background: #ffd173; }
.teaser .btn-ghost { color: #f6eee2; border-color: #3d3327; }
.teaser .btn-ghost:hover { background: #1d1711; }
.teaser-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.teaser-search { background: #1d1711; border: 1px solid #2e261d; border-radius: 16px; padding: 22px; }
.fake-input { display: flex; align-items: center; gap: 12px; background: #120e0a; border: 1px solid #3d3327; border-radius: 999px; padding: 12px 18px; color: #9a8e80; font-size: 15px; }
.fake-input svg { width: 18px; height: 18px; flex: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(92, 193, 135, .1); color: #7fd3a2; border: 1px solid rgba(92, 193, 135, .25); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; padding: 36px 24px; gap: 32px; } }

/* flow diagram (private page) */
.flow { display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr; align-items: center; gap: 12px; }
.flow-node { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-align: center; box-shadow: var(--shadow); }
.flow-node.core { border: 2px solid var(--primary); }
.flow-node .label { font-weight: 700; font-size: 16px; }
.flow-node .sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.flow-node .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.flow-node .tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); }
.flow-arrow { display: grid; justify-items: center; gap: 4px; color: var(--ink-3); font-size: 12px; font-weight: 600; text-align: center; }
.flow-arrow svg { width: 44px; height: 16px; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow svg { transform: rotate(90deg); width: 32px; }
}

/* comparison table */
.compare { max-width: 880px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--bg-2); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.compare thead th.us { color: var(--primary); }
.compare td:first-child { font-weight: 600; color: var(--ink); width: 40%; }
.compare td { color: var(--ink-2); }
.yes, .no { display: inline-flex; align-items: flex-start; gap: 8px; }
.yes::before, .no::before { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; margin-top: 2px; }
.yes::before { content: "✓"; background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.no::before { content: "✕"; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
@media (max-width: 640px) {
  .compare th, .compare td { padding: 12px; font-size: 14px; }
  .compare td:first-child { width: auto; }
}

/* five-plan pricing (autognito) */
.pricing.five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.pricing.five .plan { padding: 24px 20px; }
.pricing.five .plan.featured .badge { left: 20px; }
.pricing.five .price { font-size: 34px; }
@media (max-width: 1100px) { .pricing.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pricing.five { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pricing.five { grid-template-columns: 1fr; } }

.soon { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--ocean); background: color-mix(in srgb, var(--ocean) 12%, transparent); vertical-align: 1px; }
.plan-includes { text-align: center; margin-top: 28px; color: var(--ink-2); font-size: 15px; }
.plan-includes b { color: var(--ink); }

/* segmented product picker (register) */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { display: block; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.segmented label b { display: block; font-size: 14px; color: var(--ink); }
.segmented label span { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.segmented input:checked + label { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.segmented input:focus-visible + label { outline: 2px solid var(--ocean); outline-offset: 2px; }

/* ==========================================================================
   Private search app (search.html)
   ========================================================================== */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-bar { display: flex; align-items: center; gap: 16px; padding: 14px 24px; }
.app-bar .spacer { flex: 1; }
.usage { font-size: 13px; color: var(--ink-3); }
.usage b { color: var(--ink); }
.priv-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; color: var(--success); background: color-mix(in srgb, var(--success) 10%, transparent); border: 1px solid color-mix(in srgb, var(--success) 25%, transparent); white-space: nowrap; }
.priv-badge svg { width: 13px; height: 13px; }

.sbox { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 8px 0 20px; height: 52px; transition: box-shadow .15s, border-color .15s; }
.sbox:focus-within { border-color: transparent; box-shadow: var(--shadow-lg); }
.sbox svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.sbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 16px var(--font); color: var(--ink); height: 100%; }
.sbox .clear { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 20px; padding: 4px 8px; display: none; }
.sbox.has-value .clear { display: block; }
.sbox .go { height: 38px; padding: 0 16px; border-radius: 999px; }

.s-home { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px 18vh; text-align: center; }
.s-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; text-align: left; }
.s-logo img { width: 64px; height: 64px; border-radius: 16px; }
.s-logo span { display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.s-logo small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sunset); margin-top: 6px; }
.s-home form { width: 100%; max-width: 620px; }
.s-home .pills { justify-content: center; margin-top: 22px; }
.s-home .pill { background: color-mix(in srgb, var(--success) 8%, transparent); color: var(--success); border-color: color-mix(in srgb, var(--success) 22%, transparent); }
.s-home .note { margin-top: 18px; font-size: 13px; color: var(--ink-3); max-width: 460px; }

.s-results { display: none; flex: 1; }
.app.searching .s-home, .app.searching .app-bar { display: none; }
.app.searching .s-results { display: block; }
.r-head { border-bottom: 1px solid var(--line); padding: 14px 24px 0; }
.r-head-top { display: flex; align-items: center; gap: 20px; }
.r-head-top .brand { width: 130px; flex: none; }
.r-head-top .brand img { width: 30px; height: 30px; }
.r-head-top form { flex: 1; max-width: 680px; }
.r-head-top .sbox { height: 46px; }
.r-head-top .priv-badge { margin-left: auto; }
.r-tabs { display: flex; gap: 22px; margin-left: 150px; margin-top: 8px; }
.r-tab { background: none; border: 0; padding: 12px 2px; font: 500 14px var(--font); color: var(--ink-3); cursor: pointer; border-bottom: 3px solid transparent; }
.r-tab[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.r-body { padding: 18px 24px 64px; max-width: 830px; margin-left: 150px; }
.r-meta { font-size: 13px; color: var(--ink-3); margin-bottom: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.r-item { margin-bottom: 28px; }
.r-site { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.r-fav { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink-2); flex: none; text-transform: uppercase; }
.r-site-name { font-size: 14px; color: var(--ink); line-height: 1.3; }
.r-site-url { font-size: 12px; color: var(--ink-3); line-height: 1.3; word-break: break-all; }
.r-title { font-size: 20px; line-height: 1.3; font-weight: 500; color: var(--link); display: inline-block; }
.r-snippet { font-size: 14px; color: var(--ink-2); margin-top: 4px; max-width: 640px; }
.r-error { padding: 40px 0; color: var(--ink-2); }
.r-error b { display: block; color: var(--ink); margin-bottom: 6px; font-size: 17px; }
.demo-banner { font-size: 13px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 20%, transparent); border: 1px solid color-mix(in srgb, var(--sunset) 35%, transparent); color: var(--ink); margin-bottom: 22px; }
.r-pager { display: flex; gap: 10px; margin-top: 12px; }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--bg-2), var(--line), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin-bottom: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 900px) {
  .r-tabs, .r-body { margin-left: 0; }
  .r-head-top .brand { width: auto; }
  .r-head-top .priv-badge { display: none; }
}
@media (max-width: 640px) {
  .app-bar, .r-head, .r-body { padding-left: 16px; padding-right: 16px; }
  .r-head-top { gap: 12px; }
  .r-head-top .brand-text { display: none; }
  .s-logo span { font-size: 34px; }
  .s-logo img { width: 52px; height: 52px; }
  .usage { display: none; }
  .sbox .go { display: none; }
}

.cta-card em { font-style: italic; }

/* ==========================================================================
   Legal / doc pages (privacy, terms)
   ========================================================================== */
.doc-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.doc-hero .updated { color: var(--ink-3); font-size: 14px; margin-top: 12px; }
.doc-hero .lead { color: var(--ink-2); font-size: 18px; margin-top: 16px; max-width: 640px; }
.doc-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 48px 0 96px; align-items: start; }
.doc-toc { position: sticky; top: 88px; display: grid; gap: 4px; font-size: 14px; }
.doc-toc a { color: var(--ink-3); padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.doc-toc a:hover { color: var(--ink); background: var(--bg-2); text-decoration: none; }
.doc-body { max-width: 720px; min-width: 0; }
.doc-body h2 { font-size: 24px; margin: 44px 0 14px; scroll-margin-top: 88px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 17px; margin: 26px 0 8px; }
.doc-body p, .doc-body li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.doc-body p { margin: 12px 0; }
.doc-body ul { margin: 12px 0; padding-left: 22px; }
.doc-body li { margin: 6px 0; }
.doc-body strong { color: var(--ink); }
.doc-callout { background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 10px; padding: 18px 22px; margin: 20px 0; }
.doc-callout p { margin: 0; color: var(--ink); }
.ledger { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 20px 0; }
.ledger-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ledger-col { padding: 20px 22px; }
.ledger-col + .ledger-col { border-left: 1px solid var(--line); }
.ledger-col h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.ledger-col.store h4 { color: var(--ink-2); }
.ledger-col.never h4 { color: var(--success); }
.ledger-col ul { list-style: none; margin: 0; padding: 0; }
.ledger-col li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 8px 0; }
.ledger-col.store li::before { content: "•"; color: var(--ink-3); }
.ledger-col.never li::before { content: "✕"; color: var(--success); font-weight: 800; }
@media (max-width: 860px) {
  .doc-wrap { grid-template-columns: 1fr; gap: 0; }
  .doc-toc { display: none; }
}
@media (max-width: 560px) { .ledger-row { grid-template-columns: 1fr; } .ledger-col + .ledger-col { border-left: 0; border-top: 1px solid var(--line); } }

/* ==========================================================================
   Anonymous account (Mullvad-style)
   ========================================================================== */
.anon-num {
  font-family: var(--mono); font-size: clamp(22px, 4vw, 30px); font-weight: 500; letter-spacing: .12em;
  background: var(--code-bg); color: #f6eee2; border-radius: 12px; padding: 22px 20px; text-align: center;
  word-spacing: .3em; user-select: all; position: relative;
}
.anon-actions { display: flex; gap: 10px; margin-top: 14px; }
.anon-warn { display: flex; gap: 12px; background: color-mix(in srgb, var(--gold) 18%, transparent); border: 1px solid color-mix(in srgb, var(--sunset) 35%, transparent); border-radius: 12px; padding: 16px 18px; margin: 22px 0; font-size: 14px; color: var(--ink); }
.anon-warn svg { width: 20px; height: 20px; flex: none; color: var(--sunset); margin-top: 1px; }
.anon-steps { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 14px; counter-reset: astep; }
.anon-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.anon-steps li::before { counter-increment: astep; content: counter(astep); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.anon-num-input { font-family: var(--mono); letter-spacing: .1em; text-align: center; font-size: 18px; }
.seg-toggle { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 24px; }
.seg-toggle a { padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.seg-toggle a:hover { text-decoration: none; color: var(--ink); }
.seg-toggle a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ==========================================================================
   Dashboard
   ========================================================================== */
.dash { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.dash-side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; gap: 4px; }
.dash-side .brand { padding: 8px 10px 20px; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.dash-nav a:hover { background: var(--bg-2); text-decoration: none; color: var(--ink); }
.dash-nav a[aria-current="page"] { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.dash-nav svg { width: 18px; height: 18px; flex: none; }
.dash-side .foot { margin-top: auto; padding: 10px 12px; }
.dash-main { padding: 32px 40px; overflow: auto; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-head h1 { font-size: 26px; }
.dash-head .sub { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.dash-card .label { font-size: 13px; color: var(--ink-3); }
.dash-card .val { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.dash-card .val small { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.meter { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin-top: 14px; }
.meter span { display: block; height: 100%; background: var(--grad-sun); border-radius: 999px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.panel h2 { font-size: 17px; margin-bottom: 4px; }
.panel .desc { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }
.key-row { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-family: var(--mono); font-size: 14px; }
.key-row .key-val { flex: 1; overflow-x: auto; white-space: nowrap; color: var(--ink); }
.key-row .dots { letter-spacing: 2px; }
.upgrade-note { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.dash-topbar { display: none; }
@media (max-width: 820px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; overflow-x: auto; }
  .dash-side .brand { padding: 0 12px 0 0; }
  .dash-side .foot { margin: 0; }
  .dash-nav { display: flex; gap: 2px; }
  .dash-nav a span { display: none; }
  .dash-main { padding: 24px 16px; }
  .dash-cards { grid-template-columns: 1fr; }
}

/* People also ask (FAQ accordion) in search results */
.r-paa { border: 1px solid var(--line); border-radius: 14px; margin: 0 0 28px; overflow: hidden; }
.r-paa-head { padding: 14px 18px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--line); }
.r-paa details { border-bottom: 1px solid var(--line); }
.r-paa details:last-child { border-bottom: 0; }
.r-paa summary { cursor: pointer; list-style: none; padding: 14px 18px; font-size: 15px; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.r-paa summary::-webkit-details-marker { display: none; }
.r-paa summary::after { content: "+"; color: var(--ink-3); font-size: 20px; line-height: 1; flex: none; transition: transform .2s; }
.r-paa details[open] summary::after { transform: rotate(45deg); }
.r-paa .paa-body { padding: 0 18px 16px; }
.r-paa .paa-body .btn { margin-top: 2px; }
.r-paa .paa-note { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }

/* Video results */
.r-videos { margin: 0 0 30px; }
.r-videos h2 { font-size: 16px; margin-bottom: 14px; }
.r-vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.r-vid { display: block; color: inherit; }
.r-vid:hover { text-decoration: none; }
.r-vid:hover .r-vid-title { color: var(--link); text-decoration: underline; }
.r-vid-thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.r-vid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.r-vid-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.r-vid-thumb .play svg { width: 44px; height: 44px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); opacity: .95; }
.r-vid-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-vid-src { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* Image results grid */
.r-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.r-img { display: block; }
.r-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); }
.r-img .cap { font-size: 12px; color: var(--ink-3); margin-top: 6px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-empty-tab { padding: 48px 0; text-align: center; color: var(--ink-2); }
.r-empty-tab b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* Docs code blocks + endpoint badges */
.doc-body pre.code { background: var(--code-bg); color: var(--code-text); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font: 13px/1.7 var(--mono); margin: 16px 0; border: 1px solid var(--code-line); white-space: pre; }
.doc-body pre.code .tk-k { color: #f2a65a; } .doc-body pre.code .tk-s { color: #fdc451; }
.doc-body pre.code .tk-n { color: #7cc4e4; } .doc-body pre.code .tk-c { color: #6f6558; } .doc-body pre.code .tk-f { color: #e8826a; }
.doc-body code.inline { font-family: var(--mono); font-size: .88em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--ink); }
.ep { display: inline-flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-family: var(--mono); font-size: 14px; margin: 8px 0; }
.ep .m { font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 6px; letter-spacing: .04em; }
.ep .m.post { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.ep .m.get { background: color-mix(in srgb, var(--ocean) 18%, transparent); color: var(--ocean); }
.doc-body table.params { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.doc-body table.params th, .doc-body table.params td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-body table.params th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.doc-body table.params td:first-child { font-family: var(--mono); color: var(--ink); white-space: nowrap; }
.doc-body table.params .req { color: var(--primary); font-size: 12px; font-weight: 700; }

/* Error / status page (404) */
.status-page { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }
.status-page .code { font-size: clamp(72px, 16vw, 140px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.status-page h1 { font-size: clamp(24px, 4vw, 32px); margin: 12px 0 10px; }
.status-page p { color: var(--ink-2); font-size: 17px; max-width: 440px; }
.status-page .actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }

.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.choice { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.choice::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad-sun); }
.choice:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.choice .big-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px; background: color-mix(in srgb, var(--sunset) 14%, transparent); color: var(--primary); }
.choice .big-icon svg { width: 28px; height: 28px; }
.choice .who { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sunset); }
.choice h2 { font-size: clamp(24px, 3vw, 30px); margin: 8px 0 12px; }
.choice .blurb { color: var(--ink-2); font-size: 16px; }
.choice ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.choice li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.choice li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: color-mix(in srgb, var(--success) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232f7d4f'%3E%3Cpath d='M8.1 13.3 4.8 10l-1.1 1.1 4.4 4.4 9.2-9.2-1.1-1.1z'/%3E%3C/svg%3E") center/12px no-repeat; }
.choice .btn { margin-top: auto; }
.choice .price-hint { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 20px; }
.choice .price-hint span { color: var(--ink-3); font-weight: 500; }
@media (max-width: 760px) { .choose { grid-template-columns: 1fr; } .choice { padding: 32px 24px; } }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.principle { text-align: center; padding: 8px; }
.principle .pi { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); color: var(--primary); }
.principle .pi svg { width: 22px; height: 22px; }
.principle h3 { font-size: 16px; margin-bottom: 4px; }
.principle p { font-size: 14px; color: var(--ink-3); }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Visual polish
   ========================================================================== */
::selection { background: color-mix(in srgb, var(--sunset) 32%, transparent); color: var(--ink); }

/* Buttons get a soft branded lift on hover */
.btn-primary:hover { box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 34%, transparent); }
.btn-ghost:hover { border-color: var(--sunset); }

/* Card hover interactions */
.feature, .step, .plan, .flow-node, .compare { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature:hover, .step:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.plan:not(.featured):hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.plan.featured:hover { transform: translateY(-3px); }
.chip { transition: border-color .15s, color .15s, transform .15s; }
.chip:hover { border-color: var(--sunset); color: var(--ink); transform: translateY(-1px); }
.faq details { transition: border-color .15s; }
.faq details[open] { border-color: var(--line-2); }

/* Nav lifts once the page is scrolled */
.nav { transition: box-shadow .2s ease, background .2s ease; }
.nav.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 28px rgba(30, 23, 15, .07); }

/* Nicer link underlines in prose */
.doc-body a, .switch a, .hero-note a { text-underline-offset: 2px; }

/* Reveal-on-scroll (JS adds .reveal to targets, then .in when visible) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
