/* NeuroThrive Health — site styles */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --cream: #F5F1E8;
  --cream-2: #EDE6D8;
  --cream-3: #E2D8C4;
  --ink: #2A2018;
  --ink-2: #5B4E42;
  --ink-3: #74665A;
  --line: rgba(42, 32, 24, 0.14);
  --espresso: #231912;
  --espresso-2: #2E2219;
  --on-dark: #F5F1E8;
  --on-dark-2: rgba(245, 241, 232, 0.74);
  --line-dark: rgba(245, 241, 232, 0.16);

  /* brand */
  --gold: #D6AB65;
  --gold-hover: #E2BD80;
  --gold-deep: #A57A33;   /* graphics on cream (3.4:1) */
  --gold-text: #8A6326;   /* text on cream (4.8:1) */
  --lime: #AABB2E;
  --lime-text: #5E6B12;
  --lime-deep: #6F8A22;   /* graphics on cream (3.2:1) */
  --orange: #EB891D;
  --orange-deep: #C2611C; /* brain-mark orange, as on Instagram; numerals and graphics on cream (3.7:1) */
  --sage: #7FA39A;
  --clay: #D08C76;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 20px;
  --header-h: 84px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(88px, 11vw, 152px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem; /* 19px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 1.08;
}
h2 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); margin-bottom: 0.5em; }
h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; }
/* No italics anywhere on the site, by request */
em, i, cite { font-style: normal; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  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: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

/* Lenis (smooth scroll) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1.25rem;
}
.eyebrow-light { color: var(--gold); }
.lede { font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); color: var(--ink-2); max-width: 38em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 54px; padding: 14px 28px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #3d2f24; }
.btn-ghost-light { border-color: rgba(245, 241, 232, 0.7); color: var(--cream); }
.btn-ghost-light:hover { background: rgba(245, 241, 232, 0.12); border-color: var(--cream); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 1rem; }
.btn-block { width: 100%; }
.link-btn {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; font-weight: 600;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--cream);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.site-header.is-solid {
  background: rgba(245, 241, 232, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.site-nav a:not(.btn) {
  font-size: 1rem; font-weight: 500; text-decoration: none;
  padding: 6px 0; border-bottom: 1.5px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: currentColor; }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 0; background: none; cursor: pointer; margin-right: -10px;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--cream); color: var(--ink);
    box-shadow: 0 12px 24px rgba(42, 32, 24, 0.12);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; }
  .site-nav a:not(.btn) { font-size: 1.1875rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 20px; }
  .nav-open { background: var(--cream); color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(640px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--cream); overflow: hidden;
}
.hero-media {
  /* 120% wide and anchored left, which moves the people in the photo right, away from the headline */
  position: absolute; top: 0; bottom: 0; left: 0; z-index: -2;
  width: 120%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 30%;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(28, 20, 14, 0.6) 0%, rgba(28, 20, 14, 0) 24%),
    linear-gradient(90deg, rgba(28, 20, 14, 0.82) 0%, rgba(28, 20, 14, 0.55) 45%, rgba(28, 20, 14, 0.1) 75%),
    linear-gradient(0deg, rgba(28, 20, 14, 0.7) 0%, rgba(28, 20, 14, 0) 45%);
}
.hero-inner { padding-top: calc(var(--header-h) + 64px); padding-bottom: 56px; }
.hero-title {
  font-size: clamp(2.9rem, 6.4vw, 5.6rem);
  max-width: 11.5em; margin-bottom: 0.45em;
  text-wrap: balance;
}
.hero-title .w { display: inline-block; }
.hero-lede { font-size: clamp(1.1875rem, 1.7vw, 1.375rem); max-width: 30em; color: rgba(245, 241, 232, 0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(245, 241, 232, 0.28);
  padding-top: 22px; padding-bottom: 30px;
}
.hero-facts p { margin: 0; padding-right: 28px; font-size: 0.9375rem; line-height: 1.45; color: rgba(245, 241, 232, 0.82); }
.hero-facts strong { display: block; font-size: 1.0625rem; color: var(--lime); font-weight: 600; margin-bottom: 2px; }

/* hero entrance (JS only, motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-media { animation: hero-settle 2.6s cubic-bezier(.2,.7,.2,1) both; }
  .js .hero-title .w { animation: word-in 0.9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(0.25s + var(--i) * 0.075s); }
  .js .hero-eyebrow, .js .hero-lede, .js .hero-actions, .js .hero-facts { animation: fade-up 0.9s cubic-bezier(.2,.7,.2,1) both; }
  .js .hero-eyebrow { animation-delay: 0.1s; }
  .js .hero-lede { animation-delay: 0.85s; }
  .js .hero-actions { animation-delay: 1s; }
  .js .hero-facts { animation-delay: 1.2s; }
}
@keyframes hero-settle { from { transform: scale(1.07); } to { transform: none; } }
@keyframes word-in { from { opacity: 0; transform: translateY(0.45em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--cream-2); }
.section-dark { background: var(--espresso); color: var(--on-dark); }
.section-dark .lede { color: var(--on-dark-2); }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 112px); align-items: center; }
.split-text > :last-child { margin-bottom: 0; }

/* scroll reveal (JS only, motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Program: what's included ---------- */
.split-top { align-items: start; }
.included { background: var(--cream-2); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.included-title {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime-text); margin-bottom: 8px;
}
.included-list li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.included-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.inc-num { font-size: 0.875rem; font-weight: 600; color: var(--lime-text); letter-spacing: 0.08em; padding-top: 5px; }
.included-list h4 { font-family: var(--serif); font-weight: 400; font-size: 1.375rem; line-height: 1.25; margin: 0 0 6px; }
.included-list p { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }

/* ---------- Why it matters: stat + dot meter ---------- */
.stat-figure {
  margin: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  background: var(--cream); border-radius: var(--radius);
}
.stat-value {
  display: block; font-family: var(--sans); font-weight: 600;
  font-size: clamp(5rem, 11vw, 9rem); line-height: 0.9; letter-spacing: -0.04em;
  color: var(--ink); margin-bottom: 20px;
}
.stat-caption { font-size: clamp(1.1875rem, 1.8vw, 1.4375rem); line-height: 1.45; max-width: 22em; margin: 0; }
.stat-caption strong { font-weight: 600; }
.dot-meter {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(8px, 1.2vw, 14px);
  max-width: 420px; width: 100%; justify-self: end;
}
.dot-meter .dot { aspect-ratio: 1; border-radius: 50%; background: var(--cream-3); transition: background-color 0.35s ease; }
.dot-meter .dot.on { background: var(--orange-deep); }
.source {
  grid-column: 1 / -1;
  font-size: 0.875rem; line-height: 1.5; color: var(--ink-3);
  border-top: 1px solid var(--line); padding-top: 18px;
}

.factors { margin-top: clamp(56px, 7vw, 96px); }
.factors-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.factors-title { font-size: 1.625rem; }
.factors-key { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 0.9375rem; color: var(--ink-2); max-width: 30em; }
.key-dot, .factor-col li.linked::before {
  width: 10px; height: 10px; border-radius: 50%; background: var(--lime-deep); flex: none;
}
.key-dot { display: inline-block; }
.factor-col li.linked { position: relative; padding-left: 22px; }
.factor-col li.linked::before { content: ""; position: absolute; left: 0; top: 21px; }
.factor-col li.linked span { display: block; font-size: 0.875rem; color: var(--lime-text); font-weight: 500; line-height: 1.3; margin-top: 2px; }
.factor-col li.muted { color: var(--ink-3); padding-left: 22px; }
.factor-cols { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: clamp(24px, 4vw, 56px); }
.factor-stage {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); padding-bottom: 12px; margin-bottom: 0; border-bottom: 1.5px solid var(--gold-deep);
}
.factor-col li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
.factor-col-wide ul { columns: 2; column-gap: clamp(24px, 4vw, 56px); }
.factor-col-wide li { break-inside: avoid; }
.pull {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.2;
  margin: clamp(56px, 7vw, 88px) 0 0; text-align: center;
}

