/* ============================================================
   pailuanqi.com — Design System
   面向年轻女性的周期健康内容站原型
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --bg: #FFF9F5;
  --bg-soft: #F7F0EB;
  --bg-tinted: #FFF3EE;
  --surface: rgba(255,255,255,0.82);
  --surface-strong: rgba(255,255,255,0.93);
  --surface-tint: rgba(255,241,237,0.65);

  /* Core colors */
  --coral: #F16F56;
  --coral-deep: #D75946;
  --coral-glow: rgba(241,111,86,0.18);
  --peach: #FBBDA7;
  --peach-soft: #FFE8E2;
  --rose-sand: #F6C8BB;

  /* Accent */
  --amber: #F4C17B;
  --amber-glow: rgba(244,193,123,0.22);
  --sage: #8BAF7F;
  --sage-deep: #6B8F60;
  --sage-soft: #E9F0E7;
  --lavender: #C8B8E0;
  --lavender-soft: #EDE6F5;

  /* Ink */
  --ink-900: #241F20;
  --ink-700: #5B5254;
  --ink-500: #857A7D;
  --ink-400: #A89BA0;
  --ink-300: #C4B8BC;

  /* Lines & Borders */
  --line: #E8DAD4;
  --line-strong: #DDC9C2;
  --line-soft: rgba(232,218,212,0.55);

  /* Semantic */
  --success: #69845D;
  --success-bg: rgba(139,175,127,0.15);
  --warning: #BA7650;
  --warning-bg: rgba(244,193,123,0.18);
  --danger: #B3574D;
  --danger-bg: rgba(241,111,86,0.12);

  /* Shadows */
  --shadow-xs: 0 2px 8px rgba(117,86,78,0.06);
  --shadow-sm: 0 4px 16px rgba(117,86,78,0.08);
  --shadow-md: 0 14px 34px rgba(86,61,57,0.1);
  --shadow-lg: 0 18px 50px rgba(117,86,78,0.12);
  --shadow-glow: 0 14px 24px rgba(215,89,70,0.22);

  /* Radius */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* Layout */
  --container: 1200px;
  --header-h: 72px;

  /* Typography */
  --font-heading: "Noto Serif SC","Songti SC","Source Han Serif SC",serif;
  --font-body: "Inter","PingFang SC","Noto Sans SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;

  /* Transition */
  --ease-out: cubic-bezier(0.22,1,0.36,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
  --dur-fast: 0.18s;
  --dur-norm: 0.3s;
  --dur-slow: 0.5s;
}

/* ── Reset ──────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-900);
  line-height: 1.72;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(241,111,86,0.12), transparent 40%),
    radial-gradient(ellipse at 90% 0%, rgba(244,193,123,0.14), transparent 35%),
    radial-gradient(ellipse at 50% 100%, rgba(200,184,224,0.08), transparent 50%),
    linear-gradient(180deg,#FFFAF7 0%,#FFF7F2 50%,#FFF9F5 100%);
  min-height: 100vh;
}

/* Decorative blobs */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
body::before {
  bottom: 6%; left: -100px;
  width: 260px; height: 260px;
  background: radial-gradient(circle,rgba(233,240,231,0.5),transparent 70%);
}
body::after {
  top: 16%; right: -60px;
  width: 200px; height: 200px;
  border-radius: 42% 58% 63% 37% / 48% 42% 58% 52%;
  background: radial-gradient(circle,rgba(255,232,226,0.6),transparent 70%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
ul,ol { margin: 0; padding: 0; }
h1,h2,h3,h4,h5,h6 { margin: 0; }
p { margin: 0; }

/* ── Accessibility ─────────────────────────────────────── */
.skip-link {
  position: absolute; left: 16px; top: -52px;
  background: var(--ink-900); color: #fff;
  padding: 12px 20px; border-radius: var(--radius-full);
  font-weight: 600; z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 16px; }

.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;
}

/* ── Focus ─────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid rgba(241,111,86,0.3);
  outline-offset: 2px;
}

/* ── Container ─────────────────────────────────────────── */
.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 0;
  height: var(--header-h);
  display: flex; align-items: center;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(255,250,247,0.72);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-norm) ease, background var(--dur-norm) ease;
}
.site-header.is-scrolled {
  border-color: rgba(221,201,194,0.85);
  background: rgba(255,248,244,0.92);
}

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}

