/* ==========================================================================
   Girard Wealth — shared stylesheet
   Single source of truth for tokens, type, and shared components.
   Tokens per girard-brand-kit.md; compliance/colour roles per CLAUDE.md.
   Mobile-first. One stylesheet, no framework.
   ========================================================================== */

/* --- Self-hosted fonts (no Google Fonts CDN) ------------------------------ */
/* Fraunces is reserved for the Girard Wealth brand wordmark only. opsz is
   capped at 96 in the font binary, so font-optical-sizing can never reach the
   range where the capital-H crossbar drops below a pixel. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
/* Variable Inter (Latin subset), used for display headings and body — a clean,
   highly legible modern typeface. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Brand palette (locked) */
  --espresso: #3A2E26;   /* primary text, dark surfaces, coin */
  --bark-panel: #4A3B31; /* raised card inside an espresso panel */
  --bark: #5A4738;       /* body text on light — 7.46:1 on linen */
  --walnut: #7C6A56;     /* secondary text — large/bold only */
  --deep-teal: #1F6F6A;  /* accent on LIGHT: links, buttons, rules — 5.05:1 */
  --teal: #2FA39B;       /* accent on DARK (espresso) only — never on light */
  --linen: #F2ECE1;      /* light surface, text/lines on dark */
  --sand: #D8CDBB;       /* paragraph text inside espresso panels */

  /* Surfaces as built */
  --ground: #F5F8F8;     /* cool near-white page canvas */
  --chrome: #FAFCFC;     /* page frame / chrome */
  --card: #FFFFFF;       /* cards, hero blocks, content surfaces */
  --teal-tint: #E9F4F2;  /* pale light-teal for chips, tags and bands */

  /* Semantic roles (reference these, not raw names, in components) */
  --color-bg: var(--ground);
  --color-surface: var(--card);
  --color-text: var(--bark);
  --color-heading: var(--espresso);
  --color-muted: var(--walnut);          /* Design secondary-text colour */
  --color-accent: var(--deep-teal);        /* on light */
  --color-accent-on-dark: var(--teal);     /* on espresso */
  --color-on-dark: var(--sand);
  --color-border: rgba(90, 71, 56, 0.16);  /* bark @ ~16% */
  --color-border-strong: rgba(90, 71, 56, 0.28);

  /* Type */
  --font-brand: "Fraunces", Georgia, "Times New Roman", serif; /* wordmark only */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Radii (as built) */
  --radius-frame: 28px;
  --radius-card: 24px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-frame: 0 2px 4px rgba(58, 46, 38, 0.05),
    0 24px 60px -30px rgba(58, 46, 38, 0.45);
  --shadow-card: 0 1px 2px rgba(58, 46, 38, 0.04),
    0 10px 30px -18px rgba(58, 46, 38, 0.30);

  /* Layout — Design: 1240px column, 48px gutters */
  --container: 77.5rem;    /* 1240px */
  --container-pad: var(--space-5);
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;                 /* 16px floor for a11y */
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 48em) {
  body { font-size: 1.0625rem; }   /* 17px */
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }
img { border-style: none; }

ul, ol { margin: 0; padding: 0; }

a { color: var(--color-accent); text-underline-offset: 0.15em; }
a:hover { color: var(--espresso); }

p { margin: 0 0 var(--space-4); }
strong, b { font-weight: 600; }

/* --- Headings & display type --------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-weight: 600;                /* Inter semibold for display */
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}

h1 {
  font-size: clamp(2.25rem, 1.3rem + 4vw, 3.5rem);  /* up to 56px (interior) */
  line-height: 1.05;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.875rem, 1.1rem + 3.1vw, 2.625rem);  /* up to 42px */
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.5rem;               /* 24px card title */
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h4 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);  /* up to 19px */
  line-height: 1.6;
  color: var(--color-text);
}

/* Eyebrow: 7px dot + tracked label. Deep Teal on light, Teal on espresso. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.8125rem;            /* 13px */
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-accent);
  margin: 0 0 var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* --- Layout primitives ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
@media (min-width: 48em) {
  :root { --container-pad: 3rem; }   /* 48px gutters */
}

.section { padding-block: var(--space-6); }
@media (min-width: 48em) {
  .section { padding-block: 2rem; }     /* ~64px rhythm between sections */
}

