/* ============================================================
   LUNE — Brand Stylesheet
   Cycle-synced nutrition app
   ============================================================ */

:root {
  /* Brand colors (from Instagram identity) */
  --burgundy:        #4A1929;
  --burgundy-soft:   #5D2535;
  --burgundy-dark:   #3A1421;
  --lilac:           #A893C1;
  --rose-light:      #F5E1E0;
  --rose-mid:        #E8C8D2;
  --mauve-light:     #D9C5D1;
  --peach:           #FAE6DE;
  --cream:           #FBF4F2;
  --gold:            #B48C50;
  --grey-warm:       #826979;
  --grey-soft:       #BCA8B0;
  --white:           #FFFFFF;

  /* Phase colors — Lune brand chart */
  --phase-menstrual:   #E83A6D;   /* pink */
  --phase-follicular:  #2DBE7F;   /* green */
  --phase-ovulatory:   #F2A53B;   /* orange */
  --phase-luteal:      #A87DDE;   /* lilac/purple */
  --phase-menstrual-soft:  #FBEAF0;
  --phase-follicular-soft: #E5F5EE;
  --phase-ovulatory-soft:  #FCEFDD;
  --phase-luteal-soft:     #F0E7FB;

  /* Typography */
  --font-serif:  'Lora', 'Playfair Display', Georgia, serif;
  --font-sans:   'Poppins', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;

  /* Spacing */
  --section-y: clamp(80px, 10vw, 140px);
  --container: 1200px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--burgundy);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: opacity .2s ease; }
a:hover { opacity: .7; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--burgundy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(48px, 8vw, 112px); line-height: 1.02; }
h2 { font-size: clamp(38px, 5.5vw, 72px); line-height: 1.08; }
h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
h4 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }

.kicker {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lilac);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--lilac);
  border-radius: 50%;
}

.eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--burgundy-soft);
  font-size: clamp(18px, 1.8vw, 24px);
}

p { font-size: 17px; color: var(--grey-warm); }
.lead { font-size: clamp(18px, 1.4vw, 22px); color: var(--burgundy-soft); line-height: 1.5; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-y) 0; position: relative; }

/* ============================================================
   BACKGROUNDS / DECOR
   ============================================================ */
.bg-rose {
  background: linear-gradient(180deg, var(--cream) 0%, var(--rose-light) 100%);
}
.bg-mauve {
  background: linear-gradient(180deg, var(--rose-light) 0%, var(--mauve-light) 100%);
}
.bg-burgundy {
  background: var(--burgundy);
  color: var(--rose-light);
}
.bg-burgundy h1, .bg-burgundy h2, .bg-burgundy h3 { color: var(--cream); }
.bg-burgundy p, .bg-burgundy .lead { color: var(--rose-mid); }

.blob-decor {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .6;
  pointer-events: none;
  z-index: 0;
}
.blob-1 { width: 600px; height: 600px; background: var(--peach); top: -200px; right: -150px; }
.blob-2 { width: 500px; height: 500px; background: var(--mauve-light); bottom: -100px; left: -150px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  backdrop-filter: blur(12px);
  background: rgba(251, 244, 242, 0.85);
  border-bottom: 1px solid rgba(74, 25, 41, 0.06);
  transition: all .3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  color: var(--burgundy);
}

.nav-logo svg { width: 26px; height: 26px; }
.nav-logo-img {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: none;
  object-fit: contain;
}
/* When real logo image is present : show the image, hide the inline SVG + wordmark text in nav */
.nav-logo.has-logo svg { display: none; }
.nav-logo.has-logo .nav-logo-img { display: block; }
.nav-logo.has-logo .nav-logo-text { display: none; }

/* Footer logo keeps the inverted SVG (cream on burgundy) regardless of image */
footer .nav-logo.has-logo svg { display: inline-block; }
footer .nav-logo.has-logo .nav-logo-img { display: none; }
footer .nav-logo.has-logo .nav-logo-text { display: inline; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--burgundy-soft);
  letter-spacing: 0.02em;
}

