/* ============================================================
   Dalo: engineering control-panel landing page
   Light base · dark hero/CTA sections · rust-orange accent
   ============================================================ */

/* ---------- Fonts (self-hosted woff2) ---------- */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("/assets/fonts/bricolage-700.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800;
  font-display: swap; src: url("/assets/fonts/bricolage-800.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/assets/fonts/hanken-400.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("/assets/fonts/hanken-500.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("/assets/fonts/hanken-600.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/assets/fonts/geistmono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("/assets/fonts/geistmono-500.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* light scope */
  --bg: oklch(0.976 0.004 240);
  --surface: oklch(0.945 0.005 240);
  --surface-2: oklch(0.915 0.006 240);
  --ink: oklch(0.24 0.015 255);
  --ink-soft: oklch(0.43 0.013 255);
  --ink-faint: oklch(0.46 0.012 255);
  --line: oklch(0.885 0.006 250);
  --line-strong: oklch(0.80 0.008 250);

  --accent: oklch(0.62 0.195 40);
  --accent-strong: oklch(0.56 0.182 38);
  --accent-text: oklch(0.52 0.17 38);
  --accent-soft: oklch(0.95 0.032 55);
  --on-accent: oklch(0.99 0.01 60);

  --signal: oklch(0.54 0.12 155);
  --signal-soft: oklch(0.93 0.05 158);
  --warn: oklch(0.62 0.16 60);
  --block: oklch(0.55 0.17 25);

  /* terminal is always dark */
  --term-bg: oklch(0.165 0.012 260);
  --term-surface: oklch(0.205 0.014 260);
  --term-line: oklch(0.30 0.016 260);
  --term-ink: oklch(0.90 0.006 250);
  --term-dim: oklch(0.76 0.012 255);

  --r-sm: 7px;
  --r: 11px;
  --r-lg: 15px;
  --r-pill: 999px;

  --shadow: 0 1px 2px oklch(0.24 0.02 255 / 0.06), 0 8px 24px oklch(0.24 0.04 255 / 0.07);
  --shadow-lg: 0 24px 60px oklch(0.18 0.04 260 / 0.28);

  --wrap: 1140px;
  --pad-x: clamp(1.25rem, 0.8rem + 2.4vw, 2.5rem);
  --section-y: clamp(4rem, 2.8rem + 6vw, 8rem);

  --fs-h1: clamp(2.55rem, 1.7rem + 3.9vw, 4.4rem);
  --fs-h2: clamp(1.95rem, 1.5rem + 2.1vw, 2.9rem);
  --fs-h3: clamp(1.3rem, 1.16rem + 0.7vw, 1.62rem);
  --fs-lead: clamp(1.06rem, 1rem + 0.34vw, 1.22rem);
  --fs-body: 1.02rem;
  --fs-sm: 0.9rem;
  --fs-mono: 0.83rem;

  --z-header: 100;

  color-scheme: light dark;
}

/* dark scope: used on hero, "how", quickstart, cta, header, footer */
[data-scope="dark"] {
  --bg: oklch(0.185 0.012 260);
  --surface: oklch(0.225 0.014 260);
  --surface-2: oklch(0.265 0.016 260);
  --ink: oklch(0.96 0.004 240);
  --ink-soft: oklch(0.76 0.012 250);
  --ink-faint: oklch(0.62 0.012 255);
  --line: oklch(0.31 0.014 260);
  --line-strong: oklch(0.40 0.016 260);

  --accent: oklch(0.70 0.175 45);
  --accent-strong: oklch(0.64 0.18 42);
  --accent-text: oklch(0.74 0.165 48);
  --accent-soft: oklch(0.30 0.06 45);
  --on-accent: oklch(0.16 0.02 50);

  --signal: oklch(0.76 0.15 158);
  --signal-soft: oklch(0.30 0.05 158);
  --shadow: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.185 0.012 260);
    --surface: oklch(0.225 0.014 260);
    --surface-2: oklch(0.265 0.016 260);
    --ink: oklch(0.96 0.004 240);
    --ink-soft: oklch(0.76 0.012 250);
    --ink-faint: oklch(0.62 0.012 255);
    --line: oklch(0.31 0.014 260);
    --line-strong: oklch(0.40 0.016 260);

    --accent: oklch(0.70 0.175 45);
    --accent-strong: oklch(0.64 0.18 42);
    --accent-text: oklch(0.74 0.165 48);
    --accent-soft: oklch(0.30 0.06 45);
    --on-accent: oklch(0.16 0.02 50);

    --signal: oklch(0.76 0.15 158);
    --signal-soft: oklch(0.30 0.05 158);
    --shadow: none;
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
p { text-wrap: pretty; }

a { color: inherit; }
code, pre, .mono { font-family: var(--font-mono); }
svg { display: block; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; translate: -50% -130%;
  z-index: 200; background: var(--accent); color: var(--on-accent);
  padding: 0.6rem 1rem; border-radius: var(--r-sm); font-weight: 600; font-size: var(--fs-sm);
  transition: translate 0.2s;
}
.skip-link:focus { translate: -50% 0.6rem; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad-x); }
.band { background: var(--bg); padding-block: var(--section-y); }
.band-tint { background: var(--surface); }
.band-dark { background: var(--bg); }
.band-recovery {
  background:
    radial-gradient(68% 100% at 95% 50%, oklch(0.70 0.175 45 / 0.12), transparent 72%),
    var(--surface);
}
section[data-scope="dark"] { background: var(--bg); color: var(--ink); }

/* let grid/flex items shrink so pre/terminal content scrolls instead of blowing out the layout */
.hero-grid > *, .quickstart-grid > *, .why-grid > *, .feature-row > *,
.targets-grid > *, .target, .step { min-width: 0; }
.terminal, .step-cmd, .terminal-body { max-width: 100%; }

.section-h { font-size: var(--fs-h2); max-width: 18ch; }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 60ch; margin-top: 1.1rem; }
.lead-center { margin-inline: auto; text-align: center; max-width: 64ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: oklch(0.185 0.012 260 / 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--ink); flex: none; }
.brand-word { font-family: var(--font-mono); font-weight: 500; font-size: 1.18rem; letter-spacing: -0.01em; }

