/* ==========================================================================
   Phoenix Mental Health Services — phxmh.com
   Design system layered on Bootstrap 5
   Palette: dark moody rose + hot pink on warm blush
   (Original teal/ember palette backed up in styles-backup-teal.css)
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Deep darks (grounding — headers, footer, dark sections) */
  --phx-teal-900: #0A0908;
  --phx-teal-800: #140F0D;
  --phx-teal-700: #1A1210;
  --phx-teal-600: #2A1E1C;
  --phx-teal-500: #5F272E;
  --phx-teal-300: #A7736F;
  --phx-teal-100: #3D2A27;

  /* Rose / hot pink (flame — CTAs, accents) */
  --phx-ember-700: #761514;
  --phx-ember-600: #C0215B;
  --phx-ember-500: #CC5143;
  --phx-amber-400: #D77778;
  --phx-amber-200: #4A2A28;
  --phx-amber-100: #2E1C1A;

  /* Dark neutrals (backgrounds, borders) */
  --phx-sand-50:  #110D0C;
  --phx-sand-100: #1A1412;
  --phx-sand-200: #2E2220;
  --phx-sand-300: #3D2E2C;

  /* Text — light on dark */
  --phx-ink:   #F5E4DA;
  --phx-body:  #C5A49A;
  --phx-muted: #8A6E66;
  --phx-on-dark: #F5E4DA;
  --phx-on-dark-muted: #C5A49A;

  /* Card/surface color */
  --phx-surface: #1A1412;

  /* System */
  --phx-focus: #C0215B;
  --phx-radius-sm: 10px;
  --phx-radius: 16px;
  --phx-radius-lg: 24px;
  --phx-radius-xl: 32px;

  --phx-shadow-sm: 0 1px 2px rgba(0, 0, 0, .20), 0 2px 8px rgba(0, 0, 0, .15);
  --phx-shadow: 0 2px 4px rgba(0, 0, 0, .15), 0 12px 32px -12px rgba(0, 0, 0, .40);
  --phx-shadow-lg: 0 4px 8px rgba(0, 0, 0, .15), 0 28px 60px -24px rgba(0, 0, 0, .50);

  --phx-serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --phx-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --phx-header-h: 84px;

  /* Bootstrap overrides */
  --bs-primary: #C0215B;
  --bs-primary-rgb: 192, 33, 91;
  --bs-body-color: var(--phx-body);
  --bs-body-bg: var(--phx-sand-50);
  --bs-body-font-family: var(--phx-sans);
  --bs-border-color: var(--phx-sand-200);
  --bs-link-color: var(--phx-amber-400);
  --bs-link-hover-color: var(--phx-ember-600);
  --bs-link-color-rgb: 215, 119, 120;
  --bs-link-hover-color-rgb: 192, 33, 91;

  /* Bootstrap component bg overrides for dark mode */
  --bs-secondary-bg: var(--phx-sand-100);
  --bs-tertiary-bg: var(--phx-sand-200);
  --bs-card-bg: var(--phx-surface);
  --bs-accordion-bg: var(--phx-surface);
  --bs-accordion-btn-bg: var(--phx-surface);
  --bs-accordion-active-bg: var(--phx-sand-100);
  --bs-accordion-active-color: var(--phx-ink);
  --bs-accordion-btn-color: var(--phx-ink);
  --bs-modal-bg: var(--phx-surface);
}

/* ---------- 2. Base ------------------------------------------------------ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--phx-header-h) + 16px);
  overflow-x: clip;
}

.container, .container-fluid { padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 576px) { .container { padding-left: 2rem; padding-right: 2rem; } }

body {
  font-family: var(--phx-sans);
  color: var(--phx-body);
  background-color: var(--phx-sand-50);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .display-serif {
  font-family: var(--phx-serif);
  color: var(--phx-ink);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.15;
  text-wrap: balance;
}
p, li { text-wrap: pretty; }
h5, h6 { font-family: var(--phx-sans); color: var(--phx-ink); font-weight: 600; }

h1, .h1-display { font-size: clamp(2.35rem, 5.2vw, 3.9rem); line-height: 1.06; letter-spacing: -.028em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); letter-spacing: -.022em; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); }

p { max-width: 68ch; }
.lead {
  font-size: clamp(1.075rem, 1.55vw, 1.3rem);
  line-height: 1.62;
  color: var(--phx-body);
  font-weight: 400;
}

a { text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease; }

::selection { background: var(--phx-ember-600); color: #fff; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 2000;
  background: var(--phx-teal-800); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--phx-radius-sm) var(--phx-radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- 3. Utilities ------------------------------------------------- */
