/* ==========================================================================
   Wedding Budget Lab — design system (spec §12)
   Sage + champagne on warm ivory. Serif headlines, Inter UI, tabular figures.
   ========================================================================== */

:root {
  --sage: #2F4A3C;
  --sage-ink: #22382D;
  --sage-80: rgba(47, 74, 60, .8);
  --sage-12: rgba(47, 74, 60, .12);
  --sage-06: rgba(47, 74, 60, .06);
  --gold: #C6A15B;
  --gold-deep: #A8843F;           /* gold text on light grounds (contrast) */
  --gold-20: rgba(198, 161, 91, .2);
  --gold-10: rgba(198, 161, 91, .1);
  --ivory: #FAF6F0;
  --ivory-deep: #F3ECE1;
  --surface: #FFFFFF;
  --ink: #262626;
  --muted: #6B6B6B;
  --line: #E7E0D5;
  --line-strong: #D8CFC1;
  --track: #ECE6DC;
  --success: #4C9A6C;
  --warning: #C4704F;

  --serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(38, 38, 38, .04), 0 8px 24px -12px rgba(47, 74, 60, .18);
  --shadow-lg: 0 2px 4px rgba(38, 38, 38, .04), 0 24px 48px -24px rgba(47, 74, 60, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[x-cloak] { display: none !important; }
::selection { background: var(--gold-20); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); color: var(--sage); font-weight: 500; letter-spacing: -.01em; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
h1 em, h2 em { font-style: italic; color: var(--sage); }
p { margin: 0 0 1em; }
.num, .tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "lnum" 1; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.eyebrow--center::after { content: ""; width: 22px; height: 1px; background: var(--gold); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 40em; line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }

/* ---------- Flourish divider ---------- */
.flourish { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 28px auto; max-width: 240px; }
.flourish span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.flourish span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.flourish svg { width: 18px; height: 18px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--h); padding: 0 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s, color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(198, 161, 91, .9); }
.btn--gold:hover { background: #CFAD6B; transform: translateY(-1px); }
.btn--outline { border-color: var(--sage); color: var(--sage); background: transparent; }
.btn--outline:hover { background: var(--sage); color: var(--ivory); }
.btn--ghost { color: var(--sage); padding-inline: .6em; min-height: 40px; }
.btn--ghost:hover { background: var(--sage-06); }
.btn--sm { --h: 38px; font-size: .85rem; padding-inline: 1.05em; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link { color: var(--sage); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--sage); }
.arrow-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--sage); text-decoration: none; font-size: .92rem; }
.arrow-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ivory); transition: box-shadow .3s, background-color .3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(47, 74, 60, .35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sage); }
.brand svg { width: 34px; height: 34px; }
.brand b { font: 500 1.28rem/1 var(--serif); letter-spacing: -.01em; }
.brand b i { color: var(--gold-deep); font-style: italic; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--sage); font-size: .92rem; font-weight: 500; transition: background-color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background: var(--sage-06); }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); place-items: center; color: var(--sage); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-dropdown { position: relative; }
.nav-dropdown > button { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 10px 14px; border-radius: 999px; color: var(--sage); font-size: .92rem; font-weight: 500; }
.nav-dropdown > button:hover { background: var(--sage-06); }
.nav-dropdown > button svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-dropdown.is-open > button svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; width: 340px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
}
.nav-menu a { display: grid !important; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px !important; border-radius: 10px !important; }
.nav-menu a:hover { background: var(--ivory) !important; }
.nav-menu strong { display: block; font-size: .92rem; color: var(--sage); }
.nav-menu small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; line-height: 1.35; }

@media (max-width: 920px) {
  .nav-toggle { display: grid; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 24px; background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(47, 74, 60, .3); display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 8px; border-radius: 8px; }
  .nav .btn { margin: 10px 0 0; }
  .nav-dropdown > button { display: none; }
  .nav-menu { position: static; translate: none; width: auto; display: block !important; box-shadow: none; border: 0; padding: 0; background: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); text-align: center; position: relative; }
.hero .lede { margin: 18px auto 0; }
.hero h1 { margin-top: 18px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 4px; color: var(--muted); font-size: .86rem; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--gold-deep); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: clamp(20px, 3vw, 32px); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.card-head h2 { font-size: 1.55rem; }
.step-no { font: italic 500 1rem/1 var(--serif); color: var(--gold-deep); margin-right: 10px; }

