/* =========================================================
   FORESTECHO — Marketing site
   Editorial, engineering-forward. Light + dark via [data-theme].
   ========================================================= */

:root[data-theme="light"] {
  --bg:        #FBFAF6;          /* warm paper */
  --bg-2:      #F4F1EA;
  --surface:   #FFFFFF;
  --surface-2: #F7F4ED;
  --ink:       #14201A;
  --ink-2:     #3A4A42;
  --muted:     #6E7972;
  --faint:     #A4ADA7;
  --line:      #E2DDD0;
  --line-soft: #ECE7DA;
  --brand:     #2D5A3D;
  --brand-2:   #6B9B7A;
  --brand-soft:#E8F0EB;
  --brand-line:#C8DCCF;
  --crit:      #B23A2A;
  --crit-bg:   #FBEAE7;
  --crit-line: #E8B5AC;
  --high:      #B8541A;
  --high-bg:   #FCEFE3;
  --high-line: #ECC8A6;
  --med:       #9A700B;
  --med-bg:    #FCF5DD;
  --med-line:  #E8D69A;
  --link:      #1E5FB3;
  --shadow-sm: 0 1px 0 rgba(20,32,26,.04);
  --grain-opacity: .04;
}

:root[data-theme="dark"] {
  --bg:        #0E1411;          /* deep forest night */
  --bg-2:      #131B17;
  --surface:   #15201B;
  --surface-2: #19261F;
  --ink:       #E6EAE5;
  --ink-2:     #BDC6BF;
  --muted:     #8B948E;
  --faint:     #5F6864;
  --line:      #243029;
  --line-soft: #1C2620;
  --brand:     #7FB98A;
  --brand-2:   #4D8A5E;
  --brand-soft:#1A2A20;
  --brand-line:#2F4738;
  --crit:      #FF7868;
  --crit-bg:   #2A1A18;
  --crit-line: #5B2A24;
  --high:      #FF9A4D;
  --high-bg:   #2A1F14;
  --high-line: #5C3A1E;
  --med:       #E8C547;
  --med-bg:    #2A2410;
  --med-line:  #574A1C;
  --link:      #6BA8FF;
  --shadow-sm: 0 1px 0 rgba(0,0,0,.3);
  --grain-opacity: .06;
}

/* type scale ---------------------------------------------- */
:root {
  --display: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', Consolas, monospace;
  /* serif var kept as alias to display for any stragglers */
  --serif: var(--display);
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --max:   1180px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'ss02';
  /* faint paper / dust grain on page bg */
  background-image:
    radial-gradient(circle at 25% 15%, rgba(0,0,0,var(--grain-opacity)) 0 1px, transparent 1px),
    radial-gradient(circle at 75% 60%, rgba(0,0,0,var(--grain-opacity)) 0 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- nav ------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-row {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 24px; width: auto; }
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-link {
  font-size: 14px; color: var(--ink-2); text-decoration: none;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--brand); border-bottom-color: var(--brand); }

.nav-tools { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  color: var(--muted);
  font: inherit; font-size: 12.5px;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--brand-line); }
.theme-toggle .sun, .theme-toggle .moon { width: 14px; height: 14px; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"]  .theme-toggle .sun  { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn-primary {
  background: var(--brand); color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover { background: color-mix(in oklab, var(--brand) 88%, black); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--brand-line); }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14.5px; border-radius: 999px; }

/* ---- eyebrow / pill ------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
}
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

/* ---- typography ---------------------------------------- */
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--brand); }
h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.012em;
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; }

