/* ==========================================================================
   Settle Divorce — site stylesheet
   v2 restyle: cream/pine/sage palette, italic-serif accents, pill buttons,
   grain-over-gradient photo treatment.
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   TOKENS — v2 cream/pine/sage palette
   -------------------------------------------------------------------------- */
:root {
  --ink:     #15211B;
  --pine:    #161F19;
  --sage:    #5F7263;
  --taupe:   #A9A08A;
  --sand:    #CFC8B8;
  --cream:   #F6F4EE;
  --paper:   #FFFFFF;
  --mint:    #DDE7DD;
  --accent:  #2E5E4E;
  --gold:    #B98A2F;

  --radius:    18px;
  --radius-sm: 12px;
  --radius-xs: 4px;
  --radius-lg: 22px;

  --shadow:       0 1px 2px rgba(21,33,27,.04);
  --shadow-hover: 0 4px 16px rgba(21,33,27,.1), 0 8px 32px rgba(21,33,27,.08);
  --shadow-lg:    0 24px 60px rgba(21,33,27,.10);

  --maxw:       1180px;
  --maxw-prose: 68ch;
  --font: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;

  --page-gutter: clamp(20px, 5vw, 48px);
  --sec-py: clamp(3rem, 8vw, 6rem);

  --text-xs:   .72rem;
  --text-sm:   .86rem;
  --text-base: 1rem;
  --text-md:   1.02rem;
  --text-lg:   1.125rem;
  --text-xl:   clamp(1.25rem, 2.5vw, 1.375rem);
  --text-2xl:  clamp(1.5rem, 3.5vw, 1.875rem);
  --text-3xl:  clamp(1.875rem, 5vw, 2.5rem);
  --text-4xl:  clamp(2.25rem, 6vw, 3.25rem);
  --text-5xl:  clamp(2.5rem, 7vw, 3.75rem);

  /* legacy compat aliases */
  --brand:       var(--accent);
  --brand-hi:    #3a7a64;
  --brand-press: #245546;
  --brand-text:  var(--accent);
  --brand-tint:  var(--mint);
  --brand-on-dark: #8FBF9F;
  --btn-text:    #fff;

  --ink-soft:    #4B564E;
  --muted:       var(--sage);

  --surface:     var(--cream);
  --surface-alt: var(--cream);
  --border:      #E7E3D8;
  --border-firm: #D5D0C4;

  --dark-bg:     var(--pine);
  --dark-text:   #fff;
  --dark-muted:  #B9C4B8;

  --warn-bg:     #F3E9CF;
  --warn-border: #e0b357;
  --warn-text:   #6B5511;

  --success:     var(--accent);
  --success-bg:  var(--mint);

  --negative:    #b3261e;
  --negative-bg: #fdeceb;

  --green-50:    var(--mint);
  --green-200:   #b3dfd1;
  --green-800:   #1a2e25;
  --green-900:   var(--pine);
  --green-950:   #0d1612;

  font-size: 16px;
}

/* --------------------------------------------------------------------------
   RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body { margin: 0; font-size: var(--text-base); line-height: 1.65; }

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:hover { color: var(--brand-hi); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

em.serif {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.01em;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.wrap--prose { max-width: calc(var(--maxw-prose) + var(--page-gutter) * 2); }

/* Static service pages (no sidebar): wider content column than the article
   measure, and the article-v3 heading rhythm for headings that introduce a
   list (`.steps` resets its own margin/padding, which otherwise collapses
   the gap below the heading and misaligns the list against `.prose ol`). */
.static-page .wrap--prose { max-width: calc(880px + var(--page-gutter) * 2); }
.static-page .prose > .steps { margin-top: 1.25rem; padding-left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: .6rem 1.1rem; background: var(--accent); color: #fff;
  font-weight: 700; text-decoration: none; border-radius: 0 0 var(--radius-xs) 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: block;
  font-size: var(--text-xs); font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--sage);
  margin-bottom: .5rem;
}

