:root {
  --bg: #f8f6f6;
  --bg2: #f0ecec;
  --card: #ffffff;
  --text: #181113;
  --muted: #89616b;
  --primary: #ee2b5b;
  --primary-soft: rgba(238, 43, 91, 0.10);
  --primary-glow: rgba(238, 43, 91, 0.25);
  --accent-orange: #ee7c2b;
  --accent-purple: #994ce6;
  --border: #ede8e9;
  --shadow: 0 2px 24px rgba(24,17,19,0.07);
  --shadow-lg: 0 8px 48px rgba(24,17,19,0.11);
  --success: #22c55e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #221015;
    --bg2: #1a0c10;
    --card: #2d161c;
    --text: #ffffff;
    --muted: #d1b0b8;
    --border: #3d2028;
    --shadow: 0 2px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.4);
  }
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
}

a { color: var(--primary); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

/* ── Background blobs (matches marketing site) ───────────────────── */
.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
  animation: drift 14s ease-in-out infinite;
  will-change: transform;
}
@media (prefers-color-scheme: dark) { .blob { opacity: 0.20; } }
.blob-1 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  top: -120px; left: -100px;
}
.blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--accent-orange), transparent 70%);
  top: 40%; right: -120px;
  animation-delay: -5s;
}
.blob-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
  bottom: -80px; left: 30%;
  animation-delay: -9s;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(24px, -18px) scale(1.05); }
  66%       { transform: translate(-18px, 24px) scale(0.96); }
}

/* ── Top nav ─────────────────────────────────────────────────────── */
nav.brand-nav {
  position: relative;
  z-index: 10;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 800; color: var(--primary);
  letter-spacing: -0.3px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-heart {
  width: 28px; height: 28px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
  flex-shrink: 0;
}
.nav-link {
  color: var(--muted);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
}
.nav-link:hover { color: var(--primary); }

/* ── Layout ──────────────────────────────────────────────────────── */
.shell {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px 64px;
}

.welcome {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

/* Pink heart badge (replaces the orange glass thing) */
.logo-mark {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  background: var(--primary);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 36px;
  box-shadow: 0 12px 32px var(--primary-glow);
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-glow);
  color: var(--primary);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(36px, 7vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 12px;
}
h1 span { color: var(--primary); }

.subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 380px;
  margin-left: auto; margin-right: auto;
  line-height: 1.55;
}

/* ── Card (used on redeem / account / forgot-password) ───────────── */
.card {
  background: var(--card);
  border-radius: 24px;
  padding: 32px 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.card.wide { max-width: 720px; }
.card h1 { font-size: 28px; letter-spacing: -0.5px; text-align: center; }
.card .subtitle { font-size: 15px; margin-bottom: 24px; }

/* ── Forms ───────────────────────────────────────────────────────── */
label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 6px; color: var(--text);
  text-align: left;
}
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.field { margin-bottom: 14px; text-align: left; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  font-family: inherit;
  font-size: 16px; font-weight: 700;
  padding: 16px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s, opacity .15s, background .15s;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px var(--primary-glow);
}
.btn:hover { box-shadow: 0 10px 28px var(--primary-glow); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }

.btn-apple {
  background: #181113; color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.btn-apple:hover { background: #2a1d22; box-shadow: 0 6px 18px rgba(0,0,0,0.18); }

.btn-google {
  background: #fff;
  color: #181113;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.btn-google:hover { background: #fafafa; border-color: #d8d4d5; }

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-secondary:hover { border-color: var(--text); transform: none; }

.btn-link {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
  padding: 12px 24px;
}
.btn-link:hover { background: var(--primary-soft); box-shadow: none; transform: none; }

@media (prefers-color-scheme: dark) {
  .btn-apple { background: #fff; color: #181113; }
  .btn-apple:hover { background: #f0f0f0; }
  .btn-google { background: var(--card); color: #fff; }
  .btn-google:hover { background: #3a1f28; }
}

.btn svg { flex-shrink: 0; }

/* ── Stack of action buttons (auth methods) ──────────────────────── */
.actions {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px auto;
  max-width: 380px;
  color: var(--muted);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* ── Status / messages ───────────────────────────────────────────── */
.error {
  color: var(--primary);
  font-size: 13px;
  margin-top: 10px;
  background: var(--primary-soft);
  padding: 10px 14px;
  border-radius: 10px;
  display: none;
  text-align: left;
}
.error.show { display: block; }

.success {
  color: var(--success);
  font-size: 13px;
  margin-top: 10px;
  background: rgba(34, 197, 94, 0.12);
  padding: 10px 14px;
  border-radius: 10px;
  display: none;
  text-align: left;
}
.success.show { display: block; }

.foot {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
}

.legal {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  max-width: 320px;
  margin-left: auto; margin-right: auto;
  line-height: 1.6;
}
.legal a { color: var(--muted); text-decoration: underline; font-weight: 500; }
.legal a:hover { color: var(--text); }

.gap-12 { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }

/* ── Plan cards (redeem) ─────────────────────────────────────────── */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

.plan {
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  cursor: pointer;
  transition: border-color .15s, transform .1s;
  background: var(--bg);
  position: relative;
  text-align: left;
}
.plan:hover { border-color: var(--primary); }
.plan.selected { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.plan-name { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.plan-price { font-size: 28px; font-weight: 800; margin-top: 6px; letter-spacing: -0.5px; }
.plan-price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan-tag {
  position: absolute; top: -10px; right: 14px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 50px; text-transform: uppercase; letter-spacing: 1px;
}

.badge {
  display: inline-block;
  background: var(--primary-soft); color: var(--primary);
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 1px;
}

.kv { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.kv:last-child { border-bottom: none; }
.kv-label { color: var(--muted); font-size: 14px; }
.kv-value { font-weight: 600; font-size: 14px; }
