/* ============================================================
   Dulce Espera — "Atardecer" design system
   A dreamy pregnancy suite: deep plum nights, warm cream days,
   rose + peach + gold. Fraunces for display, Nunito Sans for body.
   Mobile-first. WCAG AA contrast targets throughout.
   ============================================================ */

:root {
  --night: #22131f;        /* deep plum-black: hero, footer */
  --night-2: #2e1b2a;
  --plum-900: #3b2333;     /* headings / body text */
  --plum-700: #5c3d52;
  --plum-500: #7a5a6e;     /* secondary text — ≈ 5.7:1 on cream */
  --cream: #fdf8f1;
  --cream-2: #f9efe2;
  --blush: #f7e3d3;
  --rose-700: #a93e63;      /* primary — white text ≈ 5.5:1 */
  --rose-600: #c05b78;
  --rose-500: #d4698a;
  --rose-200: #f3c6b2;
  --rose-100: #f9e0d4;
  --rose-50: #fcefe9;
  --peach: #f7cfa3;
  --gold: #d9a441;
  --gold-soft: #eec27f;
  --sage-100: #e4efe2;
  --sage-200: #c4e1c2;
  --sage-700: #2e6b3a;
  --line: #ecd7c0;
  --white: #fffdf8;         /* warm white — never pure #fff on surfaces */
  --radius: 18px;
  --radius-s: 12px;
  --radius-m: 16px;
  --radius-l: 26px;
  --pad-card: 1.25rem;
  --shadow: 0 12px 34px rgba(59, 35, 51, 0.13);
  --shadow-s: 0 3px 12px rgba(59, 35, 51, 0.08);
  --shadow-glow: 0 12px 40px rgba(169, 62, 99, 0.28);
  --font-display: "Fraunces", Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

@media (min-width: 640px) { :root { --pad-card: 2rem; } }

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--plum-900);
  background: var(--cream);
  background-image:
    radial-gradient(1100px 500px at 85% -80px, rgba(217, 164, 65, 0.07), transparent 60%),
    radial-gradient(900px 480px at -10% 30%, rgba(192, 91, 120, 0.06), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-tap-highlight-color: rgba(169, 62, 99, 0.16);
}
::selection { background: var(--rose-200); color: var(--plum-900); }
:target { scroll-margin-top: 150px; }
main, section[id] { scroll-margin-top: 150px; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--rose-700); }
a:hover { color: var(--rose-600); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--plum-900);
}
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 4.2vw, 2rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.18rem; }
h1 em, h2 em { font-style: italic; font-weight: 480; color: var(--rose-700); }
p { margin-bottom: 0.9rem; }
small { font-size: 0.85rem; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 760px; }
section { padding: 2.75rem 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--night); color: #fff; padding: 0.6rem 1rem; z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--rose-500); outline-offset: 2px; border-radius: 6px; }
summary:focus-visible { border-radius: var(--radius-s); }

/* ---------- header ---------- */
.site-header { background: rgba(253, 248, 241, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--plum-900); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-600), var(--rose-700)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  box-shadow: 0 4px 14px rgba(169, 62, 99, 0.35);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; }

