/* Ritma website. Colours and type follow the app (apps/mobile/src/theme.ts). */

:root {
  --plum: #542746;
  --plum-soft: #6a3a5c;
  --plum-deep: #3b1a31;
  --lilac: #e2a8f1;
  --lilac-deep: #b97acb;
  --blush: #e6cfcb;
  --card: #f5e4e1;
  --card-light: #fff1ef;
  --cream: #fcf6f1;
  --periwinkle: #e7ecf7;
  --berry: #6b2d57;
  --rose: #f2cacb;
  --salmon: #efa39c;
  --rose-deep: #c77b72;
  --ink: #2b1a18;
  --ink-2: #6e5c59;
  --ink-3: #8f7c79;
  --line: rgba(43, 26, 24, 0.09);
  --track: #f1e7e4;

  --menstrual: #e5a29c;
  --follicular: #aab3ea;
  --ovulation: #a9c9ae;
  --luteal: #f5c49b;
  --menstrual-tint: #f6d3cf;
  --follicular-tint: #dce0f7;
  --ovulation-tint: #d8e8da;
  --luteal-tint: #fbe3ce;

  /* Chart series (validated: lightness, chroma, contrast and colour-blind separation on white). */
  --energy: #e4572e;
  --focus: #3a4fa0;
  --mood: #c04cb0;
  --social: #0f8f7e;

  --header-h: 68px;
  --radius: 28px;
  --shadow-sm: 0 1px 2px rgba(84, 39, 70, 0.05), 0 8px 24px -12px rgba(84, 39, 70, 0.16);
  --shadow-md: 0 2px 6px rgba(84, 39, 70, 0.05), 0 22px 44px -18px rgba(84, 39, 70, 0.24);
  --shadow-lg: 0 4px 10px rgba(84, 39, 70, 0.04), 0 40px 80px -30px rgba(84, 39, 70, 0.32);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: 'Gilda Display', 'Iowan Old Style', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Phase colours, set on any element with a phase class. */
.ph-menstrual {
  --phase: var(--menstrual);
  --phase-tint: var(--menstrual-tint);
}
.ph-follicular {
  --phase: var(--follicular);
  --phase-tint: var(--follicular-tint);
}
.ph-ovulation {
  --phase: var(--ovulation);
  --phase-tint: var(--ovulation-tint);
}
.ph-luteal {
  --phase: var(--luteal);
  --phase-tint: var(--luteal-tint);
}

/* Metric colours. */
.m-energy {
  --c: var(--energy);
}
.m-focus {
  --c: var(--focus);
}
.m-mood {
  --c: var(--mood);
}
.m-social {
  --c: var(--social);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

img {
  height: auto;
}

a {
  color: var(--plum);
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--lilac-deep);
  outline-offset: 3px;
  border-radius: 8px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* ───────────────────────── Header ───────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  margin-bottom: calc(-1 * var(--header-h));
  color: #fff;
  background: rgba(59, 26, 49, 0.55);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.at-top {
  background: rgba(59, 26, 49, 0);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header.is-light {
  color: var(--plum);
  background: rgba(252, 246, 241, 0.78);
  box-shadow: inset 0 -1px 0 rgba(84, 39, 70, 0.08);
}

.header-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.82;
}

/* The RITMA wordmark, in the text colour: white over plum, plum over light backgrounds. */
.brand-mark {
  display: block;
  width: 112px;
  aspect-ratio: 477 / 137;
  background: currentColor;
  -webkit-mask: url('ritma-wordmark.svg') center / contain no-repeat;
  mask: url('ritma-wordmark.svg') center / contain no-repeat;
}

@media (forced-colors: active) {
  .brand-mark {
    forced-color-adjust: none;
    background: CanvasText;
  }
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.site-header nav a {
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  opacity: 0.86;
  transition:
    opacity 0.2s,
    background-color 0.2s;
}

.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.site-header.is-light nav a:hover,
.site-header.is-light nav a[aria-current='page'] {
  background: rgba(84, 39, 70, 0.07);
}

.site-header nav a.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  opacity: 1;
  box-shadow: inset 0 0 0 1px currentColor;
}

.site-header nav a:active {
  transform: scale(0.97);
}

/* ───────────────────────── Shared pieces ───────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s var(--ease-out),
    background-color 0.2s,
    box-shadow 0.25s;
}

.button:active {
  transform: scale(0.97);
  transition-duration: 0.06s;
}

.button[aria-disabled='true'] {
  cursor: default;
}

.button[aria-disabled='true']:active {
  transform: none;
}

.button.primary {
  color: var(--plum);
  background: linear-gradient(180deg, #f1cbfa, var(--lilac));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 12px 30px -10px rgba(226, 168, 241, 0.75);
}

a.button.primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 16px 40px -10px rgba(226, 168, 241, 0.95);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button.dark {
  color: #fff;
  background: var(--plum);
  box-shadow: 0 14px 30px -14px rgba(84, 39, 70, 0.8);
}

.button.dark:hover {
  background: var(--plum-soft);
}

.button.outline-dark {
  color: var(--plum);
  box-shadow: inset 0 0 0 1.5px rgba(84, 39, 70, 0.3);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--menstrual), var(--follicular), var(--ovulation), var(--luteal));
}

.eyebrow.light {
  color: var(--lilac);
}

.pill,
.mode-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 999px;
  padding: 5px 12px;
}

.pill {
  color: #fff;
  background: var(--plum);
}

.mode-pill {
  color: var(--ink);
  background: var(--phase-tint, var(--card));
  transition: background-color 0.35s;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--phase, var(--ink-3));
  flex: none;
}

.dots {
  display: inline-flex;
  gap: 4px;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2d0cc;
}

.dots i.on {
  background: var(--lilac-deep);
}

.muted {
  color: var(--ink-2);
  font-size: 15px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* ───────────────────────── Hero ───────────────────────── */

.hero,
.page-hero,
.privacy-band,
.site-footer {
  position: relative;
  color: #fff;
  background-color: var(--plum);
  isolation: isolate;
}

.hero {
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(120px, 12vw, 160px);
  background-image: linear-gradient(180deg, #3d1a33 0%, var(--plum) 55%, #64355a 100%);
}

/* Static light and grain: no moving backgrounds. */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 52% at 82% 34%, rgba(226, 168, 241, 0.3), transparent 70%),
    radial-gradient(38% 46% at 6% 92%, rgba(239, 163, 156, 0.22), transparent 70%),
    radial-gradient(30% 34% at 46% 8%, rgba(170, 179, 234, 0.18), transparent 70%);
}

.hero-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.07;
  mix-blend-mode: overlay;
}

