/* Landing page styles. Scoped under `body.landing-mode` so they don't apply
   when the app renders (i.e. when `?atlas=…` is present). */

body.landing-mode {
  --accent: #cc785c;
  --accent-soft: #e8a48f;
  --accent-tint: rgba(204, 120, 92, 0.10);
  --accent-deep: #a85c44;

  --bg: #f5f4ef;
  --bg-elev: #ffffff;
  --bg-sunk: #ece9e1;
  --border: #d9d4c7;
  --border-soft: #e6e2d6;

  --ink: #1a1a1a;
  --ink-muted: #6b6657;
  --ink-faint: #94907f;

  --sage: #4a7c59;
  --mustard: #c89b3c;
  --terra: #b85c4a;
  --steel: #7a9bb8;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;

  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.045) 1px, transparent 0);
  background-size: 28px 28px;
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.landing-mode * { box-sizing: border-box; }
body.landing-mode a { color: inherit; }
body.landing-mode code,
body.landing-mode kbd,
body.landing-mode pre { font-family: var(--font-mono); }
body.landing-mode .mono { font-family: var(--font-mono); }
body.landing-mode .serif { font-family: var(--font-serif); font-style: italic; }

body.landing-mode .wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
body.landing-mode .rule { height: 1px; background: var(--border); }

/* ───────── Top bar ───────── */
body.landing-mode .l-topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245, 244, 239, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
body.landing-mode .topbar-inner {
  display: flex; align-items: center; gap: 18px;
  height: 56px;
  font-size: 13px;
}
body.landing-mode .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; color: var(--ink);
}
body.landing-mode .brand-mark { width: 26px; height: 26px; }
body.landing-mode .ver-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  border: 1px solid rgba(204, 120, 92, 0.25);
}
body.landing-mode .topnav { display: flex; gap: 22px; margin-left: auto; align-items: center; color: var(--ink-muted); }
body.landing-mode .topnav a { text-decoration: none; }
body.landing-mode .topnav a:hover { color: var(--ink); }
body.landing-mode .topnav .cta {
  padding: 6px 14px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 500;
}
body.landing-mode .topnav .cta:hover { background: var(--accent-deep); color: white; }

/* ───────── HERO ───────── */
body.landing-mode .hero { padding: 72px 0 56px; position: relative; }
body.landing-mode .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
body.landing-mode .eyebrow {
  display: inline-flex; gap: 10px; align-items: center;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 28px;
}
body.landing-mode .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.18);
}
body.landing-mode h1.hero-title {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 22px;
}
body.landing-mode h1.hero-title .accent-word {
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}
body.landing-mode .hero-sub {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0 0 32px;
  line-height: 1.55;
}
body.landing-mode .hero-sub code {
  background: var(--bg-sunk);
  border: 1px solid var(--border-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.86em;
  color: var(--ink);
}
body.landing-mode .install-block {
  background: var(--ink);
  color: #eee;
  border-radius: 10px;
  padding: 14px 14px 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 30px -16px rgba(70, 40, 20, 0.35);
}
body.landing-mode .install-block pre { margin: 0; flex: 1; white-space: pre; overflow-x: auto; }
body.landing-mode .install-block .prompt { color: var(--accent-soft); user-select: none; }
body.landing-mode .install-block .cmd { color: #f3e9dd; }
body.landing-mode .install-block .arg { color: #cbd5b8; }
body.landing-mode .copy-btn {
  background: transparent;
  color: #999;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
}
body.landing-mode .copy-btn:hover { color: #fff; border-color: #555; }
body.landing-mode .copy-btn.copied { color: var(--accent-soft); border-color: var(--accent-soft); }

body.landing-mode .hero-actions {
  display: flex; gap: 12px; margin-top: 22px;
  flex-wrap: wrap;
}
body.landing-mode .btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 80ms ease;
}
body.landing-mode .btn:active { transform: translateY(1px); }
body.landing-mode .btn-primary { background: var(--accent); color: white; }
body.landing-mode .btn-primary:hover { background: var(--accent-deep); }
body.landing-mode .btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
body.landing-mode .btn-ghost:hover { background: var(--bg-sunk); }

/* ───────── HERO ATLAS PREVIEW ───────── */
body.landing-mode .atlas-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(60, 40, 20, 0.35), 0 2px 0 var(--border-soft);
  aspect-ratio: 5 / 4;
  position: relative;
  display: flex; flex-direction: column;
}
body.landing-mode .atlas-card-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-elev);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}
body.landing-mode .atlas-card-bar .dots { display: flex; gap: 5px; }
body.landing-mode .atlas-card-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
body.landing-mode .atlas-card-bar .dots span:nth-child(1) { background: #e0b0a0; }
body.landing-mode .atlas-card-bar .dots span:nth-child(2) { background: #e0cda0; }
body.landing-mode .atlas-card-bar .dots span:nth-child(3) { background: #a0c0a8; }
body.landing-mode .atlas-card-bar .url { margin-left: 8px; }
body.landing-mode .atlas-card-bar .url .accent { color: var(--accent); }

body.landing-mode .atlas-card-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 130px 1fr;
  min-height: 0;
}
body.landing-mode .atlas-rail {
  border-right: 1px solid var(--border-soft);
  padding: 12px 10px;
  font-size: 11px;
  overflow: hidden;
}
body.landing-mode .atlas-rail .rail-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 10px 4px 4px;
}
body.landing-mode .atlas-rail .rail-label:first-child { margin-top: 0; }
body.landing-mode .rail-item {
  padding: 5px 8px;
  border-radius: 5px;
  color: var(--ink);
  margin-bottom: 1px;
  cursor: default;
  font-size: 11px;
  line-height: 1.3;
}
body.landing-mode .rail-item.selected { background: var(--accent); color: white; }
body.landing-mode .rail-item.dim { color: var(--ink-faint); }

body.landing-mode .atlas-graph {
  position: relative;
  background: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.05) 1px, transparent 0);
  background-size: 16px 16px;
}
body.landing-mode .atlas-graph svg { width: 100%; height: 100%; display: block; }

