/* PatternShift Partners — site styles
   Brand palette: Deep Teal #0D3B4E · Teal #28748A · Gold #C9A96A · Sand #EDE6D9 */

:root {
  --deep: #0D3B4E;
  --deep-2: #0A2F3F;
  --teal: #28748A;
  --teal-ink: #1F5F72;       /* teal dark enough for small text on light grounds */
  --gold: #C9A96A;
  --gold-ink: #7A5C24;       /* gold dark enough for text on light grounds */
  --gold-ring: #A8843F;
  --sand: #EDE6D9;
  --sand-2: #F7F2E9;
  --ivory: #FBF9F5;
  --white: #FFFFFF;
  --ink: #1C2B33;
  --ink-2: #3A4A52;
  --muted: #5B6B72;
  --line: #E6DFD1;
  --line-2: #EFEAE0;
  --line-strong: #C9BFAB;
  --on-dark: #D5E2E7;
  --error: #9B2C1F;

  /* Theme roles. Light values here; dark values below. */
  color-scheme: light;
  --bg: var(--ivory);
  --surface: var(--white);
  --surface-2: var(--sand-2);
  --band: var(--sand);
  --band-dark: var(--deep);
  --heading: var(--deep);
  --gold-text: #8A6A2E;
  --line-choice: #D9CFBD;
  --choice-checked: #E8F1F3;
  --btn-bg: var(--deep);
  --btn-bg-hover: var(--teal);
  --error-bg: #FBEDEA;
  --error-line: #E7B9AF;
  --watermark-opacity: .07;
  --logo-filter: none;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --caps: Montserrat, "Segoe UI", sans-serif;

  --radius: 2px;
  --shadow: 0 30px 60px -30px rgba(13, 59, 78, 0.35);
}

/* Dark theme: follows the system setting unless the toggle chose light, or forced by the toggle.
   Screen only, so printed results stay light. The two blocks must stay identical. */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0C1A21;
    --surface: #13252E;
    --surface-2: #182C36;
    --band: #102029;
    --band-dark: #0A2F3F;
    --heading: #EDE6D9;
    --ink: #E1E7EA;
    --ink-2: #BFCBD0;
    --muted: #93A5AD;
    --teal-ink: #7CC0D3;
    --gold-ink: #D7BC85;
    --gold-text: #D7BC85;
    --line: #253A44;
    --line-2: #1E323C;
    --line-strong: #3B525D;
    --line-choice: #344A55;
    --choice-checked: #173B47;
    --btn-bg: var(--teal);
    --btn-bg-hover: #318BA4;
    --error: #F0A497;
    --error-bg: #3A1D19;
    --error-line: #6E3329;
    --watermark-opacity: .05;
    --logo-filter: brightness(1.9) saturate(.85);
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  }
}
@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0C1A21;
    --surface: #13252E;
    --surface-2: #182C36;
    --band: #102029;
    --band-dark: #0A2F3F;
    --heading: #EDE6D9;
    --ink: #E1E7EA;
    --ink-2: #BFCBD0;
    --muted: #93A5AD;
    --teal-ink: #7CC0D3;
    --gold-ink: #D7BC85;
    --gold-text: #D7BC85;
    --line: #253A44;
    --line-2: #1E323C;
    --line-strong: #3B525D;
    --line-choice: #344A55;
    --choice-checked: #173B47;
    --btn-bg: var(--teal);
    --btn-bg-hover: #318BA4;
    --error: #F0A497;
    --error-bg: #3A1D19;
    --error-line: #6E3329;
    --watermark-opacity: .05;
    --logo-filter: brightness(1.9) saturate(.85);
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (max-width: 760px) { html { scroll-padding-top: 112px; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* Brand mark as a fixed watermark behind every page. Solid bands (dark, sand) cover it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("../img/ps-mark-large.png") no-repeat center / min(70vw, 760px) auto;
  opacity: var(--watermark-opacity);
}

img, svg { display: block; max-width: 100%; }
p { margin: 0; }
a { color: var(--heading); }
a:hover { color: var(--teal); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
@media (max-width: 600px) { .container { padding-inline: 16px; } }

.narrow { max-width: 720px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--deep); color: var(--white); padding: 10px 16px; }
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Type ---------- */

.display {
  margin: 0; font-family: var(--serif); font-weight: 600; color: var(--heading);
  font-size: clamp(42px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance;
}
.h1 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--heading); font-size: clamp(32px, 3.8vw, 48px); line-height: 1.1; text-wrap: balance; }
.h2 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--heading); font-size: clamp(32px, 3.6vw, 48px); line-height: 1.12; text-wrap: balance; }
.h3 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--heading); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }
.h4 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--heading); font-size: 22px; line-height: 1.25; }
.h2-light, .h-light { color: var(--white); }

.lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.lead-on-dark { color: var(--on-dark); }

.eyebrow {
  margin: 0; font-family: var(--caps); font-weight: 600; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-ink);
}
.eyebrow-ink { color: var(--heading); font-size: 12px; letter-spacing: 0.12em; }
.eyebrow-muted { color: var(--muted); font-size: 12px; }
.eyebrow-deep { color: var(--teal-ink); font-size: 12px; }
.eyebrow-gold { color: var(--gold-ink); font-size: 12px; }

.gold-text { color: var(--gold-text); }
.gold-on-dark { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 15px; }

.wordmark { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--heading); }
.wordmark-light { color: var(--white); font-size: 20px; }

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

.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-md { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.stack-xl { display: flex; flex-direction: column; gap: 56px; }

.section { padding-block: 104px; }
@media (max-width: 700px) { .section { padding-block: 64px; } }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }

.band-dark { background: var(--band-dark); color: var(--white); }
.band-sand { background: var(--band); }

.button-row { display: flex; gap: 16px; flex-wrap: wrap; }
.button-row-center { justify-content: center; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: var(--radius); border: 1.5px solid transparent;
  font-family: var(--caps); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--btn-bg); color: var(--white); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--white); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-outline { background: transparent; color: var(--heading); border-color: var(--heading); }
.btn-outline:hover { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--deep); }
.btn-gold:hover { background: #D7BC85; color: var(--deep); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--gold); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); color: var(--white); }

.btn-link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px;
  font-weight: 600; font-size: 16px; text-decoration: none; color: var(--heading);
}
button.btn-link { background: none; border: 0; font-family: inherit; cursor: pointer; padding-inline: 0; text-decoration: underline; }

/* ---------- Site header & footer ---------- */

/* Pinned to the top while scrolling. html's scroll-padding-top keeps anchor targets clear of it. */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: var(--bg); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; filter: var(--logo-filter); }
.header-end { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.theme-toggle {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--line-strong); border-radius: 50%;
  background: transparent; color: var(--heading); cursor: pointer; transition: border-color .15s, color .15s;
}
.theme-toggle:hover { border-color: var(--teal); color: var(--teal); }
.theme-toggle svg { width: 18px; height: 18px; }
/* Show the icon for the theme a click switches to: a moon in light, a sun in dark. */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.nav-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 16px; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--teal); }
/* Phones: two compact rows (logo and theme toggle, then links) so the pinned header stays short. */
@media (max-width: 760px) {
  .nav { gap: 8px 12px; padding-block: 10px; }
  .header-end { display: contents; }
  .brand { flex: 1; gap: 10px; }
  .brand img { height: 32px; }
  .brand .wordmark { font-size: 19px; }
  .nav-links { order: 3; flex-basis: 100%; gap: 20px; font-size: 15px; }
}