.nav-cta {
  background: var(--burgundy);
  color: var(--cream) !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500 !important;
  transition: all .25s ease;
}
.nav-cta:hover { background: var(--burgundy-soft); opacity: 1; transform: translateY(-1px); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: 0.1em;
  color: var(--grey-warm); font-weight: 500;
  text-transform: uppercase;
}
.lang-switch a {
  color: var(--grey-warm);
  padding: 4px 6px;
  border-radius: 4px;
  transition: all .2s ease;
}
.lang-switch a.active {
  color: var(--burgundy);
  background: rgba(74,25,41,0.06);
}
.lang-switch a:hover { color: var(--burgundy); opacity: 1; }
.lang-switch .sep { opacity: .4; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--burgundy);
  color: var(--cream);
}
.btn-primary:hover { background: var(--burgundy-soft); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(74,25,41,0.25); opacity: 1; }
.btn-ghost {
  background: transparent;
  color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
}
.btn-ghost:hover { background: var(--burgundy); color: var(--cream); opacity: 1; }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 160px 0 var(--section-y);
  overflow: hidden;
  background: linear-gradient(160deg, var(--cream) 0%, var(--rose-light) 60%, var(--mauve-light) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  margin-bottom: 24px;
}
.hero h1 {
  margin-bottom: 28px;
}
.hero h1 em { font-style: italic; }
.hero h1 .accent { color: var(--burgundy-soft); }
.hero-sub {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--burgundy-soft);
  margin-bottom: 40px;
  max-width: 540px;
  font-weight: 300;
}
.hero-cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-phone-frame {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 9/19.5;
  border-radius: 48px;
  background: linear-gradient(160deg, var(--rose-light), var(--mauve-light));
  border: 8px solid var(--burgundy);
  box-shadow: 0 50px 100px rgba(74,25,41,0.25), 0 20px 40px rgba(74,25,41,0.15);
  position: relative;
  overflow: hidden;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}
.phone-mockup-header {
  display: flex; justify-content: center; padding: 4px 0 18px;
  font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--burgundy);
}
.phone-phase {
  text-align: center;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--burgundy-soft); margin-bottom: 28px;
}
.phone-phase::before { content: '● '; color: var(--lilac); }
.phone-card {
  background: rgba(255,255,255,0.55);
  border-radius: 20px;
  padding: 22px 18px;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}