/* ───────── Section frame ───────── */
body.landing-mode section.s { padding: 80px 0; }
body.landing-mode .s-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
body.landing-mode h2.s-title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 18px;
  max-width: 22ch;
}
body.landing-mode h2.s-title .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--accent-deep);
  font-style: italic;
}
body.landing-mode .s-lede {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 60ch;
  line-height: 1.55;
  margin: 0;
}
body.landing-mode .s-lede code {
  background: var(--bg-sunk);
  border: 1px solid var(--border-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.86em;
}

/* ───────── Rediscovery tax ───────── */
body.landing-mode .tax {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-top: 44px;
}
body.landing-mode .tax-stats { display: flex; flex-direction: column; gap: 18px; }
body.landing-mode .stat-row {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}
body.landing-mode .stat-row.alt {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
body.landing-mode .stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 4px;
  display: flex; justify-content: space-between; align-items: baseline;
}
body.landing-mode .stat-row.alt .stat-label { color: rgba(255, 255, 255, 0.55); }
body.landing-mode .stat-row.alt .stat-label .ok { color: var(--accent-soft); }
body.landing-mode .stat-label .pace { color: var(--terra); }
body.landing-mode .stat-value {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-feature-settings: "tnum" 1;
}
body.landing-mode .stat-value .unit { font-size: 20px; color: var(--ink-faint); margin-left: 4px; font-weight: 500; letter-spacing: 0; }
body.landing-mode .stat-row.alt .stat-value .unit { color: rgba(255, 255, 255, 0.5); }
body.landing-mode .stat-bar {
  margin-top: 12px;
  height: 8px; border-radius: 4px; background: var(--bg-sunk);
  position: relative; overflow: hidden;
}
body.landing-mode .stat-bar i {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--terra);
  border-radius: 4px;
}
body.landing-mode .stat-row.alt .stat-bar { background: rgba(255, 255, 255, 0.08); }
body.landing-mode .stat-row.alt .stat-bar i { background: var(--sage); }
body.landing-mode .stat-foot {
  font-size: 12.5px; color: var(--ink-faint);
  margin-top: 10px;
}
body.landing-mode .stat-row.alt .stat-foot { color: rgba(255, 255, 255, 0.5); }

