/* ─────────────────────────────────────────────────────────────────────────
   Aurelle — botanical editorial. Blush paper, plum ink, rose & orchid accents.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --paper: #fff6f5;
  --paper-2: #fdeef2;
  --ink: #2c0f2a;
  --ink-soft: #6b4a66;
  --ink-faint: #a68aa1;
  --line: rgba(76, 22, 66, 0.10);
  --line-strong: rgba(76, 22, 66, 0.18);

  --rose: #e8467c;
  --rose-deep: #c42a63;
  --orchid: #a84fd1;
  --plum: #6d2a8f;
  --peach: #ffb39c;
  --lilac: #e7d6ff;
  --blush: #ffd9e3;
  --sage: #8fbf9a;
  --amber: #f5a54a;

  --period: #e8467c;
  --predicted: #f59ab9;
  --fertile: #b98cf0;
  --ovulation: #8a3fd0;

  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 50px -24px rgba(109, 42, 143, 0.35), 0 6px 18px -10px rgba(232, 70, 124, 0.25);
  --shadow-lg: 0 40px 80px -30px rgba(109, 42, 143, 0.45), 0 12px 30px -16px rgba(232, 70, 124, 0.35);
  --radius: 28px;
  --radius-sm: 16px;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Figtree", "Helvetica Neue", sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Atmosphere: drifting colour blooms + paper grain */
