:root {
  --ink: #17233f;
  --ink-2: #3c4a66;
  --muted: #56627a;
  --desk: #eef2f7;
  --paper: #ffffff;
  --rule: #d9e0ea;
  --rule-strong: #b7c2d3;
  --highlight: #ffe066;
  --warn: #a23b1c;
  --ok: #1d6b45;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --max: 1120px;
}

* { box-sizing: border-box; }
/* Component display rules (.btn is flex) must not override the hidden attribute. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 17px/1.6 var(--sans);
  color: var(--ink);
  background: var(--desk);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
td, .price, .amount { font-variant-numeric: tabular-nums; }
mark { background: linear-gradient(transparent 12%, var(--highlight) 12%, var(--highlight) 88%, transparent 88%); color: inherit; padding: 0 .2em; }

/* Top bar */
.topbar {
  max-width: var(--max); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.2rem var(--serif); text-decoration: none; }
.topbar nav { display: flex; gap: 22px; }
.topbar nav a { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.topbar nav a:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 40px 24px 0;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start;
  position: relative; z-index: 1; margin-bottom: -64px;
}
.eyebrow { font-weight: 600; color: var(--ink-2); font-size: .95rem; margin-bottom: .8em; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.proof { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.proof li { padding-left: 28px; position: relative; }
.proof li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 8px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; border: 2px solid var(--ink);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #24345c; }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(23, 35, 63, .06); }
.fine { font-size: .92rem; color: var(--muted); margin-top: 12px; }

/* Worksheet */
.worksheet {
  margin: 0; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -18px rgba(23, 35, 63, .35);
  padding: 22px 24px 18px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 43px, var(--rule) 43px 44px);
  background-position: 0 104px; background-repeat: no-repeat; background-size: 100% calc(100% - 150px);
}
.ws-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 4px; }
.ws-kicker { font: 600 .8rem var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 4px; }
.ws-head h2 { font-size: 1.35rem; margin: 0; }
.tag { flex: none; font-size: .78rem; font-weight: 600; border: 1px solid var(--rule-strong); color: var(--ink-2); border-radius: 999px; padding: 3px 10px; background: #f6f8fb; }
.ws-table { width: 100%; border-collapse: collapse; }
.ws-table th, .ws-table td { padding: 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ws-table th { text-align: left; font-weight: 500; padding-right: 12px; }
.ws-table th small { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; margin-left: 44px; }
.ws-table td { text-align: right; white-space: nowrap; font-family: var(--mono); font-size: .98rem; }
.ln { display: inline-block; width: 44px; font: 600 .85rem var(--mono); color: var(--muted); }
.ws-table tr.total th, .ws-table tr.total td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; padding-top: 14px; }
.worksheet figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* Bands and sections */
.band { background: var(--ink); color: #fff; padding: 112px 24px 64px; }
.band a { color: #fff; }
.band-quiet { background: #dfe6f0; color: var(--ink); padding: 56px 24px; }
.band-inner { max-width: var(--max); margin: 0 auto; }
.band-inner.narrow { max-width: 640px; }
.band p { color: inherit; opacity: .92; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.walk { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.06); border-radius: var(--radius); }
.walk th, .walk td { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.18); }
.walk th { text-align: left; font-weight: 500; }
.walk td { text-align: right; font-family: var(--mono); white-space: nowrap; }
.walk tr.total th, .walk tr.total td { border-bottom: 0; font-weight: 700; }
.walk mark { color: var(--ink); }
.walk tr.memo th, .walk tr.memo td { border-top: 1px dashed rgba(255,255,255,.3); border-bottom: 0; font-size: .9rem; opacity: .85; }

.section { max-width: var(--max); margin: 0 auto; padding: 72px 24px; }
.section-lede { color: var(--ink-2); max-width: 46em; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 1rem var(--mono); margin-bottom: 14px; }
.steps p { color: var(--ink-2); margin: 0; }

.table-scroll { overflow-x: auto; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); margin-top: 20px; }
.listings { width: 100%; border-collapse: collapse; min-width: 560px; }
.listings th, .listings td { padding: 13px 18px; border-bottom: 1px solid var(--rule); text-align: right; }
.listings thead th { font-size: .85rem; color: var(--muted); font-weight: 600; background: #f6f8fb; }
.listings th:first-child { text-align: left; }
.listings tbody th { font-weight: 600; }
.listings td { font-family: var(--mono); font-size: .95rem; }
.listings tbody tr:last-child > * { border-bottom: 0; }

.price-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; margin-top: 20px; }
.price { font-size: 1.1rem; margin-bottom: .4em; }
.amount { font: 700 3rem/1 var(--serif); margin-right: 6px; }
.offers { margin: 0; padding-left: 20px; display: grid; gap: 12px; }

/* Waitlist form */
#waitlist-form label[for="email"] { display: block; font-weight: 600; margin-bottom: 6px; }
.field-row { display: flex; gap: 10px; }
.field-row input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 8px; border: 2px solid transparent;
  font: 1rem var(--sans); color: var(--ink); background: #fff;
}
.field-row input:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }
.field-row input[aria-invalid="true"] { border-color: #ffb199; }
#waitlist .btn-primary { background: var(--highlight); color: var(--ink); border-color: var(--highlight); }
#waitlist .btn-primary:hover { background: #ffd633; }
#waitlist :focus-visible { outline-color: var(--highlight); }
.error { margin: 8px 0 0; font-weight: 600; color: #ffc9b8; }
.check { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.form-status.is-success { background: #e3f4ea; color: var(--ok); }
.form-status.is-warning { background: #fff1e8; color: var(--warn); }

details { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0 20px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; }
details p { color: var(--ink-2); }

.footer { max-width: var(--max); margin: 0 auto; padding: 24px 24px 48px; border-top: 1px solid var(--rule-strong); font-size: .9rem; color: var(--muted); }

/* Guide pages: one reading column built around the worksheet */
.guide { max-width: 760px; margin: 0 auto; padding: 32px 24px 72px; }
.guide-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.guide-head .lede { max-width: none; }
.guide section, .guide aside { margin-top: 56px; }
.guide h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.guide p, .guide li { max-width: 40em; }
.guide code { font: .92em var(--mono); background: #f6f8fb; border: 1px solid var(--rule); border-radius: 4px; padding: 0 .3em; }
.guide-ws { margin-top: 36px; background-position: 0 104px; }
.guide-ws .ws-table tr.total + tr th, .guide-ws .ws-table tr.total + tr td { padding-top: 14px; }
.facts, .walk-steps { padding-left: 22px; display: grid; gap: 12px; }
.facts li::marker { color: var(--ok); }
.walk-steps li::marker { font: 700 1rem var(--mono); }
.guide-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 32px 28px; }
.guide-band .table-scroll { background: transparent; border-color: rgba(255,255,255,.25); }
.where { width: 100%; border-collapse: collapse; min-width: 560px; }
.where th, .where td { padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.18); text-align: left; vertical-align: top; }
.where thead th { font-size: .85rem; font-weight: 600; opacity: .8; }
.where tbody th { font-weight: 600; }
.where tbody tr:last-child > * { border-bottom: 0; }
.where code, .guide-band code { color: var(--ink); background: var(--highlight); border-color: var(--highlight); }
.guide-band > p { margin: 20px 0 0; opacity: .92; }
.guide-band a { color: #fff; text-decoration-color: var(--highlight); }
.thresholds { width: 100%; max-width: 40em; border-collapse: collapse; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 1em; }
.thresholds th, .thresholds td { padding: 12px 18px; border-bottom: 1px solid var(--rule); text-align: left; }
.thresholds th { font-weight: 500; }
.thresholds td { font-family: var(--mono); text-align: right; white-space: nowrap; }
.thresholds tr:last-child > * { border-bottom: 0; }
.guide-cta { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px; }
.sources ul { padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.faq-more { margin-top: 18px; }
.dl-list { margin-top: 36px; background-image: none; }
.dl-files { list-style: none; counter-reset: dl; margin: 8px 0 0; padding: 0; }
.dl-files li { counter-increment: dl; position: relative; padding: 16px 0 16px 44px; border-top: 1px solid var(--rule); }
.dl-files li:first-child { border-top: 0; }
.dl-files li::before { content: counter(dl); position: absolute; left: 0; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 .9rem/28px var(--mono); text-align: center; }
.dl-files p { margin: 0; max-width: none; }
.dl-name { font-weight: 700; font-size: 1.08rem; }
.dl-count { margin-left: 8px; white-space: nowrap; font: 600 .75rem var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dl-path { margin-top: 4px !important; font: .9rem var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.dl-path::before { content: ""; display: inline-block; width: 4px; height: 1em; margin-right: 8px; vertical-align: -2px; background: var(--highlight); }
.dl-use { margin-top: 6px !important; color: var(--ink-2); }
.dl-list figcaption { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--rule); }
.fee-ws { margin-top: 36px; background-image: none; }
.fee-table tr.line th { font-weight: 600; padding-left: 44px; text-indent: -44px; }
.fee-table tr.line th small, .fee-table .ln { text-indent: 0; }
.fee-table tr.line th small { margin-left: 0; }
.fee-table tr.line:not(:first-child) th, .fee-table tr.line:not(:first-child) td { padding-top: 16px; }
.fee-table tr.sub th, .fee-table tr.sub td { padding: 5px 0; font-size: .88rem; color: var(--ink-2); border-bottom-style: dotted; }
.fee-table tr.sub th { padding-left: 44px; font-family: var(--mono); font-weight: 400; overflow-wrap: anywhere; }
.fee-table tr.sub th i { font-family: var(--sans); }
.fee-ws figcaption { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--rule); }
.cogs-table tr.part th { padding: 20px 0 6px; font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--rule-strong); }
.cogs-table tbody:first-child tr.part th { padding-top: 8px; }
.cogs-table tr.line:not(:first-child) th, .cogs-table tr.line:not(:first-child) td { padding-top: 10px; }
.cogs-table tr.step th, .cogs-table tr.step td { border-top: 1px solid var(--ink); }
.cogs-table tr.line th { font-weight: 500; }
.cogs-table tr.step th, .cogs-table tr.total th { font-weight: 700; }
.unit-ws { margin: 24px 0; }
.unit-ws .ws-head h3 { font-size: 1.15rem; margin: 0; }
.unit-table thead th { font: 600 .75rem var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 0 6px; }
.unit-table thead th:not(:first-child) { text-align: right; }
.unit-table td:nth-child(2) { color: var(--ink-2); font-size: .9rem; padding-right: 12px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; }
  .two-col, .price-card { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar nav a:not(.nav-app) { display: none; }
  .worksheet { padding: 18px 16px 14px; }
  .ln { width: 34px; }
  .ws-table th small { margin-left: 34px; }
  .field-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .walk th, .walk td { padding: 12px; }
  .guide { padding-top: 16px; }
  .dl-files li { padding-left: 38px; }
  .fee-table tr.sub th { padding-left: 34px; }
  .fee-table tr.line th { padding-left: 34px; text-indent: -34px; }
  .fee-ws .ws-head { flex-direction: column-reverse; gap: 8px; }
  .unit-table td:nth-child(2) { font-size: .82rem; padding-right: 8px; }
  .guide-band, .guide-cta { padding: 24px 18px; margin-left: -8px; margin-right: -8px; }
  .thresholds th, .thresholds td { padding: 10px 12px; }
  .thresholds td { white-space: normal; }
}
