/* ============================================================
   THE PALM READING — DESIGN SYSTEM
   Cosmic mystical · Premium SaaS · Conversion-optimized
   ============================================================ */

:root {
  /* Core palette */
  --void: #07060f;
  --abyss: #0c0a1a;
  --night: #14102b;
  --mystic: #1f1745;
  --orchid: #2d1f5c;
  --plum: #4a2d8a;

  /* Accents */
  --gold: #d4a857;
  --gold-soft: #e6c478;
  --gold-deep: #a37b34;
  --aurora: #b89cff;
  --aurora-deep: #7c5cff;
  --rose: #f0a8c4;
  --teal: #6dd6c4;

  /* Text */
  --text: #ece8f5;
  --text-muted: #9b94b8;
  --text-faint: #6b6485;

  /* Surfaces */
  --surface: rgba(31, 23, 69, 0.4);
  --surface-2: rgba(45, 31, 92, 0.5);
  --surface-glass: rgba(255, 255, 255, 0.03);
  --border: rgba(212, 168, 87, 0.18);
  --border-soft: rgba(184, 156, 255, 0.12);

  /* Effects */
  --glow-gold: 0 0 40px rgba(212, 168, 87, 0.35);
  --glow-aurora: 0 0 60px rgba(124, 92, 255, 0.4);
  --shadow-deep: 0 30px 80px -20px rgba(0, 0, 0, 0.7);

  --radius: 14px;
  --radius-lg: 22px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--void);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== Cosmic backdrop (global) ===== */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(212, 168, 87, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(184, 156, 255, 0.1), transparent 60%),
    linear-gradient(180deg, var(--void) 0%, var(--abyss) 40%, var(--night) 100%);
}
.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.stars::before, .stars::after {
  content: '';
  position: absolute;
  inset: -50%;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 40% 50%, rgba(212,168,87,0.5), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(184,156,255,0.6), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 30% 85%, rgba(212,168,87,0.4), transparent);
  background-size: 600px 600px;
  animation: drift 120s linear infinite;
}
.stars::after {
  background-size: 400px 400px;
  animation-duration: 200s;
  animation-direction: reverse;
  opacity: 0.6;
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-600px, -600px); }
}

/* Twinkling star field — JS-generated divs with randomized duration/delay/peak.
   Sits on top of the drift layer; together they give motion + sparkle.   */
.twinkle-stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.twinkle-stars .ts {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle var(--d, 3s) ease-in-out infinite var(--dl, 0s);
  will-change: opacity;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50%      { opacity: var(--p, 0.5); }
}

/* Shooting stars — 2 streaks gliding left-to-right across the upper sky.
   Bright head on the right (leading edge), faded tail on the left (trailing).
   Very shallow ~6deg downward angle. Slow ~1.2s glide, long pause between fires. */
.shooting-stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.shoot {
  position: absolute;
  width: 110px;
  height: 1px;
  /* Tail (transparent) on left → head (bright white) on right.
     Streak travels left-to-right, so the bright head leads the motion. */
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(255, 255, 255, 0.55) 80%,
    rgba(255, 255, 255, 0.95) 100%
  );
  border-radius: 999px;
  opacity: 0;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
  will-change: transform, opacity;
  transform: rotate(6deg);   /* slight downward tilt so motion path matches streak axis */
}

/* 2 streaks at different vertical positions and timings.
   Both start off-screen left, glide rightward across the viewport. */
.shoot-1 {
  top: 14%;
  left: -120px;       /* start just off the left edge */
  animation: shoot-glide 13s linear 1s infinite;
}
.shoot-2 {
  top: 32%;
  left: -120px;
  animation: shoot-glide 18s linear 8s infinite;
}

/* Left-to-right glide. ~80vw horizontal travel, tiny vertical drift (~8vh).
   Visible window only ~10% of cycle so streaks feel rare and natural. */
@keyframes shoot-glide {
  0% {
    transform: translate(0, 0) rotate(6deg);
    opacity: 0;
  }
  1% { opacity: 0; }
  3% { opacity: 1; }
  9% {
    transform: translate(80vw, 8vh) rotate(6deg);
    opacity: 1;
  }
  11% {
    transform: translate(85vw, 8.5vh) rotate(6deg);
    opacity: 0;
  }
  100% {
    transform: translate(85vw, 8.5vh) rotate(6deg);
    opacity: 0;
  }
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.05;
  font-weight: 400;
}
h1 em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold), var(--aurora));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 400;
}
h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: inline-block;
}
p { color: var(--text-muted); }

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Page tabs (demo nav for prototype) ===== */
.demo-tabs {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px;
  display: flex;
  gap: 4px;
  z-index: 1000;
  box-shadow: var(--shadow-deep), var(--glow-aurora);
}
.demo-tabs button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
}
.demo-tabs button.active {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: var(--void);
  box-shadow: 0 0 20px rgba(212, 168, 87, 0.5);
}
.demo-tabs button:hover:not(.active) { color: var(--gold-soft); }

.page { display: none; animation: pageIn 0.6s ease-out; }
.page.active { display: block; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Navigation ===== */
nav.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 6, 15, 0.7);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-soft);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-right: 0.35rem;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(212, 168, 87, 0.45));
}

/* Mobile: slightly smaller mark */
@media (max-width: 768px) {
  .logo-mark { width: 36px; height: 36px; margin-right: 0.3rem; }
}

/* Very narrow: even smaller, tighter spacing */
@media (max-width: 380px) {
  .logo-mark { width: 32px; height: 32px; margin-right: 0.25rem; }
}
.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
  font-weight: 400;
}
.nav-links a:hover { color: var(--gold-soft); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: var(--void) !important;
  padding: 9px 20px;
  border-radius: 100px;
  font-weight: 500 !important;
  font-size: 0.8rem !important;
  transition: all 0.3s;
  box-shadow: 0 0 0 rgba(212, 168, 87, 0);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover {
  box-shadow: 0 0 25px rgba(212, 168, 87, 0.5);
  transform: translateY(-1px);
}

/* Login button — secondary emphasis (between plain link and primary CTA) */
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  background: rgba(212, 168, 87, 0.06);
  border: 1px solid rgba(212, 168, 87, 0.35);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}
.nav-login-btn:hover {
  background: rgba(212, 168, 87, 0.14);
  border-color: var(--gold-soft);
  color: var(--gold);
}
.nav-login-btn:active { transform: translateY(1px); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}

/* Primary CTA — purple gradient, slightly rounded (12px, not pill),
   soft glow, sentence case, generous padding. Matches Lovable's CTA style
   while preserving the cosmic theme. */
