/* ============================================================
   Martello Systems — variant B stylesheet
   Light, editorial, one signal colour. Served at /assets/b.css.
   Pages that use it live in _b/ and are served at the same URLs
   as the A site when the visitor is bucketed into B (lib/ab.js).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --paper: #f6f3ec;
  --paper-2: #ede8dc;
  --paper-3: #e3ddcd;
  --ink: #14161c;
  --ink-2: #4b4f5b;
  --ink-3: #7a7e8a;
  --line: #d8d2c3;
  --signal: #ff4a1c;
  --signal-ink: #b8360f;
  --signal-soft: #ffe3da;
  --night: #0f1118;
  --night-2: #181b25;
  --night-text: #f6f3ec;
  --night-muted: #a7abb8;
  --ok: #1f7a4d;
  --ok-soft: #dff3e8;
  --radius: 14px;
  --radius-sm: 8px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
h1, h2, h3, h4, section, [id] { scroll-margin-top: 5.5rem; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
strong { font-weight: 600; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ── type ─────────────────────────────────────────────────── */
.display, h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
  font-variation-settings: 'opsz' 144;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; line-height: 1.25; letter-spacing: 0; font-variation-settings: 'opsz' 48; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--signal-ink);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--signal); }
.muted { color: var(--ink-2); }
.small { font-size: .92rem; }
.ital { font-style: italic; font-weight: 500; }
.sig { color: var(--signal-ink); }

/* ── buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-signal { background: var(--signal); color: #fff; border-color: var(--signal); }
.btn-signal:hover { background: #ea3f14; border-color: #ea3f14; }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: #262a33; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-paper:hover { background: #fff; }
.btn-lg { padding: 1.1rem 1.7rem; font-size: 1.06rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.arrow::after { content: '\2192'; font-weight: 500; }

/* ── nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 236, .86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--max); margin: 0 auto; padding: .8rem 20px; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.foot .brand img { height: 48px; }
@media (max-width: 520px) { .brand img { height: 36px; } }
.nav-links { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; font-size: .95rem; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links .btn { padding: .62rem 1.05rem; font-size: .92rem; color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: 8px; padding: .45rem .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }
.nav-mobile { display: none; border-top: 1px solid var(--line); background: var(--paper); padding: 1rem 20px 1.25rem; flex-direction: column; gap: .9rem; font-weight: 500; }
.nav-mobile.open { display: flex; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ── hero ─────────────────────────────────────────────────── */
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: center; }
.hero h1 { margin: 1.1rem 0 1.3rem; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--signal-ink); }
.hero .lede { max-width: 38rem; margin-bottom: 1.8rem; }
.hero .btn-row { margin-bottom: 1.4rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9rem; color: var(--ink-2); }
.hero-proof li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

/* the stopwatch card */
.clock {
  position: relative; background: var(--night); color: var(--night-text);
  border-radius: 22px; padding: 2rem 2rem 1.75rem; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(20, 22, 28, .5);
}
.clock::after {
  content: ''; position: absolute; inset: auto -20% -40% auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 74, 28, .35), transparent 70%);
  pointer-events: none;
}
.clock-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); font-weight: 600; }
.clock-num { font-family: var(--serif); font-weight: 600; font-size: clamp(4.5rem, 9vw, 7rem); line-height: 1; letter-spacing: -.03em; margin: .4rem 0 .2rem; font-variant-numeric: tabular-nums; }
.clock-num small { font-size: .32em; color: var(--signal); font-style: italic; font-weight: 500; letter-spacing: 0; margin-left: .15em; }
.clock-copy { color: var(--night-muted); font-size: .95rem; line-height: 1.55; }
.clock-copy strong { color: var(--night-text); }
.clock-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); }
.clock-row div { font-size: .82rem; color: var(--night-muted); }
.clock-row b { display: block; color: var(--night-text); font-size: 1.15rem; font-family: var(--serif); font-weight: 600; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── sections ─────────────────────────────────────────────── */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-head h2 { margin: .8rem 0 .9rem; }
.band { background: var(--paper-2); }
.band-night { background: var(--night); color: var(--night-text); }
.band-night .muted, .band-night .lede { color: var(--night-muted); }
.band-night .eyebrow { color: var(--signal); }
.hr { border: 0; border-top: 1px solid var(--line); }

/* ── promise grid ─────────────────────────────────────────── */
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.promise {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.7rem 1.6rem;
  display: flex; flex-direction: column; gap: .7rem;
}
.promise .num { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--signal-ink); font-size: 1.05rem; }
.promise h3 { margin: 0; }
.promise p { color: var(--ink-2); font-size: .98rem; }
.promise .how { margin-top: auto; padding-top: .9rem; border-top: 1px dashed var(--line); font-size: .88rem; color: var(--ink-3); }
.promise .how b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }

/* ── timeline ─────────────────────────────────────────────── */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.3rem 1.2rem 1.2rem; border-top: 2px solid var(--ink); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--signal-ink); display: block; margin-bottom: .5rem; }
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { color: var(--ink-2); font-size: .93rem; }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

/* ── stack ────────────────────────────────────────────────── */
.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.slot { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.slot .slot-name { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .6rem; }
.slot ul { display: flex; flex-direction: column; gap: .6rem; }
.slot li a { display: block; padding: .6rem .75rem; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid transparent; }
.slot li a:hover { border-color: var(--line); background: #fff; }
.slot li b { display: block; font-weight: 600; }
.slot li span { display: block; font-size: .85rem; color: var(--ink-2); }
@media (max-width: 900px) { .stack { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stack { grid-template-columns: 1fr; } }

/* ── verdict capture ──────────────────────────────────────── */
.verdict-panel {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2.5rem; align-items: center;
  background: var(--night); color: var(--night-text); border-radius: 22px; padding: clamp(1.8rem, 4vw, 3rem);
}
.verdict-panel h2 { color: var(--night-text); }
.verdict-panel .lede { color: var(--night-muted); }
.verdict-panel ul.ticks { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .5rem; font-size: .95rem; color: var(--night-muted); }
.verdict-panel ul.ticks li::before { content: '\2713'; color: var(--signal); margin-right: .6rem; font-weight: 700; }
.capture { background: var(--night-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 1.5rem; }
.capture .price { display: flex; align-items: baseline; gap: .7rem; margin-bottom: .25rem; font-family: var(--serif); }
.capture .price .was { color: var(--night-muted); text-decoration: line-through; font-size: 1.2rem; }
.capture .price .now { font-size: 2.4rem; font-weight: 600; color: var(--night-text); }
.capture .price .tag { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--signal); color: #fff; padding: .25rem .5rem; border-radius: 6px; }
.capture p { color: var(--night-muted); font-size: .92rem; margin-bottom: 1rem; }
.capture form { display: flex; flex-direction: column; gap: .6rem; }
.capture input[type=email], .capture input[type=text] {
  width: 100%; padding: .85rem 1rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color: var(--night-text);
}
.capture input::placeholder { color: rgba(255,255,255,.4); }
.capture .btn { width: 100%; }
.capture .fine { font-size: .78rem; color: var(--night-muted); margin: .4rem 0 0; }
.capture .result { display: none; }
.capture .result.show { display: block; }
.capture .code { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; letter-spacing: .06em; background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.3); border-radius: 10px; padding: .8rem 1rem; text-align: center; margin: .6rem 0 .8rem; user-select: all; }
.capture .err { color: #ffb4a0; font-size: .9rem; min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 860px) { .verdict-panel { grid-template-columns: 1fr; } }

/* discount-conditional copy: the server says whether the coupon exists;
   b.js sets body.no-discount when it does not. */
[data-if-no-discount] { display: none; }
body.no-discount [data-if-discount] { display: none; }
body.no-discount [data-if-no-discount] { display: inline; }

/* ── pricing ──────────────────────────────────────────────── */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.door { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; }
.door.lead { border-color: var(--ink); box-shadow: 0 24px 40px -30px rgba(20,22,28,.35); }
.door .kicker { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.door h3 { margin: .5rem 0 .3rem; font-size: 1.6rem; }
.door .price-line { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; font-style: italic; color: var(--signal-ink); margin-bottom: 1rem; }
.door .price-line small { font-family: var(--sans); font-style: normal; font-size: .85rem; color: var(--ink-3); display: block; margin-top: .1rem; }
.door ul { display: flex; flex-direction: column; gap: .5rem; margin: .4rem 0 1.5rem; color: var(--ink-2); font-size: .96rem; }
.door ul li::before { content: '\2013'; margin-right: .6rem; color: var(--signal); font-weight: 700; }
.door .btn { margin-top: auto; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }

/* storefront cards (verdict page) */
.skus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.sku { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.sku.featured { border-color: var(--ink); }
.sku h3 { font-size: 1.25rem; }
.sku .amount { font-family: var(--serif); font-size: 2rem; font-weight: 600; display: flex; align-items: baseline; gap: .6rem; }
.sku .amount .was { font-size: 1.1rem; color: var(--ink-3); text-decoration: line-through; font-weight: 400; }
.sku .amount .off { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--signal-soft); color: var(--signal-ink); padding: .2rem .45rem; border-radius: 6px; }
.sku .blurb { color: var(--ink-2); font-size: .93rem; }
.sku ul { color: var(--ink-2); font-size: .9rem; display: flex; flex-direction: column; gap: .3rem; margin: .4rem 0 .8rem; }
.sku ul li::before { content: '\2713'; color: var(--ok); margin-right: .5rem; font-weight: 700; }
.sku .btn { margin-top: auto; width: 100%; }
.sku .picks { font-size: .88rem; color: var(--ink-2); display: flex; flex-direction: column; gap: .3rem; }
.sku .picks label { display: flex; align-items: center; gap: .5rem; }
.buy-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.buy-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.buy-form input { width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.buy-form .full { grid-column: 1 / -1; }
.buy-form .msg { grid-column: 1 / -1; min-height: 1.2em; font-size: .92rem; }
.buy-form .msg.err { color: var(--signal-ink); }
.buy-form .msg.ok { color: var(--ok); }
@media (max-width: 860px) { .skus { grid-template-columns: 1fr; } .buy-form { grid-template-columns: 1fr; } }

/* ── founder ──────────────────────────────────────────────── */
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; }
.founder-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.founder-card .name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.founder-card .role { color: var(--ink-2); margin-bottom: 1rem; }
.founder-card dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .95rem; }
.founder-card dt { color: var(--ink-3); }
.founder-card dd a { font-weight: 600; border-bottom: 1.5px solid var(--signal); }
.founder blockquote { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; line-height: 1.35; color: var(--ink); }
.founder blockquote em { font-style: italic; color: var(--signal-ink); }
.founder .after { margin-top: 1.2rem; color: var(--ink-2); }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { max-width: 800px; }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--signal-ink); font-weight: 500; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin-top: .7rem; color: var(--ink-2); }

/* ── demo booking widget ──────────────────────────────────── */
.demo-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; align-items: start; }
.demo-wrap > * { min-width: 0; }
.demo-copy h2 { color: var(--night-text); }
.demo-copy .lede { color: var(--night-muted); }
.demo-copy ul { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .6rem; color: var(--night-muted); font-size: .95rem; }
.demo-copy ul li::before { content: '\2192'; color: var(--signal); margin-right: .6rem; }
.demo { background: #fff; color: var(--ink); border-radius: 18px; padding: 1.5rem; min-height: 380px; }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.demo-head b { font-family: var(--serif); font-size: 1.15rem; }
.demo-head span { font-size: .82rem; color: var(--ink-3); }
.days { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; max-width: 100%; }
.day { flex: 0 0 auto; min-width: 64px; padding: .55rem .5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); text-align: center; cursor: pointer; font-size: .85rem; }
.day b { display: block; font-size: 1.05rem; }
.day.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.day[disabled] { opacity: .4; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; margin: 1rem 0; min-height: 3rem; }
.slot-btn { padding: .6rem .4rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: .92rem; font-weight: 500; }
.slot-btn:hover { border-color: var(--ink); }
.slot-btn.on { background: var(--signal); border-color: var(--signal); color: #fff; }
.demo-note { font-size: .88rem; color: var(--ink-3); }
.demo form { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1rem; }
.demo form .full { grid-column: 1 / -1; }
.demo input, .demo textarea { width: 100%; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.demo textarea { min-height: 70px; resize: vertical; }
.demo .msg { grid-column: 1 / -1; min-height: 1.2em; font-size: .9rem; }
.demo .msg.err { color: var(--signal-ink); }
.demo .done { text-align: center; padding: 2rem 1rem; }
.demo .done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; }
.demo .done h3 { margin-bottom: .5rem; }
.demo .done p { color: var(--ink-2); }
.demo .fallback { margin-top: 1rem; font-size: .9rem; color: var(--ink-2); }
.demo .fallback a { font-weight: 600; border-bottom: 1.5px solid var(--signal); }
@media (max-width: 860px) { .demo-wrap { grid-template-columns: 1fr; } .demo form { grid-template-columns: 1fr; } }

/* ── 60-second test ───────────────────────────────────────── */
.sixty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.sixty form { display: flex; gap: .6rem; margin-top: 1.2rem; }
.sixty input { flex: 1; padding: .95rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.sixty .stopwatch { font-family: var(--serif); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; }
.sixty .stopwatch small { font-size: .3em; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
.sixty .status { margin-top: .6rem; color: var(--ink-2); min-height: 1.4em; }
@media (max-width: 760px) { .sixty { grid-template-columns: 1fr; } .sixty form { flex-direction: column; } }

/* ── contact ──────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; align-items: start; }
.cform { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.cform label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.cform input, .cform textarea { width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.cform textarea { min-height: 120px; resize: vertical; }
.cform .full { grid-column: 1 / -1; }
.cform .msg { grid-column: 1 / -1; min-height: 1.2em; font-size: .92rem; }
.cform .msg.err { color: var(--signal-ink); }
.ways { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.4rem; }
.way { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.way b { display: block; }
.way a { border-bottom: 1.5px solid var(--signal); font-weight: 600; }
.way span { display: block; font-size: .88rem; color: var(--ink-2); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .cform { grid-template-columns: 1fr; } }

/* ── final CTA + footer ───────────────────────────────────── */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 30ch; margin: .8rem auto 1rem; }
.cta-final .btn-row { justify-content: center; margin-top: 1.4rem; }
footer { background: var(--night); color: var(--night-muted); padding: 3.5rem 0 2rem; font-size: .92rem; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.25fr 1.1fr .9fr; gap: 1.4rem; margin-bottom: 2.5rem; }
.foot .brand { color: var(--night-text); }
.foot p { margin-top: .8rem; max-width: 30rem; }
.foot h4 { color: var(--night-text); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.foot ul { display: flex; flex-direction: column; gap: .45rem; }
.foot a:hover { color: var(--night-text); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .82rem; }
@media (max-width: 1000px) { .foot { grid-template-columns: 1fr 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }

/* ── page hero (inner pages) ──────────────────────────────── */
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.5rem, 4vw, 3rem); }
.page-hero h1 { margin: .9rem 0 1rem; max-width: 18ch; }
.page-hero .lede { max-width: 40rem; }

/* ── thanks ───────────────────────────────────────────────── */
.thanks { max-width: 640px; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) 20px; }
.thanks .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; font-size: 1.9rem; font-weight: 700; margin-bottom: 1.2rem; }
.thanks ol { padding-left: 1.2rem; color: var(--ink-2); display: flex; flex-direction: column; gap: .5rem; margin: 1.2rem 0; list-style: decimal; }

/* ── solution / answer pages (generated by scripts/generate-solution-pages.py) ── */
.article { max-width: 46rem; }
.article h2 { margin: 2.4rem 0 .8rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 1.6rem 0 .5rem; font-size: 1.15rem; }
.article p { margin-bottom: 1rem; color: var(--ink-2); line-height: 1.65; }
.article ul, .article ol { margin: 0 0 1.2rem 1.3rem; color: var(--ink-2); line-height: 1.6; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: .45rem; }
.article li::marker { color: var(--signal-ink); font-weight: 600; }
.article a { border-bottom: 1.5px solid var(--signal); font-weight: 600; }
.article strong { color: var(--ink); }
.tldr { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--signal); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.6rem 0 2.2rem; }
.tldr b { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .45rem; }
.tldr p { margin: 0; color: var(--ink); font-size: 1.05rem; line-height: 1.55; }
.sources { font-size: .88rem; color: var(--ink-3); margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.sources h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .6rem; color: var(--ink-3); }
.sources ol { margin-left: 1.2rem; }
.sources li { margin-bottom: .3rem; }
.related { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.related a { border: 1px solid var(--line); border-radius: 999px; padding: .5rem .95rem; font-size: .9rem; background: #fff; font-weight: 500; }
.related a:hover { border-color: var(--ink); }
.article-cta { background: #fff; border: 1px solid var(--ink); border-radius: var(--radius); padding: 1.6rem 1.7rem; margin: 2.4rem 0 0; }
.article-cta h2 { margin: 0 0 .5rem; font-size: 1.4rem; }
.article-cta p { margin-bottom: 1.1rem; }

/* ── the eight leaks (homepage) ── */
.fixes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.fixes a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.25rem; transition: border-color .15s, transform .15s; }
.fixes a:hover { border-color: var(--ink); transform: translateY(-2px); }
.fixes h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.fixes h3::after { content: ' \2192'; color: var(--signal-ink); }
.fixes p { color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
@media (max-width: 900px) { .fixes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fixes { grid-template-columns: 1fr; } }
