/* ============================================================
   码上就绪 AI Coding 配置服务 — 共享样式
   深色终端感 · 电光蓝紫 × 暖橙双色系统
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark light;

  --bg:        oklch(15% 0.015 260);
  --surface:   oklch(19% 0.018 260);
  --surface-2: oklch(23% 0.02 260);
  --fg:        oklch(94% 0.006 250);
  --muted:     oklch(70% 0.015 250);
  --faint:     oklch(55% 0.015 250);
  --border:    oklch(30% 0.02 260);
  --border-soft: oklch(26% 0.018 260);

  --accent:        oklch(72% 0.14 250);
  --accent-deep:   oklch(62% 0.18 278);
  --accent-soft:   oklch(62% 0.18 278 / .14);
  --secondary:     oklch(76% 0.16 55);
  --secondary-deep:oklch(66% 0.19 40);
  --secondary-soft:oklch(76% 0.16 55 / .12);

  --nav-bg: oklch(15% 0.015 260 / .82);
  --nav-mobile-bg: oklch(15% 0.015 260 / .97);

  --terminal-bg: oklch(12% 0.012 260);
  --terminal-bar: oklch(17% 0.015 260);
  --terminal-fg: oklch(94% 0.006 250);
  --terminal-muted: oklch(55% 0.015 250);
  --terminal-border: oklch(30% 0.02 260);
  --terminal-accent: oklch(72% 0.14 250);
  --terminal-secondary: oklch(76% 0.16 55);
  --terminal-success: oklch(72% 0.15 150);
  --terminal-warn: oklch(78% 0.14 85);
  --terminal-danger: oklch(65% 0.18 25);
  --accent-grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-deep) 52%, var(--secondary) 100%);

  --success: oklch(72% 0.15 150);
  --warn:    oklch(78% 0.14 85);
  --danger:  oklch(65% 0.18 25);

  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius: 12px;
  --radius-lg: 16px;
  --maxw: 1120px;

  --space-1: clamp(8px, 1vw, 12px);
  --space-2: clamp(16px, 2vw, 24px);
  --space-3: clamp(28px, 4vw, 48px);
  --space-4: clamp(48px, 7vw, 96px);

  --fs-hero: clamp(30px, 5.2vw, 56px);
  --fs-h2: clamp(24px, 3.2vw, 36px);
  --fs-h3: clamp(18px, 2.2vw, 22px);
  --fs-body: clamp(15px, 1.1vw, 17px);
  --fs-small: clamp(13px, 0.95vw, 14px);
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: oklch(97.5% 0.008 255);
  --surface: oklch(100% 0 0);
  --surface-2: oklch(94.5% 0.014 255);
  --fg: oklch(22% 0.025 260);
  --muted: oklch(43% 0.025 255);
  --faint: oklch(56% 0.022 255);
  --border: oklch(83% 0.022 255);
  --border-soft: oklch(90% 0.014 255);

  --accent: oklch(54% 0.19 250);
  --accent-deep: oklch(48% 0.21 278);
  --accent-soft: oklch(54% 0.19 250 / .09);
  --secondary: oklch(57% 0.18 42);
  --secondary-deep: oklch(50% 0.19 35);
  --secondary-soft: oklch(68% 0.16 55 / .12);

  --success: oklch(48% 0.14 150);
  --warn: oklch(52% 0.14 80);
  --danger: oklch(54% 0.2 25);

  --nav-bg: oklch(99% 0.006 255 / .84);
  --nav-mobile-bg: oklch(99% 0.006 255 / .98);
}

:root[data-theme="dark"] { color-scheme: dark; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;

    --bg: oklch(97.5% 0.008 255);
    --surface: oklch(100% 0 0);
    --surface-2: oklch(94.5% 0.014 255);
    --fg: oklch(22% 0.025 260);
    --muted: oklch(43% 0.025 255);
    --faint: oklch(56% 0.022 255);
    --border: oklch(83% 0.022 255);
    --border-soft: oklch(90% 0.014 255);

    --accent: oklch(54% 0.19 250);
    --accent-deep: oklch(48% 0.21 278);
    --accent-soft: oklch(54% 0.19 250 / .09);
    --secondary: oklch(57% 0.18 42);
    --secondary-deep: oklch(50% 0.19 35);
    --secondary-soft: oklch(68% 0.16 55 / .12);

    --success: oklch(48% 0.14 150);
    --warn: oklch(52% 0.14 80);
    --danger: oklch(54% 0.2 25);

    --nav-bg: oklch(99% 0.006 255 / .84);
    --nav-mobile-bg: oklch(99% 0.006 255 / .98);
  }
}

[hidden] { display: none !important; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 8% 0%, oklch(62% 0.18 278 / .10), transparent 30rem),
    radial-gradient(circle at 94% 12%, oklch(76% 0.16 55 / .08), transparent 28rem),
    var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: oklch(58% 0.18 275 / .45); }

:focus-visible {
  outline: 3px solid oklch(70% 0.14 255 / .75);
  outline-offset: 3px;
}

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  height: 60px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 15px; font-weight: 600;
  text-decoration: none; letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-logo .logo-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  font-size: 13px; color: white; font-weight: 700;
  box-shadow: 0 0 18px oklch(72% 0.14 250 / .22), 8px 8px 22px oklch(76% 0.16 55 / .12);
}
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 76px; height: 38px; padding: 0 11px;
  color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 9px;
  font: 600 12.5px/1 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: color .15s, background .15s, border-color .15s, transform .12s;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--secondary); background: var(--surface-2); }
.theme-toggle:active { transform: translateY(1px); }
.theme-toggle-icon { color: var(--secondary); font-size: 16px; line-height: 1; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 14.5px; padding: 8px 14px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--fg); background: var(--surface-2); }
.nav-links a.active { color: var(--fg); font-weight: 600; }
.nav-links a.nav-cta {
  color: white; background: var(--accent-grad);
  font-weight: 600; margin-left: 8px;
}
.nav-links a.nav-cta:hover { filter: brightness(1.1); }
.nav-burger {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 40px; height: 40px; cursor: pointer; color: var(--fg);
  font-size: 18px; line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-body);
  transition: transform .12s, filter .15s, background .15s, border-color .15s;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: wait; opacity: .65; transform: none; filter: none; }
.btn-primary {
  background: var(--accent-grad); color: white;
  box-shadow: 0 10px 28px oklch(62% 0.18 278 / .18), 8px 8px 28px oklch(76% 0.16 55 / .10);
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost {
  background: transparent; color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--faint); background: var(--surface); }
.btn-small { padding: 9px 18px; font-size: 14px; min-height: 40px; border-radius: 8px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-4); }
.section-tight { padding-block: var(--space-3); }
.section-alt { background: var(--surface); border-block: 1px solid var(--border-soft); }

.kicker {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px; border-left: 3px solid var(--secondary); padding-left: 10px;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); margin-bottom: 12px; }
.section-lede { color: var(--muted); max-width: 640px; margin-bottom: var(--space-3); text-wrap: pretty; }

/* ---------- Terminal window ---------- */
.terminal {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px oklch(0% 0 0 / .45);
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.05vw, 14px);
  line-height: 1.85;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--terminal-bar);
  border-bottom: 1px solid var(--terminal-border);
}
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: oklch(65% 0.19 25); }
.dot-y { background: oklch(80% 0.15 90); }
.dot-g { background: oklch(72% 0.15 150); }
.terminal-title {
  margin-left: 8px; color: var(--terminal-muted); font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.terminal-body { padding: 18px 20px; overflow-x: auto; }
.terminal-body .ln { white-space: pre-wrap; word-break: break-word; }
.t-prompt { color: var(--accent); }
.t-cmd { color: var(--fg); }
.t-ok { color: var(--success); }
.t-dim { color: var(--faint); }
.t-warn { color: var(--warn); }
.t-err { color: var(--danger); }
.terminal .t-prompt { color: var(--terminal-accent); }
.terminal .t-cmd { color: var(--terminal-fg); }
.terminal .t-ok { color: var(--terminal-success); }
.terminal .t-dim { color: var(--terminal-muted); }
.terminal .t-warn { color: var(--terminal-warn); }
.terminal .t-err { color: var(--terminal-danger); }
.t-cursor {
  display: inline-block; width: 8px; height: 15px;
  background: var(--terminal-secondary); vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.6vw, 30px);
}
.card h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: var(--fs-small); }

