:root {
  /* paper palette */
  --paper: #F4ECDF;
  --paper-deep: #EADFC9;
  --ink: #1A1410;
  --ink-soft: #6E5D52;
  --ink-mute: #A39689;
  --line: #DDD0BB;
  --cream: #FBF6EE;

  /* brand accents */
  --rose:        #B8423E;
  --rose-deep:   #882B2C;
  --olive:       #6B8E5A;
  --honey:       #D89154;
  --terracotta:  #C97350;
  --lavender:    #8A7CA8;
  --mocha:       #4A3528;

  /* phase colors (mapped to phases) */
  --phase-menstrual:      var(--rose);
  --phase-follicular:     var(--olive);
  --phase-ovulatory:      var(--honey);
  --phase-luteal-early:   var(--terracotta);
  --phase-luteal-late:    var(--lavender);

  /* live phase (theme-able) */
  --phase: var(--rose);
  --phase-tint: rgba(184, 66, 62, 0.10);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --shadow-sm: 0 1px 2px rgba(31, 25, 22, 0.06), 0 2px 8px rgba(31, 25, 22, 0.04);
  --shadow-md: 0 2px 4px rgba(31, 25, 22, 0.06), 0 12px 30px rgba(31, 25, 22, 0.08);
  --shadow-lg: 0 4px 12px rgba(31, 25, 22, 0.10), 0 30px 60px rgba(31, 25, 22, 0.12);

  --serif: "Fraunces", ui-serif, "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  --max-w: 560px;
  --pad: clamp(20px, 5.5vw, 32px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--paper); }

/* HTML hidden attribute musi wygrywać z display: grid/flex w klasach */
[hidden] { display: none !important; }

/* Defense-in-depth przeciw horizontal scroll na mobile.
   overflow: clip nie pozwala scrollować, hidden czasem zawodzi na iOS.
   100% (nie 100vw) bo vw może wliczać scrollbar na desktop. */
html, body { overflow-x: clip; max-width: 100%; }

/* Brak scroll-chaining / bounce → bottomnav nie "skacze" przy scroll-end */
body { overscroll-behavior: none; }

/* Każdy obraz domyślnie nie wystaje z kontenera */
img, picture, video, svg { max-width: 100%; height: auto; display: block; }

/* Defense: nic w aplikacji nie powinno wystawać */
.main, .landing, .lp-section, section { max-width: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  position: relative;
  overflow-x: clip;
  /* subtle paper grain across whole app */
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(184, 66, 62, 0.05), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(107, 142, 90, 0.05), transparent 50%);
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  filter: url(#grain);
  opacity: 0.35;
  mix-blend-mode: multiply;
}

button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
em { font-style: italic; }
ul { padding: 0; margin: 0; list-style: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: 8px 12px; border-radius: 6px;
}
.skip-link:focus { left: 12px; top: 12px; z-index: 100; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============================================================
   layout
   ============================================================ */

.main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) var(--pad) 32px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   bottom nav (floating pill)
   ============================================================ */

.bottomnav {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  /* translate3d wymusza compositor layer → mniej dygotania przy scroll-bounce iOS.
     -50% w X centruje, w Y zero (musi być w transformie razem z X, bo bottom: */
  transform: translate3d(-50%, 0, 0);
  -webkit-transform: translate3d(-50%, 0, 0);
  will-change: transform;
  display: flex; gap: 4px;
  padding: 6px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(31, 25, 22, 0.22), 0 2px 8px rgba(31, 25, 22, 0.16);
  z-index: 20;
  max-width: calc(100% - 32px);
}
.bottomnav__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px;
  color: rgba(244, 236, 223, 0.65);
  font-size: 13px; font-weight: 500;
  transition: color .2s ease, background .2s ease;
  min-width: 44px;
  white-space: nowrap;
}
.bottomnav__btn svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.bottomnav__btn:hover { color: var(--cream); }
.bottomnav__btn[aria-current="page"] {
  background: var(--phase);
  color: var(--cream);
}

/* ============================================================
   buttons
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px;
  font-family: var(--sans);
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  min-height: 48px;
  letter-spacing: 0;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: var(--mocha); transform: translateY(-1px); }
.btn--primary[disabled] {
  background: var(--paper-deep); color: var(--ink-mute);
  cursor: not-allowed; transform: none;
}
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--cream); border-color: var(--ink); }
.btn--danger {
  background: transparent; color: var(--rose-deep);
  border: 1px solid color-mix(in srgb, var(--rose) 40%, transparent);
}
.btn--danger:hover { background: var(--rose); color: var(--cream); }
.btn--wide { width: 100%; padding: 16px 22px; font-size: 16px; }

.cta {
  align-self: start;
  background: var(--ink); color: var(--cream);
  padding: 16px 24px; border-radius: 999px;
  font-weight: 500; font-size: clamp(14px, 4vw, 16px);
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .2s ease, background .2s ease;
  box-shadow: var(--shadow-md);
  max-width: 100%;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
  line-height: 1.3;
}
.cta > span { min-width: 0; }
.cta svg { width: 18px; height: 18px; flex-shrink: 0; }
.cta:hover { transform: translateY(-2px); background: var(--rose-deep); }

/* ============================================================
   HERO (welcome)
   ============================================================ */

.hero {
  position: relative;
  padding: 24px 0 40px;
  display: grid; gap: 28px;
  animation: rise .6s ease;
}
.hero__brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-soft);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.hero__brand-text em { color: var(--rose); font-style: normal; }
.hero__mark { color: var(--rose); }
.hero__mark svg { width: 26px; height: 26px; display: block; }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  font-size: clamp(34px, 10vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  overflow-wrap: break-word;
}
.hero__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--rose-deep);
}

.hero__lede {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 38ch;
  line-height: 1.5;
}
.hero__lede strong { color: var(--ink); font-weight: 600; }

