/* ─────────────────────────────────────────────────────────────────────────
   Soriku.com · Stylesheet
   Warm off-white canvas, deep ink, orange flame accent.
   Dark mode is a true theme, not a stylesheet swap — uses the same tokens.
   ───────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600&display=swap');

/* ─── Tokens · Light (default) ─────────────────────────────────────────── */
:root,
[data-theme="light"] {
  /* Surfaces */
  --bg:           #FBFAF6;
  --bg-elevated:  #FFFFFF;
  --bg-sunken:    #F3EFE6;
  --bg-inverse:   #15120E;

  /* Ink (text) */
  --ink:          #15120E;
  --ink-2:        #4A463D;
  --ink-3:        #847E70;
  --ink-on-accent:#FFFFFF;

  /* Lines */
  --line:         #E8E2D3;
  --line-2:       #D5CDB9;
  --line-strong:  #2A2520;

  /* Accent (orange flame — derived from logo) */
  --accent:       #E85D1F;
  --accent-2:     #FF8A3D;
  --accent-3:     #FFB066;
  --accent-soft:  rgba(232, 93, 31, 0.08);
  --accent-glow:  rgba(232, 93, 31, 0.18);

  /* Status */
  --ok:           #2F7F4F;
  --ok-soft:      rgba(47, 127, 79, 0.10);
  --warn:         #B97C0F;

  /* Shadow (warm-tinted) */
  --shadow-sm:    0 1px 2px rgba(21, 18, 14, 0.04);
  --shadow-md:    0 4px 16px rgba(21, 18, 14, 0.06);
  --shadow-lg:    0 24px 64px -24px rgba(21, 18, 14, 0.18);
  --shadow-flame: 0 24px 64px -28px rgba(232, 93, 31, 0.45);
}

/* ─── Tokens · Dark ────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:           #0E0C09;
  --bg-elevated:  #181510;
  --bg-sunken:    #060503;
  --bg-inverse:   #F5F0E2;

  --ink:          #F2EDDF;
  --ink-2:        #BFB8A6;
  --ink-3:        #7A7468;
  --ink-on-accent:#15120E;

  --line:         #2A2520;
  --line-2:       #3A342B;
  --line-strong:  #E8E2D3;

  --accent:       #FF8A3D;
  --accent-2:     #FFB066;
  --accent-3:     #FFCB94;
  --accent-soft:  rgba(255, 138, 61, 0.10);
  --accent-glow:  rgba(255, 138, 61, 0.25);

  --ok:           #5BC388;
  --ok-soft:      rgba(91, 195, 136, 0.12);
  --warn:         #E8A53F;

  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.40);
  --shadow-lg:    0 24px 64px -24px rgba(0, 0, 0, 0.70);
  --shadow-flame: 0 24px 64px -28px rgba(255, 138, 61, 0.40);
}

/* ─── Accent palette swaps (Tweak option) ──────────────────────────────── */
[data-accent="violet"] {
  --accent:       #6E4FE8;
  --accent-2:     #9F84FF;
  --accent-3:     #C5B3FF;
  --accent-soft:  rgba(110, 79, 232, 0.08);
  --accent-glow:  rgba(110, 79, 232, 0.20);
  --shadow-flame: 0 24px 64px -28px rgba(110, 79, 232, 0.40);
}
[data-theme="dark"][data-accent="violet"] {
  --accent:       #9F84FF;
  --accent-2:     #C5B3FF;
  --accent-3:     #E0D4FF;
  --accent-soft:  rgba(159, 132, 255, 0.12);
  --accent-glow:  rgba(159, 132, 255, 0.28);
  --shadow-flame: 0 24px 64px -28px rgba(159, 132, 255, 0.40);
}

[data-accent="moss"] {
  --accent:       #2F7F4F;
  --accent-2:     #4FAA72;
  --accent-3:     #88C9A1;
  --accent-soft:  rgba(47, 127, 79, 0.08);
  --accent-glow:  rgba(47, 127, 79, 0.20);
  --shadow-flame: 0 24px 64px -28px rgba(47, 127, 79, 0.40);
}
[data-theme="dark"][data-accent="moss"] {
  --accent:       #4FAA72;
  --accent-2:     #88C9A1;
  --accent-3:     #B5DEC4;
  --accent-soft:  rgba(79, 170, 114, 0.12);
  --accent-glow:  rgba(79, 170, 114, 0.28);
  --shadow-flame: 0 24px 64px -28px rgba(79, 170, 114, 0.40);
}