.btn-primary {
  background: linear-gradient(135deg,
              #6d4bd0 0%,
              #8b5cf6 45%,
              #a78bfa 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 16px 30px;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  box-shadow:
    0 8px 24px -8px rgba(124, 92, 255, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg,
              #7d5be0 0%,
              #9b6cff 45%,
              #b89cff 100%);
  box-shadow:
    0 12px 32px -8px rgba(124, 92, 255, 0.7),
    0 0 24px -4px rgba(167, 139, 250, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.btn-primary:active {
  transform: scale(0.97);
  transition: transform 0.08s ease;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(212, 168, 87, 0.08);
  border-color: var(--gold);
  color: var(--gold-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}
.btn-ghost:hover { color: var(--text); border-color: var(--aurora); }

/* ===== HERO ===== */
.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 2rem 6rem;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(212, 168, 87, 0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-family: 'Cinzel', serif;
  margin-bottom: 2rem;
}
.hero-badge .pulse {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero h1 { margin-bottom: 1.75rem; }
.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.75rem;
  line-height: 1.6;
}

/* Hero section wrapper — overflow safety so palm/orb cannot bleed into next section */
.hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* CTA — click scale + arrow slide */
.btn-cta {
  font-size: 1.05rem;
  padding: 18px 36px;
  position: relative;
}
.btn-cta:active {
  transform: scale(0.97);
  transition: transform 0.08s ease;
}
.btn-cta .btn-arrow {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}
.btn-cta:hover .btn-arrow {
  transform: translateX(4px);
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Urgency line — sits directly under CTA, before trust pills */
.cta-urgency {
  font-size: 0.85rem;
  color: var(--gold-soft);
  margin: 0 0 1.25rem;
  letter-spacing: 0.01em;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

/* Trust pills — sit directly below CTA, light visual weight */
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.trust-pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(212, 168, 87, 0.15);
  color: var(--gold-soft);
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* ===== Hero Visual — Animated Palm ===== */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}
.palm-orb {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.25) 0%, rgba(212, 168, 87, 0.1) 40%, transparent 70%);
  filter: blur(40px);
  animation: orbPulse 6s ease-in-out infinite;
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}
.palm-frame {
  position: relative;
  width: 340px;
  height: 420px;
  z-index: 2;
}
.palm-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 16px rgba(212, 168, 87, 0.3));
}
.palm-svg path { transition: stroke-width 0.3s; }

/* Faster line draw: 2s per line, staggered tightly so all 4 finish in ~2.4s */
.palm-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  will-change: stroke-dashoffset;
}
.palm-line.l1 { animation-delay: 0.2s; }
.palm-line.l2 { animation-delay: 0.4s; }
.palm-line.l3 { animation-delay: 0.6s; }
.palm-line.l4 { animation-delay: 0.8s; }
@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* Detection points: appear after lines are drawn, then pulse continuously */
.detect-pt {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation:
    detectAppear 0.4s ease-out forwards,
    detectPulse 2.2s ease-in-out infinite;
  animation-delay: var(--delay, 2.5s), calc(var(--delay, 2.5s) + 0.4s);
  will-change: opacity, transform;
}
@keyframes detectAppear {
  0% { opacity: 0; transform: scale(0.4); }
  60% { opacity: 1; transform: scale(1.4); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes detectPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

/* Scan beam: thin, low-opacity, GPU-cheap (transform-only animation) */
.scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1.5px;
  background: linear-gradient(90deg,
              transparent 0%,
              rgba(230, 196, 120, 0.15) 20%,
              rgba(230, 196, 120, 0.7) 50%,
              rgba(230, 196, 120, 0.15) 80%,
              transparent 100%);
  transform: translateY(0);
  animation: scanBeam 3.8s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
  will-change: transform, opacity;
}
@keyframes scanBeam {
  0%   { transform: translateY(0%);   opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translateY(420px); opacity: 1; }
  60%  { opacity: 0; }
  100% { transform: translateY(0%);   opacity: 0; }
}
@keyframes scanBeamMobile {
  0%   { top: 0%;   opacity: 0; transform: translateY(0); }
  10%  { opacity: 0.85; }
  50%  { top: 100%; opacity: 0.85; transform: translateY(-1.2px); }
  60%  { opacity: 0; }
  100% { top: 0%;   opacity: 0; transform: translateY(0); }
}

/* Floating tags */
.tag {
  position: absolute;
  background: rgba(12, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.08em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  z-index: 4;
  animation: tagFloat 6s ease-in-out infinite;
}
.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}
.dot-rose { background: var(--rose); color: var(--rose); }
.dot-teal { background: var(--teal); color: var(--teal); }
.dot-gold { background: var(--gold); color: var(--gold); }
.dot-purple { background: var(--aurora); color: var(--aurora); }

.tag-1 { top: 12%; left: -6%; animation-delay: 0s; }
.tag-2 { top: 38%; right: -8%; animation-delay: 1s; }
.tag-3 { bottom: 32%; left: -10%; animation-delay: 2s; }
.tag-4 { bottom: 8%; right: -4%; animation-delay: 3s; }
@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== Trust bar — premium stats card ===== */
.trust-bar-wrap {
  padding: 1rem 0 2rem;          /* breathing room above & below */
  position: relative;
}
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 1.75rem 1rem;
  background: linear-gradient(180deg, rgba(31, 23, 69, 0.35) 0%, rgba(12, 10, 26, 0.4) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
/* Soft inner highlight at top (Lovable-style premium card surface) */
.trust-bar::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 87, 0.25), rgba(184, 156, 255, 0.18), transparent);
  pointer-events: none;
}
.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 0.5rem 0.75rem;
  gap: 0.6rem;
}
/* Subtle vertical dividers between stats */
.trust-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-soft), transparent);
}
.trust-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.01em;
}
.trust-star {
  width: 0.85em;
  height: 0.85em;
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(212, 168, 87, 0.5));
  flex-shrink: 0;
}
.trust-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Section base ===== */
section {
  padding: 7rem 0;
  position: relative;
}
.section-head {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ===== How it works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
  z-index: 0;
}
.step {
  background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  transition: all 0.4s;
}
.step:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}
.step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orchid), var(--mystic));
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--gold-soft);
  box-shadow: 0 0 20px rgba(212, 168, 87, 0.3), inset 0 0 15px rgba(212, 168, 87, 0.1);
}
.step h3 { color: var(--text); }
.step p { font-size: 0.95rem; }

/* ===== Palm lines section — featured asymmetric grid ===== */
.palm-lines-section {
  position: relative;
  overflow: hidden;
}
/* Faint palm watermark behind the section */
.palm-lines-section .bg-palm {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 90vw);
  height: auto;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
.palm-lines-section .container { position: relative; z-index: 1; }

.lines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1rem;
}
.lines-grid.lines-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Featured card: tall, spans 2 rows in column 1 */
.line-card.featured {
  grid-column: 1;
  grid-row: span 2;
  padding: 2.5rem;
}

/* CTA card: spans 2 columns on the bottom row to balance the layout */
.line-card.cta-card {
  grid-column: span 2;
  background: linear-gradient(135deg,
              rgba(74, 45, 138, 0.55) 0%,
              rgba(31, 23, 69, 0.6) 50%,
              rgba(45, 31, 92, 0.55) 100%);
  border: 1px solid var(--gold);
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.line-card.cta-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--gold), var(--aurora), var(--gold));
  z-index: -1;
  opacity: 0.3;
  filter: blur(12px);
  transition: opacity 0.4s;
}
.line-card.cta-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--aurora), var(--gold), transparent);
  opacity: 0.7;
}
.line-card.cta-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-soft) !important;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.7),
              0 0 60px -10px var(--gold) !important;
  background: linear-gradient(135deg,
              rgba(74, 45, 138, 0.7) 0%,
              rgba(31, 23, 69, 0.65) 50%,
              rgba(45, 31, 92, 0.7) 100%) !important;
}
.line-card.cta-card:hover::before { opacity: 0.5; }
/* Disable the generic accent overlay on CTA card */
.line-card.cta-card::after { opacity: 0.7 !important; height: 2px !important; }
.line-card.cta-card:hover::after { opacity: 1 !important; height: 2px !important; }