/* ---- section scaffolding ------------------------------- */
section { padding: 96px 0; border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: 0; }
.section-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.section-eyebrow::after {
  content: ''; height: 1px; flex: 1; background: var(--line);
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .lede { margin-top: 16px; }

/* ---- HERO ---------------------------------------------- */
.hero { padding: 56px 0 96px; border-top: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lede { margin-bottom: 28px; max-width: 50ch; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-actions .meta { font-size: 12.5px; color: var(--muted); margin-left: 4px; }

.hero-art { position: relative; }

/* shared: window frame for product screenshots */
.window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px -20px rgba(20,32,26,.18), var(--shadow-sm);
  overflow: hidden;
}
:root[data-theme="dark"] .window { box-shadow: 0 18px 40px -10px rgba(0,0,0,.5); }
.window-bar {
  display: flex; align-items: center; gap: 8px;
  height: 30px;
  padding: 0 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.window-bar .dots { display: inline-flex; gap: 6px; }
.window-bar .dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line); opacity: .8;
}
.window-bar .crumb {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  margin-left: 10px;
}

/* ---- LIVE FINDINGS WIDGET (3-pane: tree | list | detail) */
.fe-widget { display: grid; grid-template-columns: 180px 260px 1fr; min-height: 520px; max-height: 560px; }
.fe-widget.fe-widget-compact { grid-template-columns: 1fr 1fr; min-height: 380px; max-height: 420px; }
.fe-widget > * { min-height: 0; max-height: 560px; overflow-y: auto; }
.fe-widget.fe-widget-compact > * { max-height: 420px; }

/* Pane 1: tree of severity > rules */
.fe-tree { border-right: 1px solid var(--line); background: var(--surface-2); padding: 6px 0; }
.fe-tree-group { padding: 4px 0 6px; }
.fe-tree-head {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px 4px;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.fe-tree-head .swatch { width: 7px; height: 7px; border-radius: 50%; }
.fe-tree-head .swatch.crit { background: var(--crit); }
.fe-tree-head .swatch.high { background: var(--high); }
.fe-tree-head .swatch.med  { background: var(--med); }
.fe-tree-head .n { color: var(--ink-2); margin-left: auto; font-size: 10.5px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.fe-tree-rule {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  cursor: pointer;
  position: relative;
}
.fe-tree-rule:hover { background: var(--surface); color: var(--ink); }
.fe-tree-rule.selected { background: var(--surface); color: var(--brand); }
.fe-tree-rule.selected::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--brand);
}
.fe-tree-rule .ct { margin-left: auto; color: var(--faint); font-size: 10.5px; }

/* Pane 2: card list */
.fe-list { border-right: 1px solid var(--line); background: var(--surface); }
.fe-list-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
.fe-list-head .count {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--crit); font-weight: 600;
}
.fe-list-head .count::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--crit);
}
.fe-card {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  position: relative;
  transition: background 100ms ease;
}
.fe-card:hover { background: var(--surface-2); }
.fe-card.selected { background: var(--brand-soft); }
.fe-card.selected::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--brand);
}
.fe-card-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.rule-chip {
  display: inline-flex; align-items: center;
  height: 17px; padding: 0 6px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--link);
  background: color-mix(in oklab, var(--link) 14%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--link) 28%, var(--surface));
  border-radius: 2px;
  line-height: 1;
}
.sev-chip {
  display: inline-flex; align-items: center;
  height: 17px; padding: 0 6px;
  border-radius: 2px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  line-height: 1;
}
.sev-chip.crit { background: var(--crit-bg); color: var(--crit); border: 1px solid var(--crit-line); }
.sev-chip.high { background: var(--high-bg); color: var(--high); border: 1px solid var(--high-line); }
.sev-chip.med  { background: var(--med-bg);  color: var(--med);  border: 1px solid var(--med-line); }
.fe-card-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; margin-bottom: 3px; }
.fe-card-meta  { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.fe-detail { padding: 0; background: var(--surface); display: flex; flex-direction: column; }
.fe-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); padding: 0 14px; }
.fe-tab {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  padding: 10px 14px;
  font-size: 12px; color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.fe-tab:hover { color: var(--ink); }
.fe-tab.active { color: var(--ink); border-bottom-color: var(--brand); }
.fe-tab-body { padding: 16px 18px; overflow-y: auto; }
.fe-detail .eyebrow { font-size: 10.5px; color: var(--muted); }
.fe-detail .eyebrow .dot { background: var(--muted); }

.fe-script-tabs { display: flex; align-items: center; gap: 4px; margin: 12px 0 0; }
.fe-st {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-family: var(--mono); font-size: 11px;
  padding: 4px 8px;
  color: var(--muted);
  border-radius: 3px;
}
.fe-st.active { background: var(--brand-soft); color: var(--brand); }
.fe-script-meta { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.fe-script {
  margin: 6px 0 14px;
  padding: 10px 12px;
  background: color-mix(in oklab, var(--ink) 4%, var(--surface));
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono); font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-2);
  white-space: pre-wrap;
  max-height: 180px; overflow-y: auto;
}
.fe-sim-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}
.fe-sim-status { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); }
.fe-sim-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.fe-detail .v .ok { color: var(--brand); font-weight: 600; }
.fe-detail .v .warn { color: var(--high); }
.fe-actions { display: flex; gap: 6px; margin-top: 14px; }
.fe-detail h4 {
  font-family: var(--display); font-weight: 600;
  font-size: 16px; line-height: 1.25;
  letter-spacing: -.012em;
  margin: 6px 0 10px;
  color: var(--ink);
  text-wrap: balance;
}
.fe-detail .row {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 4px 10px;
  padding: 6px 0;
  border-top: 1px dotted var(--line-soft);
  font-size: 12px;
}
.fe-detail .row:first-of-type { border-top: 0; }
.fe-detail .k { color: var(--muted); }
.fe-detail .v { font-family: var(--mono); color: var(--ink); word-break: break-all; line-height: 1.5; }
.fe-detail .v .hex { color: var(--crit); font-weight: 600; }
.fe-detail .v .ann { color: var(--muted); }
.fe-detail .tier {
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid var(--med-line);
  background: var(--med-bg);
  border-radius: 4px;
  font-size: 12px;
  color: color-mix(in oklab, var(--med) 70%, var(--ink));
  display: flex; align-items: flex-start; gap: 8px;
}
.fe-detail .tier svg { color: var(--med); flex-shrink: 0; margin-top: 2px; }
.fe-detail .tier b { color: var(--med); font-weight: 600; }