body.landing-mode .loop-explain h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
body.landing-mode .loop-explain ol {
  padding-left: 0; list-style: none;
  display: grid; gap: 14px; margin: 0;
}
body.landing-mode .loop-explain li {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: baseline;
}
body.landing-mode .loop-explain .n {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent-deep); letter-spacing: 0.04em;
}
body.landing-mode .loop-explain .t { font-weight: 600; margin-bottom: 2px; }
body.landing-mode .loop-explain .d { font-size: 14px; color: var(--ink-muted); line-height: 1.55; }
body.landing-mode .loop-explain code {
  background: var(--bg-sunk);
  border: 1px solid var(--border-soft);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ───────── 6 Views switcher ───────── */
body.landing-mode .views {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  margin-top: 40px;
}
body.landing-mode .views-nav { display: flex; flex-direction: column; gap: 2px; }
body.landing-mode .view-tab {
  text-align: left;
  background: transparent;
  border: none;
  padding: 14px 16px;
  border-radius: 10px;
  font-family: var(--font-sans);
  cursor: pointer;
  color: var(--ink);
  border-left: 2px solid transparent;
}
body.landing-mode .view-tab:hover { background: var(--bg-elev); }
body.landing-mode .view-tab.active {
  background: var(--bg-elev);
  border-left-color: var(--accent);
}
body.landing-mode .view-tab .tab-name {
  font-weight: 600;
  font-size: 15px;
  display: flex; justify-content: space-between; align-items: center;
}
body.landing-mode .view-tab .tab-name .num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
  font-weight: 500;
}
body.landing-mode .view-tab .tab-desc {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}
body.landing-mode .views-stage {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 460px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -50px rgba(60, 40, 20, 0.35);
}
body.landing-mode .stage-pane[hidden] { display: none; }
body.landing-mode .stage-fade { animation: l-fadein 280ms ease; }
@keyframes l-fadein {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Sprint Log mini ─── */
body.landing-mode .mock-sprints-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap;
}
body.landing-mode .mock-sprints-header .summary { font-weight: 600; font-size: 14px; }
body.landing-mode .mock-sprints-header .summary .faint { color: var(--ink-faint); font-weight: 400; }
body.landing-mode .mock-chips { display: flex; gap: 6px; margin-left: auto; }
body.landing-mode .mock-chip {
  font-size: 11px; padding: 3px 10px;
  border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--ink);
}
body.landing-mode .mock-chip.selected { background: var(--accent); color: white; border-color: var(--accent); }
body.landing-mode .mock-cards { display: grid; gap: 12px; }
body.landing-mode .mock-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  background: var(--bg);
}
body.landing-mode .mock-card .range { font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); }
body.landing-mode .mock-card .title { font-weight: 600; margin-top: 2px; }
body.landing-mode .mock-card .summary { font-size: 12.5px; color: var(--ink-muted); margin: 4px 0; }
body.landing-mode .mock-card .tokens { font-size: 11px; font-family: var(--font-mono); color: var(--ink-faint); margin-bottom: 10px; }
body.landing-mode .mock-task {
  display: grid; grid-template-columns: 150px 56px 1fr;
  align-items: center; gap: 10px; margin-bottom: 5px;
}
body.landing-mode .mock-task .bar-host { position: relative; height: 10px; border-radius: 2px; background: transparent; }
body.landing-mode .mock-task .bar-fill { height: 10px; border-radius: 2px; }
body.landing-mode .mock-task .bar-fill.heavy { background: var(--terra); }
body.landing-mode .mock-task .bar-fill.medium { background: var(--mustard); }
body.landing-mode .mock-task .bar-fill.light { background: var(--steel); }
body.landing-mode .mock-task .bucket {
  font-size: 9.5px; font-family: var(--font-mono);
  color: var(--ink-faint); text-transform: uppercase;
}
body.landing-mode .mock-task .label { font-size: 12px; color: var(--ink); }

/* ─── Forecast mini ─── */
body.landing-mode .mock-forecast-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
body.landing-mode .mock-milestone-pill {
  padding: 4px 10px; border: 1px solid var(--border);
  border-radius: 6px; font-family: var(--font-mono); font-size: 12px;
}
body.landing-mode .mock-forecast-header .eta {
  color: var(--ink-faint); font-size: 12px; margin-left: auto; font-family: var(--font-mono);
}
body.landing-mode .mock-forecast-chart {
  background: var(--bg); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 14px;
}
body.landing-mode .mock-forecast-chart svg { width: 100%; height: auto; display: block; }
body.landing-mode .mock-forecast-stats {
  margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
}
body.landing-mode .mock-forecast-stats .stat {
  padding: 12px 14px; background: var(--bg-sunk); border-radius: 8px;
}
body.landing-mode .mock-forecast-stats .stat .l {
  font-size: 10px; font-family: var(--font-mono);
  color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em;
}
body.landing-mode .mock-forecast-stats .stat .v {
  font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px;
}
body.landing-mode .mock-forecast-stats .stat .s { font-size: 11px; color: var(--ink-faint); }