.grid { display: grid; gap: clamp(14px, 1.8vw, 22px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Trust / provider / response ---------- */
.trust-profile-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: clamp(18px, 2.8vw, 32px); align-items: stretch;
}
.provider-card, .sla-card, .evidence-slot {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px);
}
.provider-card {
  background:
    radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 46%),
    var(--surface);
}
.provider-card h3, .sla-card h3 { font-size: var(--fs-h3); margin: 14px 0 10px; }
.provider-card > p, .sla-card > p { color: var(--muted); font-size: 14.5px; }
.identity-points { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.identity-points li {
  position: relative; padding-left: 28px; color: var(--muted); font-size: 14px;
}
.identity-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--success); font-family: var(--font-mono); font-weight: 700;
}
.sla-list { margin-top: 18px; display: grid; }
.sla-item {
  display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: baseline;
  padding-block: 15px; border-bottom: 1px solid var(--border-soft);
}
.sla-item:last-child { border-bottom: 0; }
.sla-item strong { color: var(--secondary); font: 700 18px/1.25 var(--font-mono); }
.sla-item span { color: var(--muted); font-size: 13.5px; }
.sla-note {
  margin-top: 16px; padding: 13px 15px; border-radius: 10px;
  background: var(--secondary-soft); border: 1px solid oklch(76% 0.16 55 / .26);
  color: var(--muted); font-size: 13px;
}
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.evidence-slot { display: flex; flex-direction: column; min-height: 220px; }
.evidence-slot h3 { font-size: 17px; margin: 14px 0 8px; }
.evidence-slot p { color: var(--muted); font-size: 13.5px; }
.evidence-meta {
  list-style: none; margin-top: auto; padding-top: 20px;
  display: grid; gap: 7px; color: var(--faint); font: 12.5px/1.5 var(--font-mono);
}
.evidence-policy {
  margin-top: var(--space-2); padding: 16px 18px;
  border-left: 3px solid var(--secondary); border-radius: 0 10px 10px 0;
  background: var(--surface); color: var(--muted); font-size: 13.5px;
}
.case-proof {
  margin-top: 20px; padding: 14px 16px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid oklch(72% 0.14 250 / .25);
  color: var(--muted); font-size: 13.5px;
}
.case-proof strong { color: var(--fg); }

