/* =========================================================
   ExpatSpark AI — design system
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --violet-50: #f5f3ff;
  --violet-100: #ede9fe;
  --violet-200: #ddd6fe;
  --violet-300: #c4b5fd;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --violet-800: #5b21b6;
  --pink-500: #ec4899;
  --ink-900: #0f0a1e;
  --ink-800: #1a1233;
  --ink-700: #2a1f4a;
  --ink-500: #6b6682;
  --ink-100: #f5f3ff;
  --bg: #fafaff;
  --card: #ffffff;
  --surface: #f8f7fc;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --border: #ecebf3;
  --shadow-sm: 0 1px 3px rgba(15, 10, 30, 0.06);
  --shadow: 0 10px 30px -10px rgba(109, 40, 217, 0.15);
  --shadow-lg: 0 25px 50px -12px rgba(109, 40, 217, 0.25);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --max: 1200px;
  --gradient-spark: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%);
  /* gradient-dusk: pink endpoint deepened from #ec4899 (3.53:1) to #be185d
     (6.04:1) so white text on .btn-primary, .step-num, .section-cta, .bp-hero
     passes WCAG AA. Brand pink character preserved. */
  --gradient-dusk: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #be185d 100%);
  --strip-bg: radial-gradient(ellipse 70% 160% at 75% 50%, rgba(236,72,153,0.13) 0%, transparent 65%),
              radial-gradient(ellipse 60% 160% at 25% 50%, rgba(124,58,237,0.10) 0%, transparent 65%),
              linear-gradient(to bottom, var(--bg) 0%, #f3eeff 30%, #fce9ff 50%, #f3eeff 70%, var(--bg) 100%);
}