[data-accent="ember"] {
  /* deeper, more saturated orange variant */
  --accent:       #C44A18;
  --accent-2:     #E85D1F;
  --accent-3:     #FF8A3D;
  --accent-soft:  rgba(196, 74, 24, 0.08);
  --accent-glow:  rgba(196, 74, 24, 0.20);
  --shadow-flame: 0 24px 64px -28px rgba(196, 74, 24, 0.45);
}

/* ─── Font tokens ──────────────────────────────────────────────────────── */
:root {
  --font-display:  'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-sans:     'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:     'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* Font swap (Tweak option) */
[data-font="serif-mix"] {
  /* Default — already what we have */
}
[data-font="sans"] {
  --font-display:  'Geist', ui-sans-serif, system-ui, sans-serif;
}
[data-font="mono-heavy"] {
  --font-display:  'Geist Mono', ui-monospace, monospace;
  --font-sans:     'Geist Mono', ui-monospace, monospace;
}

/* ─── Density (Tweak option) ───────────────────────────────────────────── */
:root,
[data-density="regular"] {
  --section-py:    clamp(80px, 10vw, 140px);
  --section-px:    clamp(24px, 4vw, 64px);
  --container:     1240px;
  --gap-section:   72px;
  --gap-block:     32px;
  --radius:        10px;
  --radius-sm:     6px;
  --radius-pill:   999px;
}
[data-density="compact"] {
  --section-py:    clamp(56px, 7vw, 96px);
  --section-px:    clamp(20px, 3vw, 48px);
  --gap-section:   48px;
  --gap-block:     24px;
}
[data-density="spacious"] {
  --section-py:    clamp(120px, 14vw, 200px);
  --section-px:    clamp(28px, 5vw, 80px);
  --gap-section:   96px;
  --gap-block:     40px;
}

/* ─── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
              color 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

/* ─── Type scale ──────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.8vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  font-weight: 400;
}
.display em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* Hero title: a touch tighter for the constrained column */
.hero-title {
  font-size: clamp(34px, 4.4vw, 60px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.022em;
  max-width: 580px;
  margin-bottom: 32px !important;
}

h1, .h1 { font-size: clamp(40px, 6vw, 64px); }
h2, .h2 { font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.02em; }
h3, .h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
h4, .h4 {
  font-size: 17px;
  font-weight: 500;
  font-family: var(--font-sans);
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.lead {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

p { text-wrap: pretty; color: var(--ink-2); }
.body-lg { font-size: 17px; line-height: 1.55; }
.muted { color: var(--ink-3); }

code, kbd, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0;
}

/* ─── Layout primitives ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--section-px);
  padding-right: var(--section-px);
}
.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}
.section-divider {
  border-top: 1px solid var(--line);
}

.grid { display: grid; gap: var(--gap-block); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .cols-3-tablet { grid-template-columns: repeat(2, 1fr); }
}

.stack { display: flex; flex-direction: column; gap: var(--gap-block); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ─── Top nav ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--section-px);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.nav-logo .logo-full {
  height: 28px;
  width: auto;
  display: block;
}
[data-theme="light"] .nav-logo .logo-dark { display: none; }
[data-theme="dark"]  .nav-logo .logo-light { display: none; }
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.nav-links a {
  padding: 7px 12px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  transition: color 160ms, background-color 160ms;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: var(--accent-soft);
}
.nav-spacer { flex: 1; }
.nav-tools { display: flex; gap: 6px; align-items: center; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: inline-flex; }
}
@media (min-width: 881px) {
  .nav-mobile-btn { display: none; }
}

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
  transition: background-color 180ms, color 180ms, border-color 180ms, transform 80ms;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); color: var(--ink-on-accent); }

.btn-accent {
  background: var(--accent);
  color: var(--ink-on-accent);
}
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 88%, black); }

.btn-outline {
  border-color: var(--line-2);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--bg-elevated);
}

.btn-ghost {
  color: var(--ink-2);
  padding: 8px 12px;
}
.btn-ghost:hover { color: var(--ink); background: var(--accent-soft); }

.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }

.btn .arrow {
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Icon button (nav language/theme) ─────────────────────────────────── */
.icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  transition: background-color 160ms, color 160ms;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }

.lang-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: auto;
  padding: 0 10px;
  height: 32px;
}

/* ─── Cards ────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}
.card.interactive:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}

.card .card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

.card-flat {
  background: transparent;
  border: 0;
  padding: 0;
}

/* ─── Badge / pill ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--bg-elevated);
}
.badge.accent { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }
.badge.dot::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─── Hero specifics ──────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(60px, 8vw, 120px);
  padding-bottom: clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-eyebrow { margin-bottom: 22px; }
.hero-title { margin-bottom: 24px; }
.hero-lead { margin-bottom: 36px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.hero-meta b { color: var(--ink); font-weight: 500; }

/* Inline email form (waitlist) */
.email-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: border-color 200ms;
}
.email-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.email-form input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 9px 12px;
  background: transparent;
  font-size: 14.5px;
  min-width: 0;
}
.email-form input::placeholder { color: var(--ink-3); }
.email-form button {
  background: var(--ink);
  color: var(--bg);
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 200ms;
}
.email-form button:hover { background: var(--accent); }
.email-disclosure {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 12px;
  max-width: 440px;
}
.email-success {
  padding: 14px 18px;
  background: var(--ok-soft);
  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
  border-radius: var(--radius);
  color: var(--ok);
  font-size: 14px;
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.email-error {
  margin-top: 10px;
  font-size: 13px;
  color: var(--err, #C44A18);
}

/* ─── Routing viz container ───────────────────────────────────────────── */
.viz-shell {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  min-height: 480px;
  overflow: hidden;
}
.viz-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, var(--accent-glow), transparent 60%);
  pointer-events: none;
  opacity: 0.4;
}

