/* ============================================================
   NORLIGHT Study — site styles
   Built on the NORLIGHT Study design system (css/norlight-tokens.css).
   Class names are unchanged from the previous template so every .cfm
   view keeps working; only the visual language has been replaced.
   ============================================================ */

@import url("/css/norlight-tokens.css");

:root {
  --font-scale: 1;

  /* ---- Legacy aliases -------------------------------------------------
     Inline styles across the .cfm templates still reference these names.
     They are now thin aliases onto the design-system tokens so nothing
     falls back to the old purple/rose palette. ------------------------- */
  --cream: var(--nl-plum-050);
  --cream-light: #F9F8FB;
  --brown-dark: var(--nl-plum-900);
  --brown-medium: var(--nl-plum-700);
  --brown-light: var(--nl-plum-400);
  --olive: var(--nl-pink-500);
  --olive-dark: var(--nl-pink-600);
  --olive-light: var(--nl-pink-400);
  --rose: var(--nl-pink-500);
  --rose-light: var(--nl-pink-400);
  --rose-dark: var(--nl-pink-600);
  --text-dark: var(--nl-plum-700);
  --text-light: var(--nl-grey-500);
  --white: var(--nl-white);
  --shadow-soft: var(--shadow-sm);
  --shadow-medium: var(--shadow-md);
  --hex-stroke: rgba(49, 25, 75, .18);
  --hex-fill: rgba(255, 255, 255, .05);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--text-heading); line-height: var(--lh-heading); }
h1, h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-display);
  font-weight: 400;
}
h3, h4 { font-family: var(--font-sans); font-weight: var(--fw-bold); }

a { color: var(--text-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: color var(--dur) var(--ease-out); }
a:hover { color: var(--text-link-hover); }

/* height:auto keeps the intrinsic ratio when an <img> carries width/height
   attributes (they are there for layout stability, not for sizing) */
img { max-width: 100%; height: auto; display: block; }

[id] { scroll-margin-top: 96px; }

.nl-legal {
  font-family: var(--font-legal);
  font-size: var(--fs-legal);
  color: var(--text-muted);
  letter-spacing: .02em;
}
.text-color-secondary { color: var(--nl-pink-700); }

.skip-link {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--nl-plum-700);
  color: var(--nl-white);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); color: var(--nl-white); }

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[role="radio"]:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-xs);
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur) var(--ease-out);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px var(--gutter);
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo { flex-shrink: 0; text-decoration: none; }
.logo img { height: 38px; width: auto; }

.nav-primary { margin-left: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-sm);
  white-space: nowrap;
  transition: color var(--dur) var(--ease-out);
}
/* the font controls live in both nav groups so they survive the mobile
   collapse — only ever show one of them */
.nav-primary .font-controls { display: none; }
.nav-links a:hover { color: var(--nl-pink-600); }
.nav-links a.btn-rose,
.nav-links a.btn-rose:hover,
.mobile-nav-links a.btn-rose,
.mobile-nav-links a.btn-rose:hover { color: var(--nl-white); }

.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-primary + .nav-actions { margin-left: 0; }

