/* Alira Therapy — mock-up prototype
   Canon commitment: BetterHelp-adjacent calm. Committed slate-teal strategy:
   mist fields own whole regions, deep slate carries text and closing bands,
   Mind Shelter / Mind Garden flat illustrations are the only imagery voice.
   The hero commits to a deep slate field with a single predictive search. */

:root {
  --slate-900: #1c2b22;
  --slate-800: #26382c;
  --slate-700: #34493a;
  --slate-600: #4d6b55;
  --slate-500: #7a9480;
  --mist-300: #e6d9c3;
  --mist-200: #efe6d6;
  --mist-100: #f7f1e7;
  --sky: #d4ec9a;
  --paper: #fbfaf6;
  --paper-warm: #f6f4ec;
  --ink: #1f2620;
  --body: #4f5a50;
  --clay: #a8d45a;
  --clay-dark: #93bf45;
  --sun: #f2c14e;
  --sun-soft: #fbeecb;
  --shadow-sm: 0 4px 14px rgba(38, 56, 44, 0.07);
  --shadow-md: 0 12px 32px rgba(38, 56, 44, 0.1);
  --shadow-lg: 0 24px 56px rgba(38, 56, 44, 0.14);
  --radius-md: 1.25rem;
  --radius-lg: 1.5rem;
  --radius-arch: 14rem 14rem 1.5rem 1.5rem;
  --font: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--slate-600); text-decoration: none; }
a:hover { color: var(--slate-700); }

.container {
  width: min(72rem, calc(100% - 3rem));
  margin-inline: auto;
}