/* Brand */
.brand {
  display: inline-flex; align-items: center;
  gap: 12px; min-width: 0; flex-shrink: 0;
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 28% 28%,rgba(255,255,255,0.8),transparent 42%),
    linear-gradient(135deg,var(--peach),var(--coral));
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--dur-norm) var(--ease-spring);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-mark::after {
  content: "";
  position: absolute; inset: 9px 11px 11px 9px;
  border-radius: 56% 44% 60% 40% / 48% 43% 57% 52%;
  border: 2px solid rgba(255,255,255,0.85);
}
.brand-copy { display: grid; gap: 1px; }
.brand-title {
  font-family: var(--font-heading);
  font-size: 1.08rem; font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-subtitle {
  color: var(--ink-500); font-size: 0.78rem;
  letter-spacing: 0.01em;
}

/* Nav */
.nav-links {
  display: flex; align-items: center;
  gap: 6px; flex-wrap: wrap;
}
.nav-links a {
  padding: 9px 16px; border-radius: var(--radius-full);
  color: var(--ink-700); font-size: 0.92rem; font-weight: 500;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.nav-links a:hover,
.nav-links a.is-active {
  background: rgba(255,232,226,0.85);
  color: var(--ink-900);
}

/* Menu toggle */
.menu-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  transition: background var(--dur-fast) ease;
}
.menu-toggle:hover { background: rgba(255,232,226,0.6); }
.menu-toggle svg { width: 20px; height: 20px; }

/* ── Buttons ───────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; min-height: 50px; padding: 0 24px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 0.94rem; font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-norm) ease,
    background var(--dur-fast) ease;
  white-space: nowrap;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:disabled {
  opacity: 0.5; cursor: not-allowed;
  transform: none !important; box-shadow: none !important;
}

.button-primary {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.button-primary:hover {
  box-shadow: 0 16px 30px rgba(215,89,70,0.3);
}

.button-secondary {
  background: rgba(255,255,255,0.72);
  border-color: var(--line-strong);
  color: var(--ink-900);
}
.button-secondary:hover {
  background: rgba(255,232,226,0.5);
}

.button-ghost {
  background: transparent; border-color: transparent;
  color: var(--coral-deep);
  padding-inline: 4px; min-height: auto;
}
.button-ghost:hover { color: var(--coral); }

.button-sm {
  min-height: 40px; padding: 0 18px; font-size: 0.88rem;
}

/* ── Eyebrow / Pills / Chips ──────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center;
  gap: 8px; padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,232,226,0.85);
  color: var(--coral-deep); font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.02em;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--coral);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.pill, .trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-full);
  font-size: 0.86rem; line-height: 1.2;
  border: 1px solid rgba(221,201,194,0.9);
  background: rgba(255,255,255,0.6);
  color: var(--ink-700);
}

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius-full);
  font-size: 0.88rem; font-weight: 500;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.6);
  color: var(--ink-700); cursor: pointer;
  transition: all var(--dur-fast) ease;
}
.chip:hover, .chip.is-active {
  background: rgba(255,232,226,0.85);
  border-color: rgba(241,111,86,0.2);
  color: var(--ink-900);
}

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 600;
  background: var(--sage-soft); color: var(--sage-deep);
}
.status-pill.warning { background: var(--warning-bg); color: var(--warning); }
.status-pill.danger { background: var(--danger-bg); color: var(--danger); }

.metric-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 500;
  background: rgba(255,241,237,0.8);
  border: 1px solid rgba(221,201,194,0.8);
  color: var(--coral-deep);
}

/* ── Card System ───────────────────────────────────────── */
.card,
.glass-card,
.mini-card,
.feature-card,
.cluster-card,
.article-card,
.answer-card,
.tool-card,
.result-card,
.privacy-card,
.stat-card,
.toc-card,
.side-card,
.consent-card,
.form-card,
.checklist-card,
.calendar-card,
.metric-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232,218,212,0.85);
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-norm) var(--ease-out), box-shadow var(--dur-norm) ease;
}

.feature-card:hover,
.cluster-card:hover,
.article-card:hover,
.answer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card,
.cluster-card,
.article-card,
.answer-card,
.tool-card,
.result-card,
.privacy-card,
.stat-card,
.toc-card,
.side-card,
.consent-card,
.form-card,
.checklist-card,
.calendar-card,
.metric-card {
  padding: 24px;
}