/* ─── Kanban mini ─── */
body.landing-mode .mock-kanban {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
body.landing-mode .mock-col {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px;
}
body.landing-mode .mock-col.accent {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
body.landing-mode .mock-col-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
body.landing-mode .mock-col-head .name { font-size: 12px; font-weight: 600; color: var(--ink); }
body.landing-mode .mock-col.accent .mock-col-head .name { color: var(--accent-deep); }
body.landing-mode .mock-col-head .count {
  font-size: 10px; font-family: var(--font-mono); color: var(--ink-faint);
}
body.landing-mode .mock-cards-stack { display: grid; gap: 8px; }
body.landing-mode .mock-kcard {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 10px 12px;
}
body.landing-mode .mock-kcard .ktext { font-size: 12px; color: var(--ink); line-height: 1.4; }
body.landing-mode .mock-kcard .ktag-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
body.landing-mode .mock-kcard .ktag {
  font-size: 9px; font-family: var(--font-mono); color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.06em;
}
body.landing-mode .mock-kcard .kclaude {
  font-size: 9px; font-family: var(--font-mono);
  color: var(--accent-deep); background: var(--accent-tint);
  padding: 1px 6px; border-radius: 3px;
}
body.landing-mode .mock-kanban-terminal {
  margin-top: 18px; padding: 12px 14px;
  background: var(--ink); color: #f3e9dd;
  border-radius: 8px;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.6;
}
body.landing-mode .mock-kanban-terminal .lead { color: var(--accent-soft); margin-bottom: 4px; }
body.landing-mode .mock-kanban-terminal .gold { color: var(--accent-soft); }
body.landing-mode .mock-kanban-terminal .dim { color: #888; }

/* ─── Usage mini ─── */
body.landing-mode .mock-usage-head {
  display: grid; grid-template-columns: auto 1fr;
  gap: 28px; align-items: center; margin-bottom: 24px;
}
body.landing-mode .mock-usage-head .label {
  font-size: 13px; color: var(--ink-faint);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
}
body.landing-mode .mock-usage-head .title {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px;
}
body.landing-mode .mock-usage-head .detail {
  font-size: 13px; color: var(--ink-muted); margin-top: 4px;
}
body.landing-mode .mock-usage-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 22px;
}
body.landing-mode .mock-usage-stat {
  background: var(--bg); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 14px;
}
body.landing-mode .mock-usage-stat .l {
  font-size: 10px; font-family: var(--font-mono);
  color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em;
}
body.landing-mode .mock-usage-stat .v {
  font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px;
}
body.landing-mode .mock-usage-stat.good .v { color: var(--sage); }
body.landing-mode .mock-usage-stat .d {
  font-size: 11px; color: var(--ink-faint); margin-top: 2px; font-family: var(--font-mono);
}
body.landing-mode .mock-usage-cache {
  padding: 14px 16px; background: var(--bg);
  border: 1px solid var(--border-soft); border-radius: 10px;
}
body.landing-mode .mock-usage-cache .l {
  font-size: 12px; font-family: var(--font-mono);
  color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
body.landing-mode .mock-cache-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 60px;
}
body.landing-mode .mock-cache-bar {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
body.landing-mode .mock-cache-bar .bar {
  width: 100%; background: var(--sage); border-radius: 3px 3px 0 0;
}
body.landing-mode .mock-cache-bar .pct {
  font-size: 10px; font-family: var(--font-mono); color: var(--ink-faint);
}

/* ─── Backlog mini ─── */
body.landing-mode .mock-backlog-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
body.landing-mode .mock-backlog-head .summary { font-size: 13.5px; font-weight: 600; }
body.landing-mode .mock-backlog-head .summary .faint { color: var(--ink-faint); font-weight: 400; }
body.landing-mode .mock-backlog-head .chips { margin-left: auto; display: flex; gap: 6px; }
body.landing-mode .mock-backlog-list { display: grid; gap: 4px; }
body.landing-mode .mock-brow {
  display: grid; grid-template-columns: 80px 100px 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}
body.landing-mode .mock-bstatus {
  font-size: 10px; padding: 2px 8px; border-radius: 4px;
  font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: 0.06em; color: white; text-align: center;
}
body.landing-mode .mock-bstatus.done { background: var(--sage); }
body.landing-mode .mock-bstatus.in-progress { background: var(--mustard); }
body.landing-mode .mock-bstatus.planned { background: var(--ink-faint); }
body.landing-mode .mock-btag {
  font-size: 10px; font-family: var(--font-mono); color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.06em;
}
body.landing-mode .mock-btext { font-size: 13px; }
body.landing-mode .mock-bid { font-size: 10px; font-family: var(--font-mono); color: var(--ink-faint); }

/* ───────── Loop diagram ───────── */
body.landing-mode .loop {
  background: var(--ink);
  color: #f3e9dd;
  border-radius: 18px;
  padding: 54px 48px 48px;
  margin-top: 32px;
  position: relative;
  overflow: hidden;
}
body.landing-mode .loop h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
body.landing-mode .loop h3 .serif { color: var(--accent-soft); font-family: var(--font-serif); font-style: italic; font-weight: 400; }
body.landing-mode .loop > p {
  color: rgba(255, 255, 255, 0.6); margin: 0 0 32px;
  max-width: 56ch; font-size: 15px;
}
body.landing-mode .loop-stages {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  position: relative;
}
body.landing-mode .loop-stages.two-up { grid-template-columns: 1fr 1fr; margin-top: 14px; }
body.landing-mode .loop-stage {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 18px;
}
body.landing-mode .loop-stage .ico {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-soft);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.landing-mode .loop-stage h4 {
  font-size: 16px; margin: 0 0 6px;
  font-weight: 600;
}
body.landing-mode .loop-stage p {
  font-size: 13px; color: rgba(255, 255, 255, 0.6);
  margin: 0; line-height: 1.5;
}
body.landing-mode .loop-stage p code {
  color: var(--accent-soft);
  font-family: var(--font-mono);
  background: transparent;
  padding: 0;
}
body.landing-mode .loop-arrow {
  color: var(--accent-soft);
  font-family: var(--font-mono);
  text-align: center;
  align-self: center;
  font-size: 18px;
}

/* ───────── Install grid ───────── */
body.landing-mode .install-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
body.landing-mode .install-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex; flex-direction: column;
  position: relative;
}
body.landing-mode .install-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
body.landing-mode .install-card h3 {
  font-size: 16px;
  margin: 0 0 4px;
  display: flex; align-items: center; gap: 8px;
}
body.landing-mode .install-card .recommended {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--accent);
  color: white;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
body.landing-mode .install-card .sub {
  font-size: 13px; color: var(--ink-muted);
  margin: 0 0 16px;
}
body.landing-mode .install-card .sub code {
  background: var(--bg-sunk); padding: 1px 5px; border-radius: 3px;
  font-size: 0.85em;
}
body.landing-mode .install-card pre {
  background: var(--bg-sunk);
  border: 1px solid var(--border-soft);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
  margin: 0;
  color: var(--ink);
}
body.landing-mode .install-card .pending {
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-faint);
  padding: 8px 10px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  text-align: center;
}
body.landing-mode .install-card pre.pending-cmd { opacity: 0.5; }

body.landing-mode .commands-and-log {
  margin-top: 36px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; align-items: start;
}
body.landing-mode .command-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 14px;
  padding: 10px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  align-items: baseline;
}
body.landing-mode .command-row code {
  font-size: 12.5px; color: var(--accent-deep);
}
body.landing-mode .command-row .desc { font-size: 13px; color: var(--ink-muted); }
body.landing-mode .commands-list { display: grid; gap: 8px; }