.hero__moons {
  display: flex; gap: 14px;
  margin: 4px 0;
}
.hero__moons span {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 2px 6px rgba(31, 25, 22, 0.18);
  display: block;
  animation: pulse 6s ease-in-out infinite;
}
.hero__moons span:nth-child(2) { animation-delay: 1.2s; }
.hero__moons span:nth-child(3) { animation-delay: 2.4s; }
.hero__moons span:nth-child(4) { animation-delay: 3.6s; }
.hero__moons span:nth-child(5) { animation-delay: 4.8s; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

.hero__bullets {
  display: grid; gap: 14px;
  margin: 4px 0 8px;
}
.hero__bullets li {
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink);
}
.hero__bullets li:last-child { border-bottom: 1px solid var(--line); }
.hero__b-num {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 14;
  font-size: 18px;
  color: var(--rose);
  letter-spacing: 0;
}

.hero__foot {
  font-size: 13px; color: var(--ink-mute); margin: 4px 0 0;
  font-style: italic;
  font-family: var(--serif);
  font-variation-settings: "opsz" 14;
}

/* Hero art — pod tytułem, nad bulletami */
.hero__art {
  margin: 4px 0 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
  max-width: 420px;
  width: 100%;
  align-self: center;
  position: relative;
}
.hero__art img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.02) saturate(1.04);
}

/* ============================================================
   LANDING — sekcje dodatkowe na welcome
   ============================================================ */

.landing { display: grid; gap: 56px; }
.landing .hero { margin-bottom: 0; }

.lp-section {
  display: grid; gap: 16px;
  scroll-margin-top: 20px;
}
.lp-kicker {
  margin: 0;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute);
}
.lp-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 40, "WONK" 1;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 20ch;
}
.lp-h2 em {
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 100, "WONK" 1;
  color: var(--rose-deep);
}
.lp-note {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-variation-settings: "opsz" 24;
  line-height: 1.5;
  padding: 14px 16px;
  background: var(--cream);
  border-left: 3px solid var(--phase);
  border-radius: 4px;
}

/* PROBLEM */
.lp-painlist {
  display: grid; gap: 14px;
  margin: 8px 0 0;
}
.lp-painlist li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.lp-painlist li:last-child { border-bottom: 1px solid var(--line); }
.lp-painlist em { color: var(--rose); font-style: italic; }
.lp-painlist strong { color: var(--ink); }

