/* ==========================================================================
   NPDirect Telehealth — "Clinical Trust"
   Navy / bone / teal. Newsreader display + Manrope body.
   Single stylesheet, shared across all pages.
   ========================================================================== */

:root {
  /* Ink */
  --deep:        #05192C;
  --ink:         #0A2540;
  --ink-2:       #143A5E;
  --text:        #16293A;
  --muted:       #4E667C;

  /* Accent */
  --teal:        #0F9E96;
  --teal-deep:   #0A6E68;
  --teal-wash:   #E3F2F0;

  /* Surface */
  --bone:        #F7F5F0;
  --bone-2:      #EFEBE3;
  --paper:       #FFFFFF;
  --line:        #E1DED5;
  --line-soft:   #EDEAE3;

  /* Type */
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --pad:      clamp(1.25rem, 5vw, 2.5rem);
  --shell:    1220px;
  --gap:      clamp(1.5rem, 3vw, 2.5rem);
  --sec:      clamp(4.5rem, 9vw, 8.5rem);
  --r:        14px;
  --r-lg:     26px;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(5,25,44,.05), 0 4px 14px -6px rgba(5,25,44,.10);
  --shadow-md: 0 2px 4px rgba(5,25,44,.04), 0 18px 40px -20px rgba(5,25,44,.22);
  --shadow-lg: 0 30px 70px -32px rgba(5,25,44,.38);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--ink); color: var(--bone); }

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

/* Grain — gives the flat colour some tooth so it doesn't read as a template */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.shell--narrow { max-width: 880px; }

.section { padding-block: var(--sec); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--paper { background: var(--paper); }
.section--bone2 { background: var(--bone-2); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Type utilities ---------- */
.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--teal);
  flex: none;
}
.eyebrow--center { justify-content: center; }
.on-dark .eyebrow { color: #6FD8D0; }
.on-dark .eyebrow::before { background: #6FD8D0; }

.h1 {
  font-family: var(--display);
  font-size: clamp(2.65rem, 1.5rem + 4.6vw, 5.1rem);
  line-height: .99;
  letter-spacing: -.032em;
  font-weight: 400;
}
.h2 {
  font-family: var(--display);
  font-size: clamp(2.05rem, 1.3rem + 2.9vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -.028em;
  font-weight: 400;
}
.h3 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem);
  line-height: 1.14;
  font-weight: 400;
}
.h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.35;
}