.site-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-size: var(--fs-sm); font-weight: 500;
  padding: 0.35rem 0; position: relative; transition: color 0.18s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width 0.22s ease-out;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }
.site-nav a[aria-current="true"] { color: var(--ink); }
.site-nav a[aria-current="true"]::after { width: 100%; }

.header-actions { display: flex; align-items: center; }
.mobile-menu { display: none; position: relative; margin-left: auto; }
.mobile-menu summary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); color: var(--ink); cursor: pointer;
  list-style: none; transition: border-color 0.18s, background 0.18s;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary:hover { border-color: var(--accent); background: oklch(0.70 0.175 45 / 0.12); }
.mobile-menu[open] summary { border-color: var(--accent); }
.mobile-nav {
  position: fixed; top: 72px; left: var(--pad-x); right: var(--pad-x);
  display: grid; gap: 0.2rem; padding: 0.7rem;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.mobile-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600;
  padding: 0.78rem 0.85rem; border-radius: var(--r-sm);
}
.mobile-nav a:hover, .mobile-nav a:focus-visible { background: var(--surface-2); }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--ink); font-size: var(--fs-sm); font-weight: 600;
  padding: 0.5rem 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color 0.18s, background 0.18s;
}
.ghost-btn:hover { border-color: var(--accent); background: oklch(0.70 0.175 45 / 0.12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  text-decoration: none; padding: 0.8rem 1.3rem; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.16s ease-out, background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.btn svg { transition: translate 0.18s ease-out; }
.btn-accent { background: var(--accent-strong); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent); transform: translateY(-1px); }
.btn-accent:hover svg { translate: 3px 0; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 8vw, 7rem);
  background:
    radial-gradient(circle at 1px 1px, oklch(0.96 0.01 250 / 0.05) 1px, transparent 0) 0 0 / 26px 26px,
    radial-gradient(120% 90% at 78% -10%, oklch(0.70 0.175 45 / 0.16), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero-copy { max-width: 38rem; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 500;
  letter-spacing: 0.02em; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 0.32rem 0.8rem; margin-bottom: 1.4rem;
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px oklch(0.76 0.15 158 / 0.2); }
.hero h1 { font-size: var(--fs-h1); }
.hero-lede { font-size: var(--fs-lead); color: var(--ink-soft); margin-top: 1.4rem; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-install { margin-top: 1rem; max-width: min(100%, 35rem); }
.proof-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.proof-badges a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 0.26rem 0.58rem;
  background: color-mix(in oklch, var(--surface) 72%, transparent);
}
.proof-badges a:hover { color: var(--accent); border-color: var(--accent); }
.hero-meta { font-size: var(--fs-sm); color: var(--ink-faint); margin-top: 1.4rem; font-family: var(--font-mono); }
.hero-meta code { color: var(--accent-text); font-size: 0.92em; }

/* ---------- Terminal ---------- */
.terminal {
  background: var(--term-bg); border: 1px solid var(--term-line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.terminal-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 0.95rem; background: var(--term-surface); border-bottom: 1px solid var(--term-line);
}
.tdot { width: 11px; height: 11px; border-radius: 50%; background: var(--term-line); }
.tdot:nth-child(1) { background: oklch(0.6 0.16 25); }
.tdot:nth-child(2) { background: oklch(0.72 0.13 75); }
.tdot:nth-child(3) { background: oklch(0.68 0.13 150); }
.terminal-title { margin-left: 0.6rem; font-family: var(--font-mono); font-size: 0.76rem; color: var(--term-dim); }
.terminal-body {
  margin: 0; padding: 1.1rem 1.2rem; font-family: var(--font-mono); font-size: var(--fs-mono);
  line-height: 1.85; color: var(--term-ink); overflow-x: auto; tab-size: 2;
}
.terminal-body .ln { display: block; white-space: pre; }
.prompt { color: var(--accent); font-weight: 500; }
.c-dim { color: var(--term-dim); }
.c-ok { color: oklch(0.78 0.15 158); }
.c-warn { color: oklch(0.78 0.13 75); }
.c-block { color: oklch(0.72 0.16 28); }
.c-strong { color: var(--term-ink); font-weight: 500; }
.c-accent { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .hero-demo .terminal-body .ln {
    opacity: 0; transform: translateY(6px);
    animation: terminal-line-in 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .hero-demo .terminal-body .ln:nth-child(1) { animation-delay: 0.10s; }
  .hero-demo .terminal-body .ln:nth-child(2) { animation-delay: 0.20s; }
  .hero-demo .terminal-body .ln:nth-child(3) { animation-delay: 0.30s; }
  .hero-demo .terminal-body .ln:nth-child(4) { animation-delay: 0.40s; }
  .hero-demo .terminal-body .ln:nth-child(5) { animation-delay: 0.50s; }
  .hero-demo .terminal-body .ln:nth-child(6) { animation-delay: 0.60s; }
  .hero-demo .terminal-body .ln:nth-child(7) { animation-delay: 0.70s; }
  .hero-demo .terminal-body .ln:nth-child(8) { animation-delay: 0.80s; }
}
@keyframes terminal-line-in {
  to { opacity: 1; transform: none; }
}

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
.why-lead { position: sticky; top: 90px; }
.why-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare-col { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.25rem; background: var(--bg); }
.compare-after { border-color: var(--line-strong); background: var(--surface); }
.compare-label {
  font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); margin-bottom: 0.9rem;
}
.compare-after .compare-label { color: var(--accent-text); }
.checklist { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.checklist li { position: relative; padding-left: 1.5rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.checklist li::before {
  content: "×"; position: absolute; left: 0; top: -0.05em; color: var(--ink-faint);
  font-family: var(--font-mono); font-weight: 500;
}
.checklist-ok li { color: var(--ink); }
.checklist-ok li::before { content: "→"; color: var(--signal); }

/* ---------- Feature rows ---------- */
.feature-rows { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 0.5rem + 4vw, 4rem); align-items: center; }
.feature-row-flip .feature-text { order: 2; }
.feature-index {
  font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--accent-text);
  font-weight: 500; letter-spacing: 0.05em;
}
.feature-text h3 { font-size: var(--fs-h3); margin: 0.5rem 0 0.7rem; }
.feature-text p { color: var(--ink-soft); max-width: 40ch; }
.feature-text code { background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 5px; font-size: 0.9em; color: var(--ink); }

.store-card, .resolve-card, .guard-card {
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: var(--bg); padding: 1.3rem; box-shadow: var(--shadow);
}
.store-path { font-family: var(--font-mono); font-weight: 500; color: var(--accent-text); font-size: 0.95rem; }
.store-tree { list-style: none; padding: 0.8rem 0 0; display: grid; gap: 0.55rem; font-family: var(--font-mono); font-size: var(--fs-mono); }
.store-tree li { padding-left: 0.9rem; border-left: 2px solid var(--line); padding-block: 0.1rem; }

.resolve-row { display: grid; grid-template-columns: 1fr auto auto; gap: 0.8rem; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--fs-mono); }
.resolve-row:last-of-type { border-bottom: 0; }
.rsrc { color: var(--ink); font-weight: 500; }
.rprio { color: var(--ink-faint); }
.rwin { text-align: right; }
.resolve-note { margin-top: 0.8rem; font-size: var(--fs-sm); color: var(--ink-faint); }
.resolve-note code { font-family: var(--font-mono); color: var(--accent-text); }

.guard-card { display: grid; gap: 0.85rem; }
.guard-line { display: flex; align-items: center; gap: 0.7rem; font-size: var(--fs-sm); color: var(--ink); }
.ic-shield { color: var(--signal); flex: none; }

/* ---------- Pipeline (how it works) ---------- */
#how .lead { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.pipeline {
  display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap;
  gap: 0.4rem; margin-inline: auto;
}
.pipe-stage { display: flex; align-items: center; }
.pipe-node {
  display: flex; flex-direction: column; gap: 0.2rem; min-width: 160px;
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: var(--surface); padding: 1.1rem 1.2rem;
}
.pipe-node-store { border-style: dashed; }
.pipe-node-accent { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px oklch(0.70 0.175 45 / 0.1); }
.pipe-kicker { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-text); }
.pipe-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.pipe-sub { font-size: 0.8rem; color: var(--ink-soft); }
.pipe-arrow { width: 40px; height: 22px; color: var(--accent); flex: none; align-self: center; }
.pipe-targets { display: flex; flex-direction: column; gap: 0.35rem; min-width: 160px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); padding: 1.1rem 1.2rem; }
.pipe-target { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); }
.pipeline-foot { text-align: center; max-width: 58ch; margin: clamp(2.5rem, 1.5rem + 3vw, 4rem) auto 0; color: var(--ink-soft); font-size: var(--fs-lead); }