.lp-pullquote {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 50, "WONK" 1;
  font-size: clamp(20px, 5vw, 24px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 22px 24px;
  background: var(--cream);
  border-radius: var(--r-md);
  border-left: 4px solid var(--rose-deep);
  position: relative;
}
.lp-pullquote em {
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 100;
  color: var(--rose-deep);
}

/* INSIGHT */
.insight-facts {
  display: grid; gap: 14px;
  margin: 8px 0 0;
}
.insight-fact {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 22px 24px;
  display: grid; gap: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--phase);
  position: relative;
}
.insight-fact:nth-child(1) { border-left-color: var(--phase-luteal-early); }
.insight-fact:nth-child(2) { border-left-color: var(--phase-follicular); }
.insight-fact:nth-child(3) { border-left-color: var(--rose-deep); }
.insight-fact__num {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  font-size: clamp(44px, 11vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--rose-deep);
}
.insight-fact:nth-child(1) .insight-fact__num { color: var(--phase-luteal-early); }
.insight-fact:nth-child(2) .insight-fact__num { color: var(--phase-follicular); }
.insight-fact__head {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 24;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.insight-fact__body { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.insight-fact__body strong { color: var(--ink); }
.insight-fact__src {
  margin: 6px 0 0;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* SOLUTION steps */
.steps {
  display: grid; gap: 18px;
  margin: 0; padding: 0; list-style: none;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  font-size: 48px;
  line-height: 1;
  color: var(--rose);
}
.step:nth-child(2) .step__num { color: var(--phase-follicular); }
.step:nth-child(3) .step__num { color: var(--phase-luteal-early); }
.step__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 1;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.step__body { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.step__body em { color: var(--ink); font-style: italic; }

/* MOCKUP section */
.lp-mockup__art {
  margin: 8px 0 12px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
  max-width: 420px;
  width: 100%;
  align-self: center;
}
.lp-mockup__art img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.lp-mockup__caption {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 24;
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
  max-width: 36ch;
  align-self: center;
}
.lp-mockup__caption strong {
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
  font-family: var(--sans);
}

/* PERSONA CARDS */
.persona-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .persona-grid { grid-template-columns: 1fr 1fr; }
}
.persona-card {
  position: relative;
  padding: 20px 22px 18px 22px;
  background: var(--cream);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid; gap: 8px;
}
.persona-card__portrait {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 2px;
  box-shadow: 0 2px 6px rgba(31, 25, 22, 0.12);
  filter: contrast(1.02) saturate(1.04);
}
.persona-card__dot {
  position: absolute; top: 22px; left: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
}
.persona-card__quote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 48, "SOFT" 80, "WONK" 1;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.persona-card__body { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

/* BRYLANTYNKA */
.brylantynka__photo {
  margin: 4px 0 8px;
  display: grid; gap: 6px;
  justify-items: center;
}
.brylantynka__photo img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  filter: contrast(1.02) saturate(1.04);
}
.brylantynka__photo figcaption {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-family: var(--sans);
}

.brylantynka {
  display: grid; gap: 16px;
  padding: 26px 24px;
  background: var(--cream);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.brylantynka p {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 24;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}
.brylantynka em { font-style: italic; color: var(--rose-deep); }
.brylantynka strong { color: var(--ink); font-weight: 600; font-family: var(--sans); font-size: 16px; }
.brylantynka__sign {
  font-style: italic;
  font-variation-settings: "opsz" 24, "SOFT" 100;
  color: var(--rose-deep);
  margin-top: 4px;
  font-size: 18px;
}

/* SCIENCE / SOURCES */
.lp-science__glyph {
  margin: 0 0 4px;
  max-width: 280px;
  align-self: start;
  border-radius: var(--r-sm);
  overflow: hidden;
  opacity: 0.85;
}
.lp-science__glyph img {
  width: 100%; height: auto;
  display: block;
  mix-blend-mode: multiply;
  filter: sepia(0.1) contrast(1.05);
}

.lp-sources {
  display: grid; gap: 0;
  margin: 0; padding: 0; list-style: none;
}
.lp-sources li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.lp-src-year {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 24, "SOFT" 80;
  color: var(--rose);
  font-size: 16px;
  min-width: 48px;
}
.lp-src-name {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.lp-src-what { color: var(--ink-soft); }

/* PRICING TEASER */
.pricing-mini {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
  margin: 8px 0;
}
@media (min-width: 480px) {
  .pricing-mini { grid-template-columns: 1fr 1fr 1fr; }
}
.pricing-mini-card {
  position: relative;
  padding: 18px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
  display: grid; gap: 4px;
}
.pricing-mini-card--featured {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}
.pricing-mini__badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--rose);
  color: var(--cream);
  padding: 4px 12px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600;
}
.pricing-mini__price {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 30, "WONK" 1;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.pricing-mini-card--featured .pricing-mini__price { color: var(--cream); }
.pricing-mini__note {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.pricing-mini-card--featured .pricing-mini__note { color: color-mix(in srgb, var(--cream) 70%, transparent); }

/* FAQ TEASER */
.lp-faq-mini {
  display: grid; gap: 12px;
  margin: 0; padding: 0; list-style: none;
}
.lp-faq-mini li {
  padding: 14px 16px;
  background: var(--cream);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  font-size: 14px; line-height: 1.55;
  color: var(--ink-soft);
}
.lp-faq-mini strong {
  display: block; color: var(--ink); font-weight: 600;
  font-size: 15px; margin-bottom: 4px;
}

/* FINAL CTA */
.lp-final-cta {
  text-align: center;
  display: grid; gap: 14px;
  padding: 40px 24px;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.lp-final-cta__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.32;
  mix-blend-mode: lighten;
  filter: blur(1px) saturate(0.85);
}
.lp-final-cta::before {
  content: "";
  position: absolute; top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--rose-deep) 0%, transparent 65%);
  opacity: 0.5;
  z-index: 1;
}
.lp-final-cta__h {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  font-size: clamp(32px, 10vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}
.lp-final-cta__sub {
  position: relative;
  z-index: 2;
  margin: 0;
  color: color-mix(in srgb, var(--cream) 80%, transparent);
  font-size: 15px;
}
.lp-final-cta__sub em { color: var(--cream); font-style: italic; }
.lp-final-cta .cta {
  position: relative;
  z-index: 2;
  background: var(--cream);
  color: var(--ink);
  justify-self: center;
}
.lp-final-cta .cta:hover { background: var(--paper); }

/* FOOTER */
.lp-footer {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 8px;
  text-align: center;
}
.lp-footer__brand {
  margin: 0;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
}
.lp-footer__disclaimer {
  margin: 0;
  font-size: 11px;
  color: var(--ink-mute);
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 14;
  line-height: 1.55;
}

/* ============================================================
   PAYWALL (mock Stripe)
   ============================================================ */

.paywall { display: grid; gap: 22px; animation: rise .35s ease; }
.paywall__head { display: grid; gap: 6px; }
.paywall__kicker {
  margin: 0;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute);
}
.paywall__title {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  font-size: clamp(30px, 9vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}
.paywall__title em { color: var(--rose-deep); font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; }
.paywall__sub {
  margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.5;
  max-width: 36ch;
}
.paywall__bullets {
  display: grid; gap: 8px;
  margin: 4px 0; padding: 0; list-style: none;
}
.paywall__bullets li {
  font-size: 14px; line-height: 1.5; color: var(--ink-soft);
  padding-left: 18px; position: relative;
}
.paywall__b-mark {
  position: absolute; left: 0; color: var(--rose); font-weight: bold;
}
.paywall__form {
  display: grid; gap: 14px;
  padding: 24px 20px;
  background: var(--cream);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.paywall__field { display: grid; gap: 6px; min-width: 0; }
.paywall__field > span {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.paywall__field input {
  width: 100%;
  min-width: 0;
  padding: 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.paywall__field input:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 14%, transparent);
}
.paywall__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
}
.paywall__foot {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.paywall__foot em {
  font-style: italic;
  font-family: var(--serif);
  font-variation-settings: "opsz" 14, "SOFT" 80;
  color: var(--rose);
}
.paywall__lock { font-size: 14px; }

/* ============================================================
   PRICING (full)
   ============================================================ */

.pricing { display: grid; gap: 22px; animation: rise .35s ease; }
.pricing__head { display: grid; gap: 4px; }
.pricing__kicker {
  margin: 0;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute);
}
.pricing__title {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 40, "WONK" 1;
  font-size: clamp(32px, 8vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.pricing__sub { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 38ch; }

.pricing__cards { display: grid; gap: 14px; }
.pricing-card {
  position: relative;
  padding: 24px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  display: grid; gap: 8px;
}
.pricing-card__badge {
  position: absolute; top: -10px; left: 22px;
  background: var(--rose);
  color: var(--cream);
  padding: 4px 12px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600;
}
.pricing-card__kicker {
  margin: 0;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
}
.pricing-card__price {
  margin: 0;
  display: flex; align-items: baseline; gap: 8px;
}
.pricing-card__amount {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.pricing-card__unit {
  font-size: 15px;
  color: var(--ink-soft);
}
.pricing-card__note {
  margin: 0; font-size: 14px; color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 14;
}
.pricing-card .btn { margin-top: 8px; }
.pricing__small {
  margin: 4px 0 0; font-size: 12px; color: var(--ink-mute); text-align: center;
}

/* ============================================================
   FAQ (full)
   ============================================================ */

.faq { display: grid; gap: 22px; animation: rise .35s ease; }
.faq__head { display: grid; gap: 4px; }
.faq__kicker {
  margin: 0;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute);
}
.faq__title {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 40, "WONK" 1;
  font-size: clamp(32px, 8vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.faq__list { display: grid; gap: 8px; }
.faq-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "SOFT" 30, "WONK" 1;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .25s ease; }
.faq-item[open] .faq-item__q svg { transform: rotate(180deg); }
.faq-item__a {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* outcomes — żywe "marzenia" na welcome */
.outcomes {
  margin: 12px 0 8px;
  padding: 24px 22px 18px;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-md);
  display: grid; gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.outcomes::before {
  content: "";
  position: absolute; top: -80px; right: -80px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--rose) 0%, transparent 65%);
  opacity: 0.4;
  pointer-events: none;
}
.outcomes__kicker {
  margin: 0;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 60%, transparent);
  position: relative;
}
.outcomes__list {
  margin: 0; padding: 0;
  display: grid; gap: 16px;
  list-style: none;
  position: relative;
  counter-reset: outc;
}
.outcomes__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px dashed color-mix(in srgb, var(--cream) 22%, transparent);
}
.outcomes__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.outcomes__day {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "SOFT" 80, "WONK" 1;
  font-style: italic;
  font-size: 18px;
  color: color-mix(in srgb, var(--rose) 70%, var(--cream) 30%);
  white-space: nowrap;
}
.outcomes__text {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--cream);
}

/* ============================================================
   ONBOARDING
   ============================================================ */

.onboard {
  display: grid; gap: 24px;
  min-height: calc(100dvh - 200px);
  grid-template-rows: auto 1fr auto;
  animation: rise .4s ease;
}
.onboard__head {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  align-items: center;
}
.onboard__back {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: all .15s ease;
}
.onboard__back svg { width: 18px; height: 18px; }
.onboard__back:hover { background: var(--cream); border-color: var(--ink); }
.onboard__back[hidden] { visibility: hidden; display: inline-flex; }

.onboard__counter {
  font-family: var(--serif);
  font-variation-settings: "opsz" 14;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.onboard__counter [data-step] {
  color: var(--rose); font-style: italic; font-weight: 500;
  font-size: 16px;
}
.onboard__counter-of { color: var(--ink-mute); }
.onboard__bar {
  grid-column: 1 / -1;
  height: 2px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.onboard__bar-fill {
  height: 100%;
  background: var(--ink);
  width: 10%;
  transition: width .5s cubic-bezier(0.2, 0.8, 0.2, 1), background .3s ease;
}

.onboard__body {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 24px;
}
.onboard__body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 30, "WONK" 1;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.onboard__body .q-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 38ch;
}
.onboard__body input[type="text"],
.onboard__body input[type="number"],
.onboard__body input[type="date"],
.onboard__body textarea {
  width: 100%;
  padding: 18px 20px;
  font-size: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--cream);
  font-family: inherit;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.onboard__body input:focus,
.onboard__body textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 14%, transparent);
}
.onboard__body textarea { min-height: 110px; resize: vertical; line-height: 1.5; }

.field-row { display: flex; gap: 12px; }
.field-row > label { flex: 1; display: grid; gap: 8px; }
.field-row > label small {
  color: var(--ink-soft); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 500;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.onboard__foot {
  display: grid; gap: 12px;
  padding-top: 16px;
}

/* ============================================================
   TODAY
   ============================================================ */

.today {
  display: grid; gap: 20px;
  animation: rise .45s ease;
  position: relative;
}

.today__backdrop {
  position: absolute;
  top: -40px; left: -40px; right: -40px;
  height: 540px;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,
      color-mix(in srgb, var(--phase) 28%, transparent) 0%,
      color-mix(in srgb, var(--phase) 10%, transparent) 40%,
      transparent 75%);
  filter: blur(8px);
  transition: background 1s ease;
  pointer-events: none;
}
.today__grain {
  position: absolute; inset: 0;
  filter: url(#grain);
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
}

.today__head {
  display: grid; gap: 4px;
  padding-top: 8px;
}
.today__greeting {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 14;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
}
.today__date {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* signature: cycle wheel */
.cycle {
  position: relative;
  aspect-ratio: 1;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.cycle__wheel { position: absolute; inset: 0; }
.cycle__wheel svg { width: 100%; height: 100%; overflow: visible; }
.cycle__inner {
  position: relative;
  display: grid; place-items: center; gap: 4px;
  text-align: center;
  padding: 16px;
}
.cycle__kicker {
  margin: 0;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
}
.cycle__day {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-size: clamp(88px, 24vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.cycle__phase {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 100, "WONK" 1;
  font-size: 20px;
  color: var(--phase);
  font-weight: 400;
}

.today__explainer {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 24;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 36ch;
  text-align: center;
  margin: 0 auto;
  padding: 0 8px;
}

/* drug warnings — bezpieczeństwo, NIE alarm */
.drug-warnings {
  display: grid; gap: 10px;
}
.drug-warning {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 14px 18px;
  background: color-mix(in srgb, var(--terracotta) 12%, var(--cream));
  border: 1px solid color-mix(in srgb, var(--terracotta) 35%, transparent);
  border-radius: var(--r-md);
  align-items: start;
}
.drug-warning__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  flex-shrink: 0;
}
.drug-warning__body { display: grid; gap: 4px; }
.drug-warning__label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mocha);
  font-weight: 500;
}
.drug-warning__timing {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 24;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.drug-warning__advice {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* daily outcome strip — pojedynczy "marzeniowy" one-liner pod explainerem */
.daily-outcome {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--phase);
  border-radius: var(--r-md);
}
.daily-outcome__mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--phase);
  line-height: 1;
}
.daily-outcome__text {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* meal instructions accordion */
.plan__prep {
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.plan__prep-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 4px 0;
  transition: color .15s ease;
}
.plan__prep-toggle:hover { color: var(--ink); }
.plan__prep-toggle svg { width: 14px; height: 14px; transition: transform .25s ease; }
.plan__prep[data-open="true"] .plan__prep-toggle svg { transform: rotate(180deg); }
.plan__prep-steps {
  display: none;
  margin: 12px 0 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
  display: grid;
  gap: 8px;
}
.plan__prep[data-open="true"] .plan__prep-steps { display: grid; }
.plan__prep-steps li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: baseline;
  counter-increment: steps;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.plan__prep-steps li::before {
  content: counter(steps);
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 14, "SOFT" 80;
  font-size: 15px;
  color: var(--phase);
  text-align: right;
}

.energy-card {
  position: relative;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.energy-card__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 0%, var(--phase-tint) 100%);
  pointer-events: none;
}
.energy-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.energy-card__label {
  font-weight: 500; font-size: 15px;
  position: relative;
}
.energy-card__value {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24;
  font-style: italic;
  color: var(--phase);
  font-weight: 500;
  font-size: 17px;
  margin-left: auto;
  position: relative;
}
.energy-card__arrow {
  width: 16px; height: 16px;
  color: var(--ink-soft);
  position: relative;
}

.plan { display: grid; gap: 12px; }
.plan__item {
  position: relative;
  background: var(--cream);
  border-radius: var(--r-md);
  display: grid;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: box-shadow .25s ease, transform .15s ease;
  overflow: hidden;
}
.plan__item::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 4px;
  background: var(--phase);
  z-index: 2;
}
.plan__item--workout::before { background: var(--olive); }
.plan__item--skincare::before { background: var(--lavender); }
.plan__item--snack::before { background: var(--honey); }
.plan__item:hover { box-shadow: var(--shadow-md); }

/* collapsed row — clickable to expand */
.plan__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  padding: 12px 16px 12px 18px;
  align-items: center;
  background: transparent;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: background .15s ease;
}
.plan__row:hover { background: color-mix(in srgb, var(--phase) 6%, transparent); }

/* thumbnail — image OR svg placeholder */
.plan__thumb {
  width: 64px; height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--phase) 25%, var(--cream)),
    color-mix(in srgb, var(--phase) 50%, var(--cream))
  );
  flex-shrink: 0;
  position: relative;
}
.plan__item--workout  .plan__thumb { background: linear-gradient(135deg, color-mix(in srgb, var(--olive) 25%, var(--cream)), color-mix(in srgb, var(--olive) 50%, var(--cream))); }
.plan__item--skincare .plan__thumb { background: linear-gradient(135deg, color-mix(in srgb, var(--lavender) 25%, var(--cream)), color-mix(in srgb, var(--lavender) 50%, var(--cream))); }
.plan__item--snack    .plan__thumb { background: linear-gradient(135deg, color-mix(in srgb, var(--honey) 25%, var(--cream)), color-mix(in srgb, var(--honey) 50%, var(--cream))); }
.plan__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.plan__thumb svg {
  width: 32px; height: 32px;
  color: var(--ink);
  opacity: 0.5;
}
.plan__thumb-mono {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 48, "SOFT" 80, "WONK" 1;
  font-size: 30px;
  color: var(--ink);
  opacity: 0.65;
}

