:root {
  --bg: #F7F5FF;
  --bg-elevated: #EFEAFE;
  --bg-card: #FFFFFF;
  --border: #E2DAFB;
  --text: #1E1B3A;
  --text-dim: #5F5A7A;
  --accent: #8B5CF6;
  --accent-dim: #6D28D9;
  --accent-btn: #7C3AED;
  --accent-btn-hover: #6D28D9;
  --accent-contrast: #FFFFFF;
  --badge-text: #6D28D9;
  --danger: #C53030;
  --warn: #B7791F;
  --radius: 14px;
  --shadow: 0 8px 20px rgba(30, 27, 58, 0.10);
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dim); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent-dim);
  outline-offset: 2px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 100px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar .brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.navbar nav a {
  color: var(--text-dim);
  margin-left: 16px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.navbar nav a.crisis-link { color: var(--danger); font-weight: 600; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(30, 27, 58, 0.14);
  border-color: var(--accent);
}

h1, h2 { font-family: ui-serif, "New York", Georgia, "Times New Roman", serif; letter-spacing: -0.01em; }
h1 { font-size: 1.85rem; margin: 0 0 8px; }
h2 { font-size: 1.35rem; margin: 0 0 12px; }
p.subtitle { color: var(--text-dim); margin-top: 0; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent-btn); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-btn-hover); text-decoration: none; }
.btn-secondary { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #E4DDFB; text-decoration: none; }
.btn-danger { background: var(--danger); color: #FAF8FF; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 0.85rem; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

label { display: block; font-size: 0.85rem; color: var(--text-dim); margin: 12px 0 6px; }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
textarea { resize: vertical; min-height: 80px; }

.error-msg { color: var(--danger); font-size: 0.9rem; margin-top: 10px; min-height: 1.2em; }
.success-msg { color: var(--accent-dim); font-size: 0.9rem; margin-top: 10px; }

.banner {
  background: var(--bg-elevated);
  border: 1px solid var(--warn);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text);
}
.banner.danger { border-color: var(--danger); }

.streak-display {
  text-align: center;
  padding: 30px 10px;
}
.streak-number {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent-dim);
  line-height: 1;
}
.streak-unit { color: var(--text-dim); font-size: 0.95rem; margin-top: 6px; }

