:root {
  /* layout: one reading column of about 46rem; tables and the quote panel may run wider */
  --bg: #f4f6f7;
  --surface: #ffffff;
  --ink: #14212d;
  --muted: #556474;
  --line: #d5dce2;
  --accent: #0b6b62;
  --accent-ink: #ffffff;
  --data: #9a5b00;
  --data-bg: #fdf3df;
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f171e; --surface: #17222c; --ink: #e8eef2; --muted: #9eadb9; --line: #2c3a46;
    --accent: #4fc3b5; --accent-ink: #06211e; --data: #f0b95a; --data-bg: #2c2414;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f171e; --surface: #17222c; --ink: #e8eef2; --muted: #9eadb9; --line: #2c3a46;
  --accent: #4fc3b5; --accent-ink: #06211e; --data: #f0b95a; --data-bg: #2c2414;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font-body); }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--data); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; font-weight: 600; margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 1.4rem 0 0.35rem; }
p { margin: 0 0 0.9rem; }

.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding: 0.9rem max(16px, calc((100% - 60rem) / 2)); background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { font: 700 1.1rem var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.brand b { color: var(--accent); }
.site-head nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; font-size: 0.98rem; }
.site-head nav a, .site-head nav span { color: var(--ink); text-decoration: none; }

main { max-width: 60rem; margin: 0 auto; padding: 1.5rem 16px 3rem; display: flex; flex-direction: column; }
.view { display: flex; flex-direction: column; gap: 2.25rem; }
main > section, main > header, main > aside, main > nav { margin-bottom: 2.25rem; }
.view > * { margin-bottom: 0; }
section > p, section > ul.ticks, .page-head > p, .faq p, .method p, .method ol { max-width: 46rem; }

.crumbs { font-size: 0.9rem; color: var(--muted); }
.crumbs span { margin: 0 0.35rem; }
.eyebrow { font: 600 0.82rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--data); margin-bottom: 0.5rem; }
.page-head h1 { margin-bottom: 1rem; }
.answer { font-size: 1.2rem; line-height: 1.55; padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.page-head p:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 1.1rem 0 0; }

.btn, .quote-form button { display: inline-block; background: var(--accent); color: var(--accent-ink); font: 600 1rem var(--font-display); padding: 0.75rem 1.25rem; border: 0; border-radius: 6px; text-decoration: none; cursor: pointer; }
.btn.sm { padding: 0.45rem 0.9rem; font-size: 0.92rem; }
.site-head nav .btn { color: var(--accent-ink); }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.trust > div { background: var(--surface); padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.1rem; font-size: 0.95rem; }
.lbl { font: 600 0.74rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.note { color: var(--muted); font-size: 0.93rem; }

.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin-bottom: 0.9rem; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.98rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 0.7rem 0.9rem; color: var(--muted); font-size: 0.9rem; border-bottom: 1px solid var(--line); }
th, td { text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font: 600 0.8rem var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
tbody th { font-weight: 600; }
td.hl { background: var(--data-bg); color: var(--data); font-weight: 600; white-space: nowrap; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 0.75rem; margin-bottom: 1.1rem; }
.facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.num { font: 700 1.6rem var(--font-display); color: var(--data); font-variant-numeric: tabular-nums; }
.cap { color: var(--muted); font-size: 0.92rem; line-height: 1.35; }

.cards { list-style: none; padding: 0; margin: 0 0 0.9rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.6rem; }
.cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.75rem 0.9rem; display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; }
.cards li span:not(.soon) { font-weight: 400; color: var(--muted); font-size: 0.93rem; }
.soon { color: var(--ink); }
.is-preview .soon::after { content: " (in full build)"; font-weight: 400; font-size: 0.8rem; color: var(--muted); }

.ticks { list-style: none; padding: 0; margin: 0 0 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; }
.ticks li { padding-left: 1.5rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.5em; width: 0.7rem; height: 0.38rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.quote { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 8px; padding: 1.4rem; }
.quote-copy, .quote-form { min-width: 0; }
.quote-form { display: flex; flex-direction: column; gap: 0.35rem; }
.quote-form label, .calc label { font-weight: 600; font-size: 0.95rem; margin-top: 0.45rem; }
input, select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0.6rem 0.7rem; width: 100%; }
.quote-form button { margin-top: 0.9rem; }
.form-msg { margin: 0.5rem 0 0; font-weight: 600; color: var(--data); min-height: 1.4em; }
.fine { font-size: 0.86rem; color: var(--muted); margin: 0.4rem 0 0; }

