/* ==========================================================================
   Her Health Place — site stylesheet
   Integrated care. A brighter tomorrow.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand palette */
  --ivory:        #F5F1ED;
  --ivory-deep:   #EDE6E0;
  --blush:        #E8D7D2;
  --blush-soft:   #F2E5E1;
  --plum:         #6B5B7A;
  --plum-deep:    #503C5A;
  --plum-dark:    #3E2D47;
  --slate:        #4A5568;
  --slate-soft:   #6E7788;
  --slate-faint:  #8D93A1;
  --line:         #E1D8D2;
  --line-strong:  #D3C6BE;
  --white:        #FFFDFC;
  --verified:     #5C7A69;

  /* Type */
  --display: "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --body: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --quote: "Newsreader", Georgia, "Times New Roman", serif;

  /* Scale */
  --step--1: 0.875rem;
  --step-0:  1.0625rem;
  --step-1:  1.25rem;
  --step-2:  clamp(1.4rem, 1.2rem + 0.9vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.4rem + 1.6vw, 2.4rem);
  --step-4:  clamp(2.1rem, 1.5rem + 2.7vw, 3.4rem);
  --step-5:  clamp(2.6rem, 1.6rem + 4vw, 4.4rem);

  --shell: 1160px;
  --radius: 14px;
  --shadow-soft: 0 1px 2px rgba(80, 60, 90, .05), 0 10px 30px -12px rgba(80, 60, 90, .16);
  --shadow-lift: 0 2px 4px rgba(80, 60, 90, .06), 0 22px 48px -18px rgba(80, 60, 90, .26);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--slate);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--plum-deep);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-weight: 500; }

p { margin: 0; }
a { color: var(--plum); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { color: var(--plum-deep); text-decoration-color: currentColor; }

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

/* ---------- Layout primitives ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--band { background: var(--ivory-deep); }
.section--blush { background: var(--blush-soft); }
.section--plum { background: var(--plum-deep); color: #EFE7EC; }
.section--plum h2, .section--plum h3, .section--plum h4 { color: #FFF; }

.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap, 20px); }

.prose { max-width: 66ch; }
.measure { max-width: 34ch; }

.eyebrow {
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum);
  margin: 0;
}
.section--plum .eyebrow { color: var(--blush); }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--slate);
}
.section--plum .lede { color: #E3D7E1; }

.muted { color: var(--slate-soft); }
.small { font-size: var(--step--1); }

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-size: var(--step-0);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--plum-deep); color: #FFF; }
.btn--primary:hover { background: var(--plum-dark); color: #FFF; }
.btn--ghost { background: transparent; color: var(--plum-deep); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--blush-soft); border-color: var(--plum); color: var(--plum-deep); }
.btn--light { background: var(--blush); color: var(--plum-dark); }
.btn--light:hover { background: #FFF; color: var(--plum-dark); }
.btn--outline-light { background: transparent; color: #FFF; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: #FFF; border-color: rgba(255,255,255,.7); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

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

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(245, 241, 237, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
  padding-block: 10px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 232px; }

.nav-toggle {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--plum-deep);
  cursor: pointer;
}
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; }
.nav-toggle__bars span { display: block; width: 16px; height: 1.5px; background: currentColor; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-family: var(--display);
  font-size: 0.97rem;
  font-weight: 400;
  color: var(--slate);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease;
}
.site-nav a:hover { background: var(--blush-soft); color: var(--plum-deep); }
.site-nav a[aria-current="page"] { color: var(--plum-deep); font-weight: 500; box-shadow: inset 0 -2px 0 var(--plum); border-radius: 0; }
.site-nav a.btn--primary {
  margin-left: 8px;
  padding: 10px 20px;
  font-size: 0.97rem;
  background: var(--plum-deep);
  color: #FFF;
  box-shadow: none;
}
.site-nav a.btn--primary:hover { background: var(--plum-dark); color: #FFF; }

@media (max-width: 1020px) {
  .brand img { width: 196px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px;
    box-shadow: var(--shadow-soft);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--plum); }
  .site-nav a.btn--primary { margin: 14px 0 0; justify-content: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(48px, 7vw, 92px) clamp(52px, 7vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero__lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.55; max-width: 34ch; }
.hero .btn-row { margin-top: 30px; }
.hero__note { margin-top: 18px; font-size: var(--step--1); color: var(--slate-faint); }

.hero__art { position: relative; display: flex; justify-content: center; }
.hero__art svg { width: 100%; max-width: 430px; height: auto; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 320px; margin-inline: auto; }
  .hero__lede { max-width: 48ch; }
}

/* Page header for interior pages */
.page-head { padding-block: clamp(44px, 6vw, 76px) clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: var(--step-4); margin-block: 14px 20px; }
.page-head .lede { max-width: 58ch; }

/* ---------- Stat figures ---------- */

.figure-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(22px, 3vw, 44px);
}
.figure__num {
  font-family: var(--display);
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--plum);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.section--plum .figure__num { color: var(--blush); }
.figure__label { margin-top: 12px; font-size: var(--step-0); line-height: 1.5; }
.figure__src { margin-top: 10px; font-size: 0.8rem; color: var(--slate-faint); }
.section--plum .figure__src { color: rgba(232, 215, 210, .62); }
.section--plum .figure__label { color: #E7DCE6; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
}
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card h3 { font-size: var(--step-1); font-weight: 500; }
.card p { color: var(--slate-soft); }
.card--blush { background: var(--blush-soft); border-color: #E3D2CD; }
.card--flat { background: transparent; border: 0; padding: 0; }

.card__icon { color: var(--plum); }
.card__icon svg { width: 30px; height: 30px; display: block; }

/* Numbered process steps — order carries meaning here */
.steps { display: grid; gap: 4px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--plum);
  padding-top: 6px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--slate-soft); max-width: 62ch; }
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step__n { padding-top: 0; }
}

