/* ================= LUNA — suivi de cycle (thème clair) ================= */
:root {
  --bg: #f4f2ee;
  --card: #ffffff;
  --border: #e7e4ee;
  --text: #232633;
  --muted: #6d7287;
  --pink: #ff5c8a;
  --pink-deep: #d92b63;
  --pink-soft: rgba(255, 92, 138, .14);
  --blue: #2440c9;
  --blue-soft: rgba(36, 64, 201, .10);
  --lightblue: #3f9fd4;
  --lightblue-soft: rgba(63, 159, 212, .12);
  --grey: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(60, 55, 90, .08);
  --shadow-soft: 0 2px 10px rgba(60, 55, 90, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.hidden { display: none !important; }

:focus-visible {
  outline: 3px solid rgba(36, 64, 201, .55);
  outline-offset: 2px;
}

/* ================= ÉCRANS DE DÉMARRAGE ================= */
.boot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  color: var(--muted);
  font-size: 14.5px;
  text-align: center;
}
.boot svg { animation: moonPulse 1.8s ease-in-out infinite; }
@keyframes moonPulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50%      { transform: scale(1.06); opacity: 1; }
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 999;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #fff3cd;
  color: #6b4b00;
  box-shadow: var(--shadow);
  font-size: 14px;
  text-align: center;
}

/* ================= CONNEXION (split-screen) ================= */
#view-login { min-height: 100vh; }

.auth-page { background: var(--bg); }

.app-foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 18px calc(34px + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}
@media (max-width: 920px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}

/* ---- Panneau visuel ---- */
.auth-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 60px 28px;
  background: linear-gradient(155deg, #ffe1eb 0%, #e6ecff 55%, #f2e9ff 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .45;
  animation: drift 14s ease-in-out infinite;
}
.blob.b1 { width: 380px; height: 380px; background: #a9c2ff; top: -120px; right: -100px; }
.blob.b2 { width: 320px; height: 320px; background: #ffb3cb; bottom: -80px; left: -90px; animation-delay: -5s; }
.blob.b3 { width: 200px; height: 200px; background: #b9e2f7; top: 45%; left: 55%; animation-delay: -9s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30px, -25px) scale(1.12); }
}

.auth-visual-content { position: relative; z-index: 1; animation: fadeUp .6s ease both; }
.logo { display: flex; align-items: center; gap: 12px; margin-bottom: 54px; }
.logo span { font-size: 26px; font-weight: 800; letter-spacing: 3px; color: var(--text); }

.auth-visual h2 { font-size: 44px; line-height: 1.15; font-weight: 800; letter-spacing: -.5px; color: var(--text); }
.auth-visual h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--pink-deep), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline { color: #565b70; margin: 18px 0 34px; font-size: 15.5px; line-height: 1.65; max-width: 430px; }

.features { list-style: none; }
.features li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  color: #3d4258;
  font-size: 14.5px;
  font-weight: 500;
}
.features svg { flex-shrink: 0; color: var(--pink-deep); }

/* Mini-calendrier décoratif */
.mock-cal {
  display: grid;
  grid-template-columns: repeat(7, 26px);
  gap: 6px;
  margin-top: 38px;
}
.mock-cal i {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(60, 55, 90, .12);
  animation: fadeUp .5s ease both;
}
.mock-cal i.p  { background: #fff; box-shadow: 0 0 0 2px var(--pink), 0 0 0 6px var(--pink-soft); }
.mock-cal i.o  { background: var(--blue); }
.mock-cal i.f  { background: #fff; box-shadow: 0 0 0 2px var(--lightblue); }

.visual-footer { position: relative; z-index: 1; color: #8a8fa3; font-size: 12px; }

/* ---- Côté formulaire ---- */
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-box { width: 100%; max-width: 400px; animation: fadeUp .55s ease both; }

.auth-box-head { margin-bottom: 30px; }
.auth-box-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.4px; }
.auth-box-head p { color: var(--muted); margin-top: 7px; font-size: 14.5px; }

/* Champs à label flottant + icône */
.field { position: relative; margin-bottom: 18px; }
.field .f-icon {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  transition: color .2s;
}
.field input {
  width: 100%;
  padding: 24px 44px 8px 44px;
  height: 56px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  color-scheme: light;
}
.field label {
  position: absolute;
  left: 44px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14.5px;
  pointer-events: none;
  transition: all .18s ease;
}
.field input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 92, 138, .15); }
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label {
  top: 15px;
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--pink-deep);
}
.field input:focus ~ .f-icon { color: var(--pink-deep); }