.font-controls { display: inline-flex; gap: 6px; }
.font-control-btn {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--nl-white);
  color: var(--text-heading);
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.font-control-btn:hover { background: var(--nl-pink-500); border-color: var(--nl-pink-500); color: var(--nl-white); }

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.mobile-nav-toggle-line {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--nl-plum-700);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-line:first-child { transform: translateY(7.5px) rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-line:nth-child(2) { opacity: 0; }
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-line:last-child { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav-panel { display: none; padding: 0 var(--gutter) 16px; }
.mobile-nav-panel.open { display: block; }
.mobile-nav-card {
  background: var(--nl-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px;
}
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; }
.mobile-nav-links a {
  display: block;
  padding: 14px 12px;
  text-decoration: none;
  color: var(--text-heading);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
}
.mobile-nav-links a:hover { background: var(--nl-plum-050); }
.mobile-nav-links a.btn-rose { margin-top: 8px; text-align: center; }

/* ─── BUTTONS ─── */
.btn-rose,
.btn-olive,
.q-btn-next,
input.q-btn-next,
.q-btn-back,
.clinic-location-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  letter-spacing: .01em;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  min-height: var(--tap-min);
  padding: 14px 30px;
  font-size: var(--fs-body);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

/* primary */
.btn-rose, .btn-olive, .q-btn-next, input.q-btn-next {
  background: var(--nl-pink-500);
  color: var(--nl-white);
  box-shadow: var(--shadow-accent);
}
.btn-rose:hover, .btn-olive:hover, .q-btn-next:hover, input.q-btn-next:hover {
  background: var(--nl-pink-600);
  color: var(--nl-white);
}
.btn-rose:active, .btn-olive:active, .q-btn-next:active { transform: scale(.97); }

/* nav-scale primary */
.nav-links .btn-rose, .nav-actions .btn-rose { padding: 10px 20px; font-size: var(--fs-body-sm); min-height: 40px; }

/* large */
.hero-cta-desktop, .hero-cta-mobile, .cta .btn-rose, .cta .btn-olive { padding: 18px 40px; font-size: var(--fs-body-lg); }

/* on-dark (lime) — used on the plum hero band */
.btn-on-dark {
  background: var(--nl-lime-500);
  color: var(--nl-plum-900);
  box-shadow: none;
}
.btn-on-dark:hover { background: var(--nl-lime-300); color: var(--nl-plum-900); }

/* secondary (plum) */
.btn-secondary { background: var(--nl-plum-700); color: var(--nl-white); box-shadow: none; }
.btn-secondary:hover { background: var(--nl-plum-800); color: var(--nl-white); }

/* outline */
.btn-outline, .q-btn-back, .clinic-location-cta {
  background: transparent;
  color: var(--nl-plum-700);
  border-color: var(--nl-plum-700);
  box-shadow: none;
  padding: 10px 20px;
  font-size: var(--fs-body-sm);
  min-height: 40px;
}
.btn-outline:hover, .q-btn-back:hover, .clinic-location-cta:hover {
  background: var(--nl-plum-700);
  color: var(--nl-white);
  border-color: var(--nl-plum-700);
}

/* ─── SPARK RULE (logo starburst trail as a divider) ─── */
.spark-rule {
  height: 5px;
  width: 120px;
  border-radius: var(--radius-pill);
  background: var(--grad-spark);
}

/* ─── ICON DISC ─── */
.icon-disc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--nl-pink-500);
  color: var(--nl-white);
}
.icon-disc svg { stroke: currentColor; }
.icon-disc-plum { background: var(--nl-plum-700); color: var(--nl-white); }
.icon-disc-soft { background: var(--nl-pink-050); color: var(--nl-pink-700); }
.icon-disc-lime { background: var(--nl-lime-500); color: var(--nl-plum-900); }
.icon-disc-lg { width: 64px; height: 64px; }
.icon-disc-sm { width: 36px; height: 36px; }

/* ─── BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  background: var(--nl-pink-050);
  color: var(--nl-pink-700);
}
.badge-on-dark { background: rgba(255, 255, 255, .14); color: var(--nl-lime-500); }

/* ─── HERO ─── */
.hero { background: var(--nl-hero); position: relative; overflow: hidden; padding-top: 72px; }
.hero-hex-bg { display: none; }
.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 72px var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: end;
}
.hero-content { padding-bottom: 72px; }
.hero-content h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: var(--fs-display-lg);
  line-height: 1.14;
  letter-spacing: var(--ls-display);
  color: var(--nl-lime-500);
}
.hero-content p {
  font-size: var(--fs-body-lg);
  max-width: 46ch;
  color: rgba(255, 255, 255, .92);
  margin: 18px 0 0;
}
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-cta-note { font-size: var(--fs-body); color: rgba(255, 255, 255, .8); margin: 18px 0 0; }
.hero-trust-points { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
.hero-trust-point { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-body-sm); color: rgba(255, 255, 255, .8); }
.hero-trust-dot { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--nl-lime-500); }
.hero-illustration { align-self: end; display: flex; align-items: flex-end; justify-content: flex-end; }
/* the illustration is allowed to spill left into the column gap so it sits
   higher in the band without narrowing the headline column */
