/* ==========================================================================
   Qualfon Care Transition Hub — stylesheet (simplified)
   Mobile-first. Breakpoints: 40rem (640px) · 48rem (768px) · 64rem (1024px)
   Smartphone navigation is a four-item bottom tab bar; the header nav
   appears from 64rem up. Values follow Qualfon Brand Guidelines v1.3.
   ========================================================================== */

/* 1. Custom properties ---------------------------------------------------- */
:root {
  --c-navy: #002b49;
  --c-blue-light: #00a7e1;
  --c-gray: #6f7271;
  --c-gray-light: #b0b3b2;
  --c-purple: #613389;
  --c-blue: #1072b8;
  --c-violet: #833f91;
  --c-red: #e5292b;
  --c-green: #92c020;
  --c-orange: #f18400;
  --c-teal: #00a19a;

  --c-white: #fff;
  --c-off-white: #f5f7f9;
  --c-hairline: #e3e7eb;
  --c-tint-blue: #e6f6fc;
  --c-tint-purple: #efeaf4;
  --c-tint-teal: #e6f5f4;

  --text-heading: var(--c-navy);
  --text-body: #12151a;
  --text-muted: var(--c-gray);
  --text-inverse: var(--c-white);
  --text-inverse-muted: rgba(255, 255, 255, 0.76);
  --link: var(--c-blue);
  --link-hover: var(--c-purple);
  --surface: var(--c-white);
  --surface-subtle: var(--c-off-white);
  --border: var(--c-hairline);
  --border-strong: var(--c-gray-light);
  --border-inverse: rgba(255, 255, 255, 0.24);

  --gradient-brand: linear-gradient(45deg, var(--c-navy) 0%, var(--c-purple) 100%);

  --font-display: "Figtree", "Gilroy", "Helvetica Neue", Helvetica, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;

  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-5: 1.25rem;
  --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem; --sp-12: 3rem; --sp-16: 4rem;

  --r-sm: 0.25rem; --r-md: 0.5rem; --r-lg: 1rem; --r-xl: 1.5rem; --r-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(0, 43, 73, 0.08);
  --shadow-md: 0 8px 20px rgba(0, 43, 73, 0.1);
  --shadow-xl: 0 32px 72px rgba(0, 43, 73, 0.18);
  --shadow-focus: 0 0 0 3px rgba(0, 167, 225, 0.45);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur: 240ms;

  --container: 71.25rem;
  --container-wide: 82.5rem;
  --gutter: var(--sp-5);
  --header-h: 3.75rem;
  --tabbar-h: 4rem;
  --section-y: var(--sp-12);
}
@media (min-width: 48rem) { :root { --gutter: var(--sp-8); --header-h: 4.75rem; --section-y: var(--sp-16); } }
@media (min-width: 64rem) { :root { --section-y: 5.5rem; --tabbar-h: 0rem; } }

