/* New Chapter Franchise — site styles */

/* Self-hosted fonts (latin subset, SIL Open Font License; see assets/fonts/LICENSE.txt).
   Self-hosting removes two third-party connections and a render-blocking stylesheet. */
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dm-serif-display-latin.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/dm-serif-display-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/inter-var-latin.woff2") format("woff2"); }

:root {
  /* New Chapter Franchise palette (brand kit v1) */
  --teal: #2F5D62;        /* Deep Teal: primary */
  --evergreen: #1D3B3F;   /* Primary dark */
  --sage: #6E9C8E;        /* Secondary: leaf, dividers, icons */
  --sage-soft: #DCE7E2;   /* Light Sage: tint backgrounds */
  --sand: #8A7A66;        /* Warm Sand: labels, rules (large text only) */
  --sand-deep: #6E5F4E;   /* Deep Sand: small warm text */
  --clay: #B0603F;        /* Sunrise Clay: one CTA per layout */
  --cream: #F4EFE6;       /* Background */
  --charcoal: #2B2B2B;    /* Body text */

  /* Role aliases used throughout the stylesheet */
  --ink: var(--evergreen);
  --ink-soft: #44585b;
  --ink-muted: var(--sand-deep);
  --text: var(--charcoal);
  --paper: var(--cream);
  --paper-2: #ebe4d8;
  --line: #ddd5c7;
  --white: #ffffff;
  --accent: var(--clay);
  --accent-deep: #8f4d32;
  --accent-soft: #f0ddd2;
  --gold: var(--sage-soft);

  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(29, 59, 63, 0.08);
  --shadow-lg: 0 24px 60px rgba(29, 59, 63, 0.14);
  --max: 1140px;
}

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

html { scroll-behavior: smooth; }
main, .site-footer, .site-header { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-deep);
  margin-bottom: 14px;
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.muted { color: var(--ink-muted); }
.small { font-size: 0.9rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none !important;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(176, 96, 63, 0.3);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover { background: var(--teal); color: var(--white); }

.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--evergreen); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { color: var(--accent-deep); }

.btn-lg { padding: 18px 32px; font-size: 1.08rem; }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none !important;
}

.brand img { display: block; height: 44px; width: auto; }
.site-footer .brand img { height: 48px; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: var(--paper);
}

.brand-mark svg { width: 22px; height: 22px; }

.brand span em { font-style: normal; color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  white-space: nowrap;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.97rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { position: relative; }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 96, 63, 0.18), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 em { font-style: italic; color: var(--accent); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 22px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.hero-note svg { width: 18px; height: 18px; color: var(--sage); flex-shrink: 0; }

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
}

.hero-card .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 16px;
}

.match-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.match-steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.match-steps .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.match-steps strong { display: block; font-weight: 600; }
.match-steps span.small { color: var(--ink-muted); }