/* ---------- Badges / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12.5px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
  background: var(--surface);
  white-space: nowrap;
}
.pill .dot-ok { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 12px;
  padding: 3px 10px; border-radius: 6px;
  background: var(--secondary-soft); color: var(--secondary);
  border: 1px solid oklch(76% 0.16 55 / .32);
}
.tag-green { background: oklch(72% 0.15 150 / .12); color: var(--success); border-color: oklch(72% 0.15 150 / .3); }
.tag-amber { background: oklch(78% 0.14 85 / .12); color: var(--warn); border-color: oklch(78% 0.14 85 / .3); }

/* ---------- Price cards ---------- */
.price-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.6vw, 30px);
  position: relative;
}
.price-card.featured {
  border-color: oklch(76% 0.16 55 / .55);
  background:
    radial-gradient(circle at 100% 0%, var(--secondary-soft), transparent 44%),
    linear-gradient(180deg, var(--accent-soft), var(--surface) 42%);
}
.price-card .plan-flag {
  position: absolute; top: -12px; left: 24px;
  background: var(--accent-grad); color: white;
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
}
.price-card .plan-name { font-size: 17px; font-weight: 700; }
.price-card .plan-for { color: var(--faint); font-size: 13px; margin-top: 4px; min-height: 2.6em; }
.price-card .plan-price {
  font-family: var(--font-mono); font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 700; margin-block: 14px 2px; letter-spacing: -0.02em;
  color: var(--secondary);
}
.price-card .plan-price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; margin-block: 16px; flex: 1; }
.price-card li {
  font-size: 14px; color: var(--muted);
  padding: 6px 0 6px 24px; position: relative;
}
.price-card li::before {
  content: "✓"; position: absolute; left: 2px;
  color: var(--success); font-weight: 700; font-family: var(--font-mono);
}
.price-card li.excl { color: var(--faint); }
.price-card li.excl::before { content: "—"; color: var(--faint); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.step:last-child { border-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 15px; font-weight: 600;
  color: var(--accent);
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  background: var(--surface);
}
.step:nth-child(even)::before {
  color: var(--secondary); border-color: oklch(76% 0.16 55 / .32);
  background: var(--secondary-soft);
}
.step h3 { font-size: 16.5px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: var(--fs-small); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q {
  width: 100%; background: none; border: 0; color: var(--fg);
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  text-align: left; padding: 18px 40px 18px 0;
  cursor: pointer; position: relative; min-height: 48px;
}
.faq-q::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  translate: 0 -50%; font-family: var(--font-mono); font-size: 20px;
  color: var(--secondary); transition: rotate .2s;
}
.faq-item.open .faq-q::after { rotate: 45deg; }
.faq-a { display: none; padding-bottom: 18px; color: var(--muted); font-size: 15px; max-width: 720px; }
.faq-item.open .faq-a { display: block; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-soft);
  padding-block: var(--space-3);
  color: var(--faint); font-size: 13.5px;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--fg); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field label .req { color: var(--danger); }
