/* ============================================================
   MENOPAUSE APP — Landing page (marketing layer)
   Design language: cinematic b/w section rhythm (Apple-style
   alternating #0a0a0a / #f6f5f3 scenes) + Stripe-style weight-300
   display type with tight tracking. One warm accent (terracotta)
   reserved exclusively for interactive elements.
   ============================================================ */

:root {
  --ink: #1a1a18;
  --paper: #f6f5f2;
  --card: #ffffff;
  --muted: #5c5a56;
  --faint: #8f8d88;
  --line: #e4e2dd;
  --dark-bg: #0b0b0a;
  --dark-surface: rgba(255,255,255,0.06);
  --dark-border: rgba(255,255,255,0.14);
  --accent: #c2571f;        /* terracotta — CTAs only */
  --accent-hover: #a84812;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-text-size-adjust: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--dark-bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(15px, 0.5rem + 0.8vw, 17px);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

/* ============ shared ============ */
.wrap { width: min(1120px, calc(100% - clamp(32px, 6vw, 80px))); margin: 0 auto; }
.kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 15px 30px; border-radius: 999px; cursor: pointer; text-decoration: none;
  border: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  min-height: 50px; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -8px rgba(194,87,31,.55); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 14px 34px -8px rgba(194,87,31,.65); }
.btn-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-light:hover { border-color: #fff; transform: translateY(-1px); }
.btn-dark-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-dark-outline:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }

.scene { padding: clamp(72px, 11vh, 128px) 0; position: relative; overflow: hidden; }
.scene-dark { background: var(--dark-bg); color: #fff; }
.scene-light { background: var(--paper); color: var(--ink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.display {
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.04;
  text-wrap: balance;
}
.h2-display { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.1; text-wrap: balance; }
.lede { font-size: clamp(16px, 2.2vw, 20px); line-height: 1.55; color: inherit; opacity: .78; max-width: 54ch; }
.serif-i { font-style: italic; font-family: var(--serif); }

/* entrance animation */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .8s cubic-bezier(.22,1,.36,1) both; }
.rise-1 { animation-delay: .08s } .rise-2 { animation-delay: .18s }
.rise-3 { animation-delay: .3s } .rise-4 { animation-delay: .42s }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  * { transition: none !important; }
}

/* ============ nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 14px 0;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.scrolled { background: rgba(11,11,10,.82); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--serif); font-size: 21px; color: #fff; text-decoration: none; letter-spacing: -0.01em; }
.logo i { color: var(--accent); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.nav-links a:not(.btn) {
  color: rgba(255,255,255,.72); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .15s;
}
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links .btn { padding: 10px 20px; min-height: 40px; font-size: 13.5px; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }
@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,11,10,.96); backdrop-filter: blur(16px);
    padding: 12px 24px 24px; border-bottom: 1px solid var(--dark-border);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 13px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-links .btn { margin-top: 14px; }
  .nav-burger { display: block; }
}

/* ============ hero ============ */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: 110px; position: relative;
}
.hero-orbit {
  position: absolute; right: -18vmin; top: 50%; transform: translateY(-50%);
  width: 78vmin; height: 78vmin; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.09);
  pointer-events: none;
}
.hero-orbit::before, .hero-orbit::after {
  content: ""; position: absolute; border-radius: 50%;
}
.hero-orbit::before { inset: 9%; border: 1px solid rgba(255,255,255,.06); }
.hero-orbit::after {
  inset: 22%; background: radial-gradient(circle at 34% 30%, #e8632c 0%, #a33d0e 58%, #58200a 100%);
  box-shadow: 0 0 140px rgba(194,87,31,.4), inset 0 -18px 60px rgba(0,0,0,.45);
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub { margin-top: 22px; max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-proof {
  margin-top: 44px; display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 44px);
}
.proof-item strong { display: block; font-size: clamp(20px, 3vw, 27px); font-weight: 600; letter-spacing: -0.02em; }
.proof-item span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.4); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  animation: hintPulse 2.4s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100% { opacity:.35; transform: translate(-50%,0);} 50% { opacity:.85; transform: translate(-50%,6px);} }

