/* ==========================================================================
   Aries Health and Wellness — Design System
   Palette derived from the clinic logo (#001b37) and the WorldLink Medical
   Advanced BHRT Certified seal (#128e60 / #afcb4c).
   ========================================================================== */

/* ---------- 0. Fonts (self-hosted) ----------
   Plus Jakarta Sans variable, 400–800 in a single file per subset (~49 KB total).
   Self-hosted rather than loaded from Google Fonts: one less origin to connect
   to, no CSP exception needed, and no visitor IP addresses sent to a third party
   — which matters more than usual on a healthcare site.
   Licensed under the SIL Open Font License 1.1. See CREDITS.md. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Fraunces — display serif for headings. Self-hosted, SIL OFL 1.1. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-600-italic.woff2") format("woff2");
}

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --navy:        #001b37;
  --navy-800:    #062442;
  --navy-700:    #0e3054;
  --navy-600:    #1c4266;
  --accent:      #0e7a55;   /* 5.33:1 on white — AA for body text */
  --accent-600:  #0a6144;
  --accent-700:  #075039;
  --accent-tint: #e8f4ee;
  --accent-rgb:  14, 122, 85;
  --lime:        #afcb4c;   /* accent used on navy backgrounds */

  /* Neutrals */
  --white: #ffffff;
  --bone:  #fbfaf7;
  --sand:  #f4efe7;
  --sand-deep: #ebe3d7;
  --line:  #e6e0d6;
  --line-soft: #f0ebe3;
  --text:  #2c3a47;
  --muted: #5d6b79;

  /* Type */
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.89rem);
  --step-0:  clamp(1rem, 0.97rem + 0.16vw, 1.09rem);
  --step-1:  clamp(1.15rem, 1.09rem + 0.3vw, 1.33rem);
  --step-2:  clamp(1.35rem, 1.24rem + 0.55vw, 1.7rem);
  --step-3:  clamp(1.6rem, 1.38rem + 1.1vw, 2.3rem);
  --step-4:  clamp(1.95rem, 1.5rem + 2.2vw, 3.1rem);
  --step-5:  clamp(2.4rem, 1.6rem + 3.9vw, 4.4rem);

  /* Space */
  --gutter: clamp(1.15rem, 0.8rem + 1.7vw, 2.5rem);
  --section: clamp(3.75rem, 2.4rem + 6.5vw, 7.5rem);
  --wrap: 1200px;
  --wrap-narrow: 780px;

  /* Effects */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(0, 27, 55, .05), 0 2px 8px rgba(0, 27, 55, .04);
  --shadow:    0 2px 4px rgba(0, 27, 55, .04), 0 12px 32px rgba(0, 27, 55, .07);
  --shadow-lg: 0 4px 8px rgba(0, 27, 55, .05), 0 24px 60px rgba(0, 27, 55, .11);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 118px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--navy);
  text-wrap: balance;
}
h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -0.018em; line-height: 1.04; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--navy); color: #fff; }