/* ─── Feature blocks ──────────────────────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.feature:first-child { border-top: 0; }
.feature .feature-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature h4 { margin-bottom: 4px; }
.feature p { font-size: 14.5px; }

/* ─── Step list (How it works) ────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  position: absolute;
  top: 24px;
  right: 32px;
}

/* ─── Pricing ─────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.plan {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.plan.highlight {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-elevated) 30%);
  box-shadow: var(--shadow-flame);
}
.plan-header h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.plan-header .plan-for { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.plan-price {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan-price small {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
}
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plan-features li {
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}
.plan-features li::before {
  content: "";
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E85D1F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'></polyline></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}
[data-accent="violet"] .plan-features li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E4FE8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'></polyline></svg>");
}
[data-accent="moss"] .plan-features li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F7F4F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'></polyline></svg>");
}

/* ─── Footer ──────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding-top: 80px;
  padding-bottom: 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 64px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 160ms;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--ink-2);
  margin-top: 14px;
  line-height: 1.3;
  max-width: 320px;
}

/* ─── Tables (comparison, etc) ────────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th, .compare-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 500;
}
.compare-table tbody td:first-child { color: var(--ink); font-weight: 500; }
.compare-table .yes { color: var(--accent); font-weight: 600; }
.compare-table .no { color: var(--ink-3); }
.compare-table tbody tr:hover { background: var(--bg-sunken); }

/* ─── Section header pattern ─────────────────────────────────────────── */
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 600px; }

/* ─── Inline elements ────────────────────────────────────────────────── */
.kbd {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 1px 6px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
}

.link {
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
  transition: border-color 160ms, color 160ms;
}
.link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ─── Logo / mark ────────────────────────────────────────────────────── */
/* The flupsel mark uses fixed orange gradient — that's fine, it's the brand.
   But for dark mode, we want it readable on dark bg. The SVG is already
   orange so it works in both themes. */

