/*
 * Esuba marketing site.
 * Quiet, architectural layout: near-white surfaces, hairline grids, a
 * neutral grotesk at regular weight with tight tracking, mono micro-labels
 * and a single copper accent. Red is reserved for things that are still live.
 */

/* ── Fonts ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/geist-latin-wght-normal.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/geist-mono-latin-wght-normal.woff2) format("woff2-variations");
}

/* ── Tokens ──────────────────────────────────────────────────────────── */

:root {
  --bg: #FCFCFB;
  --tint: #F3F2F0;
  --tint-2: #F7F6F4;
  --taupe: #BEB4AA;
  --line: #E4E1DD;
  --line-2: #D5D0CA;
  --ink: #070707;
  --ink-2: #2E2E2E;
  --mute: #736F6A;
  --dim: #A39E97;
  --accent: #B06A38;
  --accent-soft: rgb(176 106 56 / .12);
  --live: #D4432A;

  --f-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 4vw, 40px);
  --max: 1280px;
  --section-y: clamp(80px, 10vw, 140px);
  --ease: cubic-bezier(.2, .7, .1, 1);

  color-scheme: light;
}

/* ── Base ────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
strong, b { font-weight: 550; }

::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1rem;
  font-family: var(--f-mono);
  font-size: 12px;
}
.skip:focus { top: 1rem; }

/* ── Type ────────────────────────────────────────────────────────────── */

.h1 {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(34px, 3.9vw, 56px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.dim { color: var(--dim); }

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 40px;
  padding: 0 12px 0 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 450;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn__ico {
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  border: 1px solid currentColor;
  opacity: .8;
}
.btn__ico svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .25s var(--ease); }
.btn:hover .btn__ico svg { transform: translateX(1.5px); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--tint); border-color: var(--tint); }
.btn--tall { height: 48px; padding-left: 18px; }
.btn:disabled { opacity: .5; cursor: default; }

/* ── Nav ─────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(252 252 251 / .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__row { display: flex; align-items: center; gap: 2.5rem; height: 72px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -.035em;
}
.logo svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.3; }
.logo .logo__dot { fill: var(--accent); stroke: var(--bg); stroke-width: 1.6; }
.logo--light { color: #fff; }
.logo--light svg { stroke: #fff; }
.logo--light .logo__dot { stroke: var(--ink); }

.nav__links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nav__links a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--accent); }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: clamp(72px, 9vw, 136px) clamp(56px, 6vw, 88px);
  overflow: hidden;
}

/* The architectural grid behind the hero, fading out towards the fold. */
.hero__lines {
  --cell: 112px;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / var(--cell) var(--cell),
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / var(--cell) var(--cell);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 25%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0, #000 25%, transparent 85%);
}

.hero__inner { position: relative; }
.hero__title { font-size: clamp(46px, 6.4vw, 92px); }

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: end;
  gap: 2rem clamp(40px, 6vw, 96px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--line-2);
}

.checks-list { display: grid; gap: 10px; }
.checks-list li {
  position: relative;
  padding-left: 30px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
}
.checks-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border: 1px solid var(--line-2);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5 9.3 2.6 2.5L13 6.3' fill='none' stroke='%23B06A38' stroke-width='1.5'/%3E%3C/svg%3E") center / 18px no-repeat,
    #fff;
}

/* The note sits under the form without pushing it off the bullets' baseline. */
.hero__action { position: relative; }
.quick { display: flex; }
.quick input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-right: 0;
  border-radius: 0;
  background: #fff;
  font-size: 15px;
  transition: border-color .2s;
}
.quick input::placeholder { color: var(--dim); }
.quick input:focus { outline: none; border-color: var(--ink); }
.quick.has-error input { border-color: var(--live); }
.quick.is-done input { color: var(--mute); }
.quick__note {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}
.quick__note.is-ok { color: var(--ink); }
.quick__note.is-err { color: var(--live); }
.quick__note a { color: var(--accent); }