.site-footer { background: var(--deep-2); color: #B9CCD4; font-size: 15px; }
.site-footer a { color: #B9CCD4; }
.site-footer a:hover { color: var(--white); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 40px; }
.footer-tagline { color: #B9CCD4; font-size: 11px; letter-spacing: 0.18em; }

/* ---------- Home: brand intro ---------- */

/* Fills the first screen below the header. The solid background keeps the fixed watermark from doubling the mark. */
.brand-splash {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 80px); min-height: calc(100svh - 80px);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .brand-splash { min-height: 78svh; } }
.brand-splash-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding-block: 48px 96px; }
.brand-splash-mark { width: clamp(150px, 24vw, 280px); height: auto; filter: var(--logo-filter); margin-bottom: 12px; }
.brand-splash-name {
  font-family: var(--serif); font-weight: 700; color: var(--heading);
  font-size: clamp(40px, 7.4vw, 104px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance;
}
.brand-splash-tagline {
  font-family: var(--caps); font-weight: 500; color: var(--heading);
  font-size: clamp(11px, 1.3vw, 16px); letter-spacing: 0.32em; text-transform: uppercase;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  display: grid; place-items: center; width: 48px; height: 48px; color: var(--teal);
  animation: scroll-cue 2.4s ease-in-out infinite;
}
.scroll-cue:hover { color: var(--heading); }
@keyframes scroll-cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.brand-splash-inner > * { animation: splash-in .9s ease-out both; }
.brand-splash-name { animation-delay: .15s; }
.brand-splash-tagline { animation-delay: .3s; }
@keyframes splash-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  .scroll-cue, .brand-splash-inner > * { animation: none; }
}

/* ---------- Home: hero ---------- */

.hero { position: relative; overflow: hidden; }
.hero-swoosh { position: absolute; right: -60px; top: 0; height: 100%; width: 46%; opacity: .16; pointer-events: none; }
.hero-grid {
  position: relative; display: grid; gap: 64px; align-items: center; padding-block: 96px 104px;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
}
@media (max-width: 700px) { .hero-grid { padding-block: 56px 64px; gap: 40px; } }

.pattern-card { margin: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.pattern-card-head { display: flex; justify-content: space-between; gap: 12px; }
.pattern-row {
  display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 12px;
  padding: 18px 0; border-top: 1px solid var(--line-2);
}
.pattern-row:last-of-type { border-bottom: 1px solid var(--line-2); }
.pattern-strength, .pattern-pressure { font-family: var(--serif); font-size: clamp(19px, 2vw, 24px); color: var(--heading); }
.pattern-pressure { color: var(--gold-text); text-align: right; }

/* ---------- Home: testimonials ---------- */

.testimonials { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.testimonial {
  position: relative; margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 56px 36px 32px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold);
}
.testimonial::before {
  content: "\201C"; position: absolute; top: 4px; left: 30px;
  font-family: var(--serif); font-size: 88px; line-height: 1; color: var(--gold);
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--heading); text-wrap: pretty; }
.testimonial figcaption { display: flex; flex-direction: column; gap: 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.testimonial-name { font-weight: 600; color: var(--ink); }
.testimonial-role { font-family: var(--caps); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); }
@media (max-width: 600px) { .testimonial { padding: 52px 24px 24px; } .testimonial::before { left: 20px; } }

/* ---------- Home: statement band ---------- */

.statement-grid {
  display: grid; gap: 48px; align-items: end; padding-block: 96px;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}
.statement { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.statement em { font-style: italic; }

/* ---------- Home: method ---------- */

.method {
  list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--heading);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.method-step { padding: 40px 36px; display: flex; flex-direction: column; gap: 16px; border-right: 1px solid var(--line); }
.method-step:first-child { padding-left: 0; }
.method-step:last-child { border-right: 0; padding-right: 0; }
.method-step p:not(.eyebrow) { color: var(--ink-2); }
.method-step .eyebrow { font-size: 12px; }
.method-num { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--gold); }
@media (max-width: 980px) {
  .method-step { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Home: expertise ---------- */

.expertise-grid {
  display: grid; gap: 56px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}
.expertise-tiles {
  display: grid; gap: 2px; background: var(--line-choice);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.tile { background: var(--surface-2); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.tile p { font-size: 16px; color: var(--ink-2); }

/* ---------- Home: partners ---------- */

/* One partner per full-width row; photo and bio swap sides on every other row. */
.partners { display: flex; flex-direction: column; gap: 72px; }
.partner { display: grid; gap: 56px; align-items: start; grid-template-columns: minmax(240px, 340px) 1fr; }
.partner:nth-child(even) { grid-template-columns: 1fr minmax(240px, 340px); }
.partner:nth-child(even) > :first-child { order: 2; }
.partner p:not(.eyebrow) { color: var(--ink-2); font-size: 18px; max-width: 68ch; }
.partner-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 800px) {
  .partners { gap: 56px; }
  .partner, .partner:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .partner:nth-child(even) > :first-child { order: 0; }
  .partner-photo, .photo-placeholder { max-width: 320px; }
}
.photo-placeholder {
  aspect-ratio: 4 / 5; background: var(--surface-2); border: 1px dashed var(--line-strong);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px;
}

/* ---------- Q&A: what we are / what we're not ---------- */

.contrast { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.contrast-col { display: flex; flex-direction: column; gap: 28px; padding: 40px; border-top: 4px solid; }
.contrast-are { background: var(--surface); border-color: var(--teal); box-shadow: var(--shadow); }
.contrast-not { background: var(--surface-2); border-color: var(--gold); }
@media (max-width: 600px) { .contrast-col { padding: 28px 24px; } }
.contrast-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.contrast-list li { display: grid; grid-template-columns: 22px 1fr; gap: 16px; align-items: start; }
.contrast-list svg { margin-top: 3px; }
.contrast-list p { font-size: 17px; color: var(--ink-2); }

/* ---------- Q&A: common questions ---------- */

.faq-grid { display: grid; gap: 48px 64px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.3; color: var(--heading);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s;
}
.faq-item[open] > .faq-question::after { transform: translateY(2px) rotate(-135deg); }
.faq-question:hover { color: var(--teal); }
.faq-answer { display: flex; flex-direction: column; gap: 14px; padding: 0 40px 28px 0; color: var(--ink-2); font-size: 17px; }

/* ---------- Home: call to action ---------- */

.cta { position: relative; overflow: hidden; }
.cta-swoosh { position: absolute; left: -40px; bottom: -40px; width: 340px; height: 340px; opacity: .25; pointer-events: none; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; padding-block: 112px; }
.cta-inner .lead { margin-inline: auto; }

/* ---------- Cards & forms ---------- */

.card { background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.card-lg { padding: 40px; }
@media (max-width: 600px) { .card-lg { padding: 24px; } }

.start-grid { display: grid; gap: 64px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.form-card { padding: 32px; box-shadow: var(--shadow); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.facts strong { color: var(--heading); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; color: var(--heading); }
.field input {
  min-height: 48px; padding: 0 14px; font: inherit; font-size: 17px; color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
}
.field input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--heading); }

.form-error {
  padding: 12px 14px; background: var(--error-bg); border: 1px solid var(--error-line); color: var(--error); font-size: 16px; font-weight: 500;
}

/* ---------- Assessment ---------- */

.app-body { background: var(--bg); }
.app-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.app-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.app-header .brand img { height: 34px; }
.app-header-divider { width: 1px; height: 28px; background: var(--line); }
@media (max-width: 600px) { .app-header-inner .muted { display: none; } }

.stepper-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.section-steps {
  list-style: none; margin: 0; padding: 16px 0 0; display: grid; gap: 4px;
  grid-template-columns: repeat(var(--steps, 1), minmax(0, 1fr));
}
.seg { height: 6px; border-radius: 3px; background: var(--line); }
.seg-done { background: var(--teal); }
.seg-current { background: var(--gold); }
.section-steps-label { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0 12px; font-size: 15px; color: var(--muted); }

.assessment-main { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-block: 64px 88px; }
@media (max-width: 700px) { .assessment-main { padding-block: 32px 56px; gap: 40px; } }
.question { flex: 999 1 560px; min-width: 0; }
.assessment-aside { flex: 1 1 280px; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; display: flex; flex-direction: column; gap: 12px; }
.section-heading {
  margin: 0; font-family: var(--serif); font-weight: 600; color: var(--heading);
  font-size: clamp(26px, 3vw, 38px); line-height: 1.2; text-wrap: pretty;
}
.section-heading:focus { outline: none; }
.section-description { font-size: 17px; color: var(--ink-2); }
.preserve-lines { white-space: pre-line; }
.stack-xs { display: flex; flex-direction: column; gap: 4px; }

.items { display: flex; flex-direction: column; gap: 36px; }
.item { padding-top: 28px; border-top: 1px solid var(--line); }
.item-content { padding: 24px; background: var(--surface-2); border: 1px solid var(--line); }
.item-prompt { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.3; color: var(--heading); text-wrap: pretty; }
.field label.item-prompt { font-size: 21px; font-weight: 600; }
.item-help { font-size: 16px; }
.item-error { color: var(--error); font-size: 16px; font-weight: 600; }
.item-invalid { border-top-color: var(--error); }
.field textarea, .field select {
  padding: 12px 14px; font: inherit; font-size: 17px; color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
}
.field select { min-height: 48px; max-width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--heading); }

.choices { display: flex; flex-direction: column; gap: 12px; }
.choice {
  position: relative; display: flex; align-items: center; gap: 18px; min-height: 64px; padding: 16px 22px;
  background: var(--surface); border: 1.5px solid var(--line-choice); border-radius: var(--radius); cursor: pointer;
  font-size: 18px; transition: border-color .15s, background-color .15s;
}
.choice:hover { border-color: var(--teal); }
.choice input, .scale-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices-compact { gap: 8px; }
.choices-compact .choice { min-height: 52px; padding: 12px 18px; font-size: 17px; }
.check-box { flex: none; width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); position: relative; background: var(--surface); }
.choice:has(input:checked) .check-box { background: var(--teal); border-color: var(--teal); }
.choice:has(input:checked) .check-box::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.choice-key {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-choice); font-family: var(--caps); font-weight: 600; font-size: 13px; color: var(--heading);
}
.choice:has(input:checked) { border-color: var(--teal); background: var(--choice-checked); }
.choice:has(input:checked) .choice-key { background: var(--teal); border-color: var(--teal); color: var(--white); }
.choice:has(input:focus-visible), .scale-option:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

.scale { display: flex; flex-direction: column; gap: 12px; }
.scale-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.scale-option {
  position: relative; min-height: 84px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1.5px solid var(--line-choice); border-radius: var(--radius); cursor: pointer;
}
.scale-option:hover { border-color: var(--teal); }
.scale-num { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--heading); }
.scale-option:has(input:checked) { border-color: var(--teal); background: var(--teal); }
.scale-option:has(input:checked) .scale-num { color: var(--white); }
.scale-compact { grid-template-columns: repeat(var(--points, 5), minmax(0, 1fr)); gap: 8px; }
.scale-compact .scale-option { min-height: 76px; flex-direction: column; gap: 2px; padding: 8px 4px; text-align: center; }
.scale-compact .scale-num { font-size: 22px; }
.scale-label { font-size: 13px; line-height: 1.25; color: var(--muted); }
.scale-option:has(input:checked) .scale-label { color: var(--white); }
@media (max-width: 600px) {
  .scale-compact { grid-template-columns: 1fr; }
  .scale-compact .scale-option { min-height: 48px; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 8px 16px; text-align: left; }
  .scale-label { font-size: 15px; }
}
.scale-ends { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }

.question-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.next-group { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.pause-card { background: var(--band-dark); color: var(--white); padding: 28px; }
.pause-card p { color: var(--on-dark); font-size: 16px; }
.assessment-aside .card p { font-size: 16px; color: var(--ink-2); }

.progress { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.progress-fill { height: 100%; background: var(--teal); transition: width .3s ease; }

/* ---------- Results ---------- */

.report { display: flex; flex-direction: column; gap: 32px; padding-bottom: 88px; }
.report > .container { width: 100%; } /* auto margins in a flex column would otherwise shrink-wrap */
.report-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 56px; }
.report-intro-text { flex: 999 1 560px; min-width: 0; }

.responses { display: flex; flex-direction: column; gap: 36px; }
.response-section { break-inside: auto; }
.response-list { margin: 0; display: flex; flex-direction: column; }
.response { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 6px 32px; padding: 14px 0; border-top: 1px solid var(--line-2); }
@media (max-width: 700px) { .response { grid-template-columns: 1fr; } }
.response dt { color: var(--ink-2); font-size: 16px; }
.response dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--heading); }
.response dd.muted { font-weight: 400; color: var(--muted); }
.response dd ul { margin: 0; padding-left: 18px; }

.next-step-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 40px;
}
.next-step-inner .stack-sm { flex: 1 1 420px; }
@media (max-width: 600px) { .next-step-inner { padding: 28px 24px; } }