.mini-card { padding: 18px; }

.card-topline {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  color: var(--coral-deep); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 40px 0 24px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px; align-items: stretch;
}

.hero-copy, .hero-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(232,218,212,0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-copy {
  padding: 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-copy::after {
  content: "";
  position: absolute; bottom: -20%; right: -8%;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle,var(--coral-glow),transparent 70%);
  pointer-events: none;
}

.hero-panel {
  padding: 24px;
  display: grid; gap: 16px;
  background:
    linear-gradient(160deg,rgba(255,255,255,0.96),rgba(255,241,237,0.9)),
    var(--surface);
}

.hero h1, .page-hero h1, .article-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.15; margin: 18px 0 16px;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--ink-900) 60%, var(--coral-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.06rem; color: var(--ink-700);
  max-width: 680px; line-height: 1.8;
}

.hero-actions, .section-actions, .cta-actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px;
}

.trust-row, .pill-row, .chip-row, .meta-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}

/* ── Mini Metrics / Cycle Visual ───────────────────────── */
.mini-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mini-label { color: var(--ink-500); font-size: 0.82rem; margin-bottom: 4px; }
.mini-value { font-size: 1.15rem; font-weight: 700; }
.mini-note { font-size: 0.86rem; color: var(--ink-700); margin-top: 2px; }

.cycle-summary { padding: 22px; }

.cycle-visual {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px; align-items: center;
}

.cycle-ring {
  width: 170px; height: 170px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center,rgba(255,255,255,0.93) 0 38%,transparent 38%),
    conic-gradient(
      var(--rose-sand) 0% 16%,
      var(--peach-soft) 16% 58%,
      var(--coral) 58% 76%,
      var(--sage-soft) 76% 100%
    );
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(221,201,194,0.6);
  transition: transform var(--dur-slow) var(--ease-spring);
}
.cycle-ring:hover { transform: scale(1.03); }

.cycle-ring::after {
  content: attr(data-phase);
  position: absolute; inset: 38px;
  display: grid; place-items: center;
  text-align: center; border-radius: 50%;
  background: rgba(255,249,245,0.95);
  color: var(--ink-900);
  font-family: var(--font-heading);
  font-size: 0.92rem; line-height: 1.35;
  padding: 14px; white-space: pre-line;
}

.phase-list {
  display: grid; gap: 10px; list-style: none;
}
.phase-list li {
  display: flex; justify-content: space-between;
  gap: 14px; padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
}
.phase-list strong { font-weight: 700; font-size: 0.9rem; }
.phase-list span { color: var(--ink-700); font-size: 0.9rem; text-align: right; }

/* ── Section ───────────────────────────────────────────── */
.section { padding: 72px 0 20px; }

.section-shell {
  padding: 36px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg,rgba(255,255,255,0.68),rgba(255,255,255,0.48));
  border: 1px solid rgba(232,218,212,0.65);
}

.section-tinted .section-shell {
  background: linear-gradient(180deg,rgba(255,241,237,0.5),rgba(255,247,242,0.3));
}

.section-head {
  display: flex; align-items: end;
  justify-content: space-between;
  gap: 24px; margin-bottom: 28px;
}
.section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1.22;
}
.section-head p {
  max-width: 620px; margin-top: 10px;
  color: var(--ink-700); line-height: 1.7;
}