.field .hint { font-size: 12.5px; color: var(--faint); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--fg); font-family: var(--font-body); font-size: 15px;
  padding: 12px 14px; min-height: 48px;
  transition: border-color .15s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(58% 0.18 275 / .2);
}
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 12.5px; margin-top: 5px; display: none; }
.field.has-error .field-error { display: block; }

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 16px; cursor: pointer; font-size: 14.5px;
  color: var(--muted); background: var(--surface); min-height: 46px;
  transition: border-color .15s, color .15s, background .15s;
}
.chip input { accent-color: oklch(58% 0.18 275); }
.chip:has(input:checked) {
  border-color: var(--accent); color: var(--fg);
  background: oklch(58% 0.18 275 / .12);
}

.consent-row {
  display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start;
  color: var(--muted); font-size: 13.5px; cursor: pointer;
}
.consent-row input { margin-top: 5px; accent-color: var(--accent-deep); }
.consent-row a { color: var(--accent); }
.hp-field {
  position: absolute !important; width: 1px !important; height: 1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important;
  white-space: nowrap !important; clip-path: inset(50%) !important;
}
.submit-status { margin-top: 12px; min-height: 1.6em; color: var(--muted); font-size: 13px; text-align: center; }
.submit-status.error { color: var(--danger); }
.selected-plan {
  margin-bottom: 18px; padding: 10px 14px; border-radius: 9px;
  color: var(--secondary); font-size: 13.5px;
  background: var(--secondary-soft); border: 1px solid oklch(76% 0.16 55 / .3);
}