.text-ink    { color: var(--phx-ink) !important; }
.text-muted-warm { color: var(--phx-muted) !important; }
.text-ember  { color: var(--phx-ember-600) !important; }
.text-teal   { color: var(--phx-teal-300) !important; }
.bg-sand     { background-color: var(--phx-sand-50) !important; }
.bg-sand-100 { background-color: var(--phx-sand-100) !important; }
.bg-cream    { background-color: var(--phx-surface) !important; }
.bg-deep     { background-color: var(--phx-teal-900) !important; color: var(--phx-on-dark); }
.bg-deep h1, .bg-deep h2, .bg-deep h3, .bg-deep h4 { color: #fff; }
.bg-deep p, .bg-deep li { color: var(--phx-on-dark-muted); }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section-sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.container-tight { max-width: 780px; }
.measure { max-width: 62ch; }
.fw-500 { font-weight: 500; }

.rule {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, var(--phx-sand-300), transparent);
  opacity: .9; margin: 0;
}

/* Eyebrow label with flame tick */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--phx-sans);
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--phx-ember-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 10px; height: 14px; flex: none;
  background: currentColor;
  -webkit-mask: var(--phx-flame-mask) center/contain no-repeat;
  mask: var(--phx-flame-mask) center/contain no-repeat;
}
.bg-deep .eyebrow { color: var(--phx-amber-400); }

:root {
  --phx-flame-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 28'%3E%3Cpath d='M10 1C10 9 17 11.5 17 19A7 7 0 0 1 3 19C3 12 6.5 9.5 10 1Z'/%3E%3C/svg%3E");
}

/* ---------- 4. Buttons --------------------------------------------------- */
.btn {
  font-family: var(--phx-sans);
  font-weight: 600;
  font-size: .975rem;
  border-radius: 999px;
  padding: .8rem 1.6rem;
  letter-spacing: -.005em;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease;
  border-width: 1.5px;
}
.btn:active { transform: translateY(1px); }

.btn-ember {
  background: linear-gradient(135deg, var(--phx-ember-600), var(--phx-ember-500) 55%, var(--phx-amber-400));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 6px rgba(192, 33, 91, .25), 0 12px 26px -12px rgba(192, 33, 91, .50);
}
.btn-ember:hover, .btn-ember:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--phx-ember-700), var(--phx-ember-600) 55%, var(--phx-ember-500));
  box-shadow: 0 3px 10px rgba(192, 33, 91, .30), 0 18px 34px -14px rgba(192, 33, 91, .55);
  transform: translateY(-2px);
}

.btn-deep {
  background: var(--phx-sand-300); border-color: var(--phx-sand-300); color: #fff;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6);
}
.btn-deep:hover, .btn-deep:focus { background: var(--phx-sand-200); border-color: var(--phx-sand-200); color: #fff; transform: translateY(-2px); }

.btn-outline-deep {
  border-color: var(--phx-sand-300); color: var(--phx-ink); background: transparent;
}
.btn-outline-deep:hover, .btn-outline-deep:focus {
  border-color: var(--phx-sand-300); background: var(--phx-sand-300); color: #fff; transform: translateY(-2px);
}
.bg-deep .btn-outline-deep { border-color: rgba(245,228,218,.25); color: var(--phx-on-dark); }
.bg-deep .btn-outline-deep:hover { background: var(--phx-ink); color: var(--phx-teal-900); border-color: var(--phx-ink); }

/* Selected state for buttons used as tabs/pills (Bootstrap toggles .active) */
.btn-outline-deep.active,
.btn-outline-deep.active:hover,
.btn-outline-deep[aria-selected="true"] {
  background: var(--phx-sand-300);
  border-color: var(--phx-sand-300);
  color: #fff;
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .7);
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: transparent; }

.btn-lg { padding: .95rem 2rem; font-size: 1.02rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .875rem; }