.phone-card h5 {
  font-family: var(--font-serif); font-style: italic; font-size: 20px;
  color: var(--burgundy); margin-bottom: 6px;
}
.phone-card p { font-size: 12px; color: var(--burgundy-soft); line-height: 1.4; }
.phone-cycle-circle {
  width: 130px; height: 130px;
  border-radius: 50%;
  margin: 12px auto;
  background: conic-gradient(var(--lilac) 0% 25%, var(--rose-mid) 25% 50%, var(--peach) 50% 75%, var(--mauve-light) 75% 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.phone-cycle-inner {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.phone-cycle-inner span:first-child {
  font-family: var(--font-serif); font-style: italic; font-size: 28px; color: var(--burgundy);
}
.phone-cycle-inner span:last-child {
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--burgundy-soft);
}

/* Mini symptom-log card in hero phone */
.mini-log h5 { margin-bottom: 10px; }
.mini-emojis {
  display: flex; justify-content: space-between;
  margin-bottom: 10px;
}
.mini-emojis span {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(74,25,41,0.05);
  font-size: 13px;
}
.mini-emojis .on {
  background: var(--gold);
  box-shadow: 0 4px 10px rgba(180,140,80,0.35);
}
.mini-chips {
  display: flex; flex-wrap: wrap; gap: 5px;
}
.mini-chips span {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 100px;
  background: white;
  border: 1px solid rgba(74,25,41,0.1);
  color: var(--burgundy-soft);
}
.mini-chips .on {
  background: var(--phase-menstrual-soft);
  border-color: var(--phase-menstrual);
  color: var(--phase-menstrual);
  font-weight: 500;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  max-width: 800px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-header .kicker { margin-bottom: 18px; }
.section-header h2 { margin-bottom: 18px; }

/* ============================================================
   PHASES (cycle phases grid)
   ============================================================ */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.phase-card {
  padding: 36px 28px;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid rgba(74,25,41,0.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.phase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(74,25,41,0.1);
}
.phase-card[data-phase="menstrual"]  { background: linear-gradient(160deg, var(--phase-menstrual-soft), var(--cream)); }
.phase-card[data-phase="follicular"] { background: linear-gradient(160deg, var(--phase-follicular-soft), var(--cream)); }
.phase-card[data-phase="ovulation"]  { background: linear-gradient(160deg, var(--phase-ovulatory-soft), var(--cream)); }
.phase-card[data-phase="luteal"]     { background: linear-gradient(160deg, var(--phase-luteal-soft), var(--cream)); }

.phase-card[data-phase="menstrual"]  .phase-dot { background: var(--phase-menstrual); }
.phase-card[data-phase="follicular"] .phase-dot { background: var(--phase-follicular); }
.phase-card[data-phase="ovulation"]  .phase-dot { background: var(--phase-ovulatory); }
.phase-card[data-phase="luteal"]     .phase-dot { background: var(--phase-luteal); }

.phase-card[data-phase="menstrual"]  h3 { color: var(--phase-menstrual); }
.phase-card[data-phase="follicular"] h3 { color: var(--phase-follicular); }
.phase-card[data-phase="ovulation"]  h3 { color: var(--phase-ovulatory); }
.phase-card[data-phase="luteal"]     h3 { color: var(--phase-luteal); }

.phase-card .phase-dot {
  width: 14px; height: 14px; border-radius: 50%;
  margin-bottom: 18px;
}
.phase-card h3 { margin-bottom: 10px; }
.phase-card .phase-when {
  font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--burgundy-soft); margin-bottom: 18px;
}
.phase-card p { color: var(--burgundy-soft); font-size: 15px; }

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 60px;
}
.feature {
  padding: 44px 32px;
  border-radius: var(--r-lg);
  background: var(--cream);
  border: 1px solid rgba(74,25,41,0.05);
}
.feature-num {
  font-family: var(--font-serif); font-style: italic;
  font-size: 48px; color: var(--gold);
  line-height: 1; margin-bottom: 20px;
}
.feature h3 { font-size: 28px; margin-bottom: 14px; }
.feature p { color: var(--grey-warm); font-size: 16px; }

/* ============================================================
   SCIENCE / EXPLAINER
   ============================================================ */
.explainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.explainer-text h2 { margin-bottom: 28px; }
.explainer-text .kicker { margin-bottom: 20px; }
.explainer-text p { font-size: 18px; line-height: 1.65; margin-bottom: 16px; }
.explainer-chain {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 48px 40px;
  border: 1px solid rgba(74,25,41,0.06);
  box-shadow: 0 30px 80px rgba(74,25,41,0.08);
}
.chain-step {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(74,25,41,0.12);
}
.chain-step:last-child { border-bottom: none; }
.chain-num {
  font-family: var(--font-serif); font-style: italic;
  font-size: 36px; color: var(--lilac);
  line-height: 1; min-width: 50px;
}
.chain-step h4 { margin-bottom: 4px; }
.chain-step p { font-size: 15px; color: var(--grey-warm); }

/* ============================================================
   ARTICLES TEASER
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 56px;
}
.article-card {
  background: var(--cream);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid rgba(74,25,41,0.05);
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(74,25,41,0.1); opacity: 1; }
.article-card-img {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--rose-light), var(--mauve-light));
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.article-card-img svg {
  width: 56%; height: auto;
  filter: drop-shadow(0 10px 20px rgba(74,25,41,0.18));
}
.article-card-img.luteal {
  background: linear-gradient(160deg, var(--phase-luteal-soft) 0%, var(--mauve-light) 100%);
}
.article-card-img.luteal::before {
  content: '';
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,125,222,0.25), transparent 60%);
  top: -40%; left: -20%;
}
.article-card-img.sync {
  background: linear-gradient(160deg, var(--cream) 0%, var(--rose-light) 100%);
}
.article-card-img.science {
  background: linear-gradient(160deg, var(--peach) 0%, var(--phase-menstrual-soft) 100%);
}
.article-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.article-card-tag {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lilac); font-weight: 500; margin-bottom: 14px;
}
.article-card h3 { font-size: 26px; margin-bottom: 12px; }
.article-card p { font-size: 15px; color: var(--grey-warm); margin-bottom: 20px; flex: 1; }
.article-card-link {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--burgundy); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}

/* ============================================================
   QUOTE / CTA SECTION
   ============================================================ */
.big-cta {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.big-cta h2 {
  font-size: clamp(48px, 7vw, 96px);
  margin-bottom: 32px;
}
.big-cta .lead { margin-bottom: 48px; }

/* App Store badge */
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--burgundy);
  color: var(--cream);
  padding: 14px 28px;
  border-radius: 16px;
  font-family: var(--font-sans);
  transition: all .25s ease;
}
.app-badge:hover { background: var(--burgundy-soft); opacity: 1; transform: translateY(-2px); }
.app-badge svg { width: 32px; height: 32px; }
.app-badge .b-top { display: block; font-size: 11px; opacity: .8; letter-spacing: 0.05em; }
.app-badge .b-bottom { display: block; font-size: 20px; font-weight: 500; font-family: var(--font-serif); font-style: italic; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--burgundy);
  color: var(--rose-mid);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand .nav-logo { color: var(--cream); margin-bottom: 20px; }
.footer-brand p { color: var(--rose-mid); max-width: 320px; font-size: 14px; }
footer h5 {
  font-family: var(--font-sans);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 22px;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 12px; }
footer ul a { font-size: 14px; color: var(--rose-mid); }
.footer-bottom {
  border-top: 1px solid rgba(245,225,224,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--rose-mid);
}
.disclaimer {
  font-size: 12px;
  color: rgba(245,225,224,0.55) !important;
  max-width: 800px;
  margin: 0 0 30px;
  line-height: 1.6;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-hero {
  padding: 180px 0 80px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--mauve-light) 100%);
  text-align: center;
}
.article-hero .kicker { margin-bottom: 22px; }
.article-hero h1 { max-width: 900px; margin: 0 auto 28px; font-size: clamp(40px, 6vw, 84px); }
.article-hero .meta { color: var(--burgundy-soft); font-size: 14px; letter-spacing: 0.05em; }
.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px var(--section-y);
}
.article-content p {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 24px;
  color: var(--burgundy-soft);
}
.article-content h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 56px 0 24px;
}
.article-content h3 {
  font-size: clamp(24px, 2.5vw, 32px);
  margin: 40px 0 18px;
}
.article-content blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 2.5vw, 34px);
  color: var(--burgundy);
  line-height: 1.4;
  padding: 36px 40px;
  margin: 40px 0;
  background: linear-gradient(160deg, var(--rose-light), var(--mauve-light));
  border-radius: var(--r-lg);
  border-left: 4px solid var(--lilac);
}
.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
}
.article-content ul li, .article-content ol li {
  font-size: 18px;
  line-height: 1.7;
  color: var(--burgundy-soft);
  margin-bottom: 10px;
}
.article-content strong { color: var(--burgundy); font-weight: 500; }
.article-cta-inline {
  background: var(--burgundy);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: 40px;
  margin: 60px 0;
  text-align: center;
}
.article-cta-inline h3 { color: var(--cream); margin-bottom: 12px; }
.article-cta-inline p { color: var(--rose-mid); margin-bottom: 24px; }