/* ─── Animations ─────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.4); }
}
.fade-in { animation: fadeUp 600ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.fade-in-2 { animation: fadeUp 600ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.fade-in-3 { animation: fadeUp 600ms 200ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.fade-in-4 { animation: fadeUp 600ms 300ms cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ─── Code block ─────────────────────────────────────────────────────── */
.codeblock {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--ink);
  line-height: 1.7;
  overflow-x: auto;
}
.codeblock .c-prompt { color: var(--accent); }
.codeblock .c-com { color: var(--ink-3); }
.codeblock .c-kw { color: var(--accent); }
.codeblock .c-str { color: var(--ok); }

/* ─── Subtle background grid (hero) ──────────────────────────────────── */
.bg-grid {
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ─── Form (auth pages) ─────────────────────────────────────────────── */
.auth-shell {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 60px 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.auth-card h2 {
  font-size: 28px;
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.auth-card .lead { font-size: 14px; margin-bottom: 26px; }

.simezu-placeholder {
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  background: var(--bg-sunken);
  margin: 20px 0 24px;
}
.simezu-placeholder .simezu-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.simezu-placeholder p { font-size: 13.5px; color: var(--ink-3); }

/* ─── Stats strip ────────────────────────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.stat .stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.stat .stat-num em { font-style: italic; color: var(--accent); }
.stat .stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Util ───────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.no-wrap { white-space: nowrap; }

/* ─── Routing Viz ────────────────────────────────────────────────────── */.viz {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
.viz::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(ellipse 280px 200px at 85% 0%, var(--accent-glow), transparent 70%),
    radial-gradient(ellipse 240px 200px at 15% 100%, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.viz > * { position: relative; z-index: 1; }

.viz-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ink-3);
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px dashed var(--line);
}
.viz-head-l { display: flex; align-items: center; gap: 8px; }
.viz-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: vizPulse 1.6s ease-in-out infinite;
}
@keyframes vizPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

.viz-task {
  margin-top: 16px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 400ms,
              border-color 400ms;
}
.viz-task.is-sent { border-color: var(--accent); transform: translateY(0); }
.viz-task-label {
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.viz-task-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
  min-height: 18px;
}
.viz-task-text.animate { animation: fadeUp 400ms ease-out both; }

.viz-wire { width: 100%; height: 28px; display: block; }
.viz-wire-1 { margin-top: 0; }
.viz-wire .wire {
  stroke: var(--line-2);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  fill: none;
  transition: stroke 400ms;
}
.viz-wire .wire.lit {
  stroke: var(--accent);
  stroke-dasharray: 4 4;
  animation: wireFlow 1.2s linear infinite;
}
@keyframes wireFlow {
  to { stroke-dashoffset: -16; }
}

.viz-classifier {
  background: var(--bg-elevated);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 400ms, box-shadow 400ms;
}
.viz-classifier.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.viz-class-inner { display: flex; align-items: center; gap: 12px; }
.viz-class-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.viz-classifier.is-active .viz-class-icon { background: var(--accent); color: var(--ink-on-accent); }
.viz-class-body { flex: 1; min-width: 0; }
.viz-class-label {
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.viz-class-val {
  font-size: 13px;
  color: var(--ink);
  margin-top: 2px;
  font-family: var(--font-mono);
}
.viz-cat-tag {
  display: inline-block;
  padding: 1px 7px;
  background: var(--accent);
  color: var(--ink-on-accent);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.viz-pool-wrap { margin-top: 4px; }
.viz-fanout { width: 100%; height: 28px; display: block; }
.viz-fanout .wire {
  stroke-width: 1.5;
  fill: none;
  transition: stroke 400ms, opacity 400ms;
}
.viz-fanout .wire.dim { stroke: var(--line); opacity: 0.5; }
.viz-fanout .wire.lit {
  stroke: var(--accent);
  stroke-dasharray: 3 3;
  animation: wireFlow 1.2s linear infinite;
}

.viz-pool {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 0;
}
.viz-model {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 8px;
  text-align: center;
  font-size: 10.5px;
  color: var(--ink-2);
  opacity: 0.65;
  transition: opacity 400ms, border-color 400ms, transform 300ms, background-color 400ms, box-shadow 400ms;
  min-width: 0;
}
.viz-model.is-chosen {
  opacity: 1;
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -8px var(--accent-glow);
}
.viz-model.is-chosen .viz-model-id { color: var(--accent); }
.viz-model-id {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.viz-model-meta {
  font-size: 9.5px;
  color: var(--ink-3);
  margin-top: 3px;
  display: flex;
  gap: 4px;
  justify-content: center;
}
.viz-model.is-remote .viz-model-id::after {
  content: " ↗";
  color: var(--ink-3);
  font-size: 9px;
}

.viz-answer {
  margin-top: 18px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms, transform 400ms;
}
.viz-answer.is-shown { opacity: 1; transform: translateY(0); }
.viz-answer-head {
  font-size: 11px;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.viz-answer-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: vizPulse 1.4s ease-in-out infinite;
}
.viz-answer-stream { display: flex; gap: 4px; }
.viz-answer-stream .dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: streamDot 1.4s ease-in-out infinite;
}
.viz-answer-stream .dot:nth-child(2) { animation-delay: 0.2s; }
.viz-answer-stream .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes streamDot {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-2px); }
}

/* Inline screenshot frame */
.screenshot {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}
.screenshot-chrome {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-sunken);
  display: flex;
  align-items: center;
  gap: 6px;
}
.screenshot-chrome .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}
.screenshot-chrome .url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.screenshot img { width: 100%; display: block; }