/* Feature rows with alternating art */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding-block: clamp(34px, 4vw, 56px);
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature__art {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.feature--flip .feature__body { order: 2; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__body { order: 0; }
}

/* ---------- Checklist ---------- */

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  line-height: 1.55;
}
.ticks svg { width: 18px; height: 18px; margin-top: 5px; color: var(--verified); flex-shrink: 0; }
.section--plum .ticks svg { color: var(--blush); }

/* ---------- Pull quote ---------- */

.pull {
  font-family: var(--quote);
  font-style: italic;
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.35rem);
  line-height: 1.32;
  color: var(--plum-deep);
  letter-spacing: -0.01em;
  max-width: 24ch;
  margin: 0;
}
.section--plum .pull { color: #F6EDF3; }
.pull__cite {
  display: block;
  margin-top: 20px;
  font-family: var(--body);
  font-style: normal;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--slate-soft);
  max-width: 40ch;
}
.section--plum .pull__cite { color: rgba(232, 215, 210, .78); }

.quote-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 800px) { .quote-split { grid-template-columns: 1fr; } }

/* ---------- Care team directory ---------- */

.roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.roster__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.roster__item h3 { font-size: 1.12rem; font-weight: 500; }
.roster__item p { font-size: var(--step--1); color: var(--slate-soft); line-height: 1.6; }
.roster__tag {
  align-self: flex-start;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  background: var(--blush-soft);
  border-radius: 999px;
  padding: 4px 11px;
}

/* ---------- Dashboard mock ---------- */

.mock {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--plum-deep);
  color: #FFF;
}
.mock__bar span {
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mock__bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blush);
  border: 1px solid rgba(232,215,210,.45);
  border-radius: 999px;
  padding: 3px 9px;
}
.mock__body { padding: 20px; display: grid; gap: 16px; }
.mock__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.mock__row:last-child { border-bottom: 0; padding-bottom: 0; }
.mock__label { font-family: var(--display); font-size: 0.95rem; color: var(--plum-deep); }
.mock__meta { font-size: 0.82rem; color: var(--slate-faint); }
.pill {
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.pill--shared { background: #E4EDE7; color: var(--verified); }
.pill--private { background: var(--ivory-deep); color: var(--slate-soft); }
.pill--flag { background: var(--blush); color: var(--plum-dark); }

/* ---------- Timeline (roadmap) ---------- */

.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 0; }
.phase {
  padding: 28px 26px 30px;
  border-top: 3px solid var(--line-strong);
}
.phase--now { border-top-color: var(--plum); }
.phase--next { border-top-color: #A395AE; }
.phase__when {
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum);
}
.phase h3 { font-size: var(--step-1); font-weight: 500; margin-block: 10px 10px; }
.phase p { color: var(--slate-soft); font-size: var(--step--1); line-height: 1.6; }

/* ---------- Plans ---------- */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; align-items: start; }
.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.plan--featured { border-color: var(--plum); box-shadow: var(--shadow-lift); }
.plan__who { font-family: var(--display); font-size: var(--step-1); font-weight: 500; color: var(--plum-deep); }
.plan__price { font-family: var(--display); font-size: 2.3rem; font-weight: 300; line-height: 1; color: var(--plum-deep); }
.plan__price small { font-size: 0.95rem; font-weight: 400; color: var(--slate-soft); letter-spacing: 0; }
.plan .ticks { gap: 11px; }
.plan .ticks li { font-size: var(--step--1); }
.plan .btn { margin-top: auto; }

/* ---------- Form ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum-deep);
}
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: var(--step-0);
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--plum);
  outline-offset: 1px;
  border-color: var(--plum);
}
.form-note { font-size: 0.85rem; color: var(--slate-faint); line-height: 1.55; }
.form-status {
  background: var(--blush-soft);
  border: 1px solid #E3D2CD;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: var(--step--1);
  color: var(--plum-deep);
}
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0; max-width: 78ch; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--plum-deep);
  cursor: pointer;
  list-style: none;
  padding: 18px 34px 18px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--plum);
  border-bottom: 1.5px solid var(--plum);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--slate-soft); padding: 0 40px 22px 0; max-width: 66ch; }

/* ---------- Split callout ---------- */

.callout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
@media (max-width: 860px) { .callout { grid-template-columns: 1fr; } }

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lede { margin-inline: auto; max-width: 52ch; }
.cta-band .btn-row { justify-content: center; margin-top: 30px; }

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

.site-footer {
  background: var(--plum-dark);
  color: #D9CFDD;
  padding-block: clamp(46px, 6vw, 68px) 30px;
  font-size: var(--step--1);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.site-footer h4 {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #D9CFDD; text-decoration: none; }
.site-footer a:hover { color: #FFF; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__mark { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.site-footer__mark img { width: 42px; }
.site-footer__mark strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  color: #FFF;
  letter-spacing: -0.01em;
}
.site-footer__blurb { color: #BCAEC2; max-width: 34ch; line-height: 1.6; }
.site-footer__bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(232, 215, 210, .18);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  color: #AB9DB2;
  font-size: 0.82rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom .spacer { margin-left: auto; }
@media (max-width: 800px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 28px; }
}

/* Disclosure strip — honest about stage */
.stage-note {
  background: var(--blush);
  color: var(--plum-dark);
  font-size: 0.84rem;
  text-align: center;
  padding: 9px 24px;
  line-height: 1.5;
}
.stage-note a { color: var(--plum-dark); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--plum-deep);
  color: #FFF;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .btn:hover { transform: none; }
}