/* ============================================================
   LEGAL / SUPPORT / SOURCES — shared blocks
   ============================================================ */
.legal-date {
  font-size: 14px;
  color: var(--grey-warm);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}
.legal-highlight {
  background: linear-gradient(160deg, var(--rose-light), var(--peach));
  border-left: 4px solid var(--phase-luteal);
  padding: 24px 28px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 24px 0;
}
.legal-highlight p { color: var(--burgundy); margin-bottom: 0; font-size: 16px; }
.legal-highlight strong { color: var(--burgundy); }

.faq-card {
  background: var(--phase-menstrual-soft);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin-bottom: 14px;
}
.faq-card h4 {
  color: var(--phase-menstrual);
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 8px;
}
.faq-card p { color: var(--burgundy-soft); font-size: 15px; margin-bottom: 0; }

.help-card {
  background: var(--cream);
  border: 1px solid rgba(74,25,41,0.08);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin-bottom: 14px;
}
.help-card h4 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--burgundy);
  margin-bottom: 8px;
}
.help-card p, .help-card li { font-size: 15px; color: var(--burgundy-soft); }
.help-card ul { margin: 8px 0 0 22px; }

.contact-box {
  text-align: center;
  background: linear-gradient(160deg, var(--rose-light), var(--mauve-light));
  border-radius: var(--r-lg);
  padding: 48px 32px;
  margin-top: 48px;
}
.contact-box h3 { margin-bottom: 12px; }
.contact-box p { color: var(--burgundy-soft); margin-bottom: 24px; }