/* 2. Reset & base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  text-wrap: balance;
}
h1 { font-size: clamp(1.875rem, 1.1rem + 3.4vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 0.98rem + 0.65vw, 1.375rem); font-weight: 600; line-height: 1.35; }
h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

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

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }

:focus-visible { outline: 2px solid var(--c-blue-light); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: #97d2f0; color: var(--c-navy); }

/* 3. Utilities ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }

.section { padding-block: var(--section-y); }
.section--subtle { background: var(--surface-subtle); }

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

.skip-link {
  position: absolute; top: -100%; left: var(--sp-4); z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-white); color: var(--c-navy);
  font-family: var(--font-display); font-weight: 600;
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 0; }

.eyebrow {
  display: block; margin-bottom: var(--sp-3);
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-purple);
}

.lede { max-width: 46rem; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); color: var(--text-muted); }
.section-head { margin-bottom: var(--sp-8); }
.section-head h2 + .lede { margin-top: var(--sp-4); }

.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 40rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 40rem) and (max-width: 63.999rem) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) {
  .grid { gap: var(--sp-6); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* 4. Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 2.75rem; padding: 0.75rem 1.5rem;
  font-family: var(--font-display); font-size: 0.875rem; font-weight: 600; line-height: 1;
  text-align: center; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--r-pill); cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform 80ms var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.985); box-shadow: none; }
.btn:disabled { background: #d6d8d7; color: var(--text-muted); cursor: not-allowed; transform: none; }

.btn--primary { background: var(--c-purple); color: var(--c-white); }
.btn--primary:hover:not(:disabled) { background: var(--c-violet); color: var(--c-white); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn--outline { border-color: var(--border-strong); color: var(--text-heading); background: transparent; }
.btn--outline:hover:not(:disabled) { border-color: var(--c-navy); background: var(--surface-subtle); color: var(--text-heading); }
.btn--inverse { background: var(--c-white); color: var(--c-navy); }
.btn--inverse:hover:not(:disabled) { background: var(--c-tint-blue); color: var(--c-navy); transform: translateY(-2px); }
.btn--inverse-outline { border-color: var(--border-inverse); color: var(--c-white); background: transparent; }
.btn--inverse-outline:hover:not(:disabled) { border-color: var(--c-white); background: rgba(255, 255, 255, 0.1); color: var(--c-white); }
.btn--sm { min-height: 2.25rem; padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn--lg { min-height: 3.25rem; padding: 1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* 5. Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-navy); border-bottom: 1px solid var(--border-inverse);
}
.site-header__inner { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); }
.site-header__logo { flex: none; line-height: 0; }
.site-header__logo img { height: 1.875rem; width: auto; }
@media (min-width: 48rem) { .site-header__logo img { height: 2.375rem; } }

.site-header__tag {
  margin-left: auto;
  font-family: var(--font-display); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-blue-light);
}
@media (min-width: 64rem) {
  .site-header__tag {
    margin-left: 0; padding-left: var(--sp-4);
    border-left: 1px solid var(--border-inverse);
  }
}

/* Header nav: desktop only. Smartphones use .tabbar. */
.nav { display: none; }
@media (min-width: 64rem) {
  .nav { display: flex; flex-direction: row; align-items: center; gap: var(--sp-6); margin-left: auto; }
  .nav__link {
    font-family: var(--font-display); font-size: 0.875rem; font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    padding-bottom: 0.25rem; border-bottom: 2px solid transparent;
  }
  .nav__link:hover, .nav__link.is-active { color: var(--c-white); text-decoration: none; }
  .nav__link.is-active { border-bottom-color: var(--c-blue-light); }
  .nav__cta { margin-left: var(--sp-2); }
}

/* 6. Smartphone tab bar -------------------------------------------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--c-white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(0, 43, 73, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 64rem) { .tabbar { display: none; } }

.tabbar__link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1875rem;
  min-height: var(--tabbar-h); padding: 0.5rem 0.25rem;
  font-family: var(--font-display); font-size: 0.6875rem; font-weight: 600; line-height: 1.2;
  color: var(--text-muted); background: transparent; border: 0; cursor: pointer;
  text-align: center;
}
.tabbar__link:hover { color: var(--c-navy); text-decoration: none; }
.tabbar__link.is-active { color: var(--c-purple); }
.tabbar__link.is-active svg { transform: translateY(-1px); }
.tabbar__link--cta { color: var(--c-purple); }
.tabbar__link--cta::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0;
  background: var(--c-tint-purple); z-index: -1;
}
.tabbar__link--cta { position: relative; isolation: isolate; }

/* 7. Hero ---------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; background: var(--c-navy); color: var(--text-inverse); overflow: hidden; }
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%; opacity: 0.45;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(170deg, rgba(0, 43, 73, 0.94) 0%, rgba(0, 43, 73, 0.88) 45%, rgba(97, 51, 137, 0.62) 100%);
}
@media (min-width: 48rem) {
  .hero::after { background: linear-gradient(100deg, rgba(0, 43, 73, 0.96) 0%, rgba(0, 43, 73, 0.86) 42%, rgba(97, 51, 137, 0.55) 100%); }
}
.hero__inner { padding-block: var(--sp-12) var(--sp-16); max-width: 48rem; }
@media (min-width: 64rem) { .hero__inner { padding-block: 5.5rem 6rem; } }
.hero .eyebrow { color: var(--c-blue-light); }
.hero h1 { color: var(--c-white); }
.hero__lede {
  margin-top: var(--sp-6); max-width: 38rem;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem); color: rgba(255, 255, 255, 0.88);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }
.hero__actions .btn { flex: 1 1 auto; }
@media (min-width: 40rem) { .hero__actions .btn { flex: 0 0 auto; } }
.hero__note { margin-top: var(--sp-5); font-size: 0.875rem; color: rgba(255, 255, 255, 0.66); }

/* 8. The four sections of the offer -------------------------------------- */
.offer { display: grid; gap: var(--sp-5); }
@media (min-width: 40rem) { .offer { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .offer { grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); } }

