/* HerFlow — herflowapp.com
   Brand: rose pink with lavender, on warm cream. Dark mode follows the app's
   plum-black look. No frameworks, no JavaScript. */

:root {
  --primary: #D4849E;
  --primary-light: #E8A4C4;
  --primary-dark: #B86B85;
  --primary-ink: #A4556F;           /* rose with enough contrast for text on cream */
  --lavender: #B8A9C9;
  --lavender-ink: #7E6F92;
  --peach: #F5D0C5;
  --background: #FFFBF8;
  --background-alt: #FFF3EE;
  --card-bg: #FFFFFF;
  --text-primary: #2B2233;
  --text-secondary: #5E5468;
  --text-light: #8E8399;
  --hairline: rgba(43, 34, 51, 0.09);
  --success: #4E9A72;
  --success-light: #E6F5EC;
  --accent-gradient: linear-gradient(135deg, #E8A4C4 0%, #D4849E 55%, #B8A9C9 100%);
  --hero-gradient: linear-gradient(180deg, #FFFFFF 0%, #FFF3EE 55%, #F9ECF4 100%);
  --card-shadow: 0 4px 24px rgba(212, 132, 158, 0.12);
  --card-shadow-hover: 0 12px 44px rgba(212, 132, 158, 0.22);
  --footer-bg: #221A2B;
  --header-bg: rgba(255, 251, 248, 0.88);
  --btn-glow: 212, 132, 158;          /* RGB for the travelling light on buttons */
  /* Cycle phase colours, taken from the app's Soft & Gentle theme */
  --ph-menstrual: #D4A5A5;
  --ph-follicular: #A8D5BA;
  --ph-ovulatory: #F7DC6F;
  --ph-luteal-early: #B8A9C9;
  --ph-luteal-late: #E8A4C4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-ink: #F0A9C6;
    --lavender-ink: #C7B9DB;
    --background: #171320;
    --background-alt: #1E1929;
    --card-bg: #241E31;
    --text-primary: #F4EEF6;
    --text-secondary: #B9B0C4;
    --text-light: #857B91;
    --hairline: rgba(244, 238, 246, 0.10);
    --success-light: rgba(78, 154, 114, 0.18);
    --hero-gradient: linear-gradient(180deg, #1B1626 0%, #221B2F 60%, #251D33 100%);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 12px 44px rgba(0, 0, 0, 0.5);
    --footer-bg: #100C17;
    --header-bg: rgba(23, 19, 32, 0.85);
    --btn-glow: 240, 169, 198;
  }
}

/* Metric-matched stand-in for Inter so text does not reflow (and icons do not
   jump) while the web font loads. Values are the standard Inter-over-Arial
   overrides; Arial ships with macOS, iOS, and Windows. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107.12%;
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--primary-ink); }

/* ---------- Header ---------- */
header.site {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 40px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--hairline);
}
.header-content {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}
.logo img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(212, 132, 158, 0.3);
}
.logo-text {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
nav.links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
nav.links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 9px 16px;
  font-weight: 500;
  font-size: 15px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}