.hero-illustration img {
  width: 112%;
  height: auto;
  max-width: 520px;
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.hero-cta-mobile { display: none; }
.hero-rule { display: none; }
.hero-cta-aside { font-size: var(--fs-body-sm); color: var(--text-muted); }

/* ── Hero variation 1c — pink wave field (index2.cfm) ──────────────────
   background-pink-waves.jpg is the design system's artwork, resampled to
   1920px @ q70 for the web (master kept at _assets/background.jpg). The
   flat colour is the artwork's own edge tone so the band still reads
   correctly while the image loads. */
.hero-waves {
  /* the band is wide and short, so `cover` crops vertically — anchor at 30%
     to keep the artwork's light upper field behind the headline rather than
     the saturated middle */
  background: #FADCEF url("/img/background-pink-waves.jpg") center 30% / cover no-repeat;
}
.hero-waves .hero-inner { padding: 64px var(--gutter) 0; gap: 40px; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.hero-waves .hero-content h1 { color: var(--nl-plum-700); margin-top: 20px; }
.hero-waves .hero-content p { color: var(--nl-plum-800); font-weight: var(--fw-semibold); }
.hero-waves .hero-cta-note { color: var(--nl-plum-700); font-size: var(--fs-body-sm); font-weight: var(--fw-regular); }
.hero-waves .hero-rule { display: block; width: 200px; height: 6px; margin: 24px 0 0; }
.hero-waves .hero-illustration { justify-content: flex-end; }
.hero-waves .hero-illustration img { width: 100%; max-width: 480px; border-radius: 0; }
.badge-solid { background: var(--nl-pink-500); color: var(--nl-white); }

/* ── Hero variation 1d — quiet white, wash panel right (index3.cfm) ── */
.hero-quiet { background: var(--nl-white); }
.hero-quiet .hero-inner {
  padding: 80px var(--gutter);
  gap: 56px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}
.hero-quiet .hero-content { padding-bottom: 0; }
.hero-quiet .hero-eyebrow { color: var(--nl-pink-500); margin-bottom: var(--sp-4); }
.hero-quiet .hero-content h1 { color: var(--nl-plum-700); }
.hero-quiet .hero-content p { color: var(--nl-plum-800); font-weight: var(--fw-semibold); max-width: 44ch; margin: 10px 0 28px; }
.hero-quiet .hero-rule { display: block; width: 240px; height: 6px; margin: 26px 0 0; }
.hero-quiet .hero-cta-group { align-items: center; margin-top: 0; }
.hero-quiet .hero-illustration { align-self: center; }
.hero-wash-panel {
  background: var(--grad-pink-wash);
  border-radius: var(--radius-xl);
  padding: 36px 36px 0;
  overflow: hidden;
}
.hero-wash-panel img { width: 100%; max-width: none; border-radius: 0; }

/* ─── SECTIONS ─── */
.section, .section-white, .section-cream, .qualify, .expect, .clinic, .faq, .cta {
  position: relative;
  padding: var(--section-y) var(--gutter);
}
.section-white { background: var(--surface-page); color: var(--text-body); }
.section-cream { background: var(--surface-sunken); }
.deferred-section { content-visibility: auto; contain-intrinsic-size: 1px 900px; }
.deferred-section.is-rendered { content-visibility: visible; contain-intrinsic-size: auto; }

.about-section, .qualify-inner, .expect-inner, .clinic-inner, .faq-inner, .cta-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0;
}

/* section that curves over the one above it */
.section-curve-top { border-radius: var(--radius-blob); margin-top: -40px; }
.section-wash { background: var(--grad-pink-wash); color: var(--text-body); }
.section-plum { background: var(--grad-plum); color: var(--nl-white); }
.section-sunken { background: var(--surface-sunken); color: var(--text-body); }
.section-pink { background: var(--nl-pink-500); color: var(--nl-white); }

/* ─── SECTION HEADINGS ─── */
.section-tag {
  display: block;
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--nl-pink-600);
  margin-bottom: var(--sp-3);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--fs-display-md);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--text-heading);
}
.section-title-lg { font-size: var(--fs-display-lg); }
/* spark rule under every section title */
.section-title::after {
  content: "";
  display: block;
  width: 120px; height: 5px;
  margin-top: var(--sp-4);
  border-radius: var(--radius-pill);
  background: var(--grad-spark);
}
.text-center .section-title::after,
.qualify-header .section-title::after,
.expect-header .section-title::after,
.clinic-header .section-title::after,
.faq-header .section-title::after,
.cta-inner .section-title::after { margin-left: auto; margin-right: auto; }

.section-subtitle {
  max-width: 62ch;
  margin-top: var(--sp-4);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--text-body);
}

/* on-dark heading treatment */
.section-plum .section-title, .cta .section-title { color: var(--nl-lime-500); }
.section-plum .section-tag { color: var(--nl-pink-400); }
.section-plum .section-subtitle { color: rgba(255, 255, 255, .86); }

/* ─── ABOUT MDD / ABOUT THIS STUDY ─── */
.about-header { margin-bottom: var(--sp-7); }
/* body copy in a full-bleed section runs the container width so it lines up
   with the symptom grid and the divider rules below it */