/* ============ Dark theme tokens ============ */
:root[data-theme="dark"] {
  --ink-900: #f4f2fa;
  --ink-800: #dcd8e8;
  --ink-700: #b8b3c9;
  --ink-500: #8d88a0;
  --ink-100: #1e1c26;
  --bg: #14121a;
  --card: #1e1c26;
  --surface: #27242f;
  --nav-bg: rgba(20, 18, 26, 0.82);
  --border: #2e2b38;
  --violet-50: rgba(124, 58, 237, 0.16);
  --violet-100: rgba(124, 58, 237, 0.22);
  --violet-200: rgba(124, 58, 237, 0.3);
  --violet-800: #c4b5fd;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  --strip-bg: radial-gradient(ellipse 70% 160% at 75% 50%, rgba(236,72,153,0.12) 0%, transparent 65%),
              radial-gradient(ellipse 60% 160% at 25% 50%, rgba(124,58,237,0.18) 0%, transparent 65%),
              linear-gradient(to bottom, var(--bg) 0%, #1d1a26 30%, #231a2c 50%, #1d1a26 70%, var(--bg) 100%);
  --footer-bg: #0a0713;
  --footer-text: #b8b4c7;
  --footer-heading: #ffffff;
  --footer-border: rgba(255, 255, 255, 0.06);
  --footer-divider: rgba(255, 255, 255, 0.08);
  --footer-muted: #8d88a0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink-900: #f4f2fa;
    --ink-800: #dcd8e8;
    --ink-700: #b8b3c9;
    --ink-500: #8d88a0;
    --ink-100: #1e1c26;
    --bg: #14121a;
    --card: #1e1c26;
    --surface: #27242f;
    --nav-bg: rgba(20, 18, 26, 0.82);
    --border: #2e2b38;
    --violet-50: rgba(124, 58, 237, 0.16);
    --violet-100: rgba(124, 58, 237, 0.22);
    --violet-200: rgba(124, 58, 237, 0.3);
    --violet-800: #c4b5fd;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --strip-bg: radial-gradient(ellipse 70% 160% at 75% 50%, rgba(236,72,153,0.12) 0%, transparent 65%),
                radial-gradient(ellipse 60% 160% at 25% 50%, rgba(124,58,237,0.18) 0%, transparent 65%),
                linear-gradient(to bottom, var(--bg) 0%, #1d1a26 30%, #231a2c 50%, #1d1a26 70%, var(--bg) 100%);
    --footer-bg: #0a0713;
    --footer-text: #b8b4c7;
    --footer-heading: #ffffff;
    --footer-border: rgba(255, 255, 255, 0.06);
    --footer-divider: rgba(255, 255, 255, 0.08);
    --footer-muted: #8d88a0;
  }
}

/* Dark-mode specific element overrides */
:root[data-theme="dark"] .eyebrow {
  color: #d6beff;
}
:root[data-theme="dark"] .btn-outline {
  color: #d6beff;
  border-color: var(--violet-400);
}
:root[data-theme="dark"] .btn-ghost { color: var(--ink-800); }
:root[data-theme="dark"] .btn-ghost:hover { background: var(--violet-50); }
:root[data-theme="dark"] .hc-row .hc-label { color: var(--ink-700); }
:root[data-theme="dark"] .hc-score { color: #d6beff; }
:root[data-theme="dark"] .price-card h3 { color: #d6beff; }
:root[data-theme="dark"] .price-card-featured { border-color: var(--violet-400); }
:root[data-theme="dark"] .price-badge { background: var(--violet-600); color: #fff; }
:root[data-theme="dark"] .nav-links a { color: var(--ink-700); }
:root[data-theme="dark"] .nav-links a:hover { color: #d6beff; }
:root[data-theme="dark"] .section-alt { background: var(--card); }
:root[data-theme="dark"] .auth-error { background: rgba(220, 38, 38, 0.12); color: #fca5a5; border-color: rgba(220, 38, 38, 0.3); }
:root[data-theme="dark"] .auth-backdrop { background: rgba(0, 0, 0, 0.65); }
:root[data-theme="dark"] .quiz-option { color: var(--ink-800); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow {
    color: #d6beff;
  }
  :root:not([data-theme="light"]) .btn-outline {
    color: #d6beff;
    border-color: var(--violet-400);
  }
  :root:not([data-theme="light"]) .btn-ghost { color: var(--ink-800); }
  :root:not([data-theme="light"]) .btn-ghost:hover { background: var(--violet-50); }
  :root:not([data-theme="light"]) .hc-row .hc-label { color: var(--ink-700); }
  :root:not([data-theme="light"]) .hc-score { color: #d6beff; }
  :root:not([data-theme="light"]) .price-card h3 { color: #d6beff; }
  :root:not([data-theme="light"]) .price-card-featured { border-color: var(--violet-400); }
  :root:not([data-theme="light"]) .price-badge { background: var(--violet-600); color: #fff; }
  :root:not([data-theme="light"]) .nav-links a { color: var(--ink-700); }
  :root:not([data-theme="light"]) .nav-links a:hover { color: #d6beff; }
  :root:not([data-theme="light"]) .section-alt { background: var(--card); }
  :root:not([data-theme="light"]) .auth-error { background: rgba(220, 38, 38, 0.12); color: #fca5a5; border-color: rgba(220, 38, 38, 0.3); }
  :root:not([data-theme="light"]) .auth-backdrop { background: rgba(0, 0, 0, 0.65); }
  :root:not([data-theme="light"]) .quiz-option { color: var(--ink-800); }
}

/* Theme toggle button */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  color: var(--ink-700);
  background: transparent;
  transition: background 0.2s, color 0.2s, transform 0.3s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--violet-50); color: var(--violet-700); }
.theme-toggle svg { width: 18px; height: 18px; }

/* Footer variant — pill with label, adapts to current theme */
.theme-toggle-footer {
  width: auto; height: auto;
  padding: 0.45rem 0.9rem;
  gap: 0.5rem;
  border-radius: 999px;
  background: var(--toggle-bg, rgba(15, 10, 30, 0.05));
  color: var(--toggle-color, #4a4560);
  border: 1px solid var(--toggle-border, rgba(15, 10, 30, 0.1));
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.theme-toggle-footer:hover {
  background: var(--toggle-bg-hover, rgba(15, 10, 30, 0.08));
  color: var(--toggle-color-hover, #0f0a1e);
  border-color: var(--toggle-border-hover, rgba(15, 10, 30, 0.2));
}
.theme-toggle-footer svg { width: 15px; height: 15px; }
.theme-toggle-label { line-height: 1; }

/* Dark-mode toggle tokens */
:root[data-theme="dark"] {
  --toggle-bg: rgba(255, 255, 255, 0.06);
  --toggle-color: #d6d0e3;
  --toggle-border: rgba(255, 255, 255, 0.1);
  --toggle-bg-hover: rgba(255, 255, 255, 0.12);
  --toggle-color-hover: #ffffff;
  --toggle-border-hover: rgba(255, 255, 255, 0.2);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --toggle-bg: rgba(255, 255, 255, 0.06);
    --toggle-color: #d6d0e3;
    --toggle-border: rgba(255, 255, 255, 0.1);
    --toggle-bg-hover: rgba(255, 255, 255, 0.12);
    --toggle-color-hover: #ffffff;
    --toggle-border-hover: rgba(255, 255, 255, 0.2);
  }
}
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ============ Scroll reveal (pop-up on scroll) ============ */
/* Uses a keyframe animation instead of transition so per-element
   `transition` shorthands (e.g. on .flag-pill, .feature-card) don't
   accidentally strip opacity/transform from the reveal. */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  will-change: opacity, transform;
}
.reveal.is-visible {
  animation: reveal-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms) both;
}
@keyframes reveal-pop {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* While theme is switching, skip animation so nothing flashes */
:root.theme-switching .reveal { animation: none !important; }
/* Respect user's reduced motion preference (belt + suspenders with JS guard) */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* Smooth color transitions when theme toggles */
html, body, .nav, .hero-card, .hero-card-header, .feature-card, .price-card,
.price-card-featured, .bp-card, .tool-card, .fear-card, .roadmap-phase,
.chat-box, .chat-msg, .quiz-input, .flag-pill, .section-alt, .footer,
.auth-card, .auth-field input, .auth-field select, .auth-field textarea,
.auth-oauth-btn, .social-btn, .dash-tab, .quiz-option {
  transition: background-color 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* While the theme attribute is being swapped we disable transitions so the
   browser always commits a fresh paint (Chromium caches var()-backed values
   through transitions and otherwise skips the repaint). */
:root.theme-switching,
:root.theme-switching * {
  transition: none !important;
}

html, body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { scroll-padding-top: 72px; }
body { padding-top: 68px; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

em { font-family: var(--font-display); font-style: italic; font-weight: 700; background: var(--gradient-spark); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ Views (SPA) ============ */
.view { display: none; min-height: 100vh; }
.view-active { display: block; }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.nav-slim { padding: 1rem 2rem; }
.logo {
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 0.35rem;
  cursor: pointer;
  flex-shrink: 0;
}
.logo-ai { background: var(--gradient-spark); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.spark-mark { display: block; flex-shrink: 0; }
.spark-mark-sm { display: block; }
.spark-mark-lg { display: block; }
.nav-links {
  display: flex; align-items: center; gap: 1.5rem;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s;
}
.nav-links a { font-weight: 500; color: var(--ink-700); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--violet-700); }
.nav-mobile-toggle {
  display: none;
  font-size: 1.5rem; line-height: 1;
  color: var(--ink-700);
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  transition: background 0.18s, color 0.18s;
}
.nav-mobile-toggle:hover { background: var(--violet-50); color: var(--violet-700); }
.nav.menu-open .nav-mobile-toggle { background: var(--violet-100); color: var(--violet-800); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gradient-dusk);
  color: white;
  box-shadow: 0 8px 20px -6px rgba(124, 58, 237, 0.5);
}
.btn-primary:hover { box-shadow: 0 12px 28px -6px rgba(124, 58, 237, 0.7); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid var(--violet-600); color: var(--violet-700); background: var(--card); }
.btn-outline:hover { background: var(--violet-50); }
.btn-ghost { color: var(--ink-700); }
.btn-ghost:hover { background: var(--violet-50); color: var(--violet-700); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ============ Hero ============ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 2rem 4.5rem;
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100vh - 68px);
}
.hero-bg-glow {
  position: absolute; inset: -10% -20% auto auto;
  width: 60%; aspect-ratio: 1; z-index: -1;
  background: radial-gradient(circle, rgba(236,72,153,0.25), rgba(124,58,237,0.15) 40%, transparent 70%);
  filter: blur(60px);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}
.hero-sub { font-size: 1.15rem; color: var(--ink-500); margin-bottom: 2rem; max-width: 540px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; align-items: flex-start; }
.hero-cta-primary { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; }
.hero-cta-note { font-size: 0.75rem; color: var(--ink-400); }

.hero-card-wrap { position: relative; }
.hero-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.3s;
}
.hero-card:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.hero-card-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.hero-card-title { margin-left: 0.5rem; font-size: 0.85rem; color: var(--ink-500); font-family: 'SF Mono', monospace; }
.hero-card-body { padding: 1.5rem; display: grid; gap: 0.85rem; }
.hc-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; }
.hc-label { color: var(--ink-700); font-weight: 500; display: flex; align-items: center; gap: 0.4rem; }
.hc-flag { width: 20px; height: auto; border-radius: 2px; vertical-align: middle; flex-shrink: 0; }
.hc-score { color: var(--violet-700); font-weight: 700; }
.hc-val { color: var(--ink-900); font-weight: 600; }
.hc-bar { height: 6px; background: var(--violet-100); border-radius: 3px; overflow: hidden; }
.hc-bar > div { height: 100%; background: var(--gradient-spark); border-radius: 3px; }
.hc-mantra {
  margin-top: 0.5rem;
  padding: 1rem; border-radius: var(--radius-sm);
  background: var(--violet-50);
  color: var(--violet-800);
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
}

/* ============ Logo strip ============ */
.logo-strip {
  padding: 1.1rem 0;
  background: var(--strip-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.logo-strip-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 2rem;
}
.logo-strip-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-400); white-space: nowrap; flex-shrink: 0;
}
.logo-strip-track-wrap {
  flex: 1; overflow: hidden;
}
.logo-strip-track {
  display: flex; align-items: center; gap: 0;
  width: max-content;
  animation: flag-marquee 35s linear infinite;
}
.logo-strip-track:hover { animation-play-state: paused; }
@keyframes flag-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.flag-pill {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  cursor: default;
  white-space: nowrap;
}
.flag-img { width: 18px; height: auto; border-radius: 2px; display: block; }
.flag-name { font-size: 0.82rem; font-weight: 500; color: var(--ink-700); }
.flag-more-text {
  font-size: 0.82rem; font-weight: 500; color: var(--ink-400);
  padding: 0.3rem 1rem;
  white-space: nowrap;
}

/* ============ Sections ============ */
.section { padding: 6rem 2rem; max-width: var(--max); margin: 0 auto; }
#features { padding-bottom: 3rem; }
#pricing  { padding-top: 3rem; }
.section-alt { background: var(--card); max-width: 100%; }
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--violet-600); text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 0.75rem; }
.section-head p { color: var(--ink-500); max-width: 640px; margin: 0 auto; }

/* ============ Feature grid ============ */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  flex: 1 1 300px;
  max-width: 360px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--violet-200);
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--violet-100);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  color: var(--violet-600);
}
.feature-icon svg {
  width: 28px; height: 28px;
  stroke: currentColor; stroke-width: 1.75;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--ink-500); font-size: 0.95rem; flex: 1; }

/* ============ Social proof ============ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.testimonial-quote {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--ink-700);
  flex: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-name { font-size: 0.88rem; font-weight: 700; color: var(--ink-900); }
.testimonial-meta { font-size: 0.78rem; color: var(--ink-500); margin-top: 0.1rem; }

/* ============ Steps ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}
.step { text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--gradient-dusk);
  color: white;
  border-radius: 50%;
  font-weight: 700; font-size: 1.3rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 24px -8px rgba(124,58,237,0.5);
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-500); font-size: 0.95rem; }

/* ============ Pricing ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.875rem;
  max-width: 860px;
  margin: 0 auto;
  padding-top: 12px; /* room for badge overflow */
}
.price-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  border: 0.5px solid var(--border);
  display: flex; flex-direction: column; gap: 0.875rem;
}
.price-card-featured {
  border: 2px solid var(--violet-600);
  padding-top: 1.75rem; /* clear the badge */
}
.price-badge {
  position: absolute; top: -0.65rem; left: 1rem;
  background: var(--violet-100);
  color: #26215c;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem; font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.04em;
  z-index: 1;
}
.price-tier-name { font-size: 0.875rem; color: var(--ink-500); margin: 0; }
.price {
  font-size: 1.65rem; font-weight: 500;
  color: var(--ink-900);
  line-height: 1;
}
.price span { font-size: 0.8rem; color: var(--ink-500); font-weight: 400; }
.price-sub { color: var(--ink-500); font-size: 0.75rem; margin-top: -0.25rem; }
.price-sub-accent { color: var(--violet-600); }
.price-card ul { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.82rem; flex: 1; list-style: none; padding: 0; margin: 0; }
.price-card ul li { color: var(--ink-700); line-height: 1.8; }
.price-trust { text-align: center; color: var(--ink-400); font-size: 0.78rem; margin-top: 1.25rem; }