/* Screen-reader-only, and skip link */
.visually-hidden {
  position: absolute !important;
  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: var(--space-4);
  top: -3rem;
  z-index: 100;
  background: var(--espresso);
  color: var(--linen);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--space-4); color: var(--linen); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;                /* tap target */
  padding: 0.6875rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}
/* Primary: Deep Teal fill, white label — 5.93:1 */
.btn-primary {
  background: var(--deep-teal);
  color: #fff;
  border-color: var(--deep-teal);
}
.btn-primary:hover {
  filter: brightness(0.92);
  color: #fff;
}
/* Secondary: 1.5px Espresso border on light, no fill */
.btn-secondary {
  background: transparent;
  color: var(--color-heading);
  border-color: var(--espresso);
}
.btn-secondary:hover {
  background: var(--espresso);
  color: var(--linen);
}
/* On espresso surfaces: secondary uses a Teal border, Linen label */
.on-dark .btn-secondary {
  color: var(--linen);
  border-color: var(--teal);
}
.on-dark .btn-secondary:hover {
  background: var(--teal);
  color: var(--espresso);
}

/* --- Coin mark (inline SVG in the partials) ------------------------------- */
.coin { width: 40px; height: 40px; flex: none; }

/* --- Wordmark ------------------------------------------------------------- */
.wordmark {
  font-family: var(--font-brand);
  font-weight: 500;
  /* Explicit opsz 96 per CLAUDE.md — do not let optical-sizing choose. */
  font-variation-settings: "opsz" 96, "wght" 500;
  font-optical-sizing: none;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  line-height: 1;
  color: var(--color-heading);
  font-size: 1.25rem;              /* 20px cap-height reads ~24px lockup */
}

/* --- Header / primary nav ------------------------------------------------- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 72px;
  padding-block: var(--space-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  margin-right: auto;              /* push nav + CTA right */
}
.brand:hover { color: inherit; }
.brand .wordmark { white-space: nowrap; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-3);
  background: transparent;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  color: var(--color-heading);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle .bars {
  width: 18px; height: 12px;
  position: relative;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after,
.nav-toggle .bars span {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 5px; }
.nav-toggle .bars::after { bottom: 0; }

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.nav-list a {
  display: block;
  padding: var(--space-3) 0;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9375rem;            /* 15px */
  font-weight: 500;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--color-accent); }

.header-cta { display: none; }
.header-login {
  display: none;
  align-items: center;
  text-decoration: none;
  color: var(--color-heading);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Mobile: collapsible menu */
@media (max-width: 47.99em) {
  .primary-nav {
    order: 3;
    flex-basis: 100%;
  }
  .nav-list {
    display: none;
    padding-block: var(--space-3) var(--space-5);
  }
  .nav-list.is-open { display: flex; }
}

/* Desktop: inline nav, hide toggle, show header CTA */
@media (min-width: 48em) {
  .nav-toggle { display: none; }
  .nav-list {
    display: flex !important;      /* override JS-toggled state */
    flex-direction: row;
    align-items: center;
    gap: var(--space-5);
  }
  .nav-list a { padding: var(--space-2) 0; }
  .header-cta { display: inline-flex; }
  .header-login { display: inline-flex; }
  .header-login:hover { color: var(--color-accent); }
}

/* --- Footer (single-source compliance block) ------------------------------ */
/* Footer — full-width dark bar, tight */
.site-footer {
  background: var(--espresso);
  color: var(--color-on-dark);
  margin-top: var(--space-7);
  padding-block: var(--space-6) var(--space-5);
}
.site-footer a { color: var(--linen); text-decoration: underline; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-7);
    align-items: start;
  }
}

.footer-brand .wordmark { color: var(--linen); }
.footer-name { margin: var(--space-3) 0 0; font-weight: 600; color: var(--color-on-dark); }
.footer-descriptor {
  margin: var(--space-2) 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-on-dark);
}
.footer-descriptor .sep { color: var(--teal); padding: 0 0.35em; }

/* PSC name — rendered at least as prominently as the Girard Wealth lockup */
.footer-psc {
  margin: var(--space-4) 0 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.25rem;
  color: var(--linen);
  line-height: 1.3;
}