.hero-rings {
  position: absolute;
  z-index: -1;
  width: min(1040px, 120vw);
  right: max(-260px, -20vw);
  top: 50%;
  translate: 0 -46%;
  opacity: 0.55;
  pointer-events: none;
  overflow: visible;
}

.hr-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 34;
}

.hr-seg {
  fill: none;
  stroke: var(--phase);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw 2.4s var(--ease-out) 0.2s both;
}

.hr-tick {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.display {
  font-size: clamp(42px, 5.8vw, 80px);
  line-height: 1;
  letter-spacing: -0.028em;
  margin: 0 0 24px;
}

.accent {
  color: var(--lilac);
  background: linear-gradient(100deg, #eab8f7 0%, var(--rose) 55%, var(--luteal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.06em;
}

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 33em;
  margin: 0 0 32px;
}

.lead a {
  color: var(--lilac);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust .icon {
  color: var(--ovulation);
}

/* Entrance: once, on load. */
.rise {
  animation: rise 0.9s var(--ease-out) both;
}

.hero-copy .rise:nth-child(2),
.page-hero .rise:nth-child(2) {
  animation-delay: 0.07s;
}
.hero-copy .rise:nth-child(3),
.page-hero .rise:nth-child(3) {
  animation-delay: 0.14s;
}
.hero-copy .rise:nth-child(4),
.page-hero .rise:nth-child(4) {
  animation-delay: 0.21s;
}
.hero-copy .rise:nth-child(5) {
  animation-delay: 0.28s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* The phone */
.phone-stage {
  position: relative;
  justify-self: center;
  width: 316px;
  perspective: 1400px;
}

.device-wrap {
  position: relative;
  z-index: 2;
  animation: phone-in 1.2s var(--ease-out) 0.15s both;
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.96);
  }
}

.device {
  position: relative;
  margin: 0;
  width: 316px;
  height: 650px;
  padding: 11px;
  border-radius: 56px;
  background: linear-gradient(150deg, #5e4a59 0%, #24161f 30%, #0f080d 70%, #3b2c37 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    inset 0 0 0 6px #070a14,
    0 70px 120px -40px rgba(18, 5, 14, 0.85),
    0 30px 60px -30px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
  will-change: transform;
}

.device::before,
.device::after {
  content: '';
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: #3b2c37;
}

.device::before {
  left: -3px;
  top: 150px;
  height: 64px;
}

.device::after {
  right: -3px;
  top: 190px;
  height: 92px;
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 46px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream) 0%, var(--card) 100%);
}

.status {
  position: relative;
  flex: none;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 26px 0 34px;
  font-size: 14px;
  font-weight: 650;
}

.island {
  position: absolute;
  left: 50%;
  top: 11px;
  translate: -50% 0;
  width: 98px;
  height: 29px;
  border-radius: 20px;
  background: #080406;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-icons svg {
  height: 11px;
  width: auto;
  fill: currentColor;
}

.screen-body {
  flex: 1;
  padding: 8px 18px 0;
  overflow: hidden;
}

.hello {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.1;
  margin: 0;
}

.screen .day {
  font-size: 12.5px;
  color: var(--ink-2);
  margin: 4px 0 12px;
}

.mode-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 10px;
  padding: 13px 14px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(226, 168, 241, 0.35), transparent 60%),
    var(--plum);
  box-shadow: 0 12px 24px -14px rgba(84, 39, 70, 0.7);
}

.mode-label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.mode-card .pill {
  font-size: 10px;
  padding: 4px 10px;
  color: var(--plum);
  background: var(--lilac);
}

.mode-card p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0.92;
}

.levels {
  margin: 10px 0 12px;
  padding: 8px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
}

.level-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3.5px 0;
}

.screen-h {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.priority {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: #fff;
  font-size: 13px;
  line-height: 1.3;
  box-shadow: 0 2px 8px -4px rgba(43, 26, 24, 0.15);
}

.priority strong {
  display: block;
  font-weight: 600;
}

.priority small {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
}

.check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--lilac-deep);
  flex: none;
}

.tabbar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 9px 8px 22px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(43, 26, 24, 0.06);
}

.tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.tabbar svg {
  width: 22px;
  height: 22px;
}

.tabbar .active {
  color: var(--plum);
}

.bouquet {
  position: absolute;
  z-index: 1;
  width: 220px;
  right: -150px;
  bottom: -64px;
  pointer-events: none;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
  animation: fade-in 1.4s ease 0.6s both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* Glass cards floating around the phone. Their scroll parallax uses `translate`, the entrance `transform`. */
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 48px -18px rgba(20, 6, 16, 0.55);
  animation: pop 0.9s var(--ease-out) both;
  will-change: translate;
}

.float-card strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}

.float-card small {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
}

.fc-cycle {
  top: 128px;
  left: -150px;
  animation-delay: 0.65s;
}

.mini-ring {
  width: 44px;
  height: 44px;
  rotate: -90deg;
}

.mini-ring circle {
  fill: none;
  stroke-width: 5;
}

.mini-ring .track {
  stroke: var(--track);
}

.mini-ring .value {
  stroke: var(--luteal);
  stroke-linecap: round;
}

.fc-plan {
  top: 290px;
  right: -190px;
  animation-delay: 0.8s;
}