/* ============ CTA band ============ */
.section-cta {
  background: var(--gradient-dusk);
  color: white;
  text-align: center;
  padding: 5rem 2rem;
  max-width: 100%;
  border-radius: 0;
}
.section-cta h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 0.75rem; color: white; }
.section-cta h2 em { background: none; -webkit-background-clip: unset; background-clip: unset; color: inherit; font-family: var(--font-display); font-style: italic; font-weight: 700; }
.section-cta p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }
.section-cta .btn-primary { background: white; color: var(--violet-700); animation: none; }
.section-cta .btn-primary:hover { background: var(--violet-50); }
.btn-cta-start {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1.35rem;
  background: white;
  color: var(--violet-700);
  font-size: 0.95rem; font-weight: 700;
  border: none; border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  animation: none;
}
.btn-cta-start:hover { background: var(--violet-50); transform: translateY(-1px); }

/* ============ Footer ============ */
.footer {
  background: var(--footer-bg, #f5f3fb);
  color: var(--footer-text, #4a4560);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--footer-border, rgba(15, 10, 30, 0.08));
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-cols .logo { color: var(--footer-heading, #0f0a1e); margin-bottom: 0.75rem; }
.footer-cols h4 { color: var(--footer-heading, #0f0a1e); font-size: 0.9rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-cols a { display: block; color: var(--footer-text, #4a4560); font-size: 0.9rem; padding: 0.25rem 0; }
.footer-cols a:hover { color: var(--footer-heading, #0f0a1e); }
.footer-tag { font-size: 0.9rem; max-width: 320px; color: var(--footer-text, #4a4560); }
.footer-bottom {
  max-width: var(--max); margin: 3rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid var(--footer-divider, rgba(15, 10, 30, 0.08));
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: var(--footer-muted, #8d88a0);
}
/* ============ Quiz ============ */
.quiz-progress-wrap {
  flex: 1; max-width: 400px;
  height: 6px; background: var(--violet-100); border-radius: 999px; overflow: hidden;
  margin: 0 2rem;
}
.quiz-progress { height: 100%; background: var(--gradient-spark); width: 0%; transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 999px; }
.quiz-main { max-width: 720px; margin: 0 auto; padding: 3rem 2rem 4rem; }
.quiz-stage { min-height: 420px; }
.quiz-step h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.5rem; }
.quiz-step .quiz-hint { color: var(--ink-500); margin-bottom: 2rem; font-size: 1rem; }
.quiz-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--card);
}
.quiz-input:focus { outline: none; border-color: var(--violet-500); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12); }
textarea.quiz-input { min-height: 120px; resize: vertical; }
.quiz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; }
.quiz-option {
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
  font-weight: 500;
  transition: all 0.18s;
  color: var(--ink-700);
  font-size: 0.95rem;
}
/* Country picker — flag image + name stacked */
.quiz-option-country {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 0.75rem;
}
.quiz-country-flag {
  width: 32px;
  height: auto;
  border-radius: 3px;
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.quiz-option:hover { border-color: var(--violet-400); background: var(--violet-50); }
.quiz-option.selected {
  border-color: var(--violet-600);
  background: var(--violet-50);
  color: var(--violet-800);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.quiz-custom-country {
  display: inline-flex; align-items: center;
  background: var(--violet-100); color: var(--violet-800);
  border: 1px solid var(--violet-300);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.82rem; font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.quiz-custom-country:hover { background: var(--violet-200); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 2.5rem; }

/* ============ Generating view ============ */
#view-generating { display: none; align-items: center; justify-content: center; padding: 2rem; }
#view-generating.view-active { display: flex; }
.generating-wrap { text-align: center; max-width: 560px; }
.generating-wrap h2 { font-size: 1.8rem; margin-top: 2rem; margin-bottom: 0.5rem; }
.gen-sub { color: var(--ink-500); margin-bottom: 2rem; transition: opacity 0.3s; }
.gen-bar { height: 6px; background: var(--violet-100); border-radius: 999px; overflow: hidden; width: 100%; max-width: 360px; margin: 0 auto; }
#gen-fill { height: 100%; background: var(--gradient-spark); width: 0%; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 999px; }
.gen-mantra {
  margin-top: 2rem;
  font-family: var(--font);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--violet-700);
  min-height: 2.5rem;
  transition: opacity 0.3s;
}

/* Spark orb animation */
.spark-orb {
  position: relative;
  width: 160px; height: 160px;
  margin: 0 auto;
}
.spark-orb-core {
  position: absolute; inset: 30%;
  background: var(--gradient-spark);
  border-radius: 50%;
  animation: pulse-core 2s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(236, 72, 153, 0.6);
}
.spark-orb-ring {
  position: absolute; inset: 0;
  border: 2px solid var(--violet-400);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 2s linear infinite;
}
.spark-orb-ring.r2 {
  inset: 15%;
  border: 2px dashed var(--pink-500);
  border-left-color: transparent;
  animation: spin 3s linear infinite reverse;
}
@keyframes pulse-core {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Dashboard ============ */
.dash-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.dash-tab {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.18s;
}
.dash-tab:hover { background: var(--violet-50); color: var(--violet-700); }
.dash-tab.active { background: var(--violet-100); color: var(--violet-800); }
.dash-main { max-width: var(--max); margin: 0 auto; padding: 2rem; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Blueprint cards */
.bp-hero {
  background: var(--gradient-dusk);
  color: white;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bp-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(236,72,153,0.4), transparent 50%);
}
.bp-hero h1 { font-family: var(--font); font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.75rem; position: relative; }
.bp-hero p { opacity: 0.9; max-width: 640px; margin: 0 auto; position: relative; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.bp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.18s, box-shadow 0.18s;
}
.bp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
/* Country grid: subgrid makes every row align across all cards */
.country-grid {
  grid-template-rows: auto;
  align-items: start;
}
.bp-country-card {
  display: grid;
  grid-row: span 8; /* head + desc + 5 bp-rows + tip */
  grid-template-rows: subgrid;
  align-content: start;
}
.bp-country-desc {
  color: var(--ink-500);
  font-size: 0.95rem;
  line-height: 1.5;
  overflow: hidden;
  align-self: start;
}
.bp-tip { align-self: end; }

/* City + region recommendations inside each country card */
.bp-cities { padding: 0.75rem 0; }
.bp-cities-label {
  color: var(--ink-500);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.bp-city-list { display: flex; flex-direction: column; gap: 0.6rem; }
.bp-city {
  background: var(--violet-50);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--violet-500);
}
.bp-city-head { font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--ink-900); }
.bp-city-region { color: var(--ink-500); font-weight: 400; font-size: 0.88rem; }
.bp-city-vibe { font-size: 0.85rem; color: var(--ink-700); line-height: 1.45; }
.bp-country-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 1rem; gap: 1rem; min-height: 2.5rem; }
.bp-country-name { font-family: var(--font); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.bp-match-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--violet-100);
  color: var(--violet-800);
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.bp-row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px dashed var(--border); font-size: 0.92rem; gap: 1rem; }
.bp-row:last-child { border: none; }
.bp-row-label { color: var(--ink-500); white-space: nowrap; }
.bp-row-val { color: var(--ink-900); font-weight: 500; text-align: right; }
.bp-tip { margin-top: 1rem; padding: 1rem; background: var(--violet-50); border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--violet-800); font-style: italic; }

/* Roadmap timeline */
.roadmap-phase {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 3.5rem;
}
.roadmap-phase::before {
  content: ""; position: absolute;
  left: 1.25rem; top: 1.75rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gradient-spark);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.2);
}
.roadmap-phase::after {
  content: ""; position: absolute;
  left: calc(1.25rem + 7px); top: 3.25rem; bottom: -1.25rem;
  width: 2px; background: var(--violet-200);
}
.roadmap-phase:last-child::after { display: none; }
.roadmap-phase h3 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--violet-700); }
.roadmap-phase .phase-goal { color: var(--ink-500); margin-bottom: 1rem; font-size: 0.95rem; }
.roadmap-phase ul li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border);
}
.roadmap-phase ul li:last-child { border: none; }
.roadmap-phase ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0.5rem;
  color: var(--violet-600); font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--violet-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}