/* ---------- 12-area wheel ---------- */
.wheel {
  --r: 33%;          /* ring radius as % of the (square) box */
  position: relative; width: min(560px, 100%); aspect-ratio: 1; justify-self: center; margin: 0;
}
.wheel-ring { position: absolute; inset: calc(50% - var(--r)); border-radius: 50%; border: 1.5px solid var(--cream-3); }
.wheel-center { position: absolute; left: 50%; top: 50%; width: 30%; transform: translate(-50%, -50%); }
.wheel-areas li {
  --a: calc(var(--i) * 30deg - 90deg);
  position: absolute; width: 0; height: 0;
  left: calc(50% + cos(var(--a)) * var(--r));
  top: calc(50% + sin(var(--a)) * var(--r));
}
.node {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 5px var(--cream);
}
.wheel-areas li:nth-child(3n+2) .node { background: var(--lime); }
.wheel-areas li:nth-child(3n) .node { background: var(--orange); }
.area-label {
  position: absolute; width: 8.5em; font-size: 0.9875rem; font-weight: 500; line-height: 1.2; color: var(--ink);
  /* push the label outward along the same angle, then center it */
  left: calc(cos(var(--a)) * 4.6em); top: calc(sin(var(--a)) * 2.6em);
  transform: translate(-50%, -50%); text-align: center;
}
@media (prefers-reduced-motion: no-preference) {
  .js .wheel .wheel-ring { transform: scale(0.92); opacity: 0; transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity 1s; }
  .js .wheel .wheel-areas li { opacity: 0; transition: opacity 0.5s ease; transition-delay: calc(0.3s + var(--i) * 0.09s); }
  .js .wheel.is-in .wheel-ring { transform: none; opacity: 1; }
  .js .wheel.is-in .wheel-areas li { opacity: 1; }
}