.offer__card {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--c-white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent, var(--c-purple));
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.offer__card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
@media (min-width: 48rem) { .offer__card { padding: var(--sp-6); } }

.offer__icon {
  display: grid; place-items: center; width: 3rem; height: 3rem;
  color: var(--c-white); background: var(--accent, var(--c-purple)); border-radius: 50%;
}
.offer__kicker {
  margin: 0;
  font-family: var(--font-display); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
}
.offer__card h3 { margin-top: calc(var(--sp-1) * -1); }
.offer__blurb { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }
.offer__points { display: grid; gap: var(--sp-2); font-size: 0.875rem; }
.offer__points li { display: flex; gap: var(--sp-2); align-items: flex-start; }
.offer__points svg { flex: none; margin-top: 0.1875rem; color: var(--accent, var(--c-purple)); }

.offer__cta {
  margin-top: auto; padding: 0; align-self: flex-start;
  min-height: 2.75rem; display: inline-flex; align-items: center;
  font-family: var(--font-display); font-size: 0.875rem; font-weight: 700;
  color: var(--c-purple); background: none; border: 0; cursor: pointer;
}
.offer__cta:hover { color: var(--c-violet); text-decoration: underline; text-underline-offset: 3px; }

/* 9. Session facts ------------------------------------------------------- */
.facts { display: grid; gap: var(--sp-5); margin-bottom: var(--sp-10); }
@media (min-width: 40rem) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .facts { grid-template-columns: repeat(4, 1fr); } }

.fact { display: flex; gap: var(--sp-3); }
.fact__icon { flex: none; color: var(--c-purple); margin-top: 0.125rem; }
.fact__label { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--text-heading); }
.fact__note { margin: 0.125rem 0 0; font-size: 0.8125rem; color: var(--text-muted); }

/* 10. How it works (email flow) ----------------------------------------- */
.how {
  display: grid; gap: var(--sp-8);
  padding: var(--sp-6);
  background: var(--c-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 48rem) { .how { padding: var(--sp-8); } }
@media (min-width: 64rem) { .how { grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-12); align-items: start; } }

.how__intro .btn { margin-top: var(--sp-5); }
.how__intro p:first-of-type { margin-top: var(--sp-3); color: var(--text-muted); }
.how__alt { margin-top: var(--sp-4); font-size: 0.875rem; color: var(--text-muted); }

.how__steps { display: grid; gap: var(--sp-5); }
.how__step { display: flex; gap: var(--sp-4); }
.how__step p { margin: 0.25rem 0 0; font-size: 0.9375rem; color: var(--text-muted); }
.how__num {
  flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 700;
  color: var(--c-white); background: var(--gradient-brand); border-radius: 50%;
}