/* ---------- Misc ---------- */
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.divider-slash { color: var(--faint); font-family: var(--font-mono); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.center { text-align: center; }
.no-break { white-space: nowrap; }

.breadcrumb {
  font-family: var(--font-mono); font-size: 13px; color: var(--faint);
  padding-block: 18px 0;
}
.breadcrumb a { color: var(--faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--fg); }

.page-head { padding-block: var(--space-3) var(--space-2); }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.page-head p { color: var(--muted); max-width: 640px; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(circle at 92% 0%, oklch(76% 0.16 55 / .18), transparent 42%),
    linear-gradient(120deg, oklch(62% 0.18 278 / .18), oklch(72% 0.14 250 / .08));
  border: 1px solid oklch(72% 0.14 250 / .38);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
  justify-content: space-between;
}
.cta-band h2 { font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 6px; }
.cta-band p { color: var(--muted); font-size: 15px; }

/* Contact QR */
.qr-box {
  width: 184px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: white; padding: 8px;
}
.qr-image { width: 100%; height: auto; border-radius: 8px; }
.contact-note { color: var(--muted); font-size: 13.5px; max-width: 260px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.same-phone-note { color: var(--faint); font-size: 12.5px; margin-top: 9px; max-width: 280px; }

/* Articles / policy pages */
.article-shell { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(30px, 5vw, 64px); align-items: start; }
.article-content { min-width: 0; }
.article-content h2 { font-size: clamp(21px, 2.5vw, 28px); margin: 42px 0 12px; scroll-margin-top: 86px; }
.article-content h3 { font-size: 18px; margin: 28px 0 8px; }
.article-content p, .article-content li { color: var(--muted); }
.article-content p { margin-block: 12px; }
.article-content ul, .article-content ol { padding-left: 1.4em; margin-block: 12px 20px; }
.article-content li { margin-block: 7px; }
.article-content strong { color: var(--fg); }
.article-content a { color: var(--accent); }
.article-content code {
  font-family: var(--font-mono); font-size: .9em; color: var(--fg);
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 5px; padding: 2px 6px;
}
.article-content pre {
  margin-block: 16px 22px; padding: 16px 18px; overflow-x: auto;
  background: var(--terminal-bg); border: 1px solid var(--terminal-border);
  border-radius: 10px; color: var(--terminal-fg); font: 13px/1.75 var(--font-mono);
}
.article-content pre code { border: 0; padding: 0; background: none; font-size: inherit; color: inherit; }
.article-note {
  margin-block: 22px; padding: 16px 18px; border-left: 3px solid var(--secondary);
  background: var(--surface); border-radius: 0 10px 10px 0; color: var(--muted);
}
.article-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.toc {
  position: sticky; top: 84px; padding: 20px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
}
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; color: var(--muted); text-decoration: none; font-size: 13.5px; padding: 5px 0; }
.toc a:hover { color: var(--fg); }
.policy-section { padding-block: 24px; border-bottom: 1px solid var(--border-soft); }
.policy-section:last-child { border-bottom: 0; }
.policy-section h2 { font-size: 21px; margin-bottom: 8px; }
.policy-section p, .policy-section li { color: var(--muted); font-size: 15px; }
.policy-section ul { padding-left: 1.3em; margin-top: 8px; }
.policy-callout { border-color: oklch(78% 0.14 85 / .35); }

.not-found {
  min-height: calc(100vh - 200px); display: grid; place-items: center;
  text-align: center; padding-block: var(--space-4);
}
.not-found-code { font: 700 clamp(64px, 16vw, 150px)/1 var(--font-mono); color: var(--surface-2); }
.not-found h1 { font-size: clamp(26px, 4vw, 40px); margin-block: -12px 12px; }
.not-found p { color: var(--muted); margin-bottom: 24px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; translate: -50% 0;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--fg); font-size: 14px; padding: 12px 20px; border-radius: 10px;
  box-shadow: 0 12px 32px oklch(0% 0 0 / .4);
  opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s;
  z-index: 100; max-width: min(90vw, 420px); text-align: center;
}
.toast.show { opacity: 1; translate: -50% -6px; }

/* ============================================================
   Responsive — 360 / 390–430 / 600–744 / 768–834 / 1024+
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 16px; min-height: 48px; display: flex; align-items: center; }
  .nav-links a.nav-cta { margin-left: 0; margin-top: 6px; justify-content: center; }
  .theme-toggle { order: 2; margin-left: auto; min-width: 42px; width: 42px; padding: 0; }
  .theme-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nav-burger { display: block; order: 3; margin-left: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .trust-profile-grid, .evidence-grid { grid-template-columns: 1fr; }
  .article-shell { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .step { grid-template-columns: 36px 1fr; gap: 12px; }
  .step::before { width: 36px; height: 36px; font-size: 13px; border-radius: 8px; }
  .sla-item { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