/* ── Grid System ───────────────────────────────────────── */
.grid-2, .grid-3, .grid-4,
.feature-grid, .cluster-grid, .article-grid,
.answer-grid, .privacy-grid, .tool-grid,
.metric-grid, .stats-grid, .result-grid {
  display: grid; gap: 18px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3, .feature-grid, .cluster-grid, .article-grid, .privacy-grid, .tool-grid {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4, .answer-grid, .metric-grid, .stats-grid {
  grid-template-columns: repeat(4, 1fr);
}
.result-grid { grid-template-columns: repeat(2, 1fr); }

/* ── Split Layout ──────────────────────────────────────── */
.split-shell,
.calculator-layout,
.privacy-layout,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 22px;
}
.calculator-layout { align-items: start; }

/* ── Page Hero ─────────────────────────────────────────── */
.page-hero { padding: 32px 0 14px; }

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.hero-surface, .hero-aside {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(232,218,212,0.8);
  box-shadow: var(--shadow-lg);
}
.hero-aside { display: grid; gap: 14px; }

.hero-stat {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(232,218,212,0.75);
}
.hero-stat-label { font-size: 0.8rem; color: var(--ink-500); }
.hero-stat-value { margin-top: 5px; font-size: 1.28rem; font-weight: 700; }
.hero-stat-note { margin-top: 3px; color: var(--ink-700); font-size: 0.88rem; }

/* ── Forms ─────────────────────────────────────────────── */
.tool-form, .result-panel, .assessment-card,
.article-main, .article-side {
  display: grid; gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.88rem; font-weight: 600; color: var(--ink-700);
}

.input, .select {
  height: 48px; padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  color: var(--ink-900);
  font-size: 0.94rem;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.input:focus, .select:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-glow);
  outline: none;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23857A7D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field-note {
  font-size: 0.82rem; color: var(--ink-400);
}

/* ── Symptom Buttons ───────────────────────────────────── */
.notes-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.symptom-button {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.6);
  color: var(--ink-700); font-size: 0.88rem;
  transition: all var(--dur-fast) ease;
}
.symptom-button:hover { background: rgba(255,232,226,0.5); }
.symptom-button.is-active {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff; border-color: transparent;
}

/* ── Message Box ───────────────────────────────────────── */
.message-box {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-size: 0.9rem;
  min-height: 48px;
}

/* ── Timeline Track ────────────────────────────────────── */
.timeline-track {
  display: flex; gap: 3px; margin-top: 16px;
  border-radius: var(--radius-sm); overflow: hidden;
}

.timeline-segment {
  flex: 1; padding: 12px 10px;
  text-align: center; font-size: 0.78rem;
  transition: flex var(--dur-norm) ease;
}
.timeline-segment strong { display: block; font-size: 0.82rem; }
.timeline-segment small { color: var(--ink-500); }

.timeline-segment[data-phase-segment="period"] { background: var(--rose-sand); }
.timeline-segment[data-phase-segment="follicular"] { background: var(--peach-soft); }
.timeline-segment[data-phase-segment="fertile"] { background: var(--coral); color: #fff; }
.timeline-segment[data-phase-segment="fertile"] small { color: rgba(255,255,255,0.85); }
.timeline-segment[data-phase-segment="luteal"] { background: var(--sage-soft); }

/* ── Result Cards ──────────────────────────────────────── */
.result-highlight {
  background:
    linear-gradient(160deg,rgba(255,255,255,0.97),rgba(255,241,237,0.9));
}

.helper-row {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 14px;
}

.metric-label { font-size: 0.82rem; color: var(--ink-500); margin-bottom: 4px; }
.metric-value { font-size: 1.1rem; font-weight: 700; }
.metric-note { font-size: 0.84rem; color: var(--ink-700); margin-top: 4px; }

/* ── Article Cards ─────────────────────────────────────── */
.article-card-head {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 10px;
}
.article-card h3 {
  font-family: var(--font-heading);
  font-size: 1.08rem; line-height: 1.4;
  margin-bottom: 8px;
}
.article-card .excerpt {
  color: var(--ink-700); font-size: 0.9rem;
  margin-bottom: 12px;
}
.answer-snippet {
  padding: 14px; border-radius: var(--radius-sm);
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-size: 0.9rem; line-height: 1.6;
  margin-bottom: 14px;
}
.article-card-footer {
  display: flex; justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.86rem; color: var(--ink-500);
}

/* ── CTA Section ───────────────────────────────────────── */
.cta-shell { padding: 0; }

.cta-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px; align-items: center;
}

.cta-copy .lead { font-size: 1rem; }

/* Phone Mock */
.phone-shell {
  padding: 20px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg,rgba(255,255,255,0.95),rgba(255,241,237,0.85));
  border: 1px solid rgba(232,218,212,0.8);
  box-shadow: var(--shadow-lg);
}
.phone-topline {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.phone-dot-row { display: flex; gap: 5px; }
.phone-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-strong);
}
.phone-card {
  padding: 18px; margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line-soft);
}
.phone-card:last-child { margin-bottom: 0; }
.phone-card-title {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 8px;
  font-size: 0.92rem;
}
.phone-card p { color: var(--ink-700); font-size: 0.88rem; margin-top: 6px; }
.phone-progress {
  height: 6px; border-radius: 3px;
  background: var(--line); overflow: hidden;
}
.phone-progress span {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg,var(--coral),var(--peach));
  transition: width var(--dur-slow) var(--ease-out);
}