/* --------------------------------------------------------------------------
   BUTTONS — pill style
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem;
  font: inherit; font-size: .92rem; font-weight: 700; line-height: 1.3;
  text-align: center; text-decoration: none; cursor: pointer;
  background: var(--ink); color: #fff;
  border: 0; border-radius: 999px;
  transition: background .15s, transform .15s ease, box-shadow .15s;
}
.btn:hover {
  background: var(--accent); color: #fff;
  transform: translateY(-1px);
}
.btn:active { transform: none; }

.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--ghost:hover {
  background: var(--mint); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn--on-dark { background: var(--brand-on-dark); color: var(--pine); }
.btn--on-dark:hover { background: #b3dfd1; color: var(--pine); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--brand-hi); color: #fff; }

.btn--sm { padding: .55rem 1.15rem; font-size: var(--text-xs); }

.btn[aria-disabled="true"] {
  background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--border);
  color: var(--sage); cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   HEADER — frosted cream nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,244,238,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #E4E0D4;
}

.site-header__inner {
  display: flex; align-items: center; gap: 2rem;
  padding-block: .9rem;
}

.site-logo {
  display: flex; align-items: baseline; gap: .35rem;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.site-logo b { font-weight: 800; }
.site-logo span { color: var(--accent); }

/* ── Mobile nav toggle ── */
.nav-toggle {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .8rem; font: inherit; font-size: var(--text-sm); font-weight: 700;
  background: transparent; color: var(--ink);
  border: 1px solid var(--border-firm); border-radius: 999px;
  cursor: pointer; transition: border-color .15s;
}
.nav-toggle:hover { border-color: var(--sage); }

/* ── Nav: mobile (default) ── */
.site-nav {
  display: none;
  width: 100%;
  padding-block: .75rem 1.25rem;
  border-top: 1px solid var(--border);
}
.site-nav.is-open { display: block; }

/* Mobile nav becomes a fixed overlay sheet so opening it never reflows the
   header or pushes hero content down. --header-h is set by site.js from the
   header's measured height; the fallback covers no-JS / pre-measurement. */
@media (max-width: 55.99em) {
  .site-nav.is-open {
    position: fixed;
    inset: var(--header-h, 64px) 0 0 0;
    z-index: 90;
    width: auto;
    margin: 0;
    padding: 1.25rem var(--page-gutter) 2rem;
    background: var(--cream);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html.nav-open,
  html.nav-open body {
    overflow: hidden;
  }
}

.site-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .1rem;
}

.site-nav a,
.site-nav__group > summary {
  display: block; padding: .65rem .5rem;
  color: var(--ink); text-decoration: none;
  font-size: .92rem; font-weight: 600;
  border-radius: var(--radius-xs);
  opacity: .85;
  transition: opacity .1s, background .1s;
}
.site-nav a:hover,
.site-nav__group > summary:hover { opacity: 1; background: rgba(0,0,0,.03); }
.site-nav a[aria-current="page"] { color: var(--accent); opacity: 1; }

/* ── Dropdown groups ── */
.site-nav__group { border: 0; padding: 0; margin: 0; }
.site-nav__group > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: .35rem;
}
.site-nav__group > summary::-webkit-details-marker { display: none; }
.site-nav__group > summary::after {
  content: ""; display: inline-block;
  width: .4rem; height: .4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .15s;
  margin-top: -.1rem; opacity: .5;
}
.site-nav__group[open] > summary::after { transform: rotate(-135deg); }

.site-nav__dropdown {
  list-style: none; margin: 0; padding: 0 0 0 1rem;
}
.site-nav__dropdown-label {
  font-size: var(--text-xs); font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--sage); padding: .6rem .5rem .25rem;
  display: block; opacity: .6;
}
.site-nav__dropdown a {
  font-size: var(--text-sm); font-weight: 500;
  padding: .45rem .5rem;
}