.footer-nav {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2) var(--space-5);
}
.footer-nav a {
  display: inline-block;
  padding: var(--space-1) 0;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--color-on-dark);
}
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-legal {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(216, 205, 187, 0.22);
  max-width: 90ch;
}
.footer-legal p {
  font-size: 0.78125rem;           /* 12.5px */
  line-height: 1.6;
  color: var(--color-on-dark);
  margin: 0 0 var(--space-2);
}
.footer-legal strong { color: var(--linen); font-weight: 600; }

/* --- Shared content components (used across pages) ------------------------ */

/* Section header */
.section-head { max-width: 46rem; margin-bottom: var(--space-6); }
.section-head .lead { margin-bottom: 0; }
.center { text-align: center; }
.center.section-head { margin-inline: auto; }

/* Button rows */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* Hero */
.hero { padding-block: var(--space-8) var(--space-7); }
@media (min-width: 48em) {
  .hero { padding-block: var(--space-9) var(--space-8); }
}
/* Interior hero: same centred container as the sections; cap only the text width */
.hero-inner h1 { max-width: 60rem; margin-bottom: var(--space-4); }
.hero-inner .lead { margin-bottom: var(--space-5); }

/* Two-column hero, sitting in a white card on the linen ground (Design) */
.hero { padding-top: var(--space-5); }
@media (min-width: 48em) { .hero { padding-top: var(--space-6); } }

.hero-grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-7) var(--space-6);
}
@media (min-width: 48em) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 52px;
    padding: 76px 44px 80px;
  }
}
.hero-copy { max-width: 40rem; }
.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.75rem, 1.2rem + 5.4vw, 4.125rem);  /* up to 66px (home hero) */
  line-height: 1.02;
}
.hero-copy .lead { margin: 26px 0 0; max-width: 33rem; }
.hero-copy .btn-row { margin-top: var(--space-6); }
.hero-media img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Trust strip — crawlable text, not logos */
.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  padding-block: var(--space-2);
}
.trust li {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: var(--teal-tint);
  border: 1px solid rgba(58, 46, 38, 0.10);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;             /* 14px */
  font-weight: 500;
  color: var(--color-heading);
}

/* Card grid + cards */
.card-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
/* Fixed 2-column variant (e.g. 4-card "who this fits" → 2×2, per Design) */
.card-grid.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 40em) {
  .card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}

/* Values / "why us" — 4 icon cards */
.value-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 40em) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--deep-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.value-icon svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }

/* Service schedule — two-track review calendar */
.schedule { display: grid; gap: var(--space-5); }
@media (min-width: 48em) { .schedule { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
.schedule-track h3 { font-size: 1.5rem; margin-bottom: var(--space-2); }
.sched-note { color: var(--color-muted); font-size: 0.9375rem; margin: 0 0 var(--space-5); }
.sched { list-style: none; margin: 0; padding: 0; }
.sched li {
  position: relative;
  padding: 0 0 var(--space-5) var(--space-6);
}
.sched li:last-child { padding-bottom: 0; }
.sched li::before {                 /* connecting line */
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  bottom: -4px;
  width: 2px;
  background: var(--color-border);
}
.sched li:last-child::before { display: none; }
.sched li::after {                  /* node dot */
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--deep-teal);
}
.sched-when {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  color: var(--color-heading);
  margin: 0 0 var(--space-2);
}
.sched-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--deep-teal);
  background: var(--teal-tint);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}
.sched li > p:last-child { margin: 0; font-size: 0.9375rem; }
.card {
  background: var(--color-surface);
  border: 1px solid rgba(31, 111, 106, 0.10);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: var(--space-3); }
.card p:last-child { margin-bottom: 0; }

/* Credential badge cards (About → Verify me) */
.verify-card { display: flex; flex-direction: column; text-align: center; }
/* Self-contained badge tiles, matched across the three credentials */
.verify-badge {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 0 0 var(--space-5);
  display: block;
}
.verify-card h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.verify-card p { margin-bottom: var(--space-4); }
.verify-link { margin-top: auto; font-weight: 600; text-decoration: none; }
.verify-link:hover { text-decoration: underline; }

/* Provider logo on the client-login cards */
.login-card { display: flex; flex-direction: column; }
.login-logo { width: 100%; max-width: 300px; height: auto; margin-bottom: var(--space-5); }

