
/* Peak and Pine: forest, pine, mint and a little sun. Figtree throughout. */
:root {
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --mist: #F6F9F7;
  --ink: #1E3A2B;
  --muted: #5C6B62;
  --line: #E3EAE5;
  --soft: #EEF3EF;
  --accent: #3F7A55;
  --sun: #E9944A;
  --sun-ink: #A85A1C;
  --sun-soft: #FCEFE3;
  --stone: #F6F9F7;
  --sand: #EEF3EF;
  --sage: #EEF3EF;
  --slate: #EEF3EF;
  --taupe: #A9C9B2;
  --ridge-back: #E2ECE5;
  --fwb1: #E06C55;
  --fwb2: #E9944A;
  --fwb3: #E6C25A;
  --fwb4: #A9C46E;
  --fwb5: #6FAE7C;
  --on-band: #1E3A2B;
  --band-dark: #1E3A2B;
  --card-dark: #26473A;
  --on-dark: #EEF3EF;
  --on-dark-muted: #B9CDBF;
  --on-dark-accent: #8CC79A;
  --dark-line: #335A47;
  --logo-ink: #1E3A2B;
  --logo-pine: #3F7A55;
  --ok: #3F7A55;
  --warn: #A85A1C;
  --sans: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1A14; --surface: #16241C; --mist: #132019; --ink: #E6EFE8; --muted: #9DB0A3;
    --line: #26382D; --soft: #1C2D23; --accent: #7FBF8E; --sun: #F0A86A; --sun-ink: #F0A86A; --sun-soft: #3A2A1C;
    --stone: #132019; --sand: #172A1F; --sage: #172A1F; --slate: #172A1F; --taupe: #4F7A5E; --ridge-back: #16241C;
    --band-dark: #0A130E; --card-dark: #13221A; --on-dark: #E6EFE8; --on-dark-muted: #9DB0A3; --on-dark-accent: #8CC79A; --dark-line: #24382C;
    --logo-ink: #E6EFE8; --logo-pine: #7FBF8E;
    --ok: #8CC79A; --warn: #F0A86A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1A14; --surface: #16241C; --mist: #132019; --ink: #E6EFE8; --muted: #9DB0A3;
  --line: #26382D; --soft: #1C2D23; --accent: #7FBF8E; --sun: #F0A86A; --sun-ink: #F0A86A; --sun-soft: #3A2A1C;
  --stone: #132019; --sand: #172A1F; --sage: #172A1F; --slate: #172A1F; --taupe: #4F7A5E; --ridge-back: #16241C;
  --band-dark: #0A130E; --card-dark: #13221A; --on-dark: #E6EFE8; --on-dark-muted: #9DB0A3; --on-dark-accent: #8CC79A; --dark-line: #24382C;
  --logo-ink: #E6EFE8; --logo-pine: #7FBF8E;
  --ok: #8CC79A; --warn: #F0A86A; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.logo { display: block; line-height: 0; }
.logo img { height: 34px; width: auto; filter: var(--logo-filter); }
nav.main { display: flex; align-items: center; gap: 28px; font-size: 14px; }
nav.main a { text-decoration: none; color: var(--muted); }
nav.main a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 14px/1 var(--sans); text-decoration: none;
  padding: 13px 20px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); cursor: pointer; transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn .arr { font-family: var(--mono); }
nav.main .btn { color: var(--paper); padding: 10px 16px; }
@media (max-width: 860px) { nav.main a:not(.btn) { display: none; } }

/* Type */
.eyebrow { font: 500 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tag {
  display: inline-block; width: fit-content;
  font: 500 12px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase;
  padding: 8px 11px 7px; border-radius: 4px;
  background: var(--ink); color: var(--paper);
}
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 400; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 34em; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Bands */
section > .wrap { padding-block: 96px; }
@media (max-width: 640px) { section > .wrap { padding-block: 60px; } }
.band-stone { background: var(--stone); }
.band-sage { background: var(--sage); }
.band-dark { background: var(--band-dark); color: var(--on-dark); }
.band-dark .tag { background: var(--on-dark); color: var(--band-dark); }
.band-dark .muted, .band-dark .sec-head p, .band-dark .course-intro p { color: var(--on-dark-muted); }
.band-dark .btn { background: var(--on-dark); color: var(--band-dark); border-color: var(--on-dark); }
.band-dark .btn.ghost { background: transparent; color: var(--on-dark); border-color: var(--dark-line); }
.sec-head { display: grid; grid-template-columns: 5fr 7fr; gap: 20px 48px; margin-bottom: 52px; align-items: end; }
.sec-head > div { display: grid; gap: 18px; }
.sec-head p { color: var(--muted); max-width: 36em; font-size: 17px; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; margin-bottom: 36px; } }

/* Hero */
.hero > .wrap { padding-block: 80px 96px; display: grid; grid-template-columns: 6fr 5fr; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-panel { background: var(--sage); border-radius: 18px; padding: 28px; display: grid; gap: 18px; min-width: 0; }
.panel-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.panel-top h3 { font-size: 17px; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--accent); display: inline-block; }
.legend i.dash { background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 7px); }
#growth { width: 100%; height: auto; display: block; overflow: visible; }
.panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 10px; overflow: hidden; }
.panel-stats div { background: var(--sage); padding: 12px 14px; display: grid; gap: 2px; }
.panel-stats .k { font-size: 12px; color: var(--muted); }
.panel-stats .v { font: 500 17px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.panel-note { font-size: 12px; color: var(--muted); }
.sliders { display: grid; gap: 14px; padding-top: 4px; }
.slider { display: grid; gap: 6px; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.slider-top label { color: var(--muted); }
.slider-top output { font: 500 14px var(--mono); font-variant-numeric: tabular-nums; }
.slider input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0;
  --pct: 50%;
}
.slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(to right, var(--accent) 0 var(--pct), color-mix(in srgb, var(--ink) 16%, transparent) var(--pct) 100%);
}
.slider input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.slider input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; margin-top: -7px;
  background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 25%, transparent);
}
.slider input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent);
}
.slider input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; }
.creds span { font-size: 13px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.creds strong { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) { .hero > .wrap { grid-template-columns: 1fr; padding-block: 56px 64px; } }
@media (max-width: 420px) { .hero-panel { padding: 20px; } .panel-stats .v { font-size: 15px; } }

/* Tool */
.tool-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab { font: 500 13px/1 var(--sans); padding: 10px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); color: var(--muted); background: transparent; }
button.tab { cursor: pointer; }
button.tab:hover { color: var(--ink); border-color: var(--ink); }
.tab[aria-selected="true"], .tab[aria-selected="true"]:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tab.disabled { opacity: .7; }
.ctrack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--soft); gap: 2px; }
.seg { height: 100%; transition: flex-basis .35s ease; flex: 0 0 0%; }
.s1 { background: var(--taupe); }
.s2 { background: var(--muted); }
.s3 { background: var(--accent); }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.cchart { display: grid; gap: 10px; }
#cgrowth { width: 100%; height: auto; display: block; overflow: visible; }
.tab .soon { font-family: var(--mono); font-size: 11px; margin-left: 6px; opacity: .8; }
.tool {
  background: var(--surface); border-radius: 16px;
  display: grid; grid-template-columns: 5fr 6fr; overflow: hidden;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 6%, transparent), 0 24px 48px -28px color-mix(in srgb, var(--ink) 30%, transparent);
}
@media (max-width: 900px) { .tool { grid-template-columns: 1fr; } }
.inputs { padding: 32px; border-right: 1px solid var(--line); display: grid; gap: 22px; align-content: start; }
@media (max-width: 900px) { .inputs { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .inputs, .results { padding: 22px !important; } }
.group { display: grid; gap: 14px; }
.group-title { font: 500 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; color: var(--muted); }
.control { min-width: 0; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); transition: border-color .15s; }
.control:focus-within { border-color: var(--ink); }
.control .affix { font: 400 14px var(--mono); color: var(--muted); padding: 0 0 0 12px; }
.control .affix.after { padding: 0 12px 0 0; }
.control input, .control select {
  flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink);
  font: 400 15px/1 var(--mono); font-variant-numeric: tabular-nums; padding: 12px; outline: none;
}
.control select { font-family: var(--sans); appearance: none; cursor: pointer; }
.control.select::after { content: "▾"; color: var(--muted); padding-right: 12px; font-size: 12px; pointer-events: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; }
.check small { display: block; color: var(--muted); font-size: 12.5px; }

.results { padding: 32px; display: grid; gap: 26px; align-content: start; }
.answer-block { background: var(--band-dark); color: var(--on-dark); border-radius: 12px; padding: 22px 24px; display: grid; gap: 10px; }
.answer-block .eyebrow { color: var(--on-dark-muted); }
.answer-block .big { font: 400 clamp(42px, 5.6vw, 64px)/1 var(--mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.answer-block .sub { color: var(--on-dark-muted); font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 var(--sans); padding: 7px 11px; border-radius: 999px; background: color-mix(in srgb, var(--on-dark) 12%, transparent); color: var(--on-dark); width: fit-content; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #E0B26A; display: inline-block; }
.pill.ok i { background: #9FD0AE; }
.lines { display: grid; border-top: 1px solid var(--line); }
.lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 14px; }
.lines dt { color: var(--muted); }
.lines dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.lines .strong dd { font-weight: 500; color: var(--ink); }
.meters { display: grid; gap: 16px; }
.meter { display: grid; gap: 8px; }
.meter-top { display: flex; justify-content: space-between; font-size: 13px; }
.meter-top span:first-child { color: var(--muted); }
.track { position: relative; height: 8px; border-radius: 99px; background: var(--soft); }
.fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--accent); transition: width .35s ease; }
.limit { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 2px; }
.stress { background: var(--sage); border-radius: 10px; padding: 16px 18px; font-size: 14px; color: var(--muted); }
.stress strong { color: var(--ink); font-weight: 500; }
.fine { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.tool-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Services */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { border-radius: 16px; padding: 26px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; min-height: 280px; }
.tile:nth-child(1) { background: var(--stone); }
.tile:nth-child(2) { background: var(--sand); }
.tile:nth-child(3) { background: var(--sage); }
.tile:nth-child(4) { background: var(--slate); }
.tile .meta { font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile h3 { font-size: 24px; letter-spacing: -0.02em; }
.tile p { color: var(--muted); font-size: 15px; }
.tile .price { font: 500 14px var(--mono); padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
@media (max-width: 560px) { .tile { min-height: 0; } }

.process { margin-top: 56px; display: grid; grid-template-columns: 220px 1fr; gap: 24px 48px; align-items: start; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } }
.process h3 { font-size: 18px; }
.process > div:first-child p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 24px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; display: grid; gap: 8px; padding-right: 20px; position: relative; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 500 13px var(--mono); background: var(--ink); color: var(--paper); position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 16px; left: 32px; right: 0; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
@media (max-width: 860px) { .steps li::after { display: none; } }
.steps strong { font-weight: 500; }
.steps small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.steps .when { font: 400 12px var(--mono); color: var(--muted); }

/* Course */
.course { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; }
@media (max-width: 860px) { .course { grid-template-columns: 1fr; gap: 36px; } }
.course-intro { display: grid; gap: 22px; align-content: start; }
.course-stats { display: flex; gap: 32px; flex-wrap: wrap; padding-block: 18px; border-block: 1px solid var(--dark-line); }
.course-stats div { display: grid; gap: 2px; }
.course-stats .v { font: 400 30px/1 var(--mono); letter-spacing: -0.03em; }
.course-stats .k { font-size: 13px; color: var(--on-dark-muted); }
.chapters { list-style: none; margin: 0; padding: 0; counter-reset: ch; display: grid; gap: 8px; }
.chapters li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 16px 18px; border-radius: 10px; background: color-mix(in srgb, var(--on-dark) 6%, transparent); align-items: baseline; counter-increment: ch; }
.chapters li::before { content: "Ch " counter(ch); font: 400 12px var(--mono); color: var(--on-dark-muted); }
.chapters span { font-size: 17px; }
.chapters small { font: 400 13px var(--mono); color: var(--on-dark-muted); }
@media (max-width: 420px) { .chapters li { grid-template-columns: 1fr auto; } .chapters li::before { grid-column: 1 / -1; } }

/* Reading */
.shelves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .shelves { grid-template-columns: 1fr; } }
.shelf { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.shelf h3 { padding: 18px 22px; font-size: 17px; display: flex; justify-content: space-between; align-items: baseline; }
.shelf h3 small { font: 400 12px var(--mono); color: var(--muted); letter-spacing: 0; }
.shelf:nth-child(1) h3 { background: var(--sand); }
.shelf:nth-child(2) h3 { background: var(--sage); }
.shelf:nth-child(3) h3 { background: var(--slate); }
.shelf ul { list-style: none; margin: 0; padding: 4px 22px 10px; }
.shelf li { padding-block: 13px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.shelf li:last-child { border-bottom: 0; }
.shelf li span { font-weight: 500; }
.shelf li small { color: var(--muted); font-size: 14px; }

/* About */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; }
.about-head { display: grid; gap: 18px; align-content: start; }
.about .copy { display: grid; gap: 20px; font-size: 20px; line-height: 1.5; max-width: 34em; letter-spacing: -0.005em; }
.about .copy p:not(:first-child) { color: var(--muted); font-size: 16px; line-height: 1.65; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.principles div { background: color-mix(in srgb, var(--paper) 70%, transparent); border-radius: 12px; padding: 16px; display: grid; gap: 4px; }
.principles strong { font-weight: 500; font-size: 15px; }
.principles span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 28px; } }
.contact-lines { display: grid; border-top: 1px solid var(--dark-line); }
.contact-lines div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--dark-line); align-items: baseline; }
.contact-lines dt { color: var(--on-dark-muted); font-size: 14px; }
.contact-lines dd { margin: 0; font-size: 20px; user-select: all; overflow-wrap: anywhere; }
.contact-lines dd.links { user-select: auto; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 16px; }
@media (max-width: 420px) { .contact-lines div { grid-template-columns: 1fr; gap: 4px; } }