.site-nav__cta { margin-top: .75rem; padding-inline: .5rem; }
.site-nav__cta .btn { width: 100%; color: #fff; }

/* ── Nav: desktop ── */
@media (min-width: 56em) {
  .nav-toggle { display: none; }
  .site-header__inner { flex-wrap: nowrap; }
  .site-nav {
    display: flex; align-items: center; gap: 0;
    width: auto; margin-left: auto;
    padding: 0; border-top: 0;
  }
  .site-nav__list { display: flex; gap: .15rem; }

  .site-nav a,
  .site-nav__group > summary {
    padding: .45rem .7rem; font-size: .92rem;
    white-space: nowrap;
  }

  .site-nav__group { position: relative; }
  .site-nav__dropdown {
    display: none; position: absolute;
    top: 100%; left: 50%; transform: translateX(-50%);
    min-width: 15rem; padding: .6rem 0;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    z-index: 70;
  }
  .site-nav__group[open] > .site-nav__dropdown,
  .site-nav__group:focus-within > .site-nav__dropdown { display: block; }

  .site-nav__dropdown-label { padding: .5rem .9rem .2rem; }
  .site-nav__dropdown a { padding: .4rem .9rem; font-size: var(--text-sm); color: var(--ink); }
  .site-nav__dropdown a:hover { background: var(--cream); }

  .site-nav__cta { margin-top: 0; margin-left: .75rem; padding: 0; }
  .site-nav__cta .btn { width: auto; padding: .5rem 1.1rem; font-size: var(--text-xs); }
}

/* --------------------------------------------------------------------------
   HERO — gradient photo with grain overlay
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(500px, calc(58vh + 80px), 780px);
  display: flex; align-items: center;
  overflow: hidden;
}

.hero__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 38% 55%;
  background:
    radial-gradient(1200px 500px at 78% 18%, rgba(255,244,214,.55), transparent 60%),
    radial-gradient(900px 600px at 15% 85%, rgba(20,40,30,.55), transparent 65%),
    linear-gradient(160deg,#7E8F7C 0%, #55684F 38%, #2C3D2E 78%, #1B2A1F 100%);
}

.hero__grain, .grain {
  position: absolute; inset: 0;
  opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.6'/></svg>");
}

.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,rgba(10,16,12,.15) 0%,rgba(10,16,12,.0) 35%,rgba(10,16,12,.45) 100%);
}

.hero__inner {
  position: relative; width: 100%;
  padding-top: clamp(1.5rem, 6vh, 7rem);
  padding-bottom: clamp(1.5rem, 6vh, 7rem);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem,4.6vw,3.9rem);
  line-height: 1.12; letter-spacing: -.025em;
  font-weight: 800; max-width: 19ch;
  text-wrap: balance;
}
.hero h1 em.serif { font-weight: 400; }

.hero__strap {
  margin-top: 1.4rem; color: #E9EFE6;
  font-size: var(--text-md); font-weight: 600;
}
.hero__strap em.serif { color: #F4E8C6; }

.hero__actions {
  margin-top: 1.8rem; display: flex; gap: .9rem; flex-wrap: wrap;
}
.hero .btn {
  color: #fff;
}
.hero .btn--light {
  background: #fff; color: var(--ink); border: 0;
}
.hero .btn--light:hover { background: var(--mint); }
.hero .btn--line {
  background: transparent; color: #fff; border: 0;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75);
}
.hero .btn--line:hover {
  background: rgba(255,255,255,.1);
}

/* --------------------------------------------------------------------------
   BAND — taupe fading section with corner dots
   -------------------------------------------------------------------------- */
.band {
  background: linear-gradient(180deg,var(--taupe),#9E957F);
  padding: 7rem 0; position: relative;
}
.band__corner {
  position: absolute; width: 10px; height: 10px;
  border: 2px solid rgba(255,255,255,.5); border-radius: 50%;
}
.band__corner--tl { top: 2rem; left: var(--page-gutter); }
.band__corner--tr { top: 2rem; right: var(--page-gutter); }
.band__corner--bl { bottom: 2rem; left: var(--page-gutter); }
.band__corner--br { bottom: 2rem; right: var(--page-gutter); }

.band h2 {
  color: #fff; text-align: center;
  font-size: clamp(1.7rem,3.4vw,2.6rem);
  line-height: 1.35; font-weight: 700;
  max-width: 34ch; margin: 0 auto; letter-spacing: -.015em;
}
.band .fade { opacity: .45; }
.band__cta { display: flex; justify-content: center; margin-top: 2.4rem; }

/* --------------------------------------------------------------------------
   SECTIONS + CARDS (v2)
   -------------------------------------------------------------------------- */
.section { padding-block: var(--sec-py); }
.section--alt { background: var(--cream); }
.section--dark { background: var(--pine); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.section__head { max-width: 44rem; margin-bottom: 2rem; }
.section__head h2 {
  font-size: var(--text-2xl); font-weight: 800; letter-spacing: -.025em;
}
.section__head p { color: var(--sage); margin: .6rem 0 0; font-size: var(--text-md); }

/* ── Values section (4-up cards) ── */
.values { padding: var(--sec-py) 0; }
.values__title {
  text-align: center;
  font-size: clamp(1.8rem,3.4vw,2.5rem);
  letter-spacing: -.02em; font-weight: 800;
}
.values__title em.serif { font-weight: 400; }
.values__sep {
  text-align: center; margin-top: .9rem;
  color: var(--sage); font-weight: 600; letter-spacing: .3em;
}

.cards4 {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1.1rem; margin-top: 3rem;
}
@media (max-width: 940px) { .cards4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cards4 { grid-template-columns: 1fr; } }

.vcard {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1.35rem;
  min-height: 230px; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.vcard h3 {
  font-size: 1rem; font-weight: 800; letter-spacing: -.01em;
  margin-bottom: .7rem; line-height: 1.35;
}
.vcard p { font-size: var(--text-sm); line-height: 1.65; color: var(--ink-soft); }

.vcard--dark {
  background: linear-gradient(165deg,#232C25,#111813);
  border-color: #232C25; color: #fff;
}
.vcard--dark h3 { color: #fff; }
.vcard--dark p { color: #C8D2C8; }
.vcard--dark .vcard__more {
  margin-top: auto; padding-top: 1rem;
  font-size: .8rem; font-weight: 700; color: #F1E7C8;
}

.vcard--photo {
  padding: 0; overflow: hidden; position: relative;
  background: linear-gradient(150deg,#C9C2AE,#8E9B85 55%,#5C6D57);
}
.vcard--photo .vcard__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%;
}
.vcard--photo .vcard__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,rgba(10,16,12,.05) 0%,rgba(10,16,12,.05) 55%,rgba(10,16,12,.7) 100%);
}
.vcard--photo .grain { opacity: .16; }
.vcard--photo .vcard__label {
  position: absolute; left: 1.2rem; bottom: 1.1rem; right: 1.2rem;
  color: #fff; font-weight: 800; font-size: 1rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.vcard--photo .vcard__ph {
  position: absolute; top: 1rem; left: 1.2rem;
  font-size: .68rem; color: rgba(255,255,255,.85);
  font-weight: 700; letter-spacing: .08em;
}

/* ── Stat band ── */
.statband {
  position: relative; overflow: hidden;
  padding: 5.5rem 0 6rem; color: #fff;
  background:
    radial-gradient(900px 420px at 82% 30%, rgba(244,232,198,.35), transparent 60%),
    linear-gradient(150deg,#4E5E4B 0%, #34452F 45%, #1C271C 100%);
}
.statband__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 55%;
}
.statband__shade {
  position: absolute; inset: 0;
  background: linear-gradient(160deg,rgba(15,20,15,.78) 0%,rgba(24,32,22,.6) 45%,rgba(10,14,10,.82) 100%);
}
.statband .grain { opacity: .16; }

.stats {
  display: flex; gap: 3.5rem; flex-wrap: wrap;
  position: relative;
}
.stat b {
  display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.02em;
}
.stat span { font-size: .8rem; opacity: .75; font-weight: 600; }

.statband h2 {
  position: relative; margin-top: 3.2rem;
  font-size: clamp(1.6rem,3vw,2.3rem); font-weight: 700;
  max-width: 24ch; line-height: 1.3; letter-spacing: -.015em;
  color: #fff;
}
.statband h2 em.serif { color: #F4E8C6; font-weight: 400; }

/* ── Answer cards (inside statband) ── */
.anscards {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.1rem; margin-top: 2.2rem; max-width: 880px;
}
@media (max-width: 940px) { .anscards { grid-template-columns: 1fr; } }

.acard {
  background: rgba(255,255,255,.96); color: var(--ink);
  border-radius: 16px; padding: 1.2rem 1.3rem;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.acard__q { font-weight: 800; font-size: .95rem; line-height: 1.4; }
.acard__a {
  margin-top: .6rem; font-size: .85rem; line-height: 1.6; color: #43503F;
}
.acard__row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: .9rem; border-top: 1px dashed #DDD8CA; padding-top: .75rem;
}
.acard__chip {
  background: var(--mint); border-radius: 8px;
  padding: .3rem .6rem; font-size: .75rem; font-weight: 700;
}
.acard__link {
  font-size: .78rem; font-weight: 800; color: var(--accent); text-decoration: none;
}

/* ── Tracker teaser ── */
.tracker { padding: var(--sec-py) 0; }
.tracker__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 3.5rem; align-items: center;
}
@media (max-width: 940px) { .tracker__grid { grid-template-columns: 1fr; } }

.tracker__title {
  font-size: clamp(1.8rem,3.2vw,2.5rem);
  letter-spacing: -.02em; font-weight: 800; line-height: 1.18;
}
.tracker__title em.serif { font-weight: 400; }
.tracker__lead {
  margin-top: 1.1rem; color: var(--ink-soft);
  line-height: 1.7; font-size: .98rem; max-width: 46ch;
}
.tracker__privacy {
  margin-top: 1.3rem;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--mint); border-radius: 10px;
  padding: .6rem .9rem; font-size: .8rem; font-weight: 700; color: #24402F;
}

.plancard {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.6rem;
  box-shadow: var(--shadow-lg);
}
.plancard__top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.2rem;
}
.plancard__top b { font-size: .95rem; }
.plancard__top span { font-size: var(--text-xs); color: var(--sage); font-weight: 700; }

.meter {
  height: 8px; background: #ECE9DF; border-radius: 99px;
  overflow: hidden; margin: 0 0 1.2rem;
}
.meter__fill {
  display: block; height: 100%; width: 44%;
  background: linear-gradient(90deg,var(--accent),#61917B);
  border-radius: 99px;
}

.stage {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: .68rem 0; border-bottom: 1px solid #F0EDE3;
}
.stage:last-child { border-bottom: 0; }

.stage__dot {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px;
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 800; margin-top: .1rem;
}
.stage--done .stage__dot { background: var(--accent); color: #fff; }
.stage--now .stage__dot {
  background: #F1E7C8; color: #6B5511;
  box-shadow: 0 0 0 4px rgba(185,138,47,.15);
}
.stage--todo .stage__dot { background: #ECE9DF; color: #9A947F; }

.stage__text b { display: block; font-size: .88rem; font-weight: 800; }
.stage__text span {
  font-size: .76rem; color: #75806F; line-height: 1.5;
  display: block; margin-top: .15rem;
}
.stage--now .stage__text span em {
  color: #8A6A15; font-style: normal; font-weight: 700;
}

/* ── Tools grid ── */
.tgrid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.1rem; margin-top: 2.4rem;
}
@media (max-width: 940px) { .tgrid { grid-template-columns: 1fr; } }

.tcard {
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--paper); padding: 1.5rem 1.35rem;
  min-height: 240px; display: flex; flex-direction: column;
}
.tcard__icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--mint); display: grid; place-items: center;
  font-size: 1rem; margin-bottom: 1rem;
}
.tcard h3 { font-size: 1.02rem; font-weight: 800; line-height: 1.35; }
.tcard p { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); line-height: 1.6; }
.tcard__foot {
  margin-top: auto; padding-top: 1rem;
  display: flex; justify-content: space-between; align-items: center;
}
.tcard__status {
  font-size: var(--text-xs); font-weight: 800; letter-spacing: .06em; color: var(--accent);
}
.tcard__status--soon { color: #9A6B10; }
.tcard__link {
  font-weight: 800; color: var(--accent); text-decoration: none;
}

.tcard--photo {
  position: relative; overflow: hidden; padding: 0;
  background: linear-gradient(160deg,#B9B49E,#77876D 60%,#44523D);
}
.tcard--photo .tcard__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
}
.tcard--photo .tcard__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,rgba(10,16,12,.05) 0%,rgba(10,16,12,.1) 55%,rgba(10,16,12,.75) 100%);
}
.tcard--photo .grain { opacity: .16; }
.tcard--photo .tcard__inner {
  position: absolute; inset: auto 1.2rem 1.1rem 1.2rem; color: #fff;
}
.tcard--photo .tcard__inner h3 {
  color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.3);
}
.tcard--photo .tcard__ph {
  position: absolute; top: 1rem; left: 1.2rem;
  font-size: .68rem; color: rgba(255,255,255,.85);
  font-weight: 700; letter-spacing: .08em;
}