/* ---- TERMINAL (hero variation B) ----------------------- */
.terminal {
  background: #0d1411;
  color: #d6dfd8;
  border-radius: var(--r-md);
  border: 1px solid #1c2620;
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 16px 18px;
  min-height: 380px;
  overflow: hidden;
  position: relative;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  margin: -16px -18px 14px;
  padding: 8px 14px;
  background: #131b17;
  border-bottom: 1px solid #1c2620;
}
.terminal-bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: #2a3530; display: inline-block; margin-right: 4px; }
.terminal-bar .crumb { font-size: 11px; color: #6e7972; }
.term-line { white-space: pre-wrap; line-height: 1.55; }
.term-line .prompt { color: #7fb98a; }
.term-line .flag   { color: #6BA8FF; }
.term-line .ok     { color: #7fb98a; }
.term-line .warn   { color: #E8C547; }
.term-line .crit   { color: #FF7868; font-weight: 600; }
.term-line .dim    { color: #6e7972; }
.term-line .nom    { color: #d6dfd8; font-weight: 500; }
.term-cursor {
  display: inline-block; width: 8px; height: 14px;
  background: #7fb98a; vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 0%,50% { opacity: 1 } 50.01%,100% { opacity: 0 } }

/* ---- PROBLEM (numbers row) ----------------------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric { padding: 32px 28px; border-left: 1px solid var(--line-soft); }
.metric:first-child { border-left: 0; }
.metric .num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}
.metric .num em { font-style: italic; color: var(--brand); }
.metric .label { font-size: 13.5px; color: var(--ink-2); max-width: 30ch; line-height: 1.5; }
.metric .src   { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 8px; }

/* ---- HOW IT WORKS -------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 26px 26px;
  position: relative;
}
.step .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: .12em;
  margin-bottom: 18px;
}
.step h3 { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.018em; margin-bottom: 8px; line-height: 1.2; }
.step p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.55; }
.step .glyph {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 22px;
  border: 1px solid var(--brand-line);
}

/* ---- FEATURE GRID -------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.feature {
  background: var(--surface);
  padding: 28px 26px 30px;
}
.feature .glyph {
  width: 28px; height: 28px;
  color: var(--brand);
  margin-bottom: 18px;
}
.feature h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; letter-spacing: -.005em; }
.feature p  { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* ---- CTA ----------------------------------------------- */
.cta {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}
.cta h2 { max-width: 22ch; }
.cta-form {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
  min-width: 380px;
}
.cta-form input {
  flex: 1;
  border: 0; outline: 0; background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 8px 0;
}
.cta-form input::placeholder { color: var(--faint); }
.cta-form .btn { height: 36px; }
.cta-meta { font-size: 12.5px; color: var(--muted); margin-top: 14px; font-family: var(--mono); }

/* ---- FOOTER -------------------------------------------- */
footer {
  padding: 56px 0 64px;
  border-top: 1px solid var(--line-soft);
}
.footer-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: 13.5px; }
.footer-col a:hover { color: var(--brand); }
.footer-col p { font-size: 13px; color: var(--muted); margin: 12px 0 0; max-width: 32ch; line-height: 1.55; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
}

/* ---- TWEAKS panel (overrides starter to match site look) */
.tweaks-mount { z-index: 200; }

/* ---- responsive ---------------------------------------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .metrics, .steps, .steps.steps-4, .features { grid-template-columns: 1fr; }
  .metric { border-left: 0; border-top: 1px solid var(--line-soft); }
  .metric:first-child { border-top: 0; }
  .features { grid-template-columns: 1fr; }
  .fe-widget { grid-template-columns: 1fr; min-height: 0; }
  .fe-tree { border-right: 0; border-bottom: 1px solid var(--line); display: flex; gap: 4px; padding: 8px 10px; overflow-x: auto; }
  .fe-tree-group { display: flex; gap: 4px; padding: 0; }
  .fe-tree-head { padding: 4px 8px; }
  .fe-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .cta { grid-template-columns: 1fr; padding: 36px 28px; }
  .cta-form { min-width: 0; }
  .footer-row { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  section { padding: 64px 0; }
}

/* ---- EVIDENCE / AUDIT CHAIN ---------------------------- */
.evidence-chain {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 40px;
}
.ec-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.ec-stamp {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.ec-step h4 { font-size: 18px; margin: 0 0 10px; line-height: 1.35; }
.ec-step p {
  font-size: 14px; color: var(--ink-2); line-height: 1.55;
  margin: 0 0 18px; flex: 1;
}
.ec-hash {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 8px 10px;
  word-break: break-all;
}
.ec-arrow {
  align-self: center;
  font-family: var(--mono); font-size: 22px;
  color: var(--brand);
  font-weight: 300;
}
.evidence-foot {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: start;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}
.evidence-foot h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin: 0 0 14px;
}
.evidence-foot p {
  font-size: 15px; color: var(--ink-2); line-height: 1.6; margin: 0;
}
.evidence-foot p em {
  color: var(--brand); font-style: normal; font-weight: 600;
}
.evidence-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.evidence-list li {
  font-size: 13.5px; color: var(--ink-2);
  padding-left: 18px; position: relative;
  line-height: 1.5;
}
.evidence-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
}
.evidence-list li b { color: var(--ink); font-weight: 600; }

@media (max-width: 980px) {
  .evidence-chain { grid-template-columns: 1fr; }
  .ec-arrow { transform: rotate(90deg); padding: 4px 0; }
  .evidence-foot { grid-template-columns: 1fr; gap: 24px; }
}
