/* GIFUN LoadExpert — English site stylesheet
 *
 * Design language: "Clean SaaS" — near-black type on white, a single indigo
 * accent, hairline borders instead of drop shadows, generous whitespace, and
 * tabular monospace figures for anything numeric. Deliberately independent of
 * the Chinese site's stylesheet: the Chinese site keeps its own visual
 * language, and the two must not leak into each other.
 *
 * No web fonts are loaded — the system stack keeps the page render-blocking
 * free and avoids any third-party request.
 */

/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-raised: #ffffff;
  --bg-inset: #f4f4f5;

  --ink: #09090b;
  --ink-muted: #52525b;
  --ink-faint: #8a8a94;

  --line: #e4e4e7;
  --line-strong: #d4d4d8;

  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.07);
  --accent-line: rgba(79, 70, 229, 0.28);

  --ok: #15803d;
  --ok-soft: rgba(21, 128, 61, 0.09);
  --warn: #b45309;
  --warn-soft: rgba(180, 83, 9, 0.09);
  --danger: #b91c1c;
  --danger-soft: rgba(185, 28, 28, 0.09);

  --dark: #0b0b0f;
  --dark-line: rgba(255, 255, 255, 0.09);
  --dark-ink-muted: rgba(255, 255, 255, 0.62);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;

  --shadow-xs: 0 1px 2px rgba(9, 9, 11, 0.06);
  --shadow-sm: 0 1px 3px rgba(9, 9, 11, 0.07), 0 1px 2px rgba(9, 9, 11, 0.04);
  --shadow-md: 0 4px 12px rgba(9, 9, 11, 0.08);

  --maxw: 1120px;
  --header-h: 60px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  font-weight: 650;
  letter-spacing: -0.022em;
  color: var(--ink);
  line-height: 1.15;
}
h1 { font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -0.032em; font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.026em; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p { margin: 0 0 1em; color: var(--ink-muted); }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; color: var(--ink-muted); }
li { margin-bottom: .4em; }
code, kbd, samp {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 1px 5px;
  color: var(--ink);
}

/* Numeric figures line up in columns (container specs, capacities, stats). */
.num-fig, .data-table .num, .metric .value, .calc-result .value { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg-subtle); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head.left { text-align: left; margin-left: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.lede { font-size: 18px; color: var(--ink-muted); line-height: 1.6; }
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.calc-grid, .lead-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .grid-2, .grid-3, .calc-grid, .lead-grid, .faq-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .name { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.brand-text .tag { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-block; padding: 7px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-muted);
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--bg-inset); color: var(--ink); }
.nav a.active { color: var(--ink); font-weight: 600; }
.nav a.active::after {
  content: ""; display: block; height: 2px; margin-top: 4px;
  background: var(--accent); border-radius: 2px;
}
.header-actions { display: inline-flex; align-items: center; gap: 10px; }

/* Language switch: a plain two-state toggle, not a dropdown. */
.lang-switch {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600;
  color: var(--ink-muted) !important;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px 10px; line-height: 1;
  transition: border-color .15s ease, color .15s ease;
}
.lang-switch:hover { border-color: var(--line-strong); color: var(--ink) !important; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 18px; line-height: 1; padding: 6px 10px; cursor: pointer; color: var(--ink); }