.sources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 40px 0;
}
.source-item {
  background: var(--cream);
  border: 1px solid rgba(74,25,41,0.08);
  border-radius: var(--r-md);
  padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.source-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(74,25,41,0.08);
}
.source-item h4 {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  color: var(--burgundy);
  margin-bottom: 8px;
}
.source-item p {
  font-size: 14px;
  color: var(--grey-warm);
  margin-bottom: 14px;
}
.source-item a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--phase-luteal);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.source-item a:hover { color: var(--burgundy); opacity: 1; }
@media (max-width: 720px) {
  .sources-grid { grid-template-columns: 1fr; }
}

/* Footer legal links row */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(245,225,224,0.08);
}
.footer-legal a {
  font-size: 12px;
  color: rgba(245,225,224,0.7);
  letter-spacing: 0.02em;
}
.footer-legal a:hover { color: var(--cream); opacity: 1; }

/* ============================================================
   HOW IT WORKS — 3 steps with app mockups
   ============================================================ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.how-step { text-align: center; }
.how-num {
  font-family: var(--font-serif); font-style: italic;
  font-size: 48px; color: var(--gold);
  line-height: 1; margin-bottom: 16px;
}
.how-step h3 { font-size: 28px; margin-bottom: 10px; }
.how-step > p {
  color: var(--grey-warm); font-size: 15px;
  margin-bottom: 30px; max-width: 280px; margin-left: auto; margin-right: auto;
}
.how-phone {
  margin: 0 auto;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9/19;
  border-radius: 38px;
  border: 8px solid var(--burgundy);
  padding: 26px 18px;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 60px rgba(74,25,41,0.18);
  position: relative;
  overflow: hidden;
}
.phone-light { background: var(--cream); color: var(--burgundy); }
.phone-dark  { background: linear-gradient(160deg, #2A0B1A, #4A1929); color: var(--rose-light); }

/* Real-screenshot swap : when /assets/step-N.png exists, replace the CSS mockup */
.how-phone .step-real-screen {
  display: none;
  position: absolute;
  inset: -8px;             /* fill the entire frame, including the border area */
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  object-fit: cover;
  border-radius: 30px;
  z-index: 2;
}
.how-phone.has-image .step-real-screen { display: block; }
.how-phone.has-image > *:not(.step-real-screen) { display: none; }

/* Common phone elements */
.how-phone h6 {
  font-family: var(--font-sans);
  font-weight: 600; font-size: 16px;
  margin-bottom: 14px;
}
.ph-label {
  font-size: 12px; font-weight: 500;
  margin: 10px 0 6px; color: var(--burgundy-soft);
}
.phone-light .ph-label { color: var(--burgundy); }

/* Step 2 — emoji row + chips */
.emoji-row {
  display: flex; justify-content: space-between;
  margin-bottom: 10px;
}
.emoji-row span {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(74,25,41,0.04);
  font-size: 16px;
}
.emoji-row .sel-emoji {
  background: var(--gold); color: white;
  box-shadow: 0 4px 12px rgba(180,140,80,0.4);
}
.chips {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.chip {
  padding: 5px 8px;
  border: 1px solid rgba(74,25,41,0.12);
  border-radius: 100px;
  font-size: 10px;
  background: white;
  color: var(--burgundy);
  white-space: nowrap;
}
.chip.sel {
  background: var(--phase-menstrual-soft);
  border-color: var(--phase-menstrual);
  color: var(--phase-menstrual);
  font-weight: 500;
}

/* Step 3 — meal result */
.phase-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 500;
  color: white;
  margin-bottom: 14px;
}
.phase-badge.follicular { background: var(--phase-follicular); }
.phase-badge.luteal     { background: var(--phase-luteal); }
.phase-badge.menstrual  { background: var(--phase-menstrual); }
.phase-badge.ovulatory  { background: var(--phase-ovulatory); }