/* marquee strip */
.strip { border-top: 1px solid var(--dark-border); border-bottom: 1px solid var(--dark-border); padding: 15px 0; overflow: hidden; }
.strip-track { display: flex; gap: 56px; white-space: nowrap; animation: slide 30s linear infinite; width: max-content; }
.strip span { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.45); display: inline-flex; align-items: center; gap: 56px; }
.strip b { color: var(--accent); font-weight: 400; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* ============ pain scene ============ */
.pain-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.pain-quote {
  border-left: 2px solid var(--accent); padding-left: 26px; margin-top: 30px;
}
.pain-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.6vw, 26px); line-height: 1.4; }
.pain-quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 13px; color: var(--muted); }
.stat-stack { display: grid; gap: 0; }
.stat-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
}
.stat-row:first-child { border-top: 1px solid var(--line); }
.stat-row b { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.02em; white-space: nowrap; }
.stat-row span { font-size: 14px; color: var(--muted); text-align: right; max-width: 24ch; }

/* ============ how it works ============ */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.step {
  background: var(--card); border-radius: 18px; padding: clamp(24px, 3.4vw, 38px);
  position: relative; overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(26,26,24,.28), 0 4px 14px -8px rgba(26,26,24,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 32px 60px -30px rgba(26,26,24,.36), 0 6px 16px -8px rgba(26,26,24,.14); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--ink); opacity: .28;
  display: block; margin-bottom: 20px;
}
.step h3 { font-size: clamp(19px, 2.4vw, 23px); margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } .pain-grid { grid-template-columns: 1fr; } }

/* ============ evidence scene (dark) ============ */
.ev-head { max-width: 720px; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px,100%), 1fr)); gap: 16px; margin-top: 48px; }
.ev-card {
  background: var(--dark-surface); border: 1px solid var(--dark-border);
  border-radius: 16px; padding: clamp(22px, 3vw, 32px);
  transition: border-color .2s, transform .2s;
}
.ev-card:hover { border-color: rgba(194,87,31,.55); transform: translateY(-3px); }
.ev-grade {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(194,87,31,.5); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px;
}
.ev-card h3 { font-size: clamp(17px, 2.2vw, 20px); margin-bottom: 8px; color: #fff; }
.ev-num { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 52px); font-weight: 500; letter-spacing: -0.02em; line-height: 1; margin: 10px 0 6px; }
.ev-num small { font-size: 0.42em; color: rgba(255,255,255,.6); font-family: var(--sans); font-weight: 500; letter-spacing: 0; }
.ev-card p { font-size: 13.5px; color: rgba(255,255,255,.62); }
.ev-src { display: block; margin-top: 14px; font-size: 11px; letter-spacing: .04em; color: rgba(255,255,255,.4); }

/* ============ pricing ============ */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr)); gap: 20px; max-width: 780px; margin: 48px auto 0; }
.plan {
  background: var(--card); border-radius: 20px; padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 30px 60px -34px rgba(26,26,24,.3), 0 6px 18px -10px rgba(26,26,24,.12);
  position: relative; display: flex; flex-direction: column;
}
.plan.featured { outline: 2px solid var(--ink); outline-offset: -2px; }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; border-radius: 999px; padding: 6px 16px;
}
.plan h3 { font-size: 21px; }
.plan .price { font-family: var(--serif); font-size: clamp(38px, 5vw, 52px); font-weight: 500; letter-spacing: -0.03em; margin: 14px 0 2px; }
.plan .price small { font-family: var(--sans); font-size: 14px; color: var(--faint); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; margin: 22px 0 26px; flex: 1; }
.plan li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: baseline;}
.plan li:last-child { border-bottom: none; }
.plan li b { color: var(--ink); }
.plan li::before { content: "—"; color: var(--accent); flex-shrink: 0; }
.plan .btn { width: 100%; }
.price-note { text-align: center; margin-top: 18px; font-size: 13px; color: var(--faint); }

/* ============ final CTA ============ */
.final { text-align: center; }
.final .display { margin: 0 auto; max-width: 18ch; }
.final .lede { margin: 20px auto 0; }
.final-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ============ footer ============ */
.footer { background: var(--dark-bg); color: rgba(255,255,255,.55); padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; border-top: 1px solid var(--dark-border); padding-top: 30px; }
.footer .logo { font-size: 18px; }
.footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer a:hover { color: #fff; }

/* ============ responsive ============ */
@media (max-width: 640px) {
  .hero-orbit { opacity: .5; right: -40vmin; }
  .stat-row b { font-size: 30px; }
  .hero-ctas .btn { width: 100%; }
  .final-ctas .btn { width: 100%; }
}
@media print { .nav, .scroll-hint, .strip { display: none !important; } }