.fc-plan small:first-child {
  font-variant-numeric: tabular-nums;
}

.fc-bar {
  align-self: stretch;
  width: 4px;
  border-radius: 2px;
  background: var(--plum);
}

.fc-match {
  bottom: -34px;
  left: -64px;
  max-width: 280px;
  animation-delay: 0.95s;
}

.fc-pct {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  color: var(--ink);
  background: var(--ovulation-tint);
  box-shadow: inset 0 0 0 3px var(--ovulation);
}

.fc-pct small {
  display: inline;
  margin-left: 1px;
  font-size: 11px;
  color: inherit;
}

/* ───────────────────────── Stats ───────────────────────── */

.stats-wrap {
  position: relative;
  z-index: 5;
  margin-top: -76px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 30px 8px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.stats li {
  padding: 4px clamp(14px, 2vw, 28px);
}

.stats li + li {
  border-left: 1px solid var(--line);
}

.stats strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--plum);
  background: linear-gradient(120deg, var(--plum) 30%, var(--lilac-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.stats span {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* ───────────────────────── Sections ───────────────────────── */

.section {
  padding: clamp(80px, 10vw, 140px) 0;
}

.section-tint {
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(242, 202, 203, 0.45), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(231, 236, 247, 0.9), transparent 70%),
    var(--card-light);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head h2,
.pricing-head h2,
.faq-head h2,
.privacy-band h2 {
  font-size: clamp(38px, 4.8vw, 64px);
  letter-spacing: -0.024em;
  line-height: 1.02;
  margin: 0 0 18px;
}

.intro {
  font-size: clamp(17px, 1.4vw, 19.5px);
  color: var(--ink-2);
  margin: 0;
  max-width: 40em;
}

.hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--ink-2);
}

.hint .icon {
  color: var(--lilac-deep);
  margin-top: 3px;
}

/* Scroll reveal (only when JS runs, so nothing stays hidden without it). */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.bento .reveal:nth-child(2),
.steps .reveal:nth-child(2),
.plans .reveal:nth-child(2),
.planner .reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.bento .reveal:nth-child(3),
.steps .reveal:nth-child(3) {
  transition-delay: 0.16s;
}
.bento .reveal:nth-child(4) {
  transition-delay: 0.04s;
}
.bento .reveal:nth-child(5) {
  transition-delay: 0.08s;
}
.bento .reveal:nth-child(6) {
  transition-delay: 0.16s;
}

/* ───────────────────────── Cycle explorer ───────────────────────── */

.explorer {
  position: relative;
  padding: clamp(20px, 4vw, 56px);
  border-radius: 40px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.explorer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.dial-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.dial {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: grab;
}

.dial.dragging {
  cursor: grabbing;
}

.dial-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dial-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dial-face {
  stroke: var(--line);
  stroke-width: 1;
}

.dial-track {
  fill: none;
  stroke: var(--track);
  stroke-width: 36;
}

.seg {
  fill: none;
  stroke: var(--phase);
  stroke-width: 34;
  opacity: 0.38;
  transition: opacity 0.35s ease;
}

.explorer[data-phase='menstrual'] .seg.ph-menstrual,
.explorer[data-phase='follicular'] .seg.ph-follicular,
.explorer[data-phase='ovulation'] .seg.ph-ovulation,
.explorer[data-phase='luteal'] .seg.ph-luteal {
  opacity: 1;
}

.tick {
  stroke: var(--ink-3);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.45;
}

.tick.major {
  stroke: var(--ink-2);
  stroke-width: 2;
  opacity: 0.8;
}

.tick-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  fill: var(--ink-2);
  text-anchor: middle;
  dominant-baseline: central;
}

.progress {
  fill: none;
  stroke: var(--plum);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.75;
}

.knob-halo {
  fill: rgba(84, 39, 70, 0.08);
  transition: fill 0.2s;
}

.knob-body {
  fill: #fff;
}

.knob-dot {
  fill: var(--phase);
  transition: fill 0.35s;
}

.dial:hover .knob-halo {
  fill: rgba(84, 39, 70, 0.13);
}

.dial.dragging .knob-halo {
  fill: rgba(185, 122, 203, 0.28);
}

.dial-input:focus-visible + .dial-svg .knob-halo {
  fill: rgba(185, 122, 203, 0.4);
  stroke: var(--lilac-deep);
  stroke-width: 2;
}

.explorer[data-phase='menstrual'] {
  --phase: var(--menstrual);
  --phase-tint: var(--menstrual-tint);
}
.explorer[data-phase='follicular'] {
  --phase: var(--follicular);
  --phase-tint: var(--follicular-tint);
}
.explorer[data-phase='ovulation'] {
  --phase: var(--ovulation);
  --phase-tint: var(--ovulation-tint);
}
.explorer[data-phase='luteal'] {
  --phase: var(--luteal);
  --phase-tint: var(--luteal-tint);
}

.dial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}

.dial-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.dial-day {
  font-family: var(--serif);
  font-size: clamp(66px, 9vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--plum);
  font-variant-numeric: tabular-nums;
}

.dial-of {
  font-size: 14px;
  color: var(--ink-2);
  margin: 2px 0 10px;
}

.dial-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.round-btn,
.play-btn,
.phase-chip,
.seg-tab {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transition:
    transform 0.16s var(--ease-out),
    background-color 0.2s,
    box-shadow 0.2s;
}

.round-btn:active,
.play-btn:active,
.phase-chip:active,
.seg-tab:active {
  transform: scale(0.95);
  transition-duration: 0.06s;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: var(--plum);
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line);
}

.round-btn:hover {
  background: var(--card);
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--plum);
}

.play-btn:hover {
  background: var(--plum-soft);
}

.play-btn .icon-pause,
.play-btn[aria-pressed='true'] .icon-play {
  display: none;
}

.play-btn[aria-pressed='true'] .icon-pause {
  display: block;
}

.phase-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.phase-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}

.phase-chip:hover {
  background: var(--phase-tint);
}