.recipe-card {
  background: white;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(74,25,41,0.06);
}
.recipe-img {
  width: 100%; height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, #F5C28A, #E89B5C);
  margin-bottom: 8px;
}
.recipe-img.alt {
  background: linear-gradient(135deg, #C4A584, #8B6B4F);
}
.recipe-card h5 {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 12px; color: var(--burgundy);
  margin-bottom: 4px;
}
.recipe-desc { font-size: 9px; color: var(--grey-warm); line-height: 1.3; }

/* Step 1 — dark onboarding */
.dark-progress {
  position: absolute; top: 0; left: 0;
  height: 3px; width: 33%;
  background: linear-gradient(90deg, var(--phase-menstrual), var(--phase-luteal));
}
.dark-step {
  font-size: 11px; opacity: .6;
  margin-bottom: 14px;
}
.dark-card {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 18px 14px;
  flex: 1;
}
.dark-card h6 {
  color: var(--cream); font-size: 17px;
  font-weight: 600; margin-bottom: 4px;
}
.dark-sub {
  font-size: 11px; color: var(--rose-mid);
  margin-bottom: 14px;
}
.mini-cal {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 14px;
}
.cal-head {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 8px;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 9px;
  text-align: center;
  color: var(--rose-mid);
}
.cal-days .dim { opacity: .4; }
.cal-days .sel {
  background: transparent;
  border: 1.5px solid var(--phase-menstrual);
  border-radius: 50%;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  margin: -3px auto;
}
.dark-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.dark-chips span {
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid rgba(245,225,224,0.2);
  color: var(--rose-mid);
}
.dark-chips .sel-chip {
  background: var(--phase-menstrual);
  border-color: var(--phase-menstrual);
  color: white;
}

/* ============================================================
   FOUNDERS / ABOUT
   ============================================================ */
.founders {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.founders-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  background-image: url('/assets/founders.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--mauve-light);
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(74,25,41,0.18);
}
.founders-photo::after {
  /* placeholder text when the image is missing */
  content: '';
}
.founders-photo.no-img {
  background-image: linear-gradient(160deg, var(--mauve-light), var(--rose-mid));
}
.founders-photo.no-img::after {
  content: 'Add your photo at\Aassets/founders.jpg';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  white-space: pre;
}
.founders-text .kicker { margin-bottom: 18px; }
.founders-text h2 { margin-bottom: 28px; }
.founders-text p { font-size: 17px; line-height: 1.7; margin-bottom: 16px; color: var(--burgundy-soft); }
.founders-signature {
  font-family: var(--font-serif); font-style: italic;
  font-size: 20px; color: var(--burgundy);
  margin-top: 24px;
}

/* ============================================================
   PHASE CIRCLES (brand-chart inspired visual)
   ============================================================ */
.phase-circles-section { background: var(--cream); }
.phase-circles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
  max-width: 620px;
  margin: 60px auto 0;
}
.phase-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.phase-circle-disc {
  width: 180px; height: 180px;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: white;
  font-family: var(--font-serif);
  margin-bottom: 14px;
  box-shadow: 0 24px 50px rgba(74,25,41,0.12);
  transition: transform .3s ease;
}
.phase-circle-disc:hover { transform: translateY(-6px) scale(1.03); }
.phase-circle-disc .num {
  font-style: italic; font-size: 22px; opacity: .85;
  margin-bottom: 4px;
}
.phase-circle-disc .name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.01em;
}
.phase-circle-disc .days {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.05em;
  margin-top: 6px;
  opacity: .9;
}
.phase-circle[data-phase="menstrual"]  .phase-circle-disc { background: var(--phase-menstrual); }
.phase-circle[data-phase="follicular"] .phase-circle-disc { background: var(--phase-follicular); }
.phase-circle[data-phase="ovulatory"]  .phase-circle-disc { background: var(--phase-ovulatory); }
.phase-circle[data-phase="luteal"]     .phase-circle-disc { background: var(--phase-luteal); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .explainer { grid-template-columns: 1fr; gap: 40px; }
  .founders { grid-template-columns: 1fr; gap: 40px; }
  .how-grid { grid-template-columns: 1fr; gap: 60px; }
  .phases-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .phase-circles { gap: 30px; }
  .phase-circle-disc { width: 140px; height: 140px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 24px; border-bottom: 1px solid rgba(74,25,41,0.08); }
}
@media (max-width: 560px) {
  .phases-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-content blockquote { padding: 24px; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