.container--narrow {
  width: min(50rem, calc(100% - 3rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  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: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--slate-800);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 0.75rem;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; color: #fff; }

:focus-visible {
  outline: 3px solid var(--slate-500);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.display {
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h2 {
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin-bottom: 1rem;
}

.h3 {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  max-width: 38rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--clay);
  color: var(--slate-900);
  box-shadow: 0 8px 20px rgba(168, 212, 90, 0.3);
}
.btn-primary:hover {
  background: var(--clay-dark);
  color: var(--slate-900);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(38, 56, 44, 0.3);
}

.btn-secondary {
  background: #fff;
  color: var(--slate-700);
  box-shadow: inset 0 0 0 2px var(--slate-500);
}
.btn-secondary:hover {
  background: var(--mist-100);
  color: var(--slate-800);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--slate-800);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.btn-light:hover {
  background: var(--mist-100);
  color: var(--slate-800);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    background-color 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(38, 56, 44, 0.08);
  box-shadow: 0 6px 20px rgba(38, 56, 44, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1.35rem;
  /* full-bleed bar: brand at the viewport's left edge, CTA at the right */
  width: 100%;
  padding-inline: 6%;
}
/* Desktop: brand hard left, nav truly centered, CTA hard right */
@media (min-width: 82rem) {
  .header-inner { position: relative; }
  .main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Header CTA: lime, like every primary action */
.site-header .btn-primary {
  background: var(--clay);
  box-shadow: 0 8px 20px rgba(168, 212, 90, 0.35);
}
.site-header .btn-primary:hover {
  background: var(--clay-dark);
  box-shadow: 0 12px 26px rgba(168, 212, 90, 0.4);
}

.brand img { height: 2.5rem; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}
.main-nav a:not(.btn) {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.975rem;
  white-space: nowrap;
}
.main-nav a:not(.btn):hover { color: var(--slate-600); }

.main-nav .header-cta { display: none; }

.header-cta--bar { margin-left: auto; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
/* Overlay header: transparent over the dark hero so the hero image fills
   the top of the page as one field; flips to the solid paper bar on scroll.
   Only the homepage opts in via site-header--overlay. */

.site-header--overlay {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header--overlay .main-nav a:not(.btn) { color: #fff; }
.site-header--overlay .main-nav a:not(.btn):hover { color: var(--sky); }
.site-header--overlay .nav-toggle { color: #fff; }

.site-header--overlay.is-scrolled,
.site-header--overlay:has(.main-nav.is-open) {
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header--overlay.is-scrolled .main-nav a:not(.btn),
.site-header--overlay:has(.main-nav.is-open) .main-nav a:not(.btn) { color: var(--ink); }
.site-header--overlay.is-scrolled .main-nav a:not(.btn):hover,
.site-header--overlay:has(.main-nav.is-open) .main-nav a:not(.btn):hover { color: var(--slate-600); }
.site-header--overlay.is-scrolled .nav-toggle,
.site-header--overlay:has(.main-nav.is-open) .nav-toggle { color: var(--ink); }

.brand--text {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand--text span { font-weight: 400; color: var(--sky); }
/* keep the wordmark's own color on hover; the generic a:hover would otherwise darken it */
.brand--text:hover { color: #fff; }
.site-header:not(.site-header--overlay) .brand--text { color: var(--ink); }
.site-header:not(.site-header--overlay) .brand--text span { color: var(--slate-500); }
.site-header--overlay.is-scrolled .brand--text,
.site-header--overlay:has(.main-nav.is-open) .brand--text { color: var(--ink); }
.site-header--overlay.is-scrolled .brand--text span,
.site-header--overlay:has(.main-nav.is-open) .brand--text span { color: var(--slate-500); }

/* ---------- Hero: deep slate field, one predictive search ---------- */

.hero {
  background:
    linear-gradient(180deg, rgba(28, 43, 34, 0.78) 0%, rgba(38, 56, 44, 0.88) 100%),
    url("https://images.unsplash.com/photo-1518241353330-0f7941c2d9b5?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat,
    var(--slate-800);
  color: #fff;
  text-align: center;
  /* the overlay header floats over the hero; the field fills
     the initial viewport with content vertically centered */
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: clamp(6.5rem, 12vw, 9rem) 0 11rem;
}

.hero-inner { max-width: 52rem; margin-inline: auto; }

.hero-badge {
  display: inline-block;
  background: rgba(212, 236, 154, 0.14);
  border: 1px solid rgba(212, 236, 154, 0.6);
  color: var(--sky);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero .display { color: #fff; margin-bottom: 1rem; }
.hero .lede {
  color: rgba(239, 230, 214, 0.92);
  margin: 0 auto 2.5rem;
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* Floating search card with live suggestions */

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.45rem 0.45rem 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(28, 43, 34, 0.5);
  max-width: 44rem;
  margin-inline: auto;
  text-align: left;
}
.hero-search > svg { flex: none; color: var(--slate-600); }
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 1.05rem;
  color: var(--ink);
  padding: 0.7rem 0.75rem;
}
.hero-search input::placeholder { color: var(--body); opacity: 0.75; }

.hero-search--light { box-shadow: var(--shadow-md); }

.search-suggest {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  overflow: hidden;
  z-index: 30;
}
.search-suggest a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.8rem 1.35rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
}
.search-suggest a:hover,
.search-suggest a.is-active { background: var(--mist-100); color: var(--ink); }
.search-suggest .suggest-type {
  margin-left: auto;
  flex: none;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
}
.search-suggest mark {
  background: var(--mist-200);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

.search-tags {
  margin-top: 1.4rem;
  font-size: 0.92rem;
  color: rgba(239, 230, 214, 0.85);
}
.search-tags a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.search-tags a:hover { color: var(--sky); }

/* ---------- Chooser ---------- */

.chooser { margin-top: -7.5rem; position: relative; z-index: 2; }

.chooser-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.chooser-label {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.chooser-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.chooser-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  background: var(--mist-100);
  box-shadow: inset 0 0 0 2px transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background-color 0.2s ease;
}
.chooser-card:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--slate-500), var(--shadow-md);
}
.chooser-card img {
  width: 4.25rem;
  flex: none;
  background: #fff;
  border-radius: 50%;
  padding: 0.35rem;
  box-shadow: var(--shadow-sm);
}
.chooser-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.chooser-card span { font-size: 0.925rem; color: var(--body); }
.chooser-card .arrow {
  margin-left: auto;
  flex: none;
  color: var(--slate-600);
  transition: transform 0.25s var(--ease-out);
}
.chooser-card:hover .arrow { transform: translateX(4px); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.25rem;
  margin-top: 2.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--slate-700);
}
.trust-row span { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-row svg { flex: none; }

/* ---------- Sections ---------- */

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--mist { background: var(--mist-100); }
.section--warm { background: var(--paper-warm); }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head .lede { margin-top: 0.5rem; }

/* Specialties: the feature tile sits at the center of a symmetric cross —
   two tiles flanking each side, the sixth centered beneath it. */

.diff { padding-top: clamp(3rem, 6vw, 4.5rem); }
.diff-grid { display: grid; gap: 1rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.diff-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--body);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1.25rem 1.2rem;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.diff-card:hover { box-shadow: var(--shadow-md); color: var(--body); transform: translateY(-3px); }
.diff-card img { background: var(--mist-100); border-radius: 50%; height: 4.5rem; margin-bottom: 0.4rem; padding: 0.3rem; width: 4.5rem; }
.diff-card strong { color: var(--ink); font-size: 1.08rem; line-height: 1.25; }
.diff-card > span:not(.diff-more) { font-size: 0.92rem; line-height: 1.5; }
.diff-more { align-items: center; color: #4d6b55; display: inline-flex; font-size: 0.9rem; font-weight: 800; gap: 0.4rem; margin-top: auto; padding-top: 0.5rem; }
@media (max-width: 75rem) { .diff-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 52rem) { .diff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .diff-grid { grid-template-columns: 1fr; } }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.25rem;
}

.spec-feature {
  grid-column: 2;
  grid-row: 1 / span 2;
  background: var(--slate-700);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  position: relative;
}
.spec-feature::after {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  right: -7rem;
  bottom: -9rem;
}
.spec-feature .h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.spec-feature p { color: rgba(255, 255, 255, 0.82); max-width: 30rem; }
.spec-feature img {
  width: min(15rem, 68%);
  align-self: center;
  position: relative;
  z-index: 1;
  background: var(--mist-100);
  border-radius: 1.25rem;
  padding: 1.25rem;
}

.spec-tile {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.spec-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.spec-tile:last-child { grid-column: 2; }
.spec-tile img {
  width: 4.75rem;
  background: var(--mist-100);
  border-radius: 50%;
  padding: 0.5rem;
}
.spec-tile p { font-size: 0.95rem; margin-top: 0.1rem; }
.spec-feature h3 a,
.spec-tile h3 a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color 0.2s ease; }
.spec-feature h3 a:hover,
.spec-tile h3 a:hover { text-decoration-color: currentColor; }

/* Assessments band */

.assess-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.assess-visual {
  background: #fff;
  border-radius: var(--radius-arch);
  box-shadow: var(--shadow-md);
  padding: 2rem 2rem 0;
  max-width: 22rem;
  margin-inline: auto;
}
.assess-list strong a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; }
.assess-list strong a:hover { text-decoration-color: currentColor; }
.assess-list { list-style: none; margin-top: 2rem; }
.assess-list li {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(38, 56, 44, 0.12);
}
.assess-list li:last-child { border-bottom: 1px solid rgba(38, 56, 44, 0.12); }
.assess-list svg { flex: none; margin-top: 0.2rem; }
.assess-list strong { color: var(--ink); font-weight: 800; display: block; }
.assess-list p { font-size: 0.95rem; }

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--mist-200);
  color: var(--slate-700);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.step img {
  width: 8.5rem;
  margin-bottom: 1.25rem;
}
.step .h3 { margin-bottom: 0.4rem; }
.step p { font-size: 0.97rem; }
.step .step-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-weight: 800;
  font-size: 0.95rem;
}

/* About the name */

.about-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-grid .h2 { margin-bottom: 0; }
.about-body p { margin-bottom: 1.1rem; max-width: 40rem; }
.about-body p:last-child { margin-bottom: 0; }
.about-body .accent-word { color: var(--ink); font-weight: 800; }

.name-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.name-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.75rem;
}
.name-card .name-word {
  display: block;
  color: var(--slate-600);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.name-card p { font-size: 0.95rem; }

/* Team */

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.team-photo {
  border-radius: var(--radius-arch);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-quote {
  margin-top: 1.75rem;
  padding: 1.5rem 1.75rem;
  background: var(--mist-100);
  border-radius: var(--radius-md);
  color: var(--slate-800);
  font-weight: 700;
  font-size: 1.05rem;
}
.team-actions { margin-top: 2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* Testimonials */

.stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.story {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.9rem;
}
.story:nth-child(2) { margin-top: 2.25rem; }
.story:nth-child(3) { margin-top: 4.5rem; }
.story blockquote {
  color: var(--ink);
  font-size: 1.075rem;
  font-weight: 500;
  line-height: 1.55;
}
.story blockquote::before {
  content: "“";
  display: block;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--slate-500);
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.story figcaption {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--slate-600);
  letter-spacing: 0.02em;
}

/* FAQ */

.faq-list { max-width: 46rem; }
.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  font-size: 1.075rem;
  font-weight: 800;
  color: var(--ink);
  padding: 1.3rem 1.5rem;
}
.faq-q svg {
  flex: none;
  transition: transform 0.3s var(--ease-out);
}
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}
.faq-a > div { overflow: hidden; }
.faq-a p {
  padding: 0 1.5rem 1.4rem;
  font-size: 0.98rem;
  max-width: 40rem;
}
.faq-a a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* CTA band */

.cta-band {
  background:
    radial-gradient(50rem 26rem at 50% 130%, rgba(255, 255, 255, 0.09), transparent 65%),
    var(--slate-800);
  color: #fff;
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
}
.cta-band .h2 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
  margin: 0 auto 2.25rem;
  font-size: 1.15rem;
}
.cta-band .hero-actions { justify-content: center; }
.cta-band .note {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Search results page ---------- */

.search-hero {
  background:
    radial-gradient(38rem 24rem at 85% -10%, var(--mist-300), transparent 60%),
    linear-gradient(180deg, var(--mist-200), var(--paper));
  padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.search-hero .display { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.75rem; }

.results-section { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4.5rem, 9vw, 7rem); }

.results-meta {
  font-weight: 700;
  color: var(--body);
  margin-bottom: 1.75rem;
}

.result-group { margin-bottom: 2.25rem; }
.result-group h2 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-600);
  margin-bottom: 0.75rem;
}

.result-card {
  display: block;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.5rem;
  margin-bottom: 0.75rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.result-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.result-card .result-title {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
}
.result-card p { font-size: 0.95rem; margin-top: 0.15rem; }
.result-card mark {
  background: var(--mist-200);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

.results-empty {
  background: var(--mist-100);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.results-empty .h3 { margin-bottom: 0.5rem; }
.results-empty p { max-width: 28rem; margin: 0 auto 1.5rem; }
.results-empty .hero-actions { justify-content: center; }

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

.site-footer {
  background: var(--slate-900);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.site-footer .brand {
  display: inline-block;
  margin-bottom: 1.25rem;
}
/* same wordmark as the header, reversed out for the dark footer */
.site-footer .brand--text,
.site-footer .brand--text:hover { color: #fff; }
.site-footer .brand--text span { color: var(--sky); }
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: #fff; }
.footer-crisis {
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin-top: 1.25rem;
}
.footer-crisis strong { color: #fff; display: block; margin-bottom: 0.25rem; }
.footer-crisis a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.footer-app {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.75rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer-app strong {
  color: #fff;
  font-size: 1rem;
}
.footer-app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-app-badges img {
  height: 3.1rem;
  width: auto;
  border-radius: 8px;
}

.footer-resources {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
  margin-bottom: 2.5rem;
  font-size: 0.82rem;
}
.footer-resources-note {
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
.footer-resources h5 {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.footer-resources ul { list-style: none; }
.footer-resources li { margin-bottom: 0.4rem; color: rgba(255, 255, 255, 0.6); }
.footer-resources a { color: rgba(255, 255, 255, 0.8); }
.footer-resources a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: baseline;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal a:hover { color: #fff; }

/* ---------- Contact page ---------- */

.page-hero {
  background:
    radial-gradient(38rem 24rem at 85% -10%, var(--mist-300), transparent 60%),
    linear-gradient(180deg, var(--mist-200), var(--paper));
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.page-hero .lede { margin: 0.75rem auto 0; }

.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: left;
}
.path-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.path-card .h3 { font-size: 1.3rem; }
.path-card p { font-size: 0.97rem; flex: 1; }
.path-card .btn { align-self: flex-start; margin-top: 0.5rem; }
.path-card--feature { background: var(--slate-700); }
.path-card--feature .h3, .path-card--feature p { color: #fff; }
.path-card--feature p { color: rgba(255, 255, 255, 0.82); }
.path-person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.4rem;
}
.path-person img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}
.path-person span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }

.form-section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.form-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.form-frame {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  min-height: 32rem;
}
.form-frame iframe {
  width: 100%;
  min-height: 60vh;
  border: 0;
  display: block;
}
.form-fallback {
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
}
.form-fallback img { margin: 0 auto 1.5rem; }
.form-fallback .h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.form-fallback p { max-width: 30rem; margin: 0 auto 1.75rem; }
.form-fallback .hero-actions { justify-content: center; }
.contact-aside .aside-block {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.1rem;
}
.contact-aside h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.contact-aside p { font-size: 0.95rem; }
.contact-aside .big-link {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--slate-700);
  display: block;
  margin-bottom: 0.35rem;
}
.crisis-card {
  background: var(--sun-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
}
.crisis-card h2 { font-size: 1.1rem; color: var(--ink); margin-bottom: 0.5rem; }
.crisis-card p { font-size: 0.93rem; }
.crisis-card a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Motion: one authored moment ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */

@media (max-width: 68rem) {
  /* below true-centering width the nav flexes right; tighter gaps
     keep it clear of the brand and CTA */
  .main-nav ul { gap: 1.4rem; }
}

@media (max-width: 60rem) {
  .hero { padding-bottom: 10rem; }
  .chooser-cards { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .spec-feature { grid-column: auto; grid-row: auto; }
  .spec-tile:last-child { grid-column: auto; }
  .assess-grid, .team-grid, .form-grid, .about-grid { grid-template-columns: 1fr; }
  .steps, .stories, .paths, .name-grid { grid-template-columns: 1fr; }
  .story:nth-child(2), .story:nth-child(3) { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-resources-grid { grid-template-columns: 1fr 1fr; }
}

/* Nav collapses to the dropdown panel as soon as brand + nav + CTA can no
   longer share the bar without overlap (measured fit point ~74rem); the
   absolutely-centered nav only resumes above 82rem, where it clears the CTA. */
@media (max-width: 74rem) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 1.5rem 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(38, 56, 44, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  }
  .main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .main-nav a:not(.btn) { font-size: 1.3rem; }
  .main-nav .header-cta { display: block; margin: 1.5rem 0 0; }
  .nav-toggle { display: block; }
  .header-cta--bar { display: none; }
}

@media (max-width: 44rem) {
  .hero-badge { font-size: 0.85rem; padding-inline: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-resources-grid { grid-template-columns: 1fr; }
  .hero-search { padding-left: 1rem; }
  .hero-search .btn { padding: 0.85rem 1.25rem; }
  .hero-search input { font-size: 0.95rem; }
}
