/* ==========================================================================
   GentlePlacement design system
   Built for an audience that is 45-75, often on a phone, often stressed.
   Base size is 18px and contrast minimums are 4.5:1 throughout.
   ========================================================================== */

:root {
  /* Brand */
  --pine-900: #0C3A36;
  --pine-800: #14504B;
  --pine-700: #1D6560;
  --pine-100: #E3EFEC;
  --pine-50:  #F1F7F5;

  --amber-800: #8E4514;
  --amber-700: #A8541A;
  --amber-100: #FBEDE1;

  /* Neutrals */
  --ink:     #171C1B;
  --body:    #41504D;
  --muted:   #6B7A77;
  --line:    #DCE5E2;
  --line-soft: #EDF2F0;
  --surface: #FFFFFF;
  --canvas:  #FAF8F5;

  /* Status */
  --good:    #2F6B3D;
  --good-bg: #E9F3EB;
  --warn-bg: #FDF3E3;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Space */
  --gut: 20px;
  --max: 1160px;
  --narrow: 720px;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(12, 58, 54, .06), 0 2px 8px rgba(12, 58, 54, .04);
  --shadow-md: 0 2px 6px rgba(12, 58, 54, .07), 0 12px 28px rgba(12, 58, 54, .07);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.3rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-family: var(--sans); font-weight: 650; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--pine-800); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--amber-800); }

strong { color: var(--ink); font-weight: 650; }

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

:focus-visible {
  outline: 3px solid var(--amber-700);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--pine-800); color: #fff; padding: 12px 20px; z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { width: 100%; max-width: var(--narrow); margin-inline: auto; padding-inline: var(--gut); }

.section { padding-block: clamp(48px, 7vw, 86px); }
.section-tight { padding-block: clamp(34px, 5vw, 56px); }
.section--surface { background: var(--surface); }
.section--pine { background: var(--pine-900); color: #D6E5E1; }
.section--pine h2, .section--pine h3 { color: #fff; }
.section--tint { background: var(--pine-50); }

.lede { font-size: 1.18rem; color: var(--body); max-width: 62ch; }
.section-intro { max-width: 64ch; margin-bottom: 36px; }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--pine-700); margin: 0 0 12px;
}
.section--pine .eyebrow { color: #7FB3AA; }

/* ---------- Header ---------- */

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 74px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 1.32rem; font-weight: 600;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--pine-800); }
.brand__mark { width: 30px; height: 30px; flex: none; }

.nav { display: flex; gap: 24px; margin-left: auto; white-space: nowrap; }
.nav a {
  color: var(--body); text-decoration: none; font-size: .97rem; font-weight: 550;
  padding-block: 6px; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--pine-800); border-bottom-color: var(--amber-700); }

.header__cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 11px; cursor: pointer; color: var(--ink);
}

/* The phone button is the one header CTA that matters; drop the secondary one
   before the menu would have to wrap. */
@media (max-width: 1420px) { .header__cta .btn--ghost { display: none; } }

