/* Tender Sifter · Direction A "The Monday Edition" · Phase 2 prototype */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --paper: #F6F2E9;      /* page background */
  --paper-2: #FBF9F4;    /* form panel, fields */
  --paper-3: #EFE9DC;    /* tinted section */
  --ink: #15181D;        /* text, strong rules */
  --muted: #565B63;      /* secondary text */
  --green: #134A43;      /* primary: buttons, links, mark field, figure panel */
  --green-2: #0D3732;    /* primary hover */
  --on-green: #F6F2E9;   /* text on green */
  --panel: #134A43;      /* figure panel and footer */
  --on-panel: #F6F2E9;
  --on-panel-muted: #B7CBC5;
  --gold: #E3A644;       /* accent: never text on paper */
  --gold-ink: #8A5A12;   /* gold for small text on paper */
  --rule: #DCD3C1;       /* hairlines (decorative) */
  --field: #8A8273;      /* input borders (3:1 on paper) */
  --success: #2F6B3A;
  --error: #A1322B;
  --dot-many: #2A5E56;   /* unit chart: the many, on green */
  --dot-start: #6E968E;  /* unit chart: start colour before sifting */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --h1: clamp(3rem, 1.6rem + 5.6vw, 5.75rem);
  --h2: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);
  --h3: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  --body: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --small: .875rem;
  --label: .75rem;

  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --wrap: 1180px;
  --sec: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1715; --paper-2: #18221F; --paper-3: #131C1A;
    --ink: #ECE6DA; --muted: #A6ACA4;
    --green: #86C8B8; --green-2: #A3D8CB; --on-green: #0F1715;
    --panel: #18221F; --on-panel: #ECE6DA; --on-panel-muted: #A6ACA4;
    --gold: #E3A644; --gold-ink: #E3A644;
    --rule: #2C3835; --field: #6F7B77;
    --success: #86C99A; --error: #F0877B;
    --dot-many: #24332F; --dot-start: #4E6B64;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--body)/1.6 var(--sans);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: text-decoration-thickness .2s; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.022em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--green); }
h3 { font: 600 var(--h3)/1.3 var(--sans); letter-spacing: -.01em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
[hidden] { display: none !important; } /* pricing links and sections switch with run.py site */
.mono { font-family: var(--mono); }
.label { font: 500 var(--label)/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--gold-ink); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.tag { display: inline-block; font: 500 .6875rem/1 var(--mono); letter-spacing: .06em; padding: .3rem .4rem; border: 1px solid var(--ink); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .75rem;
  background: var(--green); color: var(--on-green); text-decoration: none;
  font: 500 1rem/1 var(--sans); padding: 1rem 1.25rem; border-radius: 3px; border: 0; cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--green-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .arrow { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { padding: .65rem .9rem; font-size: .875rem; }
.btn-block { width: 100%; justify-content: space-between; }
.link-quiet { color: var(--ink); font-weight: 500; }

/* ---------- Masthead nav (sticky, floats once scrolled) ---------- */
.mast { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--ink); transition: box-shadow .3s var(--ease), background-color .3s, border-color .3s; }
.mast-bar { display: flex; align-items: center; gap: 2rem; height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 34px; height: 34px; }
.brand span { font: 600 1.4rem/1 var(--serif); letter-spacing: -.01em; }
.mast nav { display: flex; gap: 1.75rem; }
.mast nav a { color: var(--ink); text-decoration: none; font-size: .9375rem; }
.mast nav a:hover { text-decoration: underline; }
.mast.is-stuck { background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--rule), 0 10px 30px -18px rgba(21, 24, 29, .35); }
.mast.is-stuck { border-bottom-color: transparent; }
.menu-btn { display: none; }
.sheet { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.hero h1 { font-size: var(--h1); line-height: .96; margin: 1rem 0 1.5rem; }
.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; max-width: 36ch; color: var(--ink); }
.cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }

.issue { border-left: 1px solid var(--ink); padding-left: clamp(1.25rem, .5rem + 2vw, 2rem); }
.issue-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--ink); }
.issue-head .mono { font-size: .75rem; color: var(--muted); }
.issue ol { list-style: none; margin: 0; padding: 0; }
.issue li { padding: 1rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: .3rem; }
.issue li strong { font: 600 1.0625rem/1.3 var(--serif); }
.issue .meta { font-size: var(--small); color: var(--muted); }
.issue .when { font: 400 .75rem/1.4 var(--mono); color: var(--ink); }
.issue .when b { font-weight: 500; color: var(--gold-ink); }
.issue-foot { font: 400 .75rem/1.4 var(--mono); color: var(--muted); padding-top: .75rem; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(3rem, 2rem + 4vw, 5rem) 0 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.facts div { padding: 1.25rem 1.5rem 1.25rem 0; display: flex; align-items: baseline; gap: 1rem; }
.facts div + div { border-left: 1px solid var(--rule); padding-left: 1.5rem; }
.facts dt { font: 400 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--serif); }
.facts dd { margin: 0; font-size: var(--small); color: var(--muted); max-width: 16ch; line-height: 1.4; }

/* ---------- Sections ---------- */
.section { padding: var(--sec) 0 0; }
.section:last-of-type { padding-bottom: var(--sec); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 2rem 4rem; align-items: end; border-top: 1px solid var(--ink); padding-top: 1rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.sec-head .label { grid-column: 1 / -1; }
.sec-head h2 { font-size: var(--h2); line-height: 1.04; }
.sec-head .note { font-size: var(--small); color: var(--muted); }

/* Why */
.pull { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem); line-height: 1.1; max-width: 24ch; }
.figure { margin: clamp(2.5rem, 2rem + 2vw, 4rem) 0 0; background: var(--panel); color: var(--on-panel); border-radius: 4px; padding: clamp(1.25rem, .75rem + 2vw, 2.5rem); }
.figure figcaption { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font: 500 .6875rem/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--on-panel-muted); margin-bottom: 1.25rem; }
.unit-canvas { width: 100%; }
.funnel { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1.75rem 0 0; border-top: 1px solid color-mix(in srgb, var(--on-panel) 25%, transparent); }
.funnel div { padding: 1.25rem 1.5rem 0 0; }
.funnel div + div { padding-left: 1.5rem; border-left: 1px solid color-mix(in srgb, var(--on-panel) 25%, transparent); }
.funnel dt { font: 400 clamp(2.25rem, 1.8rem + 2vw, 3.25rem)/1 var(--serif); display: flex; align-items: center; gap: .6rem; }
.funnel dt i { width: .55rem; height: .55rem; display: inline-block; flex: none; }
.funnel dd { margin: .5rem 0 0; font-size: var(--small); line-height: 1.45; color: var(--on-panel); max-width: 26ch; }
.funnel dd small { display: block; font: 400 .75rem/1.4 var(--mono); color: var(--on-panel-muted); margin-top: .25rem; }
.funnel .yours dt { font-style: italic; color: var(--gold); }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.points-2 { grid-template-columns: repeat(2, 1fr); }
.points > div { border-top: 1px solid var(--ink); padding-top: 1rem; }
.points p { margin-top: .6rem; color: var(--muted); font-size: .9688rem; }