/* ---------- Form controls ---------- */
.field { display: grid; gap: 10px; }
.field + .field { margin-top: 24px; }
.field-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .86rem; font-weight: 600; color: var(--sage); }
.field-label span { display: inline-flex; align-items: center; gap: 8px; }
.field-label svg { width: 17px; height: 17px; color: var(--gold-deep); }
.field-hint { font-size: .8rem; color: var(--muted); font-weight: 400; }

.money-input { position: relative; display: flex; align-items: center; }
.money-input input, .text-input, .select {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  font-size: 1.05rem; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.money-input input { padding-left: 32px; font-weight: 600; font-size: 1.35rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.money-input::before { content: "$"; position: absolute; left: 16px; color: var(--muted); font-size: 1.15rem; font-weight: 500; pointer-events: none; }
.money-input.no-prefix input { padding-left: 16px; }
.money-input.no-prefix::before { content: none; }
.money-input .suffix { position: absolute; right: 16px; color: var(--muted); font-size: .9rem; pointer-events: none; }
.money-input input:focus, .text-input:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-10); }
.select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%232F4A3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field + .field { margin-top: 0; }
.date-pair { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }

/* Range slider — gold fill, 44px touch target */
.range { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; touch-action: pan-y; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--gold) 0 var(--p), var(--track) var(--p) 100%); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--track); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--gold); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--gold); box-shadow: 0 2px 8px rgba(47, 74, 60, .25);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); box-shadow: 0 2px 8px rgba(47, 74, 60, .25); }
.range:hover::-webkit-slider-thumb, .range:focus-visible::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 8px var(--gold-10), 0 2px 8px rgba(47, 74, 60, .25); }
.range:focus-visible { outline: none; }
.range-scale { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-top: -6px; font-variant-numeric: tabular-nums; }

/* Segmented priority cards */
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice label {
  display: grid; gap: 4px; height: 100%; min-height: 76px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.choice label strong { font-size: .88rem; color: var(--sage); font-weight: 600; line-height: 1.25; }
.choice label small { font-size: .75rem; color: var(--muted); line-height: 1.35; }
.choice label:hover { border-color: var(--sage-80); }
.choice input:checked + label { border-color: var(--gold); background: var(--gold-10); box-shadow: inset 0 0 0 1px var(--gold); }
.choice input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 640px) { .choices { grid-template-columns: 1fr 1fr; } }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: .9rem; color: var(--ink); user-select: none; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--line-strong); transition: background-color .25s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .3s var(--ease); }
.switch input:checked + .track { background: var(--sage); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Calculator layout ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 72px; }
.calc-main { display: grid; gap: 28px; }
.calc-aside { position: sticky; top: 92px; }
@media (max-width: 1020px) {
  .calc { grid-template-columns: 1fr; }
  .calc-aside { position: static; }
}

/* Category rows */
.toolbar { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.alloc-meter { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--ivory); border-radius: 10px; margin-bottom: 8px; font-size: .86rem; }
.alloc-meter .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; position: relative; }
.alloc-meter .bar i { position: absolute; inset: 0 auto 0 0; background: var(--sage); border-radius: 6px; transition: width .4s var(--ease); }
.alloc-meter b { font-variant-numeric: tabular-nums; color: var(--sage); }

