/* ============================================================
   Athema — "approve" landing variant
   Cool near-white ground · graphite ink · one merge-green accent
   Instrument Sans (display/UI) + Fragment Mono (data voice)
   ============================================================ */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-400-700-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-400-700-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("../fonts/FragmentMono-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f7f4;
  --panel: #ffffff;
  --ink: #161b17;
  --ink-2: #59615b;
  --ink-3: #8d948e;
  --line: #e3e7e1;
  --line-2: #d8ddd6;
  --green: #0d8244;
  --green-deep: #0a6b38;
  --green-wash: rgba(13, 130, 68, 0.07);
  --green-ring: rgba(13, 130, 68, 0.35);
  --amber: #b97a1c;
  --red: #bf4a3f;
  --radius: 14px;
  --sans: "Instrument Sans", -apple-system, "Helvetica Neue", sans-serif;
  --mono: "Fragment Mono", "SF Mono", Menlo, monospace;
  --shadow-panel: 0 1px 2px rgba(22, 27, 23, 0.05), 0 24px 64px -36px rgba(22, 27, 23, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(13, 130, 68, 0.18); }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.mono { font-family: var(--mono); }

/* ---------- shared atoms ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  font-weight: 560;
  font-size: 15px;
  letter-spacing: -0.008em;
  padding: 12px 22px;
  transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2b322c; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

.chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  white-space: nowrap;
}

.rail-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.mark { width: 22px; height: 26px; color: var(--ink); }
.mark-xs { width: 14px; height: 17px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 4.5vw, 56px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227, 231, 225, 0.7);
}
.nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.wordmark { font-weight: 620; font-size: 17px; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a:not(.btn) {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 480;
  transition: color 0.15s ease;
}
.nav-links > a:not(.btn):hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 44fr) 56fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(36px, 6vh, 72px) clamp(20px, 4.5vw, 56px) clamp(44px, 6vh, 80px);
  min-height: calc(94svh - 60px);
  position: relative;
}
/* faint dot grid, radially masked — texture without noise */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(22, 27, 23, 0.075) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 62% 42%, #000 0%, transparent 68%);
  mask-image: radial-gradient(ellipse 75% 70% at 62% 42%, #000 0%, transparent 68%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero-copy h1 {
  font-size: clamp(40px, 4.6vw, 66px);
  font-weight: 600;
  letter-spacing: -0.036em;
  line-height: 1.03;
  margin: 18px 0 22px;
  font-variation-settings: "wdth" 100;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--green);
}
.lede {
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
  letter-spacing: -0.008em;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.cta-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.cta-arrow { display: inline-block; }

/* ---------- simulation window ---------- */

.sim-wrap { min-width: 0; position: relative; }
/* soft green seat under the panel */
.sim-wrap::before {
  content: "";
  position: absolute;
  inset: -6% -4% -10% -4%;
  background: radial-gradient(ellipse 62% 55% at 50% 52%, rgba(13, 130, 68, 0.075), transparent 70%);
  pointer-events: none;
}
.sim { position: relative; }

.sim {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.sim-id { display: flex; align-items: center; gap: 9px; }
.sim-repo {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.chip-demo { border-style: dashed; }
.chip-demo .chip-short { display: none; }

/* signal inbox strip */
.sim-signals {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.sig-track {
  display: flex;
  gap: 8px;
  min-width: 0;
  flex: 1;
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent 99%);
  mask-image: linear-gradient(90deg, #000 82%, transparent 99%);
}
.sig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 11px;
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--panel);
  transition: opacity 0.4s ease, transform 0.4s ease;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sig .src {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg);
  flex-shrink: 0;
}
.sig.active {
  border-color: var(--line-2);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(22, 27, 23, 0.07);
}
.sig.active .src { background: var(--green-wash); color: var(--green); }
.sig.dim { opacity: 0.38; }
.sig.enter { opacity: 0; transform: translateX(-14px); }
.sig.resolved { border-color: rgba(13, 130, 68, 0.22); color: var(--ink-3); }
.sig.resolved .src { background: var(--green-wash); color: var(--green); }
.sig.resolved::before {
  content: "";
  width: 11px; height: 11px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%230d8244' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* main morphing area */
.sim-main {
  position: relative;
  padding: 22px 18px 18px;
  min-height: 328px;
  display: flex;
  flex-direction: column;
}
.phase { flex: 1; display: flex; flex-direction: column; }
.phase[hidden] { display: none; }
.phase-proposal, .phase-pr { justify-content: center; }

/* idle / listening */
.phase-idle { justify-content: center; align-items: center; }
.idle-center { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mark-idle {
  width: 34px; height: 40px;
  color: var(--ink-3);
  animation: breathe 2.6s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.35; } }
.idle-line { font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; }

.ph-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

/* fade/slide utility applied by JS */
.fx-in { animation: fxIn 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes fxIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* proposal */
.prop-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #fff, #fbfcfa);
}
.prop-num { font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.prop-title {
  font-size: 19px;
  font-weight: 590;
  letter-spacing: -0.018em;
  margin: 7px 0 6px;
}
.prop-from { font-size: 13px; color: var(--ink-2); }

/* run */
.run-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.run-id { color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.chip-live { color: var(--green); border-color: rgba(13, 130, 68, 0.25); display: inline-flex; align-items: center; gap: 6px; }
.chip-live .dot {
  width: 5px; height: 5px; border-radius: 99px;
  background: var(--green);
  animation: blink 1.1s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

.stage-rail {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 18px 0 16px;
}
.stage-rail li {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}
.stage-rail li i {
  width: 18px; height: 18px;
  flex-shrink: 0;
  border-radius: 99px;
  border: 1.5px solid var(--line-2);
  background: #fff;
  position: relative;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.stage-rail li i::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 99px;
  background: var(--green);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.stage-rail li span {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.25s ease;
}
.stage-rail li::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  margin: 0 6px;
}
.stage-rail li:last-child { flex: 0 0 auto; }
.stage-rail li:last-child::after { display: none; }

.stage-rail li.on i { border-color: var(--green); }
.stage-rail li.on i::after { opacity: 1; transform: scale(1); animation: pulseCore 1.2s ease-in-out infinite; }
@keyframes pulseCore { 50% { transform: scale(0.62); } }
.stage-rail li.on span { color: var(--ink); }
.stage-rail li.done i { border-color: var(--green); background: var(--green); }
.stage-rail li.done i::after {
  opacity: 1; transform: scale(1);
  animation: none;
  background: transparent;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.5 2.5 5-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}
.stage-rail li.done span { color: var(--ink-2); }
.stage-rail li.done::after { background: color-mix(in srgb, var(--green) 40%, var(--line)); }

.run-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
  justify-content: flex-start;
}
.log-line {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}
.log-line .t {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  flex-shrink: 0;
  width: 34px;
  text-align: right;
}
.log-line.enter { animation: fxIn 0.35s ease both; }
.log-line:last-child { color: var(--ink); }

/* PR card */
.pr-card {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 18px 20px 20px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(22, 27, 23, 0.04), 0 18px 40px -28px rgba(22, 27, 23, 0.25);
}
.pr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.pr-kicker { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.chip-wait { color: var(--amber); border-color: rgba(185, 122, 28, 0.3); }
.chip-merged { color: var(--green); border-color: rgba(13, 130, 68, 0.3); background: var(--green-wash); }
.pr-title {
  font-size: 19.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pr-plain {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 6px;
}
.proof-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 18px;
}
.proof-row li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-family: var(--mono);
  letter-spacing: -0.01em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 9px;
  background: #fdfdfc;
}
.proof-row li.ok::before {
  content: "";
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%230d8244' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.proof-row li.note::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 99px;
  background: var(--amber);
  opacity: 0.8;
  flex-shrink: 0;
  margin: 0 2px;
}

.pr-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn-approve {
  background: var(--green);
  color: #fff;
  font-size: 15.5px;
  font-weight: 580;
  padding: 13px 26px;
  border-radius: 10px;
  position: relative;
  transition: background-color 0.18s ease, transform 0.15s ease, box-shadow 0.3s ease;
}
.btn-approve:hover { background: var(--green-deep); }
.btn-approve:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--green-ring);
}
.btn-approve .approve-check { width: 15px; height: 15px; display: none; }
.btn-approve.merged { background: var(--green-deep); pointer-events: none; }
.btn-approve.merged .approve-check { display: block; }
.btn-approve.nudge { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 130, 68, 0); }
  50% { box-shadow: 0 0 0 7px rgba(13, 130, 68, 0.13); }
}
.pr-wait-note {
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--mono);
}