@media (max-width: 1080px) {
  .nav, .header__cta .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header__cta { margin-left: 0; }
  .header__cta .btn--pine { padding-inline: 16px; font-size: .95rem; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; inset: 74px 0 auto; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: 8px var(--gut) 18px;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
}

/* Below 760px the sticky call bar handles calling, so the header drops its
   phone button rather than overflowing the viewport. */
@media (max-width: 760px) {
  .header__cta { display: none; }
  .header__inner { min-height: 64px; }
  .brand { font-size: 1.15rem; }
  .brand__mark { width: 26px; height: 26px; }
  .nav-toggle { padding: 8px 10px; }
  .nav.is-open { inset: 64px 0 auto; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 1rem; font-weight: 650; line-height: 1.2;
  padding: 15px 24px; border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber-700); color: #fff; }
.btn--primary:hover { background: var(--amber-800); color: #fff; }
.btn--pine { background: var(--pine-800); color: #fff; }
.btn--pine:hover { background: var(--pine-900); color: #fff; }
.btn--ghost { background: transparent; color: var(--pine-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--pine-800); background: var(--pine-50); color: var(--pine-800); }
.btn--light { background: #fff; color: var(--pine-900); }
.btn--light:hover { background: var(--pine-100); color: var(--pine-900); }
.btn--lg { font-size: 1.07rem; padding: 17px 30px; }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */

.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start;
  padding-block: clamp(42px, 6vw, 76px);
}
.hero h1 { margin-bottom: .45em; }
.hero__sub { font-size: 1.2rem; max-width: 54ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 26px; }

.hero__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.hero__points li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 1rem; color: var(--body);
}
.hero__points svg { flex: none; margin-top: 4px; color: var(--good); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Trust bar ---------- */

.trustbar { background: var(--pine-900); color: #C9DEDA; }
.trustbar__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  padding-block: 26px;
}
.trustbar__stat strong {
  display: block; font-family: var(--display); font-size: 1.85rem;
  color: #fff; font-weight: 600; line-height: 1.1;
}
.trustbar__stat span { font-size: .93rem; color: #9FC2BC; }
@media (max-width: 760px) {
  .trustbar__inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ---------- Urgency band ---------- */

.urgent {
  background: var(--warn-bg); border-block: 1px solid #F0DCBD;
}
.urgent__inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-block: 20px;
}
.urgent p { margin: 0; font-size: 1.04rem; color: #6B4310; flex: 1 1 380px; }
.urgent strong { color: #4A2E08; }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 1.22rem; margin-bottom: .4em; }
.card p { font-size: .99rem; margin-bottom: .7em; }
.card__link { font-weight: 650; font-size: .97rem; text-decoration: none; }
.card__link::after { content: " →"; }
a.card { text-decoration: none; display: block; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--pine-700); box-shadow: var(--shadow-md); }
a.card h3 { color: var(--pine-800); }

.card__icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--pine-100);
  display: grid; place-items: center; color: var(--pine-800); margin-bottom: 15px;
}

/* ---------- Steps ---------- */

.steps { counter-reset: step; display: grid; gap: 26px; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .steps--3 { grid-template-columns: 1fr; } }
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--pine-800); color: #fff;
  font-family: var(--display); font-size: 1.22rem; font-weight: 600;
  margin-bottom: 15px;
}
.step h3 { font-size: 1.2rem; }
.step p { font-size: 1rem; margin: 0; }

/* ---------- Prose ---------- */

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 1.5em 0; padding: 18px 24px;
  background: var(--pine-50); border-left: 4px solid var(--pine-700);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
th { background: var(--pine-50); font-weight: 650; color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--pine-50); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--display); font-size: 1.14rem; font-weight: 600; color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 17px;
  font-family: var(--sans); font-size: 1.6rem; font-weight: 400; color: var(--pine-700);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: 22px; max-width: 68ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Form ---------- */

.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-md);
}
.form-card h2, .form-card h3 { font-size: 1.42rem; margin-bottom: .3em; }
.form-card__note { font-size: .95rem; color: var(--muted); margin-bottom: 22px; }

.field { margin-bottom: 17px; }
.field label { display: block; font-size: .94rem; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 9px;
  background: var(--surface); transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine-700); }
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }

.form-consent { font-size: .85rem; color: var(--muted); margin-top: 14px; line-height: 1.55; }
.form-status { margin-top: 15px; padding: 14px 16px; border-radius: 9px; font-size: .96rem; display: none; }
.form-status.is-ok { display: block; background: var(--good-bg); color: var(--good); border: 1px solid #BFDCC6; }
.form-status.is-err { display: block; background: #FBEAEA; color: #94302C; border: 1px solid #EFC9C7; }

/* ---------- Breadcrumbs ---------- */

.crumbs { font-size: .89rem; color: var(--muted); padding-block: 16px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: 7px; color: var(--line); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); }

/* ---------- Footer ---------- */

.footer { background: var(--pine-900); color: #A9C6C1; font-size: .95rem; padding-block: 54px 32px; }
.footer a { color: #CFE3DF; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 28px; }
@media (max-width: 1100px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: .88rem; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__brand { font-family: var(--display); font-size: 1.3rem; color: #fff; margin-bottom: 12px; display: block; }
.footer__nap { line-height: 1.75; }
.footer__nap a { font-weight: 600; }
.footer__legal {
  border-top: 1px solid rgba(255,255,255,.13); margin-top: 40px; padding-top: 22px;
  font-size: .82rem; color: #87A8A3; line-height: 1.7;
}

/* ---------- Mobile sticky call bar ---------- */

.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: flex; position: fixed; inset: auto 0 0; z-index: 90;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px;
    box-shadow: 0 -2px 14px rgba(12,58,54,.09);
  }
  .callbar .btn { flex: 1; padding: 14px 10px; font-size: .97rem; }
  body { padding-bottom: 78px; }
}

/* ---------- Utility ---------- */

.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 18px; }
.pill {
  display: inline-block; background: var(--pine-100); color: var(--pine-900);
  font-size: .83rem; font-weight: 650; padding: 5px 12px; border-radius: 999px;
}
.pill--good { background: var(--good-bg); color: var(--good); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}


/* ==========================================================================
   Photos and media layouts
   ========================================================================== */

.media {
  width: 100%; height: auto; object-fit: cover; display: block;
  border-radius: var(--radius-lg); background: var(--pine-100);
}
.media--wide { aspect-ratio: 16 / 10; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.hero__photo { margin-top: 30px; }
.hero__photo .media { aspect-ratio: 16 / 10; box-shadow: var(--shadow-md); }

/* Page hero: copy left, photo right */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero__grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center;
  padding-block: clamp(36px, 5vw, 64px);
}
.page-hero__grid .media { aspect-ratio: 4 / 3.2; box-shadow: var(--shadow-md); }
.page-hero .lede { margin-bottom: 24px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .page-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero__grid .media { aspect-ratio: 16 / 10; }
}

/* Split: image beside text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split--flip > :first-child { order: 2; }
.split .media { aspect-ratio: 4 / 3.2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split--flip > :first-child { order: 0; }
}

/* Cards with a photo on top */
.card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--photo .media { border-radius: 0; aspect-ratio: 16 / 10; height: auto; }
.card--photo .card__body { padding: 22px 24px 24px; }

/* Article layout: content + sticky sidebar */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.article__aside { position: sticky; top: 96px; display: grid; gap: 18px; }
@media (max-width: 1000px) {
  .article { grid-template-columns: minmax(0, 1fr); }
  .article__aside { position: static; }
}
.aside-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.aside-card h3 { font-size: 1.12rem; margin-bottom: .45em; }
.aside-card p { font-size: .96rem; }
.aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .96rem; }

.toc { font-size: .95rem; }
.toc ol { padding-left: 1.2em; margin: 0; display: grid; gap: 6px; }

.sources { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2.4em; padding-top: 1.2em; }
.sources h2 { font-size: 1.1rem; font-family: var(--sans); font-weight: 650; margin-top: 0; }
.sources ol { padding-left: 1.2em; }
.sources li { margin-bottom: .35em; }
.updated { font-size: .9rem; color: var(--muted); margin-bottom: 1.4em; }

.callout {
  background: var(--amber-100); border: 1px solid #F0D3B6; border-radius: var(--radius);
  padding: 18px 22px; margin: 1.5em 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--pine { background: var(--pine-50); border-color: var(--pine-100); }

.related { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }
.related a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; font-weight: 650; }
.related a:hover { border-color: var(--pine-700); }
.related span { display: block; font-weight: 400; font-size: .92rem; color: var(--muted); margin-top: 4px; }

/* ==========================================================================
   Tools: calculator, quiz, eligibility checker
   ========================================================================== */

.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(22px, 4vw, 38px); }
.tool__progress { height: 6px; background: var(--line-soft); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.tool__progress span { display: block; height: 100%; width: 0; background: var(--pine-700); transition: width .25s ease; }
.tool__step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.tool__step.is-active { display: block; }
.tool__q { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.6rem); color: var(--ink); font-weight: 600; margin-bottom: 6px; padding: 0; }
.tool__help { color: var(--muted); font-size: .97rem; margin-bottom: 18px; }
.tool__count { font-size: .85rem; font-weight: 650; color: var(--pine-700); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }

.opts { display: grid; gap: 11px; }
.opts--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .opts--2 { grid-template-columns: 1fr; } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt label {
  display: block; padding: 15px 18px 15px 50px; border: 1.5px solid var(--line); border-radius: 11px;
  cursor: pointer; font-weight: 550; color: var(--ink); background: var(--surface); position: relative;
  transition: border-color .12s, background .12s;
}
.opt label small { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.opt label::before {
  content: ""; position: absolute; left: 17px; top: 18px; width: 20px; height: 20px;
  border: 2px solid #9FB2AE; border-radius: 50%; background: #fff;
}
.opt input:checked + label { border-color: var(--pine-700); background: var(--pine-50); }
.opt input:checked + label::before { border-color: var(--pine-800); box-shadow: inset 0 0 0 4px #fff; background: var(--pine-800); }
.opt input:focus-visible + label { outline: 3px solid var(--amber-700); outline-offset: 2px; }

.tool__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.tool__nav .btn[hidden] { display: none; }

.result { display: none; }
.result.is-active { display: block; }
.result__head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 22px; }
.result__big { font-family: var(--display); font-size: clamp(1.8rem, 4.4vw, 2.6rem); color: var(--pine-800); font-weight: 600; line-height: 1.15; margin: 4px 0 8px; }
.result__note { font-size: .9rem; color: var(--muted); margin-top: 18px; }

.compare { display: grid; gap: 12px; margin: 18px 0; }
.compare__row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface);
}
.compare__row.is-best { border-color: var(--pine-700); background: var(--pine-50); }
.compare__name { font-weight: 650; color: var(--ink); }
.compare__name small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.compare__amt { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); text-align: right; }
.compare__amt small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.compare__bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.compare__bar span { display: block; height: 100%; background: var(--pine-700); border-radius: 999px; }
.compare__row.is-best .compare__bar span { background: var(--amber-700); }