.plan__row-text {
  display: grid; gap: 2px;
  min-width: 0;
}
.plan__row-text .plan__kicker { margin: 0; }
.plan__row-text .plan__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "SOFT" 20, "WONK" 1;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.plan__chevron {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-soft);
  transition: transform .25s ease, background .2s ease;
}
.plan__chevron svg { width: 16px; height: 16px; }
.plan__item[data-expanded="true"] .plan__chevron {
  transform: rotate(180deg);
  background: color-mix(in srgb, var(--phase) 18%, transparent);
  color: var(--ink);
}

/* expanded body — uses CSS grid-rows trick for smooth animation */
.plan__body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.plan__body-inner {
  overflow: hidden;
  min-height: 0;
}
.plan__item[data-expanded="true"] .plan__body-wrap {
  grid-template-rows: 1fr;
}
.plan__body-content {
  display: grid; gap: 8px;
  padding: 0 18px 18px 22px;
}
.plan__kicker {
  margin: 0;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 8px;
}
.plan__kicker-icon {
  display: inline-flex; width: 16px; height: 16px;
  color: var(--phase);
}
.plan__item--workout  .plan__kicker-icon { color: var(--olive); }
.plan__item--skincare .plan__kicker-icon { color: var(--lavender); }
.plan__item--snack    .plan__kicker-icon { color: var(--honey); }