.about-section > .section-subtitle { max-width: none; }
.about-img-mobile { display: none; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: center;
}
.about-img-desktop { align-self: stretch; justify-self: end; }
.about-img-desktop img {
  width: 100%;
  max-width: 560px;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* symptom list — icon disc + copy */
.symptom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 40px;
  margin-top: var(--sp-8);
}
.symptom-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.symptom-item h4 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
  color: var(--text-heading);
  margin-bottom: var(--sp-1);
}
.symptom-item p { font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--text-body); }

/* the two inadequate-response definitions */
.response-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); margin-top: var(--sp-6); }
.card-sunken {
  background: var(--surface-sunken);
  color: var(--text-body);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-sunken h4 { font-size: var(--fs-body-lg); color: var(--text-heading); margin-bottom: var(--sp-2); }
.card-sunken p { font-size: var(--fs-body-sm); line-height: 1.6; }
.lead-rule {
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  color: var(--text-heading);
  border-top: 1px solid var(--nl-plum-200);
  padding-top: var(--sp-6);
  margin-top: var(--sp-6);
}

/* ─── QUALIFY / QUESTIONNAIRE ─── */
.qualify { background: var(--surface-sunken); }
.qualify-inner { max-width: var(--container-narrow); }
.qualify-header { text-align: center; margin-bottom: var(--sp-7); }
.qualify-header .section-subtitle { margin-left: auto; margin-right: auto; }

/* the three "how it works" ticks above the form */
.qualify-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin: var(--sp-2) 0 var(--sp-8); text-align: left; }
.qualify-step { display: flex; align-items: flex-start; gap: var(--sp-3); }
.qualify-step p { font-size: var(--fs-body-sm); line-height: 1.5; color: var(--text-body); margin-top: 6px; }

.questionnaire {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
}
.questionnaire h3 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h4);
  line-height: var(--lh-tight);
  color: var(--text-heading);
  margin-bottom: var(--sp-4);
}
.questionnaire > form { margin: 0; }

/* progress bar */
.q-progress { display: flex; flex-direction: column; margin-bottom: 44px; }
.q-progress-text {
  display: flex;
  justify-content: flex-end;
  order: -1;
  align-self: stretch;
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--nl-pink-700);
  margin-bottom: var(--sp-2);
}
.q-progress-bar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--nl-plum-050);
  overflow: hidden;
}
.q-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--grad-spark);
  transition: width var(--dur-slow) var(--ease-out);
}

.q-step { display: none; }
.q-step.active { display: block; }
.q-step + .q-step.active { margin-top: var(--sp-7); }
.q-step > p { font-size: var(--fs-body-sm); color: var(--text-muted); margin-bottom: var(--sp-4); }

/* choice options */
.q-options { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.q-options-inline, .q-options-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.q-option {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  cursor: pointer;
  min-height: var(--tap-min);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--nl-white);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
  transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.q-option:hover { background: var(--nl-plum-050); }
.q-option.selected { background: var(--nl-pink-050); box-shadow: inset 0 0 0 2px var(--nl-pink-500); }
.q-option span { font-size: var(--fs-body); line-height: var(--lh-tight); color: var(--text-body); }
.q-option.selected span { font-weight: var(--fw-semibold); }

.q-option-radio, .q-option-check {
  width: 22px; height: 22px;
  flex: 0 0 auto;
  margin-top: 1px;
  background: var(--nl-white);
  box-shadow: inset 0 0 0 2px var(--nl-plum-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.q-option-radio { border-radius: var(--radius-pill); }
.q-option-check { border-radius: var(--radius-xs); }
.q-option.selected .q-option-radio,
.q-option.selected .q-option-check { background: var(--nl-pink-500); box-shadow: none; }
.q-option.selected .q-option-radio::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: var(--radius-pill);
  background: var(--nl-white);
}
.q-option.selected .q-option-check::after {
  content: "";
  width: 6px; height: 11px;
  margin-top: -2px;
  border-right: 2.5px solid var(--nl-white);
  border-bottom: 2.5px solid var(--nl-white);
  transform: rotate(45deg);
}
.q-option-group-label {
  grid-column: 1 / -1;
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-sm);
  color: var(--text-heading);
  padding-top: var(--sp-4);
}
.q-option-group-label:first-child { padding-top: 0; }
.q-option-compact { padding: 12px 16px; }

/* text fields */
.q-input,
input[type="text"].q-input,
input[type="tel"].q-input,
select.q-input,
.select-box {
  width: 100%;
  min-height: var(--field-height);
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text-body);
  background: var(--nl-white);
  border-radius: var(--radius-sm) !important;
  border: none !important;
  box-shadow: var(--shadow-inset-field);
  outline: none;
  transition: box-shadow var(--dur) var(--ease-out);
}
.q-input:focus, .select-box:focus { box-shadow: inset 0 0 0 2px var(--nl-pink-500), var(--ring); }
.q-input::placeholder { color: var(--text-muted); }
select.q-input, .select-box { padding-right: 40px; }