/* ---------- Workflow steps ---------- */
.steps { list-style: none; padding: 0; margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 1.5rem 1.5rem 1.4rem; position: relative; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
  border-radius: var(--r-sm); background: var(--ink); color: var(--bg);
  font-family: var(--font-mono); font-weight: 500; font-size: 0.95rem; margin-bottom: 0.9rem;
}
.step h3 { font-size: var(--fs-h3); margin-bottom: 0.55rem; }
.step p { color: var(--ink-soft); font-size: var(--fs-sm); max-width: 44ch; }
.step-cmd { display: block; margin-top: 1rem; font-size: var(--fs-mono); color: var(--accent-text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.6rem 0.8rem; overflow-x: auto; white-space: nowrap; }
.step-cmd-soon { color: var(--ink-faint); }
.soon { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; vertical-align: middle; color: var(--warn); border: 1px solid var(--warn); border-radius: var(--r-pill); padding: 0.12rem 0.5rem; margin-left: 0.5rem; }

/* ---------- Quickstart ---------- */
.quickstart-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.install-picker { margin-top: 1.4rem; }
.install-picker.hero-install { margin-top: 1rem; }
.install-methods:not([hidden]) {
  display: inline-flex; max-width: 100%; gap: 0.22rem; padding: 0.24rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface);
}
.install-method {
  display: inline-flex; align-items: baseline; gap: 0.42rem; min-height: 34px;
  padding: 0.38rem 0.72rem; border: 1px solid transparent; border-radius: var(--r-pill);
  background: transparent; color: var(--ink-soft); cursor: pointer;
  font: 600 var(--fs-sm) / 1 var(--font-body);
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.install-method span { color: var(--ink-faint); font: 500 0.68rem / 1 var(--font-mono); }
.install-method:hover { color: var(--ink); }
.install-method[aria-pressed="true"] {
  color: var(--ink); border-color: var(--accent); background: var(--accent-soft);
}
.install-method[aria-pressed="true"] span { color: var(--accent-text); }
.install-copy {
  display: flex; align-items: center; gap: 0.5rem; max-width: 100%;
  margin-top: 1.4rem; padding: 0.45rem; border: 1px solid var(--line-strong);
  border-radius: var(--r); background: var(--surface);
}
.install-picker .install-copy { margin-top: 0.55rem; }
.install-copy code {
  flex: 1 1 auto; min-width: 0; overflow-x: auto; white-space: nowrap;
  padding-inline: 0.45rem; font-size: var(--fs-mono); color: var(--accent-text);
}
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 36px; padding: 0.42rem 0.68rem; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: transparent; color: var(--ink);
  font: 600 var(--fs-sm) / 1 var(--font-body); cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.copy-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.copy-btn[data-copied="true"] { color: var(--signal); border-color: var(--signal); }
.install-alt { color: var(--ink-soft); font-size: var(--fs-sm); margin-top: 0.85rem; }
.install-alt a { color: var(--accent-text); font-weight: 600; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
.copy-btn-terminal {
  margin-left: auto; min-height: 32px; padding: 0.35rem 0.58rem;
  color: var(--term-ink); border-color: var(--term-line);
}
.copy-btn-terminal:hover { background: oklch(0.70 0.175 45 / 0.12); border-color: var(--accent); }
.qs-points { list-style: none; padding: 0; margin-top: 1.6rem; display: grid; gap: 0.7rem; }
.qs-points li { display: flex; gap: 0.6rem; align-items: baseline; color: var(--ink-soft); font-size: var(--fs-sm); }
.qs-points .c-ok { color: var(--signal); font-weight: 600; }
.copy-hint { margin-top: 1rem; font-size: var(--fs-sm); color: var(--ink-faint); text-align: center; }
.copy-hint code, .qs-points code, .quickstart-copy code, .pipeline code { font-family: var(--font-mono); color: var(--accent-text); font-size: 0.92em; }
.video-demo { margin-top: 1rem; overflow: hidden; border-radius: var(--r-lg); background: var(--term-bg); box-shadow: var(--shadow-lg); }
.video-demo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* ---------- Safe grid ---------- */
.safe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1rem; margin-top: clamp(2rem, 1rem + 3vw, 3.2rem); }
.safe-item { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.4rem 1.5rem; background: var(--bg); transition: border-color 0.18s, transform 0.18s; }
.safe-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.safe-item h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.safe-item h3::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--accent); margin-bottom: 0.9rem; }
.safe-item p { color: var(--ink-soft); font-size: var(--fs-sm); }
.safe-item code { font-family: var(--font-mono); color: var(--accent-text); font-size: 0.9em; }