.roadmap-phase ul li.done { color: var(--ink-500); text-decoration: line-through; }
.roadmap-phase ul li.done::before { background: var(--violet-600); color: white; }

/* Documents / First week / Fears cards */
.fear-card { background: var(--card); border-left: 3px solid var(--pink-500); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.fear-card strong { color: var(--pink-500); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 0.35rem; }
.fear-card p { font-size: 0.95rem; }

.mantra-card {
  background: var(--gradient-spark);
  color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  font-family: var(--font);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 700;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

/* Tools (cost calc) */
.tool-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem; }
.tool-card h3 { margin-bottom: 1rem; }
.tool-card-locked { position: relative; opacity: 0.85; }
.tool-lock-badge {
  display: inline-block; margin-bottom: 0.75rem;
  background: var(--gradient-spark); color: white;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.65rem; border-radius: 999px;
}
.dc-category { margin-top: 1.25rem; }
.dc-category-name {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--violet-600); margin-bottom: 0.5rem;
}
.dc-item {
  display: flex; gap: 0.75rem; align-items: center;
  padding: 0.65rem 0; border-bottom: 1px dashed var(--border);
  cursor: pointer;
}
.dc-item input[type="checkbox"] { margin-top: 0; flex-shrink: 0; accent-color: var(--violet-600); }
.dc-item-name { font-size: 0.9rem; color: var(--ink-900); }
.dc-item-note { font-size: 0.8rem; color: var(--ink-500); margin-top: 0.2rem; }