/* nav row */
.q-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-top: var(--sp-7); }

/* result icons on the questionnaire card */
.q-result { display: none; }
.q-result.active { display: block; }
.q-result-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-pill);
  background: var(--nl-pink-500);
  color: var(--nl-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
}
.q-result-icon.icon-disc-plum { background: var(--nl-plum-700); }
.q-result-icon.icon-disc-soft { background: var(--nl-pink-050); color: var(--nl-pink-700); }
.q-result-icon svg { width: 30px; height: 30px; stroke: currentColor; }

/* consent */
.q-consent-label {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  background: var(--nl-plum-050);
}
.q-consent-checkbox { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--nl-pink-500); flex: none; }
.q-consent-text { font-size: var(--fs-body-sm); line-height: 1.6; color: var(--text-body); }
.q-consent-title {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: var(--fs-body-sm);
  color: var(--text-heading);
  margin-bottom: var(--sp-3);
}

/* contact form */
.q-form { margin-top: var(--sp-4); }
.q-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.q-form-field, .q-form-group { display: block; }
.q-form-field label, .q-form-group label {
  display: block;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-sm);
  color: var(--text-heading);
  margin-bottom: var(--sp-2);
}
.q-required { color: var(--nl-pink-600); }
.q-form-radios { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* legacy DB-questionnaire type styles (were pinned to the old palette) */
.question-text, .question-text-small {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  margin-bottom: var(--sp-4);
}
.question-text { font-size: var(--fs-h4); }
.question-text-small { font-size: var(--fs-body-sm); }
.answer-text {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  color: var(--text-body);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.number-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nl-pink-500);
  color: var(--nl-white);
  border-radius: var(--radius-pill);
  width: 2em; height: 2em;
  font-family: var(--font-display);
  font-weight: 400;
}
.submit-button { background: var(--nl-pink-500); color: var(--nl-white); font-weight: var(--fw-bold); }

/* ─── ABOUT: OPTIONS LIST ─── */
.about-options {
  list-style: decimal;
  max-width: 62ch;
  margin: var(--sp-3) 0 0 var(--sp-6);
  padding-left: 1.6em;
  font-size: var(--fs-body-sm);
  line-height: 1.6;
  color: var(--text-body);
}
.about-options li { margin-bottom: var(--sp-2); padding-left: 6px; }
.about-options li::marker { font-weight: var(--fw-bold); color: var(--nl-pink-500); }

/* ─── NEXT STEPS ─── */
.next-steps-options {
  list-style: decimal;
  text-align: left;
  max-width: 520px;
  margin: 0 auto 36px;
  padding-left: 1.4em;
  font-size: var(--fs-body-sm);
  color: var(--text-body);
  line-height: 1.6;
}
.next-steps-options li { margin-bottom: var(--sp-2); padding-left: 4px; }
.next-steps-options li::marker { font-weight: var(--fw-bold); color: var(--nl-pink-500); }
.expect { background: var(--surface-page); }
.expect-header { text-align: center; margin-bottom: var(--sp-8); }
.expect-header .section-subtitle { margin-left: auto; margin-right: auto; }
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 12%;
}
.timeline::before, .timeline-item::after { content: none; }
.timeline-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.timeline-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--nl-pink-500);
  color: var(--nl-white);
}
.timeline-dot svg { stroke: currentColor; }
.timeline-dot span { font-family: var(--font-display); font-size: 20px; line-height: 1; }
.timeline-card { background: transparent; padding: 0; flex: 1; min-width: 0; }
.timeline-item .timeline-card > p:first-child { margin-top: 12px; }
.timeline-card h4 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h4);
  line-height: var(--lh-tight);
  color: var(--text-heading);
}
.timeline-card p { font-size: var(--fs-body-sm); margin-top: var(--sp-2); color: var(--text-body); }
.timeline-options {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  max-width: 1000px;
  margin: var(--sp-7) auto 0;
  padding: 0;
}
.timeline-options li {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  background: var(--surface-card);
  border: 1px solid var(--nl-plum-050);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-body-sm);
  color: var(--text-body);
  line-height: 1.5;
}
.timeline-option-label {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--nl-pink-500);
  text-transform: uppercase;
}

