/* Tandem IVF shared Dusk Glow template for secondary pages (see DESIGN.md).
   Content-page ground ends at rose-300; the glow-peach horizon is landing-page-only. */

@font-face { font-family: 'Nunito'; font-weight: 400 800; font-display: swap;
  src: url('fonts/nunito-latin-var.woff2') format('woff2'); }

:root {
  --text-hi: #F8F1E7;
  --text-soft: rgba(248, 241, 231, 0.78);
  --ink: #3A3560;
  --ink-soft: #6B6590;
  --coral: #E8896B;
  --peach: #F3C8A0;
  --glass: rgba(255, 255, 255, 0.13);
  --glass-tint: rgba(88, 76, 138, 0.26);
  --glass-edge: rgba(255, 255, 255, 0.32);
}

* { box-sizing: border-box; }
html { color-scheme: light; background: #6B6598; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--text-hi);
  font-family: 'Nunito', ui-rounded, system-ui, sans-serif;
  font-size: 1.125rem; line-height: 1.65;
  background: linear-gradient(180deg, #66619A 0%, #7C74B0 42%, #A791BC 78%, #C9A9B4 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--peach); outline-offset: 3px;
}

.page { max-width: 84rem; margin: 0 auto; padding: 1.3rem 2rem 2rem; }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Deeper dusk glass for anything that carries text. Contrast pairs for every
   value here live in scripts/contrast-pairs.json (pnpm check:contrast). */
.nav.glass { background: rgba(58, 53, 96, 0.5); }
.prose-panel, main.prose, footer.site {
  --text-soft: rgba(248, 241, 231, 0.86);
  background: rgba(58, 53, 96, 0.78);
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  padding: 2rem clamp(1.2rem, 4vw, 2.5rem);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}

/* ---- Nav (mirrors index.html) ---- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 999px; padding: 0.7rem 1.6rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--text-hi); }
.brand strong { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.01em; }
.brand strong b { font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; font-size: 1.0625rem; }
.nav-links a { color: rgba(248, 241, 231, 0.92); text-decoration: none; }
.nav-links a:hover { color: var(--text-hi); }
.nav-links a[aria-current="page"] { color: var(--text-hi); font-weight: 700; }
.pill-cta {
  background: linear-gradient(120deg, #F7DDBC, #F2B896);
  color: var(--ink) !important; text-decoration: none;
  padding: 0.65rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: 1.0625rem;
  box-shadow: 0 8px 22px rgba(242, 184, 150, 0.35);
}
.pill-cta:hover { filter: brightness(1.04); }

/* ---- Skip link and phone menu (index.html inline style mirrors this block) ---- */
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: #453E78; color: var(--text-hi); font-weight: 700;
  padding: 0.7rem 1.2rem; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 1rem; }
.nav { position: relative; z-index: 20; }
.nav-toggle {
  display: none; width: 44px; height: 44px; flex: none; margin-right: -0.6rem;
  align-items: center; justify-content: center; padding: 0; cursor: pointer;
  background: transparent; border: 0; border-radius: 999px; color: var(--text-hi);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 62rem) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: calc(100% + 0.6rem); left: 0; right: 0;
    padding: 0.6rem 1rem 1rem; border-radius: 22px;
    background: #453E78; border: 1px solid var(--glass-edge);
    box-shadow: 0 12px 40px rgba(35, 29, 75, 0.35);
  }
  .nav-links.open a { display: flex; align-items: center; min-height: 44px; padding: 0 0.6rem; color: var(--text-hi); }
  .nav-links.open .pill-cta { justify-content: center; margin-top: 0.6rem; }
}
@media (max-width: 62rem) and (prefers-reduced-motion: no-preference) {
  .nav-links.open { animation: nav-in 200ms cubic-bezier(0.4, 0, 0.2, 1); }
  @keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } }
}

/* ---- Content column ---- */
main.prose { max-width: 44rem; margin: 2.2rem auto 0; }
.kicker {
  display: block; font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--peach); font-weight: 800; margin-bottom: 0.4rem;
}
.prose h1 {
  font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1.16;
  margin: 0 0 0.8rem; text-shadow: 0 2px 30px rgba(50, 42, 95, 0.30);
}
.prose .lede { font-size: 1.35rem; color: rgba(248, 241, 231, 0.92); margin: 0 0 2.2rem; }
.prose h2 { font-size: 1.55rem; font-weight: 800; margin: 2.4rem 0 0.7rem; }
.prose p { color: var(--text-soft); margin: 0 0 1rem; }
.prose strong { color: var(--text-hi); }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--text-soft); }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--text-hi); text-decoration: underline; text-decoration-color: var(--peach); text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose .draft-banner {
  color: var(--text-hi); font-weight: 700; margin: 0 0 1.4rem;
  border-left: 3px solid var(--peach); padding-left: 0.8rem;
}

/* ---- Cards ---- */
.card {
  background: var(--glass-tint); border: 1px solid var(--glass-edge);
  border-radius: 20px; padding: 1.5rem 1.7rem; margin: 0 0 1.1rem;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.card > .kicker { margin-bottom: 0.15rem; }
.card h2, .card h3 { margin: 0.2rem 0 0.55rem; font-size: 1.45rem; font-weight: 800; }
.card p { margin: 0 0 0.7rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

/* Checklist card (privacy promises) */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.5rem; margin-bottom: 0.55rem; color: var(--text-soft); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--peach); font-weight: 800; }
.checks li strong { color: var(--text-hi); }

/* FAQ accordion */
details.faq {
  background: var(--glass-tint); border: 1px solid var(--glass-edge);
  border-radius: 18px; margin-bottom: 0.8rem;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
details.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 0.7rem;
  padding: 1.1rem 1.4rem; font-weight: 800; font-size: 1.2rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+"; color: var(--peach); font-weight: 800; flex: none; }
details.faq[open] summary::before { content: "\2212"; }
details.faq .a { padding: 0 1.4rem 1.15rem 2.5rem; }
details.faq .a p { margin: 0 0 0.7rem; color: var(--text-soft); }
details.faq .a p:last-child { margin-bottom: 0; }

/* Resource guides (generated by server/scripts/build-web-resources.mts) */
.crumb { font-size: 0.95rem; margin: 0 0 0.6rem; }
.prose .crumb a { color: var(--text-soft); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.prose .crumb a:hover { color: var(--text-hi); text-decoration: underline; }
.prose .meta { color: var(--text-soft); font-size: 0.95rem; margin: 0 0 1.6rem; }
.prose a.card { display: block; text-decoration: none; color: var(--text-hi); }
.prose a.card:hover, .prose a.card:focus-visible { border-color: var(--peach); }
.prose a.card h2 { margin-top: 0.1rem; font-size: 1.3rem; }
.prose a.card p { margin-bottom: 0; }
.prose a.card .tag {
  display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--peach); font-weight: 800;
}

/* Page-end CTA */
.cta-row { margin: 2.6rem 0 1rem; display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.cta-row .note { font-size: 1rem; color: var(--text-soft); }

/* ---- Footer ---- */
footer.site {
  max-width: 44rem; margin: 1.5rem auto 0;
  font-size: 1rem; color: var(--text-soft);
}
footer.site p { margin: 0 0 0.65rem; }
footer.site strong { color: var(--text-hi); }
footer.site a { display: inline-block; padding: 0.55rem 0; color: var(--text-hi); text-decoration: underline; text-decoration-color: var(--peach); text-underline-offset: 3px; }

@media (max-width: 40rem) {
  .page { padding: 1rem 1.2rem 1.5rem; }
  main.prose { margin-top: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