nav.links a:hover { color: var(--primary-ink); background: rgba(212, 132, 158, 0.10); }
nav.links a[aria-current="page"] { color: var(--primary-ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 150px 40px 100px;
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -45%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(232, 164, 196, 0.28) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -25%; left: -12%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184, 169, 201, 0.30) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-icon {
  width: 140px; height: 140px;
  border-radius: 32px;
  display: block;
  margin: 0 auto 36px;
  box-shadow: 0 20px 60px rgba(212, 132, 158, 0.40);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-icon { animation: none; }
}
.hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -1.5px;
  line-height: 1.12;
}
.hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 17.5px;
  color: var(--text-secondary);
  margin: 0 auto 36px;
  max-width: 560px;
  line-height: 1.75;
}
.hero-kicker {
  display: inline-block;
  padding: 7px 18px;
  margin-bottom: 20px;
  background: rgba(212, 132, 158, 0.14);
  color: var(--primary-ink);
  border-radius: 50px;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* App Store button: two-line label, with a soft light travelling around the
   edge. Both glow layers sit inside the button and are clipped by
   overflow: hidden, so nothing spills outside the rounded shape. */
@property --orbit { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.app-store-btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 30px 13px 24px;
  background: var(--text-primary);
  color: var(--background);
  text-decoration: none;
  border-radius: 16px;
  line-height: 1.1; text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 30px rgba(43, 34, 51, 0.22);
}
.app-store-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(43, 34, 51, 0.3); }
.app-store-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.app-store-btn .cta-text { display: flex; flex-direction: column; font-size: 19px; font-weight: 600; }
.app-store-btn .cta-text small { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; margin-bottom: 3px; }
.app-store-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--orbit),
    transparent 0deg, transparent 290deg,
    rgba(var(--btn-glow), 0.6) 335deg, rgb(var(--btn-glow)) 350deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  filter: blur(1px);
  animation: orbit 4s linear infinite;
  pointer-events: none;
}
.app-store-btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--orbit),
    transparent 0deg, transparent 300deg,
    rgba(var(--btn-glow), 0.35) 345deg, transparent 360deg);
  filter: blur(6px);
  animation: orbit 4s linear infinite;
  pointer-events: none;
}
@keyframes orbit { to { --orbit: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .app-store-btn::before, .app-store-btn::after { display: none; }
}

.secondary-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 17px 34px;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 16px;
  font-weight: 600; font-size: 17px;
  border: 2px solid var(--hairline);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.secondary-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.secondary-btn:hover { border-color: var(--primary); background: rgba(212, 132, 158, 0.08); }
.hero-note { margin-top: 20px; font-size: 13px; color: var(--text-light); }

/* ---------- Promise band ---------- */
.promise {
  background: var(--accent-gradient);
  padding: 48px 40px;
  color: #fff;
  text-align: center;
}
.promise-content { max-width: 820px; margin: 0 auto; }
.promise h2 {
  font-size: 27px; font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.promise h2 svg { width: 32px; height: 32px; flex-shrink: 0; }
.promise p { font-size: 16px; opacity: 0.95; max-width: 560px; margin: 0 auto; }

/* ---------- Sections ---------- */
.section { padding: 100px 40px; }
.section.alt { background: var(--background-alt); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  padding: 7px 18px;
  background: rgba(212, 132, 158, 0.14);
  color: var(--primary-ink);
  border-radius: 50px;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 18px;
}
.section-header h2 {
  font-size: 40px; font-weight: 800;
  letter-spacing: -1px; margin-bottom: 14px; line-height: 1.15;
}
.section-header p { font-size: 16.5px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--hairline);
  position: relative; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent-gradient);
  opacity: 0; transition: opacity 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 60px; height: 60px;
  background: rgba(212, 132, 158, 0.14);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--primary-ink);
}
.feature-icon svg { width: 30px; height: 30px; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

/* Phase card: spans the grid and shows a 28-day cycle split into phases */
.phase-card { grid-column: 1 / -1; padding: 38px 40px; }
.phase-card .phase-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 26px; }
.phase-card .phase-head h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 6px; }
.phase-card .phase-head p { max-width: 560px; }
.phase-card .phase-day {
  flex: none;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(212, 132, 158, 0.12);
  color: var(--primary-ink);
  font-weight: 700; font-size: 14px;
  white-space: nowrap;
}
.cycle-strip { display: grid; grid-template-columns: 5fr 7fr 3fr 6fr 7fr; gap: 4px; }
.cycle-strip .seg { min-width: 0; }
.cycle-strip .bar { height: 14px; border-radius: 7px; }
.cycle-strip .seg:first-child .bar { border-radius: 7px 4px 4px 7px; }
.cycle-strip .seg:last-child .bar { border-radius: 4px 7px 7px 4px; }
.cycle-strip .name { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cycle-strip .days { display: block; font-size: 12.5px; color: var(--text-light); }
.seg.menstrual .bar { background: var(--ph-menstrual); }
.seg.follicular .bar { background: var(--ph-follicular); }
.seg.ovulatory .bar { background: var(--ph-ovulatory); }
.seg.luteal-early .bar { background: var(--ph-luteal-early); }
.seg.luteal-late .bar { background: var(--ph-luteal-late); }
.phase-card .phase-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: 14.5px; color: var(--text-secondary); }
.phase-card .phase-foot strong { color: var(--text-primary); font-weight: 600; }