/* Decorative orbital rings inside CTA card */
.cta-card-orb {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-card-orb::before,
.cta-card-orb::after {
  content: '';
  position: absolute;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.4;
}
.cta-card-orb::before {
  inset: 0;
  animation: ringPulse 3s ease-in-out infinite;
}
.cta-card-orb::after {
  inset: 12px;
  opacity: 0.6;
  animation: ringPulse 3s ease-in-out infinite 1.5s;
}
.cta-card-orb svg {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  color: var(--gold);
  filter: drop-shadow(0 0 12px var(--gold));
}

.cta-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cta-card-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.cta-card-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  margin: 0;
}
.cta-card-body h3 em {
  font-style: italic;
  color: var(--gold-soft);
}
.cta-card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 360px;
}
.cta-card-action {
  flex-shrink: 0;
}

.line-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(12, 10, 26, 0.45) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s,
              box-shadow 0.4s,
              background 0.4s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Accent glow overlay (appears on hover) */
.line-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right,
              var(--accent-color, var(--gold)),
              transparent 65%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 0;
}

/* Top accent stripe — colored line bound to each card's accent */
.line-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
              transparent,
              var(--accent-color, var(--gold)),
              transparent);
  opacity: 0.5;
  transition: opacity 0.4s, height 0.4s;
}

.line-card:hover {
  border-color: var(--accent-color, var(--gold));
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.6),
              0 0 40px -10px var(--accent-color, var(--gold));
  background: linear-gradient(180deg, var(--surface-2) 0%, rgba(12, 10, 26, 0.5) 100%);
}
.line-card:hover::before { opacity: 0.12; }
.line-card:hover::after { opacity: 1; height: 3px; }

/* Icon */
.line-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.4s,
              box-shadow 0.4s;
}
.line-icon svg { width: 24px; height: 24px; transition: transform 0.4s; }
.line-card:hover .line-icon {
  transform: scale(1.1) rotate(-4deg);
  border-color: var(--accent-color, var(--gold));
  box-shadow: 0 0 20px -2px var(--accent-color, var(--gold));
}
.line-card:hover .line-icon svg { transform: scale(1.05); }

.line-card.featured .line-icon { width: 56px; height: 56px; margin-bottom: 1.5rem; }
.line-card.featured .line-icon svg { width: 30px; height: 30px; }

/* Header row with title + arrow */
.line-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 2;
  margin-bottom: 0.4rem;
}
.line-card h3 {
  color: var(--text);
  margin: 0;
  font-size: 1.25rem;
}
.line-card.featured h3 { font-size: 1.85rem; }

/* Arrow that lives on the card itself (not a separate link) */
.line-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.line-arrow svg { width: 14px; height: 14px; transition: transform 0.4s; }
.line-card:hover .line-arrow {
  background: var(--accent-color, var(--gold));
  border-color: var(--accent-color, var(--gold));
  color: var(--void);
  transform: rotate(-45deg);
}

/* Description — used only on featured */
.line-card-desc {
  position: relative;
  z-index: 2;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1.2rem;
  line-height: 1.55;
}
.line-card.featured .line-card-desc {
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
}

/* Bullet list — the new readability pattern */
.line-card-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto; /* push to bottom in featured card */
}
.line-card-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.line-card-bullets li::before {
  content: '';
  width: 4px;
  height: 4px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent-color, var(--gold));
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--accent-color, var(--gold));
}
.line-card.featured .line-card-bullets li {
  font-size: 0.9rem;
  gap: 0.7rem;
}

/* Featured "Most Read" badge */
.line-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-color, var(--gold));
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  z-index: 3;
}

/* Section CTA */
.lines-cta {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  position: relative;
  z-index: 1;
}
.lines-cta .helper {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.lines-cta .btn { font-size: 1rem; padding: 16px 36px; }

/* ===== Pricing ===== */
/* New: $4.99 one-time payment two-card layout */
.pricing-pair {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  max-width: 920px;
  margin: 3rem auto 0;
}
.pricing-card {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(12, 10, 26, 0.55) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  backdrop-filter: blur(10px);
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.pricing-card.pricing-full {
  background: linear-gradient(180deg, rgba(74, 45, 138, 0.5) 0%, rgba(31, 23, 69, 0.65) 100%);
  border: 1px solid var(--gold);
  box-shadow: 0 0 50px -10px rgba(212, 168, 87, 0.4),
              0 0 100px -30px rgba(124, 92, 255, 0.4);
}
.pricing-card.pricing-full::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--gold), var(--aurora), var(--gold));
  z-index: -1;
  opacity: 0.35;
  filter: blur(8px);
}
.pricing-card:hover {
  transform: translateY(-3px);
}

.pricing-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: var(--void);
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  padding: 5px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}

.pricing-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}
.pricing-tier {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: 'Cormorant Garamond', serif;
}
.amount-currency {
  font-size: 1.6rem;
  color: var(--text-muted);
  align-self: flex-start;
  margin-top: 0.4rem;
}
.amount-value {
  font-size: 3.6rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.pricing-full .amount-value {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold), var(--aurora));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.amount-suffix {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-left: 6px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.pricing-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.pricing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.pricing-list li.included { color: var(--text); }
.pricing-list li.locked   { color: var(--text-faint); }
.li-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 600;
}
li.included .li-mark {
  background: rgba(212, 168, 87, 0.15);
  color: var(--gold);
}
li.locked .li-mark {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-faint);
}

.pricing-microcopy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  margin-top: -0.25rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.plan {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(12, 10, 26, 0.5) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  backdrop-filter: blur(10px);
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
}
.plan:hover {
  border-color: var(--border);
  transform: translateY(-4px);
}
.plan.featured {
  background: linear-gradient(180deg, rgba(74, 45, 138, 0.5) 0%, rgba(31, 23, 69, 0.6) 100%);
  border: 1px solid var(--gold);
  box-shadow: 0 0 50px -10px rgba(212, 168, 87, 0.4), 0 0 100px -30px rgba(124, 92, 255, 0.4);
  transform: translateY(-12px);
}
.plan.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--gold), var(--aurora), var(--gold));
  z-index: -1;
  opacity: 0.4;
  filter: blur(8px);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: var(--void);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  padding: 5px 14px;
  border-radius: 100px;
  font-weight: 500;
}
.plan-name {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.plan-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.plan-price sup {
  font-size: 1.4rem;
  vertical-align: super;
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 4px;
}
.plan-price span {
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-faint);
  font-weight: 400;
}
.plan-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 1rem 0 1.8rem;
  min-height: 48px;
}
.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}
.plan-features li {
  padding: 9px 0;
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: '✦';
  color: var(--gold);
  flex-shrink: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.btn-plan {
  width: 100%;
  justify-content: center;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
}
.stars {
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.testimonial p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.reviewer {
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  font-family: 'Cinzel', serif;
}

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 3rem auto 0; }
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 1.5rem 0;
  cursor: pointer;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 500;
}
.faq-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.3s;
}
.faq-item.open .faq-toggle {
  background: var(--gold);
  color: var(--void);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-top: 1rem;
}