.accent { color: var(--teal-deep); font-style: italic; }
.on-dark .accent { color: #7FE0D8; }

.lede {
  font-size: clamp(1.075rem, 1rem + .45vw, 1.3125rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
}
.on-dark .lede { color: #A9C2D6; }

.body-muted { color: var(--muted); }
.measure { max-width: 62ch; }
.center { text-align: center; }
.center .lede, .center .eyebrow { margin-inline: auto; }

.on-dark { color: #EAF1F6; }
.on-dark .h1, .on-dark .h2, .on-dark .h3 { color: #FBFAF7; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--teal  { --btn-bg: var(--teal); --btn-fg: #04211F; }
.btn--teal:hover { --btn-bg: var(--teal-deep); --btn-fg: #FFFFFF; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: rgba(10,37,64,.24);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(10,37,64,.04); box-shadow: none; }

.on-dark .btn--ghost { --btn-fg: #EAF1F6; border-color: rgba(234,241,246,.32); }
.on-dark .btn--ghost:hover { border-color: #EAF1F6; background: rgba(255,255,255,.07); }

/* Long CTA labels ("Already a patient — book a follow-up") can't stay on one
   line on a 320px screen. Pills keep nowrap everywhere else. */
@media (max-width: 430px) {
  .btn { white-space: normal; text-align: center; }
}

.btn--sm { padding: .68rem 1.2rem; font-size: .875rem; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

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

.textlink {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--teal-deep);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid rgba(15,158,150,.3);
  transition: border-color .22s var(--ease), gap .22s var(--ease);
}
.textlink:hover { border-color: var(--teal); gap: .7rem; }

/* ---------- Header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(247,245,240,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.hdr.is-stuck { border-bottom-color: var(--line); background: rgba(247,245,240,.94); }

.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 82px;
  transition: min-height .3s var(--ease);
}
.hdr.is-stuck .hdr__in { min-height: 68px; }

/* Wordmark */
.mark { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.mark__glyph {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--ink);
  display: grid; place-items: center;
  flex: none;
  position: relative;
  overflow: hidden;
}
.mark__glyph::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(140deg, transparent 40%, rgba(15,158,150,.55));
}
.mark__glyph svg { position: relative; z-index: 1; }
.mark__txt { display: flex; flex-direction: column; line-height: 1; }
.mark__name {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: -.025em;
  color: var(--ink);
  font-weight: 500;
}
.mark__sub {
  font-size: .5625rem;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav__link {
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  position: relative;
  padding-block: .3rem;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--ink); }

.hdr__cta { display: flex; align-items: center; gap: .75rem; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid rgba(10,37,64,.2);
  background: transparent;
  border-radius: 11px;
  cursor: pointer;
  place-items: center;
}
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav, .hdr__cta .btn--ghost { display: none; }
  .burger { display: grid; }
}

/* Wordmark + CTA + burger stop fitting on one row below ~360px. */
@media (max-width: 380px) {
  .hdr__in { gap: .5rem; }
  .hdr__cta { gap: .4rem; }
  .mark { gap: .5rem; }
  .mark__sub { display: none; }
  .hdr__cta .btn--sm { padding: .6rem .95rem; font-size: .8125rem; }
  .burger { width: 40px; height: 40px; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 82px 0 0;
  z-index: 79;
  background: var(--bone);
  padding: 2rem var(--pad) 3rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; transform: none; visibility: visible; }
.drawer a {
  font-family: var(--display);
  font-size: 1.85rem;
  text-decoration: none;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.drawer .btn { margin-top: 1.75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6.5rem);
  overflow: hidden;
}
.hero::after {
  /* soft teal bloom, top-right */
  content: "";
  position: absolute;
  top: -22%; right: -12%;
  width: 60vw; height: 60vw;
  max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(15,158,150,.16), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .82fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
}

.hero__copy > * + * { margin-top: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Trust chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 2.25rem !important;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .95rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.chip svg { color: var(--teal); flex: none; }

/* Portrait */
.portrait { position: relative; }
.portrait__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(160deg, var(--ink-2), var(--deep));
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait__frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,25,44,.5), transparent 45%);
  pointer-events: none;
}
/* Placeholder state (no photo yet) */
.portrait__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: .6rem;
  padding: 2rem;
  color: rgba(234,241,246,.62);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.portrait__ph svg { margin-inline: auto; opacity: .5; }

/* Offset teal rule behind the portrait */
.portrait::before {
  content: "";
  position: absolute;
  inset: 26px -26px -26px 26px;
  border: 1.5px solid var(--teal);
  border-radius: var(--r-lg);
  z-index: -1;
  opacity: .55;
}

.credcard {
  position: absolute;
  left: -8%;
  bottom: 9%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: .95rem 1.15rem;
  box-shadow: var(--shadow-md);
  max-width: 230px;
}
.credcard__name { font-family: var(--display); font-size: 1.15rem; line-height: 1.15; color: var(--ink); }
.credcard__role { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); margin-top: .35rem; }
@media (max-width: 560px) { .credcard { left: 0; bottom: -18px; } .portrait::before { inset: 20px -16px -16px 20px; } }

/* ---------- Marquee-free trust strip ---------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding-block: 1.6rem;
}
.strip__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.strip__label {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  flex: none;
}
.strip__items { display: flex; flex-wrap: wrap; gap: .6rem 1.9rem; align-items: center; }
.strip__items li {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* ---------- Section headers ---------- */
.sechead {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .72fr);
  gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sechead > div > * + * { margin-top: 1.1rem; }
@media (max-width: 820px) { .sechead { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ---------- Service cards ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(275px, 100%), 1fr));
  gap: 1.25rem;
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.6rem, 3vw, 2.3rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.svc::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc:hover::before { transform: scaleX(1); }

.svc__num {
  font-family: var(--display);
  font-size: .875rem;
  font-weight: 500;
  color: var(--teal-deep);
  letter-spacing: .04em;
}
.svc__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--teal-wash);
  color: var(--teal-deep);
  display: grid; place-items: center;
  flex: none;
}
.svc__list { display: flex; flex-direction: column; gap: .5rem; margin-top: auto; padding-top: .4rem; }
.svc__list li {
  display: flex;
  gap: .6rem;
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.5;
}
.svc__list li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: .55em;
}
.svc__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  margin-top: .4rem;
  border-top: 1px solid var(--line-soft);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--muted);
}
.svc__foot .arw { color: var(--teal-deep); transition: transform .3s var(--ease); }
.svc:hover .svc__foot .arw { transform: translateX(4px); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: clamp(1.5rem, 3vw, 2.75rem); }
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: var(--line);
}
.step::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 1.5px;
  background: var(--teal);
}
.step__n {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ink);
  opacity: .16;
  margin-bottom: .7rem;
}
.step h3 { margin-bottom: .6rem; }
.on-dark .step::before { background: rgba(255,255,255,.15); }
.on-dark .step__n { color: #FFF; opacity: .22; }

/* ---------- Conditions tag cloud ---------- */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  padding: .55rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--paper);
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.tags li:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-2px); }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: linear-gradient(155deg, var(--ink-2), var(--deep));
  box-shadow: var(--shadow-md);
  position: relative;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__copy > * + * { margin-top: 1.25rem; }