/* Wellbeing score */
.qlabel { font-size: 13px; color: var(--muted); }
fieldset.q { border: 0; margin: 0; padding: 0 0 14px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); min-width: 0; }
fieldset.q:last-child { border-bottom: 0; padding-bottom: 0; }
fieldset.q legend { font-size: 15px; line-height: 1.45; padding: 0; margin-bottom: 10px; }
.seg-choice { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.seg-choice.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg-choice label { position: relative; cursor: pointer; }
.seg-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-choice span { display: grid; place-items: center; text-align: center; min-height: 34px; padding: 6px 4px; border-radius: 6px; font-size: 12.5px; line-height: 1.15; color: var(--muted); overflow-wrap: anywhere; transition: background .15s, color .15s; }
.seg-choice label:hover span { color: var(--ink); background: var(--soft); }
.seg-choice input:checked + span { background: var(--ink); color: var(--paper); }
.seg-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 420px) { .seg-choice span { font-size: 11.5px; padding: 6px 2px; } }
.wform-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn.small { padding: 9px 14px; font-size: 13px; }
@media (min-width: 901px) { .results.sticky { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); align-self: start; } }
.outof { font-size: .4em; color: var(--on-dark-muted); letter-spacing: 0; }
.gauge { position: relative; padding-bottom: 22px; }
.gbands { display: flex; gap: 2px; height: 12px; border-radius: 99px; overflow: hidden; }
.gbands i { display: block; height: 100%; }
.gbands i:nth-child(1) { background: var(--fwb1); }
.gbands i:nth-child(2) { background: var(--fwb2); }
.gbands i:nth-child(3) { background: var(--fwb3); }
.gbands i:nth-child(4) { background: var(--fwb4); }
.gbands i:nth-child(5) { background: var(--fwb5); }
.gmark { position: absolute; top: -5px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); transition: left .35s ease, opacity .2s; box-shadow: 0 1px 4px color-mix(in srgb, var(--ink) 30%, transparent); }
.gavg { position: absolute; top: -8px; height: 28px; width: 0; border-left: 1.5px dashed var(--ink); }
.gavg span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font: 500 11px var(--mono); white-space: nowrap; color: var(--muted); padding-bottom: 2px; }
.gscale { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; }
.gscale span { position: absolute; transform: translateX(-50%); font: 400 11px var(--mono); color: var(--muted); }
.gscale span:first-child { transform: none; }
.gscale span:last-child { transform: translateX(-100%); }
.band-note { display: grid; gap: 6px; }
.band-note h3 { font-size: 20px; }
.band-note p { color: var(--muted); font-size: 15px; }
.room { display: grid; gap: 4px; }
.room ul { list-style: none; margin: 0; padding: 0; }
.room li { padding-block: 10px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; font-size: 14px; }
.room li small { color: var(--muted); font-size: 12.5px; }
.stress a { color: var(--ink); font-weight: 500; }

footer.site { background: var(--band-dark); color: var(--on-dark-muted); border-top: 1px solid var(--dark-line); }
footer.site .wrap { padding-block: 36px 44px; display: grid; gap: 20px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; font-size: 14px; }
.foot-top img { height: 26px; filter: invert(1); opacity: .9; }
footer .fine { max-width: 70em; color: var(--on-dark-muted); }

/* Base reset (so every page works on its own, also outside the artifact viewer) */
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