/* ===== Final CTA ===== */
.final-cta {
  text-align: center;
  position: relative;
  padding: 8rem 2rem;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(124, 92, 255, 0.2), transparent 70%);
  pointer-events: none;
}
.final-cta h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 1.5rem; }
.final-cta p { font-size: 1.15rem; margin-bottom: 2.5rem; }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 3rem 2rem 2rem;
  background: rgba(7, 6, 15, 0.6);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3rem;
  margin-bottom: 2.5rem;
}

/* Brand column reads tighter at this width since each cell is narrower */
.footer-inner .footer-col:first-child {
  font-size: 0.9rem;
}
.footer-col h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-soft); }
.footer-col p { font-size: 0.88rem; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ============================================================
   AI TOOL PAGE
   ============================================================ */
.tool-hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
}
.tool-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 1rem; }
.tool-hero p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.tool-stage {
  max-width: 880px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.step-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.step-dot .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-family: 'Cormorant Garamond', serif;
  transition: all 0.4s;
}
.step-dot.active .dot {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: var(--void);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 168, 87, 0.5);
}
.step-dot.active { color: var(--gold-soft); }
.step-dot.done .dot {
  background: var(--orchid);
  color: var(--gold-soft);
  border-color: var(--aurora);
}
.step-line {
  width: 60px;
  height: 1px;
  background: var(--border-soft);
}

/* Upload zone */
.upload-zone {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(12, 10, 26, 0.4) 100%);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.upload-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(124, 92, 255, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.upload-zone:hover {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(74, 45, 138, 0.3) 0%, rgba(12, 10, 26, 0.4) 100%);
}
.upload-zone:hover::before { opacity: 1; }
.upload-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orchid), var(--mystic));
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  position: relative;
  box-shadow: 0 0 30px rgba(212, 168, 87, 0.3);
}
.upload-icon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: ringPulse 3s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0; }
}
.upload-zone h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.upload-zone p { font-size: 0.95rem; margin-bottom: 1.5rem; }
.upload-formats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  flex-wrap: wrap;
}
.upload-formats span {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 100px;
  border: 1px solid var(--border-soft);
}