.plan__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 1;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.plan__body {
  margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.5;
}
.plan__because {
  margin: 4px 0 0; font-size: 14px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 14;
  line-height: 1.45;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.plan__because b { color: var(--ink); font-style: normal; font-weight: 500; font-family: var(--sans); }

.plan__item[data-done="true"] { opacity: 0.6; }
.plan__item[data-done="true"] .plan__title { text-decoration: line-through; }

.plan__item-actions { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.plan__tick {
  padding: 7px 14px; font-size: 13px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.plan__tick svg { width: 12px; height: 12px; }
.plan__tick:hover { border-color: var(--ink); color: var(--ink); }
.plan__tick[aria-pressed="true"] {
  background: var(--olive); color: var(--cream); border-color: var(--olive);
}

/* lesson — editorial highlight */
.lesson {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding: 28px 24px 26px;
  border-radius: var(--r-md);
  display: grid; gap: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.lesson__corner {
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--phase) 0%, transparent 70%);
  opacity: 0.35;
}
.lesson__kicker {
  margin: 0;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 60%, transparent);
}
.lesson__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 50, "WONK" 1;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.012em;
}
.lesson__body {
  margin: 0; font-size: 15px; line-height: 1.55;
  color: color-mix(in srgb, var(--cream) 85%, transparent);
}
.lesson__time {
  margin: 6px 0 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 55%, transparent);
}

