/* ============================================================
   Women First × Matmon — Wellness Pipeline Proposal
   Design system matched to womenfirstgyne.wpenginepowered.com
   Display: Cormorant Garamond (Butler-style high-contrast serif)
   Body/UI: DM Sans   |   Accent: warm gold #D09761
   ============================================================ */

:root {
  /* Brand — Women First (new site) */
  --gold: #d09761;
  --gold-deep: #b07d47;
  --gold-soft: #e6c9a6;
  --charcoal: #1a1613;
  --charcoal-2: #241f1a;
  --ink: #2b2521;

  /* Matmon signature accent (used sparingly) */
  --cyan: #16b1e8;

  /* Light surfaces */
  --bg: #fbf7f2;
  --surface: #ffffff;
  --surface-2: #f4ece2;
  --border: #e8ddd0;
  --text: #2b2521;
  --text-soft: #6c6157;
  --text-faint: #9a8f83;

  /* Type */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;

  /* Scale */
  --container: 1120px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -24px rgba(40, 30, 20, 0.28);
  --shadow-soft: 0 8px 30px -18px rgba(40, 30, 20, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #16120f;
  --surface: #1f1a15;
  --surface-2: #262019;
  --border: #362d24;
  --text: #f3ece2;
  --text-soft: #c4b6a6;
  --text-faint: #94897c;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 10px 34px -20px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; background: var(--charcoal); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 200;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; color: var(--text); }
.eyebrow {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 1.1rem;
}
.eyebrow--onaccent { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em; padding: 0.92em 1.7em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: 0.62em 1.2em; font-size: 0.88rem; }
.btn--primary { background: var(--gold); color: #fff; box-shadow: 0 10px 24px -12px rgba(208,151,97,0.7); }
.btn--primary:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn--cyan { background: var(--cyan); color: #fff; box-shadow: 0 10px 24px -12px rgba(22,177,232,0.7); }
.btn--cyan:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
.btn--ghost-onaccent { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--ghost-onaccent:hover { border-color: #fff; background: rgba(255,255,255,0.08); color:#fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  max-width: var(--container); margin: 0 auto; padding: 0.7rem clamp(20px,5vw,40px);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand__logo { height: 46px; width: auto; transition: filter 0.4s var(--ease); }
[data-theme="dark"] .brand__logo { filter: brightness(0) invert(0.92) sepia(0.35) saturate(2) hue-rotate(-10deg); }
.nav { display: flex; gap: 1.9rem; }
.nav a { font-size: 0.9rem; font-weight: 500; color: var(--text-soft); position: relative; transition: color 0.25s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--gold); transition: width 0.28s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }
.nav a.is-active { color: var(--text); font-weight: 600; }
.nav a.is-active::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: 0.9rem; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; display: grid; place-items: center;
  transition: all 0.3s var(--ease); position: relative; color: var(--text);
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-deep); }
.icon-btn::before { content: "☾"; font-size: 1.05rem; }
[data-theme="dark"] .icon-btn::before { content: "☀"; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--charcoal); color: #f5efe7;
  padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(208,151,97,0.28), transparent 70%),
    radial-gradient(50% 50% at 12% 88%, rgba(230,201,166,0.14), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative; max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(20px,5vw,40px); max-width: 940px;
}
.hero__mark { height: 62px; width: auto; margin-bottom: 1.6rem; }
.hero__title {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 500; color: #fdfaf5;
  letter-spacing: -0.015em; max-width: 16ch; margin-bottom: 1.4rem;
}
.hero__lede { font-size: clamp(1.08rem, 2.1vw, 1.3rem); color: #d8ccbd; max-width: 60ch; line-height: 1.62; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero__cta .btn--ghost { color:#f5efe7; border-color: rgba(255,255,255,0.28); }
.hero__cta .btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem;
  margin-top: 2.6rem; font-size: 0.85rem; letter-spacing: 0.05em;
  color: #b6a894; text-transform: uppercase; font-weight: 500;
}
.hero__meta i { color: var(--gold); font-style: normal; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; scroll-margin-top: 84px; }
#investment { scroll-margin-top: 84px; }
.section--muted { background: var(--surface-2); }
.section--accentbg { background: var(--charcoal-2); color: #f2ebe1; }
.section--accentbg h2, .section--accentbg h3, .section--accentbg h4 { color: #fbf6ee; }
.section--accentbg .section__intro { color: #cdc0b0; }
.section--accentbg .eyebrow { color: var(--gold); }

.section__head { max-width: 780px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section__title { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 1.1rem; }
.section__intro { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--text-soft); line-height: 1.66; }

/* ---------- Stat grid ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: clamp(3rem,6vw,4.5rem); }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-soft);
}
.stat-card__num { font-family: var(--serif); font-size: 3.4rem; font-weight: 600; color: var(--gold-deep); line-height: 1; margin-bottom: 0.7rem; }
.stat-card__label { font-size: 0.98rem; color: var(--text-soft); line-height: 1.55; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.split__text h3 { font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom: 1rem; }
.split__text p { color: var(--text-soft); }
.split__cards { display: grid; gap: 1.2rem; }
.tier {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-soft);
}
.tier__tag { font-family: var(--sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.6rem; }
.tier__tag--own { color: var(--gold-deep); }
.tier__tag--defend { color: var(--text-faint); }
.tier h4 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.tier p { color: var(--text-soft); font-size: 0.98rem; }
.tier:nth-child(2) { border-left-color: var(--text-faint); }

/* ---------- Feature grid (EmpowerRF) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 2.4rem; }
.feature {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(208,151,97,0.28);
  border-radius: var(--radius); padding: 1.6rem 1.4rem;
}
.feature h4 { font-size: 1.45rem; color: var(--gold); margin-bottom: 0.5rem; }
.feature p { font-size: 0.92rem; color: #cdc0b0; line-height: 1.55; }
.note {
  max-width: 76ch; font-size: 1.02rem; color: #d3c7b8; line-height: 1.66;
  border-left: 3px solid var(--gold); padding-left: 1.3rem; font-style: italic;
  font-family: var(--serif); font-size: 1.28rem;
}

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: 1.1rem; counter-reset: p; }
.pillar {
  display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.8rem 2rem; box-shadow: var(--shadow-soft); transition: transform 0.3s var(--ease), border-color 0.3s;
}
.pillar:hover { transform: translateY(-3px); border-color: var(--gold-soft); }
.pillar__num { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--gold); line-height: 1; opacity: 0.9; }
.pillar__body h3 { font-size: 1.55rem; margin-bottom: 0.5rem; }
.pillar__body p { color: var(--text-soft); font-size: 1rem; }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.phase {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow-soft); position: relative;
}
.phase__when { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.9rem; }
.phase h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.phase p { color: var(--text-soft); font-size: 0.94rem; }
.phase__revenue {
  margin-top: 1.1rem; display: inline-block; font-family: var(--sans); font-size: 0.76rem;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0.3em 0.85em;
}

/* ---------- Scope ---------- */
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.scope {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow-soft);
}
.scope h4 { font-size: 1.35rem; margin-bottom: 1.1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--border); }
.scope ul { display: grid; gap: 0.7rem; }
.scope li { position: relative; padding-left: 1.5rem; font-size: 0.95rem; color: var(--text-soft); line-height: 1.5; }
.scope li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }

/* ---------- CTA ---------- */
.cta { background: var(--charcoal); color: #f5efe7; padding: clamp(4rem,9vw,6.5rem) 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(55% 60% at 50% 0%, rgba(208,151,97,0.25), transparent 70%);
}
.cta__inner { position: relative; text-align: center; max-width: 720px; }
.cta__title { font-size: clamp(2.4rem, 5vw, 3.6rem); color: #fdfaf5; margin-bottom: 1.1rem; }
.cta__lede { font-size: 1.15rem; color: #d5c9ba; margin: 0 auto 2.2rem; max-width: 56ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal-2); color: #cdbfaf; padding: clamp(3rem,6vw,4.5rem) 0 2.5rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer__logo { height: 34px; width: auto; margin-bottom: 1rem; }
.footer__brand p { font-size: 0.92rem; line-height: 1.6; color: #9a8f80; }
.footer__brand p strong { color: var(--gold); font-weight: 700; }
.footer__meta { text-align: right; font-size: 0.92rem; line-height: 1.8; }
.footer__meta a { color: var(--gold); }
.footer__fine { color: #7d7264; font-size: 0.82rem; margin-top: 0.6rem; }

/* ---------- Strategy credit line ---------- */
.strategy-credit {
  display: inline-block; font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.55em 1.2em; margin-bottom: 2.2rem;
}
.strategy-credit strong { color: var(--gold-deep); font-weight: 700; }

/* ---------- Scope note ---------- */
.scope__note { margin-top: 1rem; font-size: 0.82rem; font-style: italic; color: var(--gold-deep); line-height: 1.45; }

/* ---------- Investment ---------- */
.invest { margin-top: clamp(3rem, 6vw, 4.5rem); }
.invest__head { max-width: 720px; margin-bottom: 2rem; }
.invest__head h3 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 0.8rem; }
.invest__head p { color: var(--text-soft); }
.invest__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.invest__card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem; box-shadow: var(--shadow-soft);
}
.invest__card--feature { border-color: var(--gold); box-shadow: 0 14px 40px -22px rgba(208,151,97,0.55); }
.invest__label { font-family: var(--sans); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.8rem; }
.invest__num { font-family: var(--serif); font-size: 2.7rem; font-weight: 600; color: var(--gold-deep); line-height: 1; margin-bottom: 0.9rem; }
.invest__num span { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--text-soft); letter-spacing: 0; margin-left: 0.25em; }
.invest__desc { font-size: 0.95rem; color: var(--text-soft); line-height: 1.55; }
.invest__desc em { color: var(--gold-deep); font-style: italic; }
.invest__foot { margin-top: 1.6rem; font-size: 0.92rem; color: var(--text-faint); font-style: italic; }
.invest__begin {
  margin-top: 1.6rem; background: var(--surface-2); border: 1px solid var(--border);
  border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1.5rem 1.7rem;
}
.invest__begin-label {
  font-family: var(--sans); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.6rem;
}
.invest__begin-text { font-size: 1.02rem; color: var(--text); line-height: 1.62; }
.invest__begin-text strong { color: var(--gold-deep); font-weight: 700; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav { display: none; }
  .stat-grid, .feature-grid, .timeline, .scope-grid { grid-template-columns: repeat(2, 1fr); }
  .invest__grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stat-grid, .feature-grid, .timeline, .scope-grid { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 1fr; gap: 0.6rem; }
  .header__actions .btn { display: none; }
  .footer__inner, .footer__meta { text-align: left; }
  .footer__meta { text-align: left; }
}