/* Locked tab state */
.tab-locked {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 480px;
  margin: 0 auto;
}
.tab-locked-icon { font-size: 3rem; margin-bottom: 1rem; color: var(--violet-600); }
.tab-locked-icon svg { width: 48px; height: 48px; }
.tab-locked h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.tab-locked p { color: var(--ink-500); margin-bottom: 2rem; line-height: 1.6; }

/* Roadmap personalize bar */
.rm-personalize-bar {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.tool-inline { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tool-inline .quiz-input { flex: 1; min-width: 140px; }
.cost-result { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.cost-item {
  padding: 0.9rem; background: var(--violet-50);
  border-radius: var(--radius-sm);
}
.cost-item-label { font-size: 0.8rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.05em; }
.cost-item-val { font-size: 1.1rem; font-weight: 700; color: var(--violet-800); }
.cost-total {
  margin-top: 1rem; padding: 1.25rem; background: var(--gradient-dusk); color: white;
  border-radius: var(--radius-sm);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.1rem; font-weight: 700;
}

/* Social generator */
.social-platforms { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.social-btn {
  padding: 0.6rem 1.2rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-weight: 500;
  transition: all 0.18s;
  font-size: 0.9rem;
  color: var(--ink-700);
}
.social-btn.active { background: var(--violet-100); border-color: var(--violet-600); color: var(--violet-800); }
.social-output {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--card);
  color: var(--ink-900);
  border: 1px dashed var(--violet-300);
  border-radius: var(--radius);
  white-space: pre-wrap;
  font-size: 0.95rem;
  min-height: 140px;
  line-height: 1.7;
}
.picture-ideas {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  white-space: normal;
}
.picture-ideas-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet-600);
  margin-bottom: 0.6rem;
}
.picture-ideas ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.picture-ideas ul li {
  font-size: 0.9rem;
  color: var(--ink-700);
  padding-left: 1.25rem;
  position: relative;
}
.picture-ideas ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--violet-400);
}
.copy-row { display: flex; justify-content: flex-end; margin-top: 0.75rem; }