/* Strategic-partner cards — text left, square logo/photo right */
.partner-card { display: flex; gap: var(--space-5); align-items: flex-start; }
.partner-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.partner-body h3 { margin-bottom: var(--space-1); }
.partner-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--deep-teal);
  margin: 0 0 var(--space-3);
}
.partner-media {
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 16px;
  background: var(--teal-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
  box-sizing: border-box;
}
.partner-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.partner-media.is-photo { padding: 0; }
.partner-media.is-photo img { width: 100%; height: 100%; object-fit: cover; }
.partner-link { margin-top: var(--space-3); font-weight: 600; text-decoration: none; }
.partner-link:hover { text-decoration: underline; }

/* Quote cards — client voice, "the moment you're in" */
.quote-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  margin: 0;
  box-shadow: var(--shadow-card);
}
.quote-card p {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.5rem;               /* 24px */
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  margin: 0;
}
.quote-card::before {
  content: "";
  display: block;
  width: 28px; height: 3px;
  border-radius: 2px;
  background: var(--deep-teal);
  margin-bottom: var(--space-4);
}

/* Numbered steps */
.steps {
  list-style: none;
  display: grid;
  gap: var(--space-6);
  counter-reset: step;
}
@media (min-width: 48em) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-7); }
}
.step {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--deep-teal);
  color: #fff;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: var(--space-4);
}
.step h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.step p:last-child { margin-bottom: 0; }

/* Steps inside an espresso panel: raised bark cards, light circular badge */
.panel .step {
  background: var(--bark-panel);
  box-shadow: none;
}
.panel .step h3 { color: var(--linen); }
.panel .step p { color: var(--sand); }
.panel .step::before { background: var(--teal-tint); color: var(--espresso); }

/* Espresso inset panel */
.panel {
  background: var(--espresso);
  color: var(--color-on-dark);
  border-radius: var(--radius-frame);
  padding: var(--space-7);
}
@media (min-width: 48em) {
  .panel { padding: var(--space-8); }
}
.panel h2, .panel h3 { color: var(--linen); }
.panel .eyebrow { color: var(--teal); }   /* Design: teal eyebrow on espresso */
.panel a { color: var(--linen); }
/* Cards inside a dark panel are raised bark cards with light text (Design) */
.panel .card {
  background: var(--bark-panel);
  box-shadow: none;
  color: var(--sand);
}
.panel .card h3 { color: var(--linen); }
.panel .card p { color: var(--sand); }
/* On espresso, give the fill button a hairline so its edge clears the bg */
.panel .btn-primary,
.on-dark .btn-primary { border-color: var(--sand); }

/* Newsletter — a soft light card floating on the ground (as in the Design) */
.signup {
  background: var(--teal-tint);
  border-radius: var(--radius-frame);
  padding: var(--space-7);
  box-shadow: var(--shadow-card);
}
@media (min-width: 48em) { .signup { padding: var(--space-8); } }

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-3);
  max-width: 34rem;
}
.newsletter-form label { flex: 1 1 16rem; }
.newsletter-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border-strong);
  background: var(--card);
  color: var(--espresso);
  font: inherit;
}
.newsletter-form input[type="email"]::placeholder { color: var(--color-muted); }
.newsletter-form input[type="email"]:focus-visible {
  outline: 2px solid var(--deep-teal);
  outline-offset: 2px;
}
.form-note { font-size: 0.8125rem; color: var(--color-muted); margin: 0; }