.atmosphere { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bloom { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.bloom.b1 { width: 52vmax; height: 52vmax; left: -14vmax; top: -18vmax; background: radial-gradient(circle at 40% 40%, #ffc2d4, transparent 65%); animation: drift1 26s var(--ease) infinite alternate; }
.bloom.b2 { width: 46vmax; height: 46vmax; right: -16vmax; top: 8vh; background: radial-gradient(circle at 50% 50%, #e3c4ff, transparent 62%); animation: drift2 32s var(--ease) infinite alternate; }
.bloom.b3 { width: 40vmax; height: 40vmax; left: 20vw; bottom: -22vmax; background: radial-gradient(circle at 50% 50%, #ffd0bf, transparent 60%); animation: drift3 28s var(--ease) infinite alternate; }
.grain { position: absolute; inset: -50%; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift1 { to { transform: translate(8vw, 10vh) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-10vw, 14vh) scale(.92); } }
@keyframes drift3 { to { transform: translate(6vw, -12vh) scale(1.1); } }

main, header, footer, nav, section { position: relative; z-index: 1; }

a { color: var(--rose-deep); text-decoration: none; }
a:hover { color: var(--plum); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.italic { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--rose-deep);
}
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }

/* Glass card */
.card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  padding: 26px;
}
.card-title { font-family: var(--font-display); font-size: 22px; margin-bottom: 4px; }

/* Buttons */
.btn {
  --bg: linear-gradient(135deg, var(--rose) 0%, var(--orchid) 100%);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font-body);
  padding: 15px 24px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  background: var(--bg);
  cursor: pointer;
  box-shadow: 0 10px 26px -10px rgba(196, 42, 99, .7), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 16px 32px -12px rgba(196, 42, 99, .8), inset 0 1px 0 rgba(255,255,255,.35); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { filter: grayscale(.4) opacity(.6); cursor: wait; transform: none; }
.btn.ghost { background: var(--glass-strong); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.btn.ghost:hover { color: var(--plum); border-color: var(--orchid); }
.btn.soft { background: var(--blush); color: var(--rose-deep); box-shadow: none; }
.btn.danger { background: #fff; color: #b3123f; border: 1px solid #f3b6c8; box-shadow: none; }
.btn.small { padding: 10px 16px; font-size: 13px; }
.btn.block { width: 100%; }

/* Inputs */
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.input, textarea.input, select.input {
  width: 100%;
  font: 500 16px var(--font-body);
  color: var(--ink);
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .78);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus { border-color: var(--orchid); background: #fff; box-shadow: 0 0 0 5px rgba(168, 79, 209, .14); }
textarea.input { resize: vertical; min-height: 90px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 600 13.5px var(--font-body);
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.7);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s var(--ease);
  user-select: none;
}
.chip:hover { border-color: var(--orchid); color: var(--plum); transform: translateY(-1px); }
.chip.on {
  background: linear-gradient(135deg, #fde0ea, #efdcff);
  border-color: transparent;
  color: var(--plum);
  box-shadow: 0 0 0 2px var(--orchid) inset;
}
.chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14px; opacity: 0; z-index: 100;
  transition: all .35s var(--ease); pointer-events: none; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #a3123f; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; } .reveal.d4 { animation-delay: .32s; }
.reveal.d5 { animation-delay: .40s; } .reveal.d6 { animation-delay: .48s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ─── Brand ─── */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-display); font-size: 25px; font-style: italic; font-weight: 500; letter-spacing: -0.02em; }

/* ─── App shell ─── */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  padding: 30px 22px;
  display: flex; flex-direction: column; gap: 28px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.25));
  backdrop-filter: blur(16px);
}
.nav { display: grid; gap: 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px;
  color: var(--ink-soft); font-weight: 600; font-size: 15px;
  transition: all .2s var(--ease);
}
.nav a svg { width: 20px; height: 20px; flex: none; }
.nav a:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.nav a.active { background: #fff; color: var(--plum); box-shadow: var(--shadow); }
.nav a.active svg { color: var(--rose); }
.sidebar .me { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.5); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orchid));
}
.me .who { min-width: 0; }
.me .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who a { font-size: 12.5px; color: var(--ink-faint); }

.content { padding: 40px clamp(20px, 4vw, 56px) 80px; max-width: 1240px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 56px); }

.tabbar { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding: 22px 16px 120px; }
  .mobile-top { display: flex !important; }
  .tabbar {
    display: flex; position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px;
    justify-content: space-around; padding: 8px;
    border-radius: 26px; background: var(--glass-strong);
    backdrop-filter: blur(20px); box-shadow: var(--shadow-lg); border: 1px solid #fff;
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 12px; border-radius: 18px; color: var(--ink-faint); font-size: 11px; font-weight: 700; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--plum); background: linear-gradient(135deg, #fde3ec, #f0e1ff); }
}
.mobile-top { display: none; justify-content: space-between; align-items: center; margin-bottom: 18px; }

/* ─── Today ─── */
.today-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1080px) { .today-grid { grid-template-columns: 1fr; } }

.ring-card { padding: 34px 26px 30px; display: grid; justify-items: center; text-align: center; overflow: hidden; }
.ring-wrap { position: relative; width: min(100%, 400px); aspect-ratio: 1; }
.ring-wrap svg { width: 100%; height: 100%; overflow: visible; }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 22%; }
.ring-center .label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--ink-faint); }
.ring-center .day { font-family: var(--font-display); font-style: italic; font-size: clamp(64px, 9vw, 96px); line-height: .95; color: var(--plum); }
.ring-center .sub { font-weight: 600; color: var(--ink-soft); font-size: 15px; }
.petal { transition: transform .5s var(--ease), opacity .5s; transform-box: fill-box; transform-origin: center; }
.petal.today { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }

.legend { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 18px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

.phase-card { position: relative; overflow: hidden; }
.phase-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,70,124,.22), transparent 70%);
}
.phase-name { font-size: clamp(30px, 3.4vw, 40px); margin: 8px 0 6px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.stat { padding: 16px; border-radius: 20px; background: rgba(255,255,255,.66); border: 1px solid #fff; }
.stat b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--plum); line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 520px) { .stat-row { grid-template-columns: 1fr 1fr; } }

.actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.log-section { margin-top: 22px; }
.log-section h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.mood-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.mood {
  display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border-radius: 18px; cursor: pointer;
  border: 1px solid transparent; background: rgba(255,255,255,.55); transition: all .2s var(--ease);
  font-size: 11.5px; font-weight: 700; color: var(--ink-soft);
}
.mood .e { font-size: 26px; line-height: 1; transition: transform .25s var(--ease); }
.mood:hover .e { transform: scale(1.18) rotate(-6deg); }
.mood.on { background: #fff; border-color: var(--orchid); color: var(--plum); box-shadow: 0 8px 20px -12px var(--orchid); }
@media (max-width: 520px) { .mood-row { grid-template-columns: repeat(4, 1fr); } }

.flow-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.flow {
  display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border-radius: 18px; cursor: pointer;
  border: 1px solid transparent; background: rgba(255,255,255,.55); font-size: 12px; font-weight: 700; color: var(--ink-soft);
  transition: all .2s var(--ease);
}
.flow svg { width: 24px; height: 24px; }
.flow.on { background: #fff; border-color: var(--rose); color: var(--rose-deep); box-shadow: 0 8px 20px -12px var(--rose); }

.upcoming { display: grid; gap: 10px; margin-top: 8px; }
.up {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,.6); border: 1px solid #fff;
}
.up .ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.up b { font-weight: 700; }
.up small { color: var(--ink-faint); font-weight: 600; }
.up .when { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--plum); }

.empty-hero { text-align: center; padding: 50px 30px; margin-bottom: 28px; }
.empty-hero h2 { font-size: 40px; margin: 14px 0 10px; }

/* ─── Calendar ─── */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cal-head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.cal-nav { display: flex; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.75); color: var(--ink);
  cursor: pointer; transition: all .2s var(--ease);
}
.icon-btn:hover { border-color: var(--orchid); color: var(--plum); transform: scale(1.06); }
.weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.weekdays div { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--ink-faint); padding-bottom: 6px; }
.day-cell {
  position: relative; aspect-ratio: 1; border-radius: 20px; border: 1px solid transparent;
  background: rgba(255,255,255,.5); cursor: pointer; display: grid; place-items: center;
  font-weight: 700; font-size: 16px; color: var(--ink); transition: all .2s var(--ease);
}
.day-cell:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--shadow); }
.day-cell.out { opacity: .32; }
.day-cell.today { border-color: var(--ink); }
.day-cell.period { background: linear-gradient(145deg, #f25a8d, #d93374); color: #fff; }
.day-cell.predicted { background: repeating-linear-gradient(135deg, #ffe3ec 0 6px, #ffd2e0 6px 12px); color: var(--rose-deep); border-color: #f7a8c2; border-style: dashed; }
.day-cell.fertile { background: linear-gradient(145deg, #efe2ff, #e1cbff); color: var(--plum); }
.day-cell.ovulation { background: linear-gradient(145deg, #a659e0, #7a32c4); color: #fff; }
.day-cell.selected { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--orchid); }
.day-cell .dots { position: absolute; bottom: 9%; display: flex; gap: 3px; }
.day-cell .dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .75; }
.day-cell .heart { position: absolute; top: 8%; right: 10%; font-size: 11px; }
@media (max-width: 600px) { .weekdays, .cal-grid { gap: 4px; } .day-cell { border-radius: 14px; font-size: 14px; } }

.cal-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1080px) { .cal-layout { grid-template-columns: 1fr; } }

/* ─── Chat ─── */
.chat-card { display: flex; flex-direction: column; height: calc(100vh - 190px); min-height: 520px; padding: 0; overflow: hidden; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 28px; display: flex; flex-direction: column; gap: 16px; scroll-behavior: smooth; }
.msg { max-width: min(78%, 640px); padding: 14px 18px; border-radius: 22px; font-size: 15.5px; line-height: 1.6; animation: rise .45s var(--ease) both; white-space: pre-wrap; word-wrap: break-word; }
.msg.user { align-self: flex-end; color: #fff; background: linear-gradient(135deg, var(--rose), var(--orchid)); border-bottom-right-radius: 6px; box-shadow: 0 10px 24px -14px var(--rose-deep); }
.msg.assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.assistant strong { color: var(--plum); }
.msg-who { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink-faint); margin-bottom: 6px; letter-spacing: .06em; }
.typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--orchid); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-6px); opacity: 1; } }
.composer { display: flex; gap: 10px; padding: 16px; border-top: 1px solid var(--line); background: rgba(255,255,255,.7); align-items: flex-end; }
.composer textarea { flex: 1; resize: none; max-height: 160px; min-height: 52px; border-radius: 26px; padding: 15px 20px; }
.send { width: 52px; height: 52px; padding: 0; flex: none; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chat-empty { margin: auto; text-align: center; max-width: 460px; padding: 20px; }
.chat-empty h2 { font-size: 38px; margin: 18px 0 8px; }
.quota { font-size: 13px; font-weight: 600; color: var(--ink-faint); }

/* ─── Drawer (day editor on mobile) ─── */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(44, 15, 42, .25); backdrop-filter: blur(3px); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .3s; }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }

/* ─── Auth ─── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; display: grid; place-items: center; padding: 48px; overflow: hidden; }
.auth-art .quote { position: absolute; left: 48px; bottom: 48px; right: 48px; font-family: var(--font-display); font-style: italic; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; color: var(--plum); }
.auth-art .quote small { display: block; font-family: var(--font-body); font-style: normal; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-deep); margin-top: 14px; font-weight: 700; }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 48px; margin: 26px 0 8px; }
.auth-switch { margin-top: 22px; text-align: center; color: var(--ink-soft); font-size: 15px; }
.error-box { display: none; padding: 12px 16px; border-radius: 14px; background: #ffe3ea; color: #a3123f; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.error-box.show { display: block; animation: rise .3s var(--ease); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ─── Landing ─── */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
}
.top nav { display: flex; gap: 28px; align-items: center; font-weight: 600; }
.top nav a:not(.btn) { color: var(--ink-soft); }
.top nav a:not(.btn):hover { color: var(--plum); }
@media (max-width: 760px) { .top nav a:not(.btn) { display: none; } }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 40px clamp(20px, 5vw, 64px) 80px; max-width: 1360px; margin: 0 auto; }
.hero h1 { font-size: clamp(52px, 7.4vw, 104px); }
.hero h1 em { font-style: italic; background: linear-gradient(120deg, var(--rose) 10%, var(--orchid) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.hero p.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 520px; margin: 26px 0 34px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.trust { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.trust span { display: inline-flex; gap: 8px; align-items: center; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; padding-top: 10px; } }

.phone {
  position: relative; justify-self: center; width: min(360px, 86vw); aspect-ratio: 9 / 18.5;
  border-radius: 54px; padding: 14px; background: linear-gradient(160deg, #3b1538, #1d0a1c);
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255,255,255,.25) inset;
  transform: rotate(4deg); animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(2.5deg) translateY(-14px); } }
.phone-screen { width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: linear-gradient(170deg, #fff4f6 0%, #f6e8ff 100%); padding: 40px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.phone .mini-card { background: rgba(255,255,255,.85); border-radius: 22px; padding: 14px 16px; box-shadow: 0 10px 24px -16px rgba(109,42,143,.5); }
.floating-tag {
  position: absolute; padding: 12px 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg);
  font-weight: 700; font-size: 14px; display: flex; gap: 10px; align-items: center; animation: float2 6s ease-in-out infinite;
}
.floating-tag.t1 { left: -14%; top: 22%; }
.floating-tag.t2 { right: -16%; bottom: 20%; animation-delay: -3s; }
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 960px) { .floating-tag.t1 { left: -4%; } .floating-tag.t2 { right: -4%; } }

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: rgba(255,255,255,.35); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 38s linear infinite; font-family: var(--font-display); font-style: italic; font-size: 26px; color: var(--plum); }
.marquee-track span::after { content: "✿"; margin-left: 48px; color: var(--rose); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

.section { padding: 100px clamp(20px, 5vw, 64px); max-width: 1360px; margin: 0 auto; }
.section-head { max-width: 680px; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(40px, 5vw, 64px); margin-top: 12px; }
.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.feature { grid-column: span 4; padding: 32px; min-height: 280px; display: flex; flex-direction: column; }
.feature.wide { grid-column: span 8; }
.feature h3 { font-size: 30px; margin: 20px 0 10px; }
.feature p { color: var(--ink-soft); margin: 0; }
.feature .icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; }
@media (max-width: 960px) { .feature, .feature.wide { grid-column: span 12; } }

