/* Manifest — shared styles (matches app design system) */
:root {
  --bg: #0A0A1A;
  --surface: #141428;
  --surface-2: #1E1E3A;
  --primary: #8B5CF6;
  --pink: #EC4899;
  --secondary: #06B6D4;
  --accent: #FBBF24;
  --text: #F1F5F9;
  --muted: #94A3B8;
}

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

html, body { height: 100%; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: linear-gradient(180deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

a, button, [role="button"], summary { cursor: pointer; }

/* Decorative blurred orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.orb-purple {
  width: 420px; height: 420px;
  background: rgba(139, 92, 246, 0.35);
  top: -120px; left: -120px;
}
.orb-teal {
  width: 360px; height: 360px;
  background: rgba(6, 182, 212, 0.22);
  bottom: -100px; right: -100px;
}
.orb-pink {
  width: 300px; height: 300px;
  background: rgba(236, 72, 153, 0.18);
  top: 40%; right: -140px;
}

/* Star field */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(241,245,249,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 64%, rgba(241,245,249,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 32%, rgba(241,245,249,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 78%, rgba(241,245,249,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 67% 12%, rgba(251,191,36,.65) 50%, transparent 51%),
    radial-gradient(1px 1px at 74% 48%, rgba(241,245,249,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 26%, rgba(241,245,249,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 70%, rgba(6,182,212,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 18% 88%, rgba(241,245,249,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 92%, rgba(241,245,249,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 44%, rgba(139,92,246,.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 34% 8%, rgba(241,245,249,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 54%, rgba(241,245,249,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 81% 90%, rgba(241,245,249,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 96% 8%, rgba(241,245,249,.55) 50%, transparent 51%);
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}
.wordmark .sparkle { color: var(--accent); letter-spacing: normal; }

h1 {
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(100deg, var(--primary), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary); /* fallback */
}

.subhead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 36px;
}

.features {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
  width: 100%;
}
.features li {
  background: rgba(30, 30, 58, 0.72);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.98rem;
  line-height: 1.45;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  backdrop-filter: blur(4px);
}
.features li::before {
  content: "✦";
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.cta {
  display: inline-block;
  background: linear-gradient(100deg, var(--accent), #f59e0b);
  color: #1a1206;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 17px 34px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 0 32px rgba(251, 191, 36, 0.35), 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(251, 191, 36, 0.5), 0 6px 24px rgba(0, 0, 0, 0.45);
}

.cta-purple {
  background: linear-gradient(100deg, var(--primary), var(--pink));
  color: var(--text);
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.35), 0 4px 20px rgba(0, 0, 0, 0.4);
}
.cta-purple:hover {
  box-shadow: 0 0 44px rgba(139, 92, 246, 0.5), 0 6px 24px rgba(0, 0, 0, 0.45);
}

.note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--muted);
}

.footnote {
  margin-top: 34px;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.75;
  line-height: 1.5;
  max-width: 340px;
}

/* Wisdom card (shared affirmation page) */
.wisdom-card {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 14;
  min-height: 420px;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 60%, #0f0f24 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 24px;
  box-shadow: 0 0 48px rgba(139, 92, 246, 0.35), 0 12px 40px rgba(0, 0, 0, 0.5);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 36px;
}
.wisdom-card .quote-mark {
  font-size: 3.4rem;
  line-height: 1;
  background: linear-gradient(100deg, var(--primary), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  margin-bottom: 14px;
  font-weight: 700;
}
.wisdom-card .affirmation {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: break-word;
  max-width: 100%;
}
.wisdom-card .card-footer {
  margin-top: 28px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.wisdom-card .card-footer .sparkle { color: var(--accent); }

.from-line {
  font-size: 0.92rem;
  color: var(--secondary);
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}