/* Tips row */
.tips-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.tip {
  background: var(--surface-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.tip-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(212, 168, 87, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

/* Privacy note */
.privacy-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Trust bar inside tool */
.tool-trust {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  margin: 4rem auto 0;
  max-width: 880px;
  flex-wrap: wrap;
}
.tool-trust .trust-item { align-items: center; text-align: center; }

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-hero {
  text-align: center;
  padding: 5rem 2rem 2rem;
}
.pricing-hero h1 { margin-bottom: 1rem; }

/* Pricing FAQ block */
.guarantee {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 700px;
  margin: 4rem auto 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(74, 45, 138, 0.3), rgba(31, 23, 69, 0.3));
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
}
.guarantee-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212, 168, 87, 0.15);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.guarantee h3 { color: var(--text); margin-bottom: 0.3rem; }
.guarantee p { font-size: 0.9rem; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 1.5rem; gap: 4rem; }
  .hero-visual { min-height: 400px; }
  .palm-orb { width: 360px; height: 360px; }
  .palm-frame { width: 260px; height: 320px; }
  /* Hide the inner 4 nav links on mobile, keep logo + CTA pill */
  .nav-links li:nth-child(-n+4) { display: none; }
  .nav-links { gap: 1rem; }
  .steps, .plans-grid, .testimonials-grid, .tips-row { grid-template-columns: 1fr; }
  .steps::before { display: none; }   /* horizontal connector line not needed when steps stack */
  .lines-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .line-card.featured { grid-column: span 2; grid-row: span 1; padding: 1.75rem; }
  .line-card.featured h3 { font-size: 1.4rem; }
  .line-card.featured .line-icon { width: 44px; height: 44px; }
  .line-card.featured .line-icon svg { width: 24px; height: 24px; }
  .line-card.featured .line-card-bullets { display: none; }
  /* CTA card: share bottom row with Sun Line — both 1col so neither orphans */
  .line-card.cta-card {
    grid-column: span 1;
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
    gap: 0.9rem;
    align-items: center;
  }
  .line-card.cta-card .cta-card-body { align-items: center; }
  .line-card.cta-card .cta-card-body p { display: none; }   /* hide long sub on narrow card */
  .line-card.cta-card .cta-card-body h3 { font-size: 1.2rem; }
  .cta-card-orb { width: 64px; height: 64px; }
  .cta-card-orb svg { width: 30px; height: 30px; }
  .cta-card-action .btn { padding: 12px 18px; font-size: 0.82rem; white-space: nowrap; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
  .footer-inner .footer-col:first-child {
    grid-column: 1 / -1;
    max-width: 480px;
  }
  section { padding: 4rem 0; }
  .demo-tabs { padding: 4px; }
  .demo-tabs button { padding: 8px 12px; font-size: 0.6rem; }
  /* Trust bar: tighter horizontal padding on tablet */
  .trust-bar { padding: 1.5rem 0.75rem; }
}
@media (max-width: 560px) {
  /* Lines-grid 1-col override moved to mobile-optimization 560px block below */
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   DESKTOP TIER (≥1024px) — explicit per spec
   At this size the original desktop layout is restored fully.
   Below this, the 900/768/560 breakpoints handle mobile + tablet.
   ============================================================ */
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
  .hero { padding: 4rem 2rem 6rem; }
  section { padding: 7rem 0; }
}

/* ============================================================
   MOBILE OPTIMIZATION & PERFORMANCE LAYER
   Added without touching desktop. All overrides are scoped to
   max-width: 768px or prefers-reduced-motion.
   ============================================================ */

/* ===== Sticky mobile CTA ===== */
.sticky-cta {
  display: none;                    /* hidden on desktop */
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 999;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #6d4bd0 0%, #8b5cf6 45%, #a78bfa 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 14px;
  box-shadow: 0 8px 28px -6px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.1) inset,
              0 0 24px -6px rgba(124, 92, 255, 0.6);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  font-family: 'Inter', sans-serif;
}
.sticky-cta.show {
  transform: translateY(0);
  opacity: 1;
}
.sticky-cta-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sticky-cta-icon svg { width: 20px; height: 20px; }
.sticky-cta-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.sticky-cta-label strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.sticky-cta-label em {
  font-style: normal;
  font-size: 0.7rem;
  opacity: 0.75;
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.sticky-cta-arrow {
  font-size: 1.3rem;
  font-weight: 500;
  flex-shrink: 0;
}

/* ===== Mobile breakpoint — performance + UX overrides ===== */
@media (max-width: 768px) {
  /* Show sticky CTA, lift demo tabs above it */
  .sticky-cta { display: flex; }
  .demo-tabs { bottom: 86px; }
  body { padding-bottom: 80px; }    /* keep last content from being covered */

  /* --- Background lightness: kill star drift on mobile (twinkle layer stays — it's cheaper) --- */
  body > .stars { display: none; }   /* targets only the fixed cosmic drift layer, not testimonial stars */
  /* Shooting stars: keep both on mobile, shorter streak length for small screens */
  .shoot { width: 80px; }
  .cosmos {
    background:
      radial-gradient(ellipse 70% 40% at 50% 0%, rgba(124, 92, 255, 0.14), transparent 65%),
      linear-gradient(180deg, var(--void) 0%, var(--abyss) 60%, var(--night) 100%);
  }

  /* --- Hero: shorter, CTA above the fold --- */
  .hero {
    min-height: auto;
    padding: 1.5rem 1.25rem 2.5rem;
    gap: 2rem;
  }
  .hero-content { display: flex; flex-direction: column; }
  .hero h1 { font-size: clamp(2rem, 7vw, 2.4rem); margin-bottom: 0.9rem; line-height: 1.08; }
  .hero-sub { font-size: 0.98rem; margin-bottom: 1.5rem; }
  .hero-badge { margin-bottom: 1rem; }
  .cta-group { margin-bottom: 1.5rem; }
  .cta-group .btn { width: 100%; justify-content: center; }
  .cta-group .btn-secondary { display: none; }    /* drop competing CTA on mobile */

  /* Reorder hero: visual smaller and below content */
  .hero-visual {
    /* Position-relative parent so tags can absolute-position around the palm */
    min-height: auto;
    order: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Give horizontal breathing room so tags don't escape viewport */
    padding: 1rem 0;
  }
  .palm-orb {
    width: 220px;
    height: 220px;
    animation: none;
    opacity: 0.55;
  }
  .palm-frame {
    position: relative;
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 200 / 260;
    margin: 0 auto;
    /* z-index keeps the palm under the tags (tags should overlap edges) */
    z-index: 1;
  }
  .palm-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(212,168,87,0.25));
  }

  /* Scan beam: dynamic-height friendly */
  .scan-beam {
    height: 1.2px;
    animation: scanBeamMobile 3.8s ease-in-out infinite;
  }
  .detect-pt { animation-duration: 0.4s, 2.4s; }

  /* MOBILE FLOATING TAGS — % positioning, scaled smaller, near corresponding lines.
     Anchored to .hero-visual (the position:relative parent that sits around the
     200px-max palm-frame). Tags float at the edges of the visual, not the palm,
     so they always stay near corresponding lines without overlapping the palm.   */
  .tag {
    position: absolute;
    animation: none;          /* drop float animation on mobile */
    font-size: 0.6rem;
    padding: 4px 9px;
    letter-spacing: 0.08em;
    z-index: 3;
  }
  .tag .tag-dot { width: 6px; height: 6px; }

  /* Heart Line (rose) — top-left */
  .tag-1 { top: 8%;  left: 2%;   right: auto; bottom: auto; }
  /* Head Line (teal) — middle-right */
  .tag-2 { top: 38%; right: 2%;  left: auto;  bottom: auto; }
  /* Life Line (gold) — middle-left */
  .tag-3 { top: 58%; left: 2%;   right: auto; bottom: auto; }
  /* Fate Line (purple) — bottom-right */
  .tag-4 { bottom: 8%; right: 2%; left: auto; top: auto; }

  /* Trust pills: tighter on mobile */
  .trust-pills { gap: 0.9rem; }
  .trust-pills li { font-size: 0.78rem; }

  /* Hero badge pulse: keep but slow it down (very low cost) */
  .hero-badge .pulse { animation-duration: 3s; }

  /* Pricing pair stacks on mobile */
  .pricing-pair { grid-template-columns: 1fr; max-width: 480px; }
  .pricing-card { padding: 2rem 1.5rem; }
  .amount-value { font-size: 3rem; }

  /* --- Strip backdrop-filter blurs on mobile (heavy on GPU) --- */
  /* Keep nav blur because it's small + critical. Strip the rest. */
  .testimonial,
  .step,
  .plan,
  .pricing-card,
  .upload-zone,
  .tool-trust,
  .demo-tabs,
  .sticky-cta { backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* Replace blur with a slightly more solid bg so contrast stays good */
  .demo-tabs { background: rgba(12, 10, 26, 0.95); }

  /* --- Section spacing: tighter --- */
  section { padding: 3.5rem 0; }
  .section-head { margin-bottom: 2.5rem; }

  /* --- Palm lines section: lighter watermark, tighter cards --- */
  .palm-lines-section .bg-palm { opacity: 0.025; }
  .line-card { padding: 1.25rem; }
  .line-card.featured {
    grid-column: span 2;
    grid-row: span 1;
    padding: 1.5rem;
  }
  .line-card.featured h3 { font-size: 1.4rem; }
  .line-card.featured .line-icon { width: 44px; height: 44px; }
  .line-card.featured .line-icon svg { width: 24px; height: 24px; }
  .line-card.featured .line-card-bullets { display: none; }
  .line-card.featured .line-card-desc { font-size: 0.92rem; margin-bottom: 0; }
  .line-card-bullets li { font-size: 0.8rem; }

  /* CTA card: 1col share-the-row with Sun on mobile (matches 900px rule) */
  .line-card.cta-card {
    grid-column: span 1;
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
    gap: 0.8rem;
    align-items: center;
  }
  .line-card.cta-card .cta-card-body { align-items: center; }
  .line-card.cta-card .cta-card-body p { display: none; }
  .line-card.cta-card .cta-card-body h3 { font-size: 1.1rem; }
  .cta-card-orb { width: 56px; height: 56px; }
  .cta-card-orb svg { width: 26px; height: 26px; }
  .cta-card-orb::before, .cta-card-orb::after { animation: none; opacity: 0.35; }
  .cta-card-action .btn { padding: 11px 16px; font-size: 0.78rem; white-space: nowrap; }

  /* --- Pricing: featured card no longer pops 12px (saves layout shift) --- */
  .plan.featured { transform: none; }
  .plan.featured::before { filter: blur(4px); opacity: 0.25; }   /* lighter halo */

  /* --- Upload zone: slim down, kill ring pulse --- */
  .upload-zone { padding: 2.5rem 1.25rem; }
  .upload-icon { width: 64px; height: 64px; }
  .upload-icon::before { animation: none; }

  /* --- Tighten transition duration (cheaper paints on touch) --- */
  .line-card, .step, .plan, .testimonial, .btn { transition-duration: 0.2s; }

  /* --- Disable shimmer sweep on primary buttons (rarely visible on touch) --- */
  .btn-primary::before { display: none; }
}

@media (max-width: 560px) {
  /* Trust bar: 2x2 grid on phones — 4 across is too cramped */
  .trust-bar-wrap { padding: 0.5rem 0 1.5rem; }
  .trust-bar {
    grid-template-columns: 1fr 1fr;
    padding: 1.25rem 0.5rem;
    gap: 1.25rem 0;
  }
  .trust-stat { padding: 0.25rem 0.5rem; gap: 0.45rem; }
  .trust-num { font-size: 1.85rem; }
  .trust-label { font-size: 0.62rem; letter-spacing: 0.18em; }
  /* Re-draw dividers for 2x2: vertical between cols, horizontal between rows */
  .trust-stat:not(:last-child)::after { display: none; }
  .trust-stat:nth-child(1)::after,
  .trust-stat:nth-child(3)::after {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--border-soft), transparent);
  }
  .trust-stat:nth-child(1)::before,
  .trust-stat:nth-child(2)::before {
    content: '';
    display: block;
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: -0.625rem;             /* halfway through the 1.25rem gap */
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-soft), transparent);
  }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner .footer-col:first-child {
    grid-column: auto;
    max-width: none;
  }
  /* Lines grid stacks 1-col at very narrow widths */
  .lines-grid { grid-template-columns: 1fr; }
  .line-card.featured { grid-column: span 1; }
  .line-card.cta-card {
    grid-column: span 1;
    padding: 1.75rem 1.25rem;
    gap: 1rem;
  }
  .line-card.cta-card .cta-card-body p { display: block; font-size: 0.85rem; }
  .line-card.cta-card .cta-card-body h3 { font-size: 1.3rem; }
  .cta-card-orb { width: 72px; height: 72px; }
  .cta-card-orb svg { width: 32px; height: 32px; }
  .cta-card-action .btn { padding: 14px 22px; font-size: 0.9rem; }
}