/* caption */
.sim-caption {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 14px;
  min-height: 19px;
  font-style: italic;
}

/* footer of sim */
.sim-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 11px 18px;
  background: #fbfcfa;
}
.ledger {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  flex: 1;
  align-items: center;
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent 99%);
  mask-image: linear-gradient(90deg, #000 80%, transparent 99%);
}
.ledger-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 99px;
  padding: 4px 10px;
  white-space: nowrap;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.ledger-item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--green);
  flex-shrink: 0;
}
.ledger-item .lt {
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ledger-item.enter { opacity: 0; transform: translateX(-10px); }
.ledger-empty { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }

.gauge { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.gauge-bar {
  width: 92px;
  height: 5px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.gauge-bar i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 99px;
  background: var(--green);
  transform-origin: left;
  transform: scaleX(0.34);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gauge-read { font-size: 10px; color: var(--ink-2); letter-spacing: 0.02em; }

.sim-note {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 14px;
  min-height: 17px;
  transition: opacity 0.3s ease;
}

/* ---------- bento ---------- */

.under {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) clamp(20px, 4.5vw, 56px);
}
.under > .eyebrow { margin-bottom: 22px; }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 250px;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease;
  will-change: transform;
}
.cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(22, 27, 23, 0.04), 0 20px 44px -30px rgba(22, 27, 23, 0.22);
}
.cell h2 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: auto;
}
.cell p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.cell-viz { flex: 0 0 108px; margin-bottom: 12px; position: relative; overflow: hidden; }