.sendme { margin-top: 26px; padding: 20px; border-radius: var(--radius); background: var(--pine-50); border: 1px solid var(--pine-100); }
.sendme h3 { font-size: 1.12rem; margin-bottom: 4px; }
.sendme p { font-size: .95rem; margin-bottom: 12px; }
.sendme .field-row { margin-bottom: 0; }
.sendme .field { margin-bottom: 12px; }

/* ==========================================================================
   Checklists
   ========================================================================== */

.checklist { counter-reset: none; }
.checklist__group { margin-bottom: 30px; break-inside: avoid; }
.checklist__group h2 { font-size: 1.3rem; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--pine-100); }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li { border-bottom: 1px solid var(--line-soft); }
.checklist li label { display: flex; gap: 14px; align-items: flex-start; padding: 12px 4px; cursor: pointer; }
.checklist input[type=checkbox] { width: 22px; height: 22px; flex: none; margin-top: 3px; accent-color: var(--pine-800); cursor: pointer; }
.checklist li label span small { display: block; color: var(--muted); font-size: .92rem; margin-top: 2px; }
.checklist input:checked + span { color: var(--muted); }
.checklist__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.checklist__count { font-weight: 650; color: var(--pine-800); margin-left: auto; }

.tool-cards .card { display: flex; flex-direction: column; }
.tool-cards .card .card__link { margin-top: auto; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-800); margin-bottom: 8px; }

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .header, .footer, .callbar, .urgent, .crumbs, .no-print, .sendme, .form-card, .article__aside { display: none !important; }
  body { background: #fff; font-size: 12pt; padding: 0; color: #000; }
  .section { padding-block: 0; }
  .wrap, .wrap-narrow { max-width: none; padding: 0; }
  .checklist li label { padding: 6px 0; }
  .checklist input[type=checkbox] { width: 14px; height: 14px; }
  .print-head { display: block !important; }
  a { color: #000; text-decoration: none; }
}
.print-head { display: none; border-bottom: 1px solid #000; margin-bottom: 14px; padding-bottom: 6px; font-size: 10pt; }

.prose { min-width: 0; }
.table-wrap { max-width: 100%; }

.result, #tool, [id] { scroll-margin-top: 92px; }
@media (max-width: 600px) {
  .compare__row { grid-template-columns: 1fr; gap: 6px; }
  .compare__amt { text-align: left; }
  .compare__amt small { display: inline; margin-left: 4px; }
}

/* Optional SMS consent checkbox */
.field--check label { display: flex; gap: 11px; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--body); line-height: 1.5; cursor: pointer; }
.field--check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--pine-800); }

/* ---------- Two-step form ---------- */