/* ===== Reduced motion (system preference + accessibility) ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .stars, .scan-beam, .palm-orb, .twinkle-stars .ts, .shoot { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
/* ============================================================
   PAYWALL + SIGNUP MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 6, 15, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s;
  overflow-y: auto;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s;
}
.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-card {
  background: linear-gradient(180deg, var(--mystic) 0%, var(--abyss) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8),
              0 0 80px -20px rgba(212, 168, 87, 0.4);
  overflow: hidden;
}
.modal-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--gold), var(--aurora), var(--gold));
  z-index: -1;
  opacity: 0.3;
  filter: blur(10px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-family: inherit;
  transition: all 0.25s;
}
@media (max-width: 768px) {
  .modal-close { width: 44px; height: 44px; font-size: 1.55rem; top: 10px; right: 10px; }
}
.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border);
}
.modal-eyebrow {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

/* === PAYWALL specific === */
.paywall-card { max-width: 580px; }
.paywall-preview {
  position: relative;
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(180deg, rgba(74, 45, 138, 0.3), transparent);
  border-bottom: 1px solid var(--border-soft);
  max-height: 200px;
  overflow: hidden;
}
.locked-section { margin-bottom: 1rem; }
.locked-section p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.5;
  /* Blur the actual content */
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}
.locked-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  /* Label stays sharp - tease */
  filter: none;
}
.paywall-lock-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(7, 6, 15, 0) 0%,
              rgba(7, 6, 15, 0.5) 70%,
              rgba(7, 6, 15, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.paywall-lock {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orchid) 0%, var(--mystic) 100%);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(212, 168, 87, 0.5),
              inset 0 0 15px rgba(212, 168, 87, 0.2);
}
.paywall-lock svg { width: 26px; height: 26px; }

.paywall-body {
  padding: 1.5rem 2rem 2rem;
  text-align: center;
}
.paywall-body h2 {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}
.paywall-body h2 em {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold), var(--aurora));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.paywall-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.paywall-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  text-align: left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.paywall-perks li {
  font-size: 0.85rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-basis: calc(50% - 0.625rem);
}
.perk-mark { color: var(--gold); }
.paywall-cta {
  width: 100%;
  font-size: 1.05rem;
  padding: 18px 28px;
  margin-bottom: 1rem;
}
.paywall-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.dot-sep { color: var(--text-faint); opacity: 0.5; }
.paywall-pitch {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-soft);
  margin: 0;
}

/* === SIGNUP specific === */
.signup-card {
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  max-width: 440px;
}
.signup-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orchid), var(--mystic));
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  box-shadow: 0 0 30px rgba(212, 168, 87, 0.4);
}
.signup-icon svg { width: 32px; height: 32px; filter: drop-shadow(0 0 8px var(--gold)); }
.signup-card h2 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}
.signup-card h2 em {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold), var(--aurora));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.signup-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.signup-options {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}
.signup-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 13px 22px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.25s;
  background: rgba(255, 255, 255, 0.96);
  color: #1a1a1a;
  border: 1px solid transparent;
}
.signup-option:hover {
  background: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px rgba(212, 168, 87, 0.4);
}
.signup-option:active { transform: scale(0.98); }
.signup-apple {
  background: #1a1a1a;
  color: white;
  border-color: rgba(255, 255, 255, 0.15);
}
.signup-apple:hover { background: #2a2a2a; }
.signup-email {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-soft);
}
.signup-email:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold);
  color: var(--gold-soft);
}
.signup-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.signup-divider {
  position: relative;
  text-align: center;
  margin: 0.4rem 0;
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.signup-divider::before,
.signup-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 22px);
  height: 1px;
  background: var(--border-soft);
}
.signup-divider::before { left: 0; }
.signup-divider::after  { right: 0; }
.signup-divider span {
  position: relative;
  background: var(--abyss);
  padding: 0 8px;
}
.signup-fineprint {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin: 0;
}
.signup-fineprint a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.signup-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--gold-soft);
  opacity: 0;
  transition: opacity 0.3s;
}
.signup-note.show { opacity: 1; }

/* Modals on small screens */
@media (max-width: 540px) {
  .modal-card { max-width: 100%; border-radius: 18px; }
  .paywall-body, .signup-card { padding: 1.5rem 1.25rem 1.75rem; }
  .paywall-preview { padding: 1.5rem 1.25rem 1rem; max-height: 180px; }
  .paywall-body h2, .signup-card h2 { font-size: 1.5rem; }
  .paywall-perks li { flex-basis: 100%; }
  .paywall-trust { font-size: 0.7rem; }
}