/* ---------- 3. Layout ---------- */
.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - (var(--gutter) * 2), var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .62); }
.section--bone { background: var(--bone); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #cfd9e4; }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  background: var(--navy); color: #fff; padding: .8rem 1.4rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm); z-index: 200; font-weight: 600;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center;
  font-size: var(--step--1); font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.section--navy .eyebrow { color: var(--lime); }

.lead { font-size: var(--step-1); line-height: 1.6; color: var(--muted); }
.section--navy .lead { color: #b6c4d3; }
.measure { max-width: 68ch; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .measure { margin-inline: auto; }
.section-head { margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 100px;
  font-weight: 700; font-size: var(--step-0); letter-spacing: -.01em;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease),
              box-shadow .22s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(var(--accent-rgb), .24); }
.btn--primary:hover { background: var(--accent-600); box-shadow: 0 10px 26px rgba(var(--accent-rgb), .3); }

.btn--navy { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(0,27,55,.2); }
.btn--navy:hover { background: var(--navy-700); }

.btn--ghost { border-color: var(--line); color: var(--navy); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sand); }

.btn--outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn--lg { padding: 1.1rem 2.2rem; font-size: var(--step-1); }
.btn--sm { padding: .65rem 1.25rem; font-size: var(--step--1); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.center .btn-row { justify-content: center; }

.arrow { transition: transform .22s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- 6. Header / Navigation ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.hdr.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(0,27,55,.06); }
.hdr__inner {
  display: flex; align-items: center; gap: 1.25rem;
  height: var(--nav-h);
  width: min(100% - (var(--gutter) * 2), 1320px); margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; flex-shrink: 0; }
/* Logo at its largest reviewed size; --nav-h grows to match so it never crowds
   the 118px bar. */
.brand img { width: 110px; height: 110px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.08; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.42rem;
  color: var(--navy); letter-spacing: -.01em;
}
.brand__sub {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .8rem; border-radius: 8px;
  font-size: .925rem; font-weight: 600; color: var(--navy);
  text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--sand); }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__caret { transition: transform .2s var(--ease); }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__item { position: relative; }
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  min-width: 268px; padding: .6rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  /* Same rule as the mobile drawer: flip visibility instantly on open and only
     defer it on close, so the links inside are focusable the moment it opens. */
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.nav__item.is-open .nav__panel {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear 0s;
}
.nav__panel a {
  display: block; padding: .62rem .8rem; border-radius: var(--r-sm);
  color: var(--navy); font-weight: 600; font-size: .92rem; text-decoration: none;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.nav__panel a:hover { background: var(--accent-tint); color: var(--accent-700); }
.nav__panel small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; line-height: 1.45; }

.hdr__cta { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

.burger {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  align-items: center; justify-content: center; color: var(--navy);
}
.burger:hover { background: var(--sand); }
.burger span {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .25s var(--ease), background-color .1s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .25s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: #fff; padding: 1.5rem var(--gutter) 3rem;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); visibility: hidden;
  /* Hide only AFTER the slide-out finishes; never interpolate visibility, or the
     panel is still `hidden` when we try to move focus into it. */
  transition: transform .32s var(--ease), visibility 0s linear .32s;
}
.drawer.is-open {
  transform: translateX(0); visibility: visible;
  transition: transform .32s var(--ease), visibility 0s linear 0s;
}
.drawer__group { border-bottom: 1px solid var(--line-soft); }
.drawer__top {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 1.05rem .25rem; font-size: 1.08rem; font-weight: 700; color: var(--navy);
  text-decoration: none; text-align: left;
}
.drawer__sub { list-style: none; padding: 0 0 .75rem .25rem; margin: 0; display: none; }
.drawer__group.is-open .drawer__sub { display: block; }
.drawer__group.is-open .nav__caret { transform: rotate(180deg); }
.drawer__sub a {
  display: block; padding: .58rem 0 .58rem 1rem; color: var(--muted);
  font-weight: 600; font-size: .98rem; text-decoration: none;
  border-left: 2px solid var(--line);
}
.drawer__sub a:hover { color: var(--accent); border-left-color: var(--accent); }
.drawer__cta { margin-top: 1.75rem; display: grid; gap: .75rem; }

@media (max-width: 1080px) {
  .nav, .hdr__cta .btn--ghost { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 560px) {
  .brand img { width: 76px; height: 76px; }
  .brand__name { font-size: 1.18rem; }
  .hdr__cta { gap: .4rem; }
  .hdr__cta .btn { padding: .62rem .95rem; font-size: .8rem; }
  .hdr__cta .btn .arrow { display: none; }
  .brand__sub { display: none; }
}
@media (max-width: 400px) {
  .brand { gap: 0; }
  .brand__text { display: none; }
}

/* ---------- 7. Hero ---------- */
.hero { position: relative; background: var(--bone); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.02fr .98fr; align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  padding-block: clamp(3rem, 2rem + 5vw, 6.25rem);
}
.hero__copy { max-width: 34rem; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2.1rem; max-width: 30rem; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 30%;
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute; bottom: -22px; left: -22px;
  background: #fff; border-radius: var(--r-lg); padding: .9rem 1.15rem;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .8rem;
  max-width: 280px;
}
.hero__badge img { width: 84px; height: auto; flex-shrink: 0; }
.hero__badge span { font-size: .84rem; font-weight: 700; color: var(--navy); line-height: 1.35; }
.hero__badge small { display: block; font-weight: 600; color: var(--muted); font-size: .76rem; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; margin-top: 2.4rem;
  padding-top: 1.9rem; border-top: 1px solid var(--line);
}
.hero__trust div { display: flex; align-items: center; gap: .55rem; font-size: .875rem; font-weight: 600; color: var(--navy); }
.hero__trust svg { color: var(--accent); flex-shrink: 0; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero__copy { max-width: 100%; }
  .hero__media img { aspect-ratio: 4 / 3.1; object-position: center 28%; }
  .hero__badge { left: auto; right: 12px; bottom: -18px; }
}
@media (max-width: 480px) { .hero__badge { display: none; } }

/* Interior page hero */
.phero { background: var(--navy); color: #b6c4d3; position: relative; overflow: hidden; }
.phero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 380px at 82% 8%, rgba(var(--accent-rgb), .28), transparent 65%);
  pointer-events: none;
}
.phero__inner { position: relative; z-index: 1; padding-block: clamp(3.25rem, 2rem + 6vw, 6rem); }
.phero h1 { color: #fff; margin-bottom: 1.15rem; }
.phero .lead { color: #b6c4d3; max-width: 60ch; }
.phero .btn-row { margin-top: 2.1rem; }
.phero--split .phero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center;
}
.phero--split img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .phero--split .phero__inner { grid-template-columns: 1fr; } }

/* Breadcrumb */
.crumbs { font-size: .82rem; color: #8fa3b8; margin-bottom: 1.1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.crumbs a { color: #8fa3b8; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; opacity: .5; }
.crumbs [aria-current] { color: #fff; }

/* ---------- 8. Grids & cards ---------- */
.grid { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 1.1rem + .9vw, 2rem);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .96rem; }
a.card { text-decoration: none; display: block; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }

.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent-700); margin-bottom: 1.15rem;
}
.card__link {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.1rem;
  font-weight: 700; font-size: .9rem; color: var(--accent);
}
a.card:hover .card__link .arrow { transform: translateX(4px); }

/* Symptom cards */
.symptom {
  display: flex; align-items: center; gap: .9rem; padding: 1.05rem 1.2rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; color: var(--navy); font-weight: 650; font-size: .95rem;
  line-height: 1.35;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.symptom:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--accent-700); }