/* ─── FORM "C" STUDY CENTER INFO ─── */
.site-lead {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-bold);
  line-height: 1.5;
  color: var(--nl-plum-700);
  padding: 16px 20px;
  margin-bottom: 24px;
  border-left: 4px solid var(--nl-pink-500);
  background: var(--nl-plum-050);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.site-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.site-card {
  background: var(--surface-card);
  border: 1px solid var(--nl-plum-050);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-5) var(--sp-6);
  color: var(--text-body);
}
.site-card-name { font-weight: var(--fw-bold); font-size: var(--fs-body-lg); color: var(--text-heading); }
.site-card-investigator { font-size: var(--fs-body-sm); color: var(--text-muted); margin-top: 2px; }
.site-card-row { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-6); margin-top: var(--sp-3); }
.site-card-address { font-style: normal; line-height: 1.55; }
.site-card-map { white-space: nowrap; }
.site-card-distance { text-align: right; flex: 0 0 auto; }
.site-card-distance-label { display: block; font-size: var(--fs-body-sm); color: var(--text-muted); }
.site-card-distance-value { display: block; font-family: var(--font-display); font-size: 22px; color: var(--nl-pink-500); }
.site-card-phone { margin-top: var(--sp-3); }
.site-card-email { margin-top: var(--sp-1); word-break: break-word; }
.site-card a { color: var(--nl-plum-700); text-decoration: underline; }
.site-card a:hover { color: var(--nl-pink-500); }
@media (max-width: 640px) {
  .site-card-row { flex-direction: column; gap: var(--sp-2); }
  .site-card-distance { text-align: left; }
}

/* ─── STUDY CENTERS ─── */
.clinic { background: var(--grad-plum); color: var(--nl-white); border-radius: var(--radius-blob); margin-top: -40px; }
.clinic-header { text-align: center; margin-bottom: var(--sp-8); }
.clinic-header .section-title { color: var(--nl-lime-500); }
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  max-width: 1000px;
  margin: 0 auto;
}
.clinic-location-card {
  background: var(--surface-card);
  color: var(--text-body);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.clinic-location-map { display: none; }
.clinic-location-info { display: flex; flex-direction: column; flex: 1; }
.clinic-location-info h4 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
  color: var(--text-heading);
  margin-bottom: var(--sp-1);
}
.clinic-location-info p { font-size: var(--fs-body-sm); color: var(--text-muted); margin-bottom: var(--sp-2); }
.clinic-location-info .clinic-investigator { color: var(--text-body); font-weight: var(--fw-medium); }
.clinic-location-info .clinic-address { font-style: normal; font-size: var(--fs-body-sm); color: var(--text-muted); line-height: 1.5; margin-bottom: var(--sp-2); }
.clinic-location-info .clinic-phone,
.clinic-location-info .clinic-email { color: var(--text-body); margin-bottom: var(--sp-2); word-break: break-word; }
.clinic-location-info .clinic-map-link { white-space: nowrap; }
.clinic-location-info a { color: var(--nl-plum-700); text-decoration: underline; }
.clinic-location-info a:hover { color: var(--nl-pink-500); }
.clinic-location-card[hidden] { display: none; }
.clinic-filter {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  max-width: 1000px; margin: 0 auto var(--sp-8);
}
.clinic-filter label { font-size: var(--fs-body-sm); font-weight: var(--fw-medium); color: var(--nl-white); }
.clinic-filter .select-box { width: auto; min-width: 220px; }
.clinic-empty, .clinic-no-match { text-align: center; color: var(--nl-white); }
.clinic-location-info .btn-olive,
.clinic-location-info .btn-rose {
  margin-top: auto;
  align-self: flex-start;
  background: transparent;
  color: var(--nl-plum-700);
  border-color: var(--nl-plum-700);
  box-shadow: none;
  padding: 10px 20px;
  font-size: var(--fs-body-sm);
  min-height: 40px;
}
.clinic-location-info .btn-olive:hover,
.clinic-location-info .btn-rose:hover { background: var(--nl-plum-700); color: var(--nl-white); }