/* ── Stat Cards ────────────────────────────────────────── */
.stat-card { text-align: center; }
.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 700;
  color: var(--coral-deep);
  margin-bottom: 6px;
}
.stat-card p { color: var(--ink-700); font-size: 0.88rem; }

/* ── FAQ ───────────────────────────────────────────────── */
.faq-list { display: grid; gap: 12px; }

.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232,218,212,0.8);
  background: var(--surface-strong);
  overflow: hidden;
  transition: box-shadow var(--dur-norm) ease;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600; font-size: 1rem;
  cursor: pointer; list-style: none;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  transition: background var(--dur-fast) ease;
}
.faq-item summary:hover { background: rgba(255,241,237,0.4); }

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem; color: var(--coral);
  font-weight: 300;
  transition: transform var(--dur-norm) var(--ease-spring);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-content {
  padding: 0 24px 20px;
  color: var(--ink-700); line-height: 1.75;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  margin-top: 60px; padding: 48px 0 32px;
  background: rgba(255,247,242,0.6);
  border-top: 1px solid var(--line-soft);
}
.footer-shell { display: grid; gap: 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}
.footer-title {
  font-family: var(--font-heading);
  font-size: 1.05rem; margin-bottom: 10px;
}
.footer-note { color: var(--ink-700); font-size: 0.9rem; line-height: 1.7; }
.footer-nav { display: grid; gap: 8px; }
.footer-nav a {
  color: var(--ink-700); font-size: 0.9rem;
  transition: color var(--dur-fast) ease;
}
.footer-nav a:hover { color: var(--coral); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-500); font-size: 0.84rem;
}

/* ── History ───────────────────────────────────────────── */
.history-list { display: grid; gap: 10px; }
.history-item {
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line-soft);
}
.history-item strong { font-size: 0.9rem; }
.history-item p { color: var(--ink-700); font-size: 0.84rem; margin-top: 2px; }
.history-item time { font-size: 0.82rem; color: var(--ink-500); }

/* ── Clean List ────────────────────────────────────────── */
.clean-list {
  list-style: none;
  display: grid; gap: 8px;
}
.clean-list li {
  padding: 10px 14px; padding-left: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line-soft);
  font-size: 0.9rem; color: var(--ink-700);
  position: relative;
}
.clean-list li::before {
  content: "";
  position: absolute; left: 12px; top: 16px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

/* ── Assessment ────────────────────────────────────────── */
.assessment-shell { padding-bottom: 48px; }

.assessment-progress-bar {
  height: 5px;
  background: var(--line);
  border-radius: 3px;
  margin-bottom: 24px;
  overflow: hidden;
}
.assessment-progress-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--peach));
  border-radius: 3px;
  transition: width var(--dur-norm) var(--ease-out);
}

.step-shell { display: grid; gap: 20px; }
.step-title {
  font-family: var(--font-heading);
  font-size: 1.5rem; line-height: 1.3;
}

.option-grid { display: grid; gap: 12px; }

.option-card {
  position: relative;
}
.option-card input[type="radio"] {
  position: absolute; opacity: 0;
  width: 0; height: 0;
}
.option-card label {
  display: grid; gap: 4px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--line);
  background: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}
.option-card label strong {
  font-size: 1rem;
}
.option-card label span {
  color: var(--ink-700); font-size: 0.9rem;
}
.option-card input:checked + label {
  border-color: var(--coral);
  background: rgba(255,232,226,0.4);
  box-shadow: 0 0 0 4px var(--coral-glow);
}
.option-card label:hover {
  border-color: rgba(241,111,86,0.3);
  background: rgba(255,241,237,0.4);
}

.assessment-result { display: none; }
.assessment-result.is-visible { display: grid; gap: 18px; }

.persona-banner {
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255,232,226,0.6), rgba(233,240,231,0.4)),
    var(--surface);
  border: 1px solid rgba(232,218,212,0.7);
  text-align: center;
}
.persona-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem; margin-bottom: 10px;
  color: var(--coral-deep);
}
.persona-banner p {
  color: var(--ink-700); max-width: 480px;
  margin: 0 auto;
}