/* Chat */
.chat-box {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; height: 70vh; max-height: 720px;
}
.chat-log { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.chat-msg { max-width: 80%; padding: 0.85rem 1.1rem; border-radius: var(--radius); font-size: 0.95rem; line-height: 1.55; white-space: pre-wrap; }
.chat-msg.user { align-self: flex-end; background: var(--gradient-dusk); color: white; border-bottom-right-radius: 4px; }
.chat-msg.assistant { align-self: flex-start; background: var(--violet-50); color: var(--ink-900); border-bottom-left-radius: 4px; }
.chat-msg .md-h { font-size: 1rem; font-weight: 700; margin: 0.75rem 0 0.25rem; }
.chat-msg h3.md-h { font-size: 1.05rem; }
.chat-msg .md-p { margin: 0.25rem 0; }
.chat-msg .md-list { padding-left: 1.25rem; margin: 0.35rem 0; display: flex; flex-direction: column; gap: 0.2rem; }
.chat-msg code { background: rgba(0,0,0,0.12); padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.88em; font-family: monospace; }
.chat-msg br { display: block; content: ""; margin: 0.15rem 0; }
.chat-input-row {
  display: flex; gap: 0.5rem; padding: 1rem;
  border-top: 1px solid var(--border);
}
.chat-input-row input {
  flex: 1;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink-900);
}
.chat-input-row input:focus { outline: none; border-color: var(--violet-500); }
.chat-empty { text-align: center; color: var(--ink-500); margin: auto; padding: 2rem; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
.chat-suggestion {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--violet-200);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.85rem;
  color: var(--violet-700);
  transition: all 0.18s;
}
.chat-suggestion:hover { background: var(--violet-50); }

