/* ==========================================================================
   FieldLine — Design Tokens
   ========================================================================== */
:root {
  --canvas-dark: #090A0D;
  --canvas-elevated: #111318;
  --surface-border: #222631;
  --text-primary: #F3F4F6;
  --text-muted: #A1A7B5;
  --text-disabled: #6B7280;
  --direction-accent: #4E75FF;
  --exploration-accent: #00E5A3;

  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-max: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

body {
  background: var(--canvas-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (max-width: 1023px) {
  body { font-size: 15px; }
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--direction-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--direction-accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent-blue { color: var(--direction-accent); }
.text-accent-green { color: var(--exploration-accent); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--direction-accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--surface-border);
}

.btn-outline {
  background: transparent;
  color: var(--exploration-accent);
  border-color: var(--exploration-accent);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 10, 13, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-right: auto;
}
.nav-brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--direction-accent), var(--exploration-accent));
  margin-right: 2px;
  align-self: center;
}
.nav-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.03em; }
.nav-brand-sub { font-size: 12px; color: var(--text-muted); }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--surface-border);
}
.nav-mobile a { padding: 10px 0; color: var(--text-muted); font-size: 15px; }
.nav-mobile .btn { margin-top: 8px; width: fit-content; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open .nav-mobile { display: flex; }
}

/* ==========================================================================
   Section base
   ========================================================================== */
.section { border-top: 1px solid var(--surface-border); }
.section-tight { padding: 48px 0; }
.section-wide { padding: 96px 0; }
.section-open { padding: 140px 0; }
.section-close { padding: 128px 0 96px; }

@media (max-width: 1023px) {
  .section-tight { padding: 56px 0; }
  .section-wide { padding: 64px 0; }
  .section-open { padding: 80px 0; }
  .section-close { padding: 72px 0 56px; }
}

.section-h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  max-width: 800px;
  margin-bottom: 48px;
}
.section-h2-center { max-width: 700px; margin-left: auto; margin-right: auto; text-align: center; }

.section-lede {
  margin-top: -28px;
  margin-bottom: 40px;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.7;
}
.section-lede-center { margin-left: auto; margin-right: auto; text-align: center; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 560px;
  background: radial-gradient(closest-side, rgba(78, 117, 255, 0.28), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }

.overline {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--direction-accent);
  margin-bottom: 20px;
}

.hero-h1 {
  font-size: clamp(38px, 6.4vw, 76px);
  font-weight: 800;
  line-height: 1.06;
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 24px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-narrative {
  max-width: 580px;
  margin: 0 auto 40px;
  color: var(--text-disabled);
  font-size: 15px;
  line-height: 1.7;
}

.hero-footnote {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-disabled);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Terminal */
.terminal {
  max-width: 760px;
  margin: 0 auto;
  background: var(--canvas-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  text-align: left;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--surface-border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.terminal-label {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-disabled);
}

.terminal-body { padding: 24px 20px 22px; }
.terminal-line {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  min-height: 22px;
  margin-bottom: 22px;
}
.terminal-prompt { color: var(--exploration-accent); font-weight: 600; }
.terminal-text { color: var(--text-primary); word-break: break-word; }
.terminal-cursor {
  color: var(--direction-accent);
  animation: blink 1s step-end infinite;
  font-size: 13px;
}
@keyframes blink { 50% { opacity: 0; } }

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  color: var(--text-disabled);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.pill-check { opacity: 0; transition: opacity 0.2s ease; }
.pill.is-active {
  opacity: 1;
  transform: translateY(0);
  color: var(--exploration-accent);
  border-color: rgba(0, 229, 163, 0.4);
  background: rgba(0, 229, 163, 0.06);
}
.pill.is-active .pill-check { opacity: 1; }

/* ==========================================================================
   Section 3 — Paradigm Diagram
   ========================================================================== */
.paradigm {
  display: grid;
  gap: 16px;
}
.paradigm-card {
  background: var(--canvas-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 28px 28px 24px;
}
.paradigm-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-disabled);
  margin-bottom: 18px;
}
.paradigm-label-accent { color: var(--direction-accent); }

.paradigm-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.paradigm-chain span[role="listitem"] {
  padding: 7px 12px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.arrow { color: var(--text-disabled); font-size: 15px; }
.arrow-accent { color: var(--direction-accent); font-size: 18px; }

.paradigm-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.paradigm-node {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--surface-border);
}
.paradigm-node-human { color: var(--text-primary); background: rgba(255,255,255,0.03); }
.paradigm-node-engine {
  color: var(--direction-accent);
  border-color: rgba(78, 117, 255, 0.5);
  background: rgba(78, 117, 255, 0.08);
  font-weight: 600;
}
.paradigm-outputs { display: flex; align-items: center; gap: 14px; }
.paradigm-output-list { display: flex; flex-direction: column; gap: 8px; }
.paradigm-output {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--exploration-accent);
  border: 1px solid rgba(0, 229, 163, 0.35);
  background: rgba(0, 229, 163, 0.05);
}