.cat-list { list-style: none; margin: 0; padding: 0; }
.cat {
  display: grid; grid-template-columns: 44px minmax(0, 1.25fr) minmax(130px, 1fr) 62px 92px; align-items: center; gap: 4px 16px;
  padding: 14px 10px; margin-inline: -10px; border-radius: 10px; border-bottom: 1px solid var(--line); transition: background-color .25s;
}
.cat:last-child { border-bottom: 0; }
.cat:hover, .cat.is-hot { background: var(--ivory); }
.cat-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-06); color: var(--sage); transition: background-color .25s, color .25s; }
.cat.is-hot .cat-icon { background: var(--gold-20); color: var(--gold-deep); }
.cat-icon svg { width: 20px; height: 20px; }
.cat-name { min-width: 0; }
.cat-name strong { display: block; color: var(--sage); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.cat-name small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: .78rem; line-height: 1.4; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: .68rem; font-weight: 600; letter-spacing: .02em; border: 1px solid; white-space: nowrap; }
.tag--low { color: var(--gold-deep); border-color: var(--gold); }
.tag--high { color: var(--sage); border-color: var(--sage-80); }
.cat-pct { display: flex; align-items: center; justify-content: flex-end; }
.cat-pct input {
  width: 62px; height: 36px; padding: 0 18px 0 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; text-align: right;
  font-variant-numeric: tabular-nums; font-weight: 500; font-size: .92rem; color: var(--ink);
}
.cat-pct { position: relative; }
.cat-pct::after { content: "%"; position: absolute; right: 7px; font-size: .8rem; color: var(--muted); pointer-events: none; }
.cat-pct input:hover { border-color: var(--line-strong); }
.cat-pct input:focus { outline: none; border-color: var(--gold); background: var(--surface); }
.cat-amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 1rem; }
.cat.is-off { opacity: .5; }
@media (max-width: 680px) {
  .cat { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "i n a" "s s p"; gap: 2px 12px; }
  .cat-icon { grid-area: i; width: 40px; height: 40px; }
  .cat-name { grid-area: n; }
  .cat-amt { grid-area: a; }
  .cat .range { grid-area: s; }
  .cat-pct { grid-area: p; }
}