/* ════════════════════════════════════════════════════════════════
   READING TOOL INTERNALS — Ported & adapted for the new aesthetic
   These power: dual-palm upload, reading result rendering,
   email-capture modal, loader, and the upgrade overlay.
   ════════════════════════════════════════════════════════════════ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
}
.reading-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.reading-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,87,0.4), transparent);
}
.reading-prose {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.reading-prose:last-child { margin-bottom: 0; }
.callout-card {
  margin: 1.5rem 0;
  padding: 1.25rem 1.75rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface-glass);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.callout-mark {
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.callout-card em {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold-soft);
  line-height: 1.6;
}
.trait-meters {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.trait-row {
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  align-items: center;
  gap: 0.75rem;
}
.trait-name {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: capitalize;
  color: var(--text-muted);
}
.trait-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.trait-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 0;
}
.trait-score {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  color: var(--gold);
  text-align: right;
}
.compat-signs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.compat-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-right: 0.25rem;
}
.sign-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  background: linear-gradient(135deg, rgba(212,168,87,0.15), rgba(212,168,87,0.05));
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
}
.day-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  background: rgba(184,156,255,0.1);
  border: 1px solid rgba(184,156,255,0.2);
  border-radius: 100px;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--aurora);
}
.signs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.signs-group {}
.signs-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}
.lucky-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.lucky-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--void);
  box-shadow: 0 4px 12px rgba(212,168,87,0.3);
}
.colour-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.colour-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--void);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.day-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.phase-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1.25rem;
  background: linear-gradient(135deg, var(--aurora-deep), var(--aurora));
  border-radius: 100px;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--void);
  margin-top: 1rem;
}
.marks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.mark-card {
  padding: 1.25rem;
  background: var(--surface-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.mark-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.mark-name {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
}
.rare-badge {
  padding: 0.15rem 0.5rem;
  background: linear-gradient(135deg, var(--aurora-deep), var(--aurora));
  border-radius: 100px;
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  color: var(--void);
  font-weight: 700;
}
.mark-meaning {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.health-duality {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}
.health-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}
.health-card.drains { background: rgba(240,168,196,0.06); border-color: rgba(240,168,196,0.2); }
.health-card.restores { background: rgba(109,214,196,0.06); border-color: rgba(109,214,196,0.2); }
.health-icon {
  font-size: 1.2rem;
  margin-right: 0.4rem;
}
.health-card strong {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.health-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.gemstone-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(212,168,87,0.08), rgba(212,168,87,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.25rem 0;
}
.gem-icon { font-size: 1.5rem; }
.gemstone-card strong {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}
.gemstone-card span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--gold-soft);
}
.oracle-section {
  border-color: rgba(184,156,255,0.2);
  background: rgba(124,92,255,0.06);
}
.oracle-eyebrow {
  color: var(--aurora);
}
.phase-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.phase-icon { font-size: 1.5rem; }
.phase-label { color: var(--text-muted); font-size: 0.95rem; }
.phase-label strong { color: var(--aurora); }
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.forecast-card {
  padding: 1.25rem;
  background: var(--surface-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.forecast-card strong {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aurora);
  display: block;
  margin-bottom: 0.6rem;
}
.forecast-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.locked-sections-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.locked-blur-container {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  padding: 1px;
}
.locked-section-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1rem;
}
.locked-section-preview:last-child { margin-bottom: 0; }
.locked-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.locked-section-preview p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.unlock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(7,6,15,0.82) 30%, rgba(7,6,15,0.6) 100%);
  backdrop-filter: blur(2px);
}
.unlock-content {
  text-align: center;
  padding: 2rem;
  max-width: 440px;
}
.lock-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(var(--glow-gold));
}
.unlock-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold-soft);
  margin-bottom: 0.5rem;
}
.unlock-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.unlock-plans {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.reading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.dropzone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--surface-glass);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--gold);
  background: rgba(212,168,87,0.04);
}
.dropzone.has-image .upload-placeholder { display: none; }
.dropzone.has-image {
  border-style: solid;
  border-color: var(--gold);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-placeholder {}
.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 8px rgba(212,168,87,0.3));
  display: block;
}
.upload-label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.upload-sub {
  font-size: 0.85rem;
  color: var(--text-faint);
}
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  color: var(--text-faint);
  transition: all 0.3s;
}
.step-circle.active {
  border-color: var(--gold);
  background: rgba(212,168,87,0.12);
  color: var(--gold);
}
.step-circle.done {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  border-color: var(--gold);
  color: var(--void);
}
.step-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.step-connector {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 0 0.5rem;
  margin-bottom: 1.2rem;
}
.scan-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: rgba(212,168,87,0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.upgrade-prompt-card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.upgrade-prompt-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--gold-soft);
  margin-bottom: 0.75rem;
}
.upgrade-prompt-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}
.upgrade-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.loader {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}
.loader.visible { display: flex; }
.loader-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(184,156,255,0.7), rgba(45,31,92,0.9));
  border: 1px solid rgba(184,156,255,0.3);
  animation: orb-pulse 2.5s ease-in-out infinite;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 40px rgba(124,92,255,0.4);
}
.loader-text {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  animation: fade-pulse 2s ease-in-out infinite;
}
.loader-sub {
  color: var(--text-faint);
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 0.6rem;
}
.error-bar {
  display: none;
  padding: 0.85rem 1.25rem;
  background: rgba(180,60,60,0.15);
  border: 1px solid rgba(180,60,60,0.3);
  border-radius: var(--radius);
  color: #f09090;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7,6,15,0.85);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--night);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-deep), var(--glow-aurora);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold-soft);
  margin-bottom: 0.4rem;
}
.modal-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.field input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(7,6,15,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus { border-color: var(--gold); }
.field input::placeholder { color: var(--text-faint); }
.modal-footer-note {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════
   PRICING — 3-card layout (Glimpse / Seeker / Oracle)
   Extends index.html's .pricing-pair to handle 3 cards
   ════════════════════════════════════════════════════════════════ */
.pricing-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
  align-items: stretch;
}
.pricing-trio .pricing-card { display: flex; flex-direction: column; }
.pricing-trio .pricing-card .pricing-list { flex: 1; }

@media (max-width: 980px) {
  .pricing-trio { grid-template-columns: 1fr 1fr; max-width: 760px; }
  .pricing-trio .pricing-card:first-child { grid-column: 1 / -1; max-width: 460px; margin: 0 auto 0; }
}
@media (max-width: 640px) {
  .pricing-trio { grid-template-columns: 1fr; max-width: 460px; }
  .pricing-trio .pricing-card:first-child { max-width: none; }
}

/* Glimpse card — softer styling than Seeker/Oracle */
.pricing-card.pricing-glimpse {
  border-color: var(--border-soft);
}
.pricing-card.pricing-glimpse .pricing-amount .amount-value {
  font-size: 2.4rem;
}

/* ════════════════════════════════════════════════════════════════
   CONTAINER-SM helper (tool page)
   ════════════════════════════════════════════════════════════════ */
.container-sm {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ════════════════════════════════════════════════════════════════
   SCAN COUNTER pill
   ════════════════════════════════════════════════════════════════ */
.scan-counter {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(212,168,87,0.08);
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* ════════════════════════════════════════════════════════════════
   MOBILE NAV — hamburger toggle (used in standalone reader.html / pricing.html)
   ════════════════════════════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  background: none; border: none;
  width: 30px; height: 30px;
  flex-direction: column; justify-content: space-between;
  cursor: pointer; padding: 6px 4px;
  z-index: 11;
}
.nav-hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--gold-soft);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: min(280px, 80vw);
  height: 100vh;
  background: linear-gradient(180deg, var(--abyss), var(--void));
  border-left: 1px solid var(--border);
  list-style: none;
  padding: 5rem 1.5rem 2rem;
  margin: 0;
  z-index: 10;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.nav-mobile.open { display: block; transform: translateX(0); }
.nav-mobile li { list-style: none; margin-bottom: 0.5rem; }
.nav-mobile a {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.nav-mobile a:hover { background: var(--surface-glass); color: var(--gold-soft); }
.nav-mobile a.nav-cta {
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--void);
  font-weight: 600;
  text-align: center;
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   SECTION-EYEBROW + SECTION-TITLE for reading result blocks
   (matches existing eyebrow style from index.html)
   ════════════════════════════════════════════════════════════════ */
.section-eyebrow {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

/* ════════════════════════════════════════════════════════════════
   AUTH — login modal, nav avatar, account page, welcome toast
   Reuses .modal-backdrop / .modal-box / .field / .btn-* tokens.
   ════════════════════════════════════════════════════════════════ */

/* Nav slot wrapper (button is .nav-login-btn — defined near .nav-cta) */
.nav-auth-slot { display: flex; align-items: center; }

/* Nav avatar */
.nav-avatar-wrap {
  position: relative;
  display: inline-flex;
}
.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: linear-gradient(135deg, var(--orchid), var(--mystic));
  color: var(--gold-soft);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.2s;
}
.nav-avatar:hover {
  box-shadow: 0 0 16px rgba(212, 168, 87, 0.45);
  transform: translateY(-1px);
}
.nav-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.nav-avatar-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 230px;
  background: var(--night);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 150;
}
.nav-avatar-wrap.open .nav-avatar-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-avatar-menu-head {
  padding: 0.65rem 0.85rem 0.7rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-avatar-menu-head strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}
