/* ==========================================================================
   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:   #5F6878;  /* 5.0:1 on ivory (was #6E7788, 4.0:1) */
  --slate-faint:  #636B7B;  /* 4.8:1 on ivory (was #8D93A1, 2.9:1) */
  --line:         #E1D8D2;
  --line-strong:  #D3C6BE;
  --white:        #FFFDFC;
  --verified:     #4E6B5B;  /* 5.2:1 on ivory (was #5C7A69, 4.2:1); the app uses the same */

  /* 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: 216px; }
/* The menu needs a little more room than the page body: nine links and the button. */
.site-header .shell { max-width: calc(var(--shell) + 120px); }

.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 10px;
  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: 1280px) {
  .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; }
}

/* ==========================================================================
   Added Sep 2026: the app's pages, notices, sign-up form and web version
   ========================================================================== */

/* ---------- Notices (app-privacy.html, app-terms.html) ---------- */

.notice h2 { font-size: var(--step-2); margin: 36px 0 12px; }
.notice h3 { font-size: var(--step-1); font-weight: 500; margin: 28px 0 10px; }
.notice p, .notice ul { margin: 0 0 14px; }
.notice ul { padding-left: 1.2em; display: grid; gap: 6px; }
.notice strong { color: var(--plum-deep); font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { font-family: var(--display); font-weight: 500; color: var(--plum-deep); background: var(--ivory-deep); }

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

/* Anything marked hidden stays hidden, whatever display its class sets. */
[hidden] { display: none !important; }

.field[hidden] { display: none; }
.field .hint { font-size: 0.85rem; color: var(--slate-faint); text-transform: none; letter-spacing: 0; font-weight: 400; }
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--slate);
  cursor: pointer;
}
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--plum-deep); }
.choices { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.choices legend {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum-deep);
  margin-bottom: 8px;
  padding: 0;
}
.choices--grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.form-status--ok { background: #E4EDE7; border-color: #CFE0D5; color: #2F4A3B; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* ---------- Result pages (confirm, unsubscribe) ---------- */

.result { max-width: 560px; margin-inline: auto; text-align: center; }
.result .card { align-items: center; padding: 40px 32px; }
.result__mark { width: 64px; margin-bottom: 6px; }
.result__number {
  font-family: var(--display);
  font-size: clamp(3rem, 2rem + 4vw, 4.6rem);
  font-weight: 300;
  line-height: 1;
  color: var(--plum);
}
.result .btn-row { justify-content: center; margin-top: 10px; }

/* ---------- The web version at /app ---------- */

.app-banner { background: var(--plum-deep); color: #FFF; padding-block: 10px; }
.app-banner .shell { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; }
.app-banner .btn { padding: 8px 18px; }

.app-tabs {
  position: sticky;
  top: calc(75px + env(safe-area-inset-top, 0px));
  z-index: 40;
  background: rgba(245, 241, 237, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.app-tabs .shell { display: flex; gap: 4px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.app-tabs .shell::-webkit-scrollbar { display: none; }
.app-tabs a {
  font-family: var(--display);
  font-size: 0.97rem;
  color: var(--slate);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.app-tabs a:hover { background: var(--blush-soft); color: var(--plum-deep); }
.app-tabs a[aria-current="page"] { background: var(--plum-deep); color: #FFF; }

.webapp { max-width: 760px; margin-inline: auto; }
.webapp > * + * { margin-top: 18px; }
.app-title { font-size: var(--step-3); margin-top: 6px; }
.webapp h1:focus, .webapp h2:focus { outline: none; }

.guide-list { display: grid; gap: 12px; }
.guide-row { flex-direction: row; gap: 16px; padding: 20px 22px; text-decoration: none; color: inherit; transition: border-color .16s ease; }
.guide-row:hover { border-color: var(--plum); }
.guide-row__n {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blush-soft); color: var(--plum-deep);
  font-family: var(--display); font-weight: 500;
}
.guide-row__body { display: grid; gap: 4px; }
.guide-row__title { font-family: var(--display); font-size: var(--step-1); color: var(--plum-deep); }
.guide-row__summary { color: var(--slate-soft); font-size: var(--step--1); }
.guide-row__progress { color: var(--verified); font-size: var(--step--1); font-weight: 600; }

.guide-why, .guide-help, .guide-note { padding: 18px 22px; }
.guide-section { font-size: var(--step-1); font-weight: 500; margin-top: 28px; }
.guide-progress { color: var(--slate-soft); font-size: var(--step--1); margin-top: 4px; }
.steps-list, .plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps-list li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.check--step { font-size: var(--step-0); }
.check--step input:checked + span { color: var(--slate-soft); }
.plain-list li { padding-left: 18px; position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--plum); }
ol.plain-list { counter-reset: n; }
ol.plain-list li::before { content: counter(n) "."; counter-increment: n; background: none; width: auto; height: auto; top: 0; left: 0; color: var(--plum); font-family: var(--display); }
ol.plain-list li { padding-left: 24px; }
.roles-list { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: 10px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0; }
.roles-list dt { font-family: var(--display); color: var(--plum-deep); font-weight: 500; }
.roles-list dd { margin: 0; color: var(--slate); }
@media (max-width: 560px) { .roles-list { grid-template-columns: 1fr; } .roles-list dd { margin-bottom: 8px; } }

.src-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: baseline; }
.src-tag, .guide-link {
  font-family: var(--display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.src-tag { background: var(--blush-soft); color: var(--plum-deep); }
.guide-link { background: var(--plum-deep); color: #FFF; }
.guide-link:hover { color: #FFF; background: var(--plum-dark); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--body); font-size: var(--step--1); color: var(--plum-deep);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--plum-deep); border-color: var(--plum-deep); color: #FFF; }
.question-list { list-style: none; margin: 0; padding: 0; gap: 0; }
.question-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.question-list li:last-child { border-bottom: 0; }
.star, .icon-btn {
  flex: none; min-width: 44px; min-height: 44px; border-radius: 50%;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--plum);
}
.star[aria-pressed="false"] { color: var(--slate-faint); }
.star:hover, .icon-btn:hover { background: var(--blush-soft); }
.icon-btn { font-size: 1.1rem; color: var(--plum-deep); }
.icon-btn[disabled] { color: var(--line-strong); cursor: default; background: none; }
.sticky-cta { position: sticky; bottom: 16px; display: flex; justify-content: center; margin-top: 24px; }
.sticky-cta .btn { box-shadow: var(--shadow-lift); }

.my-list { list-style: none; margin: 0; padding: 0; gap: 0; counter-reset: item; }
.my-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); counter-increment: item; }
.my-list li:last-child { border-bottom: 0; }
.my-list__text::before { content: counter(item) ". "; color: var(--plum); font-family: var(--display); font-weight: 500; }
.my-list__tools { display: flex; flex: none; }
.print-only { display: none; }

.badge {
  display: inline-block; font-family: var(--display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--plum-deep); background: var(--blush); border-radius: 999px; padding: 5px 12px;
}
.persona { padding: 20px 22px; }
.persona__name { font-family: var(--display); font-size: var(--step-1); color: var(--plum-deep); }
.step-titles { padding-left: 1.3em; display: grid; gap: 6px; }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: var(--step--1); }
.timeline { list-style: none; margin: 0; padding: 18px 22px; gap: 14px; }
.timeline li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--line); }
.timeline__date { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-soft); }
.timeline__title { font-family: var(--display); color: var(--plum-deep); }
.timeline__detail { font-size: var(--step--1); color: var(--slate); }
.step-nav { margin-top: 28px; }


@media (max-width: 420px) { .app-tabs a { padding: 8px 10px; font-size: 0.92rem; } .app-tabs .shell { padding-inline: 14px; } }

@media print {
  .site-header, .site-footer, .app-tabs, .app-banner, .no-print, .webapp > p:first-child, .webapp h1 { display: none !important; }
  body { background: #FFF; }
  .print-only { display: block; }
  .print-title { font-family: var(--display); font-size: 20pt; color: #503C5A; margin-bottom: 12pt; }
  .my-list { border: 0; }
  .my-list li { border: 0; padding: 4pt 0; }
}

/* The sources a guide or the question bank relies on, above the first step. */
.guide-sources { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 4px 0 18px; font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-soft); }

/* Full source lines: the title as a link, the publisher under it (the app shows the same). */
.source-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.source-list a { font-weight: 600; color: var(--plum); }
.source-list__pub { display: block; font-size: var(--step--1); color: var(--slate-soft); }
.link-button {
  background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer;
  font: inherit; color: var(--plum); text-decoration: underline; text-underline-offset: 3px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
/* A jump to a section stops below the sticky site header and the app's tab bar. */
#guideSources { scroll-margin-top: 150px; }

/* Apple's "Download on the App Store" badge: unmodified artwork, at least 40px high, with
   clear space of a quarter of its height on every side (App Store marketing guidelines). */
.store-badge { margin: 24px 0 0; }
.store-badge a { display: inline-block; padding: 13px 13px 13px 0; margin: -13px 0; }
.store-badge img { display: block; height: 50px; width: auto; max-width: none; }