.stats-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.stat-box {
  flex: 1;
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.stat-box .stat-value { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.stat-box .stat-label { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; }
.stat-box .stat-desc { font-size: 0.72rem; color: var(--text-dim); margin-top: 4px; line-height: 1.4; }

.habit-list { display: flex; flex-direction: column; gap: 12px; }
.habit-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.habit-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.habit-card .habit-name { font-weight: 700; font-size: 1.05rem; }
.habit-card .habit-streak { color: var(--accent-dim); font-size: 0.9rem; margin-top: 4px; }

.checkin-buttons { display: flex; gap: 12px; margin-top: 16px; }
.checkin-buttons .btn { flex: 1; }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge {
  background: #F3EFFF;
  border: 1px solid var(--accent);
  color: var(--badge-text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge.locked { border-color: var(--border); color: var(--text-dim); opacity: 0.6; background: transparent; }

.post {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.post:last-child { border-bottom: none; }
.post .post-author { font-weight: 600; font-size: 0.9rem; }
.post .post-time { color: var(--text-dim); font-size: 0.75rem; margin-left: 8px; }
.post .post-body { margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
.post .post-actions { margin-top: 6px; }
.post .post-actions button {
  background: none; border: none; color: var(--text-dim); font-size: 0.75rem; cursor: pointer; padding: 0;
}
.post .post-actions button:hover { color: var(--danger); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.category-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}
.category-chip.selected { border-color: var(--accent); color: var(--accent-dim); background: #F3EFFF; }

.breathing-screen {
  position: fixed;
  inset: 0;
  background: #1A1230;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  text-align: center;
  padding: 20px;
  color: #EEE9FB;
}
.breathing-screen p { color: #C9BEEB; }
.breathing-screen .crisis-link { color: #C4B5FD !important; }
.breathing-circle-wrap {
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
  flex-shrink: 0;
}
.breathing-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, #8B5CF6, transparent 70%);
  border: 2px solid #A78BFA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #EDE9FE;
  transition: transform 4s ease-in-out;
}
.breathing-circle.inhale { transform: scale(1.4); }
.breathing-circle.hold { transform: scale(1.4); }
.breathing-circle.exhale { transform: scale(1); }
.breathing-screen .card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }
.breathing-screen .subtitle { color: #C9BEEB; }
.breathing-screen .stat-box { background: rgba(255,255,255,0.08); }
.breathing-screen .stat-box .stat-value { color: #EDE9FE; }
.breathing-screen .stat-box .stat-label { color: #C9BEEB; }
.breathing-screen .btn-secondary { background: rgba(255,255,255,0.1); color: #EEE9FB; border-color: rgba(255,255,255,0.2); }

.crisis-box {
  background: #FCEBEB;
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 16px;
}

.footer-links {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 40px;
}
.footer-links a { margin: 0 8px; color: var(--text-dim); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
.trust-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
}

.steps-row {
  display: flex;
  gap: 20px;
  margin-top: 18px;
}
.step { flex: 1; text-align: center; }
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-btn);
  color: var(--accent-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 10px;
  font-size: 0.95rem;
}
.step h3 { font-size: 1rem; margin: 0 0 4px; }
.step p { color: var(--text-dim); font-size: 0.88rem; margin: 0; }

.faq-item { border-left: 3px solid var(--accent); padding-left: 16px; margin-bottom: 18px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-item h3 { margin: 0 0 6px; font-size: 1rem; }
.faq-item p { margin: 0; color: var(--text-dim); }

.site-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.site-footer .footer-links { margin-top: 0; }
.site-footer .footer-fine-print {
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 14px;
  line-height: 1.6;
}

.plan-options { display: flex; gap: 12px; }
.plan-card {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  cursor: pointer;
}
.plan-card.selected { border-color: var(--accent); background: #F3EFFF; }
.plan-card .price { font-size: 1.5rem; font-weight: 800; margin: 6px 0; }

.hidden { display: none !important; }

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(30, 27, 58, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-bar-wrap {
  background: var(--bg-elevated);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  margin-top: 10px;
}
.progress-bar-fill {
  background: var(--accent);
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.guide-card {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 20px;
}
.guide-card:last-child { margin-bottom: 0; }
.guide-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.guide-card p { margin: 0; color: var(--text-dim); }

@media print {
  .navbar, .btn, .no-print { display: none !important; }
  body { background: #fff; color: #222; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

@media (max-width: 480px) {
  .streak-number { font-size: 2.4rem; }
  .stats-row { flex-direction: column; }
  .navbar { flex-wrap: wrap; gap: 6px 0; padding: 12px 16px; }
  .navbar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; }
  .navbar nav a { margin-left: 0; font-size: 0.82rem; }
  .steps-row { flex-direction: column; gap: 22px; }
  .plan-options { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ===================================================================
   Landing page (body.lp). Scoped with lp- prefixes so app pages are untouched.
   =================================================================== */
body.lp { background: var(--bg); }
.lp-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.lp-narrow { max-width: 720px; }
.lp-center { text-align: center; }
.lp-muted { color: var(--text-dim); }
.lp-h1, .lp-h2 { font-family: ui-serif, "New York", Georgia, "Times New Roman", serif; letter-spacing: -0.02em; color: var(--text); }
.lp-h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.04; margin: 10px 0 18px; font-weight: 700; }
.lp-h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.15; margin: 0 0 14px; font-weight: 700; }
.lp-eyebrow { color: var(--badge-text); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; margin: 0; }
.lp-lede { font-size: 1.15rem; color: var(--text-dim); max-width: 34em; margin: 0 0 26px; }
.lp-lede-sm { font-size: 1.05rem; color: var(--text-dim); margin: 0 0 22px; }

/* Nav */
.lp-nav { position: sticky; top: 0; z-index: 20; background: rgba(247, 245, 255, 0.85); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.lp-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.lp-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.1rem; color: var(--text); }
.lp-brand svg { color: var(--accent); }
.lp-brand:hover { text-decoration: none; }
.lp-links { display: flex; align-items: center; gap: 20px; font-size: 0.92rem; }
.lp-links a { color: var(--text-dim); white-space: nowrap; }
.lp-links a.crisis-link { color: var(--danger); font-weight: 600; }

/* Buttons */
.lp-btn { display: inline-block; background: var(--accent-btn); color: var(--accent-contrast) !important; font-weight: 700; font-size: 1.05rem; padding: 15px 28px; border-radius: 999px; box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.lp-btn:hover { background: var(--accent-btn-hover); text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(124, 58, 237, 0.32); }
.lp-btn-sm { padding: 9px 16px; font-size: 0.9rem; box-shadow: none; }
.lp-btn-light { background: var(--accent-contrast); color: var(--accent-btn) !important; box-shadow: none; }
.lp-btn-light:hover { background: #fff; }
.lp-link { font-weight: 600; color: var(--accent-dim); }
.lp-cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.lp-trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-dim); font-size: 0.9rem; }
.lp-trust li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 6px; }

/* Hero */
.lp-hero { padding: 64px 0 72px; background: radial-gradient(1000px 500px at 85% 20%, #DDD6FE 0%, rgba(221, 214, 254,0) 60%); }
.lp-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }

/* Phone mockup */
.lp-phone { justify-self: center; width: 290px; padding: 12px; border-radius: 44px; background: #1C1433; box-shadow: 0 30px 60px rgba(30, 27, 58, 0.28), inset 0 0 0 2px #2E2750; transform: rotate(2deg); }
.lp-phone-screen { background: var(--bg); border-radius: 34px; padding: 22px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.lp-mini-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.9rem; }
.lp-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--border); }
.lp-ring { position: relative; width: 168px; height: 168px; margin: 4px auto 0; }
.lp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lp-ring-bg { fill: none; stroke: var(--bg-elevated); stroke-width: 10; }
.lp-ring-fg { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 82; }
.lp-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lp-ring-text b { font-size: 2.6rem; line-height: 1; font-family: ui-serif, Georgia, serif; }
.lp-ring-text span { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; }
.lp-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-mini-stats div { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.lp-mini-stats b { display: block; font-size: 1.05rem; }
.lp-mini-stats span { font-size: 0.72rem; color: var(--text-dim); }
.lp-mini-task { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: 0.8rem; line-height: 1.4; }
.lp-mini-label { display: block; font-size: 0.68rem; font-weight: 700; color: var(--badge-text); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.lp-mini-panic { background: var(--accent-btn); color: var(--accent-contrast); text-align: center; font-weight: 700; font-size: 0.85rem; border-radius: 999px; padding: 10px; }

/* Sections */
.lp-section { padding: 76px 0; }
.lp-tint { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.lp-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-steps li { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 26px 24px; }
.lp-step-n { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: #EDE9FE; color: var(--accent-btn); font-weight: 800; }
.lp-steps h3, .lp-feature h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.lp-steps p, .lp-feature p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.lp-feature { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; transition: transform .15s ease, box-shadow .15s ease; }
.lp-feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.lp-feature svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: #EDE9FE; fill: none; stroke: var(--accent-btn); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.lp-privacy { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.lp-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.lp-checks li { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px 16px 50px; position: relative; color: var(--text-dim); }
.lp-checks li b { color: var(--text); }
.lp-checks li::before { content: "✓"; position: absolute; left: 16px; top: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-btn); color: #fff; font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }

.lp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 18px; margin-top: 30px; }
.lp-plan { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 26px; text-align: center; }
.lp-plan h3 { margin: 0 0 6px; font-size: 1rem; color: var(--text-dim); }
.lp-plan p { margin: 6px 0 0; font-size: 0.9rem; }
.lp-plan-best { border: 2px solid var(--accent-btn); box-shadow: var(--shadow); }
.lp-price { font-family: ui-serif, Georgia, serif; font-size: 2.6rem; font-weight: 700; }
.lp-price span { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.95rem; font-weight: 500; color: var(--text-dim); }
.lp-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent-btn); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }

.lp-faq { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; margin-top: 12px; padding: 0 20px; }
.lp-faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--accent-btn); font-size: 1.3rem; line-height: 1; transition: transform .2s ease; }
.lp-faq[open] summary::after { transform: rotate(45deg); }
.lp-faq p { margin: 0 0 18px; color: var(--text-dim); }

.lp-final { background: linear-gradient(135deg, #7C3AED, #4C1D95); color: var(--accent-contrast); padding: 72px 0; }
.lp-final .lp-h2 { color: #fff; }
.lp-final .lp-lede-sm { color: #DDD6FE; }

.lp-footer { padding: 36px 0 48px; color: var(--text-dim); font-size: 0.85rem; }
.lp-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.lp-footer-links a { color: var(--text-dim); }
.lp-footer p { margin: 0; max-width: 46em; }

@media (max-width: 860px) {
  .lp-hero { padding: 40px 0 56px; }
  .lp-hero-grid, .lp-privacy { grid-template-columns: 1fr; gap: 40px; }
  .lp-steps, .lp-features { grid-template-columns: 1fr 1fr; }
  .lp-hide-sm { display: none; }
}
@media (max-width: 560px) {
  .lp-steps, .lp-features, .lp-plans { grid-template-columns: 1fr; }
  .lp-section { padding: 56px 0; }
  .lp-links { gap: 14px; }
  .lp-hide-xs { display: none; }
  .lp-cta-row .lp-btn { width: 100%; text-align: center; }
  .lp-phone { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-btn, .lp-feature { transition: none; }
}

/* ===== App-wide polish: matches the landing page ===== */
.navbar { background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.navbar .brand { font-weight: 800; }
.btn { border-radius: 999px; font-weight: 700; }
.btn-primary { box-shadow: 0 4px 14px rgba(124, 58, 237, 0.22); }
.card { border-radius: 18px; }
input, textarea, select { border-radius: 12px; }

/* Phones: brand on top, menu as one swipeable row instead of wrapping into a pile. */
@media (max-width: 640px) {
  .navbar { flex-wrap: wrap; row-gap: 6px; padding: 10px 16px 8px; }
  .navbar nav { display: flex; flex-wrap: nowrap; justify-content: flex-start; width: 100%; overflow-x: auto; gap: 18px; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .navbar nav::-webkit-scrollbar { display: none; }
  .navbar nav a { margin-left: 0; }
}

/* Panic screen: craving check-in */
.urge-card { margin-top: 24px; max-width: 420px; width: 100%; text-align: center; }
.urge-card h2 { color: #EDE9FE; }
.urge-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.urge-buttons .btn { flex: 1 1 110px; }
.urge-big { font-family: ui-serif, Georgia, serif; font-size: 3.4rem; font-weight: 700; color: #C4B5FD; line-height: 1; }
.breathing-screen label { color: #C9BEEB; text-align: left; }
.breathing-screen textarea { background: rgba(255,255,255,0.08); color: #EDE9FE; border-color: rgba(255,255,255,0.2); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { background: rgba(255,255,255,0.08); color: #EEE9FB; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; padding: 7px 14px; font-size: 0.9rem; cursor: pointer; }
.chip.selected { background: #C4B5FD; color: #1C1433; border-color: #C4B5FD; font-weight: 700; }

/* Dashboard: cravings beaten */
.craving-stat { display: flex; align-items: center; gap: 16px; }
.urge-num { font-family: ui-serif, Georgia, serif; font-size: 3rem; font-weight: 700; color: var(--accent-btn); line-height: 1; min-width: 56px; text-align: center; }
.risk-box { margin-top: 14px; background: #F3EFFF; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 0.92rem; color: var(--text); }

/* Blocker guide */
.guide-rule { background: #F3EFFF; border: 1px solid var(--border); border-left: 4px solid var(--accent-btn); border-radius: 14px; padding: 16px 18px; margin: 8px 0 18px; }
.guide-progress { font-weight: 700; color: var(--accent-dim); margin: 0 0 10px; }
.guide { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; margin-bottom: 14px; transition: border-color .15s ease; }
.guide.is-done { border-color: var(--accent); }
.guide-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.guide-head h2 { margin: 0; font-size: 1.3rem; }
.guide-done { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--text-dim); white-space: nowrap; cursor: pointer; margin: 0; }
.guide-done input { width: 18px; height: 18px; accent-color: var(--accent-btn); margin: 0; }
.guide ol, .guide ul { margin: 12px 0 0; padding-left: 22px; }
.guide li { margin: 8px 0; }
.guide-code { font-family: ui-monospace, Menlo, monospace; font-size: 0.88rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
.guide-tip { margin: 12px 0 0; font-size: 0.9rem; color: var(--text-dim); }
.guide-cta { margin-top: 32px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 20px; padding: 28px 24px; text-align: center; }

@media (max-width: 420px) { .lp-brand-text { display: none; } }

/* ===================================================================
   90-day program (map, daily lesson, share & earn, pricing)
   =================================================================== */
.pg-serif { font-family: ui-serif, "New York", Georgia, "Times New Roman", serif; letter-spacing: -0.02em; }
.pg-wrap { max-width: 860px; margin: 0 auto; padding: 28px 20px 100px; }

.pg-hero { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.pg-ring { position: relative; width: 132px; height: 132px; }
.pg-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pg-ring circle { fill: none; stroke-width: 11; }
.pg-ring .bg { stroke: var(--bg-elevated); }
.pg-ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.pg-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pg-ring-text b { font-family: ui-serif, Georgia, serif; font-size: 2.1rem; line-height: 1; }
.pg-ring-text span { font-size: 0.75rem; color: var(--text-dim); margin-top: 3px; }
.pg-hero h1 { margin: 2px 0 6px; font-size: clamp(1.5rem, 3.4vw, 2rem); }
.pg-hero p { margin: 0 0 14px; color: var(--text-dim); }
.pg-eyebrow { color: var(--badge-text); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0; }

.pg-phase { margin-top: 30px; }
.pg-phase-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pg-phase-num { font-weight: 800; color: var(--accent-btn); font-size: 0.85rem; letter-spacing: .05em; text-transform: uppercase; }
.pg-phase h2 { margin: 0; font-size: 1.3rem; }
.pg-phase-sum { color: var(--text-dim); margin: 6px 0 14px; font-size: 0.95rem; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.pg-tile { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 86px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font-size: 0.8rem; line-height: 1.3; transition: transform .12s ease, box-shadow .12s ease; }
.pg-tile b { font-size: 0.72rem; color: var(--text-dim); font-weight: 700; letter-spacing: .03em; }
a.pg-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.pg-tile.done { background: #EDE9FE; border-color: #C4B5FD; }
.pg-tile.done b::after { content: " ✓"; color: var(--accent-btn); }
.pg-tile.next { border: 2px solid var(--accent-btn); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12); }
.pg-tile.next b { color: var(--accent-btn); }
.pg-tile.locked { opacity: 0.78; background: var(--bg); }
.pg-tile.locked b::after { content: " 🔒"; }

.pg-unlock { margin-top: 26px; background: #1C1433; color: #F7F5FF; border-radius: 22px; padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.pg-unlock h2 { margin: 0 0 6px; color: #FFFFFF; }
.pg-unlock p { margin: 0; color: #E2DAFB; }
.pg-unlock .lp-btn { white-space: nowrap; }

/* Daily lesson */
.ls-wrap { max-width: 680px; margin: 0 auto; padding: 28px 20px 110px; }
.ls-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 0.9rem; }
.ls-bar { height: 6px; border-radius: 99px; background: var(--bg-elevated); overflow: hidden; margin-bottom: 26px; }
.ls-bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.ls-title { font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.08; margin: 6px 0 18px; }
.ls-body p { font-size: 1.12rem; line-height: 1.7; margin: 0 0 16px; }
.ls-box { border-radius: 18px; padding: 20px 22px; margin-top: 22px; }
.ls-box h3 { margin: 0 0 8px; font-size: 0.8rem; letter-spacing: .07em; text-transform: uppercase; }
.ls-box p { margin: 0; font-size: 1.05rem; }
.ls-action { background: #EDE9FE; border: 1px solid #C4B5FD; }
.ls-action h3 { color: var(--accent-btn); }
.ls-check { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-weight: 600; cursor: pointer; }
.ls-check input { width: 20px; height: 20px; accent-color: var(--accent-btn); }
.ls-reflect { background: var(--bg-card); border: 1px solid var(--border); }
.ls-reflect h3 { color: var(--text-dim); }
.ls-reflect textarea { width: 100%; min-height: 120px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); font: inherit; resize: vertical; color: var(--text); }
.ls-private { font-size: 0.8rem; color: var(--text-dim); margin-top: 6px; }
.ls-done { text-align: center; padding: 30px 20px; }
.ls-done .big { font-size: 3rem; }

/* Share & earn */
.earn-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.earn-stats div { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px; text-align: center; }
.earn-stats b { display: block; font-family: ui-serif, Georgia, serif; font-size: 1.5rem; }
.earn-stats span { font-size: 0.75rem; color: var(--text-dim); }
.earn-link { display: flex; gap: 8px; }
.earn-link input { flex: 1; min-width: 0; }
.earn-big { font-family: ui-serif, Georgia, serif; font-size: clamp(2.2rem, 7vw, 3.2rem); color: var(--accent-btn); line-height: 1; margin: 6px 0; }

/* One-time pricing card */
.price-card { text-align: center; }
.price-card .amount { font-family: ui-serif, Georgia, serif; font-size: 3.4rem; font-weight: 700; line-height: 1; margin: 8px 0 4px; }
.price-card .amount small { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; font-weight: 500; color: var(--text-dim); }
.price-list { list-style: none; padding: 0; margin: 18px 0; text-align: left; display: grid; gap: 10px; }
.price-list li { padding-left: 30px; position: relative; }
.price-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-btn); color: #fff; font-size: 0.7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Homepage: program roadmap */
.lp-road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; counter-reset: road; }
.lp-road-step { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 22px; position: relative; }
.lp-road-days { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-btn); background: #EDE9FE; padding: 4px 10px; border-radius: 999px; }
.lp-road-step h3 { margin: 12px 0 6px; font-size: 1.08rem; }
.lp-road-step p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }
.lp-road-step ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-dim); font-size: 0.85rem; }
.lp-sample { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.lp-lesson { background: var(--bg-card); border: 1px solid var(--border); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); transform: rotate(-1deg); }
.lp-lesson .lp-eyebrow { font-size: 0.72rem; }
.lp-lesson h3 { font-family: ui-serif, Georgia, serif; font-size: 1.6rem; margin: 6px 0 10px; }
.lp-lesson p { color: var(--text-dim); margin: 0 0 10px; font-size: 0.95rem; }
.lp-lesson .ls-box { margin-top: 12px; padding: 14px 16px; }
.lp-lesson .ls-box p { font-size: 0.9rem; color: var(--text); margin: 0; }
.lp-earn { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 34px; }
.lp-earn-amt { font-family: ui-serif, Georgia, serif; font-size: clamp(3rem, 9vw, 4.6rem); font-weight: 700; color: var(--accent-btn); line-height: 1; text-align: center; }
.lp-earn-amt span { display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--text-dim); margin-top: 6px; }
.lp-one-price { max-width: 460px; margin: 30px auto 0; background: var(--bg-card); border: 2px solid var(--accent-btn); border-radius: 24px; padding: 30px; text-align: center; box-shadow: var(--shadow); }
.lp-one-price .lp-price { font-size: 3.4rem; }

@media (max-width: 860px) {
  .lp-road { grid-template-columns: 1fr 1fr; }
  .lp-sample { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .pg-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pg-unlock { grid-template-columns: 1fr; text-align: center; }
  .earn-stats { grid-template-columns: 1fr 1fr; }
  .lp-road { grid-template-columns: 1fr; }
  .lp-earn { grid-template-columns: 1fr; text-align: center; padding: 26px; }
  .pg-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

/* Polish pass */
.lp-lesson .ls-box h3 { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 4px; }
.lp-one-price { position: relative; }
.lp-facts { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-card); }
.lp-facts-row { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.lp-facts-row div { padding: 22px 10px; }
.lp-facts-row div + div { border-left: 1px solid var(--border); }
.lp-facts-row b { display: block; font-family: ui-serif, Georgia, serif; font-size: clamp(1.5rem, 3.5vw, 2.1rem); color: var(--accent-btn); line-height: 1.1; }
.lp-facts-row span { font-size: 0.85rem; color: var(--text-dim); }
.lp-road-step { transition: transform .15s ease, box-shadow .15s ease; }
.lp-road-step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lp-road-step:nth-child(4) { background: linear-gradient(160deg, #F9F7FF 0%, #EDE9FE 100%); border-color: #C4B5FD; }
@media (max-width: 600px) {
  .lp-facts-row { grid-template-columns: 1fr 1fr; }
  .lp-facts-row div:nth-child(3) { border-left: none; }
  .lp-facts-row div:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* Talking-to-women guide */
.ttw-toc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; margin: 22px 0 10px; font-size: 0.92rem; }
.ttw-sec { position: relative; margin-top: 38px; padding-top: 6px; scroll-margin-top: 80px; }
.ttw-num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: #EDE9FE; color: var(--accent-btn); font-weight: 800; }
.ttw-sec h2 { font-size: 1.6rem; margin: 10px 0 12px; }
.ttw-sec p { font-size: 1.05rem; line-height: 1.7; margin: 0 0 14px; }
.ttw-list { margin: 6px 0 14px; padding-left: 20px; line-height: 1.65; }
.ttw-list li { margin-bottom: 6px; }
.ttw-no li::marker { content: "✕  "; color: var(--danger); font-weight: 800; }
.ttw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.ttw-two .ls-box { margin-top: 0; }
.ttw-ladder { counter-reset: none; padding-left: 20px; line-height: 1.7; }
.ttw-ladder li { margin-bottom: 8px; }
.ls-box .ttw-list { margin-bottom: 0; }
@media (max-width: 600px) { .ttw-toc, .ttw-two { grid-template-columns: 1fr; } }

/* ---- Quick exit (every member page + panic screen) ---- */
.quick-exit-btn {
  position: fixed;
  right: 12px;
  top: calc(12px + env(safe-area-inset-top, 0px));
  z-index: 1000;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(30, 27, 58, 0.85);
  color: #FFFFFF;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.quick-exit-btn.in-navbar { position: static; margin-left: 14px; flex-shrink: 0; border-color: transparent; background: #1E1B3A; }
.quick-exit-btn:hover, .quick-exit-btn:focus-visible { background: #1E1B3A; outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) {
  .quick-exit-btn.in-navbar { order: 1; margin-left: auto; }
  .navbar nav { order: 2; }
}
@media print { .quick-exit-btn { display: none; } }

/* ---- My reasons ---- */
.reasons-list { list-style: none; padding: 0; margin: 0; }
.reasons-list li { padding: 6px 0; font-weight: 600; }
.reasons-list li + li { border-top: 1px solid rgba(201, 190, 235, 0.25); }
.reason-inputs input { margin-bottom: 8px; }

/* ---- Program milestones ---- */
.ms-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ms-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--accent); background: #F3EFFF; color: var(--badge-text); font-weight: 700; font-size: 0.88rem; }
.ms-badge.locked { border-color: var(--border); background: transparent; color: var(--text-dim); font-weight: 600; opacity: 0.75; }
.ms-celebrate { border: 2px solid var(--accent); animation: ms-glow 2.4s ease-in-out 2; }
@keyframes ms-glow { 0%, 100% { box-shadow: var(--shadow); } 50% { box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.18); } }
@media (prefers-reduced-motion: reduce) { .ms-celebrate { animation: none; } }

/* Panic screen: let it scroll on short phones (it used to cut off the top line and
   the "take me back" button), while staying centred when everything fits. */
.breathing-screen { justify-content: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-top: 56px; }
.breathing-screen > :first-child { margin-top: auto; }
.breathing-screen > :last-child { margin-bottom: auto; }