.tool-nav { border-top: 1px solid var(--line); background: rgba(253, 248, 241, 0.92); }
.tool-nav-inner {
  display: flex; gap: 0.25rem; overflow-x: auto; padding: 0.45rem 1.25rem;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tool-nav-inner::-webkit-scrollbar { display: none; }
.tool-nav a {
  flex: none; text-decoration: none; color: var(--plum-700);
  font-weight: 700; font-size: 0.95rem; padding: 0.5rem 0.9rem; border-radius: 999px;
  white-space: nowrap;
}
.tool-nav a:hover { background: var(--rose-50); color: var(--plum-900); }
.tool-nav a[aria-current="page"] { background: var(--night); color: #fff; }

@media (max-width: 640px) {
  .header-inner { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark svg { width: 17px; height: 17px; }
  .brand-name { font-size: 1.18rem; }
  .site-header { top: -48px; }
  .tool-nav-inner {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  }
}

/* ---------- buttons / forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-sans); font-weight: 800; font-size: 1rem;
  padding: 0.85rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; min-height: 52px; line-height: 1.2;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, #b65176 0%, var(--rose-700) 60%, #9c3a5c 100%);
  color: #fff; box-shadow: var(--shadow-glow);
}
.btn-primary:hover { filter: brightness(1.06); color: #fff; }
.btn-outline { background: transparent; color: var(--plum-900); border-color: var(--plum-900); }
.btn-outline:hover { background: var(--plum-900); color: #fff; }
.btn-soft { background: var(--rose-100); color: var(--plum-900); }
.btn-soft:hover { background: var(--rose-200); color: var(--plum-900); }
.btn-peach { background: linear-gradient(135deg, var(--gold-soft), var(--peach)); color: var(--night); box-shadow: 0 10px 30px rgba(217, 164, 65, 0.35); }
.btn-peach:hover { filter: brightness(1.04); color: var(--night); }
.btn-small { min-height: 0; padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn:active { transform: translateY(1px) scale(0.99); }

.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 800; margin-bottom: 0.45rem; font-size: 0.98rem; }
.field .hint { font-size: 0.88rem; color: var(--plum-500); margin-top: 0.4rem; }
input[type="date"], input[type="number"], input[type="email"], input[type="password"], input[type="text"], select, textarea {
  width: 100%; font-family: var(--font-sans); font-size: 1rem;
  color: var(--plum-900); background: var(--white);
  border: 2px solid var(--line); border-radius: var(--radius-s);
  padding: 0.8rem 1rem; min-height: 52px;
}
input:focus, select:focus, textarea:focus { border-color: var(--rose-500); outline: none; box-shadow: 0 0 0 4px rgba(192, 91, 120, 0.16); }
input[type="date"] { position: relative; }

/* quick chips injected by js/ux.js next to date inputs ("Hoy", etc.) */
.quick-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 0.5rem; margin-right: 0.4rem;
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 800;
  color: var(--rose-700); background: var(--rose-50);
  border: 1.5px solid var(--rose-200); border-radius: 999px;
  padding: 0.42rem 0.95rem; cursor: pointer; min-height: 40px;
}
.quick-chip:hover { background: var(--rose-100); border-color: var(--rose-500); }

/* custom range sliders */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0.2rem 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 10px; border-radius: 999px;
  background: linear-gradient(to right, var(--rose-600) 0%, var(--rose-600) var(--fill, 50%), var(--rose-100) var(--fill, 50%), var(--rose-100) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; border-radius: 50%; margin-top: -10px;
  background: var(--white); border: 3px solid var(--rose-700);
  box-shadow: 0 3px 10px rgba(169, 62, 99, 0.35);
}
input[type="range"]::-moz-range-track { height: 10px; border-radius: 999px; background: var(--rose-100); }
input[type="range"]::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--rose-600); }
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--rose-700);
  box-shadow: 0 3px 10px rgba(169, 62, 99, 0.35);
}
.range-value {
  display: inline-block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  color: var(--rose-700); min-width: 3ch;
}