/* ─── FAQ ─── */
.faq { background: var(--surface-page); }
.faq-inner { max-width: var(--container-narrow); }
.faq-header { text-align: center; margin-bottom: var(--sp-8); }
.faq-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  background: var(--nl-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
  padding: 20px 24px;
  border: none;
  background: transparent;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
  color: var(--text-heading);
  cursor: pointer;
}
.faq-icon {
  margin-left: auto;
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nl-pink-500);
  transition: transform var(--dur) var(--ease-out);
}
.faq-icon svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer[hidden] { display: none; }
.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: var(--fs-body-sm);
  line-height: 1.65;
  color: var(--text-body);
}

/* ─── CTA BAND ─── */
.cta {
  background: var(--nl-pink-500);
  color: var(--nl-white);
  border-radius: var(--radius-blob);
  margin-top: -40px;
}
.cta-hex { display: none; }
.cta-inner { max-width: 640px; text-align: center; }
.cta .section-tag { color: rgba(255, 255, 255, .85); }
.cta .section-title { color: var(--nl-white); margin-bottom: var(--sp-7); }
.cta .section-title::after { display: none; }
.cta .section-subtitle { color: rgba(255, 255, 255, .9); margin-left: auto; margin-right: auto; }
.cta .btn-rose, .cta .btn-olive {
  background: var(--nl-plum-700);
  color: var(--nl-white);
  box-shadow: none;
}
.cta .btn-rose:hover, .cta .btn-olive:hover { background: var(--nl-plum-800); }

/* ─── FOOTER ─── */
.footer { background: var(--nl-plum-900); padding: 36px var(--gutter); }
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.footer-logo img { height: 32px; width: auto; }
.footer p { font-size: var(--fs-body-sm); color: rgba(255, 255, 255, .86); margin: 0; }
.footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.footer a:hover { color: var(--nl-lime-500); text-decoration: underline; }
.footer p.footer-jobcode {
  margin-left: auto;
  font-family: var(--font-legal);
  font-size: var(--fs-legal);
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .5);
}

/* ─── RESULT PAGES (prequalified / not qualified / no location) ─── */
.result-panel { background: var(--nl-plum-050); }
.result-card { max-width: 760px; margin: 0 auto; }
/* 1f / 1g: the message sits directly on the sunken panel, no white card */
.questionnaire.result-plain { background: transparent; box-shadow: none; border-radius: 0; }
.result-title::after { display: none; }
.result-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: var(--fs-display-sm);
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--nl-plum-700);
  margin-top: var(--sp-6);
}

/* ─── CHOOSE-LOCATION CARDS ─── */
.location-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-6); }
.location-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 26px;
}
.location-card-name { font-weight: var(--fw-bold); color: var(--text-heading); }
.location-card-address, .location-card-distance { font-size: var(--fs-body-sm); color: var(--text-muted); }
.location-card-map { display: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .symptom-grid { grid-template-columns: 1fr; }
  .response-grid { grid-template-columns: 1fr; }
  .timeline { max-width: 720px; padding-left: 0; }
  .clinic-grid { grid-template-columns: repeat(2, 1fr); }
  .qualify-steps { grid-template-columns: 1fr; gap: var(--sp-4); }
}