/* ============ Auth modal ============ */
.auth-modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.auth-modal.open { display: flex; animation: fadeIn 0.2s; }
.auth-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 10, 30, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.auth-card {
  position: relative;
  width: 100%; max-width: 440px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  max-height: 95vh;
  overflow-y: auto;
  scrollbar-width: none;
  animation: authPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-card::-webkit-scrollbar { display: none; }
.faq-card { max-width: 580px; }
.faq-list { display: flex; flex-direction: column; gap: 0.25rem; }
.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-item[open] { background: var(--violet-50); border-color: var(--violet-200); }
.faq-q {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1rem;
  font-size: 0.92rem; font-weight: 600; color: var(--ink-900);
  cursor: pointer; user-select: none; gap: 0.75rem;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 1.25rem; font-weight: 400; color: var(--violet-600);
  flex-shrink: 0; transition: transform 0.2s;
}
.faq-item[open] .faq-q::after { content: '−'; }
.faq-a {
  padding: 0 1rem 0.85rem;
  font-size: 0.87rem; color: var(--ink-500); line-height: 1.6;
  margin: 0;
}
@keyframes authPop {
  from { transform: translateY(16px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.auth-close {
  position: absolute; top: 0.75rem; right: 0.9rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--ink-500);
  font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s, color 0.18s;
}
.auth-close:hover { background: var(--violet-50); color: var(--violet-700); }
.auth-brand { text-align: center; margin-bottom: 0.25rem; }
.auth-title {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.35rem;
}
.auth-sub {
  text-align: center;
  color: var(--ink-500);
  font-size: 0.9rem;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.auth-oauth { display: flex; flex-direction: column; gap: 0.5rem; }
.auth-oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font-weight: 600; font-size: 0.95rem;
  color: var(--ink-900);
  transition: border-color 0.18s, background 0.18s;
}
.auth-oauth-btn:hover { border-color: var(--violet-400); background: var(--violet-50); }
.auth-oauth-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink-100);
  font-weight: 800; font-size: 0.85rem;
  color: var(--violet-700);
}
.auth-oauth-icon--google {
  background: none;
  width: 18px; height: 18px;
}
.auth-divider {
  display: flex; align-items: center;
  color: var(--ink-500); font-size: 0.8rem;
  margin: 1.25rem 0;
  gap: 0.75rem;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.auth-form { display: flex; flex-direction: column; gap: 0.65rem; }
.auth-field { display: flex; flex-direction: column; gap: 0.3rem; }
.auth-field > span {
  font-size: 0.85rem; font-weight: 600; color: var(--ink-700);
}
.auth-field input {
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.18s, box-shadow 0.18s;
  background: var(--card);
}
.auth-field input:focus {
  outline: none;
  border-color: var(--violet-500);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.auth-field select,
.auth-field textarea {
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--card);
  width: 100%;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.auth-field select:focus,
.auth-field textarea:focus {
  outline: none;
  border-color: var(--violet-500);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.auth-field textarea { resize: vertical; min-height: 90px; }
.auth-field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6682' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

/* Magic link sent confirmation */
.auth-sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0;
  animation: fadeIn 0.25s ease;
}
.auth-sent-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.4rem;
}
.auth-sent-sub {
  font-size: 0.88rem;
  color: var(--ink-500);
  line-height: 1.6;
}
/* Backdrop is decorative only — clicking it does nothing (hard gate) */
.gate-backdrop { pointer-events: none; }
.auth-error {
  padding: 0.7rem 0.9rem;
  background: #fff1f2;
  border: 1px solid #fda4af;
  color: #9f1239;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.auth-link {
  color: var(--violet-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-legal {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--ink-500);
  text-align: center;
  line-height: 1.5;
}
.auth-legal a { color: var(--violet-700); text-decoration: underline; text-underline-offset: 3px; }

/* User avatar pill in nav */
.user-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: var(--violet-50);
  color: var(--violet-800);
  font-weight: 600; font-size: 0.9rem;
  transition: background 0.18s;
}
.user-chip:hover { background: var(--violet-100); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gradient-dusk);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
}

/* ============ Account dropdown menu ============ */
.nav-account-wrap { position: relative; display: inline-block; }
.account-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 280px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  z-index: 200;
  animation: navDrop 0.16s ease-out;
}
.account-menu[hidden] { display: none; }
.account-menu-header { padding: 0.85rem 0.85rem 0.35rem; }
.account-menu-name { font-weight: 700; font-size: 0.95rem; color: var(--ink-900); }
.account-menu-email { font-size: 0.82rem; color: var(--ink-500); margin-top: 0.15rem; word-break: break-all; }
.account-menu-divider { height: 1px; background: var(--border); margin: 0.4rem 0; }
.account-menu-item {
  display: flex; align-items: center; gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem; font-weight: 500;
  color: var(--ink-900);
  text-align: left;
  background: none; border: none; cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.account-menu-item:hover { background: var(--violet-50); color: var(--violet-800); }
.account-menu-icon { display: inline-flex; width: 1.4rem; justify-content: center; font-size: 1rem; align-items: center; }
.account-menu-danger { color: #dc2626; }
.account-menu-danger:hover { background: rgba(220, 38, 38, 0.08); color: #dc2626; }

/* ============ Account modal (Profile + Subscription) ============ */
.account-card { max-width: 560px; }
.account-tabs {
  display: flex; gap: 0.25rem;
  background: var(--violet-50);
  padding: 0.3rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.account-tab {
  flex: 1;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: none; border: none;
  font-weight: 600; font-size: 0.9rem;
  color: var(--ink-500);
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.account-tab.active { background: var(--card); color: var(--violet-800); box-shadow: var(--shadow-sm); }
.account-tab:hover:not(.active) { color: var(--violet-700); }
.account-panel[hidden] { display: none; }
.auth-success {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.account-section-divider { height: 1px; background: var(--border); margin: 1.5rem 0 1.25rem; }
.account-section-title { font-size: 1rem; font-weight: 700; color: var(--ink-900); margin-bottom: 0.85rem; }

.account-current-plan {
  background: var(--violet-50);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  text-align: center;
}
.account-plan-eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-500); font-weight: 700; }
.account-plan-current { font-size: 1.25rem; font-weight: 800; color: var(--violet-800); margin-top: 0.2rem; }

.account-plans { display: flex; flex-direction: column; gap: 0.85rem; }
.account-plan {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  position: relative;
}
.account-plan-featured { border-color: var(--violet-500); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12); }
.account-plan-badge {
  position: absolute; top: -0.6rem; right: 1rem;
  background: var(--violet-600); color: white;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 999px;
}
.account-plan-name { font-weight: 700; font-size: 1rem; color: var(--ink-900); }
.account-plan-price { font-size: 1.6rem; font-weight: 800; color: var(--violet-800); margin: 0.25rem 0; }
.account-plan-price span { font-size: 0.85rem; color: var(--ink-500); font-weight: 500; }
.account-plan-meta { font-size: 0.8rem; color: var(--ink-500); margin-bottom: 0.6rem; }
.account-plan ul { list-style: none; margin: 0.6rem 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.account-plan li { font-size: 0.88rem; color: var(--ink-700); padding-left: 1.1rem; position: relative; }
.account-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--violet-600); font-weight: 700; }

/* Toast */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(200%);
  background: #1a1033; color: #fff;
  padding: 0.85rem 1.5rem; border-radius: 16px;
  text-align: center; max-width: 320px; line-height: 1.5;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 1.25rem 4rem; gap: 3rem; }
  .hero-card { transform: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .section { padding: 4rem 1.25rem; }
  .nav { padding: 0.85rem 1.25rem; }

  /* Mobile menu */
  .nav-mobile-toggle { display: inline-flex; }
  #view-landing .nav .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 24px -14px rgba(15, 10, 30, 0.18);
    animation: navDrop 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  }
  #view-landing .nav.menu-open .nav-links {
    display: flex;
  }
  #view-landing .nav .nav-links a:not(.btn) {
    display: block;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px dashed var(--border);
    font-weight: 600;
    color: var(--ink-700);
  }
  #view-landing .nav .nav-links a:not(.btn):hover { color: var(--violet-700); }
  #view-landing .nav .nav-links .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
  }
  @keyframes navDrop {
    from { transform: translateY(-8px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  .dash-tabs { gap: 0.15rem; }
  .dash-tab { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
  .price-card-featured { transform: none; }
}

@media (max-width: 600px) {
  .nav { padding: 0.75rem 1rem; }
  .hero-title { font-size: 2rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .quiz-main { padding: 1.5rem 1rem 2.5rem; }
  .quiz-progress-wrap { margin: 0 1rem; }
  .quiz-nav .btn { flex: 1; }
  .dash-main { padding: 1rem; }
  .bp-hero { padding: 2rem 1.25rem; }
  .chat-msg { max-width: 90%; }
  .dash-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .dash-tab { flex-shrink: 0; }
}

/* =========================================================
   Stripe-style flowing gradient
   Subtle, slow animation applied to all elements that use the
   violet→pink brand gradient. Two layered gradients give a sense
   of iridescence; background-position animation + a counter-rotating
   radial hotspot produce the "3D liquid" feel.
   ========================================================= */
@keyframes flow-gradient {
  0%   { background-position: 0% 50%, 100% 50%; }
  50%  { background-position: 100% 50%, 0% 50%; }
  100% { background-position: 0% 50%, 100% 50%; }
}

.btn-primary,
.section-cta,
.bp-hero,
.mantra-card,
.cost-total,
.chat-msg.user,
.step-num,
.hc-bar > div {
  background-image:
    radial-gradient(120% 80% at 15% 20%, rgba(251, 191, 36, 0.35) 0%, rgba(251, 191, 36, 0) 55%),
    linear-gradient(120deg,
      #3b1388 0%,
      #6d28d9 22%,
      #a855f7 40%,
      #ec4899 58%,
      #7c3aed 78%,
      #4c1d95 100%
    );
  background-size: 200% 200%, 300% 300%;
  animation: flow-gradient 20s ease-in-out infinite;
  will-change: background-position;
}

/* Hover nudges the flow noticeably faster on interactive elements */
.btn-primary:hover,
.chat-msg.user:hover {
  animation-duration: 8s;
}

/* Respect users who opt out of motion */
@media (prefers-reduced-motion: reduce) {
  .btn-primary,
  .section-cta,
  .bp-hero,
  .mantra-card,
  .cost-total,
  .chat-msg.user,
  .step-num,
  .hc-bar > div,
  .btn-primary:hover,
  .chat-msg.user:hover {
    animation: none;
  }
}

/* ── About page ───────────────────────────────────────────────────────── */
.about-view {
  min-height: 100vh;
  background: var(--bg);
  padding: 2rem 1.5rem 5rem;
}
.about-header {
  max-width: 1100px;
  margin: 0 auto 2rem;
}
.about-split {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

/* Left — founder */
.about-left {
  position: sticky;
  top: 2rem;
}
.about-photo-wrap {
  margin-bottom: 1.25rem;
}
.about-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--violet-200);
  display: block;
}
.about-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 0.2rem;
}
.about-role {
  font-size: 0.88rem;
  color: var(--violet-500);
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.about-bio p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-600);
  margin-bottom: 0.85rem;
}
.about-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.about-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--violet-600);
  text-decoration: none;
  margin-top: 0.25rem;
  font-weight: 500;
  transition: color 0.18s;
}
.about-contact-link:hover { color: var(--violet-800); }