/* 11. Badges ------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.3125rem 0.6875rem;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; line-height: 1.3;
  border-radius: var(--r-pill); background: var(--surface-subtle); color: var(--text-muted);
  white-space: nowrap;
}
.badge--brand { background: var(--c-tint-purple); color: var(--c-purple); align-self: flex-start; }

/* 12. Cards -------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column;
  background: var(--c-white); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1 1 auto; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text-heading); }
.card__meta { font-size: 0.8125rem; color: var(--text-muted); flex: 1 1 auto; }
.card__link { margin-top: var(--sp-2); font-family: var(--font-display); font-size: 0.875rem; font-weight: 600; }

.resource__banner {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; height: 7.5rem;
  background: var(--c-tint-blue);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent, var(--c-purple)) 18%, #fff) 0%,
    color-mix(in srgb, var(--accent, var(--c-purple)) 5%, #fff) 100%);
  color: var(--accent, var(--c-purple));
}
/* Dot grid, drawn from the group accent — no extra image requests. */
.resource__pattern {
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 0.75rem 0.75rem;
  opacity: 0.18;
}
/* Oversized watermark of the same glyph, bled off the corner. */
.resource__glyph {
  position: absolute; right: -1.25rem; bottom: -1.75rem; z-index: -1;
  line-height: 0; opacity: 0.14;
}
.resource__glyph svg { stroke-width: 1.25; }
/* The readable icon: white disc, accent stroke. */
.resource__medallion {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem;
  background: var(--c-white); border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 43, 73, 0.14);
}
.resource__type {
  position: absolute; top: 0.625rem; left: 0.625rem;
  background: var(--c-white); color: var(--accent, var(--c-purple));
  box-shadow: 0 1px 3px rgba(0, 43, 73, 0.1);
}
.resource__banner--video {
  background: var(--gradient-brand);
  color: var(--c-white);
}
.resource__banner--video .resource__pattern { opacity: 0.22; }
.resource__banner--video .resource__glyph { opacity: 0.2; }
.resource__banner--video .resource__medallion { background: rgba(255, 255, 255, 0.16); color: var(--c-white); box-shadow: none; }
.resource__banner--video .resource__type { background: var(--c-white); color: var(--c-navy); }

.coach {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--c-white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--coach-accent, var(--c-navy));
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.coach:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.coach__head { display: flex; align-items: center; gap: var(--sp-4); }
.coach__avatar {
  position: relative; flex: none; display: grid; place-items: center;
  width: 4rem; height: 4rem; overflow: hidden;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  color: var(--c-white); background: var(--coach-accent, var(--c-navy)); border-radius: 50%;
  box-shadow: 0 0 0 3px var(--c-white), 0 0 0 4px color-mix(in srgb, var(--coach-accent, var(--c-navy)) 35%, #fff);
}
/* Photo covers the initials; if it fails to load the initials show through. */
.coach__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.coach__initials { position: relative; z-index: -1; }
.coach__name { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; color: var(--text-heading); }
.coach__role { font-size: 0.8125rem; color: var(--text-muted); }
.coach__facts { display: grid; gap: var(--sp-2); font-size: 0.875rem; color: var(--text-muted); }
.coach__fact { display: flex; align-items: center; gap: var(--sp-2); }
.coach__fact svg { flex: none; }
.coach__mail { font-size: 0.8125rem; word-break: break-all; }
.coach__cta { margin-top: auto; }

/* 13. Resource groups (Resume · Interview · Job Search) ----------------- */
.resgroups { display: grid; gap: var(--sp-12); }
.resgroup__head {
  display: flex; align-items: flex-start; gap: var(--sp-4);
  padding-bottom: var(--sp-4); margin-bottom: var(--sp-6);
  border-bottom: 2px solid var(--accent, var(--c-purple));
}
.resgroup__icon {
  flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  color: var(--c-white); background: var(--accent, var(--c-purple)); border-radius: 50%;
}
.resgroup__head > div { flex: 1 1 auto; min-width: 0; }
.resgroup__note { margin: 0.25rem 0 0; font-size: 0.9375rem; color: var(--text-muted); }
.resgroup__count { flex: none; margin-top: 0.375rem; }
@media (max-width: 39.999rem) { .resgroup__count { display: none; } }

/* 13b. Coach picker (request form) ---------------------------------------- */
.coachpick {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: var(--sp-2);
}
.coachpick__item {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding: var(--sp-2) 0.25rem;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-md);
  cursor: pointer; text-align: center;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.coachpick__item img {
  width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--c-white), 0 0 0 3px var(--border);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.coachpick__name { font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600; color: var(--text-heading); }
.coachpick__meta { font-size: 0.6875rem; color: var(--text-muted); }
.coachpick__item:hover { background: var(--surface-subtle); }
.coachpick__item[aria-pressed="true"] { background: var(--c-tint-purple); border-color: var(--c-purple); }
.coachpick__item[aria-pressed="true"] img { box-shadow: 0 0 0 2px var(--c-white), 0 0 0 4px var(--c-purple); }
[data-invalid] .coachpick { outline: 2px solid var(--c-red); outline-offset: 4px; border-radius: var(--r-md); }

/* 14. Forms -------------------------------------------------------------- */
.field { display: grid; gap: var(--sp-2); }
.field__label { font-family: var(--font-display); font-size: 0.875rem; font-weight: 600; color: var(--text-heading); }
.field__req { color: var(--c-red); margin-left: 0.25rem; }
.field__hint { font-size: 0.75rem; color: var(--text-muted); }

.fieldset { display: grid; gap: var(--sp-2); }
.fieldset .field__hint { margin-bottom: var(--sp-1); }
.check-list { display: grid; gap: var(--sp-1); }

.input, .select, .textarea {
  width: 100%; min-height: 2.75rem; padding: 0.6875rem 0.875rem;
  font-family: var(--font-body); font-size: 1rem; color: var(--text-body);
  background: var(--c-white); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--c-blue-light); box-shadow: var(--shadow-focus);
}
.input[aria-invalid="true"] { border-color: var(--c-red); }
.textarea { min-height: 6rem; resize: vertical; line-height: 1.6; }
.textarea[readonly] { background: var(--surface-subtle); font-size: 0.875rem; }