.fstep { border: 0; padding: 0; margin: 0; min-width: 0; }
.fstep__label { font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--pine-700); margin-bottom: 14px; padding: 0; }
.js .fstep { display: none; }
.js .fstep.is-on { display: block; animation: fstepIn .22s ease; }
@keyframes fstepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.js-next, .js-back { margin-top: 4px; }
html:not(.js) .js-next, html:not(.js) .js-back, html:not(.js) .fprogress { display: none; }
.fprogress { list-style: none; display: flex; gap: 6px; margin: 0 0 16px; padding: 0; }
.fprogress li { flex: 1; height: 5px; border-radius: 3px; background: var(--line-soft); transition: background .2s; }
.fprogress li.is-on { background: var(--amber-700); }
.linkbtn { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: .93rem; text-decoration: underline; cursor: pointer; }
.field .is-bad, .chat-form .is-bad { border-color: #C9504A !important; }

/* ---------- Message panel ---------- */

.chat { position: fixed; right: 20px; bottom: 20px; z-index: 95; font-size: .97rem; }
.chat__fab {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 18px 13px 15px;
  background: var(--pine-800); color: #fff; border: 0; border-radius: 999px; cursor: pointer;
  font: 650 1rem var(--sans); box-shadow: 0 8px 26px rgba(12,58,54,.28);
}
.chat__fab:hover { background: var(--pine-900); }
.chat.is-open .chat__fab { display: none; }
.chat__panel {
  width: min(380px, calc(100vw - 24px)); max-height: min(640px, calc(100vh - 40px));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 18px 50px rgba(12,58,54,.25); overflow: hidden;
}
.chat__panel[hidden] { display: none; }
.chat__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 15px 16px; background: var(--pine-800); color: #fff; }
.chat__head strong { display: block; font-size: 1.02rem; }
.chat__status { display: flex; align-items: center; gap: 7px; font-size: .84rem; color: #CFE3DF; margin-top: 3px; line-height: 1.35; }
.chat__status i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #E8A86A; }
.chat__status.is-open i { background: #6FD08C; }
.chat__close { background: none; border: 0; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat__body { padding: 14px 14px 12px; overflow-y: auto; }
.chat__log { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; margin-bottom: 10px; }
.bubble { margin: 0; padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: var(--pine-50); color: var(--ink); font-size: .94rem; line-height: 1.5; max-width: 92%; }
.bubble a { font-weight: 650; }
.bubble--me { align-self: flex-end; background: var(--amber-100); border-radius: 14px 14px 4px 14px; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--pine-800); border-radius: 999px; padding: 7px 12px; font: 600 .88rem var(--sans); cursor: pointer; }
.chip:hover { border-color: var(--pine-700); background: var(--pine-50); }
.chat-form textarea, .chat-form input:not([type=checkbox]) {
  width: 100%; font: 1rem var(--sans); color: var(--ink); padding: 11px 12px;
  border: 1.5px solid var(--line); border-radius: 9px; margin-bottom: 8px; background: var(--surface);
}
.chat-form textarea { resize: vertical; min-height: 74px; }
.chat__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chat-form .field--check { margin: 2px 0 10px; }
.chat-form .field--check span { font-size: .78rem; }
.chat__foot { display: flex; gap: 8px; justify-content: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.btn--sm { padding: 9px 14px; font-size: .9rem; }
@media (max-width: 760px) {
  .chat { right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .chat__fab { padding: 13px; border-radius: 50%; }
  .chat__fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .chat.is-open { left: 12px; right: 12px; bottom: 12px; z-index: 120; }
  .chat__panel { width: 100%; max-height: calc(100vh - 24px); }
  .chat__row { grid-template-columns: 1fr; gap: 0; }
}
@media print { .chat { display: none !important; } }

/* ---------- Header language link ---------- */

.nav a.nav__lang { font-size: .9rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 18px; }

/* ---------- Landing pages ---------- */

.header--min .header__cta--min { display: flex !important; margin-left: auto; }
.header--min .header__cta--min .btn { display: inline-flex !important; }
.footer--min { padding-block: 30px 24px; }
.footer__minlinks { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 0 0 4px; font-size: .9rem; }
.footer--min .footer__legal { margin-top: 14px; }
.lp-hero { padding-block: 34px 56px; background: linear-gradient(180deg, var(--pine-50), var(--canvas)); }
.lp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "head form" "more form"; column-gap: 44px; align-items: start; }
.lp-head { grid-area: head; } .lp-form { grid-area: form; } .lp-more { grid-area: more; }
@media (max-width: 900px) { .lp-hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "form" "more"; row-gap: 22px; } }
.lp-hero h1 { font-size: clamp(2rem, 4.6vw, 3.05rem); margin-bottom: .35em; }
.lp-points { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 11px; }
.lp-points li { display: flex; gap: 10px; align-items: flex-start; }
.lp-points svg { flex: none; margin-top: 5px; color: var(--good); }
.lp-proof { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; font-size: .92rem; color: var(--muted); margin: 18px 0; }
.lp-proof li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
@media (max-width: 760px) {
  .header--min .brand { font-size: 1.05rem; }
  .header--min .header__cta--min .btn { padding: 10px 12px; font-size: .9rem; }
  .is-lp .lp-hero { padding-top: 20px; }
}
@media (max-width: 380px) { .header--min .brand svg { display: none; } }
.lp-proof b { color: var(--ink); }
.steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
@media (max-width: 760px) { .steps-row { grid-template-columns: minmax(0, 1fr); } }
.steps-row > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.steps-row > div::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--amber-100); color: var(--amber-800); font-weight: 700; margin-bottom: 10px; }

/* ---------- Directory ---------- */

.page-hero--plain .page-hero__grid { align-items: center; }
.page-hero--plain > .wrap > h1, .page-hero--plain > .wrap > .eyebrow { max-width: 900px; }
.page-hero--plain > .wrap:not(:has(.page-hero__grid)) { padding-block: clamp(32px, 4.5vw, 56px); }
.page-hero--plain .lede { max-width: 760px; }
.h3 { font-size: 1.3rem; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--pine-50); border: 1px solid var(--pine-100); border-radius: var(--radius); padding: 18px 18px 16px; }
.tile b { display: block; font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 600; color: var(--pine-900); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile span { display: block; font-size: .9rem; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.facts { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.facts > div { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-weight: 650; color: var(--ink); font-size: .94rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.ticks { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: none; margin-top: 5px; color: var(--good); }
.ticks--q li::before { content: "?"; flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--amber-800); font-weight: 700; font-size: .85rem; margin-top: 2px; }
.dir-grid { gap: 40px; align-items: start; }
.table-note { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.filters button { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: 600 .92rem var(--sans); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--pine-800); border-color: var(--pine-800); color: #fff; }
.dir th button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 0; }
.dir th button::after { content: " \2195"; color: var(--muted); font-weight: 400; }
.dir th[aria-sort] button::after { content: " \2191"; color: var(--amber-700); }
.dir th[aria-sort="descending"] button::after { content: " \2193"; }
td.num { font-variant-numeric: tabular-nums; }
.dir tbody tr[hidden] { display: none; }
@media (max-width: 640px) {
  .dir th:nth-child(5), .dir td:nth-child(5) { display: none; }
  .dir th, .dir td { padding: 11px 10px; font-size: .92rem; }
}
.area-search input { width: 100%; max-width: 520px; font: 1.05rem var(--sans); padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); }
.jump { font-size: .93rem; margin: 14px 0 6px; line-height: 1.9; }
.area-group { margin-top: 30px; }
.area-group h2 small { font-family: var(--sans); font-size: .9rem; font-weight: 400; color: var(--muted); margin-left: 6px; }
.area-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 22px; }
.area-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.area-list li[hidden], .area-group[hidden] { display: none; }
.area-list span { color: var(--muted); font-variant-numeric: tabular-nums; }
.area-list--inline { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.dir td.num { text-align: left; }

/* ---------- Report ---------- */
.findings { padding-left: 1.3em; display: grid; gap: 10px; }
.chart-wrap { margin: 1.4em 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.chart { width: 100%; height: auto; display: block; }
.chart__a { fill: var(--pine-700); }
.chart__b { fill: var(--amber-700); }
.chart__y { font: 650 15px var(--sans); fill: var(--ink); }
.chart__v { font: 500 13px var(--sans); fill: var(--body); }
.chart-wrap figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; }
.cite { font-size: .93rem; background: var(--pine-50); border: 1px solid var(--pine-100); border-radius: var(--radius); padding: 14px 16px; }
.page-hero__grid > *, .lp-hero__grid > * { min-width: 0; }
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; } }