.explorer[data-phase='menstrual'] .phase-chip.ph-menstrual,
.explorer[data-phase='follicular'] .phase-chip.ph-follicular,
.explorer[data-phase='ovulation'] .phase-chip.ph-ovulation,
.explorer[data-phase='luteal'] .phase-chip.ph-luteal {
  color: var(--ink);
  background: var(--phase-tint);
  box-shadow: none;
}

/* Detail panel */
.panel-phase {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  background: var(--phase-tint);
  transition: background-color 0.35s;
}

.panel-phase .sep {
  color: var(--ink-3);
}

.panel-mode {
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -0.02em;
  margin: 16px 0 10px;
}

.panel-insight {
  margin: 0;
  color: var(--ink-2);
  min-height: 3.2em;
}

.panel.flash .panel-mode,
.panel.flash .panel-insight {
  animation: flash 0.45s var(--ease-out);
}

@keyframes flash {
  from {
    opacity: 0.25;
    transform: translateY(4px);
  }
}

.panel-h {
  margin: 26px 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.meters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.meter,
.best li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 15px;
}

.meter-value,
.best-pct {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 99px;
  background: var(--track);
  overflow: hidden;
}

.fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--c, var(--plum));
  transform-origin: left center;
  transform: scaleX(var(--v, 0));
  transition: transform 0.55s var(--ease-out);
}

.best {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.best .fill {
  background: linear-gradient(90deg, var(--lilac), var(--lilac-deep));
}

.panel-tip {
  display: flex;
  gap: 10px;
  margin: 26px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 15px;
  background: var(--cream);
}

.panel-tip .icon {
  color: var(--lilac-deep);
  margin-top: 3px;
}

/* 0–20 → 0–1, for the server-rendered bars (JS sets --v directly). */
.v-0 { --v: 0; }
.v-1 { --v: 0.05; }
.v-2 { --v: 0.1; }
.v-3 { --v: 0.15; }
.v-4 { --v: 0.2; }
.v-5 { --v: 0.25; }
.v-6 { --v: 0.3; }
.v-7 { --v: 0.35; }
.v-8 { --v: 0.4; }
.v-9 { --v: 0.45; }
.v-10 { --v: 0.5; }
.v-11 { --v: 0.55; }
.v-12 { --v: 0.6; }
.v-13 { --v: 0.65; }
.v-14 { --v: 0.7; }
.v-15 { --v: 0.75; }
.v-16 { --v: 0.8; }
.v-17 { --v: 0.85; }
.v-18 { --v: 0.9; }
.v-19 { --v: 0.95; }
.v-20 { --v: 1; }

/* Levels chart */
.chart {
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 34px;
}

.chart-head h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  margin: 0 0 6px;
}

.chart-head p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 34em;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.key {
  width: 26px;
  height: 6px;
  overflow: visible;
}

.key line {
  stroke-width: 3;
  stroke-linecap: round;
}

.k-energy line {
  stroke: var(--energy);
}
.k-focus line {
  stroke: var(--focus);
}
.k-mood line {
  stroke: var(--mood);
}
.k-social line {
  stroke: var(--social);
  stroke-dasharray: 5 4;
}

.chart-body {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 10px;
}

.y-axis {
  position: relative;
  margin-top: 26px;
}

.y-axis span,
.x-axis span {
  position: absolute;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.y-axis span {
  right: 0;
  translate: 0 -50%;
}

.y5 {
  top: 0;
}
.y4 {
  top: 25%;
}
.y3 {
  top: 50%;
}
.y2 {
  top: 75%;
}
.y1 {
  top: 100%;
}

.plot {
  position: relative;
  height: clamp(220px, 26vw, 320px);
  margin-top: 26px;
  touch-action: pan-y;
  cursor: crosshair;
}

.band-labels {
  position: absolute;
  left: 0;
  right: 0;
  top: -26px;
  display: grid;
  grid-template-columns: minmax(0, 4.5fr) minmax(0, 8fr) minmax(0, 4fr) minmax(0, 10.5fr);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
}

.band-labels span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
}

.plot > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.band {
  fill: var(--phase-tint);
  opacity: 0.55;
}

.grid {
  stroke: rgba(43, 26, 24, 0.08);
  stroke-width: 1;
}

.line {
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.l-energy {
  stroke: var(--energy);
}
.l-focus {
  stroke: var(--focus);
}
.l-mood {
  stroke: var(--mood);
}
.l-social {
  stroke: var(--social);
  stroke-dasharray: 7 5;
}

.cross {
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.3;
}

.plot-lines {
  clip-path: inset(-10px -10px -10px -10px);
  transition: clip-path 1.8s var(--ease-out);
}

.js .chart:not(.in) .plot-lines {
  clip-path: inset(-10px 100% -10px -10px);
}

.dots .dot {
  position: absolute;
  display: none;
  width: 12px;
  height: 12px;
  translate: -50% -50%;
  background: var(--c);
  box-shadow: 0 0 0 2px #fff;
  transition:
    left 0.3s var(--ease-out),
    top 0.3s var(--ease-out);
}

.js .chart.in .dots .dot {
  display: block;
}

.x-axis {
  grid-column: 2;
  position: relative;
  height: 28px;
}

.x-axis span {
  top: 8px;
  translate: -50% 0;
}

.x1 {
  left: 0;
}
.x7 {
  left: 22.222%;
}
.x14 {
  left: 48.148%;
}
.x21 {
  left: 74.074%;
}
.x28 {
  left: 100%;
}

.tip-card {
  position: absolute;
  top: 6px;
  z-index: 4;
  min-width: 190px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px var(--line),
    0 14px 30px -12px rgba(84, 39, 70, 0.35);
}

.tip-card strong {
  display: block;
  margin-bottom: 4px;
}

.tip-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 6px;
}

.tip-row b {
  font-variant-numeric: tabular-nums;
}

.tip-row svg {
  width: 18px;
  height: 6px;
  overflow: visible;
}

.data-table {
  margin-top: 18px;
  font-size: 14px;
}