.today__actions { display: grid; gap: 8px; padding-top: 8px; }
.today__actions .btn--primary.btn--wide { width: 100%; }
.today__actions-row { display: flex; gap: 8px; }
.today__actions-row .btn { flex: 1 1 auto; min-width: 0; }

/* ============================================================
   ENERGY view
   ============================================================ */

.energy { display: grid; gap: 22px; animation: rise .35s ease; }
.back {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: start; padding: 8px 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--ink); }

.energy__head { display: grid; gap: 4px; }
.energy__kicker {
  margin: 0;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
}
.energy__title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 1;
  font-size: clamp(32px, 8vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.energy__sub { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 38ch; }

.energy__big {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-size: clamp(120px, 36vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--phase);
  margin: 0;
  transition: color .3s ease, transform .2s ease;
}
.energy__hint {
  margin: 0; color: var(--ink-soft);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 14;
  font-size: 15px;
}
.energy__scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.energy__dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cream); border: 1px solid var(--line);
  font-weight: 500; font-size: 14px;
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.energy__dot:hover { border-color: var(--ink); color: var(--ink); }
.energy__dot[aria-pressed="true"] {
  background: var(--phase); color: var(--cream); border-color: var(--phase);
  transform: scale(1.12);
}
.energy__symptoms { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.energy__symptoms legend {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  padding: 0;
}
.energy__note { display: grid; gap: 8px; }
.energy__note span {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
}
.energy__note textarea {
  min-height: 100px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--cream); font: inherit; color: inherit;
  resize: vertical;
}
.energy__note textarea:focus {
  outline: none; border-color: var(--ink); background: #FFFFFF;
}

/* ============================================================
   WEEKLY
   ============================================================ */

.weekly { display: grid; gap: 22px; animation: rise .35s ease; }
.weekly__head { display: grid; gap: 4px; }
.weekly__kicker {
  margin: 0;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
}
.weekly__title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 1;
  font-size: clamp(32px, 8vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.weekly__sub { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* manifesto pull-quote — żyje w tygodniówce */
.weekly__manifesto {
  position: relative;
  margin: 0;
  padding: 28px 26px 22px;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid; gap: 14px;
  box-shadow: var(--shadow-md);
}
.weekly__manifesto-corner {
  position: absolute; top: -80px; right: -80px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--phase) 0%, transparent 65%);
  opacity: 0.45;
  pointer-events: none;
}
.weekly__manifesto-lines {
  display: grid; gap: 4px;
  position: relative;
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 1;
  font-size: clamp(22px, 5.5vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.weekly__manifesto-lines span {
  display: block;
}
.weekly__manifesto-lines span:nth-child(even) {
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 80, "WONK" 1;
  color: color-mix(in srgb, var(--phase) 70%, var(--cream) 30%);
}
.weekly__manifesto-cite {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 55%, transparent);
  font-style: normal;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.weekly__manifesto-cite a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--phase) 60%, transparent);
  text-underline-offset: 3px;
  cursor: pointer;
  font-weight: 500;
}
.weekly__manifesto-cite a:hover {
  text-decoration-color: var(--cream);
}

.weekly__sparkline {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.weekly__sparkline svg { width: 100%; height: 80px; overflow: visible; }

.weekly__sparkline--empty {
  display: grid;
  gap: 8px;
  padding: 26px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 100% at 50% 100%, var(--phase-tint), transparent 70%),
    var(--cream);
  position: relative;
  overflow: hidden;
}
.weekly__sparkline--empty::before {
  content: "";
  position: absolute;
  left: 24px; right: 24px;
  top: 50%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--line) 0 6px,
    transparent 6px 12px
  );
  opacity: 0.7;
  pointer-events: none;
}
.weekly__sparkline-empty-line {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 48, "SOFT" 80, "WONK" 1;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
  position: relative;
  background: var(--cream);
  padding: 0 12px;
  justify-self: center;
}
.weekly__sparkline-empty-sub {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  position: relative;
}
.weekly__sparkline-empty-cta {
  justify-self: center;
  margin-top: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  transition: background .2s ease, transform .15s ease;
}
.weekly__sparkline-empty-cta:hover {
  background: var(--phase);
  transform: translateY(-1px);
}