.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.phase-tile { padding: 26px; border-radius: var(--radius); color: #fff; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.phase-tile:hover { transform: translateY(-6px) rotate(-1deg); }
.phase-tile h3 { font-size: 30px; font-style: italic; }
.phase-tile small { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; font-size: 12px; }
@media (max-width: 960px) { .phases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .phases { grid-template-columns: 1fr; } }

.privacy-band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 56px; border-radius: 40px; background: linear-gradient(135deg, #3a1236 0%, #5b1f6e 60%, #8a2f74 100%); color: #fff; box-shadow: var(--shadow-lg); overflow: hidden; position: relative; }
.privacy-band h2 { font-size: clamp(36px, 4vw, 54px); }
.privacy-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.privacy-band li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; color: #fbe6f3; }
.privacy-band li b { color: #fff; }
@media (max-width: 960px) { .privacy-band { grid-template-columns: 1fr; padding: 34px; } }

.final-cta { text-align: center; padding: 120px 20px 140px; }
.final-cta h2 { font-size: clamp(46px, 6.6vw, 92px); }
.final-cta h2 em { font-style: italic; color: var(--rose); }

.foot { padding: 30px clamp(20px, 5vw, 64px); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 14px; }

.prose { max-width: 760px; margin: 0 auto; padding: 40px 20px 100px; }
.prose h1 { font-size: 56px; margin-bottom: 20px; }
.prose h2 { font-size: 30px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 17px; }

/* Admin table */
.table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.table th { text-align: left; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); padding: 0 14px; }
.table td { background: rgba(255,255,255,.7); padding: 14px; font-size: 14.5px; }
.table td:first-child { border-radius: 16px 0 0 16px; }
.table td:last-child { border-radius: 0 16px 16px 0; text-align: right; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.premium { background: linear-gradient(135deg, #fde0ea, #efdcff); color: var(--plum); }
.pill.free { background: #f4eef3; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ─── Option cards (gender, goal, relationship) ─── */
.choice-grid { display: grid; gap: 10px; }
.choice-grid.two { grid-template-columns: 1fr 1fr; }
.choice-grid.four { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
  display: grid; gap: 3px; height: 100%; padding: 16px; border-radius: 20px;
  background: rgba(255,255,255,.66); border: 1.5px solid var(--line-strong);
  transition: all .22s var(--ease);
}
.choice-body b { font-size: 15px; }
.choice-body small { color: var(--ink-faint); font-weight: 600; font-size: 12.5px; line-height: 1.35; }
.choice-emoji { font-size: 24px; line-height: 1; margin-bottom: 6px; }
.choice:hover .choice-body { border-color: var(--orchid); transform: translateY(-2px); }
.choice input:checked + .choice-body {
  background: linear-gradient(140deg, #fff0f5, #f3e6ff); border-color: var(--orchid);
  box-shadow: 0 0 0 3px rgba(168,79,209,.15), 0 14px 26px -16px var(--orchid);
}
.choice input:checked + .choice-body b { color: var(--plum); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--orchid); outline-offset: 2px; }

/* Goal banner on Today */
.goal-banner {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px;
  border-radius: 18px; font-size: 14px; font-weight: 600; line-height: 1.45;
  background: rgba(255,255,255,.72); border: 1px solid #fff; color: var(--ink-soft);
}
.goal-banner .gi { font-size: 20px; line-height: 1.1; }
.goal-banner.conceive { background: linear-gradient(135deg, #fff0f5, #ffe3ef); color: var(--rose-deep); }
.goal-banner.avoid { background: linear-gradient(135deg, #fff8ec, #fff0e0); color: #9a5a12; }
.goal-banner.multiple { background: linear-gradient(135deg, #f5edff, #ece0ff); color: var(--plum); }
.mode-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: #fff; border: 1px solid var(--line); color: var(--plum);
}