/* People: three steps that explain how sharing works */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 64px; }
.steps li {
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 30px 28px;
  box-shadow: var(--card-shadow);
}
.steps .num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(212, 132, 158, 0.35);
}
.steps h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--text-secondary); font-size: 15px; line-height: 1.65; }
.code-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 8px;
  background: rgba(184, 169, 201, 0.22);
  color: var(--lavender-ink);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em;
}

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.plan {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 36px;
  border: 1px solid var(--hairline);
  box-shadow: var(--card-shadow);
}
.plan.highlight { border: 2px solid var(--primary); }
.plan h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.plan .price { color: var(--text-secondary); font-size: 15px; margin-bottom: 22px; }
.plan ul { list-style: none; }
.plan li {
  position: relative; padding: 9px 0 9px 32px;
  color: var(--text-secondary); font-size: 15px;
  border-bottom: 1px solid var(--hairline);
}
.plan li:last-child { border-bottom: none; }
.plan li::before {
  content: '';
  position: absolute; left: 0; top: 13px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--success-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E9A72' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / 12px;
}
.plan.highlight li::before {
  background-color: rgba(212, 132, 158, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4849E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.plan-note, .section-note { text-align: center; color: var(--text-light); font-size: 14px; margin-top: 28px; max-width: 680px; margin-left: auto; margin-right: auto; }

/* Privacy grid */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.privacy-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 32px 22px;
  text-align: center;
  border: 1px solid var(--hairline);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.privacy-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.privacy-card .icon {
  width: 66px; height: 66px;
  background: var(--success-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  color: var(--success);
}
.privacy-card .icon svg { width: 30px; height: 30px; }
.privacy-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.privacy-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* Solo dev */
.solo { text-align: center; }
.solo .inner { max-width: 640px; margin: 0 auto; }
.solo h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.8px; margin-top: 6px; }
.solo p { color: var(--text-secondary); margin-top: 14px; font-size: 16px; }
.solo .sig { font-style: italic; color: var(--primary-ink); margin-top: 18px; }

/* Screenshots: a row of App Store screenshots that scrolls sideways on
   narrow screens */
.shots-section { padding-bottom: 80px; }
.shots {
  list-style: none;
  display: flex; gap: 20px;
  justify-content: safe center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 18px;
  scrollbar-width: thin;
}
.shots li { flex: 0 0 168px; scroll-snap-align: center; }
.shots img {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 540 / 1173;
  border-radius: 22px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--hairline);
  background: var(--card-bg);
}

/* Comparison table */
.compare-wrap {
  overflow-x: auto;
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  box-shadow: var(--card-shadow);
}
.compare { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 14.5px; }
.compare caption { text-align: left; padding: 0; }
.compare th, .compare td { padding: 14px 12px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--hairline); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare thead th { font-size: 14px; font-weight: 700; color: var(--text-primary); padding-top: 20px; padding-bottom: 16px; }
.compare tbody th { text-align: left; font-weight: 600; color: var(--text-primary); padding-left: 24px; min-width: 190px; }
.compare tbody th small { display: block; font-weight: 400; color: var(--text-light); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
/* Row labels stay put while the table scrolls sideways on phones */
.compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card-bg); }
.compare td { color: var(--text-secondary); line-height: 1.4; }
.compare td small { display: block; color: var(--text-light); font-size: 12px; margin-top: 2px; }
/* The HerFlow column is tinted so it reads as one highlighted strip */
.compare .us { background: rgba(212, 132, 158, 0.09); }
.compare thead .us { color: var(--primary-ink); border-radius: 0; }
.compare .yes, .compare .no, .compare .part { font-weight: 600; white-space: nowrap; }
.compare .yes { color: var(--success); }
.compare .no { color: var(--text-light); }
.compare .part { color: var(--lavender-ink); }
/* Marks are drawn as masked SVGs in the text colour, because Inter has no
   check, cross, or half-circle glyphs and a system fallback looks out of place */