@media (max-width: 960px) {
  /* mockup 1b stacking order: headline, illustration, lede, CTA, cost note.
     display:contents lifts the hero copy into the flex flow so `order` works. */
  .hero { padding-top: 64px; }
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 36px 20px 28px;
    text-align: left;
  }
  .hero-content { display: contents; }
  .hero-content h1,
  .hero-content p,
  .hero-cta-mobile { align-self: stretch; }
  .hero-badge, .hero-eyebrow { order: 0; align-self: flex-start; margin-bottom: 16px; }
  .hero-content h1 { order: 1; font-size: 32px; }
  .hero-rule { order: 1; align-self: flex-start; }
  .hero-illustration { order: 2; align-self: center; margin: 20px 0 0; }
  .hero-illustration img { width: 82%; max-width: 300px; margin: 0 auto; border-radius: var(--radius-lg); }
  .hero-content p:not(.hero-cta-note) { order: 3; font-size: var(--fs-body-sm); margin-top: 18px; }
  .hero-cta-group { display: none; }
  .hero-cta-desktop { display: none; }
  .hero-cta-mobile { display: inline-flex; order: 4; width: 100%; margin-top: 22px; }
  .hero-cta-note { order: 5; text-align: center; font-size: var(--fs-caption); margin-top: 14px; }
  .hero-cta-aside { display: none; }

  .hero-waves .hero-inner, .hero-quiet .hero-inner { gap: 0; padding: 36px 20px 28px; align-items: flex-start; }
  .hero-waves .hero-content h1 { margin-top: 0; }
  .hero-waves .hero-rule, .hero-quiet .hero-rule { width: 160px; margin: 18px 0 0; }
  .hero-waves .hero-illustration { justify-content: center; }
  .hero-waves .hero-illustration img { width: 82%; max-width: 300px; border-radius: var(--radius-lg); }
  .hero-quiet .hero-content p { margin: 18px 0 0; }
  .hero-wash-panel { padding: 24px 24px 0; border-radius: var(--radius-lg); }
  .hero-wash-panel img { width: 100%; max-width: 260px; }
  .about-grid { grid-template-columns: 1fr !important; gap: var(--sp-8) !important; }
  .about-img-desktop { display: none; }
  .about-img-mobile { display: block; margin: var(--sp-6) 0; }
  .about-img-mobile img { width: 82%; max-width: 300px; height: auto; margin: 0 auto; border-radius: var(--radius-lg); }

  /* centred section headings read better in a single narrow column; body copy
     stays left-aligned for readability */
  .about-header { text-align: center; }
  .about-header .section-title::after { margin-left: auto; margin-right: auto; }
  /* a percentage-based blob is enormous on a tall narrow section and crowds the
     heading — pin the curve to a fixed depth on small screens */
  .section-curve-top, .clinic, .cta { border-radius: 50% 50% 0 0 / 56px 56px 0 0; }
  .questionnaire { padding: 28px 20px; }
  .q-nav { flex-direction: column-reverse; align-items: stretch; }
  .q-nav > div:empty { display: none; }
  .q-btn-next, input.q-btn-next, .q-btn-back { width: 100%; }
  .q-form-row { grid-template-columns: 1fr; }
  .footer-jobcode { margin-left: 0; }
}

@media (max-width: 1120px) {
  .nav-links { gap: 18px; }
  .nav-inner { gap: 18px; }
}

@media (max-width: 1080px) {
  .nav-inner { min-height: 64px; gap: 12px; }
  .nav-primary { display: none; }
  .nav-actions, .nav-primary + .nav-actions { margin-left: auto; }
  .mobile-nav-toggle { display: inline-flex; }
  .logo img { height: 30px; }
}

@media (max-width: 933px) {
  .hero { padding-top: 56px; }
}

@media (max-width: 640px) {
  .timeline-options { grid-template-columns: 1fr; }
  .clinic-grid { grid-template-columns: 1fr; }
  .clinic-filter { flex-direction: column; align-items: stretch; }
  .clinic-filter .select-box { width: 100%; }
  .location-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ─── ANIMATIONS ─── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Questionnaire: verification (captcha) card ---- */
.q-captcha-card {
  margin-top: var(--sp-4);
  padding: var(--sp-5);
  background: var(--nl-plum-050);
  border: 1px solid var(--nl-plum-100, rgba(49, 25, 75, 0.12));
  border-radius: var(--radius-lg, 16px);
  text-align: left;
}
.q-captcha-row { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-5); align-items: flex-end; }
.q-captcha-media { flex: 0 0 auto; }
.q-captcha-img { display: block; border-radius: var(--radius-sm, 8px); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.q-captcha-field { flex: 1 1 220px; min-width: 0; }
.q-captcha-field .q-input, .q-captcha-alt .q-input { width: 100%; max-width: 260px; }
.q-captcha-label {
  display: block; text-align: left;
  font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); color: var(--text-heading);
  margin-bottom: var(--sp-2);
}
.q-captcha-toggle {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-4); padding: 0;
  background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: var(--fs-body-sm); font-weight: var(--fw-semibold);
  color: var(--nl-plum-700); text-decoration: underline; text-underline-offset: 3px;
}
.q-captcha-toggle:hover { color: var(--nl-pink-500); }
.q-captcha-toggle[aria-expanded="true"] .q-captcha-toggle-icon { color: var(--nl-pink-500); }
.q-captcha-toggle-icon { font-size: 1.05em; line-height: 1; }
.q-captcha-alt { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px dashed rgba(49, 25, 75, 0.2); }
.q-captcha-hint { margin: var(--sp-2) 0 0; font-size: var(--fs-body-xs, 0.8rem); color: var(--text-muted); line-height: 1.5; }
@media (max-width: 520px) { .q-captcha-row { align-items: stretch; } .q-captcha-field .q-input, .q-captcha-alt .q-input { max-width: none; } }