.paradigm-caption {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 14.5px;
  font-style: italic;
}

@media (max-width: 1023px) {
  .paradigm-chain { font-size: 13px; }
  .paradigm-flow { flex-direction: column; align-items: flex-start; }
  .paradigm-flow .arrow-accent { transform: rotate(90deg); margin-left: 8px; }
}

/* ==========================================================================
   Section 4 — What FieldLine Is Not
   ========================================================================== */
.not-card {
  background: var(--canvas-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
}
.not-intro {
  max-width: 720px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}
.not-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  margin-bottom: 36px;
}
.not-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-muted);
}
.not-x { color: var(--text-disabled); font-size: 13px; }

.not-anchor {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--text-primary);
  max-width: 640px;
  margin: 0 auto;
  letter-spacing: -0.02em;
}

.not-positive {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   Section 5 — Continuous Loop
   ========================================================================== */
.loop-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
}

.loop-graph {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  aspect-ratio: 1 / 1;
  max-width: 480px;
}
.loop-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.loop-path {
  stroke: var(--surface-border);
  stroke-width: 0.6;
  stroke-dasharray: 3 2;
}

.loop-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  background: var(--canvas-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.loop-node[aria-pressed="true"] {
  border-color: var(--exploration-accent);
  background: rgba(0, 229, 163, 0.06);
}
.loop-node-index { font-family: var(--font-mono); font-size: 12px; color: var(--text-disabled); }
.loop-node[aria-pressed="true"] .loop-node-index { color: var(--exploration-accent); }
.loop-node-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.loop-node-sub { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }

.loop-detail {
  background: var(--canvas-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  min-height: 200px;
}
.loop-detail-eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--exploration-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.loop-detail-title { font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.loop-detail-body { color: var(--text-muted); font-size: 16px; line-height: 1.7; }

.loop-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.loop-detail-tags li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--exploration-accent);
  border: 1px solid rgba(0, 229, 163, 0.3);
  background: rgba(0, 229, 163, 0.05);
  padding: 6px 12px;
  border-radius: 999px;
}

.loop-caption {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
}

@media (max-width: 1023px) {
  .loop-wrap { grid-template-columns: 1fr; gap: 28px; }
  .loop-graph {
    display: flex;
    flex-direction: column;
    max-width: none;
    aspect-ratio: auto;
  }
  .loop-svg { display: none; }
  .loop-node { flex-direction: row; align-items: center; gap: 14px; }
}

/* ==========================================================================
   Section 6 — What If? Engine
   ========================================================================== */
.whatif {
  background: var(--canvas-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.whatif-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--surface-border);
}
.whatif-tab {
  flex: 1 1 240px;
  padding: 18px 20px;
  font-size: 14.5px;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 2px solid transparent;
  border-right: 1px solid var(--surface-border);
  transition: color 0.2s ease, background 0.2s ease;
}
.whatif-tab:last-child { border-right: none; }
.whatif-tab.is-active {
  color: var(--text-primary);
  background: rgba(78, 117, 255, 0.06);
  border-bottom-color: var(--direction-accent);
  font-weight: 600;
}

.whatif-panel { padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.whatif-row { display: flex; flex-direction: column; gap: 6px; }
.whatif-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-disabled);
}
.whatif-label-accent { color: var(--exploration-accent); }
.whatif-value { color: var(--text-primary); font-size: 16px; line-height: 1.6; }
.whatif-panel.is-updating { opacity: 0.4; }
.whatif-panel { transition: opacity 0.15s ease; }