.compare .yes::before, .compare .no::before, .compare .part::before {
  content: ''; display: inline-block;
  width: 13px; height: 13px; margin-right: 6px; vertical-align: -1px;
  background: currentColor;
  -webkit-mask: var(--mark) center / contain no-repeat;
          mask: var(--mark) center / contain no-repeat;
}
.compare .yes { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.compare .no { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.compare .part { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23000' stroke-width='2.5'/%3E%3Cpath d='M12 3a9 9 0 0 1 0 18z'/%3E%3C/svg%3E"); }
.compare-notes { max-width: 820px; margin: 26px auto 0; color: var(--text-light); font-size: 13px; line-height: 1.6; }
.compare-notes p + p { margin-top: 8px; }
.compare-notes a { color: var(--text-secondary); }

/* Intro block at the top of the features and compare pages */
.subhero { padding: 150px 40px 70px; background: var(--hero-gradient); text-align: center; }
.subhero .inner { max-width: 820px; margin: 0 auto; }
.subhero h1 { font-size: 46px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.12; margin-bottom: 18px; }
.subhero p { font-size: 18.5px; color: var(--text-secondary); max-width: 680px; margin: 0 auto; }
.subhero + .section { padding-top: 70px; }

/* Short centered bands: the compare teaser and the download call to action */
.band, .cta { text-align: center; }
.band .inner, .cta .inner { max-width: 680px; margin: 0 auto; }
.band h2, .cta h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.2; }
.band p, .cta p { color: var(--text-secondary); font-size: 17px; margin: 14px auto 26px; }
.section-cta { text-align: center; margin-top: 36px; }

/* "Which app suits you" cards on the compare page */
.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pick-card { background: var(--card-bg); border: 1px solid var(--hairline); border-radius: 22px; padding: 28px; box-shadow: var(--card-shadow); }
.pick-card.us { border: 2px solid var(--primary); }
.pick-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pick-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.65; }

/* One-app pages (Flo alternative, Clue alternative): two columns fit without scrolling */
.compare-two { max-width: 760px; margin: 0 auto; }
.compare-two .compare { min-width: 0; }
.pick-grid.pick-three { grid-template-columns: repeat(3, 1fr); }

/* Read by screen readers, not shown */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link: hidden until focused with the keyboard */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--text-primary); color: var(--background);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Anchored sections clear the fixed header */
section[id] { scroll-margin-top: 80px; }

/* Contact */
.contact { text-align: center; }
.contact-email {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 19px 42px;
  background: var(--accent-gradient);
  color: #fff;
  text-decoration: none;
  border-radius: 16px;
  font-weight: 600; font-size: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 30px rgba(212, 132, 158, 0.38);
}
.contact-email:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(212, 132, 158, 0.5); }
.contact-email svg { width: 24px; height: 24px; }

/* ---------- Legal / support pages ---------- */
main.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 130px 24px 70px;
}
.page h1 {
  font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.15;
  margin-bottom: 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page .date { color: var(--text-light); margin-bottom: 36px; font-size: 14px; }
.page .lede { color: var(--text-secondary); font-size: 17px; margin-bottom: 36px; }
.highlight-box {
  background: rgba(212, 132, 158, 0.10);
  border-left: 4px solid var(--primary);
  padding: 22px 24px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 40px;
  color: var(--text-primary);
}
.page section { margin-bottom: 34px; }
.page h2 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.page h2.group { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-ink); margin: 40px 0 14px; }
.page p, .page li { color: var(--text-secondary); }
.page p { margin-bottom: 14px; }
.page ul, .page ol { margin: 0 0 16px 24px; }
.page li { margin-bottom: 8px; }
.page strong { color: var(--text-primary); font-weight: 600; }