/* ---------- Results ---------- */
.results { overflow: hidden; }
.results-head { padding: 22px 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.results-head h2 { font-size: 1.45rem; }
.results-head .chip { font-size: .74rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

.status { margin: 18px 26px 0; padding: 18px 20px; border-radius: 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; transition: background-color .4s; }
.status small { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.status .big { font-size: clamp(1.8rem, 3.2vw, 2.3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.status p { grid-column: 1 / -1; margin: 6px 0 0; font-size: .84rem; color: var(--muted); }
.status svg { width: 40px; height: 40px; }
.status.is-under { background: rgba(76, 154, 108, .1); }
.status.is-under small, .status.is-under .big, .status.is-under svg { color: var(--success); }
.status.is-over { background: rgba(196, 112, 79, .1); }
.status.is-over small, .status.is-over .big, .status.is-over svg { color: var(--warning); }
.status.is-even { background: rgba(76, 154, 108, .08); }
.status.is-even small, .status.is-even svg { color: var(--success); }
.status.is-even .big { color: var(--sage); }

.donut-wrap { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; padding: 24px 26px 6px; }
.donut { width: 180px; height: 180px; position: relative; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.donut circle.seg { fill: none; stroke-width: 22; transition: stroke-dasharray .6s var(--ease), stroke-dashoffset .6s var(--ease), stroke .25s, stroke-width .25s; cursor: pointer; }
.donut circle.seg.is-hot { stroke: var(--gold) !important; stroke-width: 28; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; padding: 34px; }
.donut-center small { display: block; font-size: .7rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
.donut-center b { display: block; font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--sage); line-height: 1.25; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .84rem; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; cursor: default; border-radius: 6px; padding: 2px 4px; margin: 0 -4px; transition: background-color .2s; }
.legend li.is-hot { background: var(--gold-10); }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend b { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 460px) { .donut-wrap { grid-template-columns: 1fr; justify-items: center; } .legend { width: 100%; } }

.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 20px; }
.stat { padding: 18px 26px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat small { display: block; font-size: .74rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.stat b { display: block; font-size: 1.7rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--sage); letter-spacing: -.02em; margin-top: 4px; }
.stat span { font-size: .8rem; color: var(--muted); }

.compare { padding: 20px 26px; }
.compare h3 { font: 600 .8rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.cbar { display: grid; grid-template-columns: 112px 1fr 76px; gap: 12px; align-items: center; font-size: .84rem; margin-bottom: 10px; }
.cbar .t { height: 10px; background: var(--track); border-radius: 10px; overflow: hidden; }
.cbar .t i { display: block; height: 100%; background: var(--sage); border-radius: 10px; transition: width .7s var(--ease); }
.cbar.is-you .t i { background: var(--gold); }
.cbar.is-you span { font-weight: 600; color: var(--sage); }
.cbar b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.compare p { font-size: .84rem; color: var(--muted); margin: 10px 0 0; }

.note { margin: 0 26px; padding: 16px 18px; border-radius: 12px; background: var(--ivory); display: grid; grid-template-columns: 36px 1fr; gap: 12px; font-size: .88rem; line-height: 1.55; }
.note .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--gold-20); color: var(--gold-deep); display: grid; place-items: center; }
.note .ico svg { width: 18px; height: 18px; }
.note strong { color: var(--sage); }
.note p { margin: 0 0 6px; }

.actions { padding: 22px 26px 26px; display: grid; gap: 10px; }
.actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.disclaimer { font-size: .76rem; color: var(--muted); line-height: 1.5; padding: 0 26px 22px; margin: 0; }
.disclaimer svg { display: inline; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: var(--gold-deep); }

/* Inline email capture */
.capture { display: grid; gap: 10px; }
.capture-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.capture .text-input { min-height: 48px; font-size: .95rem; }
.capture-note { font-size: .76rem; color: var(--muted); margin: 0; }
.capture-done { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--gold-10); border: 1px solid var(--gold-20); font-size: .88rem; }
.capture-done svg { width: 22px; height: 22px; color: var(--gold-deep); margin-top: 2px; }
.capture-done strong { color: var(--sage); display: block; }
.capture-err { color: var(--warning); font-size: .82rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sticky mobile results bar */
.mbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 16px; background: var(--sage); color: var(--ivory); box-shadow: 0 16px 40px -12px rgba(34, 56, 45, .6);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.mbar.is-on { transform: none; }
.mbar small { display: block; font-size: .7rem; opacity: .75; letter-spacing: .06em; text-transform: uppercase; }
.mbar b { font-variant-numeric: tabular-nums; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 8px; }
.mbar b i { width: 8px; height: 8px; border-radius: 50%; }
@media (max-width: 1020px) { .mbar { display: flex; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 0; z-index: 60; background: var(--ink); color: var(--ivory); padding: 12px 20px; border-radius: 999px; font-size: .9rem; display: inline-flex; gap: 10px; align-items: center; box-shadow: var(--shadow-lg); }
.toast svg { width: 18px; height: 18px; color: var(--gold); }
@media (max-width: 1020px) { .toast { bottom: 96px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--deep { background: var(--ivory-deep); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { margin: 14px 0 12px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .lede { margin-inline: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Tool cards (home) */
.tools { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.tool-card { position: relative; display: flex; flex-direction: column; padding: 28px; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; overflow: hidden; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold-20); }
.tool-card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--sage-06); color: var(--sage); display: grid; place-items: center; margin-bottom: 22px; transition: background-color .3s, color .3s; }
.tool-card:hover .ico { background: var(--gold-20); color: var(--gold-deep); }
.tool-card .ico svg { width: 24px; height: 24px; }
.tool-card h3 { margin-bottom: 10px; }
.tool-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.tool-card--feature { grid-row: span 2; background: var(--sage); border-color: var(--sage); color: var(--ivory); padding: 36px; }
.tool-card--feature h3 { color: var(--ivory); font-size: 2rem; }
.tool-card--feature p { color: rgba(250, 246, 240, .78); font-size: 1rem; }
.tool-card--feature .ico { background: rgba(198, 161, 91, .18); color: var(--gold); }
.tool-card--feature:hover .ico { background: var(--gold); color: var(--sage); }
.tool-card--feature .arrow-link { color: var(--gold); }
.tool-card--feature .mini-bars { display: grid; gap: 10px; margin: 8px 0 28px; }
.mini-bars div { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; font-size: .8rem; color: rgba(250, 246, 240, .8); }
.mini-bars div i { height: 6px; border-radius: 6px; background: rgba(250, 246, 240, .14); position: relative; overflow: hidden; }
.mini-bars div i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--gold); border-radius: 6px; transform-origin: left; animation: grow 1.4s var(--ease) both; }
.mini-bars div:nth-child(2) i::after { animation-delay: .1s; } .mini-bars div:nth-child(3) i::after { animation-delay: .2s; } .mini-bars div:nth-child(4) i::after { animation-delay: .3s; }
.mini-bars div b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ivory); }
@keyframes grow { from { transform: scaleX(0); } }
@media (max-width: 900px) { .tools { grid-template-columns: 1fr 1fr; } .tool-card--feature { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 600px) { .tools { grid-template-columns: 1fr; } }

/* Home hero */
.home-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.home-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.home-hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.2rem); margin: 20px 0 22px; }
.home-hero h1 em { display: block; }
.home-hero .lede { margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-stats b { display: block; font: 500 2rem/1 var(--serif); color: var(--sage); font-variant-numeric: lining-nums tabular-nums; }
.hero-stats span { font-size: .82rem; color: var(--muted); }
@media (max-width: 900px) { .home-hero .wrap { grid-template-columns: 1fr; } }

.quick { padding: 28px; position: relative; }
.quick::before { content: ""; position: absolute; inset: -10px 18px auto; height: 100%; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); z-index: -1; transform: rotate(-2.2deg); opacity: .8; }
.quick-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.quick-head h2 { font-size: 1.4rem; }
.quick .field + .field { margin-top: 16px; }
.quick-out { margin: 22px 0 18px; padding: 18px; background: var(--ivory); border-radius: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quick-out small { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.quick-out b { font-size: 1.45rem; font-weight: 600; color: var(--sage); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ribbon { display: flex; height: 12px; border-radius: 12px; overflow: hidden; gap: 2px; margin-bottom: 8px; grid-column: 1 / -1; }
.ribbon i { display: block; height: 100%; background: var(--sage); transition: flex-grow .5s var(--ease); }
.ribbon-legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .74rem; color: var(--muted); }
.ribbon-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ribbon-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--sage); }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.step { padding: 30px 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step b { font: italic 500 3rem/1 var(--serif); color: var(--gold); display: block; margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* State tile map */
.map-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.tilemap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
.tile {
  aspect-ratio: 1; border-radius: 7px; border: 0; display: grid; place-items: center; font: 600 clamp(.55rem, 1.1vw, .74rem)/1 var(--sans); letter-spacing: .02em;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s; padding: 0;
}
.tile:hover, .tile.is-hot { transform: scale(1.12); background: var(--gold) !important; color: var(--ink) !important; box-shadow: 0 8px 18px -6px rgba(198, 161, 91, .8); z-index: 1; position: relative; }
.map-key { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); margin-top: 16px; }
.map-key .scale { display: flex; gap: 3px; }
.map-key .scale i { width: 22px; height: 10px; border-radius: 3px; }
.map-readout { padding: 30px; }
.map-readout small { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.map-readout h3 { font-size: 2rem; margin: 8px 0 4px; }
.map-readout .avg { font-size: 2.6rem; font-weight: 600; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.map-readout p { color: var(--muted); font-size: .9rem; margin: 6px 0 22px; }
@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; } }

/* Article cards */
.post-card { display: flex; flex-direction: column; text-decoration: none; padding: 26px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card .kicker { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.post-card h3 { margin: 12px 0 10px; font-size: 1.3rem; transition: color .2s; }
.post-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.post-card .meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }

/* Email band */
.band { background: var(--sage); color: var(--ivory); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border: 1px solid rgba(198, 161, 91, .35); border-radius: 50%; box-shadow: 0 0 0 40px rgba(198, 161, 91, .05), 0 0 0 80px rgba(198, 161, 91, .03); pointer-events: none; }
.band h2 { color: var(--ivory); margin: 14px 0 12px; }
.band .lede { color: rgba(250, 246, 240, .78); }
.band .eyebrow { color: var(--gold); }
.band .text-input { background: rgba(255, 255, 255, .96); border-color: transparent; }
.band .capture-note { color: rgba(250, 246, 240, .65); }
.band .capture-done { background: rgba(198, 161, 91, .15); border-color: rgba(198, 161, 91, .35); }
.band .capture-done strong { color: var(--ivory); }
.band .capture-done svg { color: var(--gold); }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 500 1.15rem/1.4 var(--serif); color: var(--sage); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--gold-deep); border-bottom: 1.5px solid var(--gold-deep); transform: translateY(-75%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 46em; }

/* Affiliate box */
.affiliate { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 22px 24px; border: 1px solid var(--gold-20); background: linear-gradient(var(--surface), var(--surface)); border-radius: var(--radius); }
.affiliate .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--gold-10); color: var(--gold-deep); display: grid; place-items: center; }
.affiliate .ico svg { width: 22px; height: 22px; }
.affiliate small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.affiliate strong { color: var(--sage); }
.affiliate p { margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 600px) { .affiliate { grid-template-columns: auto 1fr; } .affiliate .btn { grid-column: 1 / -1; } }

/* Learn links under tools */
.learn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.learn a { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 20px 22px; text-decoration: none; transition: border-color .25s, transform .3s var(--ease); }
.learn a:hover { border-color: var(--gold); transform: translateY(-2px); }
.learn small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.learn strong { display: block; color: var(--sage); font: 500 1.08rem/1.35 var(--serif); margin-top: 4px; }
.learn svg { width: 18px; height: 18px; color: var(--gold-deep); }
@media (max-width: 860px) { .learn { grid-template-columns: 1fr; } }

/* Tool page body blocks */
.tool-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: start; padding-bottom: 72px; }
.tool-shell > .card:first-child { position: sticky; top: 92px; }
@media (max-width: 960px) { .tool-shell { grid-template-columns: 1fr; } .tool-shell > .card:first-child { position: static; } }

.hero-figure { text-align: center; padding: 34px 26px 26px; border-bottom: 1px solid var(--line); }
.hero-figure small { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hero-figure .figure { font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 600; letter-spacing: -.04em; color: var(--sage); line-height: 1.05; margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.hero-figure .figure sup { font-size: .42em; font-weight: 500; vertical-align: .9em; margin-right: 2px; color: var(--muted); }
.hero-figure p { color: var(--muted); font-size: .92rem; margin: 0; }

.tiers { list-style: none; margin: 0; padding: 18px; display: grid; gap: 8px; }
.tier { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.tier header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tier header strong { color: var(--sage); font: 500 1.08rem var(--serif); }
.tier header span { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tier ul { margin: 12px 0 2px; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: .84rem; }
.tier li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.tier li svg { width: 15px; height: 15px; color: var(--gold-deep); margin-top: 3px; }
.tier.is-on { border-color: var(--gold); background: var(--gold-10); box-shadow: inset 0 0 0 1px var(--gold); }
.tier.is-on header span { color: var(--gold-deep); font-weight: 600; }
@media (max-width: 560px) { .tier ul { grid-template-columns: 1fr; } }

.lever { padding: 22px 26px; border-top: 1px solid var(--line); }
.lever h3 { font: 600 .8rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.lever-bars { display: flex; align-items: flex-end; gap: 6px; height: 130px; }
.lever-bars button { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; background: none; border: 0; padding: 0; }
.lever-bars button i { width: 100%; border-radius: 6px 6px 2px 2px; background: var(--sage-12); transition: height .5s var(--ease), background-color .2s; }
.lever-bars button:hover i { background: var(--sage-80); }
.lever-bars button.is-on i { background: var(--gold); }
.lever-bars button span { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lever-bars button em { font-style: normal; font-size: .68rem; font-weight: 600; color: var(--sage); font-variant-numeric: tabular-nums; }

/* Vendor tiles */
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.vendor-tile { display: grid; justify-items: center; gap: 8px; padding: 14px 8px; text-align: center; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); font-size: .8rem; font-weight: 500; color: var(--sage); line-height: 1.25; min-height: 92px; transition: border-color .2s, background-color .2s, transform .25s var(--ease); }
.vendor-tile svg { width: 22px; height: 22px; color: var(--sage); }
.vendor-tile:hover { border-color: var(--sage-80); transform: translateY(-2px); }
.vendor-tile.is-on { border-color: var(--gold); background: var(--gold-10); box-shadow: inset 0 0 0 1px var(--gold); }
.vendor-tile.is-on svg { color: var(--gold-deep); }

.range-viz { padding: 30px 26px 10px; }
.range-viz .rail { position: relative; height: 12px; border-radius: 12px; background: var(--track); margin: 54px 6px 12px; }
.range-viz .rail .fill { position: absolute; top: 0; bottom: 0; background: var(--sage); border-radius: 12px; opacity: .85; transition: left .6s var(--ease), right .6s var(--ease); }
.range-viz .pin { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 3px solid var(--surface); box-shadow: 0 2px 10px rgba(47, 74, 60, .35); translate: -50% -50%; transition: left .6s var(--ease); }
.range-viz .pin > span { position: absolute; bottom: calc(100% + 10px); left: 50%; translate: -50% 0; white-space: nowrap; background: var(--ink); color: var(--ivory); font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.range-viz .ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.range-viz .ends b { display: block; color: var(--ink); font-size: 1.05rem; }
.range-viz .ends div:last-child { text-align: right; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); margin-top: 22px; }
.facts > div { padding: 20px 26px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts b { display: block; font-size: 1.3rem; color: var(--sage); font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.checklist svg { width: 18px; height: 18px; color: var(--gold-deep); margin-top: 3px; }
.block { padding: 22px 26px; border-top: 1px solid var(--line); }
.block h3 { font: 600 .8rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* Timeline */
.countdown { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.countdown div { padding: 18px 10px; }
.countdown div + div { border-left: 1px solid var(--line); }
.countdown b { display: block; font: 500 2.2rem/1 var(--serif); color: var(--sage); font-variant-numeric: lining-nums tabular-nums; }
.countdown small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.progress-ring { display: flex; align-items: center; gap: 16px; padding: 20px 26px; }
.progress-ring svg { width: 64px; height: 64px; transform: rotate(-90deg); flex: none; }
.progress-ring circle { fill: none; stroke-width: 6; }
.progress-ring .bg { stroke: var(--track); }
.progress-ring .fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.progress-ring b { font-size: 1.15rem; color: var(--sage); }
.months { display: grid; gap: 0; position: relative; }
.month { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.month:first-child { border-top: 0; padding-top: 0; }
.month-label strong { display: block; font: 500 1.3rem/1.2 var(--serif); color: var(--sage); }
.month-label small { font-size: .78rem; color: var(--muted); }
.month-label .now { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .7rem; font-weight: 600; letter-spacing: .04em; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.task label { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .2s, background-color .2s, opacity .3s; }
.task label:hover { border-color: var(--gold); }
.task input { position: absolute; opacity: 0; }
.task .box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: background-color .2s, border-color .2s; margin-top: 1px; }
.task .box svg { width: 14px; height: 14px; color: var(--ink); opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s var(--ease); }
.task input:checked + label .box { background: var(--gold); border-color: var(--gold); }
.task input:checked + label .box svg { opacity: 1; transform: none; }
.task input:checked + label { background: var(--ivory); }
.task input:checked + label strong { text-decoration: line-through; text-decoration-color: var(--gold); color: var(--muted); }
.task input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.task strong { display: block; color: var(--sage); font-weight: 600; font-size: .95rem; }
.task span { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.task a { font-size: .82rem; }
@media (max-width: 640px) { .month { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Article ---------- */
.article-hero { padding: clamp(40px, 6vw, 80px) 0 32px; text-align: center; }
.article-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 18px auto 18px; max-width: 18em; }
.article-hero .lede { margin-inline: auto; }
.byline { display: flex; justify-content: center; align-items: center; gap: 10px 18px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 26px; }
.byline .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--sage); color: var(--gold); display: grid; place-items: center; font: italic 500 .95rem var(--serif); }
.byline strong { color: var(--ink); font-weight: 600; }
.prose { font-size: 1.08rem; line-height: 1.75; color: #33302C; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--gold-deep); }
.prose a:not(.btn) { color: var(--sage); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; font-variant-numeric: tabular-nums; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: table; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--ivory-deep); color: var(--sage); font-weight: 600; font-size: .82rem; letter-spacing: .04em; }
.prose td.r, .prose th.r { text-align: right; }
.prose tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--gold); font: italic 400 1.2rem/1.6 var(--serif); color: var(--sage); }
.callout { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 14px; font-size: .98rem; }
.callout .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-20); color: var(--gold-deep); display: grid; place-items: center; }
.callout .ico svg { width: 20px; height: 20px; }
.tool-cta { padding: 28px; border-radius: var(--radius-lg); background: var(--sage); color: var(--ivory); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.tool-cta h3 { color: var(--ivory); font-size: 1.5rem; margin: 0 0 4px; }
.tool-cta p { color: rgba(250, 246, 240, .75); font-size: .95rem; margin: 0; }
@media (max-width: 640px) { .tool-cta { grid-template-columns: 1fr; } }
.sources { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; }
.sources h2 { font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.disclosure { font-size: .82rem; color: var(--muted); padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: 10px; }

/* Breadcrumbs */
.crumbs { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--sage); }
.crumbs span { color: var(--line-strong); }

/* Ad slot */
.ad-slot { margin: 32px auto; min-height: 100px; text-align: center; }
.ad-slot small { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage); color: rgba(250, 246, 240, .74); padding: 72px 0 32px; margin-top: 0; font-size: .9rem; }
.site-footer a { text-decoration: none; color: rgba(250, 246, 240, .74); transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(250, 246, 240, .12); }
.footer-grid h2 { font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .brand { color: var(--ivory); margin-bottom: 18px; }
.site-footer .brand b i { color: var(--gold); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; font-size: .78rem; flex-wrap: wrap; color: rgba(250, 246, 240, .55); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
.hero [data-rise], .home-hero [data-rise], .article-hero [data-rise] { animation: rise 1s var(--ease) both; }
[data-rise="2"] { animation-delay: .08s !important; } [data-rise="3"] { animation-delay: .16s !important; } [data-rise="4"] { animation-delay: .24s !important; } [data-rise="5"] { animation-delay: .32s !important; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Print: clean one-page budget sheet ---------- */
.print-only { display: none; }
@media print {
  @page { size: letter; margin: 14mm; }
  body { background: #fff; font-size: 10.5pt; }
  .site-header, .site-footer, .no-print, .mbar, .toast, .ad-slot, .hero, .section, .crumbs { display: none !important; }
  .print-only { display: block !important; }
  .calc { display: none !important; }
  .sheet h1 { font-size: 22pt; margin: 0 0 4pt; }
  .sheet .meta { color: #555; font-size: 9.5pt; margin-bottom: 12pt; }
  .sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
  .sheet th, .sheet td { padding: 5pt 6pt; border-bottom: 0.5pt solid #ccc; text-align: left; }
  .sheet th { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .06em; color: #2F4A3C; border-bottom: 1pt solid #2F4A3C; }
  .sheet .r { text-align: right; }
  .sheet tfoot td { font-weight: 700; border-top: 1pt solid #2F4A3C; border-bottom: 0; }
  .sheet .boxes { display: flex; gap: 10pt; margin: 12pt 0; }
  .sheet .boxes div { flex: 1; border: 0.5pt solid #ccc; border-radius: 6pt; padding: 8pt; }
  .sheet .boxes small { display: block; font-size: 7.5pt; text-transform: uppercase; letter-spacing: .08em; color: #666; }
  .sheet .boxes b { font-size: 14pt; color: #2F4A3C; }
  .sheet .fine { font-size: 8pt; color: #666; margin-top: 12pt; }
  .timeline-print .months { display: block; }
  body.print-timeline .tool-shell > .card:first-child, body.print-timeline .tool-hero-actions { display: none !important; }
  body.print-timeline .tool-shell { display: block; }
  body.print-timeline .task label { border: 0; padding: 4pt 0; }
}

.tool-card--wide { grid-column: span 2; }
@media (max-width: 600px) { .tool-card--wide { grid-column: auto; } }
.field-row > .field { margin-top: 0 !important; }
.field-row > .field > .field-label { min-height: 20px; }
.band h2 em, .tool-cta h3 em { color: var(--gold); }
.site-footer h2 em { color: var(--gold); }
.legend li.legend-more { display: block; padding-left: 24px; }
.cat { grid-template-columns: 44px minmax(0, 1.6fr) minmax(110px, 1fr) 58px 84px; }
@media (max-width: 680px) { .cat { grid-template-columns: 40px minmax(0, 1fr) auto; } }
.donut-wrap { grid-template-columns: 200px 1fr; }
.donut { width: 200px; height: 200px; }
.mbar > div { min-width: 0; }
.mbar b { font-size: .95rem; white-space: nowrap; }
.mbar .btn { flex: none; padding-inline: .9em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