/* ─── Home-specific blocks ───────────────────────────────────────────── */
.problem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) {
  .problem { grid-template-columns: 1fr; gap: 32px; }
}
.problem-l h2 { font-size: clamp(28px, 3.5vw, 44px); }

.eco-letter {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
}

.final-cta {
  padding: 40px 0;
  max-width: 920px;
}

/* ─── Routing viz mobile fix ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .viz-pool { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .viz-pool .viz-model:nth-child(n+4) { display: none; }
  .viz-fanout { display: none; }
  .viz-pool { margin-top: 12px; }
}

/* ─── How-it-works page ──────────────────────────────────────────────── */
.how-section {
  display: grid;
  grid-template-columns: 80px 1fr 280px;
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.how-section:first-of-type { border-top: 0; }
@media (max-width: 900px) {
  .how-section { grid-template-columns: 1fr; gap: 18px; }
}
.how-section .num {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  font-style: italic;
}
.how-section h3 { margin-bottom: 14px; }
.how-section .body { color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 560px; }
.how-section .aside {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.4;
}

/* ─── Features page categories ───────────────────────────────────────── */
.features-cat {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.features-cat:first-of-type { border-top: 0; padding-top: 16px; }
@media (max-width: 900px) {
  .features-cat { grid-template-columns: 1fr; gap: 24px; }
}
.features-cat-name {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.features-cat-name em { font-style: italic; color: var(--accent); }
.features-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}
@media (max-width: 720px) {
  .features-items { grid-template-columns: 1fr; gap: 24px; }
}
.features-items h4 { margin-bottom: 4px; }
.features-items p { font-size: 14.5px; color: var(--ink-2); }

/* ─── Teams page ─────────────────────────────────────────────────────── */
.team-bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .team-bullets { grid-template-columns: 1fr; }
}
.team-bullet {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.team-bullet .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.team-case {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
}
@media (max-width: 700px) { .team-case { padding: 28px; } }
.team-roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
@media (max-width: 700px) { .team-roles { grid-template-columns: 1fr; gap: 16px; } }
.team-role .role-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.team-role .role-task { font-size: 14.5px; color: var(--ink-2); }

/* ─── Compliance page ────────────────────────────────────────────────── */
.compliance-checklist {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}
@media (max-width: 700px) { .compliance-checklist { grid-template-columns: 1fr; padding: 24px; } }
.compliance-checklist li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-2);
}
.compliance-checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 14px; height: 14px;
  margin-top: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E85D1F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'></polyline></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ─── Download page ─────────────────────────────────────────────────── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .download-grid { grid-template-columns: 1fr; } }
.download-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 200ms, transform 200ms;
}
.download-card:hover:not(.soon) { border-color: var(--accent); transform: translateY(-2px); }
.download-card.soon { opacity: 0.7; }
.download-card .os {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  margin-bottom: 4px;
}
.download-card .os-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.download-card .file {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.download-soon-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  color: var(--ink-3);
}