/* ---------- Pricing paths ---------- */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.25rem; }
.path {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper);
}
.path--feature {
  background: var(--ink);
  border-color: var(--ink);
  color: #EAF1F6;
  position: relative;
  overflow: hidden;
}
.path--feature::after {
  content: "";
  position: absolute;
  top: -40%; right: -30%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(15,158,150,.3), transparent 60%);
  pointer-events: none;
}
.path--feature > * { position: relative; z-index: 1; }
.path--feature .h3 { color: #FBFAF7; }
.path--feature .path__desc { color: #A9C2D6; }
.path--feature .path__list li { color: #C9DAE7; }
.path--feature .path__list li::before { background: #6FD8D0; }
.path--feature .path__note { color: #90AABF; border-top-color: rgba(255,255,255,.14); }

.path__tag {
  align-self: flex-start;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: var(--teal-wash);
  color: var(--teal-deep);
}
.path--feature .path__tag { background: rgba(111,216,208,.16); color: #7FE0D8; }
.path__desc { color: var(--muted); font-size: .9375rem; }
.path__list { display: flex; flex-direction: column; gap: .6rem; }
.path__list li { display: flex; gap: .65rem; font-size: .9375rem; color: var(--text); line-height: 1.5; }
.path__list li::before {
  content: "";
  flex: none; width: 6px; height: 6px;
  border-radius: 50%; background: var(--teal); margin-top: .55em;
}
.path__note {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Stats / licensure ---------- */
.states { display: flex; flex-wrap: wrap; gap: .6rem; }
.state {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: var(--r);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: .01em;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.state:hover { transform: translateY(-3px); border-color: var(--teal); }
.state--live { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.state--tbd { color: var(--muted); border-style: dashed; }
.on-dark .state { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.18); color: #EAF1F6; }
.on-dark .state--live { background: var(--teal); border-color: var(--teal); color: #04211F; }

/* ---------- Dark band ---------- */
.band {
  background: var(--deep);
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 90% at 15% 0%, rgba(20,58,94,.85), transparent 60%),
    radial-gradient(50% 70% at 92% 100%, rgba(15,158,150,.22), transparent 62%);
  pointer-events: none;
}
.band > * { position: relative; z-index: 1; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem);
  line-height: 1.3;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal-deep); }
.faq__ico {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  margin-top: .2rem;
  transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.faq details[open] .faq__ico { transform: rotate(45deg); background: var(--teal); border-color: var(--teal); color: #04211F; }
.faq__body { padding-bottom: 1.6rem; max-width: 68ch; color: var(--muted); }
.faq__body p + p { margin-top: .85rem; }

/* ---------- Booking embed slot ---------- */
.booking {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
  min-height: 260px;
}
.booking__ph {
  border: 1.5px dashed var(--line);
  border-radius: var(--r);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
  display: grid;
  gap: .75rem;
  place-items: center;
}
.booking__ph code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .8125rem;
  background: var(--bone-2);
  padding: .2rem .5rem;
  border-radius: 5px;
  color: var(--ink);
}

/* ---------- Membership tier cards ---------- */
/* On a dark band the navy feature card recedes behind the white ones, which is
   backwards for a "most popular" tier. Give it a teal edge and a lift instead. */
.band .path--feature {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow-lg);
}
.path__ribbon {
  position: absolute;
  top: 0; right: 0;
  padding: .4rem .85rem;
  border-radius: 0 var(--r-lg) 0 12px;
  background: var(--teal);
  color: #04211F;
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  z-index: 2;
}

.tier__price {
  font-family: var(--display);
  font-size: clamp(2.4rem, 2rem + 1.6vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
}
.tier__per {
  font-family: var(--body);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.path--feature .tier__price { color: #FBFAF7; }
.path--feature .tier__per { color: #A9C2D6; }

/* ---------- Legal / long-form prose ---------- */
.prose { max-width: 74ch; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  line-height: 1.15;
  font-weight: 400;
  color: var(--ink);
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.prose h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-top: 2rem;
}
.prose p, .prose li { color: var(--text); line-height: 1.7; }
.prose ul { display: flex; flex-direction: column; gap: .6rem; padding-left: 0; }
.prose ul li { display: flex; gap: .7rem; min-width: 0; }
/* Flex items default to min-width:auto and refuse to shrink below their
   longest word — which overflows a 320px screen. */
.prose ul li > * { min-width: 0; }
.prose ul li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: .62em;
}
.prose strong { color: var(--ink); }
/* Long unbreakable strings (that email address, the HHS complaints URL) overflow
   a 320px screen unless they're allowed to wrap. */
.prose a { color: var(--teal-deep); font-weight: 600; overflow-wrap: anywhere; }
.prose__meta {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.prose__callout {
  padding: 1.25rem 1.4rem;
  border-radius: var(--r);
  background: var(--teal-wash);
  border: 1px solid rgba(15,158,150,.25);
  line-height: 1.65;
}
.prose__callout p { color: var(--teal-deep); }

/* ---------- Price list (mirrors the PracticeQ service menu exactly) ---------- */
.pricelist { border-top: 1px solid var(--line); }
.pricerow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.pricerow__name { font-weight: 700; color: var(--ink); font-size: .9375rem; line-height: 1.4; }
.pricerow__dur {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.pricerow__price {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -.02em;
  white-space: nowrap;
  min-width: 4.5ch;
  text-align: right;
}
@media (max-width: 640px) {
  .pricerow {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .35rem 1rem;
  }
  .pricerow__name { grid-column: 1; }
  .pricerow__price { grid-column: 2; grid-row: 1; }
  .pricerow__dur { grid-column: 1; }
  .pricerow .btn { grid-column: 1 / -1; justify-self: start; margin-top: .5rem; }
}

/* ---------- Quick-book deep links ---------- */
.quickbook { margin-top: 2rem; }
.quickbook__label {
  text-align: center;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #90AABF;
  margin-bottom: 1rem;
}
.quickbook__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: .6rem;
  max-width: 820px;
  margin-inline: auto;
}
.quickbook__grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.15rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: #EAF1F6;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.quickbook__grid a span { color: #7FE0D8; transition: transform .25s var(--ease); }
.quickbook__grid a:hover {
  border-color: var(--teal);
  background: rgba(15,158,150,.14);
  transform: translateY(-2px);
}
.quickbook__grid a:hover span { transform: translateX(4px); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta > * + * { margin-top: 1.4rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.35rem; }
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 1.35rem;
  align-items: start; /* a hint under one field must not re-centre its neighbour */
}
.field { display: grid; gap: .5rem; }
.field > label,
.field > .grouplabel {
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.field .hint { font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.req { color: var(--teal-deep); }

.input, .select, .textarea {
  width: 100%;
  padding: .85rem 1rem;
  font: inherit;
  font-size: .9375rem;
  color: var(--text);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #8A9BB0; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15,158,150,.14);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%234E667C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
input[type="file"].input { padding: .7rem .8rem; font-size: .875rem; }
input[type="file"]::file-selector-button {
  font: inherit;
  font-size: .8125rem;
  font-weight: 700;
  margin-right: .8rem;
  padding: .45rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--bone);
  color: var(--ink);
  cursor: pointer;
}

.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: .6rem; }
.check {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.check:hover { border-color: rgba(15,158,150,.5); }
.check input { accent-color: var(--teal); width: 17px; height: 17px; flex: none; }
.check:has(input:checked) { border-color: var(--teal); background: var(--teal-wash); }

.consent {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.55;
}
.consent input { accent-color: var(--teal); width: 18px; height: 18px; margin-top: .15rem; flex: none; }

.hp { position: absolute; left: -9999px; opacity: 0; }

.form-note {
  padding: 1rem 1.15rem;
  border-radius: 11px;
  background: var(--teal-wash);
  border: 1px solid rgba(15,158,150,.25);
  font-size: .875rem;
  color: var(--teal-deep);
  line-height: 1.55;
  display: flex;
  gap: .7rem;
}
.form-note svg { flex: none; margin-top: .15rem; }

/* ---------- Panel ---------- */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
}

/* ---------- Notice ---------- */
.notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.4rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: .875rem;
  line-height: 1.6;
  color: var(--muted);
}
.notice strong { color: var(--ink); }
.notice__ico { flex: none; color: #C0392B; margin-top: .1rem; }

/* ---------- Bio list ---------- */
.deflist { display: grid; gap: 0; border-top: 1px solid var(--line); }
.deflist > div {
  display: grid;
  grid-template-columns: minmax(min(120px, 100%), .38fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.deflist dt {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .18rem;
}
.deflist dd { margin: 0; font-size: .9375rem; color: var(--text); }
@media (max-width: 560px) { .deflist > div { grid-template-columns: minmax(0, 1fr); gap: .35rem; } }

/* ---------- Footer ---------- */
.ftr {
  background: var(--deep);
  color: #A9C2D6;
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
  font-size: .875rem;
}
.ftr a { color: #C9DAE7; text-decoration: none; transition: color .2s var(--ease); }
.ftr a:hover { color: #7FE0D8; }
.ftr__top {
  display: grid;
  grid-template-columns: minmax(min(240px, 100%), 1.3fr) repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
/* The 240px + 150px minimums can't coexist below ~700px — stack instead. */
@media (max-width: 700px) {
  .ftr__top { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
}
.ftr .mark__name { color: #FBFAF7; }
.ftr .mark__sub { color: #7E9AB2; }
.ftr .mark__glyph { background: rgba(255,255,255,.08); }
.ftr__blurb { margin-top: 1.1rem; max-width: 34ch; line-height: 1.65; }
.ftr__h {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #FBFAF7;
  margin-bottom: 1.1rem;
}
.ftr__list { display: flex; flex-direction: column; gap: .65rem; }
.ftr__bot {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  color: #7E9AB2;
}
.ftr__legal {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--r);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  font-size: .8125rem;
  line-height: 1.65;
  color: #90AABF;
}
.ftr__legal strong { color: #EAF1F6; }
.ftr__legal + .ftr__legal { margin-top: .75rem; }

/* ---------- Reveal on scroll ----------
   Scoped to .js so that if the script fails to load, every section is
   simply visible rather than blank. Never risk an invisible page. */
.js .rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn:hover, .svc:hover, .state:hover, .tags li:hover { transform: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Hero load-in (no JS dependency) */
.hero__copy > *,
.hero .portrait {
  animation: rise .85s var(--ease) both;
}
.hero__copy > *:nth-child(1) { animation-delay: .05s; }
.hero__copy > *:nth-child(2) { animation-delay: .13s; }
.hero__copy > *:nth-child(3) { animation-delay: .21s; }
.hero__copy > *:nth-child(4) { animation-delay: .29s; }
.hero__copy > *:nth-child(5) { animation-delay: .37s; }
.hero .portrait { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Utility ---------- */
.stack-sm > * + * { margin-top: .8rem; }
.stack > * + * { margin-top: 1.35rem; }
.stack-lg > * + * { margin-top: 2.25rem; }
.mt-lg { margin-top: clamp(2.5rem, 5vw, 4rem); }
.mt-md { margin-top: 2rem; }
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bone);
  padding: .8rem 1.2rem;
  border-radius: 0 0 10px 0;
  z-index: 200;
  font-weight: 700;
}
.skip:focus { left: 0; }