/* Quiet text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--phx-amber-400); text-decoration: none;
}
.link-arrow i { transition: transform .22s cubic-bezier(.2,.7,.3,1); font-size: .8em; }
.link-arrow:hover { color: var(--phx-ember-600); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- 5. Header / nav --------------------------------------------- */
.phx-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(17, 13, 12, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.phx-header.is-stuck {
  border-bottom-color: var(--phx-sand-200);
  box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .8);
  background: rgba(17, 13, 12, .95);
}
.phx-header .navbar { padding-top: 1.1rem !important; padding-bottom: 1.1rem !important; }

.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--phx-ink);
}
.brand-mark { width: 38px; height: 38px; flex: none; object-fit: contain; }
img.brand-mark { width: auto; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--phx-serif); font-size: 1.19rem; font-weight: 600;
  letter-spacing: -.02em; color: var(--phx-ink);
}
.brand-sub {
  font-size: .625rem; letter-spacing: .19em; text-transform: uppercase;
  color: var(--phx-muted); font-weight: 600;
}

.phx-nav .nav-link {
  font-size: .955rem; font-weight: 500; color: var(--phx-body);
  padding: .5rem .9rem; border-radius: 999px; position: relative;
}
.phx-nav .nav-link:hover { color: var(--phx-ink); }
.phx-nav .nav-link.active { color: var(--phx-ink); font-weight: 600; }
.phx-nav .nav-link.active::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .18rem;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--phx-ember-600), var(--phx-amber-400));
}
.navbar-toggler { border: 1.5px solid var(--phx-sand-300); border-radius: 12px; padding: .45rem .65rem; color: var(--phx-ink); }
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
  .phx-nav { padding: .75rem 0 1rem; }
  .phx-nav .nav-link { padding: .65rem .25rem; }
  .phx-nav .nav-link.active::after { left: .25rem; right: auto; width: 22px; }
  .phx-header .navbar-collapse { border-top: 1px solid var(--phx-sand-200); margin-top: .85rem; }
}

/* ---------- 6. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 78% -8%, var(--phx-amber-100) 0%, transparent 62%),
    radial-gradient(900px 520px at 8% 108%, var(--phx-teal-100) 0%, transparent 60%),
    var(--phx-sand-50);
}
.hero-sub {
  padding: clamp(2.6rem, 5vw, 4.2rem) 0 clamp(2.4rem, 4.5vw, 3.4rem);
}
.hero-eyebrow-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--phx-surface); border: 1px solid var(--phx-sand-200);
  border-radius: 999px; padding: .42rem 1rem .42rem .55rem;
  font-size: .845rem; font-weight: 500; color: var(--phx-body);
  box-shadow: var(--phx-shadow-sm);
}
.hero-eyebrow-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--phx-ember-600);
  box-shadow: 0 0 0 4px rgba(192, 33, 91, .2);
  flex: none; margin-left: .3rem;
}

.hero-figure { position: relative; display: grid; place-items: center; }
.hero-orb {
  position: absolute; inset: -12% -6% -6% -6%;
  background: radial-gradient(circle at 50% 55%, rgba(192, 33, 91, .15), rgba(192, 33, 91, 0) 62%);
  filter: blur(6px); pointer-events: none;
}
/* Brand lockup as the hero image */
.hero-logo {
  position: relative; z-index: 1;
  width: min(100%, 400px); height: auto;
  grid-area: 1 / 1;
}
/* Dark crest version — larger, softened, so it fills the hero's open space */
.hero-crest {
  width: min(100%, 560px);
  opacity: .88;
}
.hero-sparks {
  grid-area: 1 / 1;
  width: min(100%, 460px); height: auto;
  max-width: 100%;
  pointer-events: none; z-index: 0;
}
/* Brand tile — the lockup needs a light ground to stay legible */
.brand-tile {
  display: inline-block;
  background: #EDE2D5;
  border-radius: var(--phx-radius);
  padding: 1rem 1.25rem;
  line-height: 0;
}
.brand-tile img { width: 168px; height: auto; }
.badge-mark { width: 74px; height: auto; flex: none; }

/* Trust strip */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 1.1rem 2rem;
  align-items: center; color: var(--phx-muted); font-size: .9rem;
}
.trust-strip .trust-item { display: inline-flex; align-items: center; gap: .5rem; }
.trust-strip i { color: var(--phx-ember-600); }