/* segmented pill choices */
.pills { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; }
.pills span {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 0.6rem 1.25rem; border-radius: 999px;
  border: 2px solid var(--line); background: var(--white);
  font-weight: 800; font-size: 0.95rem; color: var(--plum-700); cursor: pointer;
}
.pills input:checked + span { background: var(--night); border-color: var(--night); color: #fff; box-shadow: var(--shadow-s); }
.pills input:focus-visible + span { outline: 3px solid var(--rose-500); outline-offset: 2px; }

.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow); padding: var(--pad-card); position: relative; overflow: hidden;
}
.form-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--rose-500), var(--peach), var(--gold-soft));
}
.form-row { display: grid; gap: 1rem; }
.form-row > * { min-width: 0; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- dream hero (homepage) ---------- */
.hero-dream {
  position: relative; overflow: hidden;
  background: var(--night);
  color: #fdf3ea;
  padding: 4.5rem 0 7rem;
}
.hero-dream::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/hero-dream.jpg") center 30% / cover no-repeat;
  opacity: 0.92;
}
.hero-dream::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(34, 19, 31, 0.42) 0%, rgba(34, 19, 31, 0.18) 42%, rgba(34, 19, 31, 0.66) 100%),
    radial-gradient(700px 380px at 18% 88%, rgba(169, 62, 99, 0.35), transparent 65%);
}
.hero-dream .grain { position: absolute; inset: 0; background-image: var(--grain); opacity: 0.08; pointer-events: none; z-index: 2; }
.hero-dream-inner { position: relative; z-index: 3; max-width: 640px; }
.hero-dream .eyebrow {
  background: rgba(238, 194, 127, 0.16); color: var(--gold-soft);
  border: 1px solid rgba(238, 194, 127, 0.45);
}
.hero-dream h1 { color: #fff8f0; font-size: clamp(2.3rem, 7vw, 3.6rem); text-shadow: 0 2px 24px rgba(34, 19, 31, 0.55); }
.hero-dream h1 em { color: var(--peach); }
.hero-dream .lead { color: #f3e0d2; font-size: 1.16rem; max-width: 33rem; text-shadow: 0 1px 14px rgba(34, 19, 31, 0.6); }
.hero-dream .hero-cta { margin-top: 1.6rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2rem; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--peach); font-weight: 600; }
.hero-stats span { font-size: 0.85rem; color: #e8cdbb; }
/* floating petals */
.petal {
  position: absolute; z-index: 2; border-radius: 62% 38% 55% 45%;
  background: radial-gradient(circle at 30% 30%, #f9cdd8, var(--rose-500));
  opacity: 0.5; filter: blur(0.6px); pointer-events: none;
}
.petal.p1 { width: 16px; height: 12px; left: 12%; top: 18%; }
.petal.p2 { width: 11px; height: 9px; left: 68%; top: 12%; }
.petal.p3 { width: 20px; height: 15px; left: 84%; top: 46%; }
.petal.p4 { width: 12px; height: 10px; left: 38%; top: 8%; }
/* wave into the cream section */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; }
.wave svg { width: 100%; height: 72px; }

/* classic hero (kept for compatibility) */
.hero { padding: 3rem 0 2.5rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--rose-700); background: var(--rose-100);
  padding: 0.4rem 1rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero p.lead { font-size: 1.15rem; color: var(--plum-700); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.hero-card {
  background: linear-gradient(150deg, var(--rose-600), var(--rose-700) 70%); color: #fff;
  border-radius: var(--radius-l); padding: var(--pad-card);
  box-shadow: var(--shadow-glow); position: relative; overflow: hidden;
}
.hero-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.4rem; }
.hero-card p { color: #ffe9e2; font-size: 0.98rem; margin-bottom: 1.2rem; }
.hero-card .week-num { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--peach); }
.hero-card .dots { position: absolute; right: -30px; top: -30px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,0.10); }
.hero-card .dots::after { content: ""; position: absolute; right: 44px; top: 60px; width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,0.10); }