/* Below this the bullets would wrap beside the form, so stack them. */
@media (max-width: 1120px) {
  .hero__foot { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero__action { max-width: 540px; }
  .quick__note { position: static; }
}
@media (max-width: 520px) {
  .quick { flex-direction: column; }
  .quick input { flex: none; border-right: 1px solid var(--line-2); border-bottom: 0; }
  .quick .btn { width: 100%; justify-content: space-between; }
  .checks-list li { font-size: 16px; }
}

/* ── Coverage ────────────────────────────────────────────────────────── */

.coverage { padding: 24px 0 0; }
.coverage__title { margin-bottom: 20px; }
.cells {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cells li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--ink-2);
  text-align: center;
  transition: background-color .25s;
}
.cells li:hover { background: var(--tint); }

@media (max-width: 720px) {
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cells li { min-height: 92px; }
}

/* ── Sections ────────────────────────────────────────────────────────── */

.section { padding-block: var(--section-y); }
.section--tint { background: var(--tint); }
.section--flush-top { padding-top: 0; }

.head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }

/* Mock-up chrome shared by the cards */
.viz__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}
.viz__bar .red { color: var(--live); }

.rd {
  background: var(--ink);
  color: transparent;
  border-radius: 1.5px;
  padding: 0 .1em;
  user-select: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ── The real cost ───────────────────────────────────────────────────── */

.cards3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.card { display: flex; flex-direction: column; }
.card__viz {
  aspect-ratio: 5 / 4;
  margin-bottom: 22px;
  padding: 18px 18px 0;
  background: var(--tint);
  border: 1px solid var(--line);
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 11px;
}
.card .h3 { margin-bottom: 10px; }
.card > p:last-child { color: var(--mute); font-size: 15px; }

.viz-ledger li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-2);
  color: var(--ink-2);
}
.viz-ledger li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz-ledger li b { font-weight: 500; color: var(--accent); }
.viz-ledger li.faded { opacity: .35; }
.js .viz-ledger ul { animation: feed 7s steps(1) infinite; }
@keyframes feed {
  0%, 100% { transform: none; }
  33% { transform: translateY(-1px); }
}

.viz-chart svg { width: 100%; height: 62%; margin-top: 10px; overflow: visible; }
.viz-chart .grid { stroke: var(--line); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.viz-chart .area { fill: rgb(176 106 56 / .1); }
.viz-chart .up { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.viz-chart .flat { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.js .viz-chart .up { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.8s var(--ease) .2s; }
.js .card.is-in .viz-chart .up { stroke-dashoffset: 0; }
.viz__legend { display: flex; gap: 18px; margin-top: 12px; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.viz__legend i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; vertical-align: -1px; }
.viz__legend .k1 { background: var(--accent); }
.viz__legend .k2 { border: 1.5px dashed var(--ink); }

.panel__big { display: flex; align-items: baseline; gap: 12px; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.panel__big b { font-family: var(--f-sans); font-size: 52px; font-weight: 300; letter-spacing: -.06em; line-height: 1; }
.panel__big span { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.viz-panel li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line-2); color: var(--ink-2); }
.viz-panel li b { font-weight: 500; }

@media (max-width: 900px) {
  .cards3 { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}

/* ── How it works ────────────────────────────────────────────────────── */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.step {
  counter-increment: step;
  display: grid;
  grid-row: span 2;
  grid-template-rows: auto 1fr;
  grid-template-rows: subgrid;
  row-gap: 0;
  background: #fff;
  border: 1px solid var(--line);
}
.step__viz {
  display: grid;
  align-content: center;
  min-height: 300px;
  padding: 28px;
  background: var(--tint-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
}
.step__text { padding: 26px 28px 30px; }
.step__text::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent);
}
.step__text .h3 { margin-bottom: 10px; }
.step__text p:last-child { color: var(--mute); font-size: 15px; max-width: 34rem; }

.viz-feed ul, .viz-files ul { background: #fff; border: 1px solid var(--line); padding: 4px 14px; }
.viz-feed .viz__bar, .viz-files .viz__bar { border: 0; margin: 0 0 8px; padding: 0; }
.viz-feed li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 2px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.viz-feed li:last-child { border-bottom: 0; }
.viz-feed em {
  grid-row: span 2;
  align-self: start;
  justify-self: start;
  padding: 3px 6px;
  border: 1px solid var(--line-2);
  font-style: normal;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.viz-feed span { font-family: var(--f-sans); font-size: 13.5px; letter-spacing: -.015em; color: var(--ink-2); }
.viz-feed span b { font-weight: 500; color: var(--ink); }
.viz-feed i { font-style: normal; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.viz-feed li:first-child em { border-color: var(--accent); color: var(--accent); }

.viz-files li { display: flex; justify-content: space-between; gap: 1rem; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.viz-files li:last-child { border-bottom: 0; }
.viz-files code { font: inherit; color: var(--dim); }
.viz-files li.ok code { color: #3E7B55; }

.viz-sent { font-family: var(--f-sans); }
.draft {
  background: #fff;
  border: 1px solid var(--line-2);
  padding: 16px 16px 14px;
  box-shadow: 0 20px 40px -24px rgb(60 45 30 / .25);
}
.draft__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}
.draft__state { padding: 4px 7px; background: var(--ink); color: #fff; white-space: nowrap; }
.draft__meta { padding: 8px 0; border-bottom: 1px solid var(--line); }
.draft__meta > div { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 3px 0; font-size: 13px; }
.draft__meta dt { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-top: 2px; }
.draft__body { padding: 10px 0 12px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.draft .track { margin-top: 0; border-top: 1px solid var(--line); font-family: var(--f-mono); }
.draft .track li:last-child { border-bottom: 0; padding-bottom: 0; }

.browser { background: #fff; border: 1px solid var(--line-2); }
.browser__bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.browser__bar span { margin-left: 10px; padding: 2px 8px; background: var(--tint); font-size: 10px; color: var(--mute); }
.browser__body { padding: 26px 16px 24px; text-align: center; }
.gone__code { font-family: var(--f-sans); font-size: 56px; font-weight: 200; letter-spacing: -.07em; line-height: 1; color: var(--line-2); }
.gone__t { margin-top: 8px; font-family: var(--f-sans); font-size: 14px; letter-spacing: -.02em; color: var(--ink-2); }
.track { margin-top: 12px; }
.track li { display: flex; justify-content: space-between; gap: 1rem; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.track b { font-weight: 400; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.track .g { color: var(--mute); }
.track .l { color: var(--live); }

@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step__viz { min-height: 0; padding: 20px; }
}

/* ── Numbers band ────────────────────────────────────────────────────── */

.numbers { background: var(--ink); color: #F2F2F2; padding-block: clamp(72px, 8vw, 112px); }
.numbers .dim { color: #8E8A84; }
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px);
}
.numbers__grid > div { display: flex; flex-direction: column; padding: 0 24px; border-left: 1px solid rgb(255 255 255 / .12); }
.numbers__grid > div:first-child { padding-left: 0; border-left: 0; }
.numbers__grid dt {
  min-height: 3em;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8E8A84;
}
.numbers__grid dd {
  margin-top: auto;
  padding-top: 28px;
  font-size: clamp(56px, 6.4vw, 96px);
  font-weight: 300;
  line-height: .9;
  letter-spacing: -.065em;
}

@media (max-width: 860px) {
  .numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .numbers__grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ── Case 001 ────────────────────────────────────────────────────────── */

.case__body { padding-top: clamp(40px, 5vw, 64px); }
.dossier { background: #fff; border: 1px solid var(--line); }
.dossier__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
}
.dossier__head dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem 2rem; width: 100%; }
.dossier__head dt { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.dossier__head dd { margin-top: 6px; font-size: 15px; font-weight: 500; letter-spacing: -.02em; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 8px;
  border: 1px solid rgb(212 67 42 / .35);
  color: var(--live);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.dossier__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dossier__col { display: flex; flex-direction: column; padding: 32px; }
.dossier__col .table-scroll { flex: 1; }
.dossier__col + .dossier__col { border-left: 1px solid var(--line); }
.dossier__col > .label { margin-bottom: 16px; }
.dossier__col > .label:not(:first-child) { margin-top: 36px; }

.findings { counter-reset: f; display: grid; gap: 14px; }
.findings li { counter-increment: f; display: grid; grid-template-columns: 32px 1fr; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.findings li::before { content: counter(f, decimal-leading-zero); font-family: var(--f-mono); font-size: 11px; padding-top: 3px; color: var(--accent); }

.arrows { display: grid; gap: 8px; }
.arrows li { display: grid; grid-template-columns: 24px 1fr; font-size: 15px; color: var(--ink-2); }
.arrows li::before { content: "→"; color: var(--dim); }

.table-scroll { overflow-x: auto; }
/* Rows share any spare height so the table ends level with the column beside it. */
.ledger { width: 100%; height: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); font-size: 14.5px; }
.ledger td:last-child { text-align: right; }
.ledger td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ledger td:first-child { padding-right: 12px; }
.ledger tr.is-gone td:first-child { color: var(--dim); text-decoration: line-through; text-decoration-color: rgb(7 7 7 / .35); }

.st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 3px 7px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.st--gone { background: var(--tint); color: var(--mute); }
.st--live { color: var(--live); border: 1px solid rgb(212 67 42 / .3); }
.st--live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

@media (max-width: 900px) {
  .dossier__body { grid-template-columns: minmax(0, 1fr); }
  .dossier__col + .dossier__col { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .dossier__head dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .dossier__head, .dossier__col { padding: 22px 18px; }
  .ledger tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ledger td { display: block; padding: 2px 0; border: 0; text-align: left !important; }
}

/* ── Comparison ──────────────────────────────────────────────────────── */

.compare { width: 100%; min-width: 820px; border-collapse: collapse; table-layout: fixed; }
.compare tr > :first-child { width: 28%; }
.compare th, .compare td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare thead th { vertical-align: bottom; border-bottom: 1px solid var(--ink); padding-top: 22px; font-size: 17px; font-weight: 500; letter-spacing: -.025em; }
.compare tbody th { padding-left: 0; font-size: 15px; font-weight: 500; letter-spacing: -.02em; }
.compare td { font-size: 14px; color: var(--mute); }
.compare td i { display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px; border-radius: 50%; }
.compare i.y { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.2 4.7-4.8' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
.compare i.n { border: 1px solid var(--line-2); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 8h5' stroke='%23A39E97' stroke-width='1.3'/%3E%3C/svg%3E") center / 14px no-repeat; }
.compare i.m { border: 1px solid var(--line-2); background: radial-gradient(circle, var(--dim) 2.5px, transparent 3px); }
.compare thead .is-us { background: var(--ink); color: #fff; }

.compare td.is-us { background: var(--tint); color: var(--ink); font-weight: 500; }

/* ── Principles ──────────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}
.features li {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  transition: background-color .25s;
}
.features li:hover { background: #fff; }
.features svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.features li:hover svg { stroke: var(--accent); }
.features h3 { margin: 36px 0 8px; font-size: 18px; font-weight: 500; letter-spacing: -.025em; }
.features p { color: var(--mute); font-size: 15px; }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .features h3 { margin-top: 20px; }
}

/* ── Pricing ─────────────────────────────────────────────────────────── */

.offer {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1px solid var(--line);
  background: #fff;
}
.offer__price {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
  background: var(--ink);
  color: #fff;
}
.offer__amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: clamp(68px, 8.4vw, 112px);
  font-weight: 300;
  line-height: .9;
  letter-spacing: -.065em;
}
.offer__amount small {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #A9A49D;
}
.offer__price .btn { margin-top: auto; justify-content: space-between; }

.offer__list { padding: 14px 32px; }
.offer__list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100%;
}
.offer__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  padding: 18px 18px 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -.01em;
}
.offer__list li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.offer__list li:nth-last-child(-n+2) { border-bottom: 0; }
.offer__list li::before { content: "+"; font-family: var(--f-mono); color: var(--accent); }

@media (max-width: 900px) {
  .offer { grid-template-columns: minmax(0, 1fr); }
  .offer__price { gap: 40px; }
}
@media (max-width: 560px) {
  .offer__price, .offer__list { padding: 24px 20px; }
  .offer__list ul { grid-template-columns: minmax(0, 1fr); }
  .offer__list li, .offer__list li:nth-child(even) { padding: 15px 0; border-left: 0; }
  .offer__list li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* ── Path ────────────────────────────────────────────────────────────── */

.path {
  counter-reset: path;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.path li { counter-increment: path; position: relative; padding-top: 24px; border-top: 1px solid var(--ink); }
.path li::before {
  content: "";
  position: absolute;
  left: 0; top: -4px;
  width: 7px; height: 7px;
  background: var(--accent);
}
.path h3::before {
  content: counter(path, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--accent);
}
.path h3 { margin-bottom: 8px; font-size: 19px; font-weight: 500; letter-spacing: -.025em; }
.path p:last-child { color: var(--mute); font-size: 15px; }

@media (max-width: 900px) {
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 520px) {
  .path { grid-template-columns: minmax(0, 1fr); }
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
}
.faq > :first-child { position: sticky; top: 112px; }
.faq__list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  font-weight: 450;
  letter-spacing: -.025em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 9px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1px 9px no-repeat;
  transition: transform .25s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { max-width: 40rem; padding: 0 3rem 24px 0; color: var(--mute); font-size: 16px; }

@media (max-width: 860px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq > :first-child { position: static; }
}

/* ── Intake ──────────────────────────────────────────────────────────── */

.intake-section { background: var(--taupe); padding-block: var(--section-y); }
.intake-section .dim { color: rgb(7 7 7 / .42); }

.open {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.intake {
  background: var(--bg);
  border: 1px solid rgb(7 7 7 / .1);
  box-shadow: 0 50px 100px -50px rgb(40 28 18 / .45);
}
.intake__fields { display: grid; gap: 22px; padding: 32px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: #fff;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.has-error input { border-color: var(--live); }
.field__err { font-family: var(--f-mono); font-size: 10.5px; color: var(--live); }
.field__err:empty { display: none; }

.intake__foot { padding-top: 6px; }
.intake__foot .btn { width: 100%; justify-content: space-between; }
.form-error { padding: 12px 14px; border: 1px solid var(--live); color: var(--live); font-size: 14px; }

.intake__done { display: grid; gap: 14px; padding: 48px 32px; outline: none; }
.intake__done-t { font-size: 44px; font-weight: 300; letter-spacing: -.055em; line-height: 1; }
.intake__done-t span { color: var(--accent); white-space: nowrap; }
.intake__done p:last-child { max-width: 32rem; color: var(--mute); }

@media (max-width: 960px) {
  .open { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .intake__fields { padding: 22px 18px; }
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.foot { background: var(--ink); color: #F2F2F2; padding-top: clamp(64px, 8vw, 96px); overflow: hidden; }
.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  padding-bottom: 56px;
}
.foot__brand { display: grid; gap: 18px; justify-items: start; align-content: start; }
.foot__col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.foot__cols { display: grid; grid-template-columns: repeat(5, auto); gap: 32px clamp(28px, 4vw, 56px); }
.foot__col a { color: #C9C4BD; text-decoration: none; width: fit-content; }
.foot__col .foot__hub { color: #fff; }
.foot__col a:hover { color: #fff; }
.foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid rgb(255 255 255 / .1);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8E8A84;
}
.foot__word {
  font-size: clamp(120px, 27vw, 400px);
  font-weight: 300;
  line-height: .78;
  letter-spacing: -.075em;
  color: #161616;
  margin-bottom: -.1em;
  user-select: none;
}

@media (max-width: 1080px) {
  .foot__top { grid-template-columns: minmax(0, 1fr); }
  .foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Content pages (rendered from src/pages/ by src/render.js) ──────── */

.page-hero {
  position: relative;
  padding-block: clamp(64px, 8vw, 120px) clamp(40px, 5vw, 72px);
  overflow: hidden;
}
.page-hero__inner { position: relative; }
.page-hero__title { max-width: 16em; font-size: clamp(40px, 5.6vw, 80px); }
.page-hero__lede {
  max-width: 44rem;
  margin-top: clamp(24px, 3vw, 36px);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
  letter-spacing: -.015em;
  color: var(--ink-2);
}

.doc { padding-bottom: clamp(48px, 6vw, 96px); }
.doc__sec {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 1.25rem clamp(2rem, 6vw, 6rem);
  padding-block: clamp(36px, 4.5vw, 56px);
  border-top: 1px solid var(--line);
}
.doc__h {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.doc__body { display: grid; gap: 18px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.doc__body a, .doc .faq a {
  color: var(--ink);
  text-decoration: underline 1px var(--accent);
  text-underline-offset: 3px;
}
.doc__body a:hover, .doc .faq a:hover { color: var(--accent); }
.doc__body b { font-weight: 500; color: var(--ink); }

.doc__list { display: grid; gap: 10px; }
.doc__list li { display: grid; grid-template-columns: 22px 1fr; }
.doc__list li::before { content: "+"; font-family: var(--f-mono); color: var(--accent); }

.doc__steps { counter-reset: doc-step; border-top: 1px solid var(--ink); }
.doc__steps li {
  counter-increment: doc-step;
  display: grid;
  grid-template-columns: 44px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.doc__steps li::before {
  content: counter(doc-step, decimal-leading-zero);
  grid-row: span 2;
  padding-top: 5px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent);
}
.doc__steps h3 { font-size: 18px; font-weight: 500; line-height: 1.35; letter-spacing: -.02em; color: var(--ink); }
.doc__steps p { margin-top: 4px; font-size: 16px; color: var(--mute); }

.doc__table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); font-size: 15px; line-height: 1.45; }
.doc__table th, .doc__table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc__table thead th {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}
.doc__table tbody th { min-width: 7em; font-weight: 500; color: var(--ink); }

.doc__links { border-top: 1px solid var(--ink); }
.doc__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
.doc__links a:hover { color: var(--accent); }

.hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.hub li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hub__item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  height: 100%;
  padding: clamp(22px, 2.5vw, 32px);
  background: #fff;
  text-decoration: none;
  transition: background-color .2s;
}
.hub__item:hover { background: var(--tint); }
.hub__item h2 { font-size: clamp(22px, 2vw, 26px); font-weight: 450; line-height: 1.2; letter-spacing: -.035em; }
.hub__item p { max-width: 34rem; font-size: 15.5px; line-height: 1.5; color: var(--mute); }
.hub__item .btn__ico { margin-top: 8px; }
.hub__item:hover .btn__ico { color: var(--accent); }

@media (max-width: 860px) {
  .doc__sec { grid-template-columns: minmax(0, 1fr); }
  .hub { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .doc__steps li { grid-template-columns: 34px 1fr; }
}

/* ── Standalone notices (404, no-JS thanks) ──────────────────────────── */

.notice { min-height: 100vh; display: grid; align-items: center; padding-block: 64px; }
.notice__inner { display: grid; gap: 24px; justify-items: start; max-width: 760px; }
.notice__inner > p { max-width: 32rem; font-size: 17px; color: var(--mute); }

/* ── Scroll reveal ───────────────────────────────────────────────────── */

.js [data-reveal] {
  opacity: 0;
  translate: 0 16px;
  transition: opacity .9s var(--ease), translate .9s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; }
}