/* ---------- Recovery ---------- */
.recovery-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.recovery-copy .kicker { margin-bottom: 1.2rem; }
.recovery-note { margin-top: 1.25rem; max-width: 48ch; color: var(--ink-soft); font-size: var(--fs-sm); }
.recovery-note code { font-family: var(--font-mono); color: var(--accent-text); font-size: 0.92em; }
.recovery-terminal { box-shadow: var(--shadow-lg); }
.recovery-terminal .terminal-body { font-size: clamp(0.7rem, 0.61rem + 0.22vw, var(--fs-mono)); }

/* ---------- Targets ---------- */
.targets-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
.targets-lead { position: sticky; top: 90px; }
.targets-note { margin-top: 1.2rem; font-size: var(--fs-sm); color: var(--ink-faint); }
.target-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.target {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg);
  padding: 0.95rem 1.2rem; transition: border-color 0.18s, background 0.18s;
}
.target:hover { border-color: var(--accent); }
.target-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.target-path { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-faint); }
.target-exp { opacity: 0.78; }
.badge { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.22rem 0.6rem; border-radius: var(--r-pill); white-space: nowrap; }
.badge-ok { color: var(--signal); background: var(--signal-soft); }
.badge-exp { color: var(--ink-faint); background: var(--surface-2); }