/* listen cell: rotating source rows */
.viz-listen { display: flex; flex-direction: column; gap: 6px; }
.src-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 9px;
  transition: opacity 0.45s ease, transform 0.45s ease;
  background: #fdfdfc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.src-row .src-tag {
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg);
  border-radius: 4px;
  padding: 2px 5px;
  flex-shrink: 0;
}
.src-row.fresh .src-tag { background: var(--green-wash); color: var(--green); }
.src-row.enter { opacity: 0; transform: translateY(-8px); }
.src-row.exit { opacity: 0; transform: translateY(8px); }

/* run cell: mini rail */
.viz-run { display: flex; align-items: center; }
.mini-rail {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.mini-rail li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-family: var(--mono);
  color: var(--ink-3);
}
.mini-rail li .st {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0.75;
}
.mini-rail li.on .st { color: var(--green); opacity: 1; }
.mini-rail li.done .st { color: var(--ink-3); }
.mini-rail li i {
  width: 12px; height: 12px;
  border-radius: 99px;
  border: 1.5px solid var(--line-2);
  background: #fff;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  flex-shrink: 0;
}
.mini-rail li.on i { border-color: var(--green); background: var(--green-wash); }
.mini-rail li.done i { border-color: var(--green); background: var(--green); }
.mini-rail li.on { color: var(--ink); }
.mini-rail li.done { color: var(--ink-2); }

/* gate cell */
.viz-gate {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.gate-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fdfdfc;
}
.gate-line svg { width: 13px; height: 13px; color: var(--green); flex-shrink: 0; margin-top: 1px; }
.gate-line .debt-dot {
  width: 7px; height: 7px;
  border-radius: 99px;
  background: var(--amber);
  opacity: 0.8;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ladder cell */
.viz-ladder { display: flex; align-items: flex-end; }
.rungs {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  width: 100%;
  height: 100%;
}
.rung {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: var(--line);
  position: relative;
  transition: background-color 0.5s ease;
}
.rung::after {
  content: attr(data-l);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--ink-3);
}
.rungs .rung:nth-child(1) { height: 22%; }
.rungs .rung:nth-child(2) { height: 36%; }
.rungs .rung:nth-child(3) { height: 50%; }
.rungs .rung:nth-child(4) { height: 64%; }
.rungs .rung:nth-child(5) { height: 78%; }
.rungs .rung:nth-child(6) { height: 92%; }
.viz-ladder { padding-bottom: 18px; }
.rung.lit { background: var(--green); }
.rung.next { background: color-mix(in srgb, var(--green) 30%, var(--line)); }

/* ---------- close ---------- */

.close {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 128px) clamp(20px, 4.5vw, 56px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.close-line {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.034em;
  line-height: 1.05;
}
.close-sub {
  font-size: 16.5px;
  color: var(--ink-2);
  max-width: 56ch;
}
.close .btn { margin-top: 10px; }

.pricing {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--ink-2);
  flex-wrap: wrap;
  justify-content: center;
}
.pricing b { color: var(--ink); font-weight: 600; }
.pricing i { width: 1px; height: 14px; background: var(--line-2); }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(20px, 4.5vw, 56px) 28px;
  flex-wrap: wrap;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-2);
}
.foot-note { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* ---------- responsive ---------- */

@media (max-width: 1023px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 40px;
    padding-top: 40px;
  }
  .hero-copy { max-width: 60ch; }
  .cta-note { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .nav-links > a:not(.btn) { display: none; }
  .bento { grid-template-columns: 1fr; }
  .cell { min-height: 0; }
  .sim-main { min-height: 356px; padding: 18px 14px 14px; }
  .sim-head, .sim-signals { padding-left: 14px; padding-right: 14px; }
  .sim-foot { padding: 10px 14px; }
  .gauge-read { display: none; }
  .sim-repo { white-space: nowrap; }
  .chip-demo .chip-long { display: none; }
  .chip-demo .chip-short { display: inline; }
  .stage-rail li span { font-size: 10.5px; }
  .stage-rail li::after { margin: 0 3px; }
  .pr-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-approve { width: 100%; padding: 15px 20px; }
  .pr-wait-note { text-align: center; }
  .log-line { font-size: 12.5px; }
  .sim-repo { font-size: 11px; }
}

/* ---------- reduced motion ---------- */

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