/* Telekaller homepage. World: the phone's answer screen, set like an operator's rate card.
   One family for text (Inter, Display cut above 24px), JetBrains Mono for figures, code and clause numbers.
   Ink on white. One green, fills only. No gradients, no shadows, no glow. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "JetBrains Mono Fallback"; src: local("Menlo"), local("Courier New"); size-adjust: 100%; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --ink: #0B1220;
  --ink-2: #2A3242;          /* secondary text on white, 10.6:1 */
  --ink-3: #5B6474;          /* metadata on white, 5.9:1 */
  --canvas: #FFFFFF;
  --paper: #FAF7F2;
  --off-white: #F5F1EA;
  --line: #D9DCE3;
  --line-strong: #0B1220;
  --green-signal: #16A34A;   /* the chevron and "connected". Never text on light. */
  --green-surface: #15803D;  /* fills only. Off-white on it is 4.5:1 */
  --green-surface-hover: #166534;
  --on-green: #FFFFFF;
  --code-bg: #060A13;

  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, "SF Mono", Menlo, monospace;

  /* the ladder actually used: 13 / 15 / 17 / 22 / 34 / display */
  --t-label: 0.8125rem;
  --t-small: 0.9375rem;
  --t-body: 1.0625rem;
  --t-lead: 1.375rem;
  --t-h2: clamp(2rem, 1.3rem + 2.2vw, 2.875rem);
  --t-h1: clamp(2.5rem, 1.2rem + 4.6vw, 4.25rem);

  --r-input: 4px;
  --r-button: 6px;
  --r-panel: 10px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --section: clamp(6rem, 4rem + 6vw, 10rem);
  --row: 1180px;
  --measure: 58ch;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 120ms;
  --base: 200ms;
}

@media (max-width: 640px) { :root { --t-lead: 1.25rem; } }



/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--ink);
  accent-color: var(--green-surface);
}
::selection { background: var(--ink); color: var(--canvas); }

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, dt, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
strong { font-weight: 600; }
small { font-size: var(--t-label); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 3px; border-radius: 2px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s-4); top: -60px; padding: var(--s-2) var(--s-3); background: var(--ink); color: var(--canvas); z-index: 20; border-radius: var(--r-button); }
.skip:focus { top: var(--s-3); }

.row { width: min(var(--row), 100% - 2 * var(--s-5)); margin-inline: auto; }
@media (min-width: 700px) { .row { width: min(var(--row), 100% - 2 * var(--s-7)); } }

/* ---------- Type ---------- */
h1 {
  font-size: var(--t-h1);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 20ch;
}
h2 {
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
  max-width: 28ch;
}
h3 {
  font-size: var(--t-lead);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-top: var(--s-9);
}
p { max-width: var(--measure); text-wrap: pretty; }
p + p { margin-top: var(--s-5); }
h2 + p { margin-top: var(--s-6); }
h3 + * { margin-top: var(--s-4); }

.lede { font-size: var(--t-lead); line-height: 1.4; color: var(--ink-2); max-width: 58ch; }
.kicker { font-family: var(--mono); font-size: var(--t-label); color: var(--ink-3); }
.fine { font-size: var(--t-small); color: var(--ink-3); }
.small { font-size: var(--t-small); color: var(--ink-3); }
.source { font-size: var(--t-small); color: var(--ink-3); margin-top: var(--s-3); }
.closing { margin-top: var(--s-8); font-size: var(--t-lead); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
.pull {
  margin-top: var(--s-7);
  padding-left: var(--s-5);
  border-left: 1px solid var(--line-strong);
  font-size: var(--t-lead);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.text-link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--s-5);
  background: var(--green-surface); color: var(--on-green);
  border: 0; border-radius: var(--r-button);
  font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color var(--fast) ease, transform var(--fast) ease;
}
.button:hover { background: var(--green-surface-hover); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: 0.6; cursor: progress; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--canvas); border-bottom: 1px solid var(--line); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: var(--s-5); }
.logo { display: inline-flex; align-items: center; min-height: 44px; }

.menu { display: flex; align-items: center; gap: var(--s-6); }
.menu a { text-decoration: none; font-size: var(--t-small); font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.menu a:not(.button):hover { text-decoration: underline; }
.menu .button { min-height: 44px; padding-inline: var(--s-4); }
.menu-button { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--r-button); min-height: 44px; padding: 0 var(--s-4); font-size: var(--t-small); font-weight: 500; }
@media (max-width: 899px) {
  .menu-button { display: inline-flex; align-items: center; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--canvas); border-bottom: 1px solid var(--line); padding: var(--s-3) var(--s-5) var(--s-5); }
  .menu.open { display: flex; }
  .menu a { padding: var(--s-3) 0; min-height: 44px; display: flex; align-items: center; }
  .menu .button { margin-top: var(--s-3); justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 1.5rem + 5vw, 6rem); overflow: hidden; }
.hero .kicker { margin-bottom: var(--s-5); }
.hero h1 { margin-bottom: var(--s-5); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); margin-top: var(--s-6); }
.actions .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.hero .fine { margin-top: var(--s-4); }

/* ---------- Proof strip ---------- */
.proof { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.proof-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); padding: var(--s-5) 0; font-size: var(--t-small); font-weight: 500; }
@media (max-width: 760px) { .proof-list { grid-template-columns: 1fr; gap: var(--s-3); } }

/* ---------- Clauses (numbered sections) ---------- */
.clause { padding-block: var(--section); border-top: 1px solid var(--line); }
.clause-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
.clause-num { font-family: var(--mono); font-size: var(--t-label); color: var(--ink-3); display: flex; gap: var(--s-3); align-items: baseline; }
.clause-num span { color: var(--ink); font-weight: 500; }
.clause-inline { font-family: var(--mono); font-size: var(--t-label); color: var(--ink-3); display: flex; gap: var(--s-3); justify-content: center; }
.clause-inline span { color: var(--ink); font-weight: 500; }
@media (min-width: 900px) {
  .clause-grid { grid-template-columns: 180px minmax(0, 1fr); gap: var(--s-8); }
  .clause-num { display: block; position: sticky; top: 96px; align-self: start; }
  .clause-num span { display: block; font-size: var(--t-lead); margin-bottom: var(--s-1); }
}
.clause-body.wide p { max-width: var(--measure); }


/* Rate card tables */
.rate { margin-top: var(--s-7); font-size: var(--t-body); }
.rate th, .rate td { text-align: left; vertical-align: top; padding: var(--s-4) var(--s-4) var(--s-4) 0; border-bottom: 1px solid var(--line); }
.rate tbody th { font-weight: 600; width: 30%; }
.rate tbody tr:first-child th, .rate tbody tr:first-child td { border-top: 1px solid var(--line-strong); }
.rate tbody tr:last-child th, .rate tbody tr:last-child td { border-bottom: 1px solid var(--line-strong); }
.rate td:last-child, .rate th:last-child { padding-right: 0; }
.rate td { color: var(--ink-2); }
@media (max-width: 640px) {
  .rate tr, .rate th, .rate td { display: block; width: auto !important; }
  .rate th, .rate td { padding-right: 0; }
  .rate tbody th, .rate tbody tr:last-child th { border-bottom: 0; padding-bottom: var(--s-1); }
  .rate tbody tr:first-child td { border-top: 0; }
  .rate tbody td { padding-top: 0; }
}

/* Figures */
.figures { display: grid; grid-template-columns: 1fr; gap: var(--s-6); margin-top: var(--s-8); }
@media (min-width: 700px) { .figures { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }
.figures div { border-top: 1px solid var(--line-strong); padding-top: var(--s-4); }
.figures dd { font-family: var(--mono); font-size: clamp(1.5rem, 1rem + 1.6vw, 2.125rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.figures dt { margin-top: var(--s-3); font-size: var(--t-small); color: var(--ink-3); max-width: 24ch; }

/* Inbox strip */
.inbox { margin-top: var(--s-7); border: 1px solid var(--line-strong); border-radius: var(--r-panel); overflow: hidden; max-width: 720px; }
.inbox li { display: grid; grid-template-columns: 1fr; gap: var(--s-1) var(--s-4); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); font-size: var(--t-small); }
.inbox li:first-child { border-top: 0; }
@media (min-width: 640px) { .inbox li { grid-template-columns: 200px 1fr auto; align-items: center; } }
.inbox-from { color: var(--ink-3); }
.inbox-subject { font-weight: 500; }
.inbox-tag { font-family: var(--mono); font-size: var(--t-label); color: var(--ink-3); justify-self: start; }
.inbox-lost { color: var(--ink); }

/* Chain diagram */
.chain { margin-top: var(--s-8); display: grid; gap: var(--s-5); width: 100%; max-width: 820px; text-align: left; }
.chain + p { margin-top: var(--s-8); }
.chain-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) 0; }
.chain-node { border: 1px solid var(--line-strong); border-radius: var(--r-button); padding: var(--s-2) var(--s-4); font-size: var(--t-small); font-weight: 500; white-space: nowrap; background: var(--canvas); }
.chain-us { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.chain-link { flex: 1 1 96px; min-width: 96px; position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 var(--s-2); }
.chain-link i { display: block; width: 100%; height: 1px; background: var(--line-strong); }
.chain-link b { font-weight: 400; font-family: var(--mono); font-size: var(--t-label); color: var(--ink-3); margin-top: var(--s-1); white-space: nowrap; }
.chain-cut i { background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.chain-bad .chain-node { color: var(--ink-3); border-color: var(--line); }
@media (max-width: 560px) {
  .chain { gap: var(--s-7); }
  .chain-row { flex-direction: column; align-items: stretch; gap: 0; }
  .chain-link { min-width: 0; flex: 0 0 auto; padding: var(--s-2) 0; }
  .chain-link i { width: 1px; height: 20px; }
  .chain-cut i { background: repeating-linear-gradient(180deg, var(--line-strong) 0 4px, transparent 4px 8px); }
  .chain-node { text-align: center; }
}

/* List grid */
.list-grid { display: grid; grid-template-columns: 1fr; gap: 0 var(--s-6); margin-top: var(--s-7); border-top: 1px solid var(--line-strong); }
@media (min-width: 700px) { .list-grid { grid-template-columns: 1fr 1fr; } }
.list-grid li { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.list-grid strong { color: var(--ink); }
.list-grid + p { margin-top: var(--s-8); }

/* Layer diagram (hero) */
.stack-frame { margin-top: clamp(2rem, 1rem + 2.5vw, 3rem); }
.stack { max-width: none; }
.layer { border: 1px solid var(--line-strong); border-radius: var(--r-panel); padding: var(--s-4) var(--s-5); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); flex-wrap: wrap; background: var(--canvas); }
.layer-name { font-weight: 600; }
.layer-note { font-size: var(--t-small); color: var(--ink-3); }
.layer-api { display: block; border-width: 2px; padding: var(--s-5); }
.layer-api .layer-name { display: block; margin-bottom: var(--s-4); font-size: var(--t-lead); letter-spacing: -0.01em; }
.blocks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (min-width: 720px) { .blocks { grid-template-columns: repeat(4, 1fr); } }
.blocks li, .pipeline { border: 1px solid var(--line-strong); border-radius: var(--r-button); background: var(--paper); padding: var(--s-3) var(--s-4); font-size: var(--t-small); }
.blocks li { display: flex; flex-direction: column; gap: var(--s-1); }
.blocks strong { font-weight: 600; }
.blocks span { color: var(--ink-2); }
.pipeline { margin-bottom: var(--s-3); padding: var(--s-4); }
.pipeline-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.pipeline-head strong { font-weight: 600; font-size: var(--t-body); }
.pipeline-head span { color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.chips li { border: 1px solid var(--line-strong); border-radius: 999px; background: var(--canvas); padding: 4px 12px; font-size: var(--t-label); font-weight: 500; white-space: nowrap; }
.chips li:last-child { border-style: dashed; color: var(--ink-3); font-weight: 400; }
.joint { display: flex; align-items: center; gap: var(--s-3); margin-left: var(--s-6); height: 32px; }
.joint::before { content: ""; display: block; width: 1px; height: 100%; background: var(--line-strong); }
.joint b { font-weight: 400; font-family: var(--mono); font-size: var(--t-label); color: var(--ink-3); }
.stack-frame figcaption { font-size: var(--t-small); color: var(--ink-3); margin-top: var(--s-4); max-width: 64ch; }

/* The one authored moment: the API layer fills in once on load */
@media (prefers-reduced-motion: no-preference) {
  .pipeline, .blocks li { animation: fill-in 420ms var(--ease-out) both; }
  .pipeline { animation-delay: 200ms; }
  .blocks li:nth-child(1) { animation-delay: 360ms; }
  .blocks li:nth-child(2) { animation-delay: 440ms; }
  .blocks li:nth-child(3) { animation-delay: 520ms; }
  .blocks li:nth-child(4) { animation-delay: 600ms; }
  @keyframes fill-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* Pre-dial gate */
.gate { display: grid; grid-template-columns: 1fr; gap: var(--s-2); margin-top: var(--s-8); counter-reset: gate; position: relative; }
@media (min-width: 700px) { .gate { grid-template-columns: repeat(5, 1fr); gap: var(--s-3); } }
.gate li { counter-increment: gate; border: 1px solid var(--line-strong); border-radius: var(--r-button); padding: var(--s-3) var(--s-4); font-weight: 500; font-size: var(--t-small); display: flex; gap: var(--s-3); align-items: baseline; position: relative; background: var(--canvas); }
.gate li::before { content: counter(gate, decimal-leading-zero); font-family: var(--mono); font-size: var(--t-label); color: var(--ink-3); }
.gate .gate-end { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.gate .gate-end::before { color: var(--canvas); opacity: 0.7; }
@media (min-width: 700px) {
  .gate li:not(:last-child)::after { content: ""; position: absolute; right: calc(-1 * var(--s-3)); top: 50%; width: var(--s-3); height: 1px; background: var(--line-strong); }
}
.gate-note { margin-top: var(--s-3); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr; gap: var(--s-6); margin-top: var(--s-8); align-items: start; }
@media (min-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); } }
.calc-in { border: 1px solid var(--line-strong); border-radius: var(--r-panel); padding: var(--s-5); }
@media (min-width: 700px) { .calc-in { padding: var(--s-6); } }
.calc-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin-bottom: var(--s-2); }
.calc-title { font-family: var(--mono); font-size: var(--t-label); color: var(--ink-3); }
.field { display: block; margin-top: var(--s-5); }
.field > span:first-child { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--t-small); font-weight: 500; margin-bottom: var(--s-2); }
.field output { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
input[type="text"], input[type="email"], input[type="url"], input[type="number"], select, textarea {
  width: 100%; min-height: 44px; padding: var(--s-2) var(--s-3);
  background: var(--canvas); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-input);
  transition: border-color var(--fast) ease;
}
select { background-color: var(--canvas); color: var(--ink); }
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input[type="number"] { font-family: var(--mono); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; min-height: 44px; margin: 0; }
.input-money { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--r-input); overflow: hidden; }
.input-money .cur { display: flex; align-items: center; padding: 0 var(--s-3); font-style: normal; font-family: var(--mono); border-right: 1px solid var(--line); color: var(--ink-3); }
.input-money input { border: 0; border-radius: 0; }
.two { display: grid; grid-template-columns: 1fr; gap: 0 var(--s-4); align-items: end; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }

/* Segmented control */
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-button); overflow: hidden; }
.seg label { position: relative; display: inline-flex; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); font-size: var(--t-small); font-weight: 500; color: var(--ink-2); transition: background-color var(--fast) ease, color var(--fast) ease; }
.seg label + label span { border-left: 1px solid var(--line-strong); }
.seg label:has(input:checked) span { background: var(--ink); color: var(--canvas); }
.seg label:has(input:focus-visible) span { outline: 2px solid var(--line-strong); outline-offset: -3px; }
.seg-wide { display: flex; }
.seg-wide label { flex: 1; }
.seg-wide span { flex: 1; justify-content: center; min-height: 44px; }
.indicative { margin-top: var(--s-5); border-top: 1px solid var(--line); padding-top: var(--s-3); }
.indicative summary { cursor: pointer; font-size: var(--t-small); color: var(--ink-3); list-style: none; display: inline-flex; gap: var(--s-2); align-items: center; min-height: 44px; }
.indicative summary::-webkit-details-marker { display: none; }
.indicative summary::before { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--base) var(--ease-out); }
.indicative[open] summary::before { transform: rotate(45deg); }
.indicative .field { margin-top: var(--s-3); }

/* Result panel */
.calc-out { border: 1px solid var(--line-strong); border-radius: var(--r-panel); padding: var(--s-5); background: var(--canvas); }
@media (min-width: 700px) { .calc-out { padding: var(--s-6); } }
.out-label { font-size: var(--t-small); color: var(--ink-3); }
.out-big { font-family: var(--mono); font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin-top: var(--s-2); font-variant-numeric: tabular-nums; }
.out-margin { font-size: var(--t-small); color: var(--ink-3); margin-top: var(--s-2); }
.calc-out.negative .out-big { color: #B42318; }
.split { margin-top: var(--s-6); height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.split-profit { display: block; height: 100%; background: var(--ink); border-radius: 999px; transition: width var(--base) var(--ease-out); }
.split-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin-top: var(--s-3); font-size: var(--t-small); }
.split-legend div { display: flex; gap: var(--s-3); align-items: baseline; }
.split-legend dt { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--ink-3); }
.split-legend dd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.swatch-profit { background: var(--ink); }
.swatch-cost { background: var(--line); }
.out-rows { margin-top: var(--s-6); border-top: 1px solid var(--line-strong); }
.out-rows div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.out-rows dt { color: var(--ink-3); }
.out-rows dd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .split-profit { transition: none; } }

/* Uses */
.uses { margin-top: var(--s-6); border-top: 1px solid var(--line-strong); }
.uses div { display: grid; grid-template-columns: 1fr; gap: var(--s-1) var(--s-6); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .uses div { grid-template-columns: 200px 1fr; } }
.uses dt { font-weight: 600; }
.uses dd { color: var(--ink-2); }
.uses div:last-child { border-bottom: 1px solid var(--line-strong); }

/* What it is / So that */
.pairs { margin-top: var(--s-8); border-top: 1px solid var(--line-strong); }
.pairs > div { display: grid; grid-template-columns: 1fr; gap: var(--s-3); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.pairs .pairs-head { padding: var(--s-2) 0; font-family: var(--mono); font-size: var(--t-label); color: var(--ink-3); display: none; }
.pairs dt { font-weight: 500; }
.pairs dd { color: var(--ink-2); }
.pairs > div:last-child { border-bottom: 1px solid var(--line-strong); }
@media (min-width: 760px) {
  .pairs > div, .pairs .pairs-head { grid-template-columns: 1.25fr 1fr; gap: var(--s-8); display: grid; }
}


/* ---------- Promise band ---------- */
.promise { padding-block: var(--section); background: var(--paper); border-top: 1px solid var(--line); text-align: center; }
.promise .row { display: flex; flex-direction: column; align-items: center; }
.promise .chain { margin-inline: auto; }
.promise h2 { max-width: 22ch; font-size: clamp(2.25rem, 1.2rem + 3.2vw, 3.5rem); margin-top: var(--s-5); }
.promise p { max-width: 58ch; }
.promise h2 + p { margin-top: var(--s-6); }
.promise .vow { margin-top: var(--s-7); font-size: var(--t-lead); font-weight: 500; letter-spacing: -0.01em; }
.promise .closing { color: var(--ink-3); font-weight: 400; font-size: var(--t-body); }

/* ---------- FAQ ---------- */
.faq { margin-top: var(--s-6); border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr 24px; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; font-weight: 500; min-height: 56px; box-sizing: border-box; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; justify-self: end; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform var(--base) var(--ease-out); margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq summary:hover { color: var(--ink-2); }
.faq details p { padding: 0 0 var(--s-5); color: var(--ink-2); max-width: var(--measure); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }

/* ---------- Talk ---------- */
.talk-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-7); align-items: start; }
@media (min-width: 900px) { .talk-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-8); } }
.talk-grid h2 { max-width: 20ch; }
.talk-form .field:first-of-type { margin-top: 0; }
.talk-form .two .field, .talk-form > .field { margin-top: var(--s-4); }
.talk-form .button { margin-top: var(--s-5); }
.talk-form .fine { margin-top: var(--s-3); }
.honeypot { position: absolute; left: -9999px; }
.form-message { margin-top: var(--s-3); font-size: var(--t-small); min-height: 1.5em; }
.form-message.ok { color: var(--ink); font-weight: 500; }
.form-message.error { color: #B42318; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-strong); padding-block: var(--s-8) var(--s-7); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr; } .copyright { grid-column: 1 / -1; } }
.tagline { margin-top: var(--s-4); font-weight: 500; }
.footer .small { margin-top: var(--s-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); font-size: var(--t-small); }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .faq summary::after, .button { transition: none; }
}

/* ---------- Legal pages ---------- */
.legal { padding-block: var(--s-9) var(--section); }
.legal .row { max-width: 68ch; }
.legal h1 { font-size: clamp(2rem, 1rem + 3vw, 3rem); max-width: 20ch; }
.legal .updated { margin-top: var(--s-4); font-family: var(--mono); font-size: var(--t-label); color: var(--ink-3); }
.legal h2 { font-size: var(--t-lead); font-weight: 600; letter-spacing: -0.01em; margin-top: var(--s-8); max-width: none; }
.legal h2 + p { margin-top: var(--s-3); }
.legal p, .legal li { color: var(--ink-2); max-width: none; }
.legal ul { list-style: disc; padding-left: 1.2em; margin-top: var(--s-3); }
.legal li + li { margin-top: var(--s-2); }
.legal .note { margin-top: var(--s-8); padding: var(--s-4) var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--r-button); font-size: var(--t-small); }
.legal a { text-decoration: underline; }