/* ---------- 7. Cards ----------------------------------------------------- */
.phx-card {
  background: var(--phx-surface);
  border: 1px solid var(--phx-sand-200);
  border-radius: var(--phx-radius-lg);
  padding: 1.9rem 1.75rem;
  position: relative;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease, border-color .28s ease;
}
.phx-card:hover { transform: translateY(-4px); box-shadow: var(--phx-shadow); border-color: var(--phx-sand-300); }
.phx-card h3 { font-size: 1.28rem; margin-bottom: .6rem; }
.phx-card p:last-child { margin-bottom: 0; }
.phx-card--link { text-decoration: none; display: block; color: inherit; }
.phx-card--flat:hover { transform: none; }

.phx-card--feature { padding: 2.25rem 2rem; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 1.15rem;
  background: linear-gradient(140deg, var(--phx-amber-100), var(--phx-sand-200));
  border: 1px solid var(--phx-sand-300);
  color: var(--phx-ember-600);
}
.icon-badge--teal {
  background: linear-gradient(140deg, var(--phx-teal-100), var(--phx-sand-200));
  color: var(--phx-teal-300);
}
.icon-badge--sm { width: 42px; height: 42px; border-radius: 13px; font-size: 1.02rem; margin-bottom: .9rem; }

.bg-deep .icon-badge, .cta-panel .icon-badge {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(245, 228, 218, .12);
  color: var(--phx-amber-400);
}

.tag {
  display: inline-block;
  font-size: .74rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
  background: var(--phx-teal-100); color: var(--phx-amber-400);
}
.tag--ember { background: var(--phx-amber-100); color: var(--phx-amber-400); }
.tag--quiet { background: var(--phx-sand-100); color: var(--phx-muted); }

/* ---------- 8. Steps ----------------------------------------------------- */
.steps { position: relative; list-style: none; padding: 0; margin: 0; }
.steps > li { position: relative; padding-left: 4.25rem; padding-bottom: 2.5rem; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before {
  content: attr(data-step);
  position: absolute; left: 0; top: -2px;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--phx-serif); font-size: 1.1rem; font-weight: 600;
  color: var(--phx-ember-600); background: var(--phx-surface);
  border: 1.5px solid var(--phx-sand-300);
  box-shadow: var(--phx-shadow-sm);
  z-index: 1;
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 23px; top: 46px; bottom: .35rem;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--phx-amber-200), var(--phx-sand-200));
}
.steps h3 { font-size: 1.2rem; margin-bottom: .4rem; }