/* ---------- Objection handling ---------- */
.objection-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: clamp(2rem, 1rem + 3vw, 3.2rem);
}
.objection-card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 1.3rem; min-width: 0;
}
.objection-kicker {
  display: inline-flex; margin-bottom: 0.85rem;
  font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--accent-text);
}
.objection-card h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.objection-card p { color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---------- Roadmap ---------- */
.roadmap-list { list-style: none; padding: 0; margin-top: clamp(2rem, 1rem + 2vw, 2.6rem); display: grid; gap: 0.6rem; max-width: 56rem; }
.roadmap-list li { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: var(--fs-sm); color: var(--ink); }
.rm-tag { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.6rem; border-radius: var(--r-pill); flex: none; min-width: 3.4rem; text-align: center; }
.roadmap-list li:nth-child(-n+2) .rm-tag { color: var(--accent-text); background: var(--accent-soft); }
.roadmap-list li:nth-child(n+3) .rm-tag { color: var(--ink-faint); background: var(--surface-2); }

/* ---------- CTA ---------- */
.cta {
  padding-block: clamp(4rem, 3rem + 5vw, 7rem);
  background:
    radial-gradient(110% 120% at 50% 120%, oklch(0.70 0.175 45 / 0.2), transparent 55%),
    var(--bg);
  text-align: center;
}
.cta-inner { max-width: 44rem; }
.cta h2 { font-size: var(--fs-h2); }
.cta p { color: var(--ink-soft); font-size: var(--fs-lead); margin: 1.1rem auto 0; max-width: 48ch; }
.cta .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem) 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 2rem; }
.footer-tag { color: var(--ink-soft); font-size: var(--fs-sm); margin-top: 0.9rem; max-width: 30ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col { display: grid; gap: 0.55rem; align-content: start; }
.footer-h { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 0.2rem; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: var(--fs-sm); transition: color 0.18s; }
.footer-col a:hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; align-items: center; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-faint); font-family: var(--font-mono); }