/* FAQ (support page, and the landing-page FAQ section) */
.faq { max-width: 800px; margin: 0 auto; }
details {
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
details summary { cursor: pointer; font-weight: 600; color: var(--text-primary); font-size: 16px; list-style-position: outside; }
details p { margin: 10px 0 4px; color: var(--text-secondary); font-size: 15px; }
details ul, details ol { margin-top: 8px; }
details li { font-size: 15px; }

/* 404 page */
.page.error { text-align: center; }
.page.error p { max-width: 520px; margin-left: auto; margin-right: auto; }
.page.error .hero-buttons { margin-top: 28px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--footer-bg);
  color: #fff;
  padding: 48px 40px;
}
.footer-content {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { width: 38px; height: 38px; border-radius: 10px; }
.footer-logo span { font-weight: 700; font-size: 18px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, 0.62); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-light); }
.footer-copyright { color: rgba(255, 255, 255, 0.42); font-size: 14px; }
/* Second footer row: the alternative pages */
.footer-alts { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; }
.footer-alts a { color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.footer-alts a:hover { color: var(--primary-light); }
.footer-label { color: rgba(255, 255, 255, 0.35); }

/* Language button in the top bar: a <details> menu, no JavaScript */
.lang-menu { position: relative; margin: 0 0 0 4px; padding: 0; border: 0; border-radius: 0; background: none; }  /* undo the FAQ <details> card */
.lang-menu > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--hairline);
  color: var(--text-secondary); font-weight: 600; font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary svg { width: 17px; height: 17px; }
.lang-menu > summary:hover, .lang-menu[open] > summary { color: var(--primary-ink); background: rgba(212, 132, 158, 0.10); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 200;
  display: grid; grid-template-columns: repeat(3, auto); gap: 2px;
  padding: 8px; border-radius: 14px;
  background: var(--card-bg); border: 1px solid var(--hairline); box-shadow: var(--card-shadow-hover);
}
nav.links .lang-list a { padding: 8px 12px; font-size: 14px; color: var(--text-primary); white-space: nowrap; }
nav.links .lang-list a[aria-current="true"] { color: var(--primary-ink); font-weight: 700; background: rgba(212, 132, 158, 0.10); }

/* Safety note on the Natural Cycles page */
.compare-notes .notice { color: var(--text-primary); background: rgba(212, 132, 158, 0.10); border-left: 4px solid var(--primary); border-radius: 0 12px 12px 0; padding: 12px 16px; margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  /* Two rows of links are too tall to pin on a phone: let the header scroll away */
  header.site { padding: 12px 20px; position: absolute; }
  .header-content { flex-direction: column; gap: 10px; }
  nav.links { justify-content: center; }
  nav.links a { padding: 7px 12px; font-size: 14px; }
  .hero { padding: 180px 24px 70px; }
  .hero-icon { width: 100px; height: 100px; border-radius: 24px; }
  .hero h1 { font-size: 34px; letter-spacing: -0.6px; }
  .hero-kicker { font-size: 11.5px; padding: 6px 14px; }
  .hero p { font-size: 16px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .section { padding: 70px 24px; }
  .section-header h2 { font-size: 30px; }
  .features-grid, .privacy-grid, .plans, .steps { grid-template-columns: 1fr; }
  .phase-card { padding: 28px 24px; }
  .phase-card .phase-day { white-space: normal; flex: 1 1 100%; }
  .cycle-strip { gap: 3px; }
  .cycle-strip .name { font-size: 11.5px; }
  .cycle-strip .days { font-size: 11px; }
  .subhero { padding: 180px 24px 50px; }
  .subhero h1 { font-size: 32px; letter-spacing: -0.6px; }
  .subhero p { font-size: 17px; }
  .band h2, .cta h2 { font-size: 26px; }
  .pick-grid, .pick-grid.pick-three { grid-template-columns: 1fr; }
  .compare-two .compare tbody th { min-width: 120px; }
  .shots { justify-content: flex-start; gap: 14px; }
  .shots li { flex-basis: 62%; max-width: 240px; }
  .compare { font-size: 13.5px; min-width: 640px; }
  .compare tbody th { padding-left: 16px; min-width: 132px; }
  section[id] { scroll-margin-top: 0; }
  .promise { padding: 40px 24px; }
  .promise h2 { font-size: 22px; }
  main.page { padding: 180px 20px 50px; }
  .page h1 { font-size: 30px; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-alts { justify-content: center; }
  /* On phones the menu opens as a full-width panel under the header */
  .lang-menu { position: static; }
  .lang-list { left: 16px; right: 16px; top: 100%; grid-template-columns: repeat(3, 1fr); }
}