.req-table {
  width: 100%;
  border-collapse: collapse;
}
.req-table td {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  vertical-align: top;
}
.req-table tr:first-child td { border-top: 0; }
.req-table td:first-child {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 120px;
  padding-top: 16px;
}

/* ─── Docs page ──────────────────────────────────────────────────────── */
.docs-quickstart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 64px;
}
@media (max-width: 900px) { .docs-quickstart { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .docs-quickstart { grid-template-columns: 1fr; } }
.docs-step {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms, transform 160ms;
}
a.docs-step:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.docs-step h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.docs-step p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.docs-section-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .docs-section-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .docs-section-grid { grid-template-columns: 1fr; } }
.docs-section h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.docs-section ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.docs-section a {
  font-size: 14.5px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.docs-section a:hover { color: var(--accent); }

/* ─── Blog page ──────────────────────────────────────────────────────── */
.blog-post {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 700px) {
  .blog-post { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
}
.blog-post:first-of-type { border-top: 0; }
.blog-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.blog-meta .tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  text-transform: uppercase;
  font-size: 10px;
  margin-top: 8px;
}
.blog-post h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  margin-bottom: 14px;
}
.blog-post .excerpt { font-size: 16px; color: var(--ink-2); line-height: 1.55; }

/* ─── About page ─────────────────────────────────────────────────────── */
.about-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.about-section:first-of-type { border-top: 0; }
@media (max-width: 800px) {
  .about-section { grid-template-columns: 1fr; gap: 16px; }
}
.about-section h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.about-section p { font-size: 17px; color: var(--ink-2); line-height: 1.6; max-width: 640px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; padding: 24px; } }
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14.5px;
  padding: 6px 0;
}
.contact-row .label { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.contact-row .value { color: var(--ink); font-family: var(--font-mono); font-size: 13px; }

/* ─── Mobile menu ────────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
}
.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  padding-top: 24px;
}
.mobile-menu-links a {
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}
.mobile-menu-links a:hover { color: var(--accent); }

/* ─── Hide on mobile util ────────────────────────────────────────────── */
@media (max-width: 880px) { .hide-mobile { display: none !important; } }

/* ─── Auth pages ─────────────────────────────────────────────────────── */
.auth-alt {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-3);
}
.auth-alt a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.auth-alt a:hover { border-bottom-color: var(--accent); }

/* ─── Faq ────────────────────────────────────────────────────────────── */
.faq-list { display: grid; gap: 0; }
.faq-item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.faq-item:first-of-type { border-top: 0; }
.faq-item h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--ink);
}
.faq-item p { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; max-width: 760px; }

/* ─── Docs layout (sidebar + article + TOC) ──────────────────────────── */
.docs-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  gap: 48px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px var(--section-px) 96px;
}

.docs-sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow: hidden;
}
.docs-sidebar-scroll {
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding-right: 12px;
}
.docs-sidebar-group { margin-bottom: 24px; }
.docs-sidebar-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.docs-sidebar ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.docs-sidebar a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: color 140ms, background-color 140ms, border-color 140ms;
}
.docs-sidebar a:hover {
  color: var(--ink);
  background: var(--accent-soft);
}
.docs-sidebar a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 500;
}

.docs-article {
  min-width: 0;
  max-width: 780px;
}
.docs-breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.docs-breadcrumb a { color: var(--ink-3); }
.docs-breadcrumb a:hover { color: var(--accent); }
.docs-breadcrumb-sep { opacity: 0.5; }
.docs-breadcrumb-part:last-child { color: var(--ink-2); }

.docs-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--ink);
}

.docs-article .lead { font-size: 18px; line-height: 1.5; color: var(--ink-2); margin-bottom: 32px; }
.docs-article h2 { margin-top: 48px; margin-bottom: 14px; font-size: clamp(22px, 2.4vw, 28px); }
.docs-article h3 { margin-top: 32px; margin-bottom: 10px; font-size: 19px; }
.docs-article h4 { margin-top: 24px; margin-bottom: 8px; font-size: 16px; font-weight: 500; }
.docs-article p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); margin-bottom: 18px; }
.docs-article p code,
.docs-article li code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  background: var(--bg-sunken);
  border-radius: 4px;
  color: var(--ink);
  border: 1px solid var(--line);
}
.docs-article ul,
.docs-article ol {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 18px 22px;
}
.docs-article li { margin-bottom: 6px; }
.docs-article a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 140ms;
}
.docs-article a:hover { border-bottom-color: var(--accent); }
.docs-article .codeblock { margin: 18px 0 24px; }

