/* Design pass 2026-09-30 Wed: editorial footer colophon + step numerals */
/* Design pass 2026-09-29 Tue: open phone nav scrolls inside viewport */
/* Design pass 2026-09-09 Wed: sticky header + gold CTAs + chapter rules */
/* Design pass 2026-09-16 Wed: eyebrow soften + table polish */
/* Design pass 2026-09-23 Wed: editorial pull-band + card gold rail */
:root {
  --ink: #141210;
  --paper: #f7f3ec;
  --fog: #ece6dc;
  --card: #fffdf8;
  --mute: #6b655c;
  --line: #d9d1c4;
  --accent: #b08a3e;
  --good: #1f5c45;
  --good-bg: #e7f2ec;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  line-height: 1.55;
}
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
header.site {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px 0 16px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mark {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 700; letter-spacing: 0.06em; font-size: 13px;
  text-transform: uppercase; text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
nav.site {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: ui-sans-serif, system-ui, sans-serif; font-size: 13px;
}
nav.site a { text-decoration: none; color: var(--mute); transition: color 0.15s ease; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; text-decoration: none;
  font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 600; font-size: 14px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(0.95); background: #9a7634; border-color: #9a7634; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); filter: none; }
.btn.ghost:hover { background: var(--fog); filter: none; }
.hero {
  padding: 72px 0 56px;
  border-left: 3px solid var(--accent);
  padding-left: 28px;
  margin-left: -3px;
}
p.eyebrow, .eyebrow {
  /* 2026-09-16 Wed: soften vs uppercase .mark; beat .prose p */
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px; letter-spacing: 0.02em; text-transform: none;
  color: var(--mute); margin: 0 0 16px;
}
h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.05; font-weight: 500; margin: 0 0 22px; max-width: 16ch; letter-spacing: -0.01em; }
h1.long { max-width: 22ch; }
.lede { font-size: 20px; max-width: 46ch; margin: 0 0 28px; color: #2b2824; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.band {
  /* 2026-09-23 Wed: leave SaaS strip; editorial pull-band */
  background: var(--ink); color: var(--paper);
  padding: 44px 0;
  border-top: 3px solid var(--accent);
}
.band .wrap {
  position: relative;
  padding-left: 28px;
}
.band .wrap::before {
  content: "";
  position: absolute;
  left: 0; top: 0.15em; bottom: 0.15em;
  width: 3px;
  background: var(--accent);
}
.band p {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.45;
  font-style: italic;
  font-weight: 400;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 48px 0; }
.stat { border-top: 2px solid var(--accent); padding-top: 16px; }
.stat b { display: block; font-size: 28px; font-weight: 500; color: var(--accent); }
.stat span { color: var(--mute); font-size: 14px; }
section { padding: 56px 0; }
h2 { font-size: 32px; font-weight: 500; margin: 0 0 20px; }
h2.section-title, section > h2 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
h3 { font-size: 20px; font-weight: 500; margin: 0 0 8px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
article.card, .card {
  /* 2026-09-23 Wed: gold left rail (matches chapter / hero rules) */
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 22px 22px 22px 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
article.card:hover, .card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px -18px rgba(20, 18, 16, 0.35);
}
article.card p, .card p { margin: 0; color: #3a362f; }
ol.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
ol.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.n {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px; color: var(--accent); padding-top: 4px;
}
/* 2026-09-30 Wed: gold-outline discs for how-it-works markers */
ol.steps .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  box-sizing: border-box;
}
/* 2026-09-30 Wed: editorial footer colophon */
footer.site {
  border-top: 3px solid var(--accent);
  padding: 44px 0 56px;
  color: var(--mute); font-size: 13px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  background: color-mix(in srgb, var(--fog) 62%, var(--paper));
}
footer.site p { margin: 0 0 8px; }
footer.site > p:first-of-type {
  color: #3a362f; font-size: 14px; max-width: 70ch;
}
footer.site > p:nth-of-type(2) {
  color: var(--mute); font-size: 12px;
}
.note { font-size: 14px; color: var(--mute); max-width: 70ch; }
.prose { padding: 40px 0 72px; }
.prose h1 { max-width: none; font-size: clamp(32px, 5vw, 48px); }
.prose h2 {
  margin-top: 48px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}
.prose p { font-size: 18px; }
.prose p.eyebrow, .prose .eyebrow {
  font-size: 13px; letter-spacing: 0.02em; text-transform: none;
  color: var(--mute); font-family: ui-sans-serif, system-ui, sans-serif;
}
.prose ul, .prose ol { font-size: 18px; }
.toc { list-style: none; padding: 0; margin: 0 0 40px; border-top: 1px solid var(--line); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; text-decoration: none;
  font-family: ui-sans-serif, system-ui, sans-serif; font-size: 15px;
}
.toc span { color: var(--mute); }
table {
  /* 2026-09-16 Wed: prose/comparison table polish */
  width: 100%; border-collapse: collapse; font-size: 15px;
  font-family: ui-sans-serif, system-ui, sans-serif; margin: 20px 0 28px;
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line);
}
th, td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--ink); font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--fog);
  border-bottom: 1px solid var(--line);
}
tbody tr:last-child td { border-bottom: none; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
label.field {
  display: block; font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mute); margin: 16px 0 6px;
}
input[type="number"], select {
  width: 100%; min-height: 46px; padding: 0 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 16px ui-sans-serif, system-ui, sans-serif;
}
.range { width: 100%; }
.out-big { font-size: 40px; font-weight: 500; color: var(--accent); margin: 0; }
.out-sub { color: var(--mute); margin: 4px 0 0; font-size: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.save {
  background: var(--good-bg); color: var(--good);
  border: 1px solid #c5ddd1; padding: 16px 18px; margin-top: 16px;
}
.save b { display: block; font-size: 18px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq p { margin: 10px 0 0; color: #3a362f; }
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; width: 100%;
}
.nav-toggle {
  display: none;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px; font-weight: 600;
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--fog); }

@media (max-width: 720px) {
  .stats, .grid, .calc-grid, .split { grid-template-columns: 1fr; }
  header.site {
    align-items: stretch; flex-direction: column; gap: 0;
    padding: 14px 0 12px;
  }
  .hero { padding: 40px 0 32px; padding-left: 18px; border-left-width: 2px; }
  .band { padding: 32px 0; }
  .band .wrap { padding-left: 18px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  nav.site {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
  }
  nav.site.is-open { display: flex; }
  /* 2026-09-29 Tue: sticky open nav was taller than short phones; scroll inside viewport */
  header.site:has(nav.site.is-open) {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--paper);
  }
  nav.site.is-open a {
    color: var(--ink);
    padding: 14px 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }
  nav.site.is-open a:hover,
  nav.site.is-open a[aria-current="page"] { color: var(--ink); }
  nav.site.is-open a:last-child { border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] {
    color: var(--ink);
    border-color: var(--ink);
    font-weight: 700;
  }
  h1 { max-width: none; }
}

/* 2026-09-20 Sun: accountants firm cards */
.firm-disclosure { margin: 0 0 28px; max-width: 70ch; }
.province-heading {
  font-size: 22px; font-weight: 500; margin: 40px 0 16px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.province-heading:first-of-type { margin-top: 12px; }
.province-count {
  font-size: 13px; font-weight: 600; color: var(--mute);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.firm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.firm-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px;
  transition: border-color 0.15s ease;
}
.firm-card:hover { border-color: var(--accent); }
.firm-card h3 { margin: 0 0 6px; font-size: 18px; }
.firm-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.badge-featured, .badge-verified {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 8px;
  border: 1px solid var(--line);
}
.badge-featured {
  background: color-mix(in srgb, var(--accent) 18%, var(--card));
  border-color: var(--accent); color: #6b5218;
}
.badge-verified {
  background: var(--fog); color: var(--mute);
}
.badge-verified.badge-partial {
  background: transparent; color: var(--mute);
}
.firm-meta {
  margin: 0 0 10px; font-size: 14px; color: var(--mute);
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.firm-notes { margin: 0 0 12px; color: #3a362f; font-size: 15px; }
.firm-site {
  margin: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
}
.firm-site a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
.firm-site a:hover { border-bottom-color: var(--accent); }

@media (max-width: 720px) {
  .firm-grid { grid-template-columns: 1fr; }
}

/* 2026-09-21 Mon: brokers comparison table scroll assist */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0 28px;
}
.mute-cell { color: var(--mute); font-size: 13px; font-weight: 400; }

/* 2026-09-22 Tue: sticky first column + scroll cue (needs border-collapse:separate) */
.table-scroll {
  position: relative;
}
.table-scroll::after {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 28px;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--paper) 85%, transparent));
}
@media (min-width: 721px) {
  .table-scroll::after { display: none; }
}
.table-scroll table {
  margin: 0;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
}
.table-scroll th:first-child,
.table-scroll td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--card);
  box-shadow: 4px 0 8px -4px rgba(20, 18, 16, 0.18);
}
.table-scroll thead th:first-child {
  background: var(--fog);
  z-index: 2;
}
@media (max-width: 720px) {
  .table-scroll {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* 2026-09-28 Mon: cutover batch 1, callouts + quotes in prose */
.prose .callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 18px 20px;
  margin: 24px 0;
}
.prose .callout p { margin: 0 0 10px; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .callout p.eyebrow { margin: 0 0 8px; }
.prose .callout ul, .prose .callout ol { margin: 8px 0 10px; }
.prose .callout h3 { margin-top: 0; }
.prose blockquote {
  margin: 24px 0; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--line); color: #3a362f;
}
.prose h3 { margin-top: 28px; }

/* 2026-09-28 Mon: interactive comparison (bitcoin-vs-gold-sp500) + tool chips */
.btn.chip { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chart-card { padding: 16px; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-box .grid-line { stroke: var(--line); stroke-width: 1; }
.chart-box .axis { font: 11px ui-sans-serif, system-ui, sans-serif; fill: var(--mute); }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; font: 13px ui-sans-serif, system-ui, sans-serif; color: var(--mute); margin-bottom: 8px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: baseline; }
.dot-btc { background: #c26a1b; } .dot-gold { background: #b08a3e; } .dot-sp { background: #1f5c45; }
.stat-card .out-big { font-size: 30px; }
dl.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 14px 0 0; font: 14px ui-sans-serif, system-ui, sans-serif; }
dl.kv dt { color: var(--mute); } dl.kv dd { margin: 0; text-align: right; font-weight: 600; }
table.mini { margin: 0; font-size: 14px; } table.mini td, table.mini th { padding: 6px 8px; }
.pct-up { color: var(--good); } .pct-down { color: #9b2c1f; }
.th-sort { all: unset; cursor: pointer; }
.th-sort[aria-sort="descending"]::after { content: " \2193"; }
@media (max-width: 720px) {
  #statCards, .grid[style*="repeat(3"] { grid-template-columns: 1fr !important; }
}

/* 2026-09-28 Mon: risk analyzer quiz */
fieldset.quiz-q { margin: 0 0 18px; min-width: 0; }
fieldset.quiz-q legend { font-size: 20px; font-weight: 500; padding: 0; margin-bottom: 6px; float: left; width: 100%; }
fieldset.quiz-q legend .n { display: block; margin-bottom: 4px; }
fieldset.quiz-q legend + * { clear: both; }
.quiz-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); margin-top: 8px; cursor: pointer; background: #fff; font-family: ui-sans-serif, system-ui, sans-serif; }
.quiz-opt:hover { border-color: var(--accent); }
.quiz-opt input { margin-top: 4px; accent-color: var(--accent); }
.quiz-opt b { display: block; font-size: 15px; }
.quiz-opt small { display: block; color: var(--mute); font-size: 13px; }
.quiz-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.alloc-bar { height: 10px; background: var(--fog); margin-top: 16px; }
.alloc-bar span { display: block; height: 100%; background: var(--accent); }
.alloc-labels { display: flex; justify-content: space-between; font: 12px ui-sans-serif, system-ui, sans-serif; color: var(--mute); margin-top: 4px; }
ul.quiz-why { margin: 8px 0 0; padding-left: 20px; } ul.quiz-why li { margin-bottom: 6px; }
footer.site a { color: inherit; text-decoration: underline; }
footer.site a:hover { color: var(--accent); }
/* 2026-09-30 Wed: soft gold selection highlight */
::selection {
  background: color-mix(in srgb, var(--accent) 28%, var(--paper));
  color: var(--ink);
}