/* ── Echo headline ── */
.echo {
  padding: 5.5rem 0; text-align: center;
}
.echo h2 {
  font-size: clamp(1.9rem,3.6vw,2.7rem);
  font-weight: 800; letter-spacing: -.02em;
}
.echo h2 em.serif { font-weight: 400; }
.echo__sep {
  margin-top: 1.2rem; color: var(--sage);
  letter-spacing: .4em; font-weight: 700;
}

/* ── Card grid (article listings) ── */
.card-grid {
  display: grid; gap: 1.1rem; grid-template-columns: 1fr;
}
@media (min-width: 44em) {
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.25rem; }
}

.card {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--paper);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.75rem;
  text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .2s, transform .15s;
}
.card:hover {
  border-color: var(--border-firm);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: var(--text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent);
}
.card__title {
  font-size: var(--text-xl); font-weight: 800;
  line-height: 1.2; letter-spacing: -.02em;
}
.card__body { color: var(--ink-soft); font-size: var(--text-sm); margin: 0; line-height: 1.55; }
.card__cta {
  margin-top: auto; padding-top: .75rem;
  font-size: var(--text-sm); font-weight: 700; color: var(--accent);
  display: inline-flex; align-items: center; gap: .3rem;
}
a.card:hover .card__cta { text-decoration: underline; }