/* ---------- Print (results "save as PDF") ---------- */

@media print {
  .app-header, .site-footer, .report-intro .button-row, .next-step, .theme-toggle { display: none; }
  body { background: var(--white); font-size: 12pt; }
  body::before { display: none; }
  .response { break-inside: avoid; }
}

/* ---------- Conversation call to action with a message box ---------- */

.conversation {
  position: relative; display: grid; gap: 40px 64px; align-items: start; padding-block: 104px;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}
@media (max-width: 700px) { .conversation { padding-block: 64px; } }
.message-form { display: flex; flex-direction: column; gap: 20px; }
.band-dark .message-form .field label { color: var(--white); }
.message-form textarea { width: 100%; min-height: 168px; }
.message-form-end { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.message-form-note { font-size: 15px; color: var(--muted); }
.band-dark .message-form-note { color: var(--on-dark); }

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

.footer-disclaimer {
  display: flex; flex-direction: column; gap: 10px; padding-block: 28px 40px;
  border-top: 1px solid rgba(185, 204, 212, .2); font-size: 13px; line-height: 1.55; color: #9FB5BE;
}
.footer-disclaimer p { max-width: 72em; }
.footer-disclaimer-title { color: #B9CCD4; font-size: 11px; letter-spacing: 0.14em; }
.footer-crisis { color: #D5E2E7; font-weight: 600; }
.footer-crisis a { color: var(--gold); }

/* ---------- Our Program ---------- */

.program-head { max-width: 980px; }
.program-body { display: grid; gap: 28px 64px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.program-name { color: var(--heading); letter-spacing: 0.04em; }

/* ---------- Q&A: grouped questions ---------- */

.faq-head { position: sticky; top: 112px; }
@media (max-width: 900px) { .faq-head { position: static; } }
.faq-groups { display: flex; flex-direction: column; gap: 48px; }
.faq-group { display: flex; flex-direction: column; gap: 16px; }
.faq-group-title { color: var(--gold-ink); font-size: 12px; }
.faq-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.faq-list strong, .faq-answer strong { color: var(--heading); }