.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; margin-bottom: 0.9rem; }
.calc-in { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.calc-out { background: var(--data-bg); border-radius: 8px; padding: 1.1rem; display: flex; flex-direction: column; justify-content: center; gap: 0.3rem; min-width: 0; }
.big { font: 700 clamp(1.4rem, 4vw, 1.9rem) var(--font-display); color: var(--data); font-variant-numeric: tabular-nums; }

.faq h3 { margin-top: 1.2rem; }
.method { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem; }
.steps { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.sources { padding-left: 1.2rem; font-size: 0.95rem; display: flex; flex-direction: column; gap: 0.25rem; overflow-wrap: anywhere; }
.log ul { padding-left: 1.2rem; }

.site-foot { border-top: 1px solid var(--line); padding: 1.5rem max(16px, calc((100% - 60rem) / 2)); color: var(--muted); font-size: 0.92rem; }
.site-foot p { max-width: 46rem; margin: 0; }

.preview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.6rem max(16px, calc((100% - 60rem) / 2)); background: var(--ink); color: var(--bg); font-size: 0.92rem; }
.preview-bar .tag { font: 600 0.72rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 4px; padding: 0.1rem 0.45rem; }
.preview-bar nav { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.preview-bar a { color: inherit; text-decoration: none; padding: 0.3rem 0.7rem; border-radius: 999px; }
.preview-bar a.on { background: var(--bg); color: var(--ink); font-weight: 600; }
.preview-bar .url { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82rem; opacity: 0.8; overflow-wrap: anywhere; }
.js .view:not(.on) { display: none; }

.hero h1 { max-width: 22ch; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem 2rem; }
.two > div { min-width: 0; }
.two h3 { margin-top: 0; }
.dots { padding-left: 1.2rem; margin: 0 0 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; max-width: 46rem; }
.steps.big { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; max-width: none; }
.steps.big li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem 1rem 0.9rem 3.2rem; position: relative; }
.steps.big li::before { content: counter(s); position: absolute; left: 1rem; top: 0.85rem; font: 700 1.5rem var(--font-display); color: var(--data); }
.cards li a { text-underline-offset: 3px; }
.quote-form.multi { max-width: 36rem; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 8px; padding: 1.4rem; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
fieldset[hidden] { display: none; }
legend { font: 600 1.15rem var(--font-display); padding: 0; margin-bottom: 0.4rem; }
textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0.6rem 0.7rem; width: 100%; resize: vertical; }
.progress { list-style: none; display: flex; gap: 0.4rem; padding: 0; margin: 0 0 1rem; font-size: 0.82rem; color: var(--muted); }
.progress li { flex: 1; border-top: 3px solid var(--line); padding-top: 0.3rem; }
.progress li.on { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400 !important; font-size: 0.95rem; }
.check input { width: auto; margin-top: 0.3rem; flex: none; }
.nav { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.nav button { font: 600 1rem var(--font-display); padding: 0.7rem 1.2rem; border-radius: 6px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; margin: 0; }
.nav button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.nav button[hidden] { display: none; }
.site-foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem 2rem; margin-bottom: 1.25rem; }
.site-foot .cols div { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
a.brand { text-decoration: none; }
.preview-bar label { font-weight: 600; }
.preview-bar select { width: auto; max-width: min(100%, 24rem); padding: 0.3rem 0.5rem; background: var(--bg); color: var(--ink); }
.preview-bar .count { opacity: 0.8; }

.photo { margin: 0 0 2.25rem; min-width: 0; }
.photo img { display: block; width: 100%; height: auto; max-height: 27rem; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.photo figcaption { margin-top: 0.45rem; font-size: 0.86rem; color: var(--muted); overflow-wrap: anywhere; }
.photo figcaption a { color: inherit; }