/* This week's list: ledger */
.tint { background: var(--paper-3); padding-bottom: var(--sec); margin-top: var(--sec); }
.tint.section { padding-top: var(--sec); }
.ledger { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ledger thead th { font: 500 .6875rem/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); text-align: left; padding: .6rem 1rem .6rem 0; border-bottom: 2px solid var(--ink); }
.ledger td { padding: 1.25rem 1rem 1.25rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger .num { font-family: var(--mono); font-size: .8125rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger th.num { text-align: right; }
.ledger td:last-child, .ledger th:last-child { padding-right: 0; }
.ledger .title a { font: 500 1.1875rem/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.ledger .title a:hover { text-decoration: underline; text-decoration-color: var(--green); }
.ledger .title span { display: block; color: var(--muted); font-size: var(--small); margin-top: .3rem; }
.ledger .qa { color: var(--gold-ink); }
.ledger .na { color: var(--muted); }
.ledger tbody tr { transition: background-color .2s; }
.ledger tbody tr:hover { background: color-mix(in srgb, var(--paper) 60%, transparent); }
.tl-cell { width: 9.5rem; }
.tl { display: block; padding-top: .5rem; }
.tl-track { position: relative; display: block; height: 4px; background: var(--rule); border-radius: 2px; }
.tl-fill { position: absolute; inset: 0; background: var(--green); border-radius: 2px; transform-origin: left; }
.tl-qa { position: absolute; top: -4px; width: 2px; height: 12px; background: var(--gold-ink); }
.tl-txt { display: block; font: 400 .6875rem/1.4 var(--mono); color: var(--muted); margin-top: .4rem; }
.tl-key { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; font: 400 .75rem/1.4 var(--mono); color: var(--muted); }
.tl-key i { display: inline-block; vertical-align: middle; margin-right: .4rem; }
.ledger-empty { margin-top: 1rem; color: var(--muted); }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: s; }
.steps li { border-top: 1px solid var(--ink); padding-top: 1rem; }
.steps .n { font: italic 400 3.5rem/1 var(--serif); color: var(--gold-ink); display: block; margin-bottom: 1.25rem; }
.steps p { color: var(--muted); margin-top: .6rem; font-size: .9688rem; }

/* Join */
.join { background: var(--paper-2); border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
.join h2 { font-size: var(--h2); line-height: 1.04; margin: .75rem 0 1.5rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.ticks li { display: grid; grid-template-columns: .5rem 1fr; gap: .9rem; align-items: baseline; }
.ticks li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); transform: translateY(-.1em); }
.form { display: grid; gap: 1.1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: .875rem; font-weight: 500; padding: 0; }
.field small { color: var(--muted); font-weight: 400; }
.field input { font: 400 1rem/1.3 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--field); border-radius: 3px; padding: .8rem .85rem; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: var(--muted); }
.field input:hover { border-color: var(--ink); }
.field input:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 30%, transparent); }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border: 1px solid var(--field); border-radius: 3px; font-size: .9375rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip span::before { content: ""; width: .85rem; height: .85rem; border: 1px solid currentColor; border-radius: 2px; }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: var(--on-green); }
.chip input:checked + span::before { background: var(--gold); border-color: var(--gold); }
.chip input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 1.25rem 1fr; gap: .75rem; font-size: .875rem; color: var(--muted); align-items: start; }
.consent input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .8125rem; color: var(--muted); }
.form-status { font-size: .9375rem; min-height: 1.4em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--error); }
.form-status.err::before { content: "Error: "; font-weight: 600; }

/* FAQ + about */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.faq-grid h2 { font-size: var(--h2); line-height: 1.04; margin-top: .75rem; }
.about { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .9688rem; color: var(--muted); max-width: 34ch; }
.about b { color: var(--ink); display: block; font: 600 1.125rem/1.3 var(--serif); margin-bottom: .4rem; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; font: 500 1.25rem/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.4rem 0; color: var(--muted); max-width: 60ch; }

/* ---------- Footer ---------- */
.footer { background: var(--panel); color: var(--on-panel); padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 2.5rem; }
.footer a { color: var(--on-panel); }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1px solid color-mix(in srgb, var(--on-panel) 30%, transparent); margin-bottom: 1.5rem; }
.foot-word { display: inline-flex; align-items: center; gap: .65rem; font: 600 1.5rem/1 var(--serif); }
.foot-word svg { width: 34px; height: 34px; }
.footer nav { display: flex; gap: 1.5rem; }
.footer p { font-size: .8125rem; line-height: 1.6; max-width: 80ch; color: var(--on-panel); }
.footer p + p { margin-top: .75rem; }
.footer .small { font: 400 .75rem/1.4 var(--mono); color: var(--on-panel-muted); margin-top: 1.5rem; }