/* ---------- tool cards ---------- */
.tool-grid { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tool-grid { grid-template-columns: repeat(4, 1fr); } }
.tool-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 1.7rem 1.5rem; text-decoration: none; color: var(--plum-900);
  box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 0.7rem; overflow: hidden;
}
.tool-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px; opacity: 0;
  background: linear-gradient(90deg, var(--rose-500), var(--peach));
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--plum-900); }
.tool-card:hover::after { opacity: 1; }
.tool-card:active { transform: translateY(-1px); }
.tool-card .icon {
  width: 54px; height: 54px; border-radius: 18px;
  background: linear-gradient(135deg, var(--rose-100), var(--blush));
  border: 1px solid var(--rose-200);
  display: inline-flex; align-items: center; justify-content: center; color: var(--rose-700);
}
.tool-card .icon svg { width: 26px; height: 26px; }
.tool-card h3 { font-size: 1.22rem; }
.tool-card p { font-size: 0.94rem; color: var(--plum-500); margin: 0; flex: 1; }
.tool-card .go { font-weight: 800; color: var(--rose-700); font-size: 0.95rem; }
/* soft tinted variants for rhythm */
.tint-rose { background: linear-gradient(160deg, #fff8f3, var(--rose-50)); }
.tint-peach { background: linear-gradient(160deg, #fff9f2, #fbeedf); }
.tint-sage { background: linear-gradient(160deg, #fbfdf8, var(--sage-100)); }
.tint-plum { background: linear-gradient(160deg, #fbf6f4, #f3e4e6); }

.trust-row { display: grid; gap: 1rem; margin-top: 1.6rem; }
@media (min-width: 760px) { .trust-row { grid-template-columns: repeat(3, 1fr); } }
.trust-item { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.15rem 1.25rem; box-shadow: var(--shadow-s); }
.trust-item .icon { flex: none; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--sage-100), #dcebd9); color: var(--sage-700); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--sage-200); }
.trust-item .icon svg { width: 20px; height: 20px; }
.trust-item p { margin: 0; font-size: 0.94rem; }
.trust-item strong { display: block; font-size: 1rem; }

/* ---------- dream band (full-bleed quote) ---------- */
.dream-band {
  position: relative; overflow: hidden; color: #fdf3ea; text-align: center;
  padding: 4.5rem 0; background: var(--night);
}
.dream-band::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/calm-petals.jpg") center / cover no-repeat; opacity: 0.85;
}
.dream-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34,19,31,0.55), rgba(34,19,31,0.35) 50%, rgba(34,19,31,0.6));
}
.dream-band .container { position: relative; z-index: 2; }
.dream-quote { font-family: var(--font-display); font-size: clamp(1.5rem, 4.5vw, 2.3rem); font-style: italic; font-weight: 480; color: #fff8f0; max-width: 40rem; margin: 0 auto 1.6rem; text-shadow: 0 2px 20px rgba(34,19,31,0.6); }
.dream-band p.sub { color: #f0dcc9; max-width: 34rem; margin: 0 auto 1.8rem; }

/* ---------- feature split ---------- */
.feature-split { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 900px) { .feature-split { grid-template-columns: 0.95fr 1.05fr; } }
.arch-img {
  border-radius: 999px 999px var(--radius-l) var(--radius-l);
  overflow: hidden; box-shadow: var(--shadow);
  border: 6px solid var(--white); outline: 1px solid var(--line);
}
.arch-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.feature-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.9rem; }
.feature-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.feature-list .dot {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--rose-100); color: var(--rose-700);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.feature-list p { margin: 0; }
.feature-list strong { display: block; }

/* section ornament: tiny moon divider */
.ornament { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 44px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.ornament::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.ornament svg { width: 18px; height: 18px; }

/* ---------- result panels ---------- */
.result { display: none; }
.result.visible { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes glowIn { from { box-shadow: 0 0 0 rgba(192,91,120,0); } to { box-shadow: var(--shadow-glow); } }
.result-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow);
  padding: var(--pad-card); margin-top: 1.5rem; overflow: hidden;
}
.result-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(90deg, var(--rose-500), var(--peach), var(--gold-soft));
}
.result-hero { text-align: center; padding: 0.8rem 0 1.2rem; }
.result-kicker { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--plum-500); margin-bottom: 0.5rem; }
.result-big { font-family: var(--font-display); font-size: clamp(2.1rem, 7.5vw, 3.1rem); color: var(--plum-900); line-height: 1.12; font-weight: 560; }
.result-big em { color: var(--rose-700); }
.result-sub { color: var(--plum-700); font-size: 1.06rem; margin-top: 0.5rem; }
.badge {
  display: inline-block; font-size: 0.85rem; font-weight: 800; padding: 0.35rem 1rem;
  border-radius: 999px; background: var(--rose-100); color: var(--rose-700); border: 1px solid var(--rose-200); margin: 0.15rem;
}
.badge-sage { background: var(--sage-100); color: var(--sage-700); border-color: var(--sage-200); }
.badge-plum { background: var(--night); color: #fff; border-color: var(--night); }
.badge-gold { background: #faf0d9; color: #8a5f14; border-color: #ecd9a8; }
.progress-wrap { margin: 1.4rem 0 0.4rem; }
.progress-labels { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700; color: var(--plum-500); margin-bottom: 0.45rem; }
.progress { height: 14px; border-radius: 999px; background: var(--rose-100); overflow: hidden; box-shadow: inset 0 1px 3px rgba(59,35,51,0.12); }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--rose-600), var(--rose-500)); border-radius: 999px; }
.stat-grid { display: grid; gap: 0.9rem; margin-top: 1.2rem; }
@media (min-width: 560px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat { background: linear-gradient(165deg, var(--rose-50), #fdf6ee); border: 1px solid var(--rose-200); border-radius: var(--radius-m); padding: 1.05rem 1.1rem; text-align: center; }
.stat .v { font-family: var(--font-display); font-size: 1.45rem; color: var(--plum-900); font-weight: 600; }
.stat .l { font-size: 0.85rem; color: var(--plum-500); }

/* ---------- disclaimer / notice callouts ---------- */
.callout { border-radius: var(--radius-m); padding: 1.15rem 1.3rem; margin: 1.5rem 0; font-size: 0.94rem; border: 1px solid var(--line); }
.callout p { margin-bottom: 0.5rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-medical { background: linear-gradient(165deg, #fff9f1, var(--cream-2)); border-left: 5px solid var(--peach); }
.callout-warning { background: #fdf4e4; border-color: #ecd9b8; border-left: 5px solid var(--gold); }
.callout-info { background: linear-gradient(165deg, #f4faf3, var(--sage-100)); border-color: var(--sage-200); border-left: 5px solid var(--sage-700); }
.callout strong.title { display: block; margin-bottom: 0.3rem; font-family: var(--font-display); font-size: 1.05rem; }

/* ---------- week explorer ---------- */
.weeks { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.week-item { border-bottom: 1px solid var(--line); }
.week-item summary {
  list-style: none; cursor: pointer; padding: 1rem 0.25rem;
  display: flex; align-items: center; gap: 1rem; font-weight: 700;
}
.week-item summary::-webkit-details-marker { display: none; }
.week-item summary:hover { color: var(--rose-700); }
.week-num-badge {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  background: var(--rose-50); color: var(--rose-700); border: 1.5px solid var(--rose-200);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
}
.week-item.current .week-num-badge {
  background: linear-gradient(135deg, var(--rose-600), var(--rose-700)); color: #fff; border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.week-item .week-size { flex: 1; }
.week-item .chev { color: var(--plum-500); }
.week-item[open] .chev { transform: rotate(180deg); }
.week-body { padding: 0 0.25rem 1.4rem 4.5rem; }
.week-body .size-line { font-weight: 800; color: var(--rose-700); margin-bottom: 0.5rem; }
.week-body h4 { font-family: var(--font-sans); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--plum-500); margin: 0.8rem 0 0.2rem; }
.week-body p { font-size: 0.96rem; margin-bottom: 0.4rem; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 1.2rem 0 0.8rem; }
.cal-head h3 { font-size: 1.35rem; text-transform: capitalize; }
.cal-nav-btn {
  width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--line);
  background: var(--white); color: var(--plum-900); font-size: 1.3rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-s);
}
.cal-nav-btn:hover { border-color: var(--rose-500); color: var(--rose-700); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 0.78rem; font-weight: 800; color: var(--plum-500); padding: 0.4rem 0; text-transform: uppercase; letter-spacing: 0.05em; }
.cal-day {
  aspect-ratio: 1; border-radius: var(--radius-s); border: 1px solid transparent; background: transparent;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; color: var(--plum-900); cursor: pointer;
  display: flex; align-items: center; justify-content: center; position: relative; min-height: 44px;
}
.cal-day:hover { background: var(--rose-50); }
.cal-day.is-today { border-color: var(--plum-900); font-weight: 800; }
.cal-day.is-other-month { visibility: hidden; }
.cal-day.is-period { background: linear-gradient(135deg, var(--rose-600), var(--rose-700)); color: #fff; font-weight: 800; box-shadow: 0 3px 10px rgba(169,62,99,0.35); }
.cal-day.is-period-day { background: var(--rose-100); }
.cal-day.is-fertile { background: var(--sage-100); }
.cal-day.is-ovulation { background: var(--sage-700); color: #fff; font-weight: 800; box-shadow: 0 3px 10px rgba(46,107,58,0.35); }
.cal-day.is-predicted { border: 2px dashed var(--rose-500); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-top: 1rem; font-size: 0.88rem; color: var(--plum-700); }
.cal-legend .swatch { display: inline-block; width: 16px; height: 16px; border-radius: 5px; margin-right: 0.35rem; vertical-align: -2px; }
.history-list { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: 0.6rem; }
.history-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.85rem 1.05rem;
  box-shadow: var(--shadow-s);
}
.link-danger { background: none; border: none; color: var(--rose-700); font-weight: 800; cursor: pointer; font-size: 0.9rem; padding: 0.4rem; text-decoration: underline; }

/* ---------- lists (saved items) ---------- */
.saved-list { list-style: none; padding: 0; display: grid; gap: 0.8rem; margin-top: 1rem; }
.saved-list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1rem 1.15rem; box-shadow: var(--shadow-s); }
.saved-list .saved-tool { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--rose-700); }
.saved-list .saved-title { font-weight: 800; margin: 0.15rem 0; font-family: var(--font-display); font-size: 1.05rem; }
.saved-list .saved-meta { font-size: 0.85rem; color: var(--plum-500); margin: 0; }
.saved-list .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.empty-note { background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--radius-m); padding: 1.5rem; text-align: center; color: var(--plum-500); margin-top: 1rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 1.2rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); margin-bottom: 0.7rem; box-shadow: var(--shadow-s); }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 1.25rem; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--rose-700); }
.faq .faq-body { padding: 0 1.25rem 1.25rem; color: var(--plum-700); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- method / content sections ---------- */
.method { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.8rem; margin-top: 2rem; box-shadow: var(--shadow-s); position: relative; overflow: hidden; }
.method::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--rose-500), var(--peach), var(--gold-soft)); }
.method h2 { margin-bottom: 0.8rem; }
.method ol, .method ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.sources { font-size: 0.88rem; color: var(--plum-500); }
.sources a { color: var(--plum-700); }

/* ---------- blog hero ---------- */
.blog-hero { position: relative; border-radius: var(--radius-l); overflow: hidden; margin: 1.5rem 0 2rem; box-shadow: var(--shadow); }
.blog-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.blog-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(34,19,31,0.55)); }
.blog-hero figcaption { position: absolute; z-index: 2; left: 1.5rem; bottom: 1.2rem; color: #fff8f0; font-family: var(--font-display); font-size: clamp(1.2rem, 3.5vw, 1.7rem); font-style: italic; text-shadow: 0 2px 16px rgba(34,19,31,0.6); }

/* ---------- legal pages ---------- */
.legal h2 { margin-top: 2rem; }
.legal p, .legal li { color: var(--plum-700); }
.legal ul, .legal ol { padding-left: 1.3rem; margin-bottom: 1rem; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 100;
  background: var(--night); color: #fff; border-radius: var(--radius-l);
  padding: 1.35rem 1.45rem; box-shadow: var(--shadow); max-width: 560px;
  display: none; border: 1px solid rgba(238,194,127,0.25);
}
.cookie-banner.visible { display: block; }
.cookie-banner p { font-size: 0.92rem; color: #f3e4ea; margin-bottom: 1rem; }
.cookie-banner p a { color: var(--peach); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-actions .btn { min-height: 44px; padding: 0.6rem 1.2rem; font-size: 0.92rem; }
.btn-cookie-accept { background: linear-gradient(135deg, var(--gold-soft), var(--peach)); color: var(--night); border: none; box-shadow: none; }
.btn-cookie-accept:hover { filter: brightness(1.05); color: var(--night); }
.btn-cookie-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); box-shadow: none; }
.btn-cookie-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.cookie-modal {
  position: fixed; inset: 0; z-index: 110; display: none;
  background: rgba(34, 19, 31, 0.6); align-items: center; justify-content: center; padding: 1.25rem;
  overscroll-behavior: contain;
}
.cookie-modal.visible { display: flex; }
.cookie-modal-card { background: var(--cream); border-radius: var(--radius-l); padding: 1.8rem; max-width: 520px; width: 100%; box-shadow: var(--shadow); }
.cookie-modal-card h3 { margin-bottom: 0.6rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 5.5rem; transform: translateX(-50%) translateY(20px);
  background: var(--night); color: #fff; padding: 0.85rem 1.5rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 700; opacity: 0; pointer-events: none; z-index: 120;
  max-width: calc(100vw - 2rem); text-align: center; box-shadow: var(--shadow);
  border: 1px solid rgba(238,194,127,0.3);
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  border-top: none; background: var(--night); color: #e9d5c8;
  margin-top: 3.5rem; padding: 3rem 0 1.8rem;
}
.site-footer::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.07; pointer-events: none; }
.site-footer::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--rose-600), var(--peach), var(--gold-soft));
}
.footer-disclaimer { font-size: 0.88rem; color: #c9a994; max-width: 60rem; }
.footer-disclaimer strong { color: #f3e0cf; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin: 1.2rem 0; list-style: none; padding: 0; }
.footer-nav a { color: #f0d9c6; font-weight: 700; font-size: 0.94rem; text-decoration: none; }
.footer-nav a:hover { color: var(--peach); text-decoration: underline; }
.footer-meta { font-size: 0.85rem; color: #a37f6d; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; color: #fff8f0; margin-bottom: 0.4rem; display: block; }

/* ---------- misc ---------- */
.page-head { padding: 2.4rem 0 0.8rem; position: relative; }
.page-head::before {
  content: ""; position: absolute; inset: -1rem -50vw auto; z-index: -1; height: 220px;
  background: radial-gradient(600px 200px at 50% 0%, rgba(192,91,120,0.10), transparent 70%);
  pointer-events: none;
}
.page-head h1 { margin: 0.2rem 0 0.6rem; }
.page-head p.lead { color: var(--plum-700); font-size: 1.1rem; max-width: 40rem; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; }
.center { text-align: center; }
.divider { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ---------- responsive tables ---------- */
.table-scroll, .x-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-s); }
.table-scroll { margin: 1rem 0; }
.table-scroll table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 0.92rem; background: var(--white); }
.table-scroll caption { text-align: left; font-weight: 800; padding: 0.8rem 1rem; color: var(--plum-900); font-family: var(--font-display); font-size: 1.02rem; }
.table-scroll th, .table-scroll td { text-align: left; padding: 0.7rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.table-scroll thead th { border-top: none; background: var(--cream-2); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--plum-700); white-space: nowrap; }
.table-scroll tbody tr:nth-child(even) { background: var(--cream); }

/* ---------- small-screen refinements ---------- */
@media (max-width: 560px) {
  .week-body { padding-left: 0.75rem; }
  .cal-dow { font-size: 0.68rem; }
  section { padding: 2.2rem 0; }
  .hero-dream { padding: 3.2rem 0 5.5rem; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn { transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease, filter 0.18s ease, box-shadow 0.2s ease; }
  .btn-cookie-accept, .btn-cookie-ghost { transition: background-color 0.18s ease, color 0.18s ease; }
  .tool-card { transition: transform 0.16s ease, box-shadow 0.16s ease; }
  .tool-card::after { transition: opacity 0.2s ease; }
  .tool-nav a { transition: background-color 0.18s ease, color 0.18s ease; }
  .footer-nav a { transition: color 0.18s ease; }
  .cal-nav-btn { transition: border-color 0.18s ease, color 0.18s ease; }
  .cal-day { transition: background-color 0.15s ease, transform 0.12s ease; }
  .faq summary, .week-item summary { transition: color 0.18s ease; }
  .link-danger { transition: color 0.18s ease; }
  .quick-chip { transition: background-color 0.15s ease, border-color 0.15s ease; }
  .pills span { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
  input[type="range"]::-webkit-slider-thumb { transition: transform 0.12s ease; }
  input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
  .result.visible { animation: fadeUp 0.4s ease, glowIn 0.8s ease 0.15s both; }
  .cookie-banner.visible { animation: fadeUp 0.3s ease; }
  .progress > span { transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
  .week-item .chev { transition: transform 0.2s; }
  .toast { transition: opacity 0.25s ease, transform 0.25s ease; }
  @keyframes petalDrift {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(14px, 46px, 0) rotate(38deg); }
    100% { transform: translate3d(-8px, 92px, 0) rotate(-14deg); }
  }
  .petal { animation: petalDrift 9s ease-in-out infinite alternate; }
  .petal.p2 { animation-duration: 12s; animation-delay: -3s; }
  .petal.p3 { animation-duration: 10.5s; animation-delay: -6s; }
  .petal.p4 { animation-duration: 13s; animation-delay: -1.5s; }
  @keyframes heroSettle { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .hero-dream-inner > * { animation: heroSettle 0.7s ease both; }
  .hero-dream-inner > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-dream-inner > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-dream-inner > *:nth-child(4) { animation-delay: 0.24s; }
  .hero-dream-inner > *:nth-child(5) { animation-delay: 0.32s; }
}