.symptom__ic {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px;
  display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-700);
}
@media (prefers-reduced-motion: reduce) { .symptom:hover { transform: none; } }

/* Treatment cards with image */
.tcard {
  display: block; text-decoration: none; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.tcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tcard__img { aspect-ratio: 16/10; overflow: hidden; background: var(--sand); }
/* Bias the crop upward so faces survive the 16:10 letterbox on portrait sources. */
.tcard__img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  transition: transform .5s var(--ease);
}
.tcard:hover .tcard__img img { transform: scale(1.045); }
.tcard__body { padding: clamp(1.3rem, 1rem + .9vw, 1.85rem); }
.tcard__body p { color: var(--muted); font-size: .95rem; margin-top: .5rem; }
@media (prefers-reduced-motion: reduce) {
  .tcard:hover { transform: none; }
  .tcard:hover .tcard__img img { transform: none; }
}

/* ---------- 9. Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.35rem, 1rem + 1vw, 2rem);
}
.step__n {
  counter-increment: step; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; flex-shrink: 0;
}
.step__n::before { content: counter(step); }
.step h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .96rem; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps--3 .step { grid-template-columns: 1fr; }
@media (max-width: 860px) { .steps--3 { grid-template-columns: 1fr; } }

/* ---------- 10. Trust bar ---------- */
.trustbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.trustbar__item {
  text-align: center; padding: 1.6rem 1rem;
  border-right: 1px solid rgba(255,255,255,.12);
}
.trustbar__item:last-child { border-right: 0; }
.trustbar__ic { color: var(--lime); margin: 0 auto .75rem; }
.trustbar__item p { font-size: .875rem; font-weight: 650; color: #fff; line-height: 1.4; }
@media (max-width: 900px) {
  .trustbar { grid-template-columns: repeat(2, 1fr); }
  .trustbar__item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 460px) { .trustbar { grid-template-columns: 1fr; } }

/* ---------- 11. Split feature ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4.5vw, 5rem); align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media img {
  width: 100%; aspect-ratio: 4/3.2; object-fit: cover;
  border-radius: var(--r-xl); box-shadow: var(--shadow);
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 2.25rem; }
  .split--reverse .split__media { order: 0; }
}

/* ---------- 12. Lists ---------- */
.ticks { list-style: none; padding: 0; display: grid; gap: .8rem; }
p + .ticks, p + .symlist, p + .grid { margin-top: 1.75rem; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .97rem; }
.ticks svg { color: var(--accent); margin-top: .34rem; flex-shrink: 0; }
.section--navy .ticks svg { color: var(--lime); }
.ticks--2 { grid-template-columns: repeat(2, 1fr); gap: .8rem 2rem; }
@media (max-width: 700px) { .ticks--2 { grid-template-columns: 1fr; } }

.symlist { list-style: none; padding: 0; display: grid; gap: .55rem; }
.symlist li {
  display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start;
  font-size: .95rem; color: var(--text);
}
.symlist li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-top: .62rem;
}
.symlist--2 { grid-template-columns: repeat(2, 1fr); gap: .55rem 2.25rem; }
@media (max-width: 680px) { .symlist--2 { grid-template-columns: 1fr; } }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem);
}
.panel h3 { margin-bottom: 1.1rem; }
.panel--tint { background: var(--accent-tint); border-color: #cfe6da; }

/* ---------- 13. Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.25rem; padding: 1.35rem .25rem; text-align: left;
  font-weight: 700; font-size: 1.03rem; color: var(--navy); letter-spacing: -.015em;
  line-height: 1.45;
  transition: color .18s var(--ease);
}
.acc__btn:hover { color: var(--accent); }
.acc__ic {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center; margin-top: .1rem;
  transition: transform .28s var(--ease), background-color .2s, border-color .2s, color .2s;
  color: var(--navy);
}
.acc__btn[aria-expanded="true"] .acc__ic {
  transform: rotate(180deg); background: var(--accent); border-color: var(--accent); color: #fff;
}
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc__panel[data-open] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { color: var(--muted); padding: 0 3rem 1.5rem .25rem; font-size: .97rem; }
@media (prefers-reduced-motion: reduce) { .acc__panel { transition: none; } }

.faq-group + .faq-group { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.faq-group h2 { font-size: var(--step-3); margin-bottom: 1.4rem; }

/* ---------- 14. Testimonials ---------- */
.tslider { position: relative; }
.ttrack {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 400px);
  gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem .25rem 1.75rem; scrollbar-width: none;
}
.ttrack::-webkit-scrollbar { display: none; }
.tq {
  scroll-snap-align: start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.85rem; display: flex; flex-direction: column;
}
.tq__stars { display: flex; gap: .18rem; color: #e0a534; margin-bottom: 1.1rem; }
.tq blockquote { font-size: 1.02rem; line-height: 1.65; color: var(--text); flex: 1; }
.tq figcaption { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); font-size: .875rem; }
.tq figcaption strong { display: block; color: var(--navy); }
.tq figcaption span { color: var(--muted); }
.tctrl { display: flex; gap: .6rem; justify-content: center; }
.tctrl button {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; color: var(--navy);
  transition: background-color .2s, color .2s, border-color .2s;
}
.tctrl button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- 15. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy); }
.cta-band img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .2;
}
.cta-band__inner {
  position: relative; z-index: 1; text-align: center;
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6rem);
}
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: #b6c4d3; font-size: var(--step-1); max-width: 52ch; margin: 0 auto 2.1rem; }