/* ---------- Privacy page ---------- */
.doc-head { padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 2rem; border-bottom: 1px solid var(--ink); }
.doc-head h1 { font-size: clamp(2.75rem, 1.8rem + 4vw, 4.5rem); line-height: 1; margin: .75rem 0 1.25rem; }
.doc-grid { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); padding: 3rem 0 var(--sec); }
.toc { position: sticky; top: 6rem; align-self: start; }
.toc ol { list-style: none; padding: 0; margin: .75rem 0 0; border-top: 1px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a { display: block; padding: .55rem 0; color: var(--ink); text-decoration: none; font-size: .875rem; }
.toc a:hover { color: var(--green); }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.75rem; line-height: 1.15; margin: 2.75rem 0 .9rem; scroll-margin-top: 6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose p + p { margin-top: 1rem; }
.prose ul { padding-left: 1.1rem; margin: 0 0 1rem; display: grid; gap: .6rem; }
.prose li::marker { color: var(--gold-ink); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.tl-fill { transform: scaleX(var(--p, 0)); }
.js .tl-fill { transform: scaleX(0); transition: transform .9s var(--ease); }
.js .in .tl-fill { transform: scaleX(var(--p, 0)); transition-delay: .3s; }
.rise { animation: rise .8s var(--ease) both; }
.hero .rise:nth-child(2) { animation-delay: .06s; } .hero .rise:nth-child(3) { animation-delay: .12s; } .hero .rise:nth-child(4) { animation-delay: .18s; } .hero .issue.rise { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.micro { margin-top: .9rem; font-size: var(--small); color: var(--muted); }
.list-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.list-cta p { font: 500 clamp(1.25rem, 1.1rem + .6vw, 1.625rem)/1.25 var(--serif); }
.list-cta em { color: var(--green); }
/* ---------- Pricing: home-page teaser ---------- */
.teaser-cur { margin: 0 0 1.75rem; }
.teaser { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.teaser > div { border-top: 3px double var(--ink); padding-top: 1rem; }
.teaser .amount { font: 500 clamp(2.25rem, 1.8rem + 1.8vw, 3rem)/1 var(--serif); letter-spacing: -.022em; margin: .7rem 0 .4rem; font-variant-numeric: tabular-nums; }
.teaser .amount small { font: 400 var(--small)/1 var(--sans); color: var(--muted); letter-spacing: 0; }
.teaser p:not(.label):not(.amount) { color: var(--muted); font-size: .9688rem; }
.teaser-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.teaser-foot .promise { flex: 1 1 22rem; font: 500 1.25rem/1.3 var(--serif); }
.teaser-foot .promise em { color: var(--green); }

/* ---------- Pricing page ---------- */
.price-hero { padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.price-hero h1 { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5rem); line-height: .98; margin: 1rem 0 1.25rem; }
.page-pricing .rise:nth-child(2) { animation-delay: .06s; } .page-pricing .rise:nth-child(3) { animation-delay: .12s; } .page-pricing .rise:nth-child(4) { animation-delay: .18s; }
.controls { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin: 2rem 0 0; }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 3px; padding: 3px; gap: 3px; background: var(--paper-2); }
.seg button { font: 500 .9375rem/1 var(--sans); color: var(--ink); background: transparent; border: 0; border-radius: 2px; padding: .7rem .95rem; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg button b { font: 500 .6875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); margin-left: .35rem; }
.seg button[aria-checked="true"] { background: var(--green); color: var(--on-green); }
.seg button[aria-checked="true"] b { color: var(--gold); }
.seg button:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.banner { margin-top: 1.25rem; font-size: var(--small); color: var(--muted); max-width: 62ch; padding-left: .9rem; border-left: 3px solid var(--gold); }
.plans-sec { padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.plans3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.plan3 { border-top: 3px double var(--ink); padding: 1.25rem 0 0; position: relative; }
.plan3.pick { background: var(--paper-2); border: 1px solid var(--ink); border-top: 3px double var(--ink); padding: 1.25rem 1.25rem 1.5rem; margin-top: -1.25rem; }
.plan3 .flag { position: absolute; top: -.8rem; left: 1.25rem; background: var(--gold); color: #15181D; font: 500 .6875rem/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; padding: .35rem .55rem; border-radius: 2px; }
.plan3 .who { color: var(--muted); font-size: var(--small); margin-top: .35rem; min-height: 2.6em; }
.plan3 .amount { font: 500 clamp(2.75rem, 2rem + 2.4vw, 3.75rem)/1 var(--serif); letter-spacing: -.022em; margin: 1rem 0 .3rem; font-variant-numeric: tabular-nums; }
.plan3 .per { color: var(--muted); font-size: var(--small); margin-bottom: 1.25rem; min-height: 1.4em; }
.plan3 .founding { font: 400 .8125rem/1.45 var(--mono); color: var(--gold-ink); margin: .9rem 0 0; }
.plan3 .ticks { margin-top: 1.25rem; font-size: .9688rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost:hover { background: var(--paper-3); }
.center { text-align: center; margin: 2rem auto 0; }
.guarantee { background: var(--panel); color: var(--on-panel); border-radius: 4px; padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 1rem + 4vw, 4.5rem); align-items: end; }
.guarantee .label { color: var(--gold); }
.guarantee h2 { font-size: var(--h2); line-height: 1.06; margin-top: .75rem; color: var(--on-panel); }
.guarantee h2 em { color: var(--gold); }
.guarantee p:last-child { color: var(--on-panel-muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.stats div { padding: 1.5rem 1.5rem 1.5rem 0; }
.stats div + div { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.stats dt { font: 400 clamp(2.25rem, 1.8rem + 2vw, 3.25rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.stats dd { margin: .5rem 0 0; color: var(--muted); font-size: var(--small); max-width: 28ch; }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .9375rem; }
.compare thead th { font: 500 .6875rem/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); text-align: center; padding: .6rem .75rem; border-bottom: 2px solid var(--ink); }
.compare thead th.pick { color: var(--ink); }
.compare tbody th { text-align: left; font-weight: 400; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); }
.compare td { text-align: center; padding: 1rem .75rem; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.compare td.pick, .compare th.pick { background: var(--paper-2); }
.compare .no { color: var(--muted); font-size: var(--small); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cta-band { border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) 0; text-align: center; display: grid; justify-items: center; gap: 1rem; }
.cta-band h2 { font-size: var(--h2); line-height: 1.04; }
.cta-band p { color: var(--muted); }
.fineprint { font-size: var(--small); color: var(--muted); max-width: 68ch; }
@media (max-width: 960px) {
  .plans3, .teaser, .guarantee, .stats { grid-template-columns: 1fr; }
  .plan3.pick { margin-top: 1rem; }
  .stats div, .stats div + div { padding: 1.25rem 0; border-left: 0; }
  .stats div + div { border-top: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .compare { min-width: 0; font-size: .8125rem; }
  .compare thead th { font-size: .5625rem; letter-spacing: .05em; padding: .5rem .2rem; }
  .compare tbody th { padding: .8rem .5rem .8rem 0; }
  .compare td { padding: .8rem .2rem; }
  .compare .no { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 960px) {
  .mast nav, .mast .btn { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--ink); color: var(--ink); border-radius: 3px; padding: .55rem .8rem; font: 500 .8125rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
  .sheet { display: block; position: fixed; inset: 0; z-index: 60; background: var(--paper); padding: 1rem var(--gutter) 2rem; transform: translateY(-100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
  .sheet.open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .sheet-top { display: flex; justify-content: space-between; align-items: center; height: 3.25rem; border-bottom: 3px double var(--ink); }
  .sheet ol { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
  .sheet li a { display: flex; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font: 500 1.75rem/1.1 var(--serif); }
  .sheet li a span { font: 400 .75rem/1 var(--mono); color: var(--gold-ink); }
  .hero-grid, .join, .faq-grid { grid-template-columns: 1fr; }
  .issue { border-left: 0; padding-left: 0; border-top: 3px double var(--ink); padding-top: 1rem; }
  .sec-head { grid-template-columns: 1fr; }
  .points, .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps .n { font-size: 2.75rem; margin-bottom: .75rem; }
  .doc-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 640px) {
  .mast-bar { height: 3.5rem; }
  .brand svg { width: 30px; height: 30px; }
  .brand span { font-size: 1.25rem; }
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 1rem 0; border-left: 0; }
  .facts div + div { border-top: 1px solid var(--rule); }
  .funnel { grid-template-columns: 1fr; }
  .funnel div, .funnel div + div { padding: 1rem 0 0; border-left: 0; }
  .row2 { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; justify-content: space-between; }
  /* Ledger becomes stacked entries */
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; }
  .ledger tr { display: grid; grid-template-columns: auto 1fr; gap: .4rem .75rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
  .ledger td { padding: 0; border: 0; }
  .ledger .mkt { grid-column: 1; grid-row: 1; }
  .ledger .title { grid-column: 1 / -1; grid-row: 2; }
  .ledger .num { text-align: left; }
  .ledger td.num::before { content: attr(data-label) " "; color: var(--muted); }
  .ledger .val { grid-column: 1 / -1; }
  .ledger .qa { grid-column: 1 / -1; }
  .ledger .closes { grid-column: 2; grid-row: 1; text-align: right; }
  .ledger .closes::before { content: none !important; }
  .ledger .qa:empty, .ledger .qa.na { display: none; }
  .ledger .tl-cell { grid-column: 1 / -1; width: auto; }
  .faq details p { padding-right: 0; }
}