nav.main a[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* Hero, credentials list */
.hero > .wrap { grid-template-columns: minmax(0, 1fr); }
.hero-copy { max-width: 860px; }
.about-head .creds-list { margin-top: 18px; border-top-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.about-head .creds-list div { border-bottom-color: color-mix(in srgb, var(--ink) 14%, transparent); }
.creds-list { display: grid; border-top: 1px solid var(--ink); margin: 0; }
.creds-list div { display: flex; justify-content: space-between; gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 14px; }
.creds-list dt { color: var(--muted); }
.creds-list dd { margin: 0; font-weight: 500; text-align: right; }

/* Home: growth feature */
.feature { background: var(--sage); border-radius: 18px; padding: 28px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 36px; align-items: start; }
.feature-chart { margin: 0; display: grid; gap: 14px; min-width: 0; }
.feature-side { display: grid; gap: 24px; align-content: start; min-width: 0; }
.feature-side .panel-stats { grid-template-columns: 1fr; }
.feature-side .panel-stats div { display: flex; justify-content: space-between; align-items: baseline; }
.feature-side .panel-stats .v { font-size: 20px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 24px; } .feature-side .panel-stats { grid-template-columns: repeat(3, 1fr); } .feature-side .panel-stats div { display: grid; } .feature-side .panel-stats .v { font-size: 16px; } }
@media (max-width: 480px) { .feature { padding: 20px; } .feature-side .panel-stats { grid-template-columns: 1fr; } .feature-side .panel-stats div { display: flex; } }

/* Home: tool cards */
.tool-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 860px) { .tool-cards { grid-template-columns: 1fr; } }
.tool-card { background: var(--surface); border-radius: 16px; padding: 24px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; text-decoration: none; color: inherit; border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.tool-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.tool-card .meta { font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tool-card h3 { font-size: 21px; }
.tool-card p { color: var(--muted); font-size: 15px; }
.tool-card .go { font-weight: 500; font-size: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tools-link { margin-top: 24px; display: flex; }

/* Tools page */
.page-intro > .wrap { padding-block: 72px 56px; display: grid; gap: 22px; }
.page-intro h1 { font-size: clamp(36px, 5vw, 60px); }
.tools-band > .wrap { padding-block: 56px 88px; }
.cta > .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.cta .cta-copy { display: grid; gap: 18px; }
.cta .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 860px) { .cta > .wrap { grid-template-columns: 1fr; } .cta .cta-actions { justify-content: flex-start; } }
@media (max-width: 900px) { .hero > .wrap { grid-template-columns: 1fr; } }

/* Footer links */
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.foot-links a { color: var(--on-dark-muted); text-decoration: none; }
.foot-links a:hover { color: var(--on-dark); text-decoration: underline; }

/* Legal pages */
.prose-band > .wrap { padding-block: 16px 96px; }
.prose { display: grid; gap: 14px; max-width: calc(720px + 48px); }
.prose h2 { font-size: 22px; letter-spacing: -0.015em; margin-top: 26px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); font-size: 16.5px; line-height: 1.7; max-width: 42em; }
.prose a { color: var(--ink); }
.sel { color: var(--ink); user-select: all; }

/* 404 */
.notfound > .wrap { padding-block: 120px; display: grid; gap: 22px; justify-items: start; }

/* Wellbeing summary box takes the colour of the score's range */
.answer-block.banded { background: var(--band); color: var(--on-band); transition: background .3s ease; }
.answer-block.banded .eyebrow, .answer-block.banded .sub, .answer-block.banded .outof { color: color-mix(in srgb, var(--on-band) 72%, transparent); }

/* Compound growth: retirement income */
.retire-block { background: var(--sage); border-radius: 12px; padding: 18px 22px; display: grid; gap: 8px; }
.retire-block .rbig { font: 400 clamp(30px, 4vw, 40px)/1.05 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.retire-block .per { font-size: .45em; color: var(--muted); letter-spacing: 0; }
.retire-block .sub { color: var(--muted); font-size: 14px; line-height: 1.5; }
.retire-block .lines { margin-top: 4px; border-top-color: color-mix(in srgb, var(--ink) 14%, transparent); }
.retire-block .lines div { border-bottom-color: color-mix(in srgb, var(--ink) 14%, transparent); }
.retire-block .lines div:last-child { border-bottom: 0; padding-bottom: 0; }

/* Retirement: highlighted comparison rows */
:root { --hl: rgba(230, 194, 90, .55); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hl: rgba(230, 194, 90, .32); } }
:root[data-theme="dark"] { --hl: rgba(230, 194, 90, .32); }
.retire-block .lines .hl dt, .retire-block .lines .hl dd { font-weight: 600; color: var(--ink); }
.retire-block .lines mark { color: inherit; background: linear-gradient(transparent 30%, var(--hl) 30%, var(--hl) 88%, transparent 88%); padding: 0 3px; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.retire-block .lifetime-title { margin-top: 10px; border-bottom: 0; padding-bottom: 0; }

/* Mobile menu */
.menu-btn { display: none; align-items: center; gap: 8px; font: 500 14px/1 var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.menu-btn:hover { border-color: var(--ink); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav .wrap { display: grid; padding-block: 6px 14px; }
.mobile-nav a { display: block; padding-block: 15px; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a[aria-current="page"] { font-weight: 500; }
@media (max-width: 860px) { .menu-btn { display: inline-flex; } nav.main { gap: 10px; } }
@media (max-width: 380px) { nav.main .btn { padding: 9px 12px; font-size: 13px; } .menu-btn { padding: 9px 11px; } }

/* Contact form */
.contact { align-items: start; }
.contact-intro { display: grid; gap: 18px; }
.contact-intro .contact-lines { margin-top: 10px; }
.contact-intro .contact-lines dd { font-size: 17px; }
.contact-form { display: grid; gap: 16px; background: color-mix(in srgb, var(--on-dark) 5%, transparent); border: 1px solid var(--dark-line); border-radius: 16px; padding: 28px; min-width: 0; }
.cf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } .contact-form { padding: 20px; } }
.cf-field { display: grid; gap: 6px; min-width: 0; }
.cf-field label { font-size: 13px; color: var(--on-dark-muted); }
.cf-field .opt { opacity: .7; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: 400 15px/1.4 var(--sans); color: var(--on-dark);
  background: color-mix(in srgb, var(--on-dark) 6%, transparent); border: 1px solid var(--dark-line); border-radius: 8px; padding: 12px; outline: none;
  color-scheme: dark;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--on-dark); }
.contact-form .invalid { border-color: #E0866F; }
.contact-form ::placeholder { color: var(--on-dark-muted); opacity: .7; }
.contact-form select option { background: var(--band-dark); color: var(--on-dark); }
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cf-foot .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.cf-note { font-size: 12.5px; color: var(--on-dark-muted); max-width: 30em; }
.cf-note a { color: var(--on-dark); }
.cf-status { font-size: 14px; min-height: 1.4em; color: var(--on-dark-muted); }
.cf-status.ok { color: #9FD0AE; }
.cf-status.error { color: #F0A592; }
.foot-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 36px; }
.foot-links[aria-label="Elsewhere"] a { color: var(--on-dark); }

/* ===== Peak and Pine layer (loads last) ===== */

/* Type */
h1, h2, h3 { font-weight: 700; }
h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.03em; }
h3 { letter-spacing: -0.015em; }
.accent { color: var(--accent); }
.lede { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.tag {
  background: none; color: var(--accent); padding: 0; border-radius: 0;
  font: 700 13px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow { font: 700 12px/1.2 var(--sans); letter-spacing: .08em; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  background: var(--sage); color: var(--accent); font: 600 13px/1 var(--sans); padding: 8px 13px; border-radius: 999px;
}
.eyebrow-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); display: block; }

/* Buttons */
.btn { font: 600 15px/1 var(--sans); padding: 14px 22px; border-radius: 10px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arr { font-family: var(--sans); }
.btn.ghost { border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.btn.sun, .band-dark .btn, .contact-card .btn { background: var(--sun); border-color: var(--sun); color: #1E3A2B; }
.band-dark .btn.ghost { background: transparent; color: var(--on-dark); border-color: var(--dark-line); }
.btn.small { padding: 9px 14px; font-size: 13px; }

/* Header + logo */
header.site { background: color-mix(in srgb, var(--paper) 92%, transparent); }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); line-height: 1; }
.logo .mark { width: 36px; height: 36px; flex: none; }
.logo-name { font: 600 18px/1 var(--sans); letter-spacing: -0.01em; white-space: nowrap; }
.mark .mk-sun { fill: var(--sun); }
.mark .mk-ink { fill: var(--logo-ink); }
.mark .mk-pine { fill: var(--logo-pine); stroke: var(--paper); stroke-width: 12; stroke-linejoin: round; }
nav.main { font-size: 15px; font-weight: 500; }
nav.main .btn { color: var(--paper); padding: 11px 18px; font-size: 14px; }
@media (max-width: 560px) { nav.main .btn { display: none; } .logo-name { font-size: 17px; } .logo .mark { width: 32px; height: 32px; } }

/* Section rhythm */
section > .wrap { padding-block: 88px; }
@media (max-width: 640px) { section > .wrap { padding-block: 60px; } }
.band-mint { background: var(--sage); }
.band-mist { background: var(--mist); }
.band-dark .tag { background: none; color: var(--on-dark-accent); }
.band-dark h2, .band-dark h3 { color: var(--on-dark); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 700px; margin-bottom: 36px; align-items: start; }
.sec-head > div { display: grid; gap: 10px; }
.sec-head p { font-size: 17px; }
.sec-head.with-action { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; max-width: none; }
.sec-head.with-action > div { max-width: 640px; }

/* Hero */
.hero > .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 72px 36px; }
.hero-copy { max-width: none; gap: 24px; }
.hero-panel {
  --chart-bg: var(--mist);
  margin: 0; background: var(--mist); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; gap: 18px;
}
.panel-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.legend { font-size: 13px; }
.legend i { background: var(--accent); }
.panel-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: none; border-radius: 0; overflow: visible; }
.panel-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; gap: 2px; min-width: 0; }
.panel-stats .v { font: 600 19px/1.25 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.panel-stats .gain .v { color: var(--accent); }
.panel-stats .total { background: var(--band-dark); border-color: var(--band-dark); color: var(--on-dark); }
.panel-stats .total .k { color: var(--on-dark-muted); }
.sliders { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 0; }
.slider-top output { font: 700 14px var(--sans); font-variant-numeric: tabular-nums; }
.slider input[type="range"]::-webkit-slider-thumb { border-color: var(--ink); }
.slider input[type="range"]::-moz-range-thumb { border-color: var(--ink); }
@media (max-width: 960px) { .hero > .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 48px 28px; } }
@media (max-width: 560px) {
  .hero-panel { padding: 20px; }
  .sliders { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .panel-stats .v { font-size: 16px; }
  .panel-stats div { padding: 9px 11px; }
}
@media (max-width: 380px) { .panel-stats { grid-template-columns: minmax(0, 1fr); } .panel-stats div { display: flex; justify-content: space-between; align-items: baseline; } }

/* Ridgeline divider */
.ridge { display: block; width: 100%; height: 96px; }
.ridge-back { fill: var(--ridge-back); }
.ridge-front { fill: var(--sage); }
@media (max-width: 640px) { .ridge { height: 56px; } }
#services > .wrap { padding-top: 32px; }

/* Services */
.tiles { gap: 16px; }
.tile, .tile:nth-child(n) { background: var(--surface); border: 1px solid var(--line); min-height: 0; padding: 24px; gap: 10px; }
.tile .meta { font: 400 13px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.tile h3 { font-size: 22px; }
.tile .price {
  justify-self: start; border: 0; padding: 5px 11px; border-radius: 999px; margin-top: 4px;
  background: var(--sage); color: var(--accent); font: 600 12px/1.2 var(--sans);
}
.tile .price.free { background: var(--sun-soft); color: var(--sun-ink); }
.tile.dark, .tile.dark:nth-child(n) { background: var(--band-dark); border-color: var(--band-dark); color: var(--on-dark); }
.tile.dark .meta, .tile.dark p { color: var(--on-dark-muted); }
.tile.dark .price { background: color-mix(in srgb, var(--on-dark) 14%, transparent); color: var(--on-dark); }

.process { margin-top: 32px; grid-template-columns: minmax(0, 1fr); gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.process-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 24px; }
.process h3 { font-size: 24px; }
.process .process-head p { color: var(--muted); font-size: 15px; margin: 0; }
.steps { gap: 0; }
.steps li { padding-right: 24px; gap: 6px; }
.steps li::before { content: ""; width: 24px; height: 24px; background: var(--accent); box-shadow: 0 0 0 5px var(--surface); margin-bottom: 8px; }
.steps li:last-child::before { background: var(--sun); }
.steps li::after { top: 10.5px; left: 34px; right: 10px; height: 0; background: none; border-top: 3px dashed color-mix(in srgb, var(--accent) 38%, transparent); }
.steps .when { font: 700 13px/1.2 var(--sans); color: var(--accent); }
.steps li:last-child .when { color: var(--sun-ink); }
.steps strong { font-weight: 700; font-size: 17px; }
.steps small { font-size: 15px; }
@media (max-width: 560px) { .process { padding: 22px; } }

/* Tools (home, dark band) */
.tool-cards { margin-top: 0; }
.tool-card { background: var(--card-dark); border: 1px solid var(--dark-line); color: var(--on-dark); gap: 12px; grid-template-rows: auto auto 1fr auto; }
.tool-card:hover { border-color: var(--on-dark-accent); }
.tool-card h3 { font-size: 20px; color: var(--on-dark); }
.tool-card p { color: var(--on-dark-muted); }
.tool-card .go { border-top: 0; padding-top: 0; color: var(--on-dark-accent); font-weight: 600; font-size: 15px; }
.ticon { width: 40px; height: 40px; }
.ticon rect:first-child { fill: var(--dark-line); }
.ticon .tl { fill: none; stroke: var(--on-dark-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ticon .ts { fill: var(--sun); }
.ticon .sunline { stroke: var(--sun); }

/* Course */
.course { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.course-intro { gap: 20px; }
.course-intro p { color: var(--muted); font-size: 17px; }
.course-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; border: 0; }
.course-stats div { background: var(--sage); border-radius: 14px; padding: 14px 16px; }
.course-stats .v { font: 700 28px/1.1 var(--sans); letter-spacing: -0.02em; }
.course-stats .k { color: var(--muted); }
.chapters { gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.chapters li { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 16px; padding: 16px 22px; border-radius: 0; background: none; border-bottom: 1px solid var(--line); align-items: center; }
.chapters li:last-child { border-bottom: 0; }
.chapters li::before { content: counter(ch); width: 30px; height: 30px; border-radius: 8px; background: var(--sage); color: var(--accent); font: 700 14px/1 var(--sans); display: grid; place-items: center; }
.chapters span { font-size: 16px; font-weight: 600; }
.chapters small { font: 400 14px var(--sans); color: var(--muted); }
@media (max-width: 860px) { .course { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (max-width: 420px) { .chapters li { grid-template-columns: 30px minmax(0, 1fr); padding: 14px 16px; } .chapters li::before { grid-column: auto; } .chapters small { grid-column: 2; } }

/* Reading */
.shelf { border-color: var(--line); background: var(--surface); }
.shelf h3, .shelf:nth-child(n) h3 { background: var(--sage); font-size: 17px; }
.shelf h3 small { font: 400 13px var(--sans); }

/* About */
.about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about-head { gap: 16px; }
.about .copy { font-size: 17px; gap: 14px; margin-top: 4px; }
.about .copy p, .about .copy p:not(:first-child) { color: var(--muted); font-size: 17px; line-height: 1.65; }
.about-side { display: grid; gap: 14px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 2px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.principles { margin-top: 0; }
.principles div { background: var(--sage); border-radius: 14px; }
.principles strong { font-weight: 700; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 420px) { .facts dd { font-size: 19px; } }

/* Contact */
.contact-band > .wrap { padding-block: 72px; }
.contact-card { position: relative; overflow: hidden; background: var(--band-dark); color: var(--on-dark); border: 1px solid var(--dark-line); border-radius: 24px; padding: 48px; }
.card-ridge { position: absolute; right: 0; bottom: 0; width: 400px; height: 160px; pointer-events: none; }
.card-ridge path { fill: var(--card-dark); }
.card-ridge path.near { fill: color-mix(in srgb, var(--on-dark) 7%, var(--band-dark)); }
.contact-card .contact { position: relative; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.contact-card .tag { color: var(--on-dark-accent); }
.contact-card h2 { color: var(--on-dark); }
.contact-card .muted { color: var(--on-dark-muted); }
.contact-form input, .contact-form select, .contact-form textarea { border-radius: 10px; }
@media (max-width: 860px) { .contact-card .contact { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 560px) { .contact-card { padding: 24px 18px; border-radius: 20px; } .contact-band > .wrap { padding-block: 48px; } }

/* Footer (light) */
footer.site { background: var(--paper); color: var(--muted); border-top: 1px solid var(--line); }
footer.site .wrap { padding-block: 32px 40px; gap: 18px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.foot-brand .mark { width: 28px; height: 28px; }
.foot-links a, .foot-links[aria-label="Elsewhere"] a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
footer .fine { color: var(--muted); }

/* Tools page */
.page-intro > .wrap { padding-block: 64px 48px; gap: 18px; }
.page-intro h1 { font-size: clamp(36px, 4.6vw, 56px); }
.tools-band > .wrap { padding-block: 48px 88px; }
.tool { border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 48px -32px color-mix(in srgb, var(--ink) 28%, transparent); }
.tab { font: 600 14px/1 var(--sans); padding: 11px 16px; border-color: var(--line); background: var(--surface); }
.tab[aria-selected="true"], .tab[aria-selected="true"]:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.group-title { font: 700 12px/1.2 var(--sans); letter-spacing: .08em; color: var(--accent); }
.control { background: var(--mist); border-radius: 10px; }
.control input, .control select { font: 500 15px/1 var(--sans); font-variant-numeric: tabular-nums; }
.control .affix { font: 500 14px var(--sans); }
.answer-block { border-radius: 14px; }
.answer-block .big { font: 700 clamp(40px, 5vw, 58px)/1 var(--sans); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.answer-block .eyebrow { color: var(--on-dark-muted); }
.retire-block { border-radius: 14px; }
.retire-block .rbig { font: 700 clamp(30px, 4vw, 40px)/1.05 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lines dd { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.stress { border-radius: 12px; }
.seg-choice { background: var(--mist); border-radius: 10px; }
.seg-choice span { border-radius: 7px; }
.gscale span, .gavg span { font-family: var(--sans); }
.cta .tag { color: var(--on-dark-accent); }

/* 404 */
.notfound h1 { max-width: 16em; }
.steps li { align-content: start; }
.contact-card .contact-form { background: var(--card-dark); }
.card-ridge { right: auto; left: 0; transform: scaleX(-1); }
@media (max-width: 860px) { .card-ridge { display: none; } }
.hero h1 .accent { display: block; }
.years-note { font-size: 13px; color: var(--muted); margin-top: -4px; }
.years-note strong { color: var(--ink); font-weight: 700; }

/* Age range: one line, two knobs */
.age-range .slider-top > span { display: inline-flex; align-items: baseline; gap: 8px; }
.dual { position: relative; height: 22px; }
.dual::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.dual-fill { position: absolute; top: 9px; height: 4px; border-radius: 4px; background: var(--accent);
  left: calc(9px + (100% - 18px) * var(--a)); width: calc((100% - 18px) * (var(--b) - var(--a))); }
.dual input[type="range"] { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: transparent; }
.dual input[type="range"] + input[type="range"] { z-index: 2; }
.dual input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.dual input[type="range"]::-moz-range-track { background: transparent; }
.dual input[type="range"]::-moz-range-progress { background: transparent; }
.dual input[type="range"]::-webkit-slider-thumb { pointer-events: auto; border-color: var(--ink); }
.dual input[type="range"]::-moz-range-thumb { pointer-events: auto; border-color: var(--ink); }

/* Hero: animated trail */
.trail-panel { gap: 16px; }
.trail-panel .trail-scene { display: block; width: 100%; height: auto; border-radius: 14px; }
.example-pill { font: 600 12px/1 var(--sans); color: var(--accent); background: var(--sage); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.panel-line { margin: 0; font-size: 15px; color: var(--muted); }

/* Free tools band: growth chart card */
#tools .feature { --chart-bg: var(--mist); background: var(--mist); color: var(--ink); border-radius: 20px; padding: 28px; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px; }
#tools .feature .legend { color: var(--muted); }
#tools .feature-side { gap: 22px; }
#tools .feature-side .panel-stats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
#tools .feature-side .panel-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
#tools .feature-side .panel-stats .v { font-size: 20px; }
#tools .sliders { grid-template-columns: minmax(0, 1fr); gap: 16px; }
#tools .slider-top label { color: var(--muted); }
@media (max-width: 900px) {
  #tools .feature { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  #tools .feature-side .panel-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #tools .feature-side .panel-stats div { display: grid; gap: 2px; }
  #tools .feature-side .panel-stats .v { font-size: 16px; }
}
@media (max-width: 480px) {
  #tools .feature { padding: 18px; }
  #tools .feature-side .panel-stats { grid-template-columns: minmax(0, 1fr); }
  #tools .feature-side .panel-stats div { display: flex; }
}
#tools .feature h3, #tools .feature .panel-title { color: var(--ink); }

/* Wellbeing: five-step sliders, ends labelled */
.q-slider { gap: 4px; }
.q-ends { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--muted); }
.q-ends span:last-child { text-align: right; }
.q-ends output { font: 700 13px/1.2 var(--sans); color: var(--ink); text-align: center; }
.q-slider.unset output { font-weight: 500; color: var(--muted); font-style: italic; }
.q-slider.unset input[type="range"]::-webkit-slider-runnable-track { background: color-mix(in srgb, var(--ink) 16%, transparent); }
.q-slider.unset input[type="range"]::-moz-range-progress { background: transparent; }
.q-slider.unset input[type="range"]::-webkit-slider-thumb { border-color: var(--muted); border-style: dashed; }
.q-slider.unset input[type="range"]::-moz-range-thumb { border-color: var(--muted); border-style: dashed; }
fieldset.q legend { margin-bottom: 6px; }

/* Flagship service */
.tile.flagship { position: relative; }
.tile .flag-pill, .svc-label .flag-pill { display: inline-block; vertical-align: 4px; margin-left: 6px; background: var(--sun); color: #1E3A2B; font: 700 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; }

/* Homepage course teaser (full chapters live on Learn) */
.course-home { align-items: center; }
.course-side { display: grid; gap: 20px; }
.learn-course > .wrap { padding-top: 24px; }

/* About on mint: cards stay white so they still stand out */
#about .principles div { background: var(--surface); border: 1px solid var(--line); }
#about .facts div { border-color: var(--line); }

/* Contact card: bigger mountain scene */
.card-ridge, .card-ridge[class] { left: 0; right: 0; bottom: 0; transform: none; width: 100%; height: auto; aspect-ratio: 1100 / 300; }
.card-ridge .sun { fill: var(--sun); opacity: .9; }
.card-ridge .far { fill: color-mix(in srgb, var(--on-dark) 7%, var(--band-dark)); }
.card-ridge .main { fill: color-mix(in srgb, var(--on-dark) 14%, var(--band-dark)); }
.card-ridge .snow { fill: var(--on-dark); opacity: .4; }
.card-ridge .near { fill: color-mix(in srgb, black 18%, var(--band-dark)); }
.card-ridge .tr { fill: color-mix(in srgb, black 30%, var(--band-dark)); }
.card-ridge path { fill-opacity: 1; }

/* Contact form: see-through panel, solid fields */
.contact-card .contact-form { background: color-mix(in srgb, var(--card-dark) 55%, transparent); }
.contact-card .contact-form input, .contact-card .contact-form select, .contact-card .contact-form textarea { background: color-mix(in srgb, var(--on-dark) 9%, var(--band-dark)); }

/* Contact mountains on tablets and phones: keep them, cropped to the big peak */
@media (max-width: 860px) {
  .card-ridge, .card-ridge[class] { display: block; aspect-ratio: auto; height: 240px; }
  .contact-card { padding-bottom: 120px; }
}
@media (max-width: 560px) {
  .card-ridge, .card-ridge[class] { height: 200px; }
  .contact-card { padding-bottom: 96px; }
}
@media (max-width: 860px) { .card-ridge .sun { display: none; } }

/* Pine treeline above About */
.treeline-wrap { overflow: hidden; margin-top: -40px; line-height: 0; }
.treeline { display: block; width: 100%; height: 96px; }
.treeline .tl-back { fill: var(--ridge-back); }
.treeline .tl-front { fill: var(--sage); }
#about > .wrap { padding-top: 32px; }
/* Narrow screens: keep the trees' proportions and crop the sides instead of squashing them */
@media (max-width: 900px) { .treeline-wrap { margin-top: -24px; } .treeline { width: 900px; height: 68px; margin-left: calc(50% - 450px); } }

/* Risk tolerance tool */
.gbands.risk i:nth-child(1) { background: color-mix(in srgb, var(--accent) 22%, var(--paper)); }
.gbands.risk i:nth-child(2) { background: color-mix(in srgb, var(--accent) 42%, var(--paper)); }
.gbands.risk i:nth-child(3) { background: color-mix(in srgb, var(--accent) 64%, var(--paper)); }
.gbands.risk i:nth-child(4) { background: var(--accent); }
.gbands.risk i:nth-child(5) { background: color-mix(in srgb, var(--accent) 55%, var(--ink)); }
.gbands.risk i { flex: 1; }
.q-note { margin: -4px 0 2px; }
.rswing { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rs { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: 12.5px; color: var(--muted); }
.rs strong { font: 600 15px/1.2 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.rs.down strong { color: var(--sun-ink); }
.rs.up strong { color: var(--accent); }
.rdims { display: grid; gap: 14px; }
.rdim { display: grid; gap: 6px; }
.rdim-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--muted); }
.rdim-top strong { color: var(--ink); font-weight: 600; margin-right: 6px; }
.rdim-top output { font: 600 15px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.rbar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.rbar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .35s ease; }
.rflag { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); padding: 12px 14px; border-radius: 10px; border-left: 3px solid var(--accent); background: var(--mist); }
.rflag:empty { display: none; }
.rflag.warn { border-left-color: var(--sun); background: var(--sun-soft); }
.rflag strong { color: var(--ink); font-weight: 600; }
.rmix, .ryear { display: grid; gap: 10px; }
.rtrack .seg.rg, .key.rg { background: var(--accent); }
.rtrack .seg.ri, .key.ri { background: var(--taupe); }
.rtrack .seg.rc, .key.rc { background: color-mix(in srgb, var(--muted) 45%, transparent); }
.ryear-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ry { display: grid; gap: 4px; align-content: start; padding: 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.ry strong { font: 600 17px/1.15 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.ry.down strong { color: var(--sun-ink); }
.ry.up strong { color: var(--accent); }
.ry small { font-size: 11.5px; line-height: 1.35; }
.legend i.band1, .legend i.band2 { height: 10px; width: 14px; border-radius: 3px; }
.legend i.band1 { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.legend i.band2 { background: color-mix(in srgb, var(--accent) 36%, transparent); }
#rfan { width: 100%; height: auto; display: block; overflow: visible; }
.rfan-years { padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 520px) {
  .ryear-grid { grid-template-columns: 1fr; }
  .ry { grid-template-columns: 1fr auto; align-items: baseline; }
  .ry small { grid-column: 1 / -1; }
}
#panel-risk [hidden] { display: none !important; }

/* Home service tiles link to the Services page */
.tiles .tile { position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.tile h3 a { color: inherit; text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tile h3 a:focus-visible { outline: none; }
.tile:has(h3 a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) { .tiles .tile:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px color-mix(in srgb, var(--ink) 40%, transparent); } }

/* Services page */
.svc-intro > .wrap { padding-bottom: 40px; }
.svc-jump { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 32px; }
.svc-jump a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.svc-jump a span { font-weight: 700; font-size: 16px; }
.svc-jump a small { color: var(--muted); font-size: 13px; }
.svc-jump a:hover { border-color: var(--accent); transform: translateY(-2px); }
.svc-jump a.flag { background: var(--band-dark); border-color: var(--band-dark); color: var(--on-dark); }
.svc-jump a.flag small { color: var(--on-dark-muted); }
@media (max-width: 700px) { .svc-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc { scroll-margin-top: 64px; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.svc-main { display: grid; gap: 16px; align-content: start; }
.svc-main h2 { font-size: clamp(34px, 4.4vw, 48px); letter-spacing: -0.03em; line-height: 1.05; }
.svc-label { font-size: 14px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.svc-lead { font-size: 20px; line-height: 1.45; color: var(--ink); }
.svc-main > p { color: var(--muted); font-size: 16.5px; max-width: 38em; }
.svc-sub { font-size: 15px; font-weight: 700; margin-top: 8px; }
.svc-fit { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svc-fit li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15.5px; }
.svc-fit li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); }
.svc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 20px; box-shadow: 0 24px 48px -36px color-mix(in srgb, var(--ink) 30%, transparent); }
.svc-card h3 { font-size: 18px; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc-list li { position: relative; padding-left: 32px; font-size: 15.5px; line-height: 1.45; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%233F7A55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.svc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.svc-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; counter-increment: s; }
.svc-steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 8px; background: var(--sage); color: var(--accent); font: 700 14px/30px var(--sans); text-align: center; }
.svc-steps strong { font-size: 15.5px; }
.svc-steps span { color: var(--muted); font-size: 14.5px; }
.sample { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent); background: var(--mist); }
.sample.ready { border-style: solid; border-color: var(--line); }
.sample-text { display: grid; gap: 2px; padding-left: 34px; position: relative; }
.sample-text::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 30px; border-radius: 4px; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--ink) 30%, transparent); box-shadow: inset 0 9px 0 -6px var(--sage), inset 0 15px 0 -12px var(--line); }
.sample-text strong { font-size: 14.5px; }
.sample-state { font-size: 13px; color: var(--muted); }
.svc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* GlidePath on the dark band */
.band-dark .svc-label { color: var(--on-dark-accent); }
.band-dark .svc-lead { color: var(--on-dark); }
.band-dark .svc-main > p, .band-dark .svc-fit li { color: var(--on-dark-muted); }
.band-dark .svc-sub, .band-dark .svc-main h2 { color: var(--on-dark); }
.band-dark .svc-card { color: var(--ink); border-color: transparent; }
.band-dark .svc-card .btn:not(.ghost) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.band-dark .svc-card .btn.ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.svc-process { grid-column: 1 / -1; background: var(--surface); color: var(--ink); border-radius: 20px; padding: 32px; display: grid; gap: 24px; }
.svc-process h3 { font-size: 20px; }
.svc-cta-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--sage); border-radius: 24px; padding: 40px; }
.svc-cta-card > div { display: grid; gap: 10px; max-width: 40em; }
.svc-cta-card h2 { font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -0.02em; }
.svc-cta-card p { color: var(--muted); font-size: 16.5px; }
@media (max-width: 560px) { .svc-card, .svc-process { padding: 22px; } .svc-cta-card { padding: 28px 22px; } .svc-lead { font-size: 18px; } }
.band-dark .svc-card h3, .band-dark .svc-card strong, .band-dark .svc-process h3, .band-dark .svc-process strong { color: var(--ink); }
.svc-label .flag-pill { margin-left: 0; vertical-align: 0; }

/* About page */
.text-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.about .copy p .text-link { color: var(--accent); }
.about-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.about-hero-copy { display: grid; gap: 18px; align-content: center; }
.about-hero-copy .hero-actions { margin-top: 6px; }
@media (max-width: 860px) { .about-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; } .portrait { max-width: 420px; } }
.portrait { position: relative; margin: 0; aspect-ratio: 5 / 6; border-radius: 24px; overflow: hidden; background: var(--sage); box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--ink) 45%, transparent); }
.portrait img, .portrait-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.portrait img { object-fit: cover; }
.pa-sky { fill: var(--sage); }
.pa-sun { fill: var(--sun); }
.pa-far { fill: var(--ridge-back); }
.pa-main { fill: var(--ink); }
.pa-pine { fill: var(--accent); stroke: var(--sage); stroke-width: 4; }
.pa-near { fill: color-mix(in srgb, var(--accent) 55%, var(--ink)); }
.about-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .about-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.about-col-head { display: grid; gap: 12px; }
.about-col-head h2 { font-size: clamp(30px, 3.6vw, 40px); letter-spacing: -0.025em; line-height: 1.1; }
.about-copy { display: grid; gap: 16px; }
.about-copy p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.about-copy p:first-child { color: var(--ink); font-size: 19px; line-height: 1.6; }
.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .how-grid { grid-template-columns: minmax(0, 1fr); } }
.how-card { border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 10px; align-content: start; background: var(--surface); }
.how-num { width: 34px; height: 34px; border-radius: 9px; background: var(--sage); color: var(--accent); font: 700 15px/34px var(--sans); text-align: center; }
.how-card h3 { font-size: 19px; margin-top: 4px; }
.how-card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.cred-list { margin: 0; display: grid; gap: 12px; }
.cred-list > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; align-items: start; }
.cred-list dt { font: 700 20px/1.2 var(--sans); color: var(--accent); letter-spacing: -0.01em; }
.cred-list dd { margin: 0; display: grid; gap: 4px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.cred-list dd strong { color: var(--ink); font-size: 16px; }
@media (max-width: 480px) { .cred-list > div { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.svc-cta-card .btn.ghost { background: transparent; }

/* Section edges on inner pages */
.about-intro > .wrap { padding-bottom: 24px; }
.about-story > .wrap { padding-top: 40px; }
.treeline-wrap.tl-mist .tl-front { fill: var(--mist); }
#reading > .wrap { padding-top: 32px; }
.treeline-wrap.tl-dark { background: var(--sage); margin-top: 0; }
.treeline-wrap.tl-dark .tl-back { fill: color-mix(in srgb, var(--band-dark) 35%, var(--sage)); }
.treeline-wrap.tl-dark .tl-front { fill: var(--band-dark); }
#compass > .wrap { padding-bottom: 48px; }
#glidepath > .wrap { padding-top: 40px; }
@media (max-width: 900px) { .treeline-wrap.tl-dark { margin-top: 0; } }

/* Tools page: mountain skyline behind the Next step band */
.cta-sky { position: relative; overflow: hidden; isolation: isolate; }
.cta-sky > .wrap { position: relative; z-index: 1; }
.cta-ridge { position: absolute; left: 0; bottom: 0; width: 100%; height: 27.3vw; transform: scaleX(-1); pointer-events: none; z-index: 0; }
.cta-ridge .sun { fill: var(--sun); opacity: .8; r: 15px; }
.cta-ridge .far { fill: color-mix(in srgb, var(--on-dark) 5%, var(--band-dark)); }
.cta-ridge .main { fill: color-mix(in srgb, var(--on-dark) 10%, var(--band-dark)); }
.cta-ridge .snow { fill: var(--on-dark); opacity: .22; }
.cta-ridge .near { fill: color-mix(in srgb, var(--on-dark) 3%, var(--band-dark)); }
.cta-ridge .tr { fill: color-mix(in srgb, black 26%, var(--band-dark)); }
.cta-sky .btn.ghost { background: var(--band-dark); }
/* Very wide screens: hold the mountains at full size on the right and fade them out to the left */
@media (min-width: 1321px) { .cta-ridge { left: auto; right: 0; width: 1320px; height: 360px; -webkit-mask-image: linear-gradient(to right, #000 65%, transparent); mask-image: linear-gradient(to right, #000 65%, transparent); } }
@media (max-width: 860px) { .cta-sky > .wrap { padding-bottom: 150px; } .cta-ridge { height: 200px; } }
@media (max-width: 560px) { .cta-ridge .sun { display: none; } .cta-sky > .wrap { padding-bottom: 120px; } .cta-ridge { height: 170px; } }

/* GlidePath steps: each stop its own colour, warming up to green at the end */
.steps li:nth-child(1) { --c: var(--sun); --n: #E3B341; }
.steps li:nth-child(2) { --c: #E3B341; --n: #9DBE5C; }
.steps li:nth-child(3) { --c: #9DBE5C; --n: var(--accent); }
.steps li:nth-child(4) { --c: var(--accent); --n: var(--accent); }
.steps li::before, .steps li:last-child::before { background: var(--c); }
.steps li::after {
  border-top: 0; height: 3px; top: 10.5px;
  background: linear-gradient(90deg, var(--c), var(--n));
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 12px);
          mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 12px);
}
.steps .when, .steps li:last-child .when { color: color-mix(in srgb, var(--c) 62%, var(--ink)); }

/* Free fit call callout (Services page intro) */
.fit-call { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 24px; padding: 18px 22px; border-radius: 16px; background: var(--sun-soft); border: 1px solid color-mix(in srgb, var(--sun) 35%, transparent); }
.fit-call-text { display: grid; gap: 4px; max-width: 44em; }
.fit-call-text strong { font-size: 16.5px; }
.fit-call-text span { color: var(--muted); font-size: 15px; line-height: 1.5; }
nav.main a.btn, nav.main a.btn:hover { color: var(--paper); }

/* Legal pages: line the text up with the page title instead of centring a narrower column */
.wrap.prose { max-width: var(--max); justify-items: start; }
.prose > * { max-width: 46em; }
@media (min-width: 700px) { .svc-cta-card .svc-actions { flex-wrap: nowrap; } }
.mobile-nav a.btn.mobile-cta { display: flex; justify-content: center; gap: 8px; margin-top: 12px; color: var(--paper); border-bottom: 0; padding: 14px 22px; }

/* Link to FP Canada's public Planner Directory */
.verify-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; font-size: 14.5px; color: var(--accent); text-decoration: none; justify-self: start; }
.verify-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.verify-link.small { font-size: 13px; margin-top: 4px; }
.facts div { align-content: start; }
.verify-link.small { display: inline; }

/* Services: fee promises under the price links */
.pay-points { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--muted); }
.pay-points li { display: inline-flex; align-items: center; gap: 8px; }
.pay-points li:not(:last-child)::before { content: ""; width: 16px; height: 16px; border-radius: 5px; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%233F7A55' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Services: FAQ */
.faq-list { display: grid; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-weight: 700; font-size: 17.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--sage); color: var(--accent); font-weight: 700; font-size: 18px; line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.faq-a { display: grid; gap: 10px; padding: 0 44px 22px 2px; }
.faq-a p { color: var(--muted); font-size: 16px; line-height: 1.65; margin: 0; }
.about-col-head .muted { font-size: 16.5px; }

/* About: who I work with */
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .who-grid { grid-template-columns: minmax(0, 1fr); } }
.who-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; display: grid; gap: 8px; align-content: start; background: var(--surface); position: relative; }
.who-card::before { content: ""; width: 26px; height: 4px; border-radius: 4px; background: var(--sun); margin-bottom: 6px; }
.who-card h3 { font-size: 18.5px; }
.who-card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.about-how.band-mist .how-card { background: var(--surface); }

/* Contact details */
.contact-direct { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-direct li { display: grid; gap: 1px; }
.contact-direct span { font-size: 13px; color: var(--on-dark-muted); }
.contact-direct a { color: var(--on-dark); font-weight: 600; font-size: 17px; text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Compound growth: today's-dollars equivalent */
.answer-block .today, .retire-block .today { font-size: 15px; line-height: 1.45; color: var(--on-dark-muted); }
.answer-block .today strong { color: var(--on-dark); font-weight: 700; }
.retire-block .today { color: var(--muted); }
.retire-block .today strong { color: var(--ink); font-weight: 700; }

/* ---------- Blog ---------- */
.blog-list > .wrap { padding-block: 8px 40px; }
.blog-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.blog-sec-head h2 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.02em; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.post-card h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }

/* Blog: bookshelf of summaries */
.blog-shelf > .wrap { padding-block: 24px 96px; }
.shelf-box { background: var(--mist); border-radius: 24px; padding: 36px 36px 0; overflow: hidden; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 28px 22px; align-items: start; }
.book { display: grid; gap: 12px; color: var(--ink); text-decoration: none; }
.book .cover { aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; padding: 16px 14px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; box-shadow: inset 6px 0 0 rgba(0, 0, 0, .18), 0 14px 24px -14px rgba(30, 58, 43, .6); transition: transform .2s; }
.book:hover .cover { transform: translateY(-4px) rotate(-1deg); }
.book .bt { font-weight: 700; font-size: 15px; line-height: 1.15; }
.book .ba { font-size: 11.5px; opacity: .85; }
.book .bl { display: grid; gap: 2px; font-size: 14px; line-height: 1.35; padding-bottom: 28px; }
.book .bl > span { color: var(--muted); }
.book .bl em { font-style: normal; font-weight: 600; color: var(--accent); font-size: 13.5px; margin-top: 4px; }
.book:hover .bl strong { text-decoration: underline; text-underline-offset: 3px; }
.ledge { height: 14px; background: var(--taupe); margin: 0 -36px; }
.cv1 { background: #1E3A2B; } .cv2 { background: #E9944A; } .cv3 { background: #3F7A55; } .cv4 { background: #6E8FA6; }
.cv5 { background: #B8A577; } .cv6 { background: #A85A1C; } .cv7 { background: #26473A; } .cv8 { background: #5E8C6E; }
@media (max-width: 600px) {
  .shelf-box { padding: 22px 18px 0; border-radius: 18px; }
  .books { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 128px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -18px; padding-inline: 18px; scrollbar-width: none; }
  .books::-webkit-scrollbar { display: none; }
  .book { scroll-snap-align: start; }
  .ledge { margin: 0 -18px; }
}
.post-card a { display: grid; gap: 12px; align-content: start; height: 100%; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.post-card a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(30, 58, 43, .45); }
.post-card h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; }
.post-card p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.post-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.post-card-meta .arr { color: var(--accent); font-weight: 700; transition: transform .2s; }
.post-card a:hover .arr { transform: translateX(3px); }

.post-head > .wrap { max-width: calc(760px + 48px); padding-block: 56px 36px; gap: 14px; }
.post-head h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.025em; }
.back-link { justify-self: start; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--accent); }
.post-meta { color: var(--muted); font-size: 15.5px; }
.post-meta .by { color: var(--ink); font-weight: 600; }

.post-body { max-width: 760px; margin-inline: auto; padding-bottom: 40px; font-size: 18px; line-height: 1.72; color: var(--ink); }
.post-body > * + * { margin-top: 1.15em; }
.post-body h2 { margin-top: 2em; font-size: clamp(25px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.015em; }
.post-body h2 + p { margin-top: .6em; }
.post-body a { color: var(--accent); }
.post-body .signoff { margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--line); font-weight: 600; font-style: italic; }

.takeaways { margin-block: 2em; padding: 26px 28px; border-radius: 18px; background: var(--sage); border-left: 4px solid var(--accent); }
.takeaways h2 { margin: 0 0 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.takeaways ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; font-size: 17px; line-height: 1.55; }
.takeaways li::marker { color: var(--accent); }

.chart-fig { margin-block: 2em; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--mist); display: grid; gap: 14px; }
.cf-title { font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.cf-note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.cf-note .text-link { white-space: nowrap; }
.cf-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.cf-legend li { display: flex; align-items: center; gap: 8px; }
.cf-legend strong { color: var(--ink); font-weight: 700; }
.cf-legend i { width: 18px; height: 3px; border-radius: 2px; background: currentColor; }
.cf-legend .l8 i { background: var(--accent); }
.cf-legend .l4 i { background: var(--taupe); }
.cf-legend .l0 i { background: none; border-top: 2px dashed var(--muted); height: 0; }

.lc { position: relative; height: 260px; margin: 6px 0 24px 52px; }
.lc svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lc path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lc path.l8 { stroke: var(--accent); }
.lc path.l4 { stroke: var(--taupe); }
.lc path.l0 { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 5; }
.lc .gy { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.lc .gy b { position: absolute; right: calc(100% + 10px); transform: translateY(-50%); font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.lc .gx { position: absolute; left: 0; right: 0; top: calc(100% + 8px); font-size: 12.5px; color: var(--muted); }
.lc .gx span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.lc .gx span:first-child { transform: none; }
.lc .gx span:last-child { transform: translateX(-100%); }

.vbars { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 2.5vw, 20px); height: 240px; align-items: end; }
.vb { display: flex; flex-direction: column; height: 100%; gap: 8px; text-align: center; }
.vb-track { flex: 1; position: relative; }
.vb-bar { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 8px 8px 3px 3px; background: var(--taupe); }
.vb-bar.now { background: var(--accent); }
.vb-val { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; font-size: 14px; font-weight: 700; color: var(--ink); }
.vb-lab { font-size: 13px; color: var(--muted); }

.mcols { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(3px, 1vw, 10px); height: 260px; margin-bottom: 22px; }
.mzero { position: absolute; left: 0; right: 0; border-top: 1px solid var(--muted); opacity: .5; }
.mc { position: relative; }
.mc-bar { position: absolute; left: 0; right: 0; border-radius: 4px; }
.mc.up .mc-bar { background: var(--accent); }
.mc.down .mc-bar { background: var(--sun); }
.mc-val { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.mc.down .mc-val { color: var(--sun-ink); }
.mc-lab { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); font-size: 12.5px; color: var(--muted); }
.img-fig img { width: 100%; height: auto; border-radius: 10px; background: var(--paper); }

@media (max-width: 600px) {
  .post-body { font-size: 17px; }
  .chart-fig { padding: 18px 16px; margin-inline: -4px; }
  .lc { height: 200px; margin-left: 44px; }
  .vbars { height: 200px; }
  .vb-val { font-size: 12px; }
  .mcols { height: 220px; }
  .mc-val { font-size: 10px; }
  .mc-val .pct, .mc-lab .full { display: none; }
}
@media (min-width: 601px) { .mc-lab .full { display: inline; } }

.post-end > .wrap { padding-block: 24px 96px; }
.post-end > .wrap { max-width: calc(960px + 48px); display: grid; gap: 28px; }

.author-card { display: flex; gap: 20px; align-items: center; max-width: 760px; margin-inline: auto; width: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 20px; }
.author-card img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.author-card div { display: grid; gap: 6px; }
.author-card p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 520px) { .author-card { flex-direction: column; align-items: flex-start; } }

/* Blog charts: point labels, business cycle, decline rows */
.lc .pt { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--mist); }
.lc .pt.sun { background: var(--sun); }
.lc .pt-lab { position: absolute; transform: translate(10px, -50%); display: grid; font-size: 12.5px; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.lc .pt-lab b { color: var(--ink); font-size: 14px; }
.lc .pt-lab.below { transform: translate(-50%, 12px); text-align: center; }

.cycle svg { width: 100%; height: auto; display: block; overflow: visible; }
.cycle text { font-size: 15px; font-weight: 700; fill: var(--ink); font-family: var(--sans); }
.cycle .cy-phase { font-weight: 600; fill: var(--accent); }
.cycle .cy-muted { font-weight: 500; font-size: 13px; fill: var(--muted); }
.cy-trend { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 6; opacity: .7; }
.cy-wave { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; }
.cy-dot { fill: var(--accent); stroke: var(--mist); stroke-width: 3; }
.cy-dot.sun { fill: var(--sun); }
.cy-span { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; opacity: .35; }
.cy-span.down { stroke: var(--sun); opacity: .5; }
.cycle .cy-phase.down { fill: var(--sun-ink); }

.drows { display: grid; gap: 10px; }
.dr { display: grid; grid-template-columns: 70px 1fr 64px; align-items: center; gap: 12px; font-size: 14px; }
.dr-head { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dr-head span:last-child { text-align: right; }
.dr-yr { font-weight: 700; color: var(--ink); white-space: nowrap; }
.dr-track { position: relative; display: flex; align-items: center; gap: 8px; height: 26px; }
.dr-bar { display: block; height: 100%; border-radius: 4px; background: var(--sun); flex: none; }
.dr-val { font-weight: 700; color: var(--sun-ink); white-space: nowrap; }
.dr-rec { text-align: right; font-weight: 600; color: var(--accent); }
@media (max-width: 600px) {
  .dr { grid-template-columns: 62px 1fr 62px; gap: 8px; font-size: 13px; }
  .dr-head { font-size: 10.5px; letter-spacing: .03em; }
  .lc .pt-lab { font-size: 11px; }
  .cycle text { font-size: 25px; }
  .cycle .cy-phase { font-size: 20px; }
  .lc .pt-lab b { font-size: 12.5px; }
}

/* Blog charts: return ranges, stacked contributions, growth area, self-continuity, checklist */
.rrows { display: grid; gap: 12px; }
.rr { display: grid; grid-template-columns: 70px 1fr 64px; align-items: center; gap: 12px; font-size: 14px; }
.rr-head { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rr-head span:last-child, .rr-neg { text-align: right; }
.rr-lab { font-weight: 700; color: var(--ink); white-space: nowrap; }
.rr-track { position: relative; height: 30px; }
.rr-zero { position: absolute; top: -6px; bottom: -6px; border-left: 1px dashed var(--muted); opacity: .6; }
.rr-bar { position: absolute; top: 6px; bottom: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--sun) 0 var(--z), var(--accent) var(--z) 100%); }
.rr-v { position: absolute; top: 50%; transform: translateY(-50%); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.rr-v.lo { margin-right: 6px; color: var(--sun-ink); }
.rr-v.hi { margin-left: 6px; color: var(--accent); }
.rr-bar.all-pos + .rr-v.lo { color: var(--accent); }
.rr-v.in { margin: 0 8px; color: #fff; }
.rr-v.lo.in { color: #fff; }
.rr-neg { font-weight: 700; color: var(--ink); }

.cf-legend .lg-c i { height: 10px; width: 10px; border-radius: 3px; background: var(--taupe); }
.cf-legend .lg-g i { height: 10px; width: 10px; border-radius: 3px; background: var(--accent); }
.scols { display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(6px, 1.6vw, 14px); height: 250px; }
.sc { display: flex; flex-direction: column; gap: 6px; text-align: center; min-width: 0; }
.sc-total { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.sc-bar { flex: 1; display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; }
.sc-bar > span { display: flex; align-items: center; justify-content: center; min-height: 0; }
.sc-g { background: var(--accent); }
.sc-c { background: var(--taupe); }
.sc-bar b { font-size: 12px; font-weight: 700; color: #fff; }
.sc-c b { color: var(--ink); }
.sc-lab { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.lc path.area { fill: var(--accent); opacity: .12; stroke: none; }
.lc .pt-lab.up { transform: translate(-50%, calc(-100% - 10px)); text-align: center; }
.lc .pt-lab.up:last-of-type { transform: translate(-100%, calc(-100% + 8px)); padding-right: 12px; }

.scl { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.scl-item { display: grid; justify-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.scl-item svg { width: 100%; height: auto; }
.scl .c-now { fill: var(--taupe); fill-opacity: .7; }
.scl .c-fut { fill: var(--accent); fill-opacity: .55; }
.cf-legend .lg-now i { height: 10px; width: 10px; border-radius: 50%; background: var(--taupe); }
.cf-legend .lg-fut i { height: 10px; width: 10px; border-radius: 50%; background: var(--accent); opacity: .8; }

.post-body ul.checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.post-body ul.checks li { position: relative; padding: 12px 16px 12px 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); line-height: 1.5; }
.post-body ul.checks li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 6px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

@media (max-width: 600px) {
  .rr { grid-template-columns: 58px 1fr 44px; gap: 8px; font-size: 13px; }
  .rr-head { font-size: 10px; letter-spacing: .02em; }
  .rr-v { font-size: 11px; }
  .scols { height: 220px; gap: 4px; }
  .sc-total { font-size: 9.5px; }
  .sc-bar b { font-size: 9.5px; }
  .sc-lab { font-size: 10.5px; }
  .scl { gap: 2px; }
  .scl-item { font-size: 11px; }
}

/* Blog charts: allocation, diversification, rebalancing, Lynch; quotes and lists */
:root { --a1: var(--accent); --a2: var(--taupe); --a3: var(--sun); --a4: #6E8FA6; --a5: #C9B98F; }
.alloc { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 28px; align-items: center; }
.alloc svg { width: 100%; height: auto; }
.alloc svg path { fill: none; stroke-width: 26; }
.alloc svg .a1, .alloc-keys .a1 i, .alloc-legend .a1 i, .rb .a1 { stroke: var(--a1); background: var(--a1); }
.alloc svg .a2, .alloc-keys .a2 i, .alloc-legend .a2 i, .rb .a2 { stroke: var(--a2); background: var(--a2); }
.alloc svg .a3, .alloc-keys .a3 i, .alloc-legend .a3 i, .rb .a3 { stroke: var(--a3); background: var(--a3); }
.alloc svg .a4, .alloc-keys .a4 i, .alloc-legend .a4 i, .rb .a4 { stroke: var(--a4); background: var(--a4); }
.alloc svg .a5, .alloc-keys .a5 i, .alloc-legend .a5 i, .rb .a5 { stroke: var(--a5); background: var(--a5); }
.alloc-k { font-size: 12px; fill: var(--muted); font-family: var(--sans); }
.alloc-v { font-size: 18px; font-weight: 700; fill: var(--ink); font-family: var(--sans); }
.alloc-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.alloc-legend li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.alloc-legend li:last-child { border-bottom: 0; padding-bottom: 0; }
.alloc-legend i { width: 14px; height: 14px; border-radius: 4px; }
.alloc-legend strong { color: var(--ink); }
.alloc-keys i { width: 10px !important; height: 10px !important; border-radius: 3px; border: 0 !important; }

.dv { position: relative; height: 240px; margin: 4px 0 30px 26px; }
.dv svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dv-spec { fill: var(--sun); opacity: .16; }
.dv-mkt { fill: var(--accent); opacity: .14; }
.dv-line { fill: none; stroke: var(--sun); stroke-width: 3; }
.dv-floor { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 5; }
.dv-lab { position: absolute; display: grid; font-size: 14px; font-weight: 700; color: var(--ink); }
.dv-lab small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.dv-lab.spec { left: 30%; top: 30%; }
.dv-lab.mkt { left: 55%; top: 76%; }
.dv-y { position: absolute; left: -26px; top: 50%; transform: rotate(-90deg) translateX(50%); transform-origin: left top; font-size: 12.5px; color: var(--muted); }
.dv-x { position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }

.rb { display: grid; gap: 14px; }
.rb-row { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; }
.rb-lab { font-size: 14px; font-weight: 700; color: var(--ink); }
.rb-bar { display: flex; height: 38px; border-radius: 8px; overflow: hidden; gap: 2px; }
.rb-bar span { display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; color: #fff; min-width: 0; overflow: hidden; }
.rb-bar .a2, .rb-bar .a5 { color: var(--ink); }
.rb-bar .xs { font-size: 0 !important; }
@media (max-width: 600px) { .rb-bar .sm { font-size: 0 !important; } }

.lys { display: grid; gap: 14px; }
.ly { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; font-size: 14px; }
.ly-lab { font-weight: 600; color: var(--ink); }
.ly-track { display: flex; align-items: center; gap: 8px; height: 30px; }
.ly-bar { height: 100%; border-radius: 4px; background: var(--taupe); }
.ly-bar.b { background: var(--accent); }
.ly-bar.w { background: var(--sun); }
.ly-val { font-weight: 700; color: var(--ink); }

.post-body blockquote { margin: 1.4em 0; padding: 8px 0 8px 22px; border-left: 4px solid var(--sun); font-size: 22px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.post-body > ul:not(.checks):not(.persona-list):not(.plist) { padding-left: 1.3em; display: grid; gap: 8px; }
.post-body ul.persona-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.post-body ul.persona-list li { padding: 10px 16px; border-radius: 12px; background: var(--sage); }
.post-body ul.persona-list strong { display: inline-block; min-width: 9.5em; color: var(--accent); }

@media (max-width: 600px) {
  .alloc { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .alloc svg { max-width: 190px; }
  .alloc-legend { width: 100%; }
  .dv { height: 200px; }
  .dv-lab { font-size: 12.5px; }
  .dv-lab small { font-size: 11px; }
  .dv-lab.spec { left: 22%; top: 24%; }
  .dv-lab.mkt { left: 40%; top: 74%; }
  .rb-row { grid-template-columns: 1fr; gap: 6px; }
  .rb-bar span { font-size: 10.5px; }
  .ly { grid-template-columns: 1fr; gap: 4px; }
  .post-body blockquote { font-size: 19px; }
  .post-body ul.persona-list strong { display: block; min-width: 0; }
}

/* ARKK vs BRK-B chart */
.lc-ark path.brk { stroke: var(--accent); }
.lc-ark path.ark { stroke: var(--sun); }
.cf-legend .l-brk i { background: var(--accent); }
.cf-legend .l-ark i { background: var(--sun); }
.lc .pt-lab.right { transform: translate(12px, -50%); }
.lc .pt-lab.end { transform: translate(calc(-100% - 12px), -50%); text-align: right; }

/* Retirement post */
.post-body h3 { margin-top: 1.6em; font-size: 20px; line-height: 1.3; }
.post-body h3 + p { margin-top: .5em; }
.lc-life path.acc { stroke: var(--accent); fill: none; stroke-width: 3; }
.lc-life path.dec { stroke: var(--sun); fill: none; stroke-width: 3; }
.lc-life path.acc-a { fill: var(--accent); opacity: .13; }
.lc-life path.dec-a { fill: var(--sun); opacity: .15; }
.lc-life line.ret { stroke: var(--muted); stroke-dasharray: 4 5; opacity: .6; }
.cf-legend .lg-acc i { background: var(--accent); }
.cf-legend .lg-dec i { background: var(--sun); }
.ly.at .ly-lab { display: grid; }
.ly-lab small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ly-bar.t { background: var(--accent); }
.ly-bar.n { background: var(--taupe); }
.ly-bar.r { background: var(--sun); }

/* Book summary posts */
.book-fit { padding: 22px 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.book-fit h2, .more-books h2 { margin: 0 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.book-fit p { font-size: 18px; line-height: 1.55; }
.post-body h2.part { margin-top: 2.4em; padding-top: 1.2em; border-top: 2px solid var(--line); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.post-body h2.part + h2 { margin-top: .8em; }
.post-body .kicker { font-size: 19px; line-height: 1.45; font-style: italic; color: var(--accent); }
.post-body blockquote cite { display: block; margin-top: 8px; font-size: 15px; font-style: normal; font-weight: 600; color: var(--muted); }
.post-body blockquote cite::before { content: "— "; }
.more-books { margin-top: 2em; padding: 24px 26px; border-radius: 18px; background: var(--sage); }
.more-books ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.more-books li { display: grid; gap: 2px; line-height: 1.45; }
.more-books li span { font-size: 15.5px; color: var(--muted); }
.more-books .mb-t { font-weight: 400; }
.more-books p { font-size: 15.5px; }
.post-body .source-note { margin-top: 1.6em; font-size: 14px; color: var(--muted); }

.post-body .refrain { margin-top: 2em; font-size: 22px; line-height: 1.5; font-weight: 700; color: var(--accent); }
.post-body ol.flow { list-style: none; padding: 0; counter-reset: f; display: grid; gap: 8px; }
.post-body ol.flow li { counter-increment: f; position: relative; padding: 12px 16px 12px 52px; border-radius: 12px; background: var(--sage); }
.post-body ol.flow li::before { content: counter(f); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }

/* Reading list: books with a summary */
.shelf li.has-post { padding: 0; }
.shelf li.has-post a { display: grid; gap: 2px; padding-block: 13px; color: inherit; text-decoration: none; }
.shelf li.has-post a > span { font-weight: 700; color: var(--ink); }
.shelf li.has-post a:hover > span { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.shelf li.has-post small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.shelf li.has-post small em { font-style: normal; font-weight: 600; color: var(--accent); }

/* Buffer and Buffett */
.money-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-block: 1.6em; }
.money-trio > div { display: grid; gap: 4px; padding: 18px; border-radius: 14px; background: var(--sage); border-top: 4px solid var(--taupe); }
.money-trio .mt-buffer { border-top-color: var(--sun); }
.money-trio .mt-buffett { border-top-color: var(--accent); }
.money-trio strong { font-size: 17px; }
.money-trio span { font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.lc-buff .pt-lab.up { transform: translate(-10%, calc(-100% - 10px)); text-align: left; }
.ly.nd { grid-template-columns: 100px 1fr; }
@media (max-width: 600px) { .money-trio { grid-template-columns: 1fr; } .ly.nd { grid-template-columns: 82px 1fr; gap: 8px; } .ly.nd .ly-lab { font-size: 13px; } }

/* Die with Zero: health and wealth curves */
.lc-peak { margin-left: 0; height: 240px; }
.lc-peak path.hp { fill: none; stroke: var(--taupe); stroke-width: 3; stroke-dasharray: 7 5; }
.lc-peak path.wp { fill: none; stroke: var(--accent); stroke-width: 3; }
.cf-legend .lg-h i { background: none; border-top: 3px dashed var(--taupe); height: 0; }
.cf-legend .lg-w i { background: var(--accent); }
.peak-band { position: absolute; top: 0; bottom: 0; background: var(--sun); opacity: 1; background: color-mix(in srgb, var(--sun) 14%, transparent); border-inline: 1px dashed var(--sun); }
.peak-band b { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 12px; line-height: 1.25; text-align: center; color: var(--sun-ink); white-space: nowrap; }
@media (max-width: 600px) { .lc-peak { height: 200px; } .peak-band b { font-size: 10.5px; } }

/* Richest Man in Babylon */
.post-body ol.cures { list-style: none; padding: 0; counter-reset: c; display: grid; gap: 10px; }
.post-body ol.cures li { counter-increment: c; position: relative; display: grid; gap: 4px; padding: 16px 18px 16px 62px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.post-body ol.cures li::before { content: counter(c); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: #fff; font-weight: 700; font-size: 14px; }
.post-body ol.cures strong { font-size: 17px; font-style: italic; color: var(--ink); }
.post-body ol.cures span { font-size: 16px; line-height: 1.55; color: var(--muted); }
.split-bar { display: flex; gap: 3px; height: 64px; border-radius: 10px; overflow: hidden; }
.split-bar span { display: grid; align-content: center; justify-items: center; font-size: 12.5px; color: #fff; text-align: center; line-height: 1.2; padding: 0 4px; min-width: 0; }
.split-bar span b { font-size: 18px; }
.split-bar .s70 { background: var(--accent); }
.split-bar .s20 { background: var(--taupe); color: var(--ink); }
.split-bar .s10 { background: var(--sun); }
.split-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.split-key li { display: flex; align-items: center; gap: 10px; }
.split-key i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.split-key .s70 i { background: var(--accent); } .split-key .s20 i { background: var(--taupe); } .split-key .s10 i { background: var(--sun); }
.split-key strong { color: var(--ink); min-width: 2.6em; }
@media (max-width: 600px) { .split-bar span { font-size: 0; padding: 0; } .split-bar span b { font-size: 13.5px; } .post-body ol.cures li { padding-left: 56px; } }

/* Principles summary */
.post-body ul.plist { list-style: none; padding: 0; display: grid; gap: 12px; }
.post-body ul.plist li { padding: 2px 0 2px 18px; border-left: 3px solid var(--taupe); line-height: 1.6; }
.post-body ul.plist li strong { color: var(--ink); }
.post-body .group-label { margin-top: 2.2em; display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--sun-soft); color: var(--sun-ink); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.post-body ol.flow li strong { color: var(--ink); }

.post-body .free-note { padding: 14px 18px; border-radius: 12px; background: var(--sun-soft); color: var(--ink); font-size: 16px; line-height: 1.5; }
.post-body .free-note a { color: var(--sun-ink); font-weight: 600; }
.post-body .refrain-sm { font-size: 19px; line-height: 1.6; }

/* Blog index: intro with start-here panel, banded shelf */
.blog-intro > .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-bottom: 56px; }
.blog-intro-copy { display: grid; gap: 22px; align-content: start; }
.blog-intro .course-stats { max-width: 460px; margin-top: 4px; }
.start-here { background: var(--mist); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; display: grid; gap: 16px; }
.start-here h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.start-here ol { list-style: none; margin: 0; padding: 0; counter-reset: sh; display: grid; gap: 10px; }
.start-here li { counter-increment: sh; }
.start-here a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.start-here a::before { content: counter(sh); grid-row: span 2; width: 30px; height: 30px; border-radius: 8px; background: var(--sage); color: var(--accent); font: 700 14px/30px var(--sans); text-align: center; }
.start-here a::after { content: "→"; grid-column: 3; grid-row: 1 / span 2; color: var(--accent); font-weight: 700; transition: transform .2s; }
.start-here a:hover { border-color: var(--accent); }
.start-here a:hover::after { transform: translateX(3px); }
.start-here span { font-weight: 600; font-size: 16px; line-height: 1.3; }
.start-here small { grid-column: 2; color: var(--muted); font-size: 13.5px; }
.blog-sec-head > div { display: grid; gap: 8px; }
.blog-list > .wrap { padding-block: 24px 64px; }
.blog-shelf.band-mist > .wrap { padding-block: 32px 88px; }
.blog-shelf.band-mist .shelf-box { background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 900px) { .blog-intro > .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 40px; } }
@media (max-width: 420px) { .start-here { padding: 20px; } .start-here a { padding: 12px 14px; column-gap: 12px; } }
.blog-sec-head > .muted, .blog-sec-head > .text-link { white-space: nowrap; }
@media (max-width: 480px) { .blog-sec-head { flex-wrap: wrap; align-items: end; } }
.ridge-mist { line-height: 0; }
.ridge-mist .ridge-front { fill: var(--mist); }
.milestones { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.milestones li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 20px; bottom: 2px; width: 2px; background: color-mix(in srgb, var(--accent) 30%, transparent); }
.milestones li { position: relative; display: grid; gap: 2px; padding: 0 0 18px 32px; }
.milestones li:last-child { padding-bottom: 0; }
.milestones li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--sage); box-shadow: 0 0 0 2px var(--accent); }
.milestones li:last-child::before { background: var(--sun); box-shadow: 0 0 0 2px var(--sun); }
.milestones b { font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: .01em; }
.milestones span { color: var(--muted); font-size: 16px; line-height: 1.45; }
@media (max-width: 860px) { .milestones { margin-top: 10px; } }

/* About: uncertainty-to-clarity path */
.clarity-path { list-style: none; margin: 0 0 40px; padding: 28px 28px 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; background: var(--mist); border: 1px solid var(--line); border-radius: 20px; }
.clarity-path::before, .clarity-path::after { content: ""; position: absolute; top: 44px; left: calc(28px + 16px); width: calc((100% - 56px) * .75); height: 3px; border-radius: 3px; }
.clarity-path::before { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--muted) 55%, transparent) 0 6px, transparent 6px 12px); }
.clarity-path::after { background: linear-gradient(90deg, transparent 0%, var(--accent) 45%, var(--accent) 80%, var(--sun) 100%); }
.clarity-path li { position: relative; display: grid; gap: 4px; align-content: start; padding-right: 18px; }
.cp-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px; position: relative; z-index: 1; background: var(--surface); border: 3px solid var(--accent); box-shadow: 0 0 0 5px var(--mist); }
.cp-start .cp-dot { border: 2px dashed color-mix(in srgb, var(--muted) 70%, transparent); color: var(--muted); font: 700 15px/1 var(--sans); }
.cp-end .cp-dot { background: var(--sun); border-color: var(--sun); color: #fff; }
.clarity-path b { font-size: 16px; font-weight: 700; color: var(--ink); }
.cp-start b { color: var(--muted); }
.cp-end b { color: var(--accent); }
.clarity-path li > span:last-child { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
@media (max-width: 720px) {
  .clarity-path { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 20px; }
  .clarity-path::before, .clarity-path::after { display: none; }
  .clarity-path li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 34px; bottom: -16px; width: 3px; border-radius: 3px; background: var(--accent); }
  .clarity-path li.cp-start::after { background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--muted) 55%, transparent) 0 5px, transparent 5px 10px); }
  .clarity-path li:nth-child(3)::after { background: linear-gradient(180deg, var(--accent), var(--sun)); }
  .clarity-path li { grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding-right: 0; }
  .cp-dot { grid-row: span 2; margin-bottom: 0; }
}

/* About: client map */
.client-map { margin: 28px 0 0; display: grid; gap: 10px; }
.cmap { display: block; width: 100%; height: auto; }
.cmap-land { fill: color-mix(in srgb, var(--accent) 17%, var(--sage)); stroke: color-mix(in srgb, var(--accent) 35%, var(--sage)); stroke-width: .6; stroke-linejoin: round; }
.cmap-lead { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: .5; }
.cmap-pin .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2.5; }
.cmap-pin .halo { fill: var(--accent); opacity: .2; transform-box: fill-box; transform-origin: center; animation: cmap-pulse 3.2s ease-out infinite; }
.cmap-pin.home .dot, .cmap-pin.home .halo { fill: var(--sun); }
.cmap-pin:nth-of-type(2) .halo { animation-delay: .5s; } .cmap-pin:nth-of-type(3) .halo { animation-delay: 1s; }
.cmap-pin:nth-of-type(4) .halo { animation-delay: 1.5s; } .cmap-pin:nth-of-type(5) .halo { animation-delay: 2s; } .cmap-pin:nth-of-type(6) .halo { animation-delay: 2.5s; }
@keyframes cmap-pulse { 0% { transform: scale(.6); opacity: .35; } 70% { transform: scale(1.6); opacity: 0; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cmap-pin .halo { animation: none; } }
.cmap-label { font: 600 21px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--sage); stroke-width: 4px; stroke-linejoin: round; }
.client-map figcaption { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.client-map figcaption span { display: inline-flex; align-items: center; gap: 8px; }
.client-map figcaption i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.client-map figcaption i.home { background: var(--sun); }
@media (max-width: 860px) { .client-map { max-width: 520px; } }

/* About: problems I commonly solve */
.solve { display: grid; gap: 16px; }
.solve h3 { font-size: 20px; letter-spacing: -0.01em; }
.solve-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.solve-list li { position: relative; padding: 13px 16px 13px 46px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.solve-list li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 6px; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%233F7A55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
@media (max-width: 720px) { .solve-list { grid-template-columns: minmax(0, 1fr); } }

/* Learn: book series grouped in the reading list */
.series-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--sage); color: var(--accent); font: 600 11.5px/1.5 var(--sans); font-style: normal; vertical-align: 2px; white-space: nowrap; }
.shelf .vols { list-style: none; margin: 8px 0 2px; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: grid; gap: 6px; }
.shelf .vols li { padding: 0; border: 0; display: block; font-size: 14px; line-height: 1.4; color: var(--muted); }
.shelf .vols b { display: inline-block; min-width: 46px; font-weight: 600; color: var(--ink); }

/* Learn: collapsible reading-list shelves */
.shelves { align-items: start; }
.shelf.is-collapsible:not(.is-open) > ul > li:nth-child(n+4) { display: none; }
.shelf.is-collapsible:not(.is-open) > ul > li:nth-child(3) { border-bottom: 0; }
.shelf-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 14px 22px; border: 0; border-top: 1px solid var(--line); background: var(--mist); color: var(--accent); font: 600 14.5px var(--sans); cursor: pointer; transition: background .2s; }
.shelf-toggle:hover { background: var(--sage); }
.shelf-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.learn-articles > .wrap { padding-block: 24px 72px; }

/* Learn: colour bands to separate course, articles and reading list */
.learn-intro > .wrap { padding-bottom: 24px; }
.learn-course.band-mint > .wrap { padding-block: 40px 80px; }
.band-mint .course-stats div { background: var(--surface); border: 1px solid var(--line); }
.band-mint .chapters { background: var(--surface); }
.learn-articles > .wrap { padding-block: 72px 72px; }

/* Learn: articles carousel (three at a time on desktop) */
.carousel-track { --gap: 20px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 2px 10px; margin: -6px -2px -10px; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; min-width: 0; }
.carousel-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 20px; }
.carousel-nav { display: flex; gap: 10px; align-self: flex-end; }
.carousel-nav[hidden] { display: none; }
.carousel-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 18px/1 var(--sans); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s, opacity .2s; }
.carousel-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 960px) { .carousel-track { grid-auto-columns: calc((100% - var(--gap)) / 2); } }
@media (max-width: 600px) { .carousel-track { --gap: 14px; grid-auto-columns: 86%; } .carousel-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }
.sec-head > .carousel-nav { display: flex; gap: 10px; align-self: flex-end; }
.sec-head > .carousel-nav[hidden] { display: none; }
@media (max-width: 600px) { .sec-head > .carousel-nav { display: none; } }

/* Services: shared 7-step process */
#process > .wrap { padding-block: 72px 80px; }
.flow7 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; counter-reset: fl; }
.flow7 li { counter-increment: fl; position: relative; display: grid; align-content: start; gap: 6px; padding-right: 16px; }
.flow7 li:not(:last-child)::after { content: ""; position: absolute; left: 38px; right: 6px; top: 17px; border-top: 3px dashed color-mix(in srgb, var(--accent) 38%, transparent); }
.fl-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--paper); font: 700 15px/1 var(--sans); margin-bottom: 8px; box-shadow: 0 0 0 5px var(--sage); position: relative; z-index: 1; }
.fl-dot::before { content: counter(fl); }
.flow7 li:first-child .fl-dot { background: var(--surface); color: var(--accent); border: 2px solid var(--accent); }
.flow7 li:last-child .fl-dot { background: var(--sun); }
.flow7 strong { font-size: 16.5px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.flow7 em { font: 600 12.5px/1.3 var(--sans); font-style: normal; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.flow7 .fl-d { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1100px) {
  .flow7 { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 620px; }
  .flow7 li { grid-template-columns: 36px minmax(0, 1fr); column-gap: 18px; row-gap: 3px; padding: 0 0 26px; }
  .flow7 li:last-child { padding-bottom: 0; }
  .flow7 li .fl-dot { grid-row: span 3; margin: 0; }
  .flow7 li > :not(.fl-dot) { grid-column: 2; }
  .flow7 li:not(:last-child)::after { left: 16.5px; right: auto; top: 42px; bottom: 4px; border-top: 0; border-left: 3px dashed color-mix(in srgb, var(--accent) 38%, transparent); }
}
.flow-note { margin-top: 36px; max-width: 46em; font-size: 15.5px; color: var(--muted); padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }

/* Posts: simple comparison table */
.post-body .table-scroll { overflow-x: auto; margin: 8px 0 4px; }
.post-body .laws-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 16px; }
.post-body .laws-table th, .post-body .laws-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.post-body .laws-table tbody tr:last-child > * { border-bottom: 0; }
.post-body .laws-table thead th { background: var(--sage); color: var(--ink); font-weight: 700; font-size: 14.5px; }
.post-body .laws-table tbody th { font-weight: 700; color: var(--accent); width: 22%; }
.post-body .laws-table td { color: var(--ink); }
@media (max-width: 480px) { .post-body .laws-table th, .post-body .laws-table td { padding: 10px 12px; font-size: 14.5px; } }
.svc-time { display: inline-flex; align-items: center; gap: 8px; margin-top: -4px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--ink); font-size: 14px; width: fit-content; }
.svc-time svg { color: var(--accent); flex: none; }
.svc-time strong { font-weight: 700; }
.band-dark .svc-time { background: color-mix(in srgb, var(--on-dark-accent) 16%, transparent); color: var(--on-dark); }
.band-dark .svc-time svg { color: var(--on-dark-accent); }
.svc-card .svc-time { margin: -4px 0 4px; }
.band-dark .svc-card .svc-time { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--ink); }
.band-dark .svc-card .svc-time svg { color: var(--accent); }
.svc-card .svc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 4px; }
.svc-card .svc-meta .svc-time { margin: 0; }