.toggle-pass {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.toggle-pass:hover { color: var(--text); background: rgba(0, 0, 0, .05); }
.toggle-pass.active { color: var(--blue); }

.form-row { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 20px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--pink); cursor: pointer; }

/* Bouton avec spinner */
.submit-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; }
.spinner {
  display: none;
  width: 17px; height: 17px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.submit-btn.loading { pointer-events: none; opacity: .85; }
.submit-btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.switch { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.switch a { color: var(--pink-deep); text-decoration: none; font-weight: 600; }
.switch a:hover { text-decoration: underline; }

#auth-error {
  text-align: center;
  color: var(--pink-deep);
  font-size: 13px;
  min-height: 20px;
  margin-top: 12px;
}

.field-hint {
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.privacy-note svg { flex-shrink: 0; margin-top: 1px; color: var(--pink-deep); }

/* Boutons génériques */
.btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.primary {
  color: #fff;
  background: linear-gradient(90deg, var(--pink-deep), #f0477b);
  box-shadow: 0 8px 20px rgba(217, 43, 99, .3);
}
.btn.primary:hover { box-shadow: 0 10px 26px rgba(255, 92, 138, .5); transform: translateY(-1px); }
.btn.ghost {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
}
.btn.ghost:hover { color: var(--text); border-color: var(--pink); }
.btn.small { width: auto; padding: 7px 14px; font-size: 13px; }

/* ================= APP ================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-bottom: 2px dotted var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand-mini { display: flex; align-items: center; gap: 9px; font-size: 18px; }
.brand-mini svg { display: block; }

.tabs { display: flex; gap: 4px; background: #e9e6f0; padding: 4px; border-radius: 999px; }
.tab {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
}
.tab.active {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--pink-deep));
  box-shadow: 0 4px 12px rgba(36, 64, 201, .28);
}

.user-zone { display: flex; align-items: center; gap: 8px; }
.user-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: #eeece7;
  border: 1px solid transparent;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.user-badge:hover { background: #e3e0d9; border-color: var(--border); }
.user-badge::before { content: "● "; color: var(--text); font-size: 9px; vertical-align: 1px; }

main { max-width: 720px; margin: 0 auto; padding: 20px 18px 24px; }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  animation: fadeUp .45s ease both;
}

#panel-calendar { display: flex; flex-direction: column; gap: 14px; }

/* ================= CALENDRIER (cercles) ================= */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-bottom: 14px;
  border-bottom: 2px dotted var(--border);
}
.cal-head h2 { font-size: 20px; font-weight: 700; letter-spacing: 3px; }
.cal-head h2 span { color: var(--muted); font-weight: 400; }
.nav {
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  color: var(--pink);
  font-size: 26px;
  cursor: pointer;
  transition: transform .15s;
}
.nav:hover { transform: scale(1.25); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-weekdays { margin: 14px 0 8px; }
.cal-weekdays span { text-align: center; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text); font-weight: 600; }

.day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #dfe3ee;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(60, 55, 90, .07);
  transition: transform .15s, box-shadow .2s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.day:hover { transform: scale(1.1); z-index: 2; }
.day.dim { background: transparent; border-color: transparent; box-shadow: none; color: #c6cad6; cursor: default; pointer-events: none; }

/* Règles : anneau rose + halo */
.day.period {
  border-color: var(--pink);
  color: var(--pink-deep);
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--pink-soft), 0 2px 6px rgba(224, 53, 107, .18);
}
.day.period-pred { border: 2px dashed var(--pink); color: var(--pink); }

/* Ovulation : cercle plein bleu foncé */
.day.ovulation {
  background: linear-gradient(135deg, #3b5bff, var(--blue));
  border-color: var(--blue);
  color: #fff;
  font-weight: 700;
}
.day.ovulation-pred { border: 2px dashed var(--blue); color: var(--blue); }

/* Fenêtre fertile : anneau bleu clair */
.day.fertile { border-color: var(--lightblue); color: #3a86b8; }
.day.fertile-pred { border: 2px dashed var(--lightblue); color: var(--lightblue); }

/* Aujourd'hui : pastille pleine noire si aucun statut */
.day.today {
  background: #000;
  border-color: #000;
  color: #fff;
  font-weight: 700;
}
.day.today.period, .day.today.ovulation,
.day.today.period-pred, .day.today.ovulation-pred,
.day.today.fertile, .day.today.fertile-pred {
  outline: 2.5px solid #000;
  outline-offset: 2px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px dotted var(--border);
  font-size: 12px;
  color: var(--muted);
}
.legend span { display: flex; align-items: center; gap: 7px; }
.legend .sw { width: 13px; height: 13px; border-radius: 50%; display: inline-block; background: #fff; }
.legend .sw.period      { border: 2px solid var(--pink); }
.legend .sw.period-pred { border: 2px dashed var(--pink); }
.legend .sw.ovulation   { background: var(--blue); border: 2px solid var(--blue); }
.legend .sw.fertile     { border: 2px solid var(--lightblue); }

/* ================= TODAY STATUS ================= */
.status-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 22px;
  background: #000;
  border-color: #000;
}
.status-fert { display: flex; align-items: center; gap: 9px; }
#status-dot { width: 11px; height: 11px; border-radius: 50%; background: #c3c8d4; flex-shrink: 0; }
#status-label { color: #fff; font-size: 15px; font-weight: 600; }

/* ================= HISTORIQUE (chips) ================= */
.hist-panel h3 { font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hist-panel .hint { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }

#period-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
}
#period-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #fff0f4;
  border: 1px solid rgba(255, 92, 138, .3);
  font-size: 13px;
  animation: fadeUp .3s ease both;
}
#period-list li.none { background: #f6f5f2; border-color: var(--border); color: var(--muted); width: 100%; justify-content: center; }
#period-list .dur { color: var(--pink-deep); font-size: 12px; font-weight: 600; }
#period-list button {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 5px;
  border-radius: var(--radius-sm);
  transition: all .15s;
}
#period-list button:hover { color: #fff; background: var(--pink-deep); }

/* ================= STATISTIQUES ================= */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  animation: fadeUp .45s ease both;
}
.card-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); display: block; margin-bottom: 7px; }
.card strong { font-size: 22px; font-weight: 700; }
.card strong small { font-size: 14px; color: var(--muted); font-weight: 400; }
.card .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.card strong.good { color: #16a34a; }
.card strong.mid  { color: #d97706; }
.card strong.bad  { color: var(--pink-deep); }
.card.highlight.pink { border-color: rgba(255, 92, 138, .45); background: #fff0f4; }
.card.highlight.pink strong { color: var(--pink-deep); font-size: 17px; }
.card.highlight.blue { border-color: rgba(43, 75, 224, .35); background: #eef2ff; }
.card.highlight.blue strong { color: var(--blue); font-size: 17px; }

#panel-stats .panel { margin-bottom: 14px; }
#panel-stats h3 { font-size: 14px; margin-bottom: 12px; color: var(--muted); letter-spacing: .4px; }
#panel-stats canvas { width: 100%; display: block; }

.moon-cards { margin-bottom: 0; }
#moon-phase { display: flex; align-items: center; gap: 7px; }
#moon-phase svg { flex-shrink: 0; }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.chart-legend span { display: flex; align-items: center; gap: 8px; }
.chart-legend .lg-bar { width: 13px; height: 13px; border-radius: 2px; background: linear-gradient(135deg, #3b5bff, #1b2f9e); display: inline-block; }
.chart-legend .lg-line { width: 13px; height: 13px; border-radius: 2px; background: linear-gradient(135deg, var(--pink), var(--pink-deep)); display: inline-block; }
.chart-legend .lg-avg { width: 18px; height: 0; border-top: 2px dashed rgba(42, 45, 58, .45); display: inline-block; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h2 { color: var(--text); margin-bottom: 10px; }
.empty-state p { max-width: 420px; margin: 0 auto; line-height: 1.6; font-size: 14px; }

/* ================= PANNEAU D'ACTION (toucher un jour) ================= */
#sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(42, 45, 58, .45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn .2s ease both;
}
.sheet {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 28px;
  background: #fff;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
  animation: slideUp .28s ease both;
}
.sheet-date {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  text-transform: capitalize;
  margin-bottom: 2px;
}
.dur-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}
.dur-chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.dur-chip.selected {
  background: linear-gradient(90deg, var(--pink-deep), var(--pink));
  border-color: var(--pink);
  color: #fff;
}
@media (min-width: 640px) {
  #sheet-overlay { align-items: center; }
  .sheet { border-radius: 14px; }
}

/* ================= MON COMPTE (dialogue) ================= */
.dialog {
  width: calc(100% - 32px);
  max-width: 460px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(35, 38, 51, .25);
}
.dialog::backdrop { background: rgba(35, 38, 51, .45); backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dialog h2 { font-size: 22px; letter-spacing: -.3px; }
.dialog-sub { color: var(--muted); font-size: 13px; margin-top: 5px; }
.dialog-sub strong { color: var(--blue); }
.dialog-close {
  border: none;
  background: #f2f0f6;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}
.dialog-close:hover { background: #e7e4ee; color: var(--text); }
.dialog-section {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--muted);
  margin-bottom: 14px;
}
.dialog-actions { display: flex; gap: 10px; margin-top: 4px; }
.dialog-actions .btn { width: auto; flex: 1; }
#account-error {
  min-height: 20px;
  margin-top: 4px;
  color: var(--pink-deep);
  font-size: 13px;
  line-height: 1.45;
}
#account-error.ok { color: #15803d; }
.dialog .field { margin-bottom: 14px; }

/* ================= MOBILE ================= */
@media (max-width: 640px) {
  .topbar { padding: 10px 12px; gap: 8px; }
  .brand-mini { font-size: 16px; }
  .tabs { order: 3; width: 100%; }
  .tab { flex: 1; padding: 9px 10px; text-align: center; }
  .user-zone { margin-left: auto; gap: 6px; }
  .user-badge { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .btn.small { padding: 7px 10px; font-size: 12px; }

  main { padding: 14px 10px 24px; }
  .panel { padding: 16px; }
  #panel-calendar { gap: 12px; }

  .cal-head h2 { font-size: 17px; letter-spacing: 2px; }
  .nav { width: 36px; height: 36px; font-size: 24px; }
  .cal-grid { gap: 4px; }
  .day { font-size: 13px; }
  .legend { gap: 8px 12px; font-size: 11px; }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .card { padding: 12px; }
  .card strong { font-size: 19px; }
  .card.highlight.pink strong,
  .card.highlight.blue strong { font-size: 14px; }

  .auth-form-side { padding: 28px 18px; }
  .auth-box-head h1 { font-size: 27px; }
  .dialog { padding: 20px 18px; }
  .dialog-actions { flex-direction: column-reverse; }
}

/* ================= ANIMATIONS ================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}
.shake { animation: shake .4s ease; }

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

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .18); border-radius: 4px; }

/* ================= ABONNEMENT ================= */
.plan-note {
  margin: 4px 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(36, 64, 201, .14);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(36, 64, 201, .06), rgba(255, 92, 138, .07));
  color: #4d5268;
  font-size: 12.5px;
  line-height: 1.55;
}
.plan-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 15px;
  letter-spacing: .2px;
}
.plan-note p { margin: 0; }
.plan-note .plan-note-sub {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11.5px;
}

.billing-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 38px 18px;
  background:
    radial-gradient(700px 420px at 12% 0%, rgba(255, 92, 138, .16), transparent 65%),
    radial-gradient(700px 460px at 100% 100%, rgba(63, 159, 212, .16), transparent 62%),
    var(--bg);
}
.billing-wrap { width: 100%; max-width: 600px; }
.billing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2.5px;
}
.billing-card {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
  animation: fadeUp .5s ease both;
}
.billing-eyebrow {
  margin-bottom: 8px;
  color: var(--pink-deep);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.billing-card h1 {
  color: var(--text);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -1.4px;
}
.billing-price {
  background: linear-gradient(90deg, var(--pink-deep), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.billing-period { color: var(--muted); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.billing-lead {
  margin-top: 16px;
  color: #565b70;
  font-size: 14.5px;
  line-height: 1.65;
}
.billing-features {
  display: grid;
  gap: 9px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}
.billing-features li {
  position: relative;
  padding-left: 24px;
  color: #3d4258;
  font-size: 13.5px;
  line-height: 1.45;
}
.billing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--pink-deep);
  font-weight: 800;
}
.billing-status {
  min-height: 42px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #f7f5fb;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.billing-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.billing-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.billing-error {
  min-height: 20px;
  margin-top: 12px;
  color: var(--pink-deep);
  font-size: 12.5px;
  text-align: center;
  line-height: 1.45;
}
.billing-small {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
  text-align: center;
}
.billing-foot {
  margin-top: 18px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}
.password-card h1 {
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -.6px;
}
.password-sub {
  margin-top: 10px;
  color: #565b70;
  font-size: 14px;
  line-height: 1.55;
}
.password-user {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}
.password-user strong { color: var(--text); }
.password-card form { margin-top: 22px; }
.password-card .field { margin-bottom: 14px; }
.password-card .field-hint { margin: -2px 0 20px; }

@media (max-width: 520px) {
  .billing-card { padding: 26px 20px; border-radius: 22px; }
  .billing-card h1 { font-size: 38px; }
  .password-card h1 { font-size: 27px; }
}

/* ================= PUBLIC SITE / SEO ================= */
.site-page {
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(255, 92, 138, .12), transparent 60%),
    radial-gradient(900px 500px at 95% 5%, rgba(63, 159, 212, .12), transparent 55%),
    var(--bg);
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px; top: -80px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(231, 228, 238, .9);
  background: rgba(244, 242, 238, .86);
  backdrop-filter: blur(16px);
}
.site-header-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.03em;
}
.site-brand svg { display: block; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.site-nav a {
  color: #565b70;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}
.site-nav a:hover { color: var(--pink-deep); }
.site-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-actions .btn { width: auto; padding: 9px 15px; font-size: 13px; }
.site-actions .btn.primary { padding-inline: 17px; }

.lp-hero {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(217, 43, 99, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  color: var(--pink-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lp-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px var(--pink-soft);
}
.lp-title {
  max-width: 760px;
  font-size: clamp(40px, 6.6vw, 72px);
  line-height: .99;
  letter-spacing: -.055em;
  font-weight: 800;
}
.lp-title em {
  color: var(--pink-deep);
  font-style: normal;
}
.lp-lead {
  max-width: 620px;
  margin-top: 22px;
  color: #565b70;
  font-size: 18px;
  line-height: 1.65;
}
.lp-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.lp-cta .btn { width: auto; padding: 14px 22px; font-size: 14.5px; }
.lp-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: #565b70;
  font-size: 12px;
  font-weight: 600;
}
.lp-chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lightblue);
}
.lp-chip:nth-child(2)::before { background: var(--pink); }
.lp-chip:nth-child(3)::before { background: var(--blue); }

.lp-visual {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-visual::before,
.lp-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 0;
}
.lp-visual::before {
  width: 330px; height: 330px;
  left: 2%; top: 2%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 92, 138, .34), rgba(255, 92, 138, .03) 70%);
}
.lp-visual::after {
  width: 300px; height: 300px;
  right: 0; bottom: 0;
  background: radial-gradient(circle at 65% 65%, rgba(63, 159, 212, .34), rgba(63, 159, 212, .03) 70%);
}
.lp-calendar {
  position: relative;
  z-index: 2;
  width: min(390px, 100%);
  padding: 20px;
  border: 1px solid rgba(231, 228, 238, .95);
  border-radius: 26px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(38, 32, 60, .16);
  transform: rotate(-2.5deg);
}
.lp-cal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 15px;
}
.lp-cal-top strong {
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lp-cal-top span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.lp-cal-week,
.lp-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.lp-cal-week {
  margin-bottom: 7px;
  color: #9a9db0;
  font-size: 9.5px;
  font-weight: 800;
  text-align: center;
  letter-spacing: .08em;
}
.lp-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #565b70;
  font-size: 11.5px;
  font-weight: 700;
}
.lp-cal-day.muted { color: #c3c5d1; }
.lp-cal-day.period { background: var(--pink); color: #fff; }
.lp-cal-day.fertile { background: rgba(63, 159, 212, .5); color: #12354a; }
.lp-cal-day.ovulation { background: var(--blue); color: #fff; }
.lp-cal-day.today { outline: 2px solid var(--text); outline-offset: 1px; }
.lp-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.lp-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}
.lp-legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink);
}
.lp-legend-dot.fertile { background: var(--lightblue); }
.lp-legend-dot.ovulation { background: var(--blue); }
.lp-float-card {
  position: absolute;
  z-index: 3;
  right: 3%;
  bottom: 8%;
  width: 168px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.lp-float-card small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}
.lp-float-card strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 18px;
  letter-spacing: -.03em;
}
.lp-float-card span {
  display: block;
  margin-top: 3px;
  color: var(--pink-deep);
  font-size: 10.5px;
  font-weight: 700;
}

.lp-section {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 76px 24px;
}
.lp-section.tight { padding-top: 30px; }
.lp-kicker {
  margin-bottom: 10px;
  color: var(--pink-deep);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lp-h2 {
  max-width: 760px;
  font-size: clamp(30px, 4.3vw, 48px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.lp-sub {
  max-width: 650px;
  margin-top: 15px;
  color: #565b70;
  font-size: 16px;
  line-height: 1.65;
}
.lp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}
.lp-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-soft);
}
.lp-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--pink-soft);
  color: var(--pink-deep);
}
.lp-icon.blue { background: var(--blue-soft); color: var(--blue); }
.lp-icon.lightblue { background: var(--lightblue-soft); color: #24759c; }
.lp-icon.dark { background: #eceaf2; color: var(--text); }
.lp-card h3 {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.lp-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.58;
}

.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.lp-step {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
}
.lp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.lp-step h3 { margin-top: 16px; font-size: 16px; }
.lp-step p { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.lp-privacy {
  margin: 0 24px;
  padding: 56px;
  border-radius: 30px;
  background:
    radial-gradient(700px 360px at 12% 0%, rgba(255, 92, 138, .22), transparent 65%),
    radial-gradient(700px 360px at 100% 100%, rgba(63, 159, 212, .22), transparent 60%),
    #232633;
  color: #fff;
}
.lp-privacy-inner { width: min(1010px, 100%); margin: 0 auto; }
.lp-privacy .lp-kicker { color: #ffb2c7; }
.lp-privacy .lp-h2 { color: #fff; }
.lp-privacy .lp-sub { color: rgba(255, 255, 255, .72); }
.lp-privacy-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  margin-top: 30px;
  align-items: start;
}
.lp-privacy-points {
  display: grid;
  gap: 12px;
}
.lp-privacy-point {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
}
.lp-privacy-point svg { margin-top: 1px; color: #ffb2c7; }
.lp-privacy-point strong {
  display: block;
  font-size: 13.5px;
}
.lp-privacy-point span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .66);
  font-size: 12.5px;
  line-height: 1.5;
}
.lp-link-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
}
.lp-link-light:hover { border-color: #fff; }

.lp-pricing-card {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 36px;
  margin-top: 34px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}
.lp-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text);
  font-size: 62px;
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
}
.lp-price span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.lp-price-copy {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.lp-price-features {
  display: grid;
  gap: 10px;
  align-content: center;
}
.lp-price-features li {
  display: flex;
  gap: 9px;
  color: #4c5164;
  font-size: 13.5px;
  line-height: 1.45;
  list-style: none;
}
.lp-price-features li::before {
  content: "✓";
  color: var(--pink-deep);
  font-weight: 800;
}
.lp-price-cta { margin-top: 22px; }
.lp-price-cta .btn { width: auto; padding: 13px 20px; }

.lp-faq {
  max-width: 860px;
  margin: 34px auto 0;
}
.lp-faq-item {
  border-bottom: 1px solid var(--border);
}
.lp-faq-item summary {
  position: relative;
  padding: 20px 34px 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--pink-deep);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.lp-faq-item[open] summary::after { content: "−"; }
.lp-faq-a {
  padding: 0 40px 20px 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.lp-faq-a a { color: var(--pink-deep); }

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, .45);
}
.site-footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 44px 24px 30px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
}
.site-footer-brand p {
  max-width: 360px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}