.pill {
  display: inline-block; padding: .15rem .5rem;
  font-size: .6875rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  border-radius: 999px;
}
.pill--draft { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); }
.pill--soon  { background: var(--cream); color: var(--sage); border: 1px solid var(--border-firm); }

/* ── Tool promo (legacy) ── */
.tool-card {
  display: grid; gap: 1.25rem;
  background: var(--pine); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 5vw, 2.75rem);
  box-shadow: var(--shadow-lg);
}
.tool-card .eyebrow { color: var(--brand-on-dark); }
.tool-card h2 { color: #fff; font-size: var(--text-2xl); font-weight: 800; }
.tool-card p { color: var(--dark-muted); margin: 0; max-width: 38rem; }
.tool-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.tool-card__note { font-size: var(--text-sm); color: var(--dark-muted); margin: 0; }

/* --------------------------------------------------------------------------
   ARTICLE
   -------------------------------------------------------------------------- */
.draft-ribbon {
  margin: 0; padding: .6rem var(--page-gutter);
  background: var(--warn-bg); border-bottom: 2px solid var(--warn-border);
  color: var(--warn-text); font-size: var(--text-sm); font-weight: 700;
  text-align: center;
}

.article-head { padding-block: clamp(2.5rem, 7vw, 4rem) 0; }
.article-head h1 {
  font-size: var(--text-3xl); font-weight: 800;
  letter-spacing: -.03em; margin-bottom: .75rem;
}
.article-head h1 em.serif { font-weight: 400; }
.article-head__meta {
  display: flex; flex-wrap: wrap; gap: .35rem .9rem;
  font-size: var(--text-sm); color: var(--sage);
}
.article-head__meta a { color: var(--sage); }
.article-head__meta a:hover { color: var(--accent); }

.answer {
  margin: 2rem 0 0;
  background: var(--mint);
  border: 1px solid #c5d6c5;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.5rem;
}
.answer h2 {
  font-size: var(--text-xs); font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin-bottom: .5rem;
}
.answer p { margin: 0 0 .75rem; color: var(--ink-soft); font-size: var(--text-md); line-height: 1.6; }
.answer p:last-child { margin-bottom: 0; }
.answer strong { color: var(--ink); }

/* ── Sticky Table of Contents ── */
.article-layout { display: block; }
@media (min-width: 64em) {
  .article-layout {
    display: grid;
    grid-template-columns: 1fr 14rem;
    gap: 3rem; align-items: start;
  }
}

.article-toc { display: none; }
@media (min-width: 64em) {
  .article-toc {
    display: block; position: sticky; top: 5rem;
    padding-top: 2rem;
  }
}
.article-toc__title {
  font-size: var(--text-xs); font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--sage); margin-bottom: .75rem;
}
.article-toc__list {
  list-style: none; margin: 0; padding: 0;
  border-left: 2px solid var(--border);
}
.article-toc__list a {
  display: block; padding: .35rem 0 .35rem .9rem;
  font-size: var(--text-xs); font-weight: 600;
  color: var(--sage); text-decoration: none;
  line-height: 1.4;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color .1s, border-color .1s;
}
.article-toc__list a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