/* ---------- 16. Forms ---------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 650; font-size: .9rem; color: var(--navy); }
.field .req { color: #c0392b; }
.field input, .field select, .field textarea {
  padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; font-size: 1rem; width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14);
}
.field textarea { min-height: 140px; resize: vertical; }
.field__hint { font-size: .82rem; color: var(--muted); }
.field__err { font-size: .82rem; color: #c0392b; font-weight: 600; display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #c0392b; }
.field.is-invalid .field__err { display: block; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note {
  background: var(--sand); border-radius: var(--r-sm); padding: .95rem 1.1rem;
  font-size: .85rem; color: var(--muted); line-height: 1.55;
}
.form__status { border-radius: var(--r-sm); padding: 1rem 1.15rem; font-weight: 600; font-size: .93rem; display: none; }
.form__status.is-ok  { display: block; background: var(--accent-tint); color: var(--accent-700); }
.form__status.is-err { display: block; background: #fdecea; color: #a5281b; }

/* ---------- 17. Quiz ---------- */
.quiz { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; }
.quiz__body { padding: clamp(1.6rem, 1.2rem + 2vw, 3rem); }
.quiz__bar { height: 5px; background: var(--sand-deep); }
.quiz__fill { height: 100%; width: 0%; background: var(--accent); transition: width .4s var(--ease); }
.quiz__meta { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.quiz__q { font-size: var(--step-2); margin-bottom: 1.5rem; }
.quiz__opts { display: grid; gap: .7rem; margin-bottom: 2rem; }
.opt {
  display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left;
  padding: 1rem 1.2rem; border: 1.5px solid var(--line); border-radius: var(--r);
  font-size: .97rem; font-weight: 600; color: var(--navy); background: #fff;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), transform .18s var(--ease);
}
.opt:hover { border-color: var(--accent); background: var(--accent-tint); }
.opt.is-sel { border-color: var(--accent); background: var(--accent-tint); }
.opt__box {
  width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line);
  flex-shrink: 0; display: grid; place-items: center; background: #fff; color: transparent;
  transition: background-color .18s, border-color .18s, color .18s;
}
.opt--radio .opt__box { border-radius: 50%; }
.opt.is-sel .opt__box { background: var(--accent); border-color: var(--accent); color: #fff; }
.quiz__nav { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.quiz__result { text-align: center; }
.quiz__score {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 1.5rem;
  display: grid; place-items: center; background: var(--accent-tint);
  color: var(--accent-700); font-size: 2rem; font-weight: 800;
}
.quiz__disclaimer {
  margin-top: 1.75rem; padding: 1.1rem 1.25rem; background: var(--sand);
  border-radius: var(--r-sm); font-size: .84rem; color: var(--muted);
  line-height: 1.6; text-align: left;
}

/* ---------- 18. Provider ---------- */
.provider { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
.provider__photo { position: relative; }
/* Scope to the <picture> so this does not also stretch the seal sitting inside. */
.provider__photo picture img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow); }
.provider__photo .provider__seal {
  position: absolute; right: -18px; bottom: -18px; width: 108px; height: auto;
  background: #fff; border-radius: 50%; padding: 6px; box-shadow: var(--shadow);
}
@media (max-width: 780px) {
  .provider { grid-template-columns: 1fr; }
  .provider__photo { max-width: 380px; }
}

/* ---------- 19. Placeholder marker ---------- */
.ph {
  position: relative; border: 2px dashed #d9a441; border-radius: var(--r);
  background: #fffaf0; padding: 1.5rem 1.5rem 1.5rem;
}
.ph::before {
  content: "⚠ PLACEHOLDER — CLIENT CONTENT REQUIRED";
  display: block; font-size: .7rem; font-weight: 800; letter-spacing: .1em;
  color: #a5701a; margin-bottom: .75rem;
}
.ph p, .ph li { color: #6b5323; }
.ph--inline {
  display: inline; border: 0; background: #fff3d6; padding: .1em .4em;
  border-radius: 4px; color: #8a5f13; font-weight: 700; font-size: .95em;
}
.ph--inline::before { content: none; }

/* ---------- 19b. Demo-mode markers ---------- */
.demo-tag {
  display: inline-block; vertical-align: middle; margin-left: .4em;
  padding: .12em .45em; border-radius: 4px;
  background: #fff3d6; color: #8a5f13; border: 1px solid #e8cf9a;
  font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- 19c. Affiliations ---------- */
.affil {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); flex-wrap: wrap; margin-top: 1.5rem;
}
.affil > img { width: 172px; height: auto; }
.affil__item { text-align: left; max-width: 210px; }
.affil__item strong {
  display: block; font-size: .88rem; color: var(--navy); line-height: 1.35; font-weight: 700;
}
.affil__item span { font-size: .78rem; color: var(--muted); }

/* ---------- 19d. Pricing table ---------- */
.price { border-top: 1px solid var(--line); }
.price__row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.price__row strong { color: var(--navy); font-size: 1rem; }
.price__row p { color: var(--muted); font-size: .88rem; margin-top: .25rem; max-width: 46ch; }
.price__amt {
  font-weight: 800; color: var(--accent); font-size: 1.05rem;
  white-space: nowrap; letter-spacing: -.02em;
}
@media (max-width: 520px) {
  .price__row { flex-direction: column; gap: .4rem; }
}

/* ---------- 20. Disclaimer ---------- */
.disclaimer {
  background: var(--sand); border-left: 3px solid var(--navy-600);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1.25rem 1.5rem; font-size: .86rem; line-height: 1.65; color: var(--muted);
}
.disclaimer strong { color: var(--navy); }

/* ---------- 21. Legal / prose ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: var(--step-2); margin: 2.5rem 0 .9rem; }
.prose h3 { font-size: var(--step-1); margin: 1.9rem 0 .65rem; }
.prose p, .prose li { color: var(--text); font-size: .99rem; }
.prose p { margin-bottom: 1.05rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.35rem; display: grid; gap: .5rem; }
.prose > :first-child { margin-top: 0; }

/* ---------- 22. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; display: grid; gap: 1.4rem; }
.info-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.info-list__ic {
  width: 42px; height: 42px; border-radius: 12px; background: var(--accent-tint);
  color: var(--accent-700); display: grid; place-items: center; flex-shrink: 0;
}
.info-list strong { display: block; color: var(--navy); font-size: .93rem; }
.info-list a, .info-list span { color: var(--muted); font-size: .95rem; text-decoration: none; }
.info-list a:hover { color: var(--accent); text-decoration: underline; }
.map-embed {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16/10; background: var(--sand);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 23. Footer ---------- */
.ftr { background: var(--navy); color: #9fb0c2; padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2rem; }
.ftr__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.ftr__brand img { width: 124px; height: 124px; margin-bottom: 1.1rem; }
.ftr__brand p { font-size: .9rem; line-height: 1.65; max-width: 30ch; }
.ftr h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.15rem; }
.ftr ul { list-style: none; padding: 0; display: grid; gap: .68rem; }
.ftr a { color: #9fb0c2; text-decoration: none; font-size: .92rem; transition: color .18s var(--ease); }
.ftr a:hover { color: #fff; }
.ftr address { font-style: normal; font-size: .92rem; line-height: 1.6; }
.ftr__social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.ftr__social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center; color: #9fb0c2;
  transition: background-color .2s, color .2s, border-color .2s;
}
.ftr__social a:hover { background: #fff; color: var(--navy); border-color: #fff; }
.ftr__seals { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.ftr__seals img { width: 104px; height: auto; background: #fff; border-radius: 50%; padding: 4px; }
.ftr__legal {
  padding-top: 1.75rem; font-size: .82rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.35rem; align-items: center; justify-content: space-between;
}
.ftr__legal nav { display: flex; flex-wrap: wrap; gap: .6rem 1.35rem; }
.ftr__disclaimer {
  margin-top: 1.5rem; font-size: .78rem; line-height: 1.65; color: #7b8ea3;
  max-width: 95ch;
}
@media (max-width: 900px) { .ftr__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .ftr__grid { grid-template-columns: 1fr; } }

/* ---------- 23b. Hero rotator ---------- */
.hero__rotate {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: var(--step-3); color: var(--accent); line-height: 1.2;
  margin-bottom: 1.15rem; letter-spacing: -.01em;
  /* Hold one line's height so a longer phrase swapping in never shifts the layout. */
  min-height: 1.2em;
}
.hero__rotate .rotate-word { display: inline-block; }
/* Shrink a touch on small screens so the longest phrase stays on one line. */
@media (max-width: 560px) { .hero__rotate { font-size: var(--step-2); } }
.hero__rotate .rotate-word.is-out { opacity: 0; transform: translateY(8px); }
.hero__rotate .rotate-word {
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .hero__rotate .rotate-word { transition: none; }
}

/* ---------- 23c. Marquee ---------- */
.marquee {
  background: var(--navy); color: #cfd9e4; overflow: hidden;
  padding-block: .95rem; border-block: 1px solid rgba(255,255,255,.08);
}
.marquee__track { display: flex; width: max-content; }
.marquee__list {
  display: flex; align-items: center; list-style: none; margin: 0; padding: 0;
  animation: marquee-scroll 36s linear infinite;
}
.marquee__list li {
  display: flex; align-items: center; white-space: nowrap;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.marquee__list li::after {
  content: "✦"; margin-inline: 1.6rem; font-size: .6rem; color: var(--lime);
}
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.marquee:hover .marquee__list { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee__list { animation: none; }
  .marquee__track { width: 100%; overflow-x: auto; }
}

/* ---------- 23d. Review stars ---------- */
.rating-line {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  margin-bottom: 2rem; font-weight: 700; color: var(--navy); font-size: .95rem;
}
.rating-line .tq__stars { margin-bottom: 0; }
.tq__stars svg { width: 16px; height: 16px; }
.tq__stars .star--off { color: var(--line); }

/* ---------- 24. Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 25. Utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mb-2 { margin-bottom: 1.5rem; }
@media print {
  .hdr, .drawer, .cta-band, .ftr__social { display: none; }
  body { color: #000; }
}