@media (max-width: 1023px) {
  .whatif-tabs { flex-direction: column; }
  .whatif-tab { border-right: none; border-bottom: 1px solid var(--surface-border); }
  .whatif-tab.is-active { border-bottom-color: var(--direction-accent); }
}

/* ==========================================================================
   Section 7 — Strategic Coexistence
   ========================================================================== */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.badge {
  padding: 12px 22px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-disabled);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.coexist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.coexist-card {
  background: var(--canvas-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.coexist-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}
.coexist-body {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

@media (max-width: 1023px) {
  .coexist-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Section 8 — Close
   ========================================================================== */
.close-inner { text-align: center; }
.close-sub {
  max-width: 520px;
  margin: 20px auto 44px;
  color: var(--text-muted);
  font-size: 17px;
}
.close-ctas { margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 28px 0;
}
.footer-inner {
  text-align: center;
  color: var(--text-disabled);
  font-size: 13px;
}

/* ==========================================================================
   Shared content-depth primitives — chip rows, footnotes, accent lines,
   product deep-dive blocks, the direction stepper, split lists, and the
   scroll-reveal philosophy lines.
   ========================================================================== */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
}
.chip-accent {
  color: var(--direction-accent);
  border-color: rgba(78, 117, 255, 0.35);
  background: rgba(78, 117, 255, 0.05);
}

.section-footnote {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 620px;
  margin-top: 8px;
}
.section-footnote-center { margin-left: auto; margin-right: auto; text-align: center; }

.accent-line {
  font-style: italic;
  color: var(--exploration-accent);
  font-size: 15px;
  margin: 20px 0 24px;
}
.accent-line-strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 24px);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 720px;
  margin: 28px 0 0;
}
#category .accent-line-strong,
#why-now .accent-line-strong,
#philosophy .accent-line-strong {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.product-body {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 720px;
  margin-bottom: 8px;
}
.product-caveat {
  color: var(--text-disabled);
  font-size: 14px;
  line-height: 1.7;
  max-width: 620px;
  margin-top: 8px;
}
.product-eyebrow { margin-bottom: 16px; }
.product-tags { margin: 8px 0 28px; }

.subsection-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.3;
  max-width: 640px;
  margin: 48px 0 16px;
}

.system-banner { max-width: 720px; margin: 0 auto; }
.system-chain { justify-content: center; }
.category-stack { justify-content: center; text-align: center; }
.category-tagline { margin-left: auto; margin-right: auto; text-align: center; max-width: 640px; }

/* Direction stepper */
.direction-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin-top: 8px;
}
.direction-step {
  flex: 1 1 170px;
  background: var(--canvas-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.direction-step-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--direction-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.direction-step-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.direction-arrow { align-self: center; flex-shrink: 0; }

@media (max-width: 1023px) {
  .direction-steps { flex-direction: column; }
  .direction-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 20px; }
}

/* Split lists (Why Now) */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.split-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-disabled);
  margin-bottom: 4px;
}
.split-col .chip-row { margin-bottom: 0; }

@media (max-width: 1023px) {
  .split-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Scroll-reveal philosophy lines */
.reveal-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 40px 0;
}
.reveal-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.6vw, 26px);
  color: var(--text-disabled);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease, color 0.6s ease;
}
.reveal-line.is-visible {
  opacity: 1;
  transform: translateY(0);
  color: var(--text-primary);
}

/* ==========================================================================
   Hover-capable devices only (mouse/trackpad) — avoids "sticky" hover
   states on touch, where the browser applies :hover after a tap and
   only clears it on the next tap elsewhere.
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #6285ff; }
  .btn-ghost:hover { border-color: var(--direction-accent); color: var(--direction-accent); }
  .btn-outline:hover { background: rgba(0, 229, 163, 0.08); }
  .nav-links a:hover { color: var(--text-primary); }
  .loop-node:hover { border-color: var(--direction-accent); transform: translateY(-2px); }
  .whatif-tab:hover { color: var(--text-primary); }
  .badge:hover { color: var(--text-muted); border-color: var(--text-disabled); }
}