/* ── Prose (Article) ───────────────────────────────────── */
.prose { font-size: 1rem; line-height: 1.85; }
.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem; margin: 36px 0 14px;
}
.prose h3 {
  font-family: var(--font-heading);
  font-size: 1.18rem; margin: 28px 0 10px;
}
.prose p { margin: 0 0 16px; color: var(--ink-700); }
.prose ul, .prose ol {
  margin: 0 0 16px; padding-left: 24px;
}
.prose li { margin-bottom: 6px; color: var(--ink-700); }
.prose strong { color: var(--ink-900); }

.prose blockquote {
  margin: 20px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--coral);
  background: rgba(255,241,237,0.4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-700);
}

.disclaimer-box {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--warning-bg);
  border: 1px solid rgba(186,118,80,0.2);
  color: var(--warning);
  font-size: 0.9rem; line-height: 1.65;
}

/* TOC */
.toc-card { position: sticky; top: calc(var(--header-h) + 20px); }
.toc-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem; margin-bottom: 12px;
}
.toc-list { list-style: none; display: grid; gap: 6px; }
.toc-list a {
  display: block; padding: 8px 12px;
  border-radius: var(--radius-xs);
  color: var(--ink-700); font-size: 0.88rem;
  transition: all var(--dur-fast) ease;
}
.toc-list a:hover, .toc-list a.is-active {
  background: rgba(255,232,226,0.6);
  color: var(--ink-900);
}

/* ── Privacy Center ────────────────────────────────────── */
.privacy-toggle-row {
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.privacy-toggle-row:last-child { border-bottom: none; }

.toggle-info { flex: 1; }
.toggle-info strong { display: block; font-size: 0.94rem; }
.toggle-info span { color: var(--ink-500); font-size: 0.84rem; }

.toggle-switch {
  position: relative;
  width: 48px; height: 26px;
  cursor: pointer;
}
.toggle-switch input {
  position: absolute; opacity: 0;
  width: 0; height: 0;
}
.toggle-track {
  position: absolute; inset: 0;
  border-radius: 13px;
  background: var(--line-strong);
  transition: background var(--dur-fast) ease;
}
.toggle-switch input:checked + .toggle-track {
  background: var(--sage);
}
.toggle-track::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform var(--dur-fast) var(--ease-spring);
}
.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(22px);
}

/* ── Calendar ──────────────────────────────────────────── */
.calendar-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 20px;
}
.calendar-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}
.calendar-nav {
  display: flex; gap: 8px;
}
.calendar-nav button {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  display: grid; place-items: center;
  transition: all var(--dur-fast) ease;
}
.calendar-nav button:hover {
  background: rgba(255,232,226,0.6);
  border-color: var(--coral);
}
.calendar-nav button svg { width: 16px; height: 16px; }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px; margin-bottom: 8px;
  text-align: center;
  font-size: 0.8rem; font-weight: 600;
  color: var(--ink-500);
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  border: none; background: none;
  transition: all var(--dur-fast) ease;
  position: relative;
}
.calendar-day:hover { background: rgba(255,232,226,0.4); }
.calendar-day.empty { pointer-events: none; }
.calendar-day.today {
  font-weight: 700;
  box-shadow: inset 0 0 0 2px var(--coral);
  border-radius: 50%;
}
.calendar-day.period { background: var(--rose-sand); color: var(--ink-900); }
.calendar-day.follicular { background: var(--peach-soft); }
.calendar-day.fertile { background: var(--coral); color: #fff; font-weight: 600; }
.calendar-day.luteal { background: var(--sage-soft); }
.calendar-day.selected {
  box-shadow: 0 0 0 3px var(--coral-glow), inset 0 0 0 2px var(--coral);
}

.calendar-legend {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 20px;
}
.legend-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.84rem; color: var(--ink-700);
}
.legend-dot {
  width: 12px; height: 12px;
  border-radius: 4px;
}
.legend-dot.period { background: var(--rose-sand); }
.legend-dot.follicular { background: var(--peach-soft); outline: 1px solid var(--line); }
.legend-dot.fertile { background: var(--coral); }
.legend-dot.luteal { background: var(--sage-soft); }

.day-detail {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-tint);
  border: 1px solid var(--line-soft);
  margin-top: 16px;
}