/* Callouts (note, warn, tip) */
.docs-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}
.docs-callout-icon { font-size: 16px; color: var(--accent); line-height: 1.5; }
.docs-callout-title { font-weight: 500; color: var(--ink); margin-bottom: 4px; font-size: 14.5px; }
.docs-callout-body { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.docs-callout-body p { margin: 0; }
.docs-callout-warn { border-left-color: var(--warn, #C18B2F); background: rgba(193, 139, 47, 0.08); }
.docs-callout-warn .docs-callout-icon { color: var(--warn, #C18B2F); }
.docs-callout-tip  { border-left-color: var(--ok, #2F7F4F);   background: rgba(47, 127, 79, 0.08); }
.docs-callout-tip  .docs-callout-icon { color: var(--ok, #2F7F4F); }

/* Tables in docs (zebra) */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.docs-table th,
.docs-table td {
  text-align: left;
  padding: 10px 12px;
  vertical-align: top;
  color: var(--ink-2);
}
.docs-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.docs-table tr:nth-child(even) td { background: var(--bg-sunken); }
.docs-table td code { font-size: 12.5px; }

/* API endpoint block */
.docs-api-endpoint {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 20px 0 28px;
  background: var(--bg-elevated);
}
.docs-api-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.docs-api-path {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
}
.docs-api-summary { font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px; }
.docs-api-section {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 18px;
  margin-bottom: 8px;
}
.docs-method {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 4px;
  color: white;
}
.docs-method-get    { background: #2F7F4F; }
.docs-method-post   { background: #2F5EE8; }
.docs-method-put    { background: #C18B2F; }
.docs-method-patch  { background: #6E4FE8; }
.docs-method-delete { background: #C44A18; }

/* Agent persona card */
.docs-agent-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 14px 0 20px;
  background: var(--bg-elevated);
}
.docs-agent-head {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 10px;
}
.docs-agent-name { font-weight: 500; font-size: 16px; color: var(--ink); }
.docs-agent-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-top: 2px;
}
.docs-agent-tagline {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: 8px;
}

/* TOC (right column) */
.docs-toc {
  position: sticky;
  top: 72px;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}
.docs-toc-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.docs-toc ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.docs-toc a {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.4;
  transition: color 140ms;
}
.docs-toc a:hover { color: var(--ink); }
.docs-toc-h3 { padding-left: 12px; }
.docs-toc li.active a { color: var(--accent); }

/* Prev/next pager */
.docs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.docs-pager-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 140ms, background-color 140ms;
}
.docs-pager-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.docs-pager-next { text-align: right; }
.docs-pager-dir {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.docs-pager-title { font-size: 15px; color: var(--ink); font-weight: 500; }

/* Generated footer */
.docs-generated-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.docs-generated-footer code { font-size: 11.5px; color: var(--ink-2); }
.docs-generated-footer a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }

/* Mobile drawer trigger (hidden on desktop) */
.docs-menu-btn {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  cursor: pointer;
  margin-bottom: 18px;
}

.docs-sidebar-backdrop { display: none; }

/* Responsive: drop TOC under 1100, drawer under 900 */
@media (max-width: 1100px) {
  .docs-shell { grid-template-columns: 240px minmax(0, 1fr); gap: 36px; }
  .docs-toc { display: none; }
}
@media (max-width: 900px) {
  .docs-shell { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .docs-menu-btn { display: inline-block; }
  .docs-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    max-height: 100vh;
    background: var(--bg-elevated);
    border-right: 1px solid var(--line);
    transform: translateX(-100%);
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 200;
    padding: 20px;
  }
  .docs-sidebar.is-open { transform: translateX(0); }
  .docs-sidebar-scroll { max-height: calc(100vh - 40px); }
  .docs-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 199;
  }
  .docs-pager { grid-template-columns: minmax(0, 1fr); }
}