/* Home hero: copy left, form right, vertically balanced (no photo under the copy) */
.hero--home .hero__grid { align-items: center; }

/* Closing call to action: photo beside the form */
.cta-split { align-items: center; gap: 48px; }
.cta-split .lede { margin-bottom: 24px; }
.cta-split__photo .media { aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow-md); }
@media (max-width: 900px) { .cta-split__photo { display: none; } }

/* Partner forms: checkbox groups */
.checkgroup { border: 0; padding: 0; margin: 0 0 16px; }
.checkgroup legend { font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 8px; }
.checkopt { display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: .92rem; margin: 6px 0; cursor: pointer; }
.checkopt input { width: 20px; height: 20px; flex: none; accent-color: var(--pine-800); }

/* Tables that become stacked cards on phones */
@media (max-width: 640px) {
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table--stack td { border: 0; padding: 2px 0; text-align: left; }
  .table--stack td.num { font-weight: 650; color: var(--ink); }
  .table--stack td:first-child { font-size: 1rem; }
  .table--stack td:last-child { color: var(--muted, #5b6663); font-size: .9rem; }
}
.checkgroup .checkopt { font-weight: 400; color: var(--body); }
.checkgroup .checkopt input { width: 20px; min-height: 0; padding: 0; margin: 0; }