.data-table summary {
  display: inline-flex;
  cursor: pointer;
  font-weight: 600;
  color: var(--plum);
}

.table-scroll {
  overflow-x: auto;
  margin-top: 12px;
  max-height: 360px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  padding: 7px 12px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  position: sticky;
  top: 0;
  background: var(--cream);
}

/* ───────────────────────── Science ───────────────────────── */

.section-science {
  background:
    radial-gradient(50% 40% at 0% 0%, rgba(226, 168, 241, 0.2), transparent 70%),
    radial-gradient(45% 40% at 100% 100%, rgba(170, 179, 234, 0.22), transparent 70%),
    #fbf7fa;
  border-top: 1px solid var(--line);
}

.evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.evidence-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.evidence-num {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--berry);
}

.evidence-card h3 {
  font-size: 25px;
  margin: 10px 0 12px;
}

.evidence-body {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.evidence-use {
  margin: auto 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  background: rgba(107, 45, 87, 0.06);
}

.evidence-use span {
  display: block;
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--berry);
}

/* Numbered citations, linking to the source list. */
.cite {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: 2px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  color: var(--berry);
  background: rgba(107, 45, 87, 0.1);
  transition:
    background-color 0.2s,
    color 0.2s;
}

.cite:hover {
  color: #fff;
  background: var(--berry);
}

/* Health conditions: one panel, items divided by hairlines. */
.conditions {
  margin-top: 20px;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--radius);
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(226, 168, 241, 0.16), transparent 70%),
    #fff;
  box-shadow: var(--shadow-sm);
}

.conditions-head {
  max-width: 760px;
}

.conditions-head h3 {
  font-size: clamp(28px, 3.2vw, 36px);
  margin: 0 0 10px;
}

.conditions-head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 36px;
  margin-top: 12px;
}

.condition {
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.condition h4 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}

