:root {
  --bg: #131312;
  --surface: #1a1a19;
  --surface-2: #1f1f1e;
  --border: #333332;
  --border-soft: #262625;
  --text: #ecebe8;
  --text-2: #bdbcb7;
  --muted: #9a9994;
  --faint: #6b6a66;
  --cyan: #8de4ff;
  --mint: #90ffdc;
  --red: #ef4444;
  --radius: 12px;
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
.cyan { color: var(--cyan); }
.mint { color: var(--mint); }

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

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(19, 19, 18, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; height: 60px; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand-mark { width: 20px; height: 20px; fill: var(--cyan); }
.nav-links { display: flex; gap: 28px; margin-right: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 7px; }
.btn-primary { background: var(--cyan); color: #0c1417; }
.btn-primary:hover { background: #b1ecff; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: #4a4a48; background: var(--surface); }

/* ---------- Type ---------- */

h1 {
  font-size: clamp(36px, 3.3vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-weight: 600;
}
h2 {
  font-size: clamp(30px, 3.1vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.026em;
  font-weight: 600;
  max-width: 17em;
}
h3 { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 30em; }

/* ---------- Hero ---------- */

.hero { padding: 88px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.fineprint { margin-top: 20px; font-size: 14px; color: var(--faint); }
.audience {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Panel (shared) ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 46px;
  padding: 0 10px 0 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.file { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.file svg { width: 15px; height: 15px; color: var(--faint); flex: none; }
.file span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-controls { display: flex; align-items: center; gap: 6px; }
.hint { color: var(--faint); font-size: 12.5px; padding-right: 6px; }

.seg {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
}
.seg button {
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: 5px;
  color: var(--muted);
  transition: background-color .15s, color .15s;
}
.seg button[aria-selected="true"] { background: #2a2a29; color: var(--text); }
.icon-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--muted);
}
.icon-btn:hover { background: #242423; color: var(--text); }
.icon-btn svg { width: 15px; height: 15px; }

.panel-scroll { overflow-x: auto; scrollbar-width: thin; }
.stage {
  position: relative;
  aspect-ratio: 720 / 372;
  min-width: 600px;
}
.layer { position: absolute; inset: 0; transition: opacity .55s ease, filter .55s ease, transform .55s ease; }
.layer-sheet { overflow: hidden; background: var(--surface); }
.stage[data-mode="sheet"] .layer-diagram { opacity: 0; pointer-events: none; }
.stage[data-mode="diagram"] .layer-sheet { opacity: 0; filter: blur(6px); transform: scale(.975); pointer-events: none; }

.grid-bg {
  background-color: #161615;
  background-image: radial-gradient(#2b2b2a 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: 8px 8px;
}

.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.status { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.status span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none; transition: background-color .2s; }
.dot.is-run { background: var(--cyan); animation: pulse 1s ease-in-out infinite; }
.dot.is-done { background: var(--mint); }
.status-right { color: var(--faint); white-space: nowrap; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Spreadsheet ---------- */

.sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  table-layout: auto;
}
.sheet th, .sheet td {
  padding: 0 10px;
  height: 26px;
  text-align: left;
  white-space: nowrap;
  border-right: 1px solid #292928;
  border-bottom: 1px solid #262625;
  transition: background-color .3s, color .3s;
}
.sheet th {
  position: relative;
  height: 32px;
  background: var(--surface-2);
  color: var(--text-2);
  font-weight: 600;
  border-bottom-color: #333332;
}
.sheet td { color: #a3a29d; }
.sheet .rn { width: 30px; padding: 0; text-align: center; color: var(--faint); background: var(--surface-2); font-weight: 400; }
.sheet th .map-tag {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%) translateY(3px);
  opacity: 0;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--cyan);
  background: #152226;
  border: 1px solid rgba(141, 228, 255, .35);
  transition: opacity .3s, transform .3s;
}
.sheet th.is-mapped { background: #182022; color: var(--cyan); }
.sheet th.is-mapped .map-tag { opacity: 1; transform: translateY(-50%); }
.sheet th.is-mapped.has-tag { padding-right: 64px; }
.sheet td.is-sys { color: var(--cyan); background: rgba(141, 228, 255, .06); }
.sheet td.is-engine { color: var(--mint); background: rgba(144, 255, 220, .06); }

/* ---------- Diagram (SVG) ---------- */

.diagram { display: block; width: 100%; height: 100%; font-family: var(--font); overflow: visible; }

.node { transition: opacity .35s ease; opacity: 0; }
.node.is-shown { opacity: 1; }
.node-box { fill: var(--surface); stroke: #3f3f3d; stroke-width: 1; transition: stroke .25s, fill .25s; }
.node-name { fill: var(--text); font-size: 13px; font-weight: 600; letter-spacing: -0.005em; }
.node-sub { fill: #8a8985; font-size: 8.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.node-meta { fill: var(--muted); font-size: 10px; }
.hub .node-box { fill: #151c1e; stroke: rgba(141, 228, 255, .5); }
.hub .node-sub { fill: var(--cyan); }
.hub-rule { stroke: rgba(141, 228, 255, .18); }

.edge-line { fill: none; stroke: #6f6e69; stroke-width: 1.3; stroke-linejoin: round; transition: stroke .25s; }
.edge, .chip { transition: opacity .3s ease; }
.chip { opacity: 0; }
.chip.is-shown { opacity: 1; }
.chip rect { fill: #0f0f0e; stroke: #3a3a38; stroke-width: 1; transition: stroke .25s; }
.chip text { fill: #cfcec9; font-size: 8.5px; font-weight: 600; letter-spacing: .08em; transition: fill .25s; }

.edge.is-lit .edge-line { stroke: var(--mint); stroke-width: 1.5; }
.chip.is-lit rect { stroke: rgba(144, 255, 220, .55); }
.chip.is-lit text { fill: var(--mint); }
.is-dim { opacity: .2 !important; }
.chip.is-shown.is-dim { opacity: .2; }

.tag-g { opacity: 0; transition: opacity .25s; pointer-events: none; }
.tag-g text { font-size: 8px; font-weight: 700; letter-spacing: .1em; fill: #140808; }
.tag-g.tag-impact rect { fill: var(--red); }
.tag-g.tag-select rect { fill: var(--cyan); }
.tag-g.tag-select text { fill: #0c1417; }
.node.is-impact .tag-impact, .node.is-selected .tag-select { opacity: 1; }
.node.is-selected .node-box { stroke: var(--cyan); stroke-width: 1.6; fill: #172125; }
.node.is-impact .node-box { stroke: var(--red); stroke-width: 1.4; fill: #221616; }

.is-interactive .node:not(.hub) { cursor: pointer; }
.is-interactive .node:not(.hub):hover .node-box { stroke: #6a6a67; }
.is-interactive .node.is-selected:hover .node-box { stroke: var(--cyan); }
.is-interactive .node.is-impact:hover .node-box { stroke: var(--red); }
.node:focus { outline: none; }
.node:focus-visible .node-box { stroke: var(--cyan); stroke-dasharray: 3 2; }

/* ---------- Sections ---------- */

.section { padding: 128px 0; border-top: 1px solid var(--border-soft); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head p { color: var(--muted); font-size: 17px; max-width: 32em; }
.section-head-stack { display: block; margin-bottom: 0; }
.section-head-stack p { margin-top: 20px; }

/* ---------- Problem ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 80px;
  align-items: center;
}
.problems { margin-top: 48px; display: grid; gap: 0; }
.problems > div { padding: 22px 0; border-top: 1px solid var(--border-soft); display: grid; grid-template-columns: 13em 1fr; gap: 24px; }
.problems > div:last-child { border-bottom: 1px solid var(--border-soft); }
.problems dt { font-weight: 600; font-size: 17px; }
.problems dd { color: var(--muted); }

.hairball {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #161615;
  overflow: hidden;
}
.hairball svg { display: block; width: 100%; height: auto; }
.hairball figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--faint);
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.hb-line { stroke: #5c5b57; stroke-width: 1; fill: none; opacity: .75; }
.hb-node rect { fill: var(--surface); stroke: #3a3a38; }
.hb-node text { fill: #8a8985; font-size: 9px; font-weight: 600; letter-spacing: .04em; }
.hb-chip rect { fill: #0f0f0e; stroke: #353534; }
.hb-chip text { fill: #7d7c78; font-size: 7.5px; font-weight: 600; letter-spacing: .08em; }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.step { position: relative; display: flex; flex-direction: column; padding-top: 48px; }
.step::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 40px;
  right: -20px;
  height: 1px;
  background: var(--border);
}
.step:last-child::before { right: 0; background: linear-gradient(90deg, var(--border), transparent); }
.step-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  background: var(--bg);
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step > p { color: var(--muted); font-size: 15.5px; margin-bottom: 28px; }
.step-card {
  margin-top: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.drop {
  flex: 1;
  display: grid;
  place-items: center;
  border: 1px dashed #414140;
  border-radius: 8px;
  background: #161615;
  min-height: 158px;
}
.file-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}
.file-chip svg { width: 20px; height: 20px; color: var(--cyan); }
.file-chip span { display: flex; flex-direction: column; line-height: 1.35; }
.file-chip strong { font-size: 13.5px; font-weight: 600; }
.file-chip em { font-style: normal; font-size: 12px; color: var(--muted); }

.maplist { display: grid; gap: 8px; font-size: 13px; }
.maplist li { display: grid; grid-template-columns: 1fr 22px 1fr; align-items: center; gap: 8px; }
.maplist span { color: var(--text-2); padding: 5px 9px; border: 1px solid var(--border); border-radius: 6px; background: #161615; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maplist i { height: 1px; background: var(--cyan); position: relative; opacity: .7; }
.maplist i::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 5px solid var(--cyan); border-right: 0; }
.maplist b { color: var(--cyan); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--muted); }

.viewlist { display: grid; gap: 6px; font-size: 13.5px; }
.viewlist li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: #161615;
}
.viewlist li:first-child { border-color: rgba(141, 228, 255, .4); background: #172023; }
.viewlist em { font-style: normal; color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}
.feat-list { display: flex; flex-direction: column; }
.feat {
  text-align: left;
  padding: 18px 20px 18px 22px;
  border-left: 1px solid var(--border);
  position: relative;
  transition: border-color .2s;
}
.feat::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--cyan);
  transform: scaleY(0);
  transition: transform .25s ease;
}
.feat h3 { color: var(--muted); transition: color .2s; }
.feat p { color: var(--faint); font-size: 14.5px; margin-top: 4px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .25s, margin .3s; }
.feat:hover h3 { color: var(--text-2); }
.feat[aria-selected="true"]::before { transform: scaleY(1); }
.feat[aria-selected="true"] h3 { color: var(--text); }
.feat[aria-selected="true"] p { max-height: 80px; opacity: 1; margin-top: 6px; color: var(--muted); }

.feat-caption { display: none; color: var(--muted); font-size: 15px; }
.feat-stage { position: sticky; top: 96px; display: grid; min-height: 440px; }
.feat-view {
  grid-area: 1 / 1;
  padding: 20px 22px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.feat-view.is-active { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
.fv-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-2);
}
.fv-head b { font-weight: 600; color: var(--text); }

.thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.thumbs figure, .compare figure, .pages figure { display: flex; flex-direction: column; gap: 10px; }
.thumbs figcaption, .compare figcaption, .pages figcaption { font-size: 13px; color: var(--text-2); display: flex; justify-content: space-between; }
.thumbs figcaption em { font-style: normal; color: var(--faint); }
.thumb {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: #161615;
  background-image: radial-gradient(#262625 1px, transparent 1px);
  background-size: 10px 10px;
  overflow: hidden;
}
.thumb svg { display: block; width: 100%; height: 100%; }
.t-box { fill: var(--surface); stroke: #454543; stroke-width: .8; }
.t-hub { fill: #151c1e; stroke: rgba(141, 228, 255, .6); stroke-width: .8; }
.t-line { fill: none; stroke: #74736e; stroke-width: .8; }
.t-line-busy { fill: none; stroke: #74736e; stroke-width: .7; opacity: .7; }
.t-text { fill: #8a8985; font-size: 5px; font-weight: 600; letter-spacing: .05em; }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; border: 1px solid var(--border-soft); border-radius: 8px; }
.readout div { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.readout div + div { border-left: 1px solid var(--border-soft); }
.readout span { font-size: 12px; color: var(--faint); }
.readout b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.prompt {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(141, 228, 255, .45);
  border-radius: 8px;
  background: #161b1d;
  font-size: 14.5px;
}
.prompt-done { border-color: var(--border); background: #161615; color: var(--text-2); margin-top: 22px; }
.caret { width: 1.5px; height: 17px; background: var(--cyan); margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.changes { margin-top: 10px; }
.changes li {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}
.chg-id { color: var(--text-2); font-variant-numeric: tabular-nums; font-weight: 500; }
.chg-val { display: inline-flex; gap: 10px; align-items: center; font-size: 12px; letter-spacing: .04em; }
.chg-val s { color: var(--faint); }
.chg-val b { color: var(--mint); font-weight: 600; }

.maptable { width: 100%; border-collapse: collapse; font-size: 13px; }
.maptable th { text-align: left; font-weight: 500; color: var(--faint); font-size: 12px; padding: 0 10px 8px 0; }
.maptable td { padding: 7px 10px 7px 0; border-top: 1px solid var(--border-soft); color: var(--text-2); }
.maptable td:last-child { color: var(--faint); }
.sel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #161615;
  color: var(--cyan);
}
.sel::after { content: ""; width: 5px; height: 5px; border-right: 1.2px solid var(--faint); border-bottom: 1.2px solid var(--faint); transform: rotate(45deg) translateY(-2px); }
.sel-off { color: var(--faint); }
.flags { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: 8px; background: #161615; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.flags-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 2px; }
.flags b { color: var(--text-2); font-weight: 600; }

.impact-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.impact-mini li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--red);
  border-radius: 8px;
  background: #221616;
  font-size: 14px;
  font-weight: 600;
}
.impact-mini li.is-sel { border-color: var(--cyan); background: #172125; }
.impact-mini li.is-dim { border-color: var(--border); background: var(--surface); opacity: .35; }
.tag {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
}
.tag-red { background: var(--red); color: #140808; }
.tag-sel { background: var(--cyan); color: #0c1417; }
.text-link { display: inline-block; margin-top: 22px; font-size: 14px; color: var(--cyan); border-bottom: 1px solid rgba(141, 228, 255, .35); }
.text-link:hover { border-color: var(--cyan); }

.pages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.page {
  aspect-ratio: 1.414 / 1;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #1d1d1c;
  display: flex;
  flex-direction: column;
}
.page .thumb { flex: 1; aspect-ratio: auto; border-radius: 2px; }
.pages figcaption { font-size: 12px; }

/* ---------- Impact spotlight ---------- */

.impact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: stretch;
}
.stage-static { aspect-ratio: 720 / 372; }
.impact-grid > .panel:first-child { display: flex; flex-direction: column; }
.impact-grid > .panel:first-child .panel-scroll { flex: 1; display: flex; }
.impact-grid > .panel:first-child .stage-static { flex: 1; aspect-ratio: auto; min-height: 340px; display: flex; align-items: center; }
.impact-grid > .panel:first-child .diagram { height: auto; aspect-ratio: 720 / 372; }
.impact-panel { display: flex; flex-direction: column; }
.ip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.switch {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #2e2e2d;
  position: relative;
  transition: background-color .2s;
}
.switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8a8985;
  transition: transform .2s, background-color .2s;
}
.switch[aria-checked="true"] { background: #1f3a42; }
.switch[aria-checked="true"] i { transform: translateX(14px); background: var(--cyan); }

.ip-body { padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 18px; font-size: 13.5px; }
.ip-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.ip-name { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.ip-summary { color: var(--muted); margin-top: 2px; }
.ip-list { display: grid; gap: 6px; }
.ip-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 9px 11px;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: #161615;
}
.ip-list strong { font-weight: 600; }
.ip-list small { grid-column: 1 / -1; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.ip-views li { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--border-soft); color: var(--text-2); }
.ip-views li:last-child { border-bottom: 1px solid var(--border-soft); }
.ip-views em { font-style: normal; font-variant-numeric: tabular-nums; }
.ip-views em.has { color: var(--red); }
.ip-views em.none { color: var(--faint); }
.ip-empty { color: var(--muted); }

/* ---------- Trust ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 80px;
  align-items: start;
}
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); counter-reset: t; }
.trust li {
  counter-increment: t;
  padding: 28px 28px 32px 0;
  border-bottom: 1px solid var(--border);
}
.trust li:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--border); }
.trust li::before {
  content: counter(t, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.trust h3 { margin-bottom: 8px; }
.trust p { color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */

.cta-band { padding: 0 0 128px; }
.cta-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 64px 56px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.cta-box .cta-row { margin-top: 0; flex: none; }
.cta-copy p { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 30em; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--border-soft); padding: 32px 0 40px; font-size: 14px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner .brand { font-size: 15px; }
.footer-links { display: flex; gap: 22px; margin-left: auto; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.copy { width: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-copy { max-width: 640px; }
  .problem-grid, .trust-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .impact-grid { grid-template-columns: minmax(0, 1fr); }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
}

@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .section { padding: 88px 0; }
  .hero { padding: 56px 0 56px; }
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 44px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .step::before { display: none; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feat-stage { position: static; min-height: 0; }
  .feat-list { flex-direction: row; overflow-x: auto; gap: 0; scrollbar-width: none; border-bottom: 1px solid var(--border); }
  .feat-list::-webkit-scrollbar { display: none; }
  .feat { border-left: 0; padding: 12px 14px; flex: none; }
  .feat::before { left: 0; right: 0; top: auto; bottom: -1px; width: auto; height: 1px; transform: scaleX(0); }
  .feat[aria-selected="true"]::before { transform: scaleX(1); }
  .feat h3 { font-size: 14.5px; white-space: nowrap; }
  .feat p, .feat[aria-selected="true"] p { display: none; }
  .feat-caption { display: block; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 44px 28px; }
  .problems > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .audience { margin-top: 48px; }
}

@media (max-width: 560px) {
  .trust { grid-template-columns: 1fr; }
  .trust li, .trust li:nth-child(even) { padding: 24px 0 28px; border-left: 0; }
  .pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout { grid-template-columns: 1fr; }
  .readout div + div { border-left: 0; border-top: 1px solid var(--border-soft); }
  .impact-mini { grid-template-columns: 1fr; }
  .changes li { grid-template-columns: 1fr; gap: 4px; }
  .footer-links { margin-left: 0; width: 100%; }
  .cta-row .btn { flex: 1 1 100%; }
  .nav .btn-sm { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