/* ---------- Personalization ---------- */
.photo-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* for landscape photos with people across the whole frame, where 4:5 would crop someone out */
.photo-frame.photo-frame-wide { aspect-ratio: 4 / 3; }
.list-title { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.check-list li { position: relative; padding: 10px 0 10px 36px; border-bottom: 1px solid var(--line); }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 18px; height: 10px;
  border-left: 2px solid var(--lime-deep); border-bottom: 2px solid var(--lime-deep);
  transform: rotate(-45deg);
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.5vw, 36px); counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 1.5px solid var(--ink); }
.step:nth-child(even) { margin-top: clamp(0px, 6vw, 72px); }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.step-num {
  display: block; font-family: var(--serif); font-size: clamp(3.5rem, 5vw, 4.5rem); line-height: 1;
  color: var(--orange-deep);
}
/* Fine line icons in ink: hairline strokes that stay the same weight at any size */
.step-icon { color: var(--ink); flex: none; line-height: 0; }
.step-icon svg {
  width: 46px; height: 46px;
  fill: none; stroke: currentColor; stroke-width: 1.15px; stroke-linecap: round; stroke-linejoin: round;
}
.step-icon svg * { vector-effect: non-scaling-stroke; }
.step h3 { font-size: 1.4375rem; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 1.0625rem; margin: 0; }