.condition-body {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.conditions-note {
  display: flex;
  gap: 10px;
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

.conditions-note .icon {
  flex: none;
  margin-top: 3px;
  color: var(--berry);
}

.science-foot {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.limits {
  /* Stays in view beside the longer list of sources. */
  position: sticky;
  top: 96px;
  padding: 30px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(226, 168, 241, 0.3), transparent 70%),
    linear-gradient(160deg, var(--plum-soft), var(--plum) 60%, var(--plum-deep));
  box-shadow: var(--shadow-md);
}

.limits h3,
.references h3 {
  font-size: 26px;
  margin: 0 0 16px;
}

.limits ul {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.limits li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.limits li .icon {
  margin-top: 3px;
  color: var(--lilac);
}

.limits .cite {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.references {
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.references ol {
  margin: 0;
  padding-left: 24px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.references li {
  padding: 5px 6px;
  margin-left: -6px;
  border-radius: 8px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.references li::marker {
  font-weight: 700;
  color: var(--berry);
}

.references li:target {
  background: rgba(226, 168, 241, 0.25);
}

.references a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.references a:hover {
  color: var(--berry);
  text-decoration: underline;
}

/* ───────────────────────── Planner ───────────────────────── */

.planner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: start;
}

.plan-list,
.plan-view {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

@media (min-width: 1021px) {
  .plan-list {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.plan-list h3 {
  font-size: 30px;
  margin: 0 0 8px;
}

.plan-list h4 {
  margin: 22px 0 4px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.plan-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plan-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.li-title {
  font-weight: 600;
  font-size: 15.5px;
}

.li-meta {
  font-size: 14px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--plum);
  background: var(--periwinkle);
}

.seg-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 5px;
  margin-bottom: 22px;
  border-radius: 20px;
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line);
}

.seg-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 4);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px -6px rgba(84, 39, 70, 0.28);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 0.5s var(--ease-out);
}

.seg-tab {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px;
  border: 0;
  border-radius: 16px;
  background: none;
  color: var(--ink-2);
}

.seg-tab strong {
  font-size: 15.5px;
  color: var(--ink);
}

.seg-tab span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}

.seg-tab .dot {
  width: 8px;
  height: 8px;
}

.plan-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
}

.plan-mode {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.1;
}

.plan-summary dl {
  display: flex;
  gap: 22px;
  margin: 0 0 0 auto;
}

.plan-summary dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.plan-summary dd {
  margin: 0;
  font-weight: 650;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.k-deep {
  --k: var(--plum);
  --k-bg: #eceff8;
}
.k-task {
  --k: var(--rose-deep);
  --k-bg: #fbeeeb;
}
.k-event {
  --k: #7f8bd8;
  --k-bg: #eef0fb;
}
.k-routine {
  --k: #6aa577;
  --k-bg: #e8f3ea;
}
.k-meal {
  --k: #e3a165;
  --k-bg: #fdf1e5;
}
.k-morning {
  --k: var(--lilac-deep);
  --k-bg: #f7ecfa;
}
.k-break {
  --k: #d8c3bf;
  --k-bg: transparent;
}
.k-free {
  --k: transparent;
  --k-bg: transparent;
}

.ribbon {
  width: 100%;
  height: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line);
}

.ribbon rect {
  fill: var(--k);
}

.ribbon-hours {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(7, minmax(0, 4fr)) minmax(0, 1fr);
  margin: 6px 0 18px;
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.ribbon-hours span {
  translate: -50% 0;
  white-space: nowrap;
}

.timeline {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blk {
  display: grid;
  grid-template-columns: minmax(100px, auto) 4px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--k-bg);
}

.blk-time {
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.blk-bar {
  align-self: stretch;
  min-height: 22px;
  border-radius: 2px;
  background: var(--k);
}

.blk-body {
  min-width: 0;
  line-height: 1.3;
}

.blk-body small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.blk-body strong {
  font-weight: 600;
  font-size: 15px;
}

.blk-dur {
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
}

.blk.k-free {
  box-shadow: inset 0 0 0 1px var(--line);
}

.blk.k-free strong,
.blk.k-break strong {
  font-weight: 500;
  color: var(--ink-2);
}

.plan-later {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15px;
  background: var(--card-light);
  box-shadow: inset 0 0 0 1px rgba(199, 123, 114, 0.25);
}

.plan-later.fits {
  background: var(--ovulation-tint);
  box-shadow: none;
}

.plan-later.fits .icon {
  color: #3f7f4d;
}

.footnote {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--ink-3);
}

.plan-panel:focus-visible {
  outline-offset: 8px;
}

.plan-panel.enter .ribbon {
  animation: wipe 0.8s var(--ease-out) both;
}

.plan-panel.enter .blk {
  animation: blk-in 0.5s var(--ease-out) both;
}

@keyframes wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes blk-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.blk:nth-child(2) { animation-delay: 0.025s; }
.blk:nth-child(3) { animation-delay: 0.05s; }
.blk:nth-child(4) { animation-delay: 0.075s; }
.blk:nth-child(5) { animation-delay: 0.1s; }
.blk:nth-child(6) { animation-delay: 0.125s; }
.blk:nth-child(7) { animation-delay: 0.15s; }
.blk:nth-child(8) { animation-delay: 0.175s; }
.blk:nth-child(9) { animation-delay: 0.2s; }
.blk:nth-child(10) { animation-delay: 0.225s; }
.blk:nth-child(11) { animation-delay: 0.25s; }
.blk:nth-child(12) { animation-delay: 0.275s; }
.blk:nth-child(13) { animation-delay: 0.3s; }
.blk:nth-child(14) { animation-delay: 0.325s; }
.blk:nth-child(15) { animation-delay: 0.35s; }
.blk:nth-child(n + 16) { animation-delay: 0.375s; }

/* ───────────────────────── Feature bento ───────────────────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.js .tile.reveal.in {
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

@media (hover: hover) {
  .js .tile.reveal.in:hover,
  .tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
}

.span-2 {
  grid-column: span 2;
}
.span-3 {
  grid-column: span 3;
}
.span-4 {
  grid-column: span 4;
}

.tile h3 {
  font-size: clamp(24px, 2.2vw, 28px);
  margin: 12px 0 0;
}

.tile p {
  margin: 0;
  font-size: 16px;
  color: var(--ink-2);
}

.art {
  position: relative;
  min-height: 190px;
  padding: 22px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--cream);
}

.art-today {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background:
    radial-gradient(80% 90% at 0% 100%, rgba(245, 196, 155, 0.35), transparent 70%),
    var(--cream);
}

.mini-mode {
  padding: 18px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(226, 168, 241, 0.35), transparent 60%),
    var(--plum);
}

.mini-mode .pill {
  color: var(--plum);
  background: var(--lilac);
}

.mini-mode p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.mini-levels {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: #fff;
  font-size: 13.5px;
  box-shadow: var(--shadow-sm);
}

.art-match {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  background:
    radial-gradient(70% 70% at 50% 40%, rgba(220, 224, 247, 0.9), transparent 70%),
    var(--cream);
}

.ring {
  width: 132px;
  height: 132px;
  rotate: -90deg;
  grid-area: 1 / 1;
}

.ring circle {
  fill: none;
  stroke-width: 11;
}

.ring .track {
  stroke: #fff;
}

.ring .value {
  stroke: var(--focus);
  stroke-linecap: round;
}

.js .reveal:not(.in) .ring .value {
  stroke-dashoffset: 100;
}

.ring .value {
  transition: stroke-dashoffset 1.4s var(--ease-out) 0.2s;
}

.ring-text {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.ring-text strong {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  color: var(--plum);
}

.ring-text small {
  font-size: 12px;
  color: var(--ink-2);
}

.art-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
}

.art-caption b {
  color: var(--ink);
  font-weight: 650;
}

.art-plan {
  display: grid;
  align-content: center;
  gap: 7px;
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(242, 202, 203, 0.55), transparent 70%),
    var(--cream);
}

.mini-blk {
  display: grid;
  grid-template-columns: 4px auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  background: #fff;
  box-shadow: 0 2px 8px -4px rgba(43, 26, 24, 0.15);
}

.mini-blk i {
  align-self: stretch;
  border-radius: 2px;
  background: var(--k);
}

.mini-blk small {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mini-blk b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.art-routine {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background:
    radial-gradient(80% 90% at 100% 100%, rgba(216, 232, 218, 0.9), transparent 70%),
    var(--cream);
}

.week {
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.week-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

.week-title small {
  color: var(--ink-2);
  font-size: 13px;
}

.week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

.wd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wd i {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.wd.done i {
  color: #fff;
  background: #6aa577;
  box-shadow: none;
}

.wd.today i {
  box-shadow: inset 0 0 0 2px var(--plum);
}

.wd.today {
  color: var(--plum);
}

.review {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.review small {
  color: var(--ink-2);
  font-size: 13px;
}

.flex-range {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 3px;
  margin-top: 10px;
}

.flex-range i {
  height: 8px;
  border-radius: 4px;
  background: var(--ovulation-tint);
}

.flex-range i.mid {
  background: #6aa577;
}

.art-pattern {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    radial-gradient(80% 80% at 0% 0%, rgba(246, 211, 207, 0.7), transparent 70%),
    var(--cream);
}

.spark-legend {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-2);
}

.spark-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.spark-legend i {
  width: 18px;
  height: 0;
  border-top: 2.5px solid var(--lilac-deep);
}

.spark-legend i.typ {
  border-top: 2px dashed var(--ink-3);
}

.art-pattern svg {
  flex: none;
  width: 100%;
  height: 120px;
  margin: auto 0;
  overflow: visible;
}

.art-pattern path {
  fill: none;
  stroke-linecap: round;
}

.art-pattern .typ {
  stroke: var(--ink-3);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.art-pattern .you {
  stroke: var(--lilac-deep);
  stroke-width: 3;
}

.spark-caption {
  font-size: 12px;
  color: var(--ink-3);
}

.art-iphone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 10px;
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(231, 236, 247, 1), transparent 70%),
    var(--cream);
}

.app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.app-tile .icon,
.app-tile img {
  box-sizing: content-box;
  width: 34px;
  height: 34px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.app-tile.health .icon {
  color: #ef5f6b;
}

.app-tile.cal .icon {
  color: var(--focus);
}

.app-tile.ritma img {
  width: 62px;
  height: 62px;
  padding: 0;
  border-radius: 20px;
}

.flow {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}

.flow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lilac-deep);
  opacity: 0.35;
}

.flow i:nth-child(2) {
  opacity: 0.6;
}
.flow i:nth-child(3) {
  opacity: 0.9;
}

.read-only {
  flex-basis: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #3f7f4d;
}

/* ───────────────────────── How it works ───────────────────────── */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  padding: 30px;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 26px;
  color: #fff;
  background: linear-gradient(140deg, var(--plum-soft), var(--plum));
  box-shadow: 0 10px 24px -10px rgba(84, 39, 70, 0.7);
}

.step h3 {
  font-size: 26px;
  margin: 22px 0 10px;
}

.step p {
  margin: 0;
  color: var(--ink-2);
}

/* ───────────────────────── Pricing ───────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.included-title {
  margin: 36px 0 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.included {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.included li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16.5px;
}

.included .icon {
  box-sizing: content-box;
  width: 16px;
  height: 16px;
  padding: 4px;
  margin-top: 1px;
  border-radius: 50%;
  color: var(--plum);
  background: var(--lilac);
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 34px);
  border-radius: 32px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--shadow-sm);
}

.plan.featured {
  color: #fff;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(226, 168, 241, 0.3), transparent 70%),
    linear-gradient(160deg, var(--plum-soft), var(--plum) 55%, var(--plum-deep));
  box-shadow: var(--shadow-lg);
}

.plan-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  min-height: 28px;
}

.plan h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.plan.featured h3 {
  color: var(--lilac);
}

.plan-badge {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--plum);
  background: var(--lilac);
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  margin: 24px 0 10px;
}

.plan-price .amount {
  font-family: var(--serif);
  font-size: clamp(54px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.plan-price .currency {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.plan-per {
  margin: 0 0 2px;
  font-size: 16.5px;
  font-weight: 600;
}

.plan-note {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--ink-2);
}

.plan.featured .plan-price .currency,
.plan.featured .plan-note {
  color: rgba(255, 255, 255, 0.74);
}

.plan-perks {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: auto 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.plan-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 500;
}

.plan-perks .icon {
  color: var(--lilac-deep);
}

.plan.featured .plan-perks {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.plan.featured .plan-perks .icon {
  color: var(--lilac);
}

.plan-fine {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* ───────────────────────── Privacy band ───────────────────────── */

.privacy-band {
  overflow: hidden;
  padding: clamp(80px, 10vw, 140px) 0;
  background-image:
    radial-gradient(50% 60% at 90% 10%, rgba(226, 168, 241, 0.22), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(170, 179, 234, 0.18), transparent 70%),
    linear-gradient(180deg, var(--plum), #3f1c35);
}

.privacy-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.06;
  mix-blend-mode: overlay;
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.privacy-band .intro {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

.promise-card {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 40px 80px -40px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.promise-flower {
  position: absolute;
  width: 130px;
  right: -52px;
  top: -92px;
  rotate: 12deg;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.promises {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.promises li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  font-size: 16.5px;
  font-weight: 500;
}

.promises li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.promises .icon {
  box-sizing: content-box;
  width: 22px;
  height: 22px;
  padding: 9px;
  border-radius: 14px;
  color: var(--lilac);
  background: rgba(226, 168, 241, 0.12);
}

/* ───────────────────────── FAQ ───────────────────────── */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq-head .muted {
  margin-top: 18px;
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa:first-child {
  border-top: 1px solid var(--line);
}

.qa summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 52px 22px 0;
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.4;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 30px;
  height: 30px;
  translate: 0 -50%;
  border-radius: 50%;
  background:
    linear-gradient(var(--plum), var(--plum)) center / 12px 2px no-repeat,
    linear-gradient(var(--plum), var(--plum)) center / 2px 12px no-repeat,
    var(--card-light);
  transition: rotate 0.3s var(--ease-out);
}

.qa[open] summary::after {
  rotate: 45deg;
}

.qa p {
  margin: 0;
  padding: 0 52px 24px 0;
  color: var(--ink-2);
}

.qa[open] p {
  animation: rise 0.45s var(--ease-out);
}

/* ───────────────────────── Call to action ───────────────────────── */

.cta-section {
  padding: 0 0 clamp(80px, 10vw, 140px);
}

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(36px, 6vw, 84px);
  border-radius: 44px;
  color: var(--plum);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(120deg, #e8b6f5 0%, var(--rose) 48%, var(--luteal) 100%);
  box-shadow: var(--shadow-lg);
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.12;
  mix-blend-mode: soft-light;
}

.cta-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.cta h2 {
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0 0 18px;
}

.cta p {
  font-size: clamp(17px, 1.5vw, 20px);
  margin: 0 0 30px;
  color: rgba(84, 39, 70, 0.86);
}

.cta-bouquet {
  position: absolute;
  z-index: 0;
  right: clamp(-40px, 3vw, 60px);
  bottom: -70px;
  width: clamp(200px, 24vw, 300px);
  rotate: -6deg;
  filter: drop-shadow(0 30px 40px rgba(107, 45, 87, 0.25));
  pointer-events: none;
}

/* ───────────────────────── Footer ───────────────────────── */

.site-footer {
  padding: clamp(56px, 7vw, 88px) 0 32px;
  background: var(--plum-deep);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  margin: 14px 0 0;
  max-width: 22em;
  color: rgba(255, 255, 255, 0.7);
}

.footer-brand .brand-mark {
  width: 150px;
}

.site-footer h2 {
  margin: 4px 0 14px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer ul a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer ul a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer a[aria-current='true'] {
  color: var(--lilac);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p {
  margin: 0;
}

/* ───────────────────────── Inner pages ───────────────────────── */

.page-hero {
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(44px, 6vw, 80px)) 0 clamp(120px, 12vw, 150px);
  text-align: center;
  background-image: linear-gradient(180deg, #3d1a33 0%, var(--plum) 100%);
}

.page-hero h1 {
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: -0.028em;
  line-height: 1;
  margin: 0 0 18px;
}

.page-hero .lead {
  margin: 0 auto;
}

.page-hero.tall {
  min-height: calc(100vh - 120px);
  display: grid;
  align-content: center;
  padding-bottom: clamp(80px, 10vw, 120px);
}

.doc {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: -84px auto clamp(80px, 9vw, 120px);
  padding: clamp(24px, 5vw, 64px);
  border-radius: 36px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .doc {
    margin-left: 16px;
    margin-right: 16px;
  }
}

.doc > h2:first-child {
  margin-top: 0;
}

.doc h2 {
  font-size: clamp(26px, 3vw, 32px);
  margin: 1.6em 0 0.5em;
}

.prose {
  font-size: 17px;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li {
  margin: 6px 0;
}

.prose li::marker {
  color: var(--lilac-deep);
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding: 28px 30px;
  border-radius: 26px;
  background: linear-gradient(120deg, var(--card-light), #f3e6f8);
}

.contact-card h3 {
  font-size: 26px;
  margin: 0 0 6px;
}

.contact-card p {
  margin: 0;
  color: var(--ink-2);
}

.big-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.05em;
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(110px, 18vw, 200px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.big-404 img {
  width: 0.78em;
  rotate: -12deg;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35));
}

.not-found .page-hero p:last-child {
  margin-top: 30px;
}

/* ───────────────────────── Responsive ───────────────────────── */

/* Two columns but no room beside the phone for the plan card. */
@media (min-width: 1021px) and (max-width: 1340px) {
  .fc-plan {
    display: none;
  }
}

@media (max-width: 1020px) {
  .site-header nav .wide-only {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .phone-stage {
    margin-top: 40px;
  }

  .explorer-top,
  .planner,
  .pricing-grid,
  .science-foot,
  .privacy-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .evidence,
  .conditions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .limits {
    position: static;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }

  .stats li:nth-child(3) {
    border-left: 0;
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .span-2,
  .span-3 {
    grid-column: span 1;
  }

  .span-4 {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .promise-flower {
    right: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 60px;
  }

  body {
    font-size: 16px;
  }

  .brand-mark {
    width: 96px;
  }

  .site-header nav a {
    font-size: 14px;
    padding: 7px 9px;
  }

  .site-header nav a.lang {
    margin-left: 2px;
  }

  .site-header nav a.lang .icon {
    display: none;
  }

  .phone-stage,
  .device {
    width: 286px;
  }

  .device {
    height: 600px;
    border-radius: 50px;
  }

  .screen {
    border-radius: 40px;
  }

  .float-card {
    padding: 9px 12px 9px 9px;
    border-radius: 16px;
    font-size: 12px;
  }

  .float-card strong {
    font-size: 12.5px;
  }

  .float-card small {
    font-size: 11px;
  }

  .fc-cycle {
    top: -30px;
    left: -26px;
  }

  .mini-ring {
    width: 34px;
    height: 34px;
  }

  .fc-plan {
    top: 300px;
    right: -30px;
  }

  .fc-match {
    bottom: -30px;
    left: -26px;
    max-width: 240px;
  }

  .fc-pct {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .bouquet {
    width: 150px;
    right: -64px;
    bottom: -40px;
  }

  .stats {
    padding: 22px 4px;
  }

  .stats li {
    padding: 4px 16px;
  }

  .stats span {
    font-size: 13.5px;
  }

  .explorer {
    border-radius: 30px;
    padding: 20px 16px 24px;
  }

  .meters {
    gap: 14px 18px;
  }

  .tip-card {
    min-width: 168px;
    font-size: 12px;
  }

  .seg-tab strong {
    font-size: 14px;
  }

  .seg-tab span {
    font-size: 11px;
    gap: 4px;
  }

  .seg-tab .dot {
    display: none;
  }

  .plan-summary dl {
    margin-left: 0;
    width: 100%;
  }

  .blk {
    grid-template-columns: 4px minmax(0, 1fr) auto;
    gap: 2px 10px;
    padding: 8px 12px;
  }

  .blk-time {
    grid-column: 2;
    grid-row: 1;
    font-size: 12px;
  }

  .blk-bar {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .blk-body {
    grid-column: 2;
    grid-row: 2;
  }

  .blk-dur {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .ribbon-hours span:nth-child(odd) {
    visibility: hidden;
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .span-2,
  .span-3,
  .span-4 {
    grid-column: auto;
  }

  .art-today,
  .art-routine {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .qa summary {
    padding-right: 46px;
  }

  .qa p {
    padding-right: 0;
  }

  .cta {
    border-radius: 32px;
    padding-bottom: 220px;
  }

  .cta-bouquet {
    width: 170px;
    right: 10px;
    bottom: -60px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .promise-flower {
    width: 76px;
    right: -6px;
    top: -42px;
  }
}

@media (max-width: 560px) {
  .plans,
  .evidence,
  .conditions-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .evidence-card,
  .conditions,
  .limits,
  .references {
    padding: 22px;
  }
}

@media (max-width: 400px) {
  .site-header nav a[href$='/privacy'] {
    display: none;
  }

  .fc-plan {
    display: none;
  }
}

/* ───────────────────────── Preferences ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .site-header.at-top {
    background: var(--plum);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header.is-light {
    background: var(--cream);
  }

  .float-card,
  .tip-card,
  .tabbar {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .promise-card {
    background: var(--plum-soft);
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink-2: #4a3a37;
    --ink-3: #5e4d4a;
    --line: rgba(43, 26, 24, 0.3);
  }
}
