/* ==========================================================================
   Thinq HR & Insurance Services: site styles v0.2
   Direction locked with Steve (design review call, Sept 2026):
   - Brand navy #101828 (brandbook). Ledger's off-white "paper" for reading.
   - Hero sits in a dark box on the paper page, not a full-bleed white hero.
   - Light and dark mode, with a visible toggle. Dark mode = brand navy.
   - Sunset gradient: less orange, a darker third stop. Never on buttons.
   - Type: brandbook heading face is Stolzl (licensed). Poppins, the
     brandbook's own text face, carries both roles until a Stolzl webfont
     license is confirmed. To switch, add @font-face and put "Stolzl" first
     in --font-head.
   ========================================================================== */

:root {
  --navy: #101828;
  --orange: #FF841F;
  --magenta: #D73582;
  --gold: #F9C462;
  --mint: #1DED9D;
  --dusk: #4A2350;

  --sunset: radial-gradient(ellipse 90% 95% at 70% 120%,
    color-mix(in srgb, var(--orange) 28%, transparent) 0%,
    color-mix(in srgb, var(--magenta) 24%, transparent) 30%,
    color-mix(in srgb, var(--dusk) 18%, transparent) 60%,
    transparent 100%);
  --mark: linear-gradient(180deg, #FF841F 0%, #D73582 100%);
  --box: var(--navy);
  --btn: var(--magenta);
  --btn-text: #000000;
  --btn-hover: #EB6BAA;

  --font-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --t-sm: .875rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: 1.5rem;
  --t-xl: 2rem;
  --t-2xl: clamp(1.875rem, 3.6vw, 2.5rem);
  --t-hero: clamp(2.375rem, 5.4vw, 4.125rem);

  --measure: 66ch;
  --wrap: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
}

/* Light (default): paper */
:root, [data-theme="light"] {
  --bg: #F5F3EC;
  --surface: #FFFDF8;
  --surface-2: #ECE8DD;
  --text: #101828;
  --text-soft: #3D4656;
  --text-mute: #666E7C;
  --line: #DCD6C8;
  --box-text: #FFFFFF;
  --box-soft: rgba(255,255,255,.80);
  --box-line: rgba(255,255,255,.14);
  --focus: #D73582;
  --chip: #FFFDF8;
  color-scheme: light;
}

/* Dark: brand navy */
[data-theme="dark"] {
  --bg: var(--navy);
  --surface: #172237;
  --surface-2: #1E2A42;
  --text: #F3F1EA;
  --text-soft: #C6CBD4;
  --text-mute: #97A0AE;
  --line: #2C3852;
  --box-text: #FFFFFF;
  --box-soft: rgba(255,255,255,.80);
  --box-line: rgba(255,255,255,.12);
  --focus: #1DED9D;
  --chip: #172237;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--t-base); line-height: 1.68;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .2s ease, color .2s ease;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.12; letter-spacing: -.018em; color: var(--text); }
h1 { font-size: var(--t-hero); font-weight: 600; }
h2 { font-size: var(--t-2xl); font-weight: 600; }
h3 { font-size: var(--t-md); font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.box :focus-visible { outline-color: var(--mint); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 200; background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: var(--r-sm); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Keep internal review notes and unpublished items off the visitor-facing site.
   Missing approvals remain tracked in the source; hiding them does not grant approval. */
.staging, .todo, .reviewed, .queued, .nav > a[href="/client-stories/"],
.foot a[href="/client-stories/"] { display: none !important; }
p:has(> .todo:only-child) { display: none; }

/* ---------- Buttons: solid only, never gradient ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1rem/1 var(--font-head); padding: 1rem 1.4rem; border-radius: 9999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn-ghost:hover { background: rgba(127,127,127,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--orange); }
.link:hover { text-decoration-color: var(--magenta); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand img { width: 118px; height: auto; }
.brand .logo-dark { display: none; }
[data-theme="dark"] .brand .logo-light { display: none; }
[data-theme="dark"] .brand .logo-dark { display: block; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav > a, .sub-btn { font: 500 .95rem var(--font-body); color: var(--text); text-decoration: none; background: none; border: 0; border-radius: 9999px; cursor: pointer; padding: .3rem 0; }
.nav > a:hover, .sub-btn:hover { color: var(--magenta); }
[data-theme="dark"] .nav > a:hover, [data-theme="dark"] .sub-btn:hover { color: var(--gold); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); }
.has-sub { position: relative; }
.sub-btn::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2em) rotate(45deg); }
.subnav { display: none; position: absolute; top: calc(100% + .8rem); left: -1rem; min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: .45rem; }
.has-sub.open .subnav { display: block; }
.subnav a { display: block; padding: .6rem .75rem; border-radius: var(--r-sm); text-decoration: none; font-size: .95rem; }
.subnav a:hover { background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.theme-toggle { display: inline-flex; align-items: center; gap: .45rem; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: .5rem .8rem; font: 500 .85rem var(--font-body); cursor: pointer; }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.header-actions .btn { padding: .72rem 1.05rem; font-size: .93rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 9999px; padding: .5rem .75rem; font: 600 .9rem var(--font-body); cursor: pointer; }
@media (max-width: 1060px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem; }
  .nav.open { display: flex; }
  .nav > a, .sub-btn { padding: .85rem 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
  .subnav { position: static; border: 0; background: transparent; padding: 0 0 .5rem 1rem; }
  .header-actions .btn { display: none; }
}

/* ---------- Hero: dark box on paper ---------- */
.hero { padding: clamp(1rem, 3vw, 2rem) 0 0; }
.box { background: var(--box); color: var(--box-text); border-radius: var(--r-lg); position: relative; overflow: hidden; isolation: isolate; }
.box::before { /* broad sunset glow rising gently from the bottom */
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: var(--sunset);
}
.box h1, .box h2, .box h3 { color: var(--box-text); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(2.5rem, 6vw, 5rem); }
.hero-label { font-size: .95rem; font-weight: 500; color: var(--gold); margin: 0 0 1.25rem; }
.hero h1 { max-width: 17ch; }
.hero h1 .second { display: block; color: transparent; background: linear-gradient(90deg, #FFB27A, #F07AB5 60%, #D9A6E6); -webkit-background-clip: text; background-clip: text; }
.hero-lede { font-size: var(--t-md); line-height: 1.55; color: var(--box-soft); max-width: 42ch; margin: 1.5rem 0 2rem; }
.hero .btn-ghost { color: #fff; }
.checks { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 1.4rem 0 0; padding: 0; font-size: var(--t-sm); color: var(--box-soft); }
.checks li { display: flex; align-items: center; gap: .45rem; }
.checks li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--mint); }

/* Status card: Steve's hero panel */
.status { background: rgba(255,255,255,.06); border: 1px solid var(--box-line); border-radius: var(--r-md); padding: 1.4rem; }
.status h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.status ol { list-style: none; margin: 0; padding: 0; }
.status li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--box-line); font-size: .95rem; }
.pill { font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; }
.pill.done { background: rgba(29,237,157,.16); color: var(--mint); }
.pill.doing { background: rgba(249,196,98,.16); color: var(--gold); }
.pill.next { background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }
.status .note { font-size: .8rem; color: rgba(255,255,255,.55); margin: .9rem 0 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Platform strip: scrolls; static when reduced motion */
.platforms { display: flex; align-items: center; gap: 1.5rem; border-top: 1px solid var(--box-line); padding: 1.1rem clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.platforms > span { flex: none; font-size: .8rem; color: rgba(255,255,255,.6); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { display: flex; gap: 3rem; list-style: none; margin: 0; padding: 0; width: max-content; animation: slide 36s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee li { font-weight: 600; font-size: 1.05rem; color: rgba(255,255,255,.85); white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--surface-2); }
.head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.head .kicker { font-size: .95rem; font-weight: 500; color: var(--magenta); margin: 0 0 .75rem; }
[data-theme="dark"] .head .kicker { color: var(--gold); }
.head p:not(.kicker) { font-size: var(--t-md); line-height: 1.55; color: var(--text-soft); margin: 1rem 0 0; }

/* Ask box + question chips (Steve's favorite section) */
.ask { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.75rem, 5vw, 3.5rem); }
.ask-form { display: flex; gap: .6rem; margin: 0 0 1.5rem; }
.ask-form input { flex: 1; min-width: 0; font: 400 1.05rem var(--font-body); color: var(--text); background: var(--bg); border: 2px solid var(--line); border-radius: var(--r-sm); padding: .95rem 1.1rem; }
.ask-form input:focus { border-color: var(--orange); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.chips a { display: inline-block; padding: .7rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--chip); text-decoration: none; font-weight: 500; font-size: .98rem; }
.chips a:hover { border-color: var(--orange); }
@media (max-width: 600px) { .ask-form { flex-direction: column; } }

/* Problem + process chart */
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split .lead { font-size: var(--t-md); line-height: 1.6; color: var(--text-soft); }
.split .lead strong { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.chart { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.chart h3 { font-size: var(--t-sm); color: var(--text-mute); margin-bottom: .75rem; font-weight: 600; letter-spacing: 0; }
.chart ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.chart li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .7rem .9rem; font-size: .93rem; line-height: 1.35; }
.chart .out li { background: transparent; border-style: dashed; color: var(--text-soft); }
.chart .in li::after, .chart .out li::before { content: ""; position: absolute; top: 50%; width: clamp(1rem, 3vw, 2.25rem); height: 2px; background: var(--line); }
.chart .in li::after { left: 100%; }
.chart .out li::before { right: 100%; }
.hub { width: clamp(7rem, 12vw, 9rem); aspect-ratio: 1; margin: 0 clamp(1rem, 3vw, 2.25rem); border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; text-align: center; box-shadow: 0 0 0 7px var(--bg), 0 0 0 9px var(--line); }
[data-theme="dark"] .hub { background: var(--navy); }
.hub div { display: grid; justify-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; line-height: 1.25; padding: 0 .6rem; }
.hub img { width: 34px; }
.chart-note { font-size: var(--t-sm); color: var(--text-mute); margin: 1.25rem 0 0; }
@media (max-width: 700px) { .chart { grid-template-columns: 1fr; gap: 1.25rem; } .chart .in li::after, .chart .out li::before { display: none; } .hub { margin: 0 auto; } }

/* Layers (HR / Benefits / Insurance) */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.layer { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.6rem; position: relative; transition: border-color .15s ease; }
.layer:hover { border-color: var(--orange); }
.layer .tag { font-size: .85rem; color: var(--text-mute); }
.layer h3 { font-size: var(--t-lg); }
.layer p { color: var(--text-soft); margin: 0; flex: 1; }
.layer .more { font-weight: 600; font-size: .95rem; margin-top: .75rem; }
.also { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin-top: 1.5rem; }
@media (max-width: 860px) { .layers { grid-template-columns: 1fr; } }

/* Gantt: the project map */
.gantt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 4vw, 2.5rem); overflow-x: auto; }
.gantt-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: baseline; margin-bottom: 1.25rem; }
.gantt-title h3 { font-size: var(--t-md); }
.gantt-title span { font-size: var(--t-sm); color: var(--text-mute); }
.g-grid { display: grid; grid-template-columns: minmax(11rem, 14rem) repeat(6, minmax(4.5rem, 1fr)); min-width: 720px; }
.g-grid > div { padding: .6rem .5rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.g-head { font-size: .78rem !important; font-weight: 600; color: var(--text-mute); border-bottom: 2px solid var(--text) !important; }
.g-task { font-weight: 500; }
.g-task small { display: block; color: var(--text-mute); font-weight: 400; font-size: .78rem; }
.g-bar { position: relative; }
.g-bar i { position: absolute; top: 50%; transform: translateY(-50%); height: 14px; border-radius: 4px; background: var(--navy); }
[data-theme="dark"] .g-bar i { background: #6E7FA3; }
.g-bar i.you { background: transparent; border: 2px solid var(--orange); }
.g-bar i.mile { width: 14px !important; height: 14px; transform: translateY(-50%) rotate(45deg); background: var(--magenta); border-radius: 2px; }
.g-legend { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem; font-size: var(--t-sm); color: var(--text-soft); }
.g-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.g-legend b { width: 18px; height: 10px; border-radius: 3px; background: var(--navy); display: inline-block; }
[data-theme="dark"] .g-legend b { background: #6E7FA3; }
.g-legend b.you { background: transparent; border: 2px solid var(--orange); }
.g-legend b.mile { width: 10px; height: 10px; transform: rotate(45deg); background: var(--magenta); border-radius: 2px; }

/* Three reasons */
.reasons { list-style: none; counter-reset: r; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); margin: 0; padding: 0; }
.reasons li { border-top: 2px solid var(--text); padding-top: 1.1rem; }
.reasons h3 { margin-bottom: .45rem; }
.reasons p { margin: 0; color: var(--text-soft); }
@media (max-width: 860px) { .reasons { grid-template-columns: 1fr; } }

/* Credential */
.cred { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.headshot { aspect-ratio: 4/5; border-radius: var(--r-md); overflow: hidden; background: #fff; }
.headshot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 38% center; transform: scale(1.06); }
.cred .quote { font-family: var(--font-head); font-size: var(--t-lg); font-weight: 500; line-height: 1.4; letter-spacing: -.01em; max-width: 36ch; margin-bottom: 1rem; }
.cred p { color: var(--text-soft); max-width: 60ch; }
@media (max-width: 700px) { .cred { grid-template-columns: 1fr; } .headshot { max-width: 180px; } }

/* Resources */
.res { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.res a { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; }
.res a:hover { border-color: var(--orange); }
.res .type { font-size: .85rem; font-weight: 600; color: var(--magenta); }
[data-theme="dark"] .res .type { color: var(--gold); }
.res h3 { margin: .35rem 0 .5rem; }
.res p { margin: 0; color: var(--text-soft); font-size: .97rem; }
@media (max-width: 760px) { .res { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 1.2rem 2.5rem 1.2rem 0; font: 600 var(--t-md)/1.35 var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 1.5rem; width: .6rem; height: .6rem; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(225deg); top: 1.8rem; }
.faq .a { color: var(--text-soft); padding-bottom: 1.2rem; }
.faq .a p:last-child { margin: 0; }

/* Closing box */
.closing .box { padding: clamp(2.5rem, 6vw, 4.5rem); }
.closing h2 { max-width: 20ch; }
.closing p { color: var(--box-soft); font-size: var(--t-md); max-width: 50ch; margin: 1rem 0 1.75rem; }

/* ---------- Interior pages ---------- */
.page-hero .box { padding: clamp(2.25rem, 6vw, 4.25rem); }
.crumbs { font-size: var(--t-sm); color: rgba(255,255,255,.6); margin: 0 0 1.25rem; }
.crumbs a { color: rgba(255,255,255,.82); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); max-width: 22ch; }
.page-hero .answer { font-size: var(--t-md); line-height: 1.55; color: var(--box-soft); max-width: 58ch; margin: 1.25rem 0 0; }
.page-hero .btn-row { margin-top: 1.75rem; }
.page-hero .btn-ghost { color: #fff; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { max-width: var(--measure); }
.prose > h2 { font-size: var(--t-xl); margin: 3.25rem 0 1rem; }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-soft); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.2rem; }
.aside { position: sticky; top: 96px; font-size: var(--t-sm); border-left: 1px solid var(--line); padding-left: 1.4rem; }
.aside h2 { font-size: var(--t-sm); color: var(--text-mute); margin: 0 0 .7rem; letter-spacing: 0; }
.aside ul { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.aside li { margin-bottom: .5rem; }
.aside a { text-decoration: none; color: var(--text-soft); }
.aside a:hover { color: var(--text); text-decoration: underline; }
.aside .btn { width: 100%; }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; } .aside { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.25rem; } }

.phases { list-style: none; counter-reset: p; margin: 1.25rem 0 2rem; padding: 0; }
.phases > li { counter-increment: p; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.phases > li::before { content: counter(p); font: 600 var(--t-xl)/1 var(--font-head); background: var(--mark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phases h3 { margin: 0 0 .35rem; }
.phases p { margin: 0 0 .4rem; }

.starts { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 1.25rem 0 2rem; }
.start { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.2rem 1.35rem; }
.start h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.start p { margin: 0 0 .5rem; font-size: .95rem; }
.start .first { margin: 0; color: var(--text); }
@media (max-width: 640px) { .starts { grid-template-columns: 1fr; } }

.example { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--r-sm); padding: 1.3rem 1.5rem; margin: 2rem 0; }
.example .label { font-size: var(--t-sm); color: var(--text-mute); margin: 0 0 .35rem; }
.example p:last-child { margin: 0; }
.disclosure { border-left: 4px solid var(--gold); padding: .2rem 0 .2rem 1.2rem; margin: 2.5rem 0; font-size: .95rem; color: var(--text-soft); }
.disclosure strong { display: block; color: var(--text); margin-bottom: .25rem; }
.reviewed { font-size: var(--t-sm); color: var(--text-mute); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.5rem; }

/* Book */
.book { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.25rem); }
.form-card h2 { font-size: var(--t-lg); margin-bottom: .4rem; }
.form-card .sub { color: var(--text-soft); margin-bottom: 1.25rem; }
.embed-slot { border: 2px dashed var(--line); border-radius: var(--r-md); min-height: 420px; display: grid; place-items: center; text-align: center; padding: 1.5rem; color: var(--text-soft); }
.embed-slot div { display: grid; gap: .9rem; justify-items: center; max-width: 36ch; }
.meeting-embed { display: block; width: 100%; min-height: 720px; border: 0; background: var(--surface); }
.meeting-fallback { margin: .75rem 0 0; font-size: var(--t-sm); }
.next { list-style: none; counter-reset: n; margin: 1rem 0 0; padding: 0; }
.next li { counter-increment: n; display: grid; grid-template-columns: 2.25rem 1fr; gap: .75rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.next li::before { content: counter(n); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .9rem; background: var(--navy); color: #fff; }
[data-theme="dark"] .next li::before { background: var(--orange); color: var(--navy); }
.next h3 { font-size: 1.05rem; margin: .15rem 0 .25rem; }
.next p { margin: 0; color: var(--text-soft); }
.contact-line { margin-top: 1.5rem; color: var(--text-soft); }
@media (max-width: 900px) { .book { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--section); border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--text-soft); }
.site-footer .wrap { padding-top: 3rem; padding-bottom: 2.25rem; }
.foot { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
.foot img { width: 120px; margin-bottom: 1rem; }
.foot .logo-dark { display: none; }
[data-theme="dark"] .foot .logo-light { display: none; }
[data-theme="dark"] .foot .logo-dark { display: block; }
.foot h2 { font-size: var(--t-sm); letter-spacing: 0; margin: 0 0 .8rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .45rem; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; color: var(--text); }
.legal { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .4rem; color: var(--text-mute); }
.legal a { color: var(--text-soft); }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }

/* v0.2 fixes after screenshot review */
[data-theme="dark"] .box { border: 1px solid #25324A; }
.intro { padding: clamp(2rem, 5vw, 3rem) 0; }
.intro p { max-width: 62rem; font-size: var(--t-md); line-height: 1.6; color: var(--text-soft); margin: 0; }
.split { grid-template-columns: 1fr 1fr; }
.chart-wrap { margin-top: clamp(2rem, 5vw, 3.25rem); max-width: 1000px; }
.cred .quote { color: var(--text); }

/* ===================== v0.3: templates for the full site ===================== */
.queued-note { font-size: var(--t-sm); }

.byline { font-size: .92rem; color: var(--box-soft); margin: 1.25rem 0 0; display: flex; gap: .75rem; align-items: center; }
.byline img { width: 28px; }
.cluster-tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; margin-bottom: 1rem; background: rgba(255,255,255,.1); color: #fff; border-left: 4px solid var(--c, var(--orange)); }

/* Category colors (Steve: color-code the question by category) */
.c-hire { --c: #FF841F; } .c-benefits { --c: #D73582; } .c-peo { --c: #8E4AA0; }
.c-payroll { --c: #3E6FB0; } .c-compliance { --c: #0E9F6E; } .c-insurance { --c: #C98A12; } .c-help { --c: #667085; }

/* Knowledge base */
.kb-bar { position: sticky; top: 74px; z-index: 40; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: .85rem 0; }
.kb-bar .wrap { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.kb-bar input { flex: 1 1 260px; font: 400 1rem var(--font-body); color: var(--text); background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-sm); padding: .7rem .9rem; }
.kb-bar input:focus { border-color: var(--orange); outline: none; }
.kb-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.kb-filters button { font: 500 .88rem var(--font-body); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--line)); border-radius: 999px; padding: .45rem .8rem; cursor: pointer; }
.kb-filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); border-left-color: var(--c, var(--navy)); }
[data-theme="dark"] .kb-filters button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.kb-note { font-size: var(--t-sm); color: var(--text-mute); margin: .9rem 0 0; }
.kb-list { list-style: none; margin: 0; padding: 0; }
.kb-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 1.25rem; align-items: start; padding: 1.35rem 0 1.35rem 1rem; border-bottom: 1px solid var(--line); border-left: 5px solid var(--c); }
.kb-row h3 { font-size: 1.2rem; line-height: 1.35; }
.kb-row h3 a { text-decoration: none; }
.kb-row h3 a:hover { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.kb-row .short { margin: .35rem 0 0; color: var(--text-soft); font-size: .97rem; }
.kb-meta { display: flex; flex-direction: column; gap: .35rem; align-items: flex-end; text-align: right; font-size: .82rem; color: var(--text-mute); white-space: nowrap; }
.kb-cat { font-weight: 600; color: var(--text); background: color-mix(in srgb, var(--c) 16%, transparent); padding: .2rem .6rem; border-radius: 999px; }
.kb-row.queued h3 { color: var(--text-mute); }
.kb-empty { display: none; padding: 2rem 0; color: var(--text-soft); }
@media (max-width: 760px) { .kb-row { grid-template-columns: 1fr; gap: .5rem; } .kb-meta { flex-direction: row; align-items: center; } }

/* Video cards: thumbnail links, no iframes until someone clicks through (fast, private) */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.vcard { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.vcard:hover { border-color: var(--orange); }
.vthumb { aspect-ratio: 16/9; background: var(--navy); position: relative; display: grid; place-items: center; color: rgba(255,255,255,.7); font-size: var(--t-sm); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vthumb::after { content: ""; position: absolute; width: 54px; height: 54px; border-radius: 50%; background: color-mix(in srgb, var(--navy) 80%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat; }
.vcard div.vtext { padding: 1rem 1.1rem 1.2rem; }
.vcard h3 { font-size: 1.02rem; line-height: 1.35; }
.vcard p { margin: .35rem 0 0; font-size: .88rem; color: var(--text-mute); }
.video-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.video-feature .vcard { border-radius: var(--r-lg); }
@media (max-width: 860px) { .video-feature { grid-template-columns: 1fr; } }

/* Gantt sections */
.gantt + .gantt { margin-top: 2rem; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 2rem; }

/* Calculators */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 4vw, 2.25rem); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); }
.calc + .calc { margin-top: 2rem; }
.calc h2 { font-size: var(--t-lg); margin-bottom: .4rem; }
.calc .sub { color: var(--text-soft); margin-bottom: 1.25rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 500; }
.field input, .field select { font: 400 1rem var(--font-body); color: var(--text); background: var(--bg); border: 2px solid var(--line); border-radius: var(--r-sm); padding: .65rem .75rem; width: 100%; }
.field input:focus, .field select:focus { border-color: var(--orange); outline: none; }
.field small { color: var(--text-mute); font-size: .78rem; }
fieldset.tiers { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .9rem 1rem 1rem; margin: 0; }
fieldset.tiers legend { font-size: .88rem; font-weight: 600; padding: 0 .4rem; }
.tier-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: .5rem .75rem; align-items: center; font-size: .9rem; }
.tier-grid .h { font-size: .78rem; font-weight: 600; color: var(--text-mute); }
.tier-grid input { font: 400 .95rem var(--font-body); color: var(--text); background: var(--bg); border: 2px solid var(--line); border-radius: var(--r-sm); padding: .5rem .6rem; width: 100%; }
.results { background: var(--box); color: #fff; border-radius: var(--r-md); padding: 1.5rem; align-self: start; position: sticky; top: 96px; }
.results h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.results dl { margin: 0; display: grid; gap: .1rem; }
.results dt { font-size: .82rem; color: rgba(255,255,255,.65); margin-top: .8rem; }
.results dd { margin: 0; font: 600 1.6rem/1.2 var(--font-head); }
.results dd.small { font-size: 1.1rem; }
.results .fine { font-size: .78rem; color: rgba(255,255,255,.6); margin: 1.1rem 0 0; }
.safe { display: flex; gap: .75rem; align-items: flex-start; background: color-mix(in srgb, var(--mint) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--mint) 40%, var(--line)); border-radius: var(--r-md); padding: 1rem 1.2rem; margin: 0 0 2rem; font-size: .95rem; }
.safe strong { display: block; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .results { position: static; } .fields { grid-template-columns: 1fr; } }

/* Checklist */
.check-stage { border-top: 2px solid var(--text); padding: 1.25rem 0 .5rem; margin-top: 1.5rem; }
.check-stage h3 { font-size: var(--t-md); margin-bottom: .75rem; }
.check-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.check-table th, .check-table td { text-align: left; vertical-align: top; padding: .7rem .75rem .7rem 0; border-bottom: 1px solid var(--line); }
.check-table th { font-size: .8rem; color: var(--text-mute); font-weight: 600; }
.check-table td:first-child { color: var(--text); font-weight: 500; width: 38%; }
.check-table td { color: var(--text-soft); }
.table-scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.25rem 0 2rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .8rem .9rem .8rem 0; border-bottom: 1px solid var(--line); }
.compare thead th { border-bottom: 2px solid var(--text); font-weight: 600; }
.compare td { color: var(--text-soft); }
.compare td:first-child { color: var(--text); font-weight: 500; min-width: 9rem; }

/* Capture card (checklist email) */
.capture { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.25rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.capture h2 { font-size: var(--t-lg); margin-bottom: .5rem; }
.capture p { color: var(--text-soft); margin: 0; }
.capture .embed-slot { min-height: 160px; }
@media (max-width: 800px) { .capture { grid-template-columns: 1fr; } }

/* Stories */
.story { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.25rem); }
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 2rem; margin-top: 1rem; }
.story-grid h3 { font-size: 1rem; color: var(--text-mute); margin-bottom: .3rem; }
.story-grid p { margin: 0; color: var(--text-soft); }
@media (max-width: 760px) { .story-grid { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.about-grid .headshot { position: sticky; top: 100px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-grid .headshot { position: static; max-width: 220px; } }
.facts { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 2rem; }
.facts li { border-top: 1px solid var(--line); padding-top: .6rem; color: var(--text-soft); }
.facts b { display: block; color: var(--text); font-weight: 600; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

.placeholder-page { min-height: 240px; border: 2px dashed var(--line); border-radius: var(--r-lg); display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--text-soft); }
.kb-row[hidden] { display: none; }