/* ---------- Comparison table ---------- */
.compare-wrap { max-width: 1040px; margin-inline: auto; }
.compare { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare th, .compare td { padding: 22px 14px; text-align: center; vertical-align: middle; font-size: 1.0625rem; }
.compare thead th { font-family: var(--sans); font-weight: 500; color: var(--ink-2); padding-top: 28px; padding-bottom: 24px; }
.compare thead th.nt { font-family: var(--serif); font-size: 1.375rem; color: var(--ink); }
.compare thead td { width: 34%; }
.compare tbody th { text-align: left; font-weight: 400; padding-left: 0; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare .nt { background: #E3E7C5; }
.compare thead .nt { border-radius: 16px 16px 0 0; }
.compare tbody tr:last-child .nt { border-radius: 0 0 16px 16px; font-weight: 600; }
.compare tbody td { color: var(--ink-2); }
.compare tbody td.nt { color: var(--ink); }
.yes, .no { display: inline-block; width: 28px; height: 28px; position: relative; vertical-align: middle; }
.yes::after {
  content: ""; position: absolute; left: 7px; top: 6px; width: 15px; height: 8px;
  border-left: 2.5px solid var(--lime-text); border-bottom: 2.5px solid var(--lime-text); transform: rotate(-45deg);
}
.no::before, .no::after {
  content: ""; position: absolute; left: 6px; top: 13px; width: 16px; height: 1.5px; background: var(--ink-3);
}
.no::before { transform: rotate(45deg); }
.no::after { transform: rotate(-45deg); }

/* ---------- Self-assessment ---------- */
.perspective { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--espresso-2); border: 1px solid var(--line-dark); margin-top: 8px; }
.perspective-btn {
  min-height: 46px; padding: 8px 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--on-dark-2); font-weight: 600; font-size: 1rem;
}
.perspective-btn[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.assessment-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.questions { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q {
  position: relative; display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; border-radius: 14px; cursor: pointer;
  background: var(--espresso-2); border: 1px solid var(--line-dark);
  font-size: 1.0625rem; line-height: 1.45;
  transition: border-color 0.2s, background-color 0.2s;
}
.q:hover { border-color: rgba(245, 241, 232, 0.4); }
.q input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-box {
  flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 6px;
  border: 1.5px solid rgba(245, 241, 232, 0.6); position: relative;
  transition: background-color 0.2s, border-color 0.2s;
}
.q input:checked ~ .q-box { background: var(--gold); border-color: var(--gold); }
.q input:checked ~ .q-box::after {
  content: ""; position: absolute; left: 6px; top: 5px; width: 10px; height: 6px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg);
}
.q:has(input:checked) { border-color: var(--gold); background: #3a2b1f; }
.q input:focus-visible ~ .q-box { outline: 3px solid var(--gold); outline-offset: 3px; }
.assessment-result {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--cream); color: var(--ink); border-radius: var(--radius);
  padding: 32px 30px 26px;
}
.result-count { margin: 0 0 6px; line-height: 1; }
.result-num { font-family: var(--sans); font-weight: 600; font-size: 4.5rem; letter-spacing: -0.03em; }
.result-of { font-size: 1.125rem; color: var(--ink-2); }
.result-msg { font-family: var(--serif); font-size: 1.4375rem; line-height: 1.3; margin-bottom: 14px; }
.has-yes .result-msg { color: var(--ink); }
.result-note { font-size: 1rem; color: var(--ink-2); }
.print-btn { display: block; margin: 14px auto 0; font-size: 1rem; }
.result-fine { font-size: 0.875rem; color: var(--ink-3); margin: 16px 0 0; line-height: 1.5; }

/* ---------- Statement ---------- */
.statement { padding-block: clamp(96px, 12vw, 168px); text-align: center; }
.statement-text {
  font-family: var(--serif); font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.1; letter-spacing: -0.02em;
  max-width: 15em; margin: 0 auto 1.25rem; text-wrap: balance;
}
.statement-sub { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--ink-2); max-width: 32em; margin: 0 auto 2.25rem; }
/* With a photo: the photo fills the right side and fades into cream behind the statement.
   On phones it sits above the text instead. */
.statement-photo { position: relative; isolation: isolate; overflow: hidden; text-align: left; }
.statement-media {
  position: absolute; top: 0; right: 0; z-index: -2;
  width: 65%; max-width: none; height: 100%; object-fit: cover; object-position: 0% 15%;
}
.statement-photo::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 35%; width: 24%; z-index: -1;
  background: linear-gradient(90deg, var(--cream), rgba(245, 241, 232, 0));
}
.statement-photo .statement-text { font-size: clamp(2.25rem, 4.2vw, 3.75rem); max-width: 9.5em; margin-left: 0; }
.statement-photo .statement-sub { max-width: 23em; margin-left: 0; text-wrap: pretty; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro p:last-child { color: var(--ink-2); }
.faq-intro a { text-underline-offset: 3px; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h3 {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); padding-bottom: 14px; border-bottom: 1.5px solid var(--gold-deep);
}
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 52px 22px 0;
  font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.4375rem); line-height: 1.3;
}
summary::-webkit-details-marker { display: none; }
summary::before, summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform 0.3s ease;
}
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0deg); }
summary:hover { color: var(--gold-text); }
.answer { padding: 0 52px 24px 0; color: var(--ink-2); }
.answer ol { list-style: decimal; padding-left: 1.3em; }
.answer-list { list-style: disc; padding-left: 1.3em; }
.answer li + li { margin-top: 6px; }
.answer > :last-child { margin-bottom: 0; }
/* LAUNCH MODE: anything still waiting on an answer is hidden from visitors.
   To see the yellow [CONFIRM] boxes again while editing, delete this one rule. */