.hero-card .badge {
  position: absolute;
  top: -16px;
  right: 24px;
  background: var(--teal);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Logos / trust strip */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  padding: 26px 0;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  justify-content: center;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.trust-row .item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.trust-row svg { width: 20px; height: 20px; color: var(--accent); }

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .lead, .section-dark .muted { color: rgba(244, 239, 230, 0.72); }
.section-dark .eyebrow { color: var(--sage); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.25rem; }
.card p:last-child { margin-bottom: 0; }

.step-card { position: relative; padding-top: 36px; }
.step-card .step-num {
  position: absolute;
  top: -18px;
  left: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.reverse > :first-child { order: 2; }

.check-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.check-list li svg { width: 22px; height: 22px; color: var(--sage); margin-top: 2px; }
.check-list strong { display: block; }

.illustration {
  background: linear-gradient(145deg, var(--paper-2), var(--accent-soft));
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--line);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat .value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat .label { color: rgba(244, 239, 230, 0.75); font-size: 0.95rem; }

/* Categories */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.chip svg { width: 16px; height: 16px; color: var(--accent); }

/* Consultant cards */
.consultant {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.consultant-top { display: flex; align-items: center; gap: 16px; }

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  flex-shrink: 0;
}

.avatar.a1 { background: linear-gradient(135deg, #B0603F, #c98a6c); }
.avatar.a2 { background: linear-gradient(135deg, #2F5D62, #6E9C8E); }
.avatar.a3 { background: linear-gradient(135deg, #1D3B3F, #44585b); }
.avatar.a4 { background: linear-gradient(135deg, #2F5D62, #6E9C8E); }
.avatar.a5 { background: linear-gradient(135deg, #8A7A66, #b8a894); }
.avatar.a6 { background: linear-gradient(135deg, #1D3B3F, #2F5D62); }

.consultant h3 { margin-bottom: 2px; font-size: 1.2rem; }
.consultant .role { color: var(--ink-muted); font-size: 0.92rem; }

.consultant .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.consultant .meta span {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
}

.consultant .quote {
  font-style: italic;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent-soft);
  padding-left: 14px;
  margin: 0;
}

.consultant .btn { align-self: flex-start; margin-top: auto; }

.verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 600;
}
.verified svg { width: 16px; height: 16px; }

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  align-items: center;
}

.filter-bar select, .filter-bar input {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
}

.filter-bar input { flex: 1; min-width: 220px; }

.empty-state {
  padding: 48px;
  text-align: center;
  color: var(--ink-muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* Testimonials */
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
}

.testimonial .stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }

.testimonial .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.testimonial .who strong { display: block; font-size: 0.95rem; }
.testimonial .who span { color: var(--ink-muted); font-size: 0.85rem; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { color: var(--ink-soft); padding-bottom: 18px; margin: 0; }

/* CTA band */
.cta-band {
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 56ch; margin: 0 auto 28px; }
.cta-band .btn-primary { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }

/* Page hero (interior pages) */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.page-hero .lead { margin-bottom: 0; }

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
}

.progress {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.progress span {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--paper-2);
}
.progress span.active { background: var(--accent); }
.progress span.done { background: var(--sage); }

.form-step { display: none; }
.form-step.active { display: block; }

.form-step h2 { font-size: 1.7rem; margin-bottom: 6px; }
.form-step > p { color: var(--ink-soft); margin-bottom: 24px; }

.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.field .hint { color: var(--ink-muted); font-size: 0.85rem; margin-top: 6px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(176, 96, 63, 0.15);
}

.field textarea { min-height: 120px; resize: vertical; }

.field.error input, .field.error select { border-color: #c0392b; }
.field .error-msg { color: #c0392b; font-size: 0.85rem; margin-top: 6px; display: none; }
.field.error .error-msg { display: block; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.options { display: grid; gap: 12px; }
.options.cols-2 { grid-template-columns: 1fr 1fr; }

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option input { position: absolute; opacity: 0; pointer-events: none; }

.option:hover { border-color: var(--accent); }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.option .box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.option input[type="radio"] + .box { border-radius: 50%; }
.option:has(input:checked) .box { border-color: var(--accent); background: var(--accent); }
.option:has(input:checked) .box::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--white);
}
.option input[type="radio"]:checked + .box::after { border-radius: 50%; }

.option span.text { font-weight: 500; }
.option span.text small { display: block; color: var(--ink-muted); font-weight: 400; font-size: 0.85rem; }

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--ink-soft); }
.consent input { margin-top: 4px; }

.success {
  text-align: center;
  padding: 24px 0;
}
.success .icon-big {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
}
.success .icon-big svg { width: 40px; height: 40px; }

.side-note {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}
.timeline li {
  position: relative;
  padding-left: 72px;
  padding-bottom: 40px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}
.timeline h3 { margin-bottom: 6px; }
.timeline .when {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare th, .compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare th { background: var(--paper-2); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.compare td:first-child { font-weight: 600; width: 32%; }
.compare tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--sage); font-weight: 600; }
.compare .no { color: var(--ink-muted); }

/* Values */
.values .card { text-align: center; }
.values .card .icon { margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(244, 239, 230, 0.78);
  padding: 64px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.site-footer .brand { color: var(--paper); }
.site-footer .brand-mark { background: var(--accent); }
.site-footer h4 { color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(244, 239, 230, 0.78); }
.site-footer a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(244, 239, 230, 0.55);
}

.disclaimer { font-size: 0.82rem; line-height: 1.5; color: rgba(244, 239, 230, 0.55); max-width: 70ch; margin-top: 16px; }

/* Reveal animation */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: grid; }
  .hero { padding: 48px 0 40px; }
  .hero-card { padding: 22px; }
  .form-card { padding: 28px 20px; }
  .field-row, .options.cols-2 { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { justify-content: center; }
  .cta-band { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat .value { font-size: 2rem; }
  .compare { display: block; overflow-x: auto; }
}

/* Compact header on phones */
@media (max-width: 720px) {
  .nav { gap: 12px; }
  .brand { font-size: 1.1rem; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark svg { width: 18px; height: 18px; }
  .site-header .brand-word { display: none; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-primary { padding: 11px 14px; font-size: 0.9rem; }
}

/* Keep brand and buttons on one line */
.brand > span { white-space: nowrap; }
.btn { white-space: nowrap; }

@media (max-width: 720px) {
  .btn-lg { padding: 16px 24px; font-size: 1rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .nav-cta .btn-primary { padding: 11px 14px; font-size: 0.9rem; }
}

/* =====================================================================
   Interactive layer: scroll-driven and pointer-driven effects
   ===================================================================== */

/* Reading progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
}

.site-header { transition: box-shadow 0.3s ease, background 0.3s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(29, 59, 63, 0.08); background: rgba(244, 239, 230, 0.96); }

/* Reveal variants */
html.js .reveal[data-reveal="left"] { transform: translateX(-36px); }
html.js .reveal[data-reveal="right"] { transform: translateX(36px); }
html.js .reveal[data-reveal="scale"] { transform: scale(0.92); }
html.js .reveal[data-reveal="wipe"] { clip-path: inset(0 100% 0 0); transform: none; opacity: 1; transition: clip-path 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.js .reveal[data-reveal="wipe"].in { clip-path: inset(0 0 0 0); }
html.js .reveal.in { transform: none; }

/* Hero word rise */
html.js .hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
html.js .hero h1 .w > span { display: inline-block; transform: translateY(110%); }
html.js .hero h1.words-ready .w > span { animation: word-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes word-rise { to { transform: translateY(0); } }
html.js .hero .lead, html.js .hero .hero-actions, html.js .hero .hero-note { opacity: 0; animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
html.js .hero .lead { animation-delay: 0.5s; }
html.js .hero .hero-actions { animation-delay: 0.65s; }
html.js .hero .hero-note { animation-delay: 0.8s; }
html.js .hero .hero-card { opacity: 0; animation: fade-up 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* Hero floating shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.shape { position: absolute; border-radius: 18px; will-change: transform; }
.shape-1 { width: 180px; height: 240px; right: 6%; top: 8%; background: linear-gradient(160deg, var(--accent-soft), rgba(240, 221, 210, 0)); border: 1px solid rgba(176, 96, 63, 0.18); transform: rotate(8deg); }
.shape-2 { width: 120px; height: 160px; right: 30%; bottom: -6%; background: linear-gradient(160deg, var(--sage-soft), rgba(220, 231, 226, 0)); border: 1px solid rgba(110, 156, 142, 0.2); }
.shape-3 { width: 90px; height: 90px; left: 52%; top: 3%; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(110, 156, 142, 0.4), rgba(110, 156, 142, 0)); }
.shape-4 { width: 260px; height: 260px; left: -80px; bottom: -120px; border-radius: 50%; border: 1.5px dashed rgba(29, 59, 63, 0.12); }
.hero-card { transition: transform 0.25s ease, box-shadow 0.25s ease; transform-style: preserve-3d; }
[data-tilt] { transition: transform 0.2s ease; will-change: transform; }

/* Chapter rail */
.chapter-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(16px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.chapter-rail.visible { opacity: 1; pointer-events: auto; transform: translateY(-50%) translateX(0); }
.chapter-rail a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none !important;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.chapter-rail .rail-label {
  position: absolute;
  right: 38px;
  top: 50%;
  opacity: 0;
  transform: translate(8px, -50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.chapter-rail .rail-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.chapter-rail a:hover .rail-label, .chapter-rail a.active .rail-label { opacity: 1; transform: translate(0, -50%); }
.chapter-rail a.active .rail-num { background: var(--accent); color: var(--white); border-color: var(--accent); transform: scale(1.12); }
@media (max-width: 1100px) { .chapter-rail { display: none; } }

/* Spotlight cards */
.spot { position: relative; }
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, -100px) var(--my, -100px), rgba(176, 96, 63, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.spot:hover::after { opacity: 1; }
.section-dark .spot::after { background: radial-gradient(260px circle at var(--mx, -100px) var(--my, -100px), rgba(110, 156, 142, 0.22), transparent 60%); }
.card, .testimonial { transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease; }
.card:hover, .testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(176, 96, 63, 0.35); }
.card[data-tilt]:hover { transform: none; }
.btn-primary { transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }

/* CTA band follows the cursor */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px circle at var(--gx, 70%) var(--gy, 30%), rgba(110, 156, 142, 0.35), transparent 60%),
    linear-gradient(135deg, var(--teal) 0%, var(--evergreen) 100%);
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  right: -140px; top: -180px;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-band > * { position: relative; }

/* ---------- The field narrows ---------- */
.narrow { position: relative; height: 320vh; background: var(--ink); color: var(--paper); }
.narrow-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}
.narrow-copy { position: relative; }
.narrow .eyebrow { color: var(--sage); }
.narrow h2 { color: var(--white); font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.narrow-count {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--sage-soft);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.narrow-caption { color: rgba(244, 239, 230, 0.7); font-size: 1.1rem; margin-bottom: 28px; }
.narrow-stages { position: relative; min-height: 120px; }
.narrow-stages p {
  position: absolute;
  inset: 0;
  margin: 0;
  color: rgba(244, 239, 230, 0.85);
  font-size: 1.15rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.narrow-stages p.active { opacity: 1; transform: none; transition-delay: 0.15s; }
.narrow-hint { transition: opacity 0.4s ease; }
.narrow.done .narrow-hint { opacity: 0; }
.narrow-hint { color: rgba(244, 239, 230, 0.45); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; }
.narrow-hint svg { width: 16px; height: 16px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.narrow-field { position: relative; height: min(78vh, 640px); }
.narrow-field canvas { width: 100%; height: 100%; display: block; }
.narrow-pick {
  position: absolute;
  transform: translate(-50%, -50%) translateY(34px);
  background: var(--white);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.narrow-pick.in { opacity: 1; transform: translate(-50%, -50%) translateY(30px); }
.narrow-pick::before { content: ""; position: absolute; left: 50%; top: -6px; width: 10px; height: 10px; background: var(--white); transform: translateX(-50%) rotate(45deg); }
.narrow.static { height: auto; padding: 88px 0; }
.narrow.static .narrow-stage { position: static; height: auto; }
.narrow.static .narrow-stages p { position: static; opacity: 1; transform: none; }
.narrow.static .narrow-pick { opacity: 1; }
.narrow.static .narrow-hint { display: none; }

/* ---------- Process line ---------- */
.process-track { position: relative; }
.process-track::before, .process-track::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%;
  top: 0;
  height: 2px;
  border-radius: 2px;
}
.process-track::before { background: var(--line); }
.process-track::after { background: linear-gradient(90deg, var(--accent), var(--gold)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform 0.1s linear; }
.process-track .step-card .step-num { transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease; }
.process-track .step-card.lit .step-num { background: var(--accent); transform: scale(1.15); box-shadow: 0 0 0 6px var(--accent-soft); }
.process-track .step-card { transition: border-color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.process-track .step-card.lit { border-color: rgba(176, 96, 63, 0.4); }
.process-track .step-card h3 { transition: color 0.4s ease; }
.process-track .step-card.lit h3 { color: var(--accent-deep); }

/* ---------- Timeline draw ---------- */
.timeline::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  transform-origin: 50% 0;
  transform: scaleY(var(--draw, 0));
}
.timeline li { opacity: 0.45; transition: opacity 0.5s ease; }
.timeline li.lit { opacity: 1; }
.timeline .dot { transition: background 0.4s ease, color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease; z-index: 1; }
.timeline li.lit .dot { background: var(--accent); color: var(--white); transform: scale(1.08); box-shadow: 0 0 0 6px var(--accent-soft); }
html:not(.js) .timeline li { opacity: 1; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; position: relative; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; will-change: transform; }
.marquee + .marquee { margin-top: 12px; }
.marquee .chip { flex-shrink: 0; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; cursor: default; }
.marquee .chip:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.marquee .chip:hover svg { color: var(--gold); }

/* ---------- Story carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px 4px 24px;
  scrollbar-width: none;
  cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel-track .testimonial {
  flex: 0 0 min(380px, 82vw);
  scroll-snap-align: center;
  transform: scale(0.94);
  opacity: 0.6;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease, box-shadow 0.3s ease;
  user-select: none;
}
.carousel-track .testimonial.focus { transform: scale(1); opacity: 1; box-shadow: var(--shadow-lg); }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }
.carousel-nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.carousel-nav button:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.carousel-nav button svg { width: 18px; height: 18px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: none; background: var(--line); cursor: pointer; transition: width 0.3s ease, background 0.3s ease; }
.carousel-dots button.active { width: 24px; border-radius: 4px; background: var(--accent); }

/* ---------- FAQ animated body ---------- */
.faq-body { overflow: hidden; transition: height 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.faq summary::after { transition: transform 0.3s ease, color 0.3s ease; }
.faq summary:hover::after { color: var(--accent-deep); }
.faq details[open] summary { color: var(--accent-deep); }

/* Hero stat strip under the trust strip */
.trust-row .item { transition: color 0.2s ease; }
.trust-row .item:hover { color: var(--ink); }

/* Section numbering decoration */
.section-num {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: rgba(29, 59, 63, 0.05);
  position: absolute;
  right: 24px;
  top: 24px;
  pointer-events: none;
  user-select: none;
}
.section-dark .section-num { color: rgba(244, 239, 230, 0.06); }
.section { position: relative; }

@media (max-width: 980px) {
  .narrow { height: 260vh; }
  .narrow-stage { grid-template-columns: 1fr; align-content: center; gap: 12px; }
  .narrow-field { height: 42vh; order: -1; }
  .narrow-count { font-size: clamp(3rem, 14vw, 5rem); }
  .narrow-stages { min-height: 110px; }
  .narrow-stages p { font-size: 1rem; }
  .process-track::before, .process-track::after { display: none; }
  .section-num { font-size: 4rem; }
}

@media (max-width: 720px) {
  .shape-1 { width: 120px; height: 160px; right: -20px; top: 4%; }
  .shape-2 { display: none; }
  .narrow { height: 240vh; }
  .narrow-field { height: 38vh; }
  .narrow-pick { font-size: 0.72rem; padding: 5px 9px; }
  .carousel-track .testimonial blockquote { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-band::before, .narrow-hint svg { animation: none; }
  html.js .hero h1 .w > span { transform: none; animation: none; }
  html.js .hero .lead, html.js .hero .hero-actions, html.js .hero .hero-note, html.js .hero .hero-card { opacity: 1; animation: none; }
  .card, .testimonial, .btn-primary, [data-tilt] { transition: none; }
  .card:hover, .testimonial:hover { transform: none; }
}

/* =====================================================================
   Brand additions (New Chapter Franchise kit)
   ===================================================================== */

.site-header { background: rgba(244, 239, 230, 0.92); }
.footer-tagline { font-family: var(--font-display); font-size: 1.25rem; color: var(--sage-soft); margin: 18px 0 6px; }
.site-footer { background: var(--evergreen); }

/* Photo hero */
.hero-visual { position: relative; }
.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 1.2s ease; }
.hero-visual .hero-card { position: absolute; left: -48px; bottom: 36px; width: min(380px, 92%); padding: 22px 24px; }
.hero-visual .hero-card .badge { background: var(--teal); } /* was Sage: white on #6E9C8E is ~3.1:1; Deep Teal is ~7.3:1 (Riley's contrast fix) */
.hero-visual .hero-card .match-steps strong { font-size: 0.95rem; }
.hero-visual .hero-card .match-steps span.small { font-size: 0.85rem; }

/* Photo figure used in split sections */
.photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 16 / 10; }
.photo figcaption {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(244, 239, 230, 0.92);
  color: var(--evergreen);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: var(--font-display);
}

/* Scroll-driven parallax photo band */
.band {
  position: relative;
  height: min(70vh, 560px);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--cream);
}
.band img {
  position: absolute;
  inset: -20% 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  will-change: transform;
}
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 59, 63, 0.55), rgba(29, 59, 63, 0.75)); }
.band h2, .band p { text-shadow: 0 2px 18px rgba(29, 59, 63, 0.6); }
.band .band-inner { position: relative; max-width: 760px; padding: 0 24px; }
.band h2 { color: var(--cream); font-size: clamp(2rem, 4.4vw, 3.2rem); }
.band p { color: rgba(244, 239, 230, 0.85); font-size: 1.15rem; }

/* Three questions (dark section) */
.questions { display: grid; gap: 18px; }
.question {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px 28px 28px 20px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.question:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(110, 156, 142, 0.5); transform: translateX(4px); }
.question .q-num { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--sage); text-align: center; }
.question h3 { color: var(--cream); font-size: 1.5rem; margin-bottom: 8px; }
.question p { color: rgba(244, 239, 230, 0.75); margin: 0; }
.question .q-why { display: inline-block; margin-top: 10px; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); font-weight: 600; }

/* Narrow (field) picks on evergreen */
.narrow-pick { background: var(--cream); color: var(--evergreen); }
.narrow-pick::before { background: var(--cream); }
.narrow-caption { color: rgba(244, 239, 230, 0.7); }

/* Fit check quiz */
.quiz { max-width: 820px; margin: 0 auto; }
.quiz-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px; }
.quiz-q { display: none; }
.quiz-q.active { display: block; }
.quiz-q h2 { font-size: 1.7rem; margin-bottom: 8px; }
.quiz-q > p { color: var(--ink-soft); margin-bottom: 22px; }
.quiz-answer {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.quiz-answer:hover { border-color: var(--sage); background: var(--sage-soft); transform: translateX(3px); }
.quiz-answer strong { display: block; color: var(--evergreen); margin-bottom: 2px; }
.quiz-answer small { color: var(--ink-muted); }
.quiz-reflect {
  display: none;
  margin-top: 16px;
  padding: 18px 20px;
  border-left: 3px solid var(--sage);
  background: var(--sage-soft);
  border-radius: 0 12px 12px 0;
  color: var(--evergreen);
}
.quiz-reflect.show { display: block; animation: fade-up 0.4s ease; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.quiz-result { display: none; }
.quiz-result.active { display: block; }
.quiz-result .verdict { font-family: var(--font-display); font-size: 2rem; color: var(--evergreen); margin-bottom: 12px; }
.quiz-notes { list-style: none; margin: 20px 0 28px; padding: 0; display: grid; gap: 10px; }
.quiz-notes li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-soft); }
.quiz-notes li svg { width: 20px; height: 20px; color: var(--sage); margin-top: 2px; }

/* Light sage tint section */
.section-tint { background: var(--sage-soft); }
.section-tint .card { border-color: transparent; }

/* Process step numbers in teal, lit in clay is too loud: use sage */
.process-track .step-card.lit .step-num { background: var(--teal); box-shadow: 0 0 0 6px var(--sage-soft); }
.process-track .step-card.lit h3 { color: var(--teal); }
.process-track .step-card.lit { border-color: rgba(110, 156, 142, 0.6); }
.process-track::after { background: linear-gradient(90deg, var(--sage), var(--teal)); }
.timeline::after { background: linear-gradient(180deg, var(--sage), var(--teal)); }
.timeline li.lit .dot { background: var(--teal); box-shadow: 0 0 0 6px var(--sage-soft); }
.timeline .dot { border-color: var(--teal); color: var(--teal); }
.step-card .step-num { background: var(--evergreen); }
.card .icon { background: var(--sage-soft); color: var(--teal); }
.match-steps .num { background: var(--sage-soft); color: var(--teal); }
.chapter-rail a.active .rail-num { background: var(--teal); border-color: var(--teal); }
.scroll-progress { background: linear-gradient(90deg, var(--sage), var(--teal)); }
.progress span.active { background: var(--teal); }
.progress span.done { background: var(--sage); }
.option:has(input:checked) { border-color: var(--teal); background: var(--sage-soft); }
.option:has(input:checked) .box { border-color: var(--teal); background: var(--teal); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47, 93, 98, 0.15); }
.trust-row svg { color: var(--sage); }
.chip svg { color: var(--sage); }
.marquee .chip:hover { background: var(--teal); }
.marquee .chip:hover svg { color: var(--sage-soft); }
.carousel-dots button.active { background: var(--teal); }
.faq details[open] summary { color: var(--teal); }
.faq summary::after { color: var(--sage); }
.spot::after { background: radial-gradient(260px circle at var(--mx, -100px) var(--my, -100px), rgba(110, 156, 142, 0.18), transparent 60%); }
.card:hover, .testimonial:hover { border-color: rgba(110, 156, 142, 0.6); }
.shape-1 { background: linear-gradient(160deg, var(--sage-soft), rgba(220, 231, 226, 0)); border-color: rgba(110, 156, 142, 0.3); }
.shape-3 { background: radial-gradient(circle at 30% 30%, rgba(138, 122, 102, 0.35), rgba(138, 122, 102, 0)); }
.hero::before { background: radial-gradient(circle, rgba(110, 156, 142, 0.22), transparent 65%); }
.hero h1 em { color: var(--teal); }

@media (max-width: 980px) {
  .hero-visual .hero-card { position: static; width: 100%; margin-top: -40px; margin-left: 16px; width: calc(100% - 32px); }
  .question { grid-template-columns: 56px 1fr; padding: 22px 18px; }
  .question .q-num { font-size: 2.4rem; }
}
@media (max-width: 720px) {
  .brand img { height: 36px; }
  .quiz-card { padding: 26px 20px; }
  .band { height: 60vh; }
}


/* =====================================================================
   v2: 3D hero, conversion helpers, fit call flow, legal pages
   ===================================================================== */

/* 3D hero stage (Riley Park's scene). Fixed aspect ratio so nothing shifts when
   the canvas arrives. The poster image is the fallback for no JS, reduced
   motion, no WebGL, low-power devices and screens under 768px. The sky is CSS. */
.hero-3d {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #DCE7E2 0%, #E8EBE3 38%, #F4EFE6 62%);
}
.hero-3d .scene3d-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene3d-canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.scene3d-ready .scene3d-canvas { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .scene3d-canvas { display: none; } }

/* Small 3D accent in the closing CTA band: the seedling grows when it comes into view */
.cta-accent { position: relative; width: 140px; height: 140px; margin: -24px auto 2px; }
.cta-accent .scene3d-poster { width: 100%; height: 100%; display: block; transition: opacity 0.4s ease; }
.cta-accent[data-scene3d-state="pending"] .scene3d-poster,
.cta-accent[data-scene3d-state="loading"] .scene3d-poster,
.cta-accent[data-scene3d-state="running"] .scene3d-poster { opacity: 0; }

/* Stepping stones in the process section: four stones, one per stage (Riley's accent A).
   The stones rise once the box is 40% in view, then lift as each stage card lights up. */
.process-stones { position: relative; max-width: 680px; aspect-ratio: 3 / 1; margin: -8px auto 28px; }
.process-stones .scene3d-poster { width: 100%; height: 100%; display: block; transition: opacity 0.4s ease; }
.process-stones[data-scene3d-state="pending"] .scene3d-poster,
.process-stones[data-scene3d-state="loading"] .scene3d-poster,
.process-stones[data-scene3d-state="running"] .scene3d-poster { opacity: 0; }
@media (max-width: 720px) { .process-stones { margin: -16px -8px 16px; } }

/* Small helpers */
.hide-xs { display: inline; }
@media (max-width: 420px) { .hide-xs { display: none; } }
.text-link { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--evergreen); }
.opt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sand-deep); background: var(--paper-2); border-radius: 999px; padding: 3px 8px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }

/* Inline CTA after key sections */
.cta-inline {
  margin: 44px auto 0;
  max-width: 760px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 22px;
  text-align: center;
}
.cta-inline p { flex-basis: 100%; margin: 0; font-family: var(--font-display); font-size: 1.35rem; color: var(--evergreen); }
.cta-inline-dark p { color: var(--cream); }
.cta-pair { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* "What happens next" steps */
.next-steps { list-style: none; padding: 0; margin: 28px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; max-width: 860px; }
.next-steps li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); text-align: left; }
.next-steps li span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 600; background: rgba(255, 255, 255, 0.16); color: var(--white); }
.next-steps-light li { color: var(--ink-soft); }
.next-steps-light li span { background: var(--sage-soft); color: var(--teal); }
.success .next-steps { flex-direction: column; align-items: flex-start; max-width: 460px; margin: 0 auto 8px; }

/* Fit call form */
.progress { margin-bottom: 10px; }
.progress-labels { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); }
.progress-labels li.active { color: var(--teal); }
.progress-labels li.done { color: var(--sage); }
.step-label { margin-bottom: 18px; }
.prefill-note { display: flex; gap: 10px; align-items: flex-start; background: var(--sage-soft); color: var(--evergreen); border-radius: 12px; padding: 12px 16px; margin: 0 0 22px; font-size: 0.92rem; }
.prefill-note[hidden] { display: none; }
.prefill-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--teal); }
.more-fields { margin: 4px 0 18px; border: 1px dashed var(--line); border-radius: 12px; padding: 0 16px; }
.more-fields summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--teal); list-style: none; }
.more-fields summary::-webkit-details-marker { display: none; }
.more-fields summary::before { content: "+ "; }
.more-fields[open] summary::before { content: "\2212  "; }
.more-fields[open] { padding-bottom: 6px; }
.reassure { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.reassure svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--sage); }
.reassure a { color: var(--teal); }
.send-error { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: #f8e3dc; color: #7a2e15; font-size: 0.92rem; }
.booking { margin: 24px auto 0; padding: 20px; border-radius: 14px; background: var(--paper-2); max-width: 460px; }
.booking[hidden] { display: none; }
.booking p { margin: 0 0 12px; }
.side-notes { max-width: 760px; margin: 40px auto 0; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* Without JS: show every step at once and a real submit button */
html.no-js .form-step { display: block; margin-bottom: 36px; }
html.no-js [data-next], html.no-js [data-back], html.no-js .progress, html.no-js .progress-labels, html.no-js .step-label { display: none; }

/* Fit check result CTA */
.result-cta { margin-top: 28px; padding: 26px 26px 22px; border-radius: 16px; background: var(--sage-soft); }
.result-cta h3 { margin: 0 0 8px; font-size: 1.4rem; color: var(--evergreen); }
.result-cta p { color: var(--ink-soft); }
.result-cta .hero-actions { margin-top: 16px; }

/* Field-narrows counter now uses words, not a figure */
.narrow-count { font-size: clamp(3.2rem, 6.4vw, 5.6rem); white-space: nowrap; }

/* Sticky mobile CTA bar */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(244, 239, 230, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(29, 59, 63, 0.10);
    transition: transform 0.3s ease;
  }
  .sticky-cta .btn { padding: 13px 18px; font-size: 0.95rem; flex: 1; justify-content: center; max-width: 260px; }
  .sticky-cta-note { font-size: 0.82rem; color: var(--ink-soft); font-weight: 500; }
  html.sticky-cta-js .sticky-cta { transform: translateY(110%); }
  html.sticky-cta-js .sticky-cta.show { transform: none; }
  body { padding-bottom: 72px; }
  .btn-lg, .cta-inline .btn, .cta-pair .btn, .result-cta .btn { white-space: normal; text-align: center; line-height: 1.25; justify-content: center; }
  .cta-inline .btn, .cta-pair .btn { width: 100%; }
  .progress-labels { font-size: 0.72rem; }
  .next-steps { flex-direction: column; align-items: flex-start; max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.5rem; margin-top: 40px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.review-flag { background: #fbf1d9; border: 1px solid #e8d3a3; color: #5e4a1c; border-radius: 12px; padding: 14px 18px; font-size: 0.92rem; margin-bottom: 32px; }

/* v2 hero layout: a slightly larger stage for the 3D scene; on desktop the
   "what a fit call is" card shrinks to its three headlines and tucks into the
   lower-left corner so the book, path and doorway stay in view. */
@media (min-width: 981px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero { padding-bottom: 80px; }
  .hero-visual .hero-card { left: -40px; bottom: -36px; width: min(262px, 56%); padding: 18px 20px 18px; }
  .hero-visual .hero-card .label { margin-bottom: 12px; }
  .hero-visual .hero-card .match-steps { gap: 10px; }
  .hero-visual .hero-card .match-steps li { grid-template-columns: 30px 1fr; gap: 10px; align-items: center; }
  .hero-visual .hero-card .match-steps .num { width: 30px; height: 30px; font-size: 0.95rem; }
  .hero-visual .hero-card .match-steps strong { font-size: 0.92rem; }
  .hero-visual .hero-card .match-steps span.small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero-visual .hero-card .badge { right: auto; left: 18px; }
}

/* Fix (also on the live site): ".field label" was overriding the option and
   consent layouts, stacking the radio/checkbox above its text. */
.field label.option { display: flex; margin-bottom: 0; font-weight: 400; font-size: 1rem; }
.field label.consent { display: flex; margin-bottom: 0; font-weight: 400; font-size: 0.88rem; }