@media (max-width: 1020px) {
  /* Narrow header keeps three things: brand + language switch + menu button. */
  .nav, .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }

  /* The open menu sits in normal flow and grows the header, instead of being an
     absolutely-positioned overlay: an overlay's height depends on its own content,
     which would leave the account buttons with nothing to sit under. */
  .nav-open { height: auto; }
  .nav-open .site-header-inner { flex-wrap: wrap; padding-bottom: 14px; }
  .nav-open .nav {
    order: 10; flex-basis: 100%;
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    padding-top: 8px; border-top: 1px solid var(--line);
  }
  .nav-open .nav a.active::after { display: none; }
  .nav-open .header-actions {
    order: 20; flex-basis: 100%;
    display: flex; align-items: center; gap: 10px; margin: 12px 0 0;
  }
  .nav-open .header-actions .btn { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn-primary { color: #fff; background: var(--accent); box-shadow: var(--shadow-xs); }
.btn-primary:hover { color: #fff; background: var(--accent-hover); }
.btn-secondary { color: var(--ink); background: #fff; border-color: var(--line-strong); }
.btn-secondary:hover { color: var(--ink); border-color: var(--ink-faint); background: var(--bg-subtle); }
.btn-ghost { color: var(--ink-muted); background: transparent; border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line-strong); }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* On the dark hero the primary button needs no further styling; the ghost
   variant has to be inverted to stay legible. */
.on-dark .btn-secondary { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.on-dark .btn-secondary:hover { color: #fff; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.34); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--dark);
  color: #fff;
  padding: 100px 0 88px;
  isolation: isolate;
}
/* Fine grid drawn in pure CSS — reads as "engineering" and costs no bytes. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, var(--dark-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--dark-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  top: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 520px;
  background: radial-gradient(closest-side, rgba(79, 70, 229, 0.30), transparent);
  pointer-events: none;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 72px 0 64px; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); }
.hero h1 { color: #fff; max-width: 19ch; }
.hero h1 .accent { color: #a5b4fc; }
.hero-sub { color: var(--dark-ink-muted); font-size: 17px; max-width: 56ch; margin: 0 0 30px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Result preview card — mirrors the shape of a real calculation result. */
.result-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  backdrop-filter: blur(6px);
}
.result-card .rc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5); margin-bottom: 18px;
}
.result-card .rc-badge { color: #a5b4fc; border: 1px solid rgba(165, 180, 252, 0.3); border-radius: 999px; padding: 2px 8px; }
.result-card .rc-main { display: flex; align-items: baseline; gap: 10px; }
.result-card .rc-main .value { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.result-card .rc-main .unit { font-size: 14px; color: var(--dark-ink-muted); }
.result-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.result-card dt { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 4px; }
.result-card dd { margin: 0; font-family: var(--mono); font-size: 15px; font-weight: 600; color: #fff; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { color: inherit; }
.card-icon {
  width: 36px; height: 36px; margin-bottom: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-subtle);
  font-size: 17px; line-height: 1;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; line-height: 1.62; margin-bottom: .7em; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-size: 13px; font-weight: 600; color: var(--accent); }
.card-note { font-size: 13px; color: var(--ink-faint); margin-bottom: 0; }

/* Numbered feature list (used on the features page). */
.feature-num {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: var(--radius-xs);
  padding: 1px 6px; margin-right: 8px;
}

/* ---------- Metrics strip ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.metrics .metric { background: var(--bg); padding: 22px 20px; }
.metrics .metric .value { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.metrics .metric .label { font-size: 12.5px; color: var(--ink-faint); margin-top: 4px; line-height: 1.45; }
@media (max-width: 860px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .metrics { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--bg-subtle); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.num, .data-table th.num { text-align: right; font-family: var(--mono); }
.data-table td.label { color: var(--ink-muted); }
.data-table .hl { color: var(--accent); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.table-caption { font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; }

/* ---------- Callouts ---------- */
.callout {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 20px 0;
}
.callout .icon { flex: none; font-size: 15px; line-height: 1.4; color: var(--accent); }
.callout p, .callout .body { margin: 0; font-size: 14px; color: var(--ink); }
.callout p + p { margin-top: 6px; }
.callout .title { font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.callout-warn { background: var(--warn-soft); border-color: rgba(180, 83, 9, 0.28); }
.callout-warn .icon, .callout-warn .title { color: var(--warn); }
.callout-success { background: var(--ok-soft); border-color: rgba(21, 128, 61, 0.28); }
.callout-success .icon, .callout-success .title { color: var(--ok); }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.steps li {
  position: relative; padding: 18px 22px 18px 64px;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 18px;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: #fff; background: var(--accent); border-radius: 50%;
}
.steps li .step-title { font-weight: 600; color: var(--ink); margin-bottom: 3px; font-size: 15px; }
.steps li p { margin: 0; font-size: 14px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 10px 12px; font-size: 14.5px; font-family: inherit;
  color: var(--ink); background: var(--bg-raised);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form textarea { resize: vertical; min-height: 76px; }
.form .help { font-size: 12.5px; color: var(--ink-faint); margin-top: 5px; line-height: 1.5; }
.form-feedback { font-size: 13.5px; padding: 9px 12px; border-radius: var(--radius); margin-top: 4px; }
.form-feedback.success { background: var(--ok-soft); color: var(--ok); }
.form-feedback.error { background: var(--danger-soft); color: var(--danger); }

/* ---------- Calculator ---------- */
.calc-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.calc-result { background: var(--bg-subtle); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.calc-result .head { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.calc-result .main { display: flex; align-items: baseline; gap: 8px; }
.calc-result .main .num { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.calc-result .main .unit { font-size: 14px; color: var(--ink-muted); }
.calc-result .meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-muted); }
.calc-result .meta strong { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.calc-notes { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.calc-tag { display: inline-block; font-size: 12px; line-height: 1.5; padding: 3px 9px; border-radius: 999px; background: var(--bg-inset); border: 1px solid var(--line); color: var(--ink-muted); }
.calc-tag.ok { background: var(--ok-soft); border-color: rgba(21, 128, 61, 0.25); color: var(--ok); }
.calc-tag.warn { background: var(--warn-soft); border-color: rgba(180, 83, 9, 0.25); color: var(--warn); }
.calc-tag.hint { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.calc-foot { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-muted); }

/* ---------- Activity ticker ---------- */
.ticker {
  display: flex; overflow: hidden; gap: 32px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 11px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; gap: 34px; flex: none; animation: ticker-scroll 60s linear infinite; white-space: nowrap; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-family: var(--mono); font-size: 12.5px; color: var(--ink-muted); display: inline-flex; gap: 6px; align-items: baseline; }
.ticker-item .ip { color: var(--ink); font-weight: 600; }
.ticker-item .boxes { color: var(--accent); font-weight: 600; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--ink-faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 7px; opacity: .55; }

/* ---------- Long-form prose + side nav (guide pages) ---------- */
.doc-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc-nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.doc-nav-title { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.doc-nav ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.doc-nav ol li { margin: 0; }
.doc-nav ol li a { display: block; padding: 7px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-muted); font-size: 13.5px; font-weight: 500; line-height: 1.45; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.doc-nav ol li a:hover { color: var(--ink); }
.doc-nav ol li a.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.doc-nav ol li a .doc-nav-num { font-family: var(--mono); color: var(--ink-faint); margin-right: 7px; }
.doc-layout section[id], .doc-layout h2[id], .doc-layout h3[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
@media (max-width: 1000px) {
  .doc-layout { grid-template-columns: 1fr; gap: 12px; }
  .doc-nav { position: static; max-height: none; margin-bottom: 4px; }
  .doc-nav ol { border-left: 0; display: flex; flex-wrap: wrap; gap: 6px; }
  .doc-nav ol li a { border-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; margin-left: 0; background: var(--bg-subtle); }
  .doc-nav ol li a.active { border-color: var(--accent); background: var(--accent-soft); }
}

.prose { max-width: 780px; }
.prose h2 { margin: 48px 0 16px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 12px; }
.prose p, .prose ul, .prose ol { color: var(--ink-muted); font-size: 15.5px; line-height: 1.72; }
.prose strong { color: var(--ink); }
.prose li { margin-bottom: 7px; }
.prose blockquote { border-left: 2px solid var(--line-strong); padding: 2px 18px; margin: 24px 0; color: var(--ink-muted); }
.prose .lead { font-size: 17px; margin-bottom: 28px; line-height: 1.68; }
.prose .data-table { margin: 20px 0; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 16px; margin-bottom: 6px; }
.faq-item p { margin: 0; font-size: 14.5px; }

/* ---------- Dark CTA band ---------- */
.cta-band { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--dark-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--dark-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 30% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 50%, #000 30%, transparent 100%);
}
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--dark-ink-muted); }
.cta-band ul { color: var(--dark-ink-muted); }
.cta-band .calc-card { background: #fff; border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-subtle); border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h5 { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--ink-muted); font-size: 14px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand-line { font-size: 13.5px; color: var(--ink-faint); margin-top: 12px; line-height: 1.6; max-width: 34ch; }
.site-footer .legal {
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 12.5px; color: var(--ink-faint);
}
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 24px; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.maxw-760 { max-width: 760px; }
.maxw-820 { max-width: 820px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
  .card, .steps li, .callout, .prose h2, .prose h3, .data-table { transition: none !important; }
}