/* Closing CTA — espresso panel with a white pill button (as in the Design) */
.cta {
  text-align: center;
  background: var(--espresso);
  color: var(--color-on-dark);
  border-radius: var(--radius-frame);
  padding: var(--space-8) var(--space-6);
}
.cta h2 { color: var(--linen); }
.cta .btn-row { justify-content: center; }
.cta p.small { color: var(--color-on-dark); margin-top: var(--space-4); }
.cta .btn-primary { background: #fff; color: var(--espresso); border-color: #fff; }
.cta .btn-primary:hover { filter: brightness(0.94); color: var(--espresso); }
.cta .btn-secondary { color: var(--linen); border-color: var(--teal); }
.cta .btn-secondary:hover { background: var(--teal); color: var(--espresso); }
.cta :focus-visible { outline-color: var(--teal); }

/* Two-track chooser (home) */
.tracks {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 48em) {
  .tracks { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
.track {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}
.track h3 {
  margin-bottom: var(--space-3);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.125rem);   /* up to 34px */
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.track-link {
  margin-top: auto;
  padding-top: var(--space-4);
  font-weight: 600;
  text-decoration: none;
}
.track-link:hover { text-decoration: underline; }
/* Track label as a pill chip */
.track > .eyebrow {
  align-self: flex-start;
  padding: 0.35rem 0.85rem;
  background: var(--teal-tint);
  border-radius: var(--radius-pill);
  color: var(--deep-teal);
  margin-bottom: var(--space-4);
}
.track > .eyebrow::before { display: none; }

/* Ticked feature lists */
ul.ticks { list-style: none; display: grid; gap: var(--space-3); margin: var(--space-4) 0; }
ul.ticks li { position: relative; padding-left: 1.5rem; }
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--deep-teal);
}
.panel ul.ticks li::before { background: var(--teal); }

/* Definition-style problem/benefit block */
.deflist { display: grid; gap: var(--space-5); }
@media (min-width: 40em) { .deflist { grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-6); } }
.deflist > div { border-top: 1px solid var(--color-border); padding-top: var(--space-4); }
.deflist h3 { font-size: 1.125rem; margin-bottom: var(--space-2); }
.deflist p { margin: 0; }

/* Small centred note between blocks */
.note { text-align: center; color: var(--color-muted); font-size: 0.9375rem; margin: var(--space-5) auto 0; max-width: 40rem; }

/* "Who this isn't for" callout */
.callout {
  background: transparent;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-card);
  padding: var(--space-6);
}
.callout h2 { margin-bottom: var(--space-3); }
.callout p:last-child { margin-bottom: 0; }

/* Page intro lead under an interior H1 */
.page-intro { max-width: 46rem; }

/* Step timeframe meta */
.step .meta {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--deep-teal);
}

/* Numbered process (4 steps) as an ordered list with big markers */
.process { list-style: none; display: grid; gap: var(--space-6); counter-reset: step; }
@media (min-width: 48em) { .process { grid-template-columns: repeat(2, 1fr); gap: var(--space-7); } }

/* Fee table */
.fees { width: 100%; border-collapse: collapse; margin: var(--space-4) 0; }
.fees caption { text-align: left; font-weight: 600; margin-bottom: var(--space-3); }
.fees th, .fees td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); }
.fees th { font-weight: 600; }
.fees td.rate { font-family: var(--font-display); font-optical-sizing: auto; font-size: 1.25rem; white-space: nowrap; }

/* Price callout */
.price { font-family: var(--font-display); font-optical-sizing: auto; font-size: 2rem; line-height: 1; color: var(--color-heading); }
.price small { display: block; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); margin-bottom: var(--space-2); }

/* FAQ — native disclosure, no JS */
.faq { display: grid; gap: 0; margin: var(--space-4) 0; }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) 2rem var(--space-4) 0;
  position: relative;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.25rem;
  color: var(--color-heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--deep-teal);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > *:not(summary) { margin-bottom: var(--space-4); }
.faq details p:first-of-type { margin-top: 0; }

/* Numbered principle cards (philosophy) */
.principles { display: grid; gap: var(--space-5); }
@media (min-width: 48em) { .principles { grid-template-columns: 1fr 1fr; } }
.principle {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
}
.principle .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--teal-tint);
  font-family: var(--font-display); font-optical-sizing: auto;
  font-size: 1.25rem; color: var(--deep-teal);
  margin-bottom: var(--space-4);
}
.principle h3 { font-size: 1.5rem; margin-bottom: var(--space-3); }
.takeaway {
  border-left: 3px solid var(--deep-teal);
  padding-left: var(--space-4);
  margin: var(--space-4) 0 0;
  color: var(--color-heading);
}
.takeaway .label {
  display: block; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--deep-teal);
  margin-bottom: var(--space-1);
}

/* Anchor scroll offset for in-page links */
[id] { scroll-margin-top: var(--space-6); }

/* Prose helper for legal / long-form pages */
.prose { max-width: 62ch; }
.prose h2 { margin-top: var(--space-7); }
.prose ul { padding-left: 1.25rem; margin: 0 0 var(--space-4); }
.prose li { margin-bottom: var(--space-2); }

/* --- Focus, motion -------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--deep-teal);
  outline-offset: 2px;
  border-radius: 2px;
}
.panel :focus-visible,
.site-footer :focus-visible,
.on-dark :focus-visible { outline-color: var(--teal); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