/* Right — mission */
.about-right {
  padding-top: 0.5rem;
}
.about-spark-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}
.about-mission {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink-900);
  margin-bottom: 1rem;
}
.about-mission-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-500);
  margin-bottom: 2.5rem;
  max-width: 520px;
}
.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-pillar {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.about-pillar:last-child { border-bottom: none; }
.about-pillar h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--violet-500);
  margin-bottom: 0.45rem;
}
.about-pillar p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--ink-600);
  margin: 0;
}
.about-cta {
  display: flex;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-left { position: static; }
}

/* ── Legal pages (Impressum / Privacy Policy) ─────────────────────────── */
.legal-view {
  min-height: 100vh;
  padding: 3rem 1.5rem 5rem;
  background: var(--bg);
}
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  color: var(--ink-500);
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
}
.legal-back:hover { color: var(--violet-600); }
.legal-title {
  font-family: var(--font);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin-bottom: 0.35rem;
}
.legal-meta {
  color: var(--ink-400);
  font-size: 0.88rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}
.legal-section {
  margin-bottom: 2.25rem;
}
.legal-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-800);
  margin: 1rem 0 0.35rem;
}
.legal-section p {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--ink-600);
  margin-bottom: 0.65rem;
}
.legal-section a {
  color: var(--violet-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal-list li {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ink-600);
  padding-left: 1.25rem;
  position: relative;
}
.legal-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--violet-400);
}
.legal-processor {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0.75rem 0;
}
.legal-processor h3 { margin-top: 0; }
.legal-address {
  font-style: normal;
  line-height: 1.85;
  color: var(--ink-700);
  margin: 0.75rem 0 1rem;
}
.legal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  font-size: 0.875rem;
  color: var(--ink-600);
  line-height: 1.75;
  margin-top: 0.75rem;
}
.legal-box p { margin-bottom: 0.4rem; }
.legal-box p:last-child { margin-bottom: 0; }

/* ── Cookie consent banner ────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--ink-900);
  color: #e2e8f0;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 240px;
}
.cookie-banner-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #000;
}
.cookie-banner-text p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-banner-btns {
  display: flex;
  gap: 0.6rem;
}
.cookie-link {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.cookie-link:hover { color: #fff; }
/* Override btn-outline colours for dark background */
.cookie-banner .btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: #e2e8f0;
  background: transparent;
}
.cookie-banner .btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}
/* Footer cookie settings link */
.footer-cookie-link {
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-cookie-link:hover { color: var(--violet-500); }
@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cookie-banner-actions { width: 100%; justify-content: space-between; }
}

/* ── Teaser view ──────────────────────────────────────────────────────── */
.teaser-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}
.teaser-body {
  min-height: calc(100vh - 60px);
  background: var(--bg);
}
.teaser-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
/* Top match card */
.teaser-match-card {
  background: var(--card);
  border: 1.5px solid var(--violet-300);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
}
.teaser-match-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(109,40,217,0.06) 0%, rgba(236,72,153,0.04) 100%);
  pointer-events: none;
}
.teaser-match-score {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--violet-600);
  background: var(--violet-100);
  border-radius: 99px;
  padding: 0.25rem 0.75rem;
  width: fit-content;
  margin-bottom: 0.25rem;
}
[data-theme="dark"] .teaser-match-score { background: rgba(139,92,246,0.18); }
.teaser-match-country {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

/* Visa options */
.teaser-visa-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color 0.18s;
}
.teaser-visa-card:first-child { border-color: var(--violet-200); }
.teaser-visa-card--locked {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
}
.teaser-visa-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-900);
  margin-bottom: 0.2rem;
}

/* Cost headline */
.teaser-cost-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.teaser-cost-label {
  font-size: 0.9rem;
  color: var(--ink-500);
  line-height: 1.5;
}

/* Confidence ribbon */
.teaser-ribbon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--violet-50);
  border: 1px solid var(--violet-200);
  border-radius: var(--radius);
  padding: 0.9rem 1.25rem;
  font-size: 0.9rem;
  color: var(--violet-700);
  font-weight: 500;
}
[data-theme="dark"] .teaser-ribbon { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.25); color: var(--violet-400); }

/* Paywall section */
.teaser-paywall {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  border-top: 1px solid var(--border);
  padding: 4rem 1.5rem 5rem;
}
.teaser-paywall-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.teaser-paywall-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}
.teaser-paywall-sub {
  font-size: 0.95rem;
  color: var(--ink-500);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}
.teaser-unlock-btn {
  font-size: 1.05rem;
  padding: 0.9rem 2.5rem;
}
.teaser-free-note {
  font-size: 0.8rem;
  color: var(--ink-400);
}