body.landing-mode .changelog {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  display: grid; gap: 12px;
  margin-top: 4px;
}
body.landing-mode .change-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: baseline;
  font-size: 14px;
}
body.landing-mode .change-ver {
  font-family: var(--font-mono);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 500;
}
body.landing-mode .change-row .what { color: var(--ink-muted); line-height: 1.55; }
body.landing-mode .change-row .what strong { font-weight: 600; color: var(--ink); }
body.landing-mode .change-row .what code {
  background: var(--bg-sunk); padding: 1px 5px; border-radius: 3px;
  font-size: 0.85em;
}
body.landing-mode .full-changelog {
  display: inline-block; margin-top: 16px;
  font-size: 13px; color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}

/* ───────── Examples ───────── */
body.landing-mode .examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
body.landing-mode .example {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: border-color 100ms, transform 100ms;
}
body.landing-mode .example:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
body.landing-mode .example .h {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
body.landing-mode .example .h .title {
  font-weight: 600;
  color: var(--accent-deep);
  font-size: 15px;
}
body.landing-mode .example .h .arrow {
  color: var(--ink-faint);
  font-family: var(--font-mono); font-size: 13px;
}
body.landing-mode .example:hover .arrow { color: var(--accent); }
body.landing-mode .example .d { font-size: 13.5px; color: var(--ink-muted); line-height: 1.5; margin: 0; }
body.landing-mode .example .d code {
  background: var(--bg-sunk); padding: 1px 5px; border-radius: 3px;
  font-size: 0.85em;
}
body.landing-mode .grammar {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}
body.landing-mode .grammar strong { color: var(--ink); }
body.landing-mode .grammar code {
  background: var(--bg-sunk); padding: 1px 5px; border-radius: 3px;
  font-size: 0.85em;
}

/* ───────── Footer ───────── */
body.landing-mode footer.foot {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 48px 0 64px;
}
body.landing-mode .foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
body.landing-mode .foot-grid h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin: 0 0 14px;
  font-weight: 500;
}
body.landing-mode .foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
body.landing-mode .foot-grid a { text-decoration: none; color: var(--ink); font-size: 14px; }
body.landing-mode .foot-grid a:hover { color: var(--accent-deep); }
body.landing-mode .foot-grid .arrow { color: var(--ink-faint); font-size: 11px; }
body.landing-mode .foot-meta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink-faint);
  font-family: var(--font-mono);
}
body.landing-mode .foot-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
body.landing-mode .foot-brand .name { font-weight: 600; }
body.landing-mode .foot-blurb {
  font-size: 13.5px; color: var(--ink-muted); line-height: 1.55; max-width: 32ch; margin: 0;
}