.select {
  appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236f7271' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}

.check { display: flex; gap: var(--sp-3); align-items: flex-start; cursor: pointer; padding: 0.375rem 0; }
.check input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.125rem 0 0; accent-color: var(--c-purple); cursor: pointer; }
.check__desc { display: block; font-size: 0.8125rem; color: var(--text-muted); }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--sp-5); }

/* 15. Alerts ------------------------------------------------------------- */
.alert {
  display: flex; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md); border-top: 4px solid var(--c-blue-light); background: var(--c-tint-blue);
}
.alert__icon { flex: none; color: var(--c-blue-light); margin-top: 0.125rem; }
.alert__title { font-family: var(--font-display); font-weight: 600; color: var(--c-navy); }
.alert__body { font-size: 0.875rem; }
.alert--brand { background: var(--c-tint-purple); border-top-color: var(--c-purple); }
.alert--brand .alert__icon, .alert--brand .alert__title { color: var(--c-purple); }
.alert--success { background: #f1f8e3; border-top-color: var(--c-green); }
.alert--success .alert__icon { color: var(--c-green); }
.alert--success .alert__title { color: #3f5a00; }

/* 15b. Prayer intentions ------------------------------------------------- */
.prayer { display: grid; gap: var(--sp-5); }
.prayer__ask h3 { font-size: clamp(1.25rem, 1rem + 1.1vw, 1.625rem); margin-bottom: var(--sp-2); }
.prayer__ask > p { color: var(--text-muted); max-width: 34ch; margin-bottom: var(--sp-4); }
.facts--stack { margin-top: var(--sp-5); }
.prayer__card {
  position: relative; overflow: hidden;
  padding: var(--sp-5) var(--sp-4);
  background: var(--c-tint-teal);
  border: 1px solid var(--border); border-left: 4px solid var(--c-teal);
  border-radius: var(--r-lg);
}
.prayer__icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: var(--sp-3);
  color: var(--c-teal); background: var(--c-white); border-radius: 50%;
}
.prayer__card h3 { font-size: 1.25rem; margin-bottom: var(--sp-3); }
.prayer__text { display: grid; gap: 0.375rem; margin: 0 0 var(--sp-4); }
.prayer__text span {
  display: block;
  font-family: var(--font-display); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.5; color: var(--text-heading); text-wrap: pretty;
}
.prayer__note { font-size: 0.875rem; color: var(--text-muted); }
@media (min-width: 64rem) {
  .prayer { grid-template-columns: 1fr 1.05fr; gap: var(--sp-6); align-items: start; }
  .prayer__card { padding: var(--sp-6); }
}

/* 16. FAQ ---------------------------------------------------------------- */
.faq-grid { display: grid; gap: var(--sp-8); align-items: start; }
@media (min-width: 64rem) { .faq-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-12); } }

.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex; align-items: center; gap: var(--sp-4);
  min-height: 3.25rem; padding: var(--sp-4) 0;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: var(--text-heading); cursor: pointer; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q span { flex: 1 1 auto; }