.nav-avatar-menu-head span {
  font-size: 0.78rem;
  color: var(--text-faint);
  word-break: break-all;
}
.nav-avatar-menu-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  color: var(--text-muted) !important;
  text-decoration: none;
  font-size: 0.85rem !important;
  letter-spacing: 0;
  transition: background 0.18s, color 0.18s;
}
.nav-avatar-menu-item:hover {
  background: rgba(212, 168, 87, 0.06);
  color: var(--gold-soft) !important;
}
.nav-avatar-menu-item span:first-child {
  font-size: 1rem;
  width: 18px;
  text-align: center;
}

/* Login modal — extends .modal-backdrop / .modal-box */
.login-modal .modal-box { max-width: 420px; }
.login-modal .login-state[hidden] { display: none; }
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  background: #ffffff;
  color: #1f1f1f !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.25s, background 0.2s;
  box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.4);
}
.btn-google:hover {
  background: #f7f7f8;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.45);
}
.btn-google .g-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.4rem 0 1.1rem;
  color: var(--text-faint);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-soft), transparent);
}
.login-error {
  display: none;
  padding: 0.7rem 0.85rem;
  background: rgba(180, 60, 60, 0.1);
  border: 1px solid rgba(180, 60, 60, 0.3);
  border-radius: var(--radius);
  color: #f09090;
  font-size: 0.85rem;
  margin-top: 0.85rem;
  text-align: center;
}
#sentEmail { color: var(--gold-soft); font-weight: 500; }

/* Welcome toast (bottom-right) */
.welcome-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  background: linear-gradient(135deg, var(--mystic), var(--night));
  color: var(--text);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.85rem 1.2rem;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-deep), 0 0 24px rgba(212, 168, 87, 0.25);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  max-width: min(360px, calc(100vw - 48px));
}
.welcome-toast.show { opacity: 1; transform: translateY(0); }
.welcome-toast.is-error {
  border-color: rgba(180, 60, 60, 0.45);
  box-shadow: var(--shadow-deep), 0 0 18px rgba(180, 60, 60, 0.25);
}
@media (max-width: 560px) {
  .welcome-toast {
    left: 16px; right: 16px; bottom: 16px;
    max-width: none;
  }
}

/* ════════════════════════════════════════════════════════════════
   ACCOUNT PAGE
   ════════════════════════════════════════════════════════════════ */
.account-hero {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}
.account-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-top: 0.5rem;
}
.account-section { padding: 2rem 0 6rem; }

.account-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.3rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  margin-bottom: 1.25rem;
}
.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, var(--orchid), var(--mystic));
  color: var(--gold-soft);
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account-id { min-width: 0; }
.account-id h1 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 0;
  line-height: 1.15;
}
.account-id .account-email {
  font-size: 0.88rem;
  color: var(--text-muted);
  word-break: break-all;
}
.account-logout { white-space: nowrap; }

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s;
}
.stat-card:hover {
  border-color: var(--border);
  transform: translateY(-1px);
}
.stat-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--gold-soft);
  letter-spacing: -0.01em;
}

.account-readings .section-head { text-align: left; margin-bottom: 1.25rem; }
.readings-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.reading-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  background: var(--surface-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s;
}
.reading-row:hover {
  border-color: var(--border);
  transform: translateY(-1px);
}
.reading-row-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.reading-row-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text);
  font-style: italic;
}
.plan-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}
.plan-badge.plan-oracle {
  color: var(--gold-soft);
  border-color: var(--gold);
  background: rgba(212, 168, 87, 0.08);
}
.plan-badge.plan-seeker {
  color: var(--aurora);
  border-color: rgba(184, 156, 255, 0.35);
  background: rgba(184, 156, 255, 0.06);
}
.reading-row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.reading-row-actions .btn {
  padding: 9px 16px;
  font-size: 0.82rem;
  border-radius: 100px;
}
.readings-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  background: var(--surface-glass);
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius);
}
.readings-empty p { margin-bottom: 1rem; }

/* "Sign in to see your readings" empty state */
.account-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  max-width: 520px;
  margin: 0 auto;
}
.account-empty-orb {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(212, 168, 87, 0.4));
}
.account-empty h2 {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}
.account-empty p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 380px;
  margin-left: auto; margin-right: auto;
}

/* Re-read modal — wider than login modal, scrollable body */
.reading-modal .reading-modal-box {
  max-width: 720px;
  max-height: min(86vh, 900px);
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.reading-modal .reading-modal-body {
  overflow-y: auto;
  padding: 2.5rem 2rem 2rem;
}
.reading-modal .modal-close {
  top: 0.85rem;
  right: 0.85rem;
  z-index: 1;
  background: rgba(7, 6, 15, 0.7);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  .account-header {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "avatar id"
      "logout logout";
    row-gap: 1rem;
  }
  .account-avatar { grid-area: avatar; }
  .account-id { grid-area: id; }
  .account-logout { grid-area: logout; justify-self: stretch; text-align: center; }
  .account-stats { grid-template-columns: 1fr; }
  .reading-row {
    grid-template-columns: 1fr;
  }
  .reading-row-actions { justify-content: flex-start; }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE NAV — Logo | CTA | Menu order, ≤ 768px
   ════════════════════════════════════════════════════════════════ */

.nav-cta-mobile {
  display: none;
  padding: 0.45rem 0.85rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--void);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border: none;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem;
  }
  .main-nav .logo {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    line-height: 1.1;
  }
  .main-nav .logo .logo-text { display: inline; }
  .nav-cta-mobile { display: inline-flex; align-items: center; }
  .nav-links { display: none; }
}

/* Very narrow screens (≤ 380px) — let logo break to 2 lines */
@media (max-width: 380px) {
  .main-nav .logo {
    font-size: 0.92rem;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
  }
  .main-nav .logo .logo-mark { margin-bottom: 0.15rem; }
  .nav-cta-mobile {
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
  }
}

/* Mobile drawer — auth slot styled as a card-ish item, not a thin link */
.nav-auth-slot-mobile a {
  display: block;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  text-align: center;
  border: 1px solid rgba(212, 168, 87, 0.35);
  border-radius: var(--radius);
  color: var(--gold-soft);
  background: rgba(212, 168, 87, 0.06);
}

/* ════════════════════════════════════════════════════════════════
   FOOTER — Account column + CTA strip
   ════════════════════════════════════════════════════════════════ */

.footer-cta-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  margin: 2rem 0 1rem;
  background: rgba(212, 168, 87, 0.04);
  border: 1px solid rgba(212, 168, 87, 0.2);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.footer-cta-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
}
.footer-auth-list a {
  color: var(--gold-soft);
  font-weight: 500;
}
.footer-auth-list a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .footer-cta-strip {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
  }
}

/* ════════════════════════════════════════════════════════════════
   FOOTER BRAND LOGO — full PNG lockup (replaces .logo in footer)
   ════════════════════════════════════════════════════════════════ */
.footer-brand-logo {
  display: inline-block;
  width: 140px;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}
.footer-brand-logo img {
  width: 100%;
  height: auto;
  display: block;
}
.footer-brand-logo:hover {
  transform: scale(1.03);
}

/* Tablet — same size, brand column has more breathing room */
@media (max-width: 1024px) {
  .footer-brand-logo { width: 130px; }
}

/* Mobile — slightly smaller, centered with brand column */
@media (max-width: 560px) {
  .footer-brand-logo { width: 120px; margin: 0 auto 1rem; }
  .footer-inner .footer-col:first-child { text-align: center; }
}