/* ───────── Hero atlas SVG state ───────── */
body.landing-mode .atlas-graph .flow-node rect {
  fill: #fbf9f3;
  stroke: #cfc8b7;
  stroke-width: 1;
  transition: fill 250ms ease, stroke 250ms ease, stroke-width 250ms ease;
}
body.landing-mode .atlas-graph .flow-node text {
  fill: #3a3833;
  transition: fill 250ms ease;
}
body.landing-mode .atlas-graph .flow-node.always-lit rect,
body.landing-mode .atlas-graph .flow-node.lit rect {
  fill: rgba(204, 120, 92, 0.14);
  stroke: var(--accent);
  stroke-width: 1.4;
}
body.landing-mode .atlas-graph .flow-node.always-lit text,
body.landing-mode .atlas-graph .flow-node.lit text {
  fill: var(--accent-deep);
}
body.landing-mode .atlas-graph .flow-edge path {
  stroke: #cfc8b7;
  stroke-width: 1.1;
  marker-end: url(#arrow-grey);
  transition: stroke 220ms ease, stroke-width 220ms ease;
}
body.landing-mode .atlas-graph .flow-edge .edge-label {
  fill: var(--accent-deep);
  opacity: 0;
  transition: opacity 200ms ease;
}
body.landing-mode .atlas-graph .flow-edge.lit path {
  stroke: var(--accent);
  stroke-width: 1.8;
  marker-end: url(#arrow-accent);
}
body.landing-mode .atlas-graph .flow-edge.lit .edge-label { opacity: 1; }

/* ───────── responsive ───────── */
@media (max-width: 960px) {
  body.landing-mode .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  body.landing-mode .tax { grid-template-columns: 1fr; gap: 32px; }
  body.landing-mode .views { grid-template-columns: 1fr; }
  body.landing-mode .install-grid { grid-template-columns: 1fr; }
  body.landing-mode .examples { grid-template-columns: 1fr; }
  body.landing-mode .foot-grid { grid-template-columns: 1fr 1fr; }
  body.landing-mode .loop-stages,
  body.landing-mode .loop-stages.two-up { grid-template-columns: 1fr; }
  body.landing-mode .loop-arrow { display: none; }
  body.landing-mode .topnav a:not(.cta) { display: none; }
  body.landing-mode .mock-kanban,
  body.landing-mode .mock-usage-grid,
  body.landing-mode .mock-forecast-stats { grid-template-columns: 1fr; }
  body.landing-mode .commands-and-log { grid-template-columns: 1fr; }
}