/* Body copy */
.prose { padding-block: 2rem 1rem; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 {
  font-size: var(--text-xl); font-weight: 800;
  letter-spacing: -.02em;
  margin-top: 2.75rem; padding-top: .5rem;
}
.prose h3 { font-size: var(--text-md); font-weight: 800; margin-top: 2rem; }
.prose p { margin-block: 0; color: var(--ink-soft); line-height: 1.7; }
.prose ul, .prose ol { margin-block: 0; padding-left: 1.4rem; color: var(--ink-soft); }
.prose li + li { margin-top: .5rem; }
.prose li::marker { color: var(--accent); font-weight: 700; }

/* Pros / cons */
.verdict { display: grid; gap: 1rem; }
@media (min-width: 44em) { .verdict { grid-template-columns: 1fr 1fr; } }
.verdict__col {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.25rem 1.35rem;
}
.verdict__col h3 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; }
.verdict__col ul { list-style: none; padding: 0; margin: 0; }
.verdict__col li { position: relative; padding-left: 1.5rem; font-size: var(--text-sm); }
.verdict__col li + li { margin-top: .55rem; }
.verdict__col li::before {
  position: absolute; left: 0; top: 0; font-weight: 800;
}
.verdict__col--yes li::before { content: "\2713"; color: var(--accent); }
.verdict__col--no  li::before { content: "\2715"; color: var(--negative); }

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table {
  width: 100%; min-width: 34rem;
  border-collapse: collapse; font-size: var(--text-sm);
}
.prose caption {
  caption-side: bottom; text-align: left;
  font-size: var(--text-sm); color: var(--sage); padding-top: .75rem;
}
.prose th, .prose td {
  text-align: left; padding: .75rem .9rem;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.prose thead th {
  background: var(--cream); color: var(--ink);
  font-weight: 800; font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 2px solid var(--border-firm);
}
.prose tbody th { font-weight: 700; color: var(--ink); }
.prose td small { display: block; color: var(--sage); font-size: var(--text-sm); margin-top: .2rem; }

/* Callouts */
.callout {
  border-radius: var(--radius-sm); padding: 1.15rem 1.35rem;
  font-size: var(--text-sm);
}
.callout p { margin: 0; }
.callout p + p { margin-top: .6rem; }
.callout--info { background: var(--mint); border: 1px solid #c5d6c5; color: var(--ink-soft); }
.callout--warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); }