.pending, .confirm { display: none !important; }
.confirm {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  background: #FFF0B8; color: #5A4300; border: 1.5px dashed #B8860B;
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 600;
}

/* ---------- Consultation form ---------- */
.split-form { align-items: start; }
.contact-line { margin-top: 1.5rem; color: var(--ink-2); }
.contact-line a { color: var(--ink); text-underline-offset: 3px; }
.consult-photo { aspect-ratio: 3 / 2; margin-top: 40px; }
.form-card { background: var(--cream-2); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.field { margin: 0 0 18px; border: 0; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 8px; padding: 0; }
.optional { font-weight: 400; color: var(--ink-3); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select {
  width: 100%; min-height: 56px; padding: 12px 16px;
  font: inherit; font-size: 1.125rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--cream-3); border-radius: 12px;
  transition: border-color 0.2s;
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%232A2018' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(165, 122, 51, 0.25); }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
/* ".field .choice" outranks ".field label", which would otherwise zero the padding */
.field .choice {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  min-height: 48px; padding: 8px 20px 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--cream); border: 1.5px solid var(--cream-3); font-weight: 500;
}
.choice input { accent-color: var(--gold-deep); width: 18px; height: 18px; margin: 0; flex: none; }
.field .choice:has(input:checked) { border-color: var(--gold-deep); background: #FBF8F1; }
.consult-form .btn { margin-top: 8px; }
.form-note { font-size: 0.9375rem; color: var(--ink-2); margin: 14px 0 0; text-align: center; }
.form-status { margin: 12px 0 0; font-weight: 600; text-align: center; }
.form-status:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.form-done { text-align: center; padding: 24px 0; }
.form-done h3 { font-size: 2rem; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--on-dark-2); padding: clamp(64px, 8vw, 104px) 0 40px; }
.footer-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line-dark);
}
.footer-logo { height: clamp(56px, 8vw, 96px); width: auto; }
.footer-tagline { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--on-dark); margin: 0; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px 96px; padding: 44px 0; }
.footer-head { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { text-decoration: none; color: var(--on-dark); }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { border-top: 1px solid var(--line-dark); padding-top: 28px; font-size: 0.875rem; line-height: 1.55; }
.footer-legal p { margin: 0 0 8px; max-width: 60em; }
.footer-legal a { color: var(--on-dark); text-underline-offset: 3px; }

/* ---------- Simple pages (privacy, 404) ---------- */
.page-brand { display: inline-block; margin-bottom: 56px; }
.page-brand img { height: 48px; width: auto; }
.page-title { font-size: clamp(2.5rem, 5vw, 3.75rem); margin-bottom: 0.4em; }
.policy { max-width: 760px; }
.policy h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin: 2em 0 0.5em; }
.policy ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.policy li + li { margin-top: 6px; }
.policy a { text-underline-offset: 3px; }
.policy .confirm { margin-bottom: 1em; }
.page-meta { color: var(--ink-2); font-size: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .assessment-grid { grid-template-columns: 1fr; }
  .assessment-result { position: static; max-width: 560px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .step:nth-child(even) { margin-top: 0; }
}
@media (max-width: 860px) {
  .split, .faq-layout, .stat-figure { grid-template-columns: 1fr; }
  .dot-meter { justify-self: start; max-width: 360px; }
  .faq-intro { position: static; }
  .factor-cols { grid-template-columns: 1fr; }
  .photo-frame { aspect-ratio: 4 / 3; }
  .hero-media { width: 100%; object-position: 58% 20%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(28, 20, 14, 0.55) 0%, rgba(28, 20, 14, 0) 16%),
      linear-gradient(0deg, rgba(28, 20, 14, 0.9) 0%, rgba(28, 20, 14, 0.72) 55%, rgba(28, 20, 14, 0.35) 100%);
  }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .hero-facts p { padding-right: 0; }
  .hero-facts span { display: none; }
  .statement-photo { padding-top: 0; }
  .statement-media { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; margin-bottom: 56px; object-position: 72% 40%; }
  .statement-photo::before { display: none; }
  /* keeps the form close to the heading on phones */
  .consult-photo { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  /* wheel becomes a two-column list on phones */
  .wheel { aspect-ratio: auto; width: 100%; }
  .wheel-ring { display: none; }
  .wheel-center { position: static; transform: none; width: 96px; margin: 0 0 20px; }
  .wheel-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .wheel-areas li { position: relative; left: auto; top: auto; width: auto; height: auto; transform: none; padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line); }
  .node { left: 0; top: 19px; width: 12px; height: 12px; box-shadow: none; }
  .area-label { position: static; transform: none; width: auto; text-align: left; font-size: 1rem; }
  .questions { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .factor-col-wide ul { columns: 1; }
  /* comparison table: row label on its own line, three answers beneath */
  .compare, .compare thead, .compare tbody { display: block; }
  .compare tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare thead td { display: none; }
  .compare th, .compare td { padding: 12px 6px; font-size: 0.9375rem; overflow-wrap: anywhere; }
  .compare thead th { font-size: 0.875rem; padding: 18px 6px 14px; }
  .compare thead th.nt { font-size: 1rem; white-space: nowrap; overflow-wrap: normal; }
  .compare tbody th { grid-column: 1 / -1; padding: 16px 0 4px; font-weight: 600; }
  .compare tbody td { padding-top: 6px; padding-bottom: 14px; }
  .hero-actions .btn { width: 100%; }
  .brand img { height: 34px; }
  .summary-pad, .answer { padding-right: 0; }
}

/* Browsers without CSS trig (older iPads) get the wheel as a simple list */
@supports not (left: calc(cos(0deg) * 1px)) {
  .wheel { aspect-ratio: auto; width: 100%; }
  .wheel-ring { display: none; }
  .wheel-center { position: static; transform: none; width: 96px; margin: 0 0 20px; }
  .wheel-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .wheel-areas li { position: relative; left: auto; top: auto; width: auto; height: auto; transform: none; padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line); }
  .node { left: 0; top: 19px; width: 12px; height: 12px; box-shadow: none; }
  .area-label { position: static; transform: none; width: auto; text-align: left; font-size: 1rem; }
}

/* ---------- Print: just the checklist ---------- */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .site-header, .hero, main > section:not(#assessment), .site-footer, .perspective, .assessment-result .btn, .print-btn, .skip-link { display: none !important; }
  .section-dark { background: #fff; color: #000; padding: 0; }
  .section-dark .lede, .eyebrow { color: #000; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .assessment-grid { display: block; }
  .questions { grid-template-columns: 1fr; }
  .q { background: #fff; border: 1px solid #999; color: #000; break-inside: avoid; }
  .q-box { border-color: #000; }
  .assessment-result { position: static; border: 1px solid #999; margin-top: 16px; }
}