/* ---------- Reveal motion (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-demo { max-width: 38rem; }
  .why-grid, .quickstart-grid, .recovery-grid, .targets-grid { grid-template-columns: 1fr; }
  .objection-grid { grid-template-columns: repeat(2, 1fr); }
  .why-lead, .targets-lead { position: static; }
  .feature-row, .feature-row-flip { grid-template-columns: 1fr; gap: 1.4rem; }
  .feature-row-flip .feature-text { order: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .mobile-menu { display: block; }
  .steps { grid-template-columns: 1fr; }
  .why-compare { grid-template-columns: 1fr; }
  .pipeline { flex-direction: column; align-items: stretch; gap: 0.3rem; }
  .pipe-stage, .pipe-node, .pipe-targets { width: 100%; }
  .pipe-node, .pipe-targets { min-width: 0; }
  .pipe-arrow { rotate: 90deg; margin-inline: auto; margin-block: 0.1rem; }
  .footer-base { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
}
@media (max-width: 560px) {
  .objection-grid { grid-template-columns: 1fr; }
  .target { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.8rem; }
  .target-name { flex: 1 1 auto; }
  .target-path { order: 3; flex-basis: 100%; }
}
@media (max-width: 420px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .install-methods:not([hidden]) { display: flex; border-radius: var(--r); }
  .install-method { flex: 1 1 33.333%; justify-content: center; padding-inline: 0.5rem; }
  .install-method span { display: none; }
}