/* Numbered process */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  position: relative; padding-left: 3rem; counter-increment: step;
}
.steps li + li { margin-top: 1.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: .1rem;
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  background: var(--pine); color: var(--brand-on-dark);
  border-radius: 999px; font-size: var(--text-sm); font-weight: 800;
}
.steps h3 { font-size: var(--text-base); margin: 0 0 .2rem; }
.steps p { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-weight: 800; font-size: var(--text-base); color: var(--ink);
  transition: color .1s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: .95rem;
  font-size: 1.4rem; font-weight: 400; color: var(--accent); line-height: 1;
  transition: transform .15s;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq__answer { padding: 0 0 1.25rem; color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.6; }
.faq__answer p { margin: 0; }
.faq__answer p + p { margin-top: .7rem; }

/* Sources box */
.sources {
  margin-top: 2.5rem;
  background: var(--cream);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem;
}
.sources h2 { font-size: var(--text-base); font-weight: 800; margin-bottom: .3rem; }
.sources > p { font-size: var(--text-sm); color: var(--sage); margin: 0 0 .9rem; }
.sources ol { margin: 0; padding-left: 1.2rem; }
.sources li { font-size: var(--text-sm); color: var(--ink-soft); }
.sources li + li { margin-top: .55rem; }
.sources a { font-weight: 600; }

/* Author byline */
.byline {
  margin-top: 1.5rem;
  display: grid; gap: .85rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem;
}
.byline__who { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.byline__name { font-weight: 800; font-size: var(--text-base); }
.byline__role { font-size: var(--text-sm); font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.byline__bio { margin: 0; font-size: var(--text-sm); color: var(--sage); }
.byline__line { margin: 0; font-size: var(--text-sm); color: var(--sage); }
.byline__line strong { color: var(--ink-soft); }

/* Legal disclaimer */
.disclaimer {
  margin-top: 1.5rem;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border); border-left: 4px solid var(--warn-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.35rem;
  font-size: var(--text-sm); color: var(--warn-text);
}
.disclaimer h2 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--warn-text); margin-bottom: .4rem; }
.disclaimer p { margin: 0; }
.disclaimer p + p { margin-top: .6rem; }

/* Unresolved placeholder */
.todo {
  background: #fdf0a8; color: #6b4a12;
  font-weight: 700; padding: 0 .3em; border-radius: var(--radius-xs);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  outline: 1px dashed #b07d14; outline-offset: 1px;
}
.todo::before { content: "TODO "; font-size: .7em; letter-spacing: .05em; opacity: .8; }

/* Related links */
.related { margin-top: 2.5rem; }
.related h2 { font-size: var(--text-lg); font-weight: 800; margin-bottom: 1rem; }

/* How it works (legacy, kept for backwards compat) */
.how-it-works {
  display: grid; gap: 2rem; counter-reset: hiw;
}
@media (min-width: 44em) {
  .how-it-works { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.how-it-works__step {
  counter-increment: hiw; position: relative;
  padding: 1.75rem 1.5rem; background: var(--paper);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.how-it-works__step:hover {
  border-color: var(--border-firm); box-shadow: var(--shadow-hover);
}
.how-it-works__num {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  background: var(--pine); color: var(--brand-on-dark);
  border-radius: 999px; font-size: var(--text-sm); font-weight: 800;
  margin-bottom: 1rem;
}
.how-it-works__step h3 { font-size: var(--text-lg); font-weight: 800; margin-bottom: .4rem; }
.how-it-works__step p { font-size: var(--text-sm); color: var(--sage); margin: 0; line-height: 1.55; }

/* --------------------------------------------------------------------------
   FORMS
   -------------------------------------------------------------------------- */
.form {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.15rem; }
.field > label { display: block; font-weight: 700; font-size: var(--text-sm); margin-bottom: .35rem; }
.field .hint { display: block; font-weight: 400; font-size: var(--text-sm); color: var(--sage); margin-top: .15rem; }
.field abbr { color: var(--negative); text-decoration: none; margin-left: .15rem; }

.input, .textarea, .select {
  width: 100%; font: inherit; font-size: var(--text-sm);
  padding: .7rem .9rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--border-firm); border-radius: var(--radius-sm);
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.select {
  background-image: linear-gradient(45deg, transparent 50%, var(--sage) 50%),
                    linear-gradient(135deg, var(--sage) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.15rem, calc(100% - .8rem) 1.15rem;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 2.25rem;
}
.textarea { min-height: 8rem; resize: vertical; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 94, 78, .15);
}

.check {
  display: flex; gap: .75rem; align-items: flex-start;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .9rem 1rem;
  margin-bottom: 1.15rem;
}
.check input[type="checkbox"] {
  width: 1.15rem; height: 1.15rem; flex: 0 0 auto; margin: .2rem 0 0;
  accent-color: var(--accent); cursor: pointer;
}
.check label { font-size: var(--text-sm); color: var(--sage); line-height: 1.55; }

.form__note { font-size: var(--text-xs); color: var(--sage); text-align: center; margin: 1rem 0 0; }

.form-status {
  border-radius: var(--radius-sm); padding: .8rem 1rem;
  font-size: var(--text-sm); font-weight: 600; margin-bottom: 1.15rem;
}
.form-status:empty { display: none; }
.form-status[data-tone="error"] { background: var(--negative-bg); border: 1px solid var(--negative); color: var(--negative); }
.form-status[data-tone="ok"] { background: var(--mint); border: 1px solid var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
/* ── Strapline strip (legacy, hidden in v2 — hero has the strap) ── */
.strapline { display: none; }

/* ── Footer ── */
.site-footer {
  background: var(--pine); color: #D8DED6;
  padding: 4rem 0 2.5rem; margin-top: 2rem;
}
.site-footer__top {
  display: grid; gap: 2.5rem;
}
@media (min-width: 44em) {
  .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
}
.site-footer h2 {
  color: #fff; font-size: .8rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.site-footer a {
  display: block; color: #B9C4B8; text-decoration: none;
  font-size: var(--text-sm); line-height: 2.05;
  transition: color .1s;
}
.site-footer a:hover { color: #fff; }
.site-footer__brand {
  color: #fff; font-weight: 800; font-size: 1.15rem;
  margin: 0 0 .35rem; letter-spacing: -.02em;
}
.site-footer__brand span { color: var(--brand-on-dark); }
.site-footer__strap {
  margin: .8rem 0 0; font-size: .85rem; color: #AAB6A9;
  max-width: 34ch; line-height: 1.7;
}
.site-footer__trust {
  margin-top: 1rem;
  font-size: var(--text-xs); color: rgba(255,255,255,.4); line-height: 1.5;
}
.site-footer__legal {
  margin-top: 3rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .75rem; color: #93A092; line-height: 1.7;
}
.site-footer__legal p { margin: 0; }
.site-footer__legal p + p { margin-top: .5rem; }
.site-footer__legal strong { color: #C9D2C7; }

/* --------------------------------------------------------------------------
   CONSENT BANNER
   -------------------------------------------------------------------------- */
.consent {
  position: fixed; inset: auto 0 0 0; z-index: 100;
  background: var(--pine); color: #fff;
  border-top: 2px solid var(--brand-on-dark);
  padding-block: 1.1rem;
  transition: transform .25s ease;
}
.consent[hidden] { display: none; }
.consent__inner { display: grid; gap: 1rem; }
@media (min-width: 48em) {
  .consent__inner { grid-template-columns: 1fr auto; align-items: center; }
}
.consent p { margin: 0; font-size: var(--text-sm); color: var(--dark-muted); max-width: 44rem; }
.consent p a { color: #fff; }
.consent__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.consent__actions .btn { padding: .55rem 1.15rem; font-size: var(--text-sm); }

/* --------------------------------------------------------------------------
   PRINT + MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .consent, .draft-ribbon, .hero__actions { display: none; }
  .prose { padding: 0; }
}