.site-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 24px;
}
.site-footer-links a {
  color: #565b70;
  font-size: 12.5px;
  text-decoration: none;
}
.site-footer-links a:hover { color: var(--pink-deep); }
.site-footer-legal {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 24px 34px;
  color: #8d90a1;
  font-size: 11px;
  line-height: 1.6;
}
.site-footer-legal p + p { margin-top: 5px; }

/* Content pages */
.doc-main {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 52px 24px 78px;
}
.doc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
  color: #9295a5;
  font-size: 11.5px;
  font-weight: 600;
}
.doc-breadcrumb a { color: #6d7287; text-decoration: none; }
.doc-breadcrumb a:hover { color: var(--pink-deep); }
.doc-hero { padding-bottom: 28px; }
.doc-eyebrow {
  color: var(--pink-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.doc-title {
  margin-top: 12px;
  font-size: clamp(34px, 5.8vw, 58px);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.doc-lead {
  max-width: 720px;
  margin-top: 18px;
  color: #565b70;
  font-size: 18px;
  line-height: 1.65;
}
.doc-body {
  margin-top: 24px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.doc-body h2 {
  margin: 34px 0 10px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  line-height: 1.3;
}
.doc-body p,
.doc-body li {
  color: #4d5265;
  font-size: 14.5px;
  line-height: 1.75;
}
.doc-body p + p { margin-top: 12px; }
.doc-body ul,
.doc-body ol {
  margin: 12px 0 0 20px;
}
.doc-body li + li { margin-top: 6px; }
.doc-body a { color: var(--pink-deep); font-weight: 600; }
.doc-note {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--pink);
  border-radius: 0 12px 12px 0;
  background: var(--pink-soft);
}
.doc-note p { color: #6d3b4c; }
.doc-cta {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(255, 92, 138, .16), transparent 65%),
    radial-gradient(500px 220px at 100% 100%, rgba(63, 159, 212, .16), transparent 65%),
    #fff;
  box-shadow: var(--shadow-soft);
}
.doc-cta h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.doc-cta p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.doc-cta .lp-cta { margin-top: 18px; }
.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.doc-links a { color: #565b70; font-size: 12.5px; text-decoration: none; }
.doc-links a:hover { color: var(--pink-deep); }

/* Ovulation calculator */
.calc-card {
  margin-top: 26px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}
.calc-field label {
  display: block;
  margin-bottom: 7px;
  color: #565b70;
  font-size: 12.5px;
  font-weight: 700;
}
.calc-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fbfaf8;
  color: var(--text);
  font-size: 14px;
}
.calc-field input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 92, 138, .14);
}
.calc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.calc-actions .btn { width: auto; padding: 12px 20px; }
.calc-actions small { color: var(--muted); font-size: 11.5px; }
.calc-error {
  margin-top: 14px;
  color: #b21f4f;
  font-size: 12.5px;
  font-weight: 600;
}
.calc-result {
  display: none;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(36, 64, 201, .14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(36, 64, 201, .07), rgba(63, 159, 212, .08));
}
.calc-result.visible { display: block; }
.calc-result h2 {
  margin: 0 0 14px;
  font-size: 17px;
  letter-spacing: -.02em;
}
.calc-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.calc-result-item {
  padding: 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
}
.calc-result-label {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.calc-result-value {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.calc-disclaimer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .lp-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 54px; }
  .lp-visual { min-height: 420px; }
  .lp-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-privacy { padding: 40px 28px; }
  .lp-privacy-grid { grid-template-columns: 1fr; }
  .lp-pricing-card { grid-template-columns: 1fr; gap: 24px; }
  .site-nav { display: none; }
  .site-footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header-inner { padding: 12px 16px; gap: 12px; }
  .site-actions .btn.ghost { display: none; }
  .lp-hero { padding: 42px 16px 30px; }
  .lp-title { font-size: clamp(38px, 12vw, 54px); }
  .lp-lead { font-size: 16px; }
  .lp-cta .btn { width: 100%; }
  .lp-visual { min-height: 390px; }
  .lp-calendar { width: min(340px, 100%); padding: 16px; transform: rotate(-1deg); }
  .lp-float-card { right: 0; bottom: 0; width: 150px; }
  .lp-section { padding: 52px 16px; }
  .lp-grid { grid-template-columns: 1fr; }
  .lp-privacy { margin: 0 12px; padding: 32px 20px; border-radius: 24px; }
  .lp-pricing-card { padding: 24px 20px; }
  .lp-price { font-size: 50px; }
  .lp-faq-item summary { font-size: 14px; }
  .site-footer-links { grid-template-columns: 1fr 1fr; }
  .doc-main { padding: 34px 16px 56px; }
  .doc-body { padding: 22px 18px; border-radius: 20px; }
  .calc-card { padding: 20px 16px; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result-grid { grid-template-columns: 1fr; }
}

/* Inline text links on existing auth/billing screens */
.visual-footer a,
.billing-foot a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(109, 114, 135, .35);
}
.visual-footer a:hover,
.billing-foot a:hover { color: var(--pink-deep); border-color: var(--pink); }
.privacy-note a,
.lp-note a {
  color: var(--pink-deep);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 43, 99, .3);
}
.privacy-note a:hover,
.lp-note a:hover { border-color: var(--pink-deep); }

/* Public site overrides the app's constrained <main> */
.site-page > main {
  max-width: none;
  margin: 0;
  padding: 0;
}
.site-page > main.doc-main {
  width: min(880px, 100%);
  max-width: 880px;
  margin: 0 auto;
  padding: 52px 24px 78px;
}
@media (max-width: 640px) {
  .site-page > main.doc-main { padding: 34px 16px 56px; }
}