.weekly__grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.weekly__day {
  display: grid; gap: 6px; text-align: center;
  padding: 12px 4px;
  background: var(--cream);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.weekly__day-label {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.weekly__day-energy {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24;
  font-weight: 500; font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.weekly__day[data-empty="true"] .weekly__day-energy { color: var(--line); }
.weekly__day-phase {
  height: 4px; border-radius: 2px;
  background: var(--line);
}

.weekly__summary {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 22px 24px;
  display: grid; gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.weekly__summary h2 {
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: "opsz" 48;
  margin: 0; font-size: 24px;
  letter-spacing: -0.01em;
}
.weekly__stat {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  margin: 0;
}
.weekly__stat:last-child { border-bottom: 0; }
.weekly__stat span:first-child { color: var(--ink-soft); }
.weekly__stat b {
  font-family: var(--serif); font-weight: 500;
  font-variation-settings: "opsz" 24;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* ============================================================
   SETTINGS
   ============================================================ */

.settings { display: grid; gap: 18px; animation: rise .35s ease; }
.settings__head { display: grid; gap: 4px; }
.settings__kicker {
  margin: 0;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
}
.settings__title {
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 40, "WONK" 1;
  font-size: clamp(36px, 9vw, 52px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
}
.settings__block {
  display: grid; gap: 10px;
  padding: 22px 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.settings__block .btn { justify-self: start; }
.settings__h2 {
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: "opsz" 32;
  margin: 0; font-size: 20px;
  letter-spacing: -0.01em;
}
.settings__copy { margin: 0; color: var(--ink-soft); font-size: 15px; }
.settings__group {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 8px 24px;
  display: grid;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.settings__row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  font-size: 15px;
  border-bottom: 1px dashed var(--line);
  margin: 0;
}
.settings__row:last-child { border-bottom: 0; }
.settings__row span:first-child {
  color: var(--ink-soft);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.settings__row b {
  font-family: var(--serif); font-weight: 500;
  font-variation-settings: "opsz" 14;
  font-size: 15px;
  text-align: right;
}
.settings__status { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }

/* settings → about entry point */
.settings__manifesto {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "kicker arrow"
    "title  arrow"
    "sub    arrow";
  align-items: center;
  gap: 4px 16px;
  padding: 22px 24px;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  border-radius: var(--r-md);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease;
}
.settings__manifesto:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.settings__manifesto-corner {
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--phase) 0%, transparent 70%);
  opacity: 0.45;
  pointer-events: none;
}
.settings__manifesto-kicker {
  grid-area: kicker;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 60%, transparent);
  position: relative;
}
.settings__manifesto-title {
  grid-area: title;
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 72, "SOFT" 50, "WONK" 1;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  position: relative;
}
.settings__manifesto-sub {
  grid-area: sub;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 14;
  font-size: 14px;
  color: color-mix(in srgb, var(--cream) 75%, transparent);
  position: relative;
  margin-top: 6px;
}
.settings__manifesto-arrow {
  grid-area: arrow;
  width: 20px; height: 20px;
  color: color-mix(in srgb, var(--cream) 70%, transparent);
  position: relative;
}

/* ============================================================
   SHOPPING
   ============================================================ */

.shopping { display: grid; gap: 20px; animation: rise .35s ease; }
.shopping__head { display: grid; gap: 4px; }
.shopping__kicker {
  margin: 0;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
}
.shopping__title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 40, "WONK" 1;
  font-size: clamp(32px, 8vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.shopping__sub { margin: 0; color: var(--ink-soft); font-size: 15px; }

.shopping__range {
  display: inline-flex; gap: 4px;
  padding: 4px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  align-self: start;
}
.rangebtn {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all .15s ease;
  min-height: 40px;
}
.rangebtn:hover { color: var(--ink); }
.rangebtn[aria-pressed="true"] {
  background: var(--ink); color: var(--cream);
}

.shopping__count {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 14;
  font-size: 14px;
  color: var(--ink-soft);
}

.shopping__list { display: grid; gap: 18px; }
.shopping__cat {
  display: grid; gap: 6px;
}
.shopping__cat-title {
  margin: 0;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.shopping__cat-list { display: grid; }
.shopping__row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  cursor: pointer;
  transition: opacity .15s ease;
}
.shopping__row:last-child { border-bottom: 0; }
.shopping__row[data-checked="true"] { opacity: 0.45; }
.shopping__row[data-checked="true"] .shopping__row-name { text-decoration: line-through; }
.shopping__check {
  width: 22px; height: 22px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  display: grid; place-items: center;
  background: var(--cream);
  transition: all .15s ease;
}
.shopping__row[data-checked="true"] .shopping__check {
  background: var(--ink); border-color: var(--ink);
}
.shopping__check svg {
  width: 14px; height: 14px;
  color: var(--cream);
  opacity: 0;
}
.shopping__row[data-checked="true"] .shopping__check svg { opacity: 1; }
.shopping__row-name {
  font-size: 16px;
  color: var(--ink);
}
.shopping__row-amount {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 14;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.shopping__actions { display: grid; gap: 8px; padding-top: 8px; }
.shopping__foot {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
  text-align: center;
  font-family: var(--serif);
  font-variation-settings: "opsz" 14;
}
.shopping__foot em {
  color: var(--rose);
  font-style: italic;
  font-variation-settings: "opsz" 14, "SOFT" 80;
}

.shopping__empty {
  padding: 32px 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
  display: grid; gap: 8px;
}
.shopping__empty-line {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 48, "SOFT" 80;
  font-size: 22px;
  color: var(--ink);
}
.shopping__empty-sub {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ============================================================
   ABOUT — pełen manifest
   ============================================================ */

.about {
  position: relative;
  display: grid; gap: 28px;
  animation: rise .5s ease;
  padding: 12px 0 24px;
  min-height: calc(100dvh - 200px);
}
.about__grain {
  position: absolute; inset: 0;
  filter: url(#grain);
  opacity: 0.20;
  z-index: -1;
  pointer-events: none;
}
.about__head { display: grid; gap: 10px; }
.about__eyebrow {
  margin: 0;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute);
}
.about__title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  max-width: 18ch;
}
.about__body {
  display: grid; gap: 18px;
  max-width: 32ch;
}
.about__body p {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 24;
  font-size: clamp(18px, 4.5vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
  position: relative;
  padding-left: 18px;
}
.about__body p::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 2px;
  background: var(--phase);
  opacity: 0.35;
  border-radius: 2px;
}
.about__body p:nth-child(even) {
  font-style: italic;
  font-variation-settings: "opsz" 24, "SOFT" 80, "WONK" 1;
  color: var(--ink-soft);
}
.about__body p:nth-child(even)::before {
  opacity: 0.7;
}
.about__signoff {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 24, "SOFT" 100;
  font-size: 22px;
  color: var(--rose-deep);
  letter-spacing: -0.01em;
}
.about__moons {
  display: flex; gap: 14px;
  margin-top: 8px;
}
.about__moons span {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 2px 4px rgba(31, 25, 22, 0.16);
  animation: pulse 6s ease-in-out infinite;
}
.about__moons span:nth-child(2) { animation-delay: 1.2s; }
.about__moons span:nth-child(3) { animation-delay: 2.4s; }
.about__moons span:nth-child(4) { animation-delay: 3.6s; }
.about__moons span:nth-child(5) { animation-delay: 4.8s; }

.plan__tick--swap { border-color: color-mix(in srgb, var(--phase) 40%, var(--line)); }
.plan__tick--swap:hover { background: color-mix(in srgb, var(--phase) 10%, transparent); border-color: var(--phase); }

/* ============================================================
   SWAP SHEET — per-meal podmiana
   ============================================================ */

.swap-sheet {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid; place-items: end center;
}
.swap-sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(31, 25, 22, 0.55);
  backdrop-filter: blur(6px);
  animation: rise .2s ease;
}
.swap-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--cream);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 26px 22px 22px;
  display: grid; gap: 14px;
  box-shadow: var(--shadow-lg);
  margin-bottom: calc(96px + env(safe-area-inset-bottom));
  animation: rise .3s ease;
}
.swap-sheet__close {
  position: absolute; top: 10px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 22px;
  display: grid; place-items: center;
  z-index: 1;
}
.swap-sheet__close:hover { background: var(--paper); color: var(--ink); }
.swap-sheet__kicker {
  margin: 0;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
}
.swap-sheet__title {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: "opsz" 48, "SOFT" 40, "WONK" 1;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.swap-sheet__reasons { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.swap-sheet__reason {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
  transition: all .15s ease;
}
.swap-sheet__reason:hover {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
  transform: translateY(-1px);
}
.swap-sheet__r-title {
  font-weight: 600; font-size: 16px;
}
.swap-sheet__r-sub {
  font-size: 13px; color: var(--ink-soft);
  font-family: var(--serif); font-style: italic;
  font-variation-settings: "opsz" 14;
}
.swap-sheet__reason:hover .swap-sheet__r-sub {
  color: color-mix(in srgb, var(--cream) 70%, transparent);
}
.swap-sheet__hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}
.swap-sheet__hint em {
  font-style: italic;
  font-family: var(--serif);
  font-variation-settings: "opsz" 14, "SOFT" 80;
  color: var(--rose);
}

/* ============================================================
   NPS modal — po D14
   ============================================================ */

.nps-modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid; place-items: end center;
  padding: 0 12px 12px;
  animation: rise .3s ease;
}
.nps-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(31, 25, 22, 0.55);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.nps-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 28px 24px 22px;
  display: grid; gap: 12px;
  box-shadow: var(--shadow-lg);
  margin-bottom: calc(100px + env(safe-area-inset-bottom));
  z-index: 1;
}
.nps-modal__hint {
  margin: -4px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 14, "SOFT" 80;
  font-size: 14px;
  color: var(--rose-deep);
  min-height: 20px;
  text-align: center;
}
.nps-modal__close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 22px; line-height: 1;
  display: grid; place-items: center;
  transition: all .15s ease;
}
.nps-modal__close:hover { background: var(--paper); color: var(--ink); }
.nps-modal__kicker {
  margin: 0;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
}
.nps-modal__title {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 1;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.nps-modal__sub {
  margin: 0; color: var(--ink-soft); font-size: 14px;
}
.nps-modal__scale {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4px;
}
.nps-dot {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 500; font-size: 13px;
  color: var(--ink);
  display: grid; place-items: center;
  transition: all .15s ease;
}
.nps-dot:hover { border-color: var(--ink); }
.nps-dot[aria-pressed="true"] {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
  transform: scale(1.06);
}
.nps-modal__note {
  width: 100%;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  font: inherit; color: inherit;
  resize: vertical;
}
.nps-modal__note:focus {
  outline: none; border-color: var(--ink); background: #FFF;
}

.settings__btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.settings__btn-row .btn { flex: 1 1 auto; min-width: 0; }

/* ============================================================
   TOAST
   ============================================================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: var(--cream);
  padding: 12px 18px; border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(31, 25, 22, 0.28);
  z-index: 50;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 14;
}
.toast[data-show="true"] {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   animations
   ============================================================ */

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   phase theming (live var swap)
   ============================================================ */

body[data-phase="MENSTRUAL"]        { --phase: var(--phase-menstrual);      --phase-tint: color-mix(in srgb, var(--phase-menstrual)      14%, transparent); }
body[data-phase="FOLLICULAR_EARLY"] { --phase: var(--phase-follicular);     --phase-tint: color-mix(in srgb, var(--phase-follicular)     14%, transparent); }
body[data-phase="OVULATORY"]        { --phase: var(--phase-ovulatory);      --phase-tint: color-mix(in srgb, var(--phase-ovulatory)      14%, transparent); }
body[data-phase="LUTEAL_EARLY"]     { --phase: var(--phase-luteal-early);   --phase-tint: color-mix(in srgb, var(--phase-luteal-early)   14%, transparent); }
body[data-phase="LUTEAL_LATE"]      { --phase: var(--phase-luteal-late);    --phase-tint: color-mix(in srgb, var(--phase-luteal-late)    14%, transparent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* small phone landscape — keep things readable */
@media (max-width: 360px) {
  :root { --pad: 18px; }
  .bottomnav__btn span { display: none; }
  .bottomnav__btn { padding: 12px; }
}