.faq__q svg { flex: none; color: var(--c-purple); transition: transform var(--dur) var(--ease); }
.faq__item[open] .faq__q svg { transform: rotate(180deg); }
.faq__a { padding-bottom: var(--sp-5); max-width: 62ch; color: var(--text-muted); }

/* 17. Closing band ------------------------------------------------------- */
.closing { position: relative; isolation: isolate; background: var(--c-navy); color: var(--text-inverse); text-align: center; overflow: hidden; }
.closing__texture { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0.16; }
.closing__inner { padding-block: var(--sp-12); }
@media (min-width: 48rem) { .closing__inner { padding-block: var(--sp-16); } }
.closing h2 { color: var(--c-white); max-width: 44rem; margin-inline: auto; }
.closing p { margin: var(--sp-4) auto 0; max-width: 34rem; color: var(--text-inverse-muted); }
.closing__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-8); }
.closing__actions .btn { flex: 1 1 14rem; }
@media (min-width: 40rem) { .closing__actions .btn { flex: 0 0 auto; } }

/* 18. Footer ------------------------------------------------------------- */
.site-footer { background: var(--c-navy); color: var(--text-inverse-muted); font-size: 0.875rem; }
.site-footer a { color: var(--text-inverse-muted); }
.site-footer a:hover { color: var(--c-white); }
.site-footer h2 { font-size: 1rem; font-weight: 600; color: var(--c-white); margin-bottom: var(--sp-4); }
.site-footer__grid { display: grid; gap: var(--sp-8); padding-block: var(--sp-12) var(--sp-8); }
@media (min-width: 40rem) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-10); } }
.site-footer__logo { height: 3.25rem; width: auto; margin-bottom: var(--sp-5); }
.site-footer__links { display: grid; gap: var(--sp-3); }
.site-footer__bottom { border-top: 1px solid var(--border-inverse); }
.site-footer__bottom-inner {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  padding-block: var(--sp-5); font-size: 0.75rem;
}
.crisis strong { color: var(--c-white); }

/* 19. Modal -------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 150;
  display: none; align-items: flex-end; justify-content: center; padding: 0;
  background: rgba(0, 43, 73, 0.6); backdrop-filter: saturate(140%) blur(8px);
}
.modal.is-open { display: flex; }
@media (min-width: 48rem) { .modal { align-items: center; padding: var(--sp-6); } }

.modal__panel {
  width: 100%; max-width: 41rem; max-height: 92vh; overflow-y: auto;
  padding: var(--sp-6) var(--sp-6) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
  background: var(--c-white); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-xl);
}
@media (min-width: 48rem) { .modal__panel { max-height: 86vh; padding: var(--sp-8); border-radius: var(--r-xl); } }

.modal__head { display: flex; align-items: flex-start; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.modal__head h2 { flex: 1 1 auto; font-size: 1.375rem; }
.modal__desc { margin-top: 0.375rem; font-size: 0.875rem; color: var(--text-muted); }
.modal__close {
  flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  background: transparent; border: 0; border-radius: 50%; color: var(--text-muted); cursor: pointer;
}
.modal__close:hover { background: var(--surface-subtle); color: var(--text-heading); }

.modal__body { display: grid; gap: var(--sp-5); }
.modal__foot { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: flex-end; margin-top: var(--sp-8); }
.modal__foot .btn { flex: 1 1 auto; }
@media (min-width: 40rem) { .modal__foot .btn { flex: 0 0 auto; } }

/* 20. Motion preferences & print ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important;
  }
  .card:hover, .coach:hover, .offer__card:hover, .btn:hover { transform: none; }
}

@media print {
  .site-header, .nav, .tabbar, .closing, .modal, .btn { display: none !important; }
  body { color: #000; padding-bottom: 0; }
  .hero, .site-footer { background: #fff !important; color: #000 !important; }
  .hero__media, .hero::after, .closing__texture { display: none; }
  .hero h1, .site-footer h2 { color: #000 !important; }
  details { break-inside: avoid; }
  details:not([open]) > *:not(summary) { display: block !important; }
}