/* ── Checklist ─────────────────────────────────────────── */
.checklist-tabs {
  display: flex; gap: 8px;
  margin-bottom: 24px;
}
.checklist-tab {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.6);
  font-size: 0.9rem; font-weight: 600;
  color: var(--ink-700);
  transition: all var(--dur-fast) ease;
}
.checklist-tab:hover { background: rgba(255,232,226,0.4); }
.checklist-tab.is-active {
  background: linear-gradient(135deg,var(--coral),var(--coral-deep));
  color: #fff; border-color: transparent;
}

.checklist-progress {
  display: flex; align-items: center;
  gap: 14px; margin-bottom: 20px;
}
.checklist-progress-bar {
  flex: 1; height: 8px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.checklist-progress-bar span {
  display: block; height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--sage), var(--sage-deep));
  transition: width var(--dur-norm) var(--ease-out);
}
.checklist-progress-text {
  font-size: 0.88rem; font-weight: 600;
  color: var(--sage-deep);
  white-space: nowrap;
}

.checklist-items { display: grid; gap: 10px; }

.checklist-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}
.checklist-item:hover { background: rgba(255,241,237,0.4); }
.checklist-item.is-done {
  background: rgba(233,240,231,0.3);
  border-color: rgba(139,175,127,0.2);
}
.checklist-item.is-done .checklist-text { text-decoration: line-through; color: var(--ink-500); }

.checklist-check {
  width: 24px; height: 24px;
  border-radius: 8px;
  border: 2px solid var(--line-strong);
  background: rgba(255,255,255,0.8);
  flex-shrink: 0;
  display: grid; place-items: center;
  transition: all var(--dur-fast) ease;
  margin-top: 1px;
}
.checklist-item.is-done .checklist-check {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.checklist-content { flex: 1; }
.checklist-text { font-size: 0.94rem; font-weight: 500; }
.checklist-hint { font-size: 0.84rem; color: var(--ink-500); margin-top: 3px; }

/* ── Icon Badge ────────────────────────────────────────── */
.icon-badge {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: linear-gradient(135deg,var(--coral-glow),var(--amber-glow));
  color: var(--coral-deep);
}
.icon-badge svg { width: 18px; height: 18px; }

/* ── Section Note ──────────────────────────────────────── */
.section-note {
  margin-top: 18px;
  color: var(--ink-500); font-size: 0.9rem;
}

/* ── Misc Shells ───────────────────────────────────────── */
.tool-shell, .content-shell, .article-shell, .privacy-shell {
  padding-bottom: 48px;
}

/* ── Animations ────────────────────────────────────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-animate] {
  opacity: 0;
  animation: fade-in-up 0.7s var(--ease-out) forwards;
  animation-delay: calc(var(--delay, 0) * 0.12s);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid,
  .page-hero-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .grid-3, .feature-grid, .cluster-grid, .article-grid, .privacy-grid, .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4, .answer-grid, .metric-grid, .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-shell,
  .calculator-layout,
  .privacy-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  body { font-size: 14px; }

  .container { width: calc(100% - 24px); }

  .menu-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 4px);
    left: 12px; right: 12px;
    flex-direction: column; gap: 4px;
    padding: 16px;
    background: var(--surface-strong);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 16px; }

  .hero h1, .page-hero h1 {
    font-size: 1.9rem;
  }

  .hero-copy, .hero-panel {
    border-radius: var(--radius-lg);
    padding: 24px;
  }

  .section { padding: 48px 0 16px; }
  .section-shell { padding: 20px; border-radius: var(--radius-lg); }

  .grid-2, .grid-3, .grid-4,
  .feature-grid, .cluster-grid, .article-grid,
  .answer-grid, .privacy-grid, .tool-grid,
  .metric-grid, .stats-grid, .result-grid {
    grid-template-columns: 1fr;
  }

  .form-grid { grid-template-columns: 1fr; }

  .mini-metric-grid { grid-template-columns: 1fr 1fr; }

  .cycle-visual {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .section-head { flex-direction: column; align-items: start; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .calendar-day { font-size: 0.82rem; }

  .checklist-tabs { flex-wrap: wrap; }
}

/* ── Print ─────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .menu-toggle,
  .button, .skip-link { display: none !important; }
  body { background: #fff !important; }
  .section-shell, .hero-copy, .hero-panel,
  .card, .form-card { box-shadow: none !important; border: 1px solid #ddd !important; }
}