/* ---------- 9. Accordion / FAQ ------------------------------------------ */
.accordion { --bs-accordion-border-color: var(--phx-sand-200); --bs-accordion-border-radius: var(--phx-radius); }
.accordion-item {
  background: var(--phx-surface);
  border: 1px solid var(--phx-sand-200) !important;
  border-radius: var(--phx-radius) !important;
  margin-bottom: .85rem;
  overflow: hidden;
}
.accordion-button {
  font-family: var(--phx-sans);
  font-weight: 600; font-size: 1.03rem; color: var(--phx-ink);
  background: var(--phx-surface); padding: 1.2rem 1.4rem;
}
.accordion-button:not(.collapsed) { background: var(--phx-sand-100); color: var(--phx-ink); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-button::after {
  background-image: none;
  content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  font-size: .8rem; color: var(--phx-ember-600);
  display: flex; align-items: center; justify-content: center;
  width: 1.25rem; height: 1.25rem;
  transition: transform .25s ease;
}
.accordion-body { padding: .25rem 1.4rem 1.4rem; color: var(--phx-body); }

/* ---------- 10. Forms ---------------------------------------------------- */
.form-label { font-weight: 600; font-size: .9rem; color: var(--phx-ink); margin-bottom: .4rem; }
.form-control, .form-select {
  border-radius: var(--phx-radius-sm);
  border: 1.5px solid var(--phx-sand-200);
  padding: .78rem 1rem;
  font-size: 1rem;
  background: var(--phx-surface);
  color: var(--phx-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control::placeholder { color: var(--phx-muted); }
.form-control:focus, .form-select:focus {
  border-color: var(--phx-ember-600);
  box-shadow: 0 0 0 4px rgba(192, 33, 91, .18);
}
.form-text { font-size: .845rem; color: var(--phx-muted); }
.form-check-input { border-color: var(--phx-sand-300); width: 1.15em; height: 1.15em; margin-top: .22em; }
.form-check-input:checked { background-color: var(--phx-ember-600); border-color: var(--phx-ember-600); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(192, 33, 91, .18); border-color: var(--phx-ember-600); }
.form-check-label { font-size: .95rem; }

.form-panel {
  background: var(--phx-surface); border: 1px solid var(--phx-sand-200);
  border-radius: var(--phx-radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--phx-shadow-sm);
}

/* ---------- 11. Notices -------------------------------------------------- */
.notice {
  border-radius: var(--phx-radius);
  padding: 1.15rem 1.35rem;
  display: flex; gap: 1rem; align-items: flex-start;
  font-size: .95rem; line-height: 1.6;
}
.notice i { font-size: 1.05rem; margin-top: .18rem; flex: none; }
.notice p { max-width: none; margin-bottom: 0; }
.notice--info { background: var(--phx-teal-100); color: var(--phx-body); }
.notice--info i { color: var(--phx-teal-300); }
.notice--warn { background: var(--phx-amber-100); color: var(--phx-amber-400); border: 1px solid var(--phx-amber-200); }
.notice--warn i { color: var(--phx-ember-600); }
.notice--dev { background: var(--phx-sand-200); border: 1px dashed var(--phx-sand-300); color: var(--phx-body); }
.notice--dev i { color: var(--phx-amber-400); }
.notice a { color: inherit; font-weight: 600; }

/* ---------- 12. Crisis band --------------------------------------------- */
.crisis-band {
  background: var(--phx-teal-800);
  color: var(--phx-on-dark);
  padding: 2.25rem 0;
}
.crisis-band h2 { color: #fff; font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: .35rem; }
.crisis-band p { color: var(--phx-on-dark-muted); margin-bottom: 0; font-size: .96rem; }
.crisis-list { list-style: none; padding: 0; margin: 0; }
.crisis-list a {
  color: #fff; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.crisis-list a:hover { color: var(--phx-amber-400); border-color: var(--phx-amber-400); }
.crisis-list li { display: flex; gap: .7rem; align-items: baseline; font-size: .96rem; color: var(--phx-on-dark-muted); }
.crisis-list i { color: var(--phx-amber-400); font-size: .85rem; }

/* ---------- 13. Footer --------------------------------------------------- */
.phx-footer { background: var(--phx-teal-900); color: var(--phx-on-dark-muted); padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.phx-footer .brand-name { color: #fff; }
.phx-footer .brand-sub { color: var(--phx-teal-300); }
.phx-footer h4 {
  font-family: var(--phx-sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--phx-teal-300);
  margin-bottom: 1.1rem;
}
.phx-footer a { color: var(--phx-on-dark-muted); text-decoration: none; }
.phx-footer a:hover { color: #fff; }
.phx-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .95rem; }
.phx-footer p { font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid rgba(245, 228, 218, .1);
  margin-top: 2.75rem; padding-top: 1.5rem;
  font-size: .855rem; color: var(--phx-muted);
}
.footer-bottom p { max-width: none; }
.social-row { display: flex; gap: .6rem; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(245, 228, 218, .15); color: var(--phx-on-dark-muted);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.social-row a:hover { background: var(--phx-ember-600); border-color: var(--phx-ember-600); color: #fff; transform: translateY(-2px); }

/* ---------- 14. Misc components ----------------------------------------- */
.stat { display: flex; flex-direction: column; gap: .1rem; }
.stat-num { font-family: var(--phx-serif); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600; color: var(--phx-ink); line-height: 1; }
.stat-label { font-size: .875rem; color: var(--phx-muted); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; }
.check-list i { color: var(--phx-ember-600); margin-top: .32rem; font-size: .9rem; flex: none; }

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  border: 1px solid var(--phx-sand-200); background: var(--phx-surface);
  border-radius: 999px; padding: .42rem .95rem; font-size: .875rem;
  color: var(--phx-body);
}

.quote {
  font-family: var(--phx-serif); font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.45; color: var(--phx-ink); font-weight: 400;
}

.embed-slot {
  border: 2px dashed var(--phx-sand-300);
  border-radius: var(--phx-radius-lg);
  background:
    repeating-linear-gradient(135deg, rgba(46, 34, 32, .5) 0 12px, rgba(26, 20, 18, .5) 12px 24px);
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  text-align: center;
}
.embed-slot .icon-badge { margin-inline: auto; }
.embed-slot code {
  background: var(--phx-sand-300); color: var(--phx-amber-400);
  padding: .18rem .45rem; border-radius: 6px; font-size: .85em;
}

.doc-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.05rem 1.25rem;
  border: 1px solid var(--phx-sand-200); border-radius: var(--phx-radius);
  background: var(--phx-surface); text-decoration: none; color: inherit;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.doc-row:hover { border-color: var(--phx-sand-300); box-shadow: var(--phx-shadow-sm); transform: translateX(3px); color: inherit; }
.doc-row .doc-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--phx-amber-100); color: var(--phx-ember-600);
}
.doc-row .doc-meta { font-size: .845rem; color: var(--phx-muted); }
.doc-row .doc-cta { margin-left: auto; color: var(--phx-amber-400); font-weight: 600; font-size: .9rem; white-space: nowrap; }

/* Rate rows — published fees */
.rate-list { display: grid; gap: .85rem; }
.rate-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.25rem;
  background: var(--phx-surface); border: 1px solid var(--phx-sand-200);
  border-radius: var(--phx-radius); padding: 1.15rem 1.35rem;
}
.rate-row .rate-name {
  font-weight: 600; color: var(--phx-ink); font-size: 1.04rem;
  flex: 1 1 auto; min-width: 12rem;
}
.rate-row .rate-len { font-size: .875rem; color: var(--phx-muted); font-weight: 500; }
.rate-row .rate-price {
  font-family: var(--phx-serif); font-size: 1.32rem; font-weight: 600;
  color: var(--phx-ink); margin-left: auto; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rate-row .rate-note {
  flex: 1 0 100%; margin: .45rem 0 0; font-size: .945rem; color: var(--phx-body);
  max-width: 74ch;
}
.rate-row--accent { border-left: 3px solid var(--phx-amber-400); }
.rate-row--legal .rate-price { color: var(--phx-ember-600); }

.bg-deep .rate-row {
  background: rgba(255,255,255,.05); border-color: rgba(245, 228, 218, .1);
}
.bg-deep .rate-row .rate-name { color: #fff; }
.bg-deep .rate-row .rate-price { color: var(--phx-amber-400); }
.bg-deep .rate-row .rate-note, .bg-deep .rate-row .rate-len { color: var(--phx-on-dark-muted); }

/* Insurance panel chips */
.panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.panel-chip {
  display: flex; align-items: center; gap: .65rem;
  background: var(--phx-surface); border: 1px solid var(--phx-sand-200);
  border-radius: var(--phx-radius-sm); padding: .7rem .95rem;
  font-size: .95rem; font-weight: 500; color: var(--phx-ink);
}
.panel-chip i { color: var(--phx-ember-600); font-size: .85rem; }

/* CTA panel */
.cta-panel {
  border-radius: var(--phx-radius-xl);
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(192, 33, 91, .18), rgba(192, 33, 91, 0) 65%),
    linear-gradient(140deg, var(--phx-teal-800), var(--phx-teal-900));
  color: var(--phx-on-dark);
  padding: clamp(2.25rem, 5vw, 3.75rem);
  position: relative; overflow: hidden;
}
.cta-panel h2 { color: #fff; }
.cta-panel p { color: var(--phx-on-dark-muted); }
.cta-flame {
  position: absolute; right: 28px; bottom: -54px;
  width: 210px; opacity: .13; pointer-events: none;
}
@media (max-width: 991.98px) { .cta-flame { right: -34px; bottom: -70px; width: 170px; } }

/* Map-ish coverage block */
.coverage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .55rem 1rem; }
.coverage-grid li { display: flex; gap: .5rem; align-items: center; font-size: .93rem; color: var(--phx-body); }
.coverage-grid i { color: var(--phx-teal-300); font-size: .6rem; }

/* ---------- 15. Animation states ---------------------------------------- */
[data-reveal] { opacity: 0; }
.no-anim [data-reveal] { opacity: 1 !important; transform: none !important; }

.flame-svg .flame-core { transform-origin: 50% 85%; }
.flame-svg .flame-spark { transform-origin: 50% 50%; }

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

/* ---------- 16. Print ---------------------------------------------------- */
@media print {
  .phx-header, .phx-footer, .crisis-band, .btn, .embed-slot { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}
