/* ===== css/variables.css ===== */
/* design tokens - adapted from nexhacks liquid glass system */

/* self-hosted inter (latin subset) - removes google fonts as a render-blocking third party */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('/assets/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url('/assets/fonts/inter-800.woff2') format('woff2');
}

/* adjusted system-ui fallback that matches inter metrics to eliminate CLS on font swap */
@font-face {
  font-family: 'Inter Fallback';
  size-adjust: 107.64%;
  ascent-override: 90%;
  descent-override: 22.43%;
  line-gap-override: 0%;
  src: local('Arial'), local('Helvetica'), local('Liberation Sans'), local('DejaVu Sans');
}

/* dark theme (default) */
:root {
  /* mountain meadow palette */
  --meadow-50: #ecfdf7;
  --meadow-100: #d1faec;
  --meadow-200: #a7f3da;
  --meadow-300: #6ee7bf;
  --meadow-400: #34d39e;
  --meadow-500: #10b981;
  --meadow-600: #059666;
  --meadow-700: #047852;
  --meadow-800: #065f42;
  --meadow-900: #064e36;
  --meadow-950: #022c1e;
  --meadow-100-rgb: 209, 250, 236;
  --meadow-200-rgb: 167, 243, 218;
  --meadow-300-rgb: 110, 231, 191;
  --meadow-400-rgb: 52, 211, 158;
  --meadow-500-rgb: 16, 185, 129;
  --meadow-600-rgb: 5, 150, 102;

  /* backgrounds */
  --bg-primary: #000000;
  --bg-secondary: #0d0d0d;
  --bg-tertiary: #171717;
  --bg-hover: #1f1f1f;

  /* text */
  --text-primary: #fafafa;
  --text-secondary: #e5e5e5;
  --text-muted: #a3a3a3;

  /* borders */
  --border: #262626;
  --border-hover: #404040;

  /* accent */
  --accent: var(--meadow-400);
  --accent-hover: var(--meadow-500);
  --accent-glow: rgba(var(--meadow-400-rgb), 0.3);
  --accent-dim: rgba(var(--meadow-400-rgb), 0.15);

  /* gold (prestige / completed) */
  --gold: #f59e0b;
  --gold-hover: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.3);
  --gold-dim: rgba(245, 158, 11, 0.08);

  /* status */
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;
  --info: #3b82f6;

  /* radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

  /* transitions */
  --transition: 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-fast: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-theme: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);

  /* glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(24px) saturate(200%);

  /* video background -- dark mode uses black since canvas is inverted */
  --video-bg: #000000;

  /* z-index layering system */
  /* layers spaced to allow insertion without renumbering */
  --z-background: -1;
  /* background orbs, decorative elements */
  --z-default: 0;
  /* normal document flow */
  --z-raised: 1;
  /* cards, slight layering within sections */
  --z-content: 2;
  /* content overlays, video layers */
  --z-footer: 3;
  /* footer above content */
  --z-stepper: 50;
  /* lesson stepper sidebar elements */
  --z-stepper-backdrop: 48;
  /* sidebar mobile backdrop */
  --z-stepper-reopen: 55;
  /* sidebar reopen button */
  --z-stepper-panel: 90;
  /* sidebar panel (mobile overlay) */
  --z-stepper-backdrop-mobile: 91;
  /* sidebar backdrop (mobile overlay) */
  --z-stepper-nav: 95;
  /* lesson bottom nav */
  --z-nav: 100;
  /* sticky navigation bar */
  --z-dropdown: 200;
  /* dropdowns, user menu */
  --z-modal-backdrop: 9998;
  /* modal/overlay dim background */
  --z-modal: 9999;
  /* auth modal, confirmation dialogs */
  --z-toast: 10000;
  /* achievement toasts, XP notifications */
  --z-toast-top: 10001;
  /* quest panel, level-up (above toasts) */

  /* visualization tokens */
  --viz-text-primary: #fafafa;
  --viz-text-secondary: rgba(255, 255, 255, 0.7);
  --viz-text-dim: rgba(255, 255, 255, 0.4);
  --viz-bg-tooltip: rgba(0, 0, 0, 0.85);
  --viz-border: rgba(255, 255, 255, 0.15);
  --viz-line: rgba(255, 255, 255, 0.1);

  /* breakpoints (reference only -- CSS cant use vars in media queries) */
  /* --bp-sm: 480px   */
  /* --bp-md: 768px   */
  /* --bp-lg: 900px   (sidebar breakpoint) */
  /* --bp-xl: 1024px  */
  /* --bp-2xl: 1200px */
}

/* light theme */
[data-theme="light"] {
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f0f2;
  --bg-hover: #e8e8ed;

  --text-primary: #000000;
  --text-secondary: #1a1a1a;
  --text-muted: #333333;

  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);

  --accent: var(--meadow-500);
  --accent-hover: var(--meadow-600);
  --accent-glow: rgba(var(--meadow-500-rgb), 0.2);
  --accent-dim: rgba(var(--meadow-500-rgb), 0.12);

  --gold: #d97706;
  --gold-hover: #b45309;
  --gold-glow: rgba(217, 119, 6, 0.2);
  --gold-dim: rgba(217, 119, 6, 0.06);

  --danger: #ff3b30;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);

  /* visualization tokens */
  --viz-text-primary: #000000;
  --viz-text-secondary: rgba(0, 0, 0, 0.7);
  --viz-text-dim: rgba(0, 0, 0, 0.4);
  --viz-bg-tooltip: rgba(255, 255, 255, 0.95);
  --viz-border: rgba(0, 0, 0, 0.1);
  --viz-line: rgba(0, 0, 0, 0.08);

  --video-bg: #ffffff;
}

/* smooth theme transition -- only active after first user toggle
   prevents FOUC on initial page load */
html.theme-ready,
html.theme-ready *,
html.theme-ready *::before,
html.theme-ready *::after {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease !important;
}

/* opt out elements that have their own transitions */
html.theme-ready .quiz-progress-fill,
html.theme-ready .sidebar-panel,
html.theme-ready .sidebar-step,
html.theme-ready .sidebar-backdrop,
html.theme-ready .landing-nav-hamburger-line {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition: 0.01s linear;
    --transition-fast: 0.01s linear;
    --transition-slow: 0.01s linear;
    --transition-theme: 0.01s linear;
    --transition-smooth: 0.01s linear;
  }
}


/* ===== css/landing-sections.css ===== */
/* landing-sections.css
   landing page and marketing page section styles
   extracted from the monolithic css/landing.css

   includes:
   - landing-specific reset (*, html, body)
   - landing-specific :root variables and [data-theme="light"] overrides
   - hero section (full-viewport landing hero with badge, title, subtitle, actions, scroll indicator)
   - hero video runway and video section (gsap canvas scroll)
   - content overlay (slides over pinned video)
   - section-title and section-subtitle (landing versions)
   - features section (glass panel, feature cards, grid)
   - stats section (glass panel, stat items, grid)
   - partners section (pills grid)
   - glass-panel reusable component
   - how-it-works section (steps container with connecting line)
   - testimonials section (card grid with quotes)
   - cta section (call to action)
   - pricing hero, pricing grid, pricing cards, pricing faq, pricing guarantee
   - pricing owned states and pricing toast
   - footer disclaimer
   - paywall acknowledgment checkbox and disabled button
   - profile page (header, stats, achievements, progress, activity, friends, settings)
   - responsive @media queries for all above sections
   - prefers-reduced-motion rules for landing elements

   does NOT include (already extracted to modular files):
   - .landing-bg orbs, @keyframes orbFloat* -> background.css
   - .landing-nav, .theme-toggle, .landing-nav-hamburger, .sound-toggle-btn -> nav.css
   - .landing-footer, .footer-inner, .footer-columns, .footer-bottom -> footer.css
   - .courses-hero, .courses-filters, .courses-grid, .course-card -> courses.css
   - .calc-* calculator styles -> calculator.css
   - .xp-bar-*, .xp-toast, .level-toast, .streak-badge, .achievement-toast,
     .quest-toggle, .quest-panel, .progress-path-* -> gamification.css
   - .auth-nav-btn, .user-menu, .auth-modal, .auth-modal-consent -> auth.css
   - .legal-page, .legal-content -> legal.css
*/

/* ============================================== */
/* landing reset                                   */
/* ============================================== */

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

html {
  font-size: 16px;
  scroll-behavior: auto;
  /* gsap handles smooth scroll */
  overflow-x: hidden;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

body {
  font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================== */
/* landing-specific theme variables                */
/* ============================================== */

:root {
  --landing-nav-bg: rgba(0, 0, 0, 0.4);
  --landing-nav-bg-scrolled: rgba(0, 0, 0, 0.72);
  --landing-nav-border: rgba(255, 255, 255, 0.06);
  --button-ghost-bg: rgba(255, 255, 255, 0.06);
  --button-ghost-bg-hover: rgba(255, 255, 255, 0.1);
  --button-ghost-border: rgba(255, 255, 255, 0.1);
  --button-ghost-border-hover: rgba(255, 255, 255, 0.2);
  --card-bg-start: rgba(255, 255, 255, 0.06);
  --card-bg-end: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-top-line: rgba(255, 255, 255, 0.2);
  --tag-bg: rgba(255, 255, 255, 0.04);
  --tag-border: rgba(255, 255, 255, 0.06);
  --footer-divider: rgba(255, 255, 255, 0.06);
  --video-fade-top: #000000;
  --content-overlay-bg: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.84) 16%,
      var(--bg-primary) 42%);
  --accent-contrast: #000;
}

[data-theme="light"] {
  --landing-nav-bg: rgba(255, 255, 255, 0.58);
  --landing-nav-bg-scrolled: rgba(255, 255, 255, 0.9);
  --landing-nav-border: rgba(15, 23, 42, 0.08);
  --button-ghost-bg: rgba(255, 255, 255, 0.66);
  --button-ghost-bg-hover: rgba(255, 255, 255, 0.85);
  --button-ghost-border: rgba(15, 23, 42, 0.12);
  --button-ghost-border-hover: rgba(15, 23, 42, 0.22);
  --card-bg-start: rgba(255, 255, 255, 0.9);
  --card-bg-end: rgba(255, 255, 255, 0.72);
  --card-border: rgba(15, 23, 42, 0.1);
  --card-top-line: rgba(15, 23, 42, 0.14);
  --tag-bg: rgba(15, 23, 42, 0.04);
  --tag-border: rgba(15, 23, 42, 0.1);
  --footer-divider: rgba(15, 23, 42, 0.12);
  --video-fade-top: #f5f5f7;
  --content-overlay-bg: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(245, 245, 247, 0.88) 16%,
      var(--bg-primary) 42%);
  --accent-contrast: #04130d;
}

/* ============================================== */
/* hero section                                    */
/* ============================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 160px 40px 80px;
  position: relative;
}

[data-theme="light"] .hero {
  background: #fff;
}

.hero-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 40px;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.hero-content {
  max-width: 640px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--accent-dim);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  padding-bottom: 4px;
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

.hero-title-accent {
  display: block;
  color: var(--text-primary);
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  padding-bottom: 4px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 0 48px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

.hero-btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 0 20px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.hero-btn--ghost {
  background: var(--button-ghost-bg);
  color: var(--text-primary);
  border: 1px solid var(--button-ghost-border);
  backdrop-filter: blur(10px);
}

.hero-btn--ghost:hover {
  background: var(--button-ghost-bg-hover);
  border-color: var(--button-ghost-border-hover);
  transform: translateY(-2px);
}

.hero-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.hero-link:hover {
  color: var(--text-primary);
}

/* ============================================== */
/* hero email capture                              */
/* ============================================== */

.hero-email-form {
  width: 100%;
  max-width: 440px;
}

.hero-email-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-email-input {
  width: 100%;
  padding: 14px 52px 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-email-input::placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-email-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15), 0 0 20px rgba(52, 211, 153, 0.08);
}

[data-theme="light"] .hero-email-input {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .hero-email-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12), 0 0 20px rgba(16, 185, 129, 0.06);
}

.hero-email-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: calc(var(--radius-md) - 4px);
  border: none;
  background: var(--accent);
  color: var(--accent-contrast);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.hero-email-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-50%) scale(1.05);
}

.hero-email-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hero-email-status {
  margin-top: 10px;
  font-size: 0.85rem;
  min-height: 1.4em;
  line-height: 1.4;
  text-align: center;
}

.hero-email-status--success {
  color: #34d39e;
  font-weight: 500;
}

.hero-email-status--error {
  color: #f87171;
}

.hero-start-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.hero-start-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.hero-learner-count {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.hero-trust {
  margin-top: 18px;
}

.hero-trust-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  opacity: 0.6;
  margin-bottom: 8px;
}

.hero-trust-carousel {
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.hero-trust-track {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: trustScroll 30s linear infinite;
  width: max-content;
}

.hero-trust-logo {
  height: 28px;
  opacity: 0.5;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.hero-trust-logo:hover {
  opacity: 0.8;
}

[data-theme="light"] .hero-trust-logo {
  filter: brightness(0);
  opacity: 0.35;
}

[data-theme="light"] .hero-trust-logo:hover {
  opacity: 0.6;
}

@keyframes trustScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================== */
/* social proof bar                                */
/* ============================================== */

.social-proof-section {
  position: relative;
  z-index: var(--z-content);
  padding: 60px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.social-proof-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.social-proof-stat {
  text-align: center;
  min-width: 100px;
}

.social-proof-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--mountain-meadow-400, #34d39e);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.social-proof-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: lowercase;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

[data-theme="light"] .social-proof-section {
  background: rgba(255, 255, 255, 0.6);
  border-top-color: rgba(15, 23, 42, 0.06);
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .social-proof-number {
  color: var(--mountain-meadow-600, #059666);
}

.hero-scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 50;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}

.hero-scroll-indicator span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.hero-scroll-arrow {
  animation: scrollBounce 2s ease-in-out infinite;
  color: var(--text-muted);
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* ============================================== */
/* hero visual (right column video)                */
/* ============================================== */

.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(60px);
  will-change: transform, opacity;
}

.hero-visual .video-container {
  position: relative;
  width: 100%;
  height: 75vh;
  max-height: 650px;
  overflow: hidden;
  contain: layout style paint;
}

/* canvas is the visible display surface */
/* dark mode inverts the canvas so the white video bg becomes black */
.hero-visual .video-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  transform: translateZ(0);
  filter: invert(1) hue-rotate(180deg);
}

[data-theme="light"] .hero-visual .video-container canvas {
  filter: none;
  background: #fff;
}

/* video is hidden - used only as a frame source for canvas */
.hero-visual .video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* content sections below hero */
.content-overlay {
  position: relative;
  z-index: var(--z-content);
  padding-top: 0;
  padding-bottom: 40px;
  background: var(--bg-primary);
  contain: layout style;
}

/* ============================================== */
/* shared section styling                          */
/* ============================================== */

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 64px;
}

/* ============================================== */
/* features section                                */
/* ============================================== */

.features {
  padding: 120px 40px 180px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-glass {
  position: relative;
  padding: 56px 48px 56px;
  border-radius: 32px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.features-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.2) 30%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0.2) 70%,
      transparent 100%);
}

.features-glass::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%,
      rgba(52, 211, 153, 0.04) 0%,
      transparent 50%);
  pointer-events: none;
}

[data-theme="light"] .features-glass {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.65) 0%,
      rgba(255, 255, 255, 0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .features-glass::before {
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.7) 30%,
      rgba(255, 255, 255, 0.9) 50%,
      rgba(255, 255, 255, 0.7) 70%,
      transparent 100%);
}

[data-theme="light"] .features-glass::after {
  background: radial-gradient(ellipse at 30% 20%,
      rgba(16, 185, 129, 0.05) 0%,
      transparent 50%);
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

/* row 1: 2 wide cards (4+2) */
.feature-card:nth-child(1) {
  grid-column: span 4;
}

.feature-card:nth-child(2) {
  grid-column: span 2;
}

/* row 2: 3 equal cards (2+2+2) */
.feature-card:nth-child(3) {
  grid-column: span 2;
}

.feature-card:nth-child(4) {
  grid-column: span 2;
}

.feature-card:nth-child(5) {
  grid-column: span 2;
}

/* row 3: 1 full-width card */
.feature-card:nth-child(6) {
  grid-column: span 6;
}

.feature-card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg,
      var(--card-bg-start) 0%,
      var(--card-bg-end) 50%,
      var(--card-bg-start) 100%);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 16px rgba(255, 255, 255, 0.02);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
}

.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.is-visible:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.2);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(52, 211, 153, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 20px rgba(255, 255, 255, 0.03);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--card-top-line),
      transparent);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

[data-theme="light"] .feature-card-desc {
  color: var(--text-secondary);
}

/* ============================================== */
/* stats section                                   */
/* ============================================== */

.stats {
  padding: 120px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.stats-glass {
  position: relative;
  padding: 56px 48px;
  border-radius: 24px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.07) 0%,
      rgba(255, 255, 255, 0.03) 50%,
      rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.stats-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.35),
      transparent);
  pointer-events: none;
}

[data-theme="light"] .stats-glass {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.65) 0%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform, opacity;
}

.stat-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* ============================================== */
/* partners section                                */
/* ============================================== */

.partners {
  padding: 80px 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.partners-header {
  margin-bottom: 48px;
}

.partners-header .section-subtitle {
  margin-bottom: 0;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.partner-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  background: var(--button-ghost-bg);
  border: 1px solid var(--button-ghost-border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0.6;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.partner-pill:hover {
  opacity: 1;
  border-color: var(--button-ghost-border-hover);
}

/* ============================================== */
/* reusable glass panel for content overlay        */
/* ============================================== */

.glass-panel {
  position: relative;
  padding: 56px 48px;
  border-radius: 24px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.07) 0%,
      rgba(255, 255, 255, 0.03) 50%,
      rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  pointer-events: none;
}

[data-theme="light"] .glass-panel {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.65) 0%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ============================================== */
/* how it works section                            */
/* ============================================== */

.how-it-works {
  padding: 120px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 80px;
}

.steps-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  position: relative;
}

/* connecting line between steps */
.steps-container::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 56px;
  right: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(99, 102, 241, 0.5), rgba(168, 85, 247, 0.5));
  opacity: 0.3;
}

.step-item {
  flex: 1;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform, opacity;
}

.step-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid rgba(52, 211, 153, 0.3);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  z-index: var(--z-raised);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================== */
/* testimonials section                            */
/* ============================================== */

.testimonials {
  padding: 120px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 64px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg,
      var(--card-bg-start) 0%,
      var(--card-bg-end) 100%);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--card-top-line),
      transparent);
}

.testimonial-quote-icon {
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.6;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================== */
/* blog highlights section                         */
/* ============================================== */

.blog-highlights {
  padding: 120px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.blog-highlights-header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.blog-highlight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,
      var(--card-bg-start) 0%,
      var(--card-bg-end) 100%);
  border: none;
  box-shadow: 0 0 0 1px var(--card-border);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.3s ease;
  overflow: hidden;
}

.blog-highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--card-top-line),
      transparent);
}

.blog-highlight-card {
  opacity: 0;
  transform: translateY(16px);
}

.blog-highlight-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-highlight-card.is-visible:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(52, 211, 153, 0.25),
    0 12px 32px rgba(0, 0, 0, 0.2),
    0 0 24px rgba(52, 211, 153, 0.04);
}

.blog-highlight-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  margin: 0 0 12px;
  background: var(--bg-secondary);
}

.blog-highlight-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  padding-left: 24px;
  padding-right: 24px;
}

.blog-highlight-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  padding: 0 24px;
}

.blog-highlight-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding: 0 24px 24px;
  flex-grow: 1;
}

.blog-highlights-footer {
  text-align: center;
  margin-top: 32px;
}

.blog-highlights-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.blog-highlights-link:hover {
  gap: 10px;
}

/* ============================================== */
/* cta section                                     */
/* ============================================== */

.cta {
  padding: 120px 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.bottom-capture {
  padding: 80px 40px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.bottom-capture .hero-email-form {
  max-width: 400px;
  margin: 0 auto;
}

.bottom-capture .hero-trust {
  margin-top: 32px;
}

.bottom-capture .hero-trust-carousel {
  max-width: 100%;
}

.cta-content {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform, opacity;
}

.cta-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cta .section-title {
  margin-bottom: 24px;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ============================================== */
/* ambassador strip (landing page)                 */
/* ============================================== */

.ambassador-strip {
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}

.ambassador-strip-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.ambassador-strip-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.ambassador-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.ambassador-pill.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ambassador-pill-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(52, 211, 153, 0.3);
  flex-shrink: 0;
  background: var(--accent-dim);
}

.ambassador-pill-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ambassador-pill-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ambassador-pill-niche {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ambassador-strip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.ambassador-strip-link:hover {
  gap: 10px;
}

/* ============================================== */
/* ambassadors page                                */
/* ============================================== */

.ambassadors-hero {
  padding: 140px 40px 80px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.ambassadors-hero.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ambassadors-hero .section-title {
  margin-bottom: 20px;
}

.ambassadors-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.ambassadors-grid-section {
  padding: 0 40px 120px;
  max-width: 900px;
  margin: 0 auto;
}

.ambassadors-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ambassador-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 28px 28px;
  border-radius: var(--radius-lg, 20px);
  background: linear-gradient(135deg,
      var(--card-bg-start, rgba(255, 255, 255, 0.03)) 0%,
      var(--card-bg-end, rgba(255, 255, 255, 0.01)) 100%);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  flex: 0 1 280px;
  max-width: 320px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}

.ambassador-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--card-top-line, rgba(52, 211, 153, 0.2)),
      transparent);
}

.ambassador-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ambassador-card.is-visible:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.25);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.2),
    0 0 24px rgba(52, 211, 153, 0.04);
}

.ambassador-card-photo-wrap {
  margin-bottom: 16px;
}

.ambassador-card-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(52, 211, 153, 0.3);
  background: var(--accent-dim);
}

.ambassador-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.ambassador-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.ambassador-card-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.ambassador-card-quote {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
  margin: 0 0 16px;
  padding: 0;
  border: none;
}

.ambassador-card-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.ambassador-card-social a:hover {
  color: var(--accent);
}

.ambassador-card-social a svg {
  width: 18px;
  height: 18px;
}

.ambassadors-benefits {
  padding: 0 40px 120px;
  max-width: 900px;
  margin: 0 auto;
}

.ambassadors-benefits-header {
  text-align: center;
  margin-bottom: 48px;
}

.ambassadors-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ambassador-benefit {
  padding: 28px 24px;
  border-radius: var(--radius-lg, 20px);
  background: linear-gradient(135deg,
      var(--card-bg-start, rgba(255, 255, 255, 0.03)) 0%,
      var(--card-bg-end, rgba(255, 255, 255, 0.01)) 100%);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.06));
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.ambassador-benefit.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ambassador-benefit-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 16px;
}

.ambassador-benefit-icon svg {
  width: 20px;
  height: 20px;
}

.ambassador-benefit h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.ambassador-benefit p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ambassadors-steps {
  padding: 0 40px 120px;
  max-width: 900px;
  margin: 0 auto;
}

.ambassadors-steps-container {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ============================================== */
/* pricing page                                    */
/* ============================================== */

.pricing-hero {
  padding: 140px 40px 80px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.pricing-hero.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing-hero .section-title {
  margin-bottom: 20px;
}

.pricing-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 120px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  padding: 40px 36px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.07) 0%,
      rgba(255, 255, 255, 0.02) 50%,
      rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 0 16px rgba(255, 255, 255, 0.02);
  overflow: visible;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent);
}

.pricing-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing-card.is-visible:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .pricing-card {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.45) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .pricing-card::before {
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.8),
      transparent);
}

/* featured / recommended card */
.pricing-card--featured {
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(52, 211, 153, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: scale(1.03);
}

.pricing-card--featured::before {
  background: linear-gradient(90deg,
      transparent,
      rgba(52, 211, 153, 0.4),
      transparent);
}

.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.25),
    0 0 60px rgba(52, 211, 153, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .pricing-card--featured {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0 40px rgba(16, 185, 129, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 36px;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: #0a0a0a;
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

[data-theme="light"] .pricing-card-badge {
  background: #ffffff;
}

.pricing-card-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.pricing-card-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
}

.pricing-card--featured .pricing-card-amount {
  color: var(--accent);
}

.pricing-card-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-card-savings {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 28px;
}

.pricing-card-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.pricing-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.pricing-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pricing-card-features li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.pricing-card-cta {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  margin-top: auto;
}

.pricing-card-cta--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 0 20px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pricing-card-cta--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.pricing-card-cta--ghost {
  background: var(--button-ghost-bg);
  color: var(--text-primary);
  border: 1px solid var(--button-ghost-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.pricing-card-cta--ghost::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.06),
      transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.pricing-card-cta--ghost:hover::after {
  left: 120%;
}

.pricing-card-cta--ghost:hover {
  background: var(--button-ghost-bg-hover);
  border-color: var(--button-ghost-border-hover);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

.pricing-card-guarantee {
  font-size: 0.72rem;
  color: var(--accent);
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* pricing faq */
.pricing-faq {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 40px 120px;
}

.pricing-faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-faq-item {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    border-color 0.3s ease;
}

.pricing-faq-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing-faq-item.open {
  border-color: rgba(52, 211, 153, 0.15);
}

[data-theme="light"] .pricing-faq-item {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.65) 0%,
      rgba(255, 255, 255, 0.4) 100%);
  border-color: rgba(255, 255, 255, 0.5);
}

.pricing-faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  letter-spacing: -0.01em;
  font-family: inherit;
}

.pricing-faq-toggle svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.pricing-faq-item.open .pricing-faq-toggle svg {
  transform: rotate(180deg);
}

.pricing-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.pricing-faq-item.open .pricing-faq-answer {
  max-height: 200px;
}

.pricing-faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* pricing page guarantee */
.pricing-guarantee {
  text-align: center;
  padding: 0 40px 80px;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-guarantee-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  background: var(--accent-dim);
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.pricing-guarantee-inner svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.pricing-guarantee-inner p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-guarantee-inner strong {
  color: var(--accent);
}

/* ============================================== */
/* pricing owned states                            */
/* ============================================== */

.pricing-card-cta--owned {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  cursor: default;
  pointer-events: auto;
}

.pricing-card-cta--owned:hover {
  transform: none;
  box-shadow: none;
}

.pricing-card-credits-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-bottom: 12px;
  background: rgba(16, 185, 129, 0.10);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  align-self: flex-start;
}

.pricing-card-credits-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

/* ============================================== */
/* pricing divider + ai subscription card          */
/* ============================================== */

.pricing-grid {
  /* override default 3-col to add divider + ai card as a new row */
  grid-template-columns: repeat(3, 1fr);
}

.pricing-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 0;
}

.pricing-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.pricing-divider-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.1em;
}

.pricing-card--ai {
  grid-column: 1 / -1;
  max-width: 420px;
  justify-self: center;
  border-color: rgba(59, 130, 246, 0.25);
}

.pricing-card--ai::before {
  background: linear-gradient(90deg,
      transparent,
      rgba(59, 130, 246, 0.08),
      transparent);
}

.pricing-card-badge--ai {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.pricing-card-cta--ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md, 12px);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: none;
}

.pricing-card-cta--ai:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.pricing-card-cta--disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 900px) {
  .pricing-card--ai {
    max-width: 100%;
  }
}

/* ============================================== */
/* pricing toast                                   */
/* ============================================== */

.pricing-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface-elevated, rgba(30, 30, 46, 0.95));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  color: var(--text-primary, #fafafa);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: var(--z-modal);
  white-space: nowrap;
}

.pricing-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[data-theme="light"] .pricing-toast {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a2e;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ============================================== */
/* footer disclaimer                               */
/* ============================================== */

.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.7;
}

/* ============================================== */
/* paywall acknowledgment checkbox                 */
/* ============================================== */

.paywall-acknowledge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.paywall-acknowledge input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.paywall-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   profile page
   ============================================================ */

.profile-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  min-height: 80vh;
}

/* loading state */
.profile-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 400px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: profileSpin 0.8s linear infinite;
}

@keyframes profileSpin {
  to {
    transform: rotate(360deg);
  }
}

/* auth required */
.profile-auth-required {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  min-height: 400px;
  padding: 40px;
}

.profile-auth-required h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-auth-required p {
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.6;
}

/* profile header */
.profile-header-section {
  margin-bottom: 32px;
}

.profile-header-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
}

.profile-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.profile-header-info {
  flex: 1;
  min-width: 0;
}

.profile-display-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.profile-display-name--empty {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

.profile-username {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.profile-username--empty {
  color: var(--text-muted);
  font-style: italic;
}

.profile-email {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-member-since {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.profile-tier-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.profile-tier-badge--free {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-tier-badge--individual {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.profile-tier-badge--explorer {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.profile-tier-badge--full {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

/* stats grid */
.profile-stats-section {
  margin-bottom: 32px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.profile-stat-card {
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.profile-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.profile-stat-icon svg {
  width: 20px;
  height: 20px;
}

.profile-stat-icon--xp {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.profile-stat-icon--streak {
  background: rgba(251, 113, 133, 0.15);
  color: #fb7185;
}

.profile-stat-icon--progress {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent);
}

.profile-stat-icon--quests {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

.profile-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.profile-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.profile-stat-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.profile-stat-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.profile-stat-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* section headers */
.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.profile-section-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-section-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* achievements grid */
.profile-achievements-section {
  margin-bottom: 32px;
}

.profile-achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.profile-achievement-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  opacity: 0.35;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.profile-achievement-card--unlocked {
  opacity: 1;
  filter: none;
  border-color: rgba(52, 211, 153, 0.2);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.06);
}

.profile-achievement-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.profile-achievement-card:not(.profile-achievement-card--unlocked) .profile-achievement-icon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.profile-achievement-info {
  flex: 1;
  min-width: 0;
}

.profile-achievement-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.profile-achievement-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.profile-achievement-date {
  font-size: 0.68rem;
  color: var(--accent);
  margin-top: 3px;
  opacity: 0.8;
}

/* learning progress */
.profile-progress-section {
  margin-bottom: 32px;
}

.profile-progress-group {
  margin-bottom: 20px;
}

.profile-progress-group h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.profile-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.profile-module-card {
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.profile-module-card:hover {
  border-color: rgba(52, 211, 153, 0.3);
  transform: translateY(-1px);
}

.profile-module-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.profile-module-status {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.profile-module-status--not-started {
  color: var(--text-muted);
  opacity: 0.6;
}

.profile-module-status--in-progress {
  color: #60a5fa;
}

.profile-module-status--complete {
  color: var(--accent);
}

.profile-module-score {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.profile-peptides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.profile-peptide-card {
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.profile-peptide-card:hover {
  border-color: rgba(52, 211, 153, 0.3);
  transform: translateY(-1px);
}

.profile-peptide-card--locked {
  opacity: 0.5;
  cursor: default;
}

.profile-peptide-card--locked:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: none;
}

.profile-peptide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.profile-peptide-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-peptide-lock {
  color: var(--text-muted);
  flex-shrink: 0;
}

.profile-peptide-check {
  color: var(--accent);
  flex-shrink: 0;
}

.profile-peptide-score {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* recent activity */
.profile-activity-section {
  margin-bottom: 32px;
}

.profile-activity-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-activity-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 20px 0;
  text-align: center;
}

.profile-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.profile-activity-xp {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  min-width: 60px;
}

.profile-activity-reason {
  font-size: 0.82rem;
  color: var(--text-primary);
  flex: 1;
}

.profile-activity-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* friends section */
.profile-friends-section {
  margin-bottom: 32px;
}

.profile-friend-requests {
  margin-bottom: 16px;
}

.profile-friend-requests h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.profile-friend-request-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 8px;
}

.profile-friend-request-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-friend-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.profile-friend-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.profile-friend-username {
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.8;
}

.profile-friend-request-actions {
  display: flex;
  gap: 8px;
}

.profile-friend-accept-btn,
.profile-friend-decline-btn {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.profile-friend-accept-btn {
  background: var(--accent);
  color: #000;
}

.profile-friend-decline-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-friend-accept-btn:hover,
.profile-friend-decline-btn:hover {
  opacity: 0.85;
}

/* friend search */
.profile-friend-search {
  margin-bottom: 16px;
}

.profile-search-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.profile-search-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.profile-search-input:focus {
  border-color: var(--accent);
}

.profile-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.profile-search-btn {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.profile-search-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.profile-search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-search-loading,
.profile-search-empty {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  padding: 12px;
}

.profile-search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.profile-search-result-info {
  flex: 1;
  min-width: 0;
}

.profile-friend-add-btn {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #000;
  border: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.profile-friend-add-btn:hover {
  opacity: 0.85;
}

.profile-friend-add-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* friends list */
.profile-friends-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.profile-friends-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
  grid-column: 1 / -1;
}

.profile-friend-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.profile-friend-card-info {
  flex: 1;
  min-width: 0;
}

.profile-friend-stats {
  display: flex;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.profile-friend-card-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-friend-view-btn,
.profile-friend-remove-btn {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.profile-friend-view-btn {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent);
}

.profile-friend-remove-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.profile-friend-view-btn:hover,
.profile-friend-remove-btn:hover {
  opacity: 0.75;
}

/* settings */
.profile-settings-section {
  margin-bottom: 40px;
}

.profile-settings-grid {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-setting-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-setting-row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.profile-setting-input-wrap {
  display: flex;
  gap: 8px;
}

.profile-setting-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.profile-setting-input:focus {
  border-color: var(--accent);
}

.profile-setting-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.profile-setting-save {
  padding: 10px 18px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.profile-setting-save:hover {
  opacity: 0.85;
}

.profile-setting-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.7;
  line-height: 1.4;
}

.profile-setting-hint--error {
  color: #fb7185;
  opacity: 1;
}

.profile-setting-hint--success {
  color: var(--accent);
  opacity: 1;
}

.profile-setting-toggle-wrap {
  display: flex;
}

.profile-setting-toggle {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s;
  font-family: inherit;
}

.profile-setting-toggle:hover {
  border-color: var(--accent);
}

/* public profile */
.profile-public-back {
  margin-bottom: 20px;
}

.profile-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.profile-back-link:hover {
  opacity: 0.8;
}

.profile-public-error {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 60px 20px;
}

.profile-friend-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}

.profile-friend-action-btn:hover {
  opacity: 0.85;
}

.profile-friend-action-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.profile-friend-action-btn--friends {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent);
}

/* ============================================== */
/* quiz aha moment                                 */
/* ============================================== */

.quiz-aha {
  padding: 80px 40px;
  max-width: 700px;
  margin: 0 auto;
}

.quiz-aha-panel {
  text-align: center;
  padding: 48px 40px;
}

.quiz-aha-header {
  margin-bottom: 32px;
}

.quiz-aha-card {
  max-width: 520px;
  margin: 0 auto;
}

.quiz-aha-question {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.4;
  color: var(--text-primary);
}

.quiz-aha-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.quiz-aha-btn {
  padding: 12px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--button-ghost-border);
  background: var(--button-ghost-bg);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.quiz-aha-btn:hover:not(:disabled) {
  background: var(--button-ghost-bg-hover);
  border-color: var(--button-ghost-border-hover);
  transform: translateY(-2px);
}

.quiz-aha-btn:disabled {
  cursor: default;
}

.quiz-aha-btn.correct {
  border-color: var(--accent);
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent);
}

.quiz-aha-btn.wrong {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.quiz-aha-feedback {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin 0.3s ease;
  margin: 0;
}

.quiz-aha-feedback.visible {
  max-height: 120px;
  margin-bottom: 16px;
}

.quiz-aha-next {
  padding: 10px 24px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}

.quiz-aha-next:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.quiz-aha-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.quiz-aha-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.3s ease;
}

.quiz-aha-dot.active {
  background: var(--accent);
}

.quiz-aha-dot.done {
  background: rgba(52, 211, 153, 0.5);
}

[data-theme="light"] .quiz-aha-dot {
  background: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .quiz-aha-dot.active {
  background: var(--accent);
}

[data-theme="light"] .quiz-aha-dot.done {
  background: rgba(16, 185, 129, 0.5);
}

.quiz-aha-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.quiz-aha-result p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================== */
/* product showcases                               */
/* ============================================== */

.showcases {
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
  overflow: hidden;
}

.showcase-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.showcase-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.showcase-block--reverse {
  direction: rtl;
}

.showcase-block--reverse > * {
  direction: ltr;
}

.showcase-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.showcase-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* screenshot previews for showcases */
.showcase-img {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  display: block;
}

.showcase-visual {
  overflow: hidden;
  border-radius: 16px;
}

[data-theme="light"] .showcase-img {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* theme-responsive showcase variants: show the image that matches the active theme */
.showcase-img--light {
  display: none;
}

[data-theme="light"] .showcase-img--dark {
  display: none;
}

[data-theme="light"] .showcase-img--light {
  display: block;
}

/* hide nav/footer/cookie/bg when page is embedded in an iframe */
html.is-embedded #pa-nav,
html.is-embedded #pa-footer,
html.is-embedded .cookie-consent,
html.is-embedded #pa-bg { display: none !important; }
html.is-embedded { background: transparent !important; }

.mini-sidebar {
  width: 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}

.mini-sidebar-item {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-sidebar-item--active {
  background: var(--mountain-meadow-500, #10b981);
}

[data-theme="light"] .mini-sidebar-item { background: rgba(0, 0, 0, 0.08); }

.mini-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-content--full {
  width: 100%;
}

.mini-heading {
  width: 60%;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .mini-heading { background: rgba(0, 0, 0, 0.15); }

.mini-text {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.mini-text--short { width: 45%; }

[data-theme="light"] .mini-text { background: rgba(0, 0, 0, 0.06); }

.mini-progress {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--mountain-meadow-500, #10b981);
}

.mini-progress-fill--accent { background: var(--mountain-meadow-400, #34d39e); }
.mini-progress-fill--warn { background: #f59e0b; }

.mini-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.mini-badge--green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--mountain-meadow-400, #34d39e);
}

.mini-cards {
  display: flex;
  gap: 8px;
}

.mini-card {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

[data-theme="light"] .mini-card { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.06); }

.mini-card-icon { font-size: 1.2rem; }
.mini-card-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.mini-tool-grid {
  display: flex;
  gap: 8px;
}

.mini-tool-input {
  flex: 1;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .mini-tool-input { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.08); }

.mini-tool-result {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.mini-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-lb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.mini-lb-rank {
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

.mini-lb-row--gold .mini-lb-rank { color: #fbbf24; }
.mini-lb-row--silver .mini-lb-rank { color: #94a3b8; }
.mini-lb-row--bronze .mini-lb-rank { color: #d97706; }

.mini-lb-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.mini-lb-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--mountain-meadow-500, #10b981);
  flex-shrink: 0;
}

.mini-lb-row--gold .mini-lb-bar { background: #fbbf24; }
.mini-lb-row--silver .mini-lb-bar { background: #94a3b8; }
.mini-lb-row--bronze .mini-lb-bar { background: #d97706; }

.mini-lb-xp {
  font-size: 0.55rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

[data-theme="light"] .mini-lb-row { background: rgba(0, 0, 0, 0.03); }
[data-theme="light"] .mini-lb-rank { color: rgba(0, 0, 0, 0.3); }
[data-theme="light"] .mini-lb-avatar { background: rgba(0, 0, 0, 0.08); }
[data-theme="light"] .mini-lb-xp { color: rgba(0, 0, 0, 0.4); }

/* ============================================== */
/* credibility section                             */
/* ============================================== */

.credibility {
  padding: 100px 40px 80px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.credibility-header {
  margin-bottom: 56px;
}

.credibility-header .section-subtitle {
  max-width: 560px;
  margin: 0 auto;
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.credibility-card {
  padding: 36px 28px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.credibility-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.credibility-card-image {
  width: 140px;
  height: 140px;
  display: block;
  border-radius: 16px;
  margin: 0 auto 20px;
  object-fit: cover;
}

.credibility-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.credibility-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================== */
/* quiz funnel email capture                       */
/* ============================================== */

.quiz-funnel {
  padding: 80px 40px;
  max-width: 600px;
  margin: 0 auto;
}

.quiz-funnel-panel {
  text-align: center;
  padding: 48px 40px;
}

.quiz-funnel-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.quiz-funnel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.3s ease;
}

.quiz-funnel-dot.active {
  background: var(--accent);
}

.quiz-funnel-dot.done {
  background: rgba(52, 211, 153, 0.5);
}

[data-theme="light"] .quiz-funnel-dot {
  background: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .quiz-funnel-dot.active {
  background: var(--accent);
}

[data-theme="light"] .quiz-funnel-dot.done {
  background: rgba(16, 185, 129, 0.5);
}

.quiz-funnel-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.quiz-funnel-heading {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.3;
}

.quiz-funnel-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.quiz-funnel-option {
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--button-ghost-border);
  background: var(--button-ghost-bg);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.quiz-funnel-option:hover {
  background: var(--button-ghost-bg-hover);
  border-color: var(--button-ghost-border-hover);
  transform: translateY(-2px);
}

.quiz-funnel-form {
  width: 100%;
  max-width: 400px;
}

.quiz-funnel-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-funnel-input {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.quiz-funnel-input::placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.quiz-funnel-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15), 0 0 20px rgba(52, 211, 153, 0.08);
}

[data-theme="light"] .quiz-funnel-input {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .quiz-funnel-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12), 0 0 20px rgba(16, 185, 129, 0.06);
}

.quiz-funnel-submit {
  width: 100%;
  justify-content: center;
}

.quiz-funnel-status {
  margin-top: 10px;
  font-size: 0.85rem;
  min-height: 1.4em;
  line-height: 1.4;
}

.quiz-funnel-status--error {
  color: #f87171;
}

.quiz-funnel-success {
  align-items: center;
}

.quiz-funnel-success .quiz-funnel-heading {
  color: var(--accent);
}

/* ============================================== */
/* prefers-reduced-motion                          */
/* ============================================== */

@media (prefers-reduced-motion: reduce) {

  .feature-card,
  .stat-item,
  .step-item,
  .cta-content,
  .testimonial-card,
  .partner-pill,
  .pricing-hero,
  .pricing-card,
  .pricing-faq-item,
  .blog-highlight-card,
  .ambassador-pill,
  .ambassador-card,
  .ambassador-benefit,
  .ambassadors-hero,
  .showcase-block,
  .credibility-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================== */
/* responsive: 1024px                              */
/* ============================================== */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  /* row 1: 2 cards (2+2) */
  .feature-card:nth-child(1) {
    grid-column: span 2;
  }

  .feature-card:nth-child(2) {
    grid-column: span 2;
  }

  /* row 2: 2 cards (2+2) */
  .feature-card:nth-child(3) {
    grid-column: span 2;
  }

  .feature-card:nth-child(4) {
    grid-column: span 2;
  }

  /* row 3: 2 cards (2+2) */
  .feature-card:nth-child(5) {
    grid-column: span 2;
  }

  .feature-card:nth-child(6) {
    grid-column: span 2;
  }

  .steps-container {
    flex-wrap: wrap;
  }

  .steps-container .step-item {
    flex: 1 1 calc(50% - 20px);
  }

  .steps-container::before {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    gap: 12px;
    padding: 0 20px 80px;
  }

  .pricing-card {
    padding: 24px 16px;
    border-radius: 18px;
  }

  .pricing-card--featured {
    transform: none;
    order: 0;
  }

  .pricing-card--featured:hover {
    transform: translateY(-4px);
  }

  .pricing-card-name {
    font-size: 1rem;
  }

  .pricing-card-amount {
    font-size: 2rem;
  }

  .pricing-card-period {
    font-size: 0.75rem;
  }

  .pricing-card-savings {
    font-size: 0.7rem;
    margin-bottom: 16px;
  }

  .pricing-card-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
    margin-bottom: 12px;
  }

  .pricing-card-features {
    gap: 10px;
    margin-bottom: 20px;
  }

  .pricing-card-features li {
    font-size: 0.78rem;
  }

  .pricing-card-cta {
    padding: 12px 12px;
    font-size: 0.82rem;
  }
}

/* ============================================== */
/* responsive: 768px                               */
/* ============================================== */

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 140px 24px 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-title {
    text-align: left;
  }

  .hero-subtitle {
    margin: 0 0 120px;
    max-width: 100%;
    word-wrap: break-word;
  }

  .hero-email-form {
    max-width: 100%;
    width: 100%;
  }

  .social-proof-section {
    padding: 40px 20px;
  }

  .social-proof-grid {
    gap: 24px 32px;
  }

  .social-proof-number {
    font-size: 2rem;
  }

  .hero-visual {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: center;
    width: 200px;
  }

  .hero-visual .video-container {
    height: 300px;
    max-height: none;
    border-radius: 0;
  }

  .content-overlay {
    padding-top: 80px;
  }

  /* performance: remove backdrop-filter blur on mobile cards */
  .feature-card,
  .testimonial-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .features {
    padding: 60px 24px;
  }

  .features-glass {
    padding: 40px 24px;
    border-radius: 24px;
  }

  /* simplified uniform grid: 2 columns */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .feature-card:nth-child(n) {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-card {
    padding: 24px;
    border-radius: 16px;
  }

  .feature-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border-radius: 10px;
  }

  .feature-card-icon svg {
    width: 20px;
    height: 20px;
  }

  .feature-card-title {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .feature-card-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    display: block;
    /* ensure text is always visible */
  }

  .stats {
    padding: 60px 24px;
  }

  .stats-glass {
    padding: 40px 24px;
  }

  .stats-grid {
    flex-direction: column;
    gap: 24px;
  }

  .partners {
    padding: 60px 24px;
  }

  .glass-panel {
    padding: 40px 24px;
    border-radius: 20px;
  }

  .how-it-works {
    padding: 60px 24px;
  }

  /* ambassador strip */
  .ambassador-strip-row {
    gap: 20px;
  }

  .ambassador-pill-photo {
    width: 48px;
    height: 48px;
  }

  /* ambassadors page */
  .ambassadors-hero {
    padding: 100px 24px 60px;
  }

  .ambassadors-grid-section {
    padding: 0 24px 80px;
  }

  .ambassador-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .ambassadors-benefits {
    padding: 0 24px 80px;
  }

  .ambassadors-benefits-grid {
    grid-template-columns: 1fr;
  }

  .ambassadors-steps {
    padding: 0 24px 80px;
  }

  .ambassadors-steps-container {
    flex-direction: column;
    align-items: center;
  }

  .steps-container {
    flex-direction: column;
    gap: 24px;
    position: relative;
  }

  .steps-container::before {
    display: block;
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 20px;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, var(--accent), rgba(99, 102, 241, 0.5), rgba(168, 85, 247, 0.5));
    opacity: 0.3;
  }

  .step-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 0 16px;
    text-align: left;
    align-items: start;
  }

  .step-number {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    margin-bottom: 0;
    z-index: 1;
    border-width: 1px;
  }

  .step-title {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 4px;
    padding-top: 8px;
    font-size: 1rem;
  }

  .step-desc {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.85rem;
  }

  .testimonials {
    padding: 60px 24px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .blog-highlights {
    padding: 60px 24px;
  }

  .blog-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .blog-highlight-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .blog-highlight-card h3 {
    font-size: 0.92rem;
  }

  .blog-highlight-card p {
    font-size: 0.8rem;
  }

  .cta {
    padding: 60px 24px;
  }

  /* quiz aha */
  .quiz-aha {
    padding: 60px 24px;
  }

  .quiz-aha-panel {
    padding: 36px 24px;
  }

  .quiz-aha-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  /* showcases */
  .showcases {
    padding: 60px 24px;
    gap: 60px;
  }

  .showcase-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .showcase-block--reverse {
    direction: ltr;
  }

  .showcase-screenshot {
    aspect-ratio: 16 / 9;
  }

  /* credibility */
  .credibility {
    padding: 60px 24px;
  }

  .credibility-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .credibility-card {
    padding: 28px 24px;
  }

  /* quiz funnel */
  .quiz-funnel {
    padding: 60px 24px;
  }

  .quiz-funnel-panel {
    padding: 36px 24px;
  }

  .quiz-funnel-option {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .pricing-hero {
    padding: 80px 24px 40px;
  }

  .pricing-grid {
    gap: 8px;
    padding: 0 16px 60px;
  }

  .pricing-card {
    padding: 20px 10px;
    border-radius: 14px;
  }

  .pricing-card-name {
    font-size: 0.85rem;
  }

  .pricing-card-amount {
    font-size: 1.6rem;
  }

  .pricing-card-period {
    font-size: 0.65rem;
  }

  .pricing-card-savings {
    font-size: 0.62rem;
    margin-bottom: 10px;
  }

  .pricing-card-badge {
    font-size: 0.58rem;
    padding: 2px 8px;
    margin-bottom: 8px;
  }

  .pricing-card-divider {
    margin: 12px 0;
  }

  .pricing-card-features {
    gap: 6px;
    margin-bottom: 14px;
  }

  .pricing-card-features li {
    font-size: 0.68rem;
    gap: 5px;
    line-height: 1.3;
  }

  .pricing-card-features li svg {
    width: 12px;
    height: 12px;
  }

  .pricing-card-cta {
    padding: 10px 6px;
    font-size: 0.72rem;
    border-radius: 10px;
  }

  .pricing-card-guarantee {
    font-size: 0.6rem;
  }

  .pricing-faq {
    padding: 0 24px 80px;
  }

  .pricing-faq-header {
    margin-bottom: 30px;
  }

  .pricing-faq-toggle {
    padding: 18px 20px;
    gap: 12px;
  }

  .pricing-faq-answer p {
    padding: 0 20px 18px;
  }

  .pricing-guarantee {
    padding: 0 24px 60px;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }

  .footer-disclaimer {
    order: 1;
    font-size: 0.68rem;
  }

  /* ambassador 480px */
  .ambassador-strip-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .ambassador-pill {
    flex-direction: column;
    text-align: center;
  }

  .ambassador-pill-info {
    text-align: center;
  }

  .ambassadors-grid {
    flex-direction: column;
    align-items: center;
  }

  .ambassador-card {
    flex: 0 1 100%;
    max-width: 100%;
  }

  /* profile responsive */
  .profile-main {
    padding: 80px 16px 40px;
  }

  .profile-header-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
  }

  .profile-avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }

  .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-stat-value {
    font-size: 1.4rem;
  }

  .profile-achievements-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .profile-modules-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .profile-peptides-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .profile-friend-request-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .profile-friends-list {
    grid-template-columns: 1fr;
  }

  .profile-friend-card {
    flex-wrap: wrap;
  }

  .profile-friend-card-actions {
    flex-direction: row;
    width: 100%;
  }
}

/* ============================================== */
/* responsive: 480px                               */
/* ============================================== */

@media (max-width: 480px) {
  .hero {
    padding: 130px 16px 56px;
  }

  .hero-visual {
    width: 130px;
  }

  .hero-visual .video-container {
    height: 200px;
  }

  .hero-title-accent {
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-email-input {
    font-size: 0.88rem;
    padding: 12px 48px 12px 16px;
  }

  .hero-email-input::placeholder {
    font-size: 0.82rem;
  }

  .hero-email-submit {
    width: 34px;
    height: 34px;
  }

  .social-proof-section {
    padding: 32px 16px;
  }

  .social-proof-grid {
    gap: 20px 24px;
  }

  .social-proof-number {
    font-size: 1.6rem;
  }

  .social-proof-label {
    font-size: 0.72rem;
  }

  .content-overlay {
    padding-top: 40px;
  }

  .features {
    padding: 60px 16px;
  }

  .features-glass,
  .glass-panel,
  .stats-glass {
    padding: 30px 18px;
    border-radius: 18px;
  }

  /* horizontal swipe on small screens */
  .features-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 16px 20px;
    margin: 0 -16px;
    scrollbar-width: none;
  }

  .features-grid::-webkit-scrollbar {
    display: none;
  }

  .feature-card:nth-child(n) {
    flex: 0 0 85%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .feature-card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 8px;
  }

  .feature-card-icon svg {
    width: 18px;
    height: 18px;
  }

  .feature-card-title {
    font-size: 0.85rem;
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .feature-card-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    display: block;
    /* ensure text is always visible */
    color: var(--text-secondary);
  }

  .stats,
  .how-it-works,
  .cta,
  .blog-highlights {
    padding-left: 16px;
    padding-right: 16px;
  }

  .blog-highlights-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .blog-highlight-card h3 {
    font-size: 0.88rem;
  }

  /* quiz aha 480 */
  .quiz-aha {
    padding: 48px 16px;
  }

  .quiz-aha-panel {
    padding: 28px 16px;
  }

  .quiz-aha-question {
    font-size: 1rem;
  }

  .quiz-aha-buttons {
    gap: 12px;
  }

  .quiz-aha-btn {
    padding: 10px 20px;
    font-size: 0.88rem;
  }

  /* showcases 480 */
  .showcases {
    padding: 48px 16px;
    gap: 48px;
  }

  .showcase-title {
    font-size: 1.3rem;
  }

  .showcase-desc {
    font-size: 0.9rem;
  }

  /* credibility 480 */
  .credibility {
    padding: 48px 16px;
  }

  .credibility-card {
    padding: 24px 18px;
  }

  /* quiz funnel 480 */
  .quiz-funnel {
    padding: 48px 16px;
  }

  .quiz-funnel-panel {
    padding: 28px 16px;
  }

  .quiz-funnel-heading {
    font-size: 1.1rem;
  }

  .quiz-funnel-option {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .pricing-grid {
    gap: 6px;
    padding: 0 10px 48px;
  }

  .pricing-card {
    padding: 14px 8px;
    border-radius: 12px;
  }

  .pricing-card-name {
    font-size: 0.75rem;
  }

  .pricing-card-amount {
    font-size: 1.35rem;
  }

  .pricing-card-period {
    font-size: 0.58rem;
  }

  .pricing-card-savings {
    font-size: 0.56rem;
    margin-bottom: 8px;
  }

  .pricing-card-badge {
    font-size: 0.52rem;
    padding: 2px 6px;
    margin-bottom: 6px;
  }

  .pricing-card-divider {
    margin: 8px 0;
  }

  .pricing-card-features {
    gap: 5px;
    margin-bottom: 10px;
  }

  .pricing-card-features li {
    font-size: 0.6rem;
    gap: 4px;
    line-height: 1.25;
  }

  .pricing-card-features li svg {
    width: 10px;
    height: 10px;
  }

  .pricing-card-cta {
    padding: 8px 4px;
    font-size: 0.65rem;
    border-radius: 8px;
  }

  .pricing-card-guarantee {
    font-size: 0.55rem;
  }

  .pricing-faq {
    padding: 0 16px 64px;
  }

  .pricing-faq-toggle {
    font-size: 0.88rem;
    padding: 16px;
  }

  .pricing-faq-answer p {
    font-size: 0.84rem;
    padding: 0 16px 16px;
  }

  .profile-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .profile-achievements-grid {
    grid-template-columns: 1fr;
  }

  .profile-activity-item {
    flex-wrap: wrap;
    gap: 6px;
  }

  .profile-activity-time {
    width: 100%;
  }
}

/* ============================================== */
/* light theme overrides for profile               */
/* ============================================== */

[data-theme="light"] .profile-achievement-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .profile-achievement-card--unlocked {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.06);
}

[data-theme="light"] .profile-activity-item,
[data-theme="light"] .profile-friend-request-item,
[data-theme="light"] .profile-search-result-item {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .profile-search-input,
[data-theme="light"] .profile-setting-input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .profile-search-btn,
[data-theme="light"] .profile-setting-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .profile-friend-decline-btn,
[data-theme="light"] .profile-friend-remove-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .profile-tier-badge--free {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .profile-loading-spinner {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: var(--accent);
}

/* ===== css/nav.css ===== */
/* navigation styles extracted from landing.css */
/* includes: .landing-nav, .theme-toggle, .sound-toggle-btn, .user-menu, hamburger menu */

/* navigation */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  background: var(--landing-nav-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.landing-nav.is-scrolled {
  background: var(--landing-nav-bg-scrolled);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.landing-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.landing-nav-logo svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.landing-nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.landing-nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
  letter-spacing: -0.01em;
}

.landing-nav-links a:hover {
  color: var(--text-primary);
}

.landing-nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.landing-nav-links--learning {
  gap: 14px;
}

.landing-nav-cta {
  background: var(--accent);
  color: var(--accent-contrast) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease !important;
}

.landing-nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* theme toggle (landing pages) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--button-ghost-border);
  background: var(--button-ghost-bg);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.theme-toggle:hover {
  background: var(--button-ghost-bg-hover);
  border-color: var(--button-ghost-border-hover);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

.theme-toggle-icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle-icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle-icon--moon {
  display: block;
}

/* theme toggle (styles.css version - learn module pages with .academy-header-actions) */
.academy-header-actions .theme-toggle {
  position: absolute;
  right: 0;
  top: 0.25rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-smooth);
  -webkit-tap-highlight-color: transparent;
}

.academy-header-actions .theme-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.academy-header-actions .theme-toggle [data-lucide] {
  width: 16px;
  height: 16px;
}

.academy-header-actions .theme-toggle .icon-moon {
  display: block;
}

.academy-header-actions .theme-toggle .icon-sun {
  display: none;
}

html.dark .academy-header-actions .theme-toggle .icon-moon {
  display: none;
}

html.dark .academy-header-actions .theme-toggle .icon-sun {
  display: block;
}

/* nav credit badge */
.nav-credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
}

.nav-credits-badge svg {
  flex-shrink: 0;
}

/* hamburger menu button */
.landing-nav-hamburger {
  display: none;
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  color: var(--text-primary);
  transition: opacity 0.2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.landing-nav-hamburger:hover {
  opacity: 0.7;
}

.landing-nav-hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.landing-nav-hamburger-icon {
  width: 22px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.landing-nav-hamburger-line {
  width: 100%;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.landing-nav.nav-open .landing-nav-hamburger-line:nth-child(1) {
  transform: translateY(6.75px) rotate(45deg);
}

.landing-nav.nav-open .landing-nav-hamburger-line:nth-child(2) {
  opacity: 0;
}

.landing-nav.nav-open .landing-nav-hamburger-line:nth-child(3) {
  transform: translateY(-6.75px) rotate(-45deg);
}

/* sound toggle (landing.css version - uses --text-muted / --text vars) */
.sound-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s, background-color 0.2s;
  padding: 0;
}

.sound-toggle-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .sound-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 480px) {
  .sound-toggle-btn {
    width: 44px;
    height: 44px;
  }
}

/* sound toggle (styles.css version - uses --color-text-muted / --color-text vars) */
/* this override applies on learn module pages which use styles.css variables */
/*
.sound-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
    padding: 0;
}

.sound-toggle-btn:hover {
    color: var(--color-text);
    background: var(--color-border);
}

@media (max-width: 480px) {
    .sound-toggle-btn {
        width: 28px;
        height: 28px;
    }

    .sound-toggle-btn svg {
        width: 14px;
        height: 14px;
    }
}
*/

/* user menu */
.user-menu {
  position: relative;
}

.user-menu-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: lowercase;
}

.user-menu-avatar:hover {
  background: rgba(52, 211, 153, 0.25);
  transform: scale(1.05);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
  z-index: var(--z-dropdown);
}

.user-menu-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

[data-theme="light"] .user-menu-dropdown {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.75) 100%);
  border-color: rgba(0, 0, 0, 0.1);
}

.user-menu-email {
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.user-menu-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-menu-item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* ---- responsive: nav-only rules from mixed @media (max-width: 768px) ---- */

/* note: the main 768px media query in landing.css mixes nav, hero, orb, footer,
   and other selectors. the nav-specific rules are duplicated here for reference.
   the original mixed media query in landing.css is NOT modified. */

@media (max-width: 768px) {
  body.nav-menu-open {
    overflow: hidden;
  }

  .landing-nav {
    padding: 14px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .landing-nav::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: calc(var(--z-dropdown) - 1);
  }

  [data-theme="light"] .landing-nav::before {
    background: rgba(15, 23, 42, 0.45);
  }

  .landing-nav.nav-open::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .landing-nav-hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: calc(var(--z-dropdown) + 1);
  }

  .landing-nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 8, 12, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: none;
    padding: 80px 24px 32px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    overflow-y: auto;
    z-index: var(--z-dropdown);
    pointer-events: none;
  }

  [data-theme="light"] .landing-nav-links {
    background: rgba(248, 250, 252, 0.99);
    border-top: none;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
  }

  .landing-nav.nav-open .landing-nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .landing-nav-links a:not(.landing-nav-cta):not(.auth-nav-btn) {
    display: block;
    padding: 16px 4px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    border-bottom: 1px solid var(--glass-border);
  }

  .landing-nav.nav-open .landing-nav-links a:not(.landing-nav-cta):not(.auth-nav-btn) {
    display: block;
  }

  .landing-nav-links a:last-of-type:not(.landing-nav-cta):not(.auth-nav-btn) {
    border-bottom: none;
  }

  [data-theme="light"] .landing-nav-links a:not(.landing-nav-cta):not(.auth-nav-btn) {
    border-bottom-color: rgba(15, 23, 42, 0.08);
  }

  .landing-nav-cta {
    margin-top: 8px;
    display: block;
    text-align: center;
  }

  .landing-nav-links--learning a {
    display: block;
    padding: 16px 4px;
  }

  .landing-nav.nav-open .landing-nav-links--learning a {
    display: inline-flex;
  }

  /* auth buttons in mobile nav */
  .landing-nav-links .auth-nav-btn {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 14px 0;
  }

  .landing-nav-links .auth-nav-btn--signup {
    margin-top: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
  }

  .landing-nav-links .auth-nav-btn--login {
    margin-top: 16px;
    padding: 14px 0;
    color: var(--text-secondary);
  }

  .theme-toggle {
    width: 44px;
    height: 44px;
  }

  .landing-nav-links .theme-toggle {
    margin: 16px auto 0;
  }

  .user-menu-dropdown {
    right: 0;
    max-width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-nav,
  .landing-nav-link,
  .landing-nav-cta,
  .landing-nav-hamburger,
  .landing-nav-links,
  .theme-toggle,
  .user-menu-dropdown,
  .user-menu-item,
  .cookie-banner {
    transition: none;
  }
}

/* ---- cookie consent banner ---- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-toast);
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner--hidden {
  opacity: 0;
  transform: translateY(100%);
}

.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cookie-banner-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.cookie-banner-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner-btn {
  flex-shrink: 0;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: none;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.cookie-banner-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.cookie-banner-btn--decline {
  color: var(--text-muted);
  border-color: var(--border);
}

.cookie-banner-btn--decline:hover {
  background: var(--border);
  color: var(--text-primary);
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-btn {
    width: 100%;
  }
}

/* ===== css/footer.css ===== */
/* footer styles extracted from landing.css and styles.css */
/* includes: .landing-footer, .footer-*, footer responsive breakpoints */

/* ===== landing footer (from landing.css) ===== */

/* footer */
.landing-footer {
  position: relative;
  z-index: var(--z-footer);
  padding: 80px 40px 32px;
  margin-top: 80px;
  background: var(--bg-primary);
}

/* smooth gradient fade into footer (mirrors hero-video-runway at page top) */
.landing-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.footer-brand-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 300px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-contact-list li svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.footer-socials a:hover {
  color: var(--text-primary);
  background: var(--bg-secondary, rgba(128, 128, 128, 0.1));
}

.footer-socials a svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  padding: 6px 0;
}

.footer-links li a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--footer-divider);
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  padding: 6px 0;
}

.footer-legal-links a:hover {
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* footer disclaimer */
.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.7;
}

/* ===== styles.css footer overrides ===== */

/* landing-footer override in styles.css (learn pages) */
/* .landing-footer {
     padding: 80px 40px 32px;
     margin-top: 80px;
   }
   note: duplicated in styles.css line 3252, kept in original file */

/* tighter footer on learn pages with sidebar */
.learn-page--with-sidebar ~ .landing-footer {
  margin-top: 0;
  padding-top: 48px;
}

/* styles.css footer components (used on learn module pages) */
.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
}

.footer-sources {
  margin-top: 0.5rem;
  font-size: 0.72rem;
}

.footer-sources a {
  color: var(--color-primary);
  text-decoration: none;
}

.footer-sources a:hover {
  text-decoration: underline;
}

/* ===== responsive: footer-only rules from mixed @media (max-width: 768px) ===== */

/* note: the main 768px media query in landing.css mixes footer with nav, hero,
   and other selectors. the footer-specific rules are duplicated here for reference.
   the original mixed media query in landing.css is NOT modified. */

@media (max-width: 768px) {
  .landing-footer {
    padding: 60px 24px 24px;
    margin-top: 60px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-legal-links {
    gap: 16px;
  }

  .footer-disclaimer {
    order: 1;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


/* ===== css/background.css ===== */
/* background orb styles extracted from landing.css */
/* includes: .landing-bg, .landing-bg-orb variants, orb keyframe animations */

/* animated background orbs */
.landing-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.landing-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  will-change: transform;
}

.landing-bg-orb--1 {
  width: 600px;
  height: 600px;
  background: rgba(52, 211, 153, 0.25);
  top: -10%;
  left: -5%;
  animation: orbFloat1 18s ease-in-out infinite alternate;
}

.landing-bg-orb--2 {
  width: 500px;
  height: 500px;
  background: rgba(99, 102, 241, 0.2);
  top: 30%;
  right: -10%;
  animation: orbFloat2 22s ease-in-out infinite alternate;
}

.landing-bg-orb--3 {
  width: 400px;
  height: 400px;
  background: rgba(168, 85, 247, 0.15);
  bottom: -5%;
  left: 30%;
  animation: orbFloat3 20s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.15); }
}

@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 40px) scale(1.1); }
}

@keyframes orbFloat3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -50px) scale(1.2); }
}

/* ===== responsive: orb-only rules from mixed @media (max-width: 768px) ===== */

/* note: the main 768px media query in landing.css mixes orb styles with nav, hero,
   footer, and other selectors. the orb-specific rules are duplicated here for reference.
   the original mixed media query in landing.css is NOT modified. */

/* light mode: soften orbs against light backgrounds */
[data-theme="light"] .landing-bg-orb {
  opacity: 0.15;
}

@media (max-width: 768px) {
  /* performance: reduce orb blur and size on mobile */
  .landing-bg-orb {
    filter: blur(60px);
    will-change: auto;
  }
  .landing-bg-orb--1 { width: 300px; height: 300px; }
  .landing-bg-orb--2 { width: 250px; height: 250px; }
  .landing-bg-orb--3 { width: 200px; height: 200px; }
  .landing-bg-orb--1,
  .landing-bg-orb--2,
  .landing-bg-orb--3 {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-bg-orb--1,
  .landing-bg-orb--2,
  .landing-bg-orb--3 {
    animation: none;
  }
}


/* ===== css/blog.css ===== */
/* blog index + post layout styles */

/* ============================================== */
/* blog hero */
/* ============================================== */

.blog-hero {
  padding: 136px 40px 32px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.blog-hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin-bottom: 14px;
}

.blog-hero .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.blog-hero-desc {
  font-size: 1.03rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
}

/* ============================================== */
/* blog start-here */
/* ============================================== */

/* ============================================== */
/* blog search + category filters */
/* ============================================== */

.blog-discovery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 26px;
}

.blog-search-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: lowercase !important;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-search-wrap {
  position: relative;
}

.blog-search-icon {
  position: absolute;
  width: 16px;
  height: 16px;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.blog-search-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.3;
  padding: 12px 72px 12px 40px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-search-input::placeholder {
  color: var(--text-muted);
}

.blog-search-input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.blog-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  cursor: pointer;
}

.blog-search-clear:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.blog-search-clear:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  padding: 14px 0 10px;
  max-width: none;
  margin: 0;
}

.blog-filter-btn {
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: lowercase !important;
}

.blog-filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-hover);
}

.blog-filter-btn.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.blog-filter-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.blog-results-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  min-height: 1.2rem;
}

/* ============================================== */
/* blog tool cards grid */
/* ============================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0 40px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-empty-state,
.blog-noscript {
  grid-column: 1 / -1;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  padding: 28px 24px;
}

.blog-empty-state {
  text-align: center;
}

.blog-empty-state-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.blog-empty-state-desc,
.blog-noscript p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.blog-noscript ul {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.blog-noscript li {
  color: var(--text-secondary);
}

.blog-noscript a {
  color: var(--text-primary);
}

/* static crawl links shown before JS replaces with cards */
.blog-crawl-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px 0;
}

.blog-crawl-links a {
  color: var(--text-primary);
  font-size: 0.9rem;
  text-decoration: underline;
}

.blog-card {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(255, 255, 255, 0.02) 50%,
      rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.blog-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.blog-card-image {
  position: relative;
  z-index: 1;
  width: calc(100% + 44px);
  margin: -24px -22px 4px;
  height: 160px;
  background-image: var(--og-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.5;
  transition: opacity 0.35s ease;
}

.blog-card--viewed .blog-card-image {
  opacity: 1;
}

.blog-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  background: rgba(20, 20, 20, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.blog-card-check svg {
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.blog-card-check--done {
  background: #059666;
  border-color: #ffffff;
  box-shadow: 0 3px 12px rgba(5, 150, 102, 0.55);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.blog-card-check--done svg {
  opacity: 1;
}

.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  pointer-events: none;
  z-index: 1;
}

[data-theme="light"] .blog-card-image {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  opacity: 0.5;
}

[data-theme="light"] .blog-card-check {
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .blog-card-check--done {
  background: #059666;
  border-color: #ffffff;
}

[data-theme="light"] .blog-card--viewed .blog-card-image {
  opacity: 1;
}

[data-theme="light"] .blog-card {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.45) 50%,
      rgba(255, 255, 255, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.blog-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-card.is-visible:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .blog-card.is-visible:hover {
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.8);
}

.blog-card--viewed {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 0 0 1px rgba(52, 211, 153, 0.2);
}

.blog-card.is-visible.blog-card--viewed:hover {
  border-color: rgba(52, 211, 153, 0.75);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(52, 211, 153, 0.3);
}

[data-theme="light"] .blog-card--viewed {
  border-color: rgba(5, 150, 105, 0.45);
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 0 0 1px rgba(5, 150, 105, 0.2);
}

.blog-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.blog-card-badges:empty {
  display: none;
}

.blog-card-name,
.blog-card-desc,
.blog-card-meta {
  position: relative;
  z-index: 1;
}

.blog-card-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: lowercase !important;
  line-height: 1.4;
  background: var(--accent-dim);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--accent);
}

.blog-card-badge--planner {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
}

.blog-card-badge--protocol {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
}

.blog-card-badge--comparison {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}

.blog-card-badge--calculator {
  color: #14b8a6;
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.25);
}

.blog-card-badge--safety {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}

.blog-card-badge--viewed {
  color: #34d399;
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.35);
}

.blog-card-badge--viewed::before {
  content: "✓ ";
}

.blog-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.32;
  text-transform: lowercase !important;
}

.blog-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.blog-card-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.blog-card-dot {
  opacity: 0.6;
}

.blog-card-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.blog-card-updated {
  color: var(--text-muted);
}

/* ============================================== */
/* blog post layout */
/* ============================================== */

.blog-post {
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 40px 80px;
}

.blog-post-header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-post-breadcrumb {
  display: none;
}

.blog-post-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-post-breadcrumb a:hover {
  color: var(--accent);
}

.blog-post-breadcrumb svg {
  width: 12px;
  height: 12px;
}

.blog-post-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.blog-post-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 20px;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-post-meta-item svg {
  width: 14px;
  height: 14px;
}

/* blog post hero image */

.blog-post-hero {
  width: 100%;
  max-width: 860px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.blog-post-hero img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

@media (max-width: 600px) {
  .blog-post-hero {
    border-radius: var(--radius-md);
    margin-bottom: 28px;
  }
}

/* blog prose content */

.blog-prose {
  margin-bottom: 48px;
}

.blog-prose h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
  color: var(--text-primary);
}

.blog-prose h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.blog-prose p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.blog-prose ul,
.blog-prose ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.blog-prose li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.blog-prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* blog disclaimer callout */

.blog-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  margin-bottom: 32px;
}

.blog-disclaimer svg {
  width: 20px;
  height: 20px;
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 1px;
}

.blog-disclaimer p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* quick answer + summary cards */

.blog-summary-card {
  margin: 0 0 40px;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  background:
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.blog-summary-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.24);
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.blog-summary-title {
  margin: 0 0 12px;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.blog-summary-list {
  margin: 0;
  padding-left: 18px;
}

.blog-summary-list li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.blog-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}

.blog-signal-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.blog-signal-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--text-primary);
}

.blog-signal-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.blog-signal-card--warning {
  border-color: rgba(245, 158, 11, 0.24);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 45%),
    rgba(245, 158, 11, 0.05);
}

/* blog references section (collapsible) */

.blog-references {
  margin-top: 48px;
  padding-top: 32px;
}

.blog-references-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 8px 0;
  list-style: none;
  user-select: none;
}

/* hide default marker in webkit/blink */
.blog-references-toggle::-webkit-details-marker {
  display: none;
}

.blog-references-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.blog-references-chevron {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  min-width: 18px;
  min-height: 18px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.blog-references[open] .blog-references-chevron {
  transform: rotate(180deg);
}

.blog-references-list {
  padding-left: 24px;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-references-list li {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.blog-references-list li em {
  color: var(--text-secondary);
}

/* blog CTA section at bottom */

.blog-cta {
  margin-top: 64px;
  text-align: center;
}

.blog-cta-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.blog-cta-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.blog-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.blog-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.blog-cta-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.blog-cta-link svg {
  width: 16px;
  height: 16px;
}

/* divider between references and related courses */

.blog-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 48px 0 0;
}

/* related courses section (visually distinct from related-reads list) */

.blog-related-courses {
  margin-top: 56px;
  padding: 0;
  border: none;
  background: transparent;
}

.blog-related-courses-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.blog-related-courses-desc {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 640px;
}

.blog-related-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.blog-course-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.blog-course-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.blog-course-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.12);
}

.blog-course-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-course-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.blog-course-card-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.blog-related-courses-all {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.blog-related-courses-all:hover {
  text-decoration: underline;
}

/* related reads aside */

.blog-related-reads {
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.blog-related-reads h3 {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.blog-related-reads ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-related-reads li a {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-related-reads li a:hover {
  color: var(--accent-hover, var(--accent));
  text-decoration: underline;
}

/* blog-scoped FAQ overrides (pricing-faq inside blog-post) */

.blog-post .pricing-faq {
  max-width: none;
  padding: 0 0 48px;
}

.blog-post .pricing-faq-header {
  text-align: left;
  margin-bottom: 24px;
}

.blog-post .pricing-faq-header .section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--text-primary);
}

/* ============================================== */
/* medical trust + next paths */
/* ============================================== */

.blog-next-paths {
  margin: 12px 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--glass-bg);
}

.blog-next-paths-title {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.blog-next-paths-subtitle {
  margin: 7px 0 12px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.blog-next-paths-grid {
  display: grid;
  gap: 10px;
}

.blog-next-path-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  text-decoration: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.blog-next-path-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.blog-next-path-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.blog-next-path-desc {
  display: block;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ============================================== */
/* entrance animations */
/* ============================================== */

.blog-hero,
.blog-discovery {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.blog-hero.is-visible,
.blog-discovery.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-discovery {
  transition-delay: 100ms;
}

/* ============================================== */
/* responsive */
/* ============================================== */

@media (max-width: 1024px) {
  .blog-next-paths-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-next-paths-grid {
    grid-template-columns: 1fr;
  }

  .blog-signal-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    padding: 120px 24px 26px;
  }

  .blog-discovery {
    padding-left: 24px;
    padding-right: 24px;
  }

  .blog-filters {
    gap: 6px;
    padding-bottom: 8px;
  }

  .blog-search-input {
    font-size: 16px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 24px 72px;
  }

  .blog-card {
    padding: 18px 14px;
    border-radius: 20px;
    min-height: 168px;
    gap: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .blog-card-badges,
  .blog-card-desc,
  .blog-card-meta {
    display: none;
  }

  .blog-card-name {
    font-size: 0.98rem;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .blog-post {
    padding: 120px 24px 60px;
  }

  .blog-summary-card {
    padding: 18px 18px;
  }

}

@media (max-width: 480px) {
  .blog-hero {
    padding: 98px 20px 22px;
  }

  .blog-hero-kicker {
    font-size: 0.64rem;
    padding: 5px 10px;
  }

  .blog-discovery {
    padding-left: 20px;
    padding-right: 20px;
  }

  .blog-filters {
    gap: 5px;
  }

  .blog-filter-btn {
    font-size: 0.7rem;
    padding: 7px 12px;
  }

  .blog-grid {
    gap: 10px;
    padding: 0 20px 56px;
  }

  .blog-card {
    padding: 16px 12px;
    min-height: 150px;
    border-radius: 18px;
  }

  .blog-card-name {
    font-size: 0.9rem;
  }

  .blog-post {
    padding: 100px 20px 48px;
  }


  .blog-post-subtitle {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-post-breadcrumb a,
  .blog-post-meta-item,
  .blog-references-chevron,
  .blog-cta-link,
  .blog-references-toggle,
  .blog-disclaimer {
    transition: none;
  }
}


/* ===== css/auth.css ===== */
/* authentication styles extracted from landing.css */
/* includes: nav auth buttons, user menu, auth modal, consent checkboxes */

/* ==========================================================================
   SOURCE: landing.css -- nav auth buttons
   ========================================================================== */

/* nav auth buttons */
.auth-nav-btn {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: none;
}

.auth-nav-btn--login {
  color: var(--text-secondary);
}

.auth-nav-btn--login:hover {
  color: var(--text-primary);
}

.auth-nav-btn--signup {
  color: var(--accent);
  padding: 6px 16px;
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
}

.auth-nav-btn--signup:hover {
  background: rgba(52, 211, 153, 0.25);
  border-color: var(--accent);
}

/* ==========================================================================
   SOURCE: landing.css -- user menu
   ========================================================================== */

/* user menu */
.user-menu {
  position: relative;
}

.user-menu-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: lowercase;
}

.user-menu-avatar--image {
  padding: 0;
  color: transparent;
  overflow: hidden;
}

.user-menu-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.user-menu-avatar:hover {
  background: rgba(52, 211, 153, 0.25);
  transform: scale(1.05);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
  z-index: var(--z-dropdown);
}

.user-menu-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

[data-theme="light"] .user-menu-dropdown {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.75) 100%
  );
  border-color: rgba(0, 0, 0, 0.1);
}

.user-menu-email {
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.user-menu-stats {
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-menu-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.user-menu-stat-label {
  color: var(--text-muted);
}

.user-menu-stat-value {
  color: var(--accent);
  font-weight: 600;
}

.user-menu-xp-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.user-menu-xp-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.user-menu-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-menu-item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* ==========================================================================
   SOURCE: landing.css -- auth modal overlay
   ========================================================================== */

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.auth-modal-overlay--visible {
  opacity: 1;
  visibility: visible;
}

[data-theme="light"] .auth-modal-overlay {
  background: rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   SOURCE: landing.css -- auth modal card
   ========================================================================== */

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 20px;
  padding: 40px 32px 32px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: var(--radius-xl);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(8px);
  transition: transform var(--transition-fast);
}

.auth-modal-overlay--visible .auth-modal {
  transform: translateY(0);
}

[data-theme="light"] .auth-modal {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.65) 100%
  );
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.auth-modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* ==========================================================================
   SOURCE: landing.css -- auth modal tabs
   ========================================================================== */

.auth-modal-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.auth-modal-tab {
  flex: 1;
  padding: 10px 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.auth-modal-tab:hover {
  color: var(--text-secondary);
}

.auth-modal-tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   SOURCE: landing.css -- auth modal form
   ========================================================================== */

.auth-modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-modal-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.auth-modal-input {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

.auth-modal-input:focus {
  border-color: var(--accent);
}

.auth-modal-input::placeholder {
  color: var(--text-muted);
}

/* ==========================================================================
   SOURCE: landing.css -- forgot password link
   ========================================================================== */

.auth-modal-forgot {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
  margin-bottom: 8px;
}

.auth-modal-forgot-link {
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.auth-modal-forgot-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   SOURCE: auth hint text (username field)
   ========================================================================== */

.auth-modal-hint {
  font-size: 0.75rem;
  color: var(--text-muted, rgba(255,255,255,0.45));
  margin-top: 4px;
  line-height: 1.3;
}

.auth-modal-hint--error {
  color: var(--danger, #ef4444);
}

.auth-modal-hint--success {
  color: var(--accent, #4ade80);
}

/* ==========================================================================
   SOURCE: landing.css -- submit button
   ========================================================================== */

.auth-modal-submit {
  width: 100%;
  padding: 11px 20px;
  margin-top: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-contrast);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-modal-submit:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.auth-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   SOURCE: landing.css -- error message
   ========================================================================== */

.auth-modal-error {
  font-size: 0.82rem;
  color: var(--danger);
  display: none;
  text-align: center;
  line-height: 1.4;
}

/* ==========================================================================
   SOURCE: landing.css -- note
   ========================================================================== */

.auth-modal-note {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   purchase context banner (shown when signup is triggered from paywall)
   ========================================================================== */

.auth-modal-purchase-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-sm);
}

.auth-modal-purchase-banner svg {
  flex-shrink: 0;
}

/* ==========================================================================
   email confirmation success state
   ========================================================================== */

.auth-modal-confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  text-align: center;
}

.auth-modal-confirmation-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.auth-modal-confirmation-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.auth-modal-confirmation-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 280px;
}

.auth-modal-confirmation-close {
  margin-top: 8px;
  padding: 9px 24px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-modal-confirmation-close:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* ==========================================================================
   SOURCE: landing.css -- responsive auth
   ========================================================================== */

@media (max-width: 768px) {
  .auth-nav-btn--login,
  .auth-nav-btn--signup {
    font-size: 0.9rem;
  }

  .auth-nav-btn--signup {
    padding: 8px 16px;
  }

  .auth-modal {
    margin: 16px;
    padding: 32px 24px 24px;
  }

  .user-menu-dropdown {
    right: 0;
    max-width: calc(100vw - 32px);
  }
}

/* ==========================================================================
   SOURCE: landing.css -- auth modal consent checkboxes
   ========================================================================== */

.auth-modal-consent {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-modal-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.auth-modal-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.auth-modal-checkbox a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-modal-checkbox a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ==========================================================================
   BLOG: first-time signup nudge for logged-out visitors
   ========================================================================== */

.blog-signup-nudge {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1100;
  max-width: 360px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 15, 26, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 10px;
  color: #e2e8f0;
}

.blog-signup-nudge__text {
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.35;
}

.blog-signup-nudge__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-signup-nudge__btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #e2e8f0;
  font-size: 0.76rem;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.blog-signup-nudge__btn--primary {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.16);
  color: #34d399;
}

.blog-signup-nudge__close {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 768px) {
  .blog-signup-nudge {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-modal-overlay,
  .auth-modal,
  .auth-modal-input,
  .auth-modal-submit,
  .auth-modal-tab,
  .auth-modal-checkbox,
  .auth-modal-close,
  .auth-modal-forgot-link,
  .blog-signup-nudge {
    transition: none;
  }
}


/* ===== css/gamification.css ===== */
/* gamification styles extracted from styles.css and landing.css */
/* includes: xp bar, xp toast, level toast, streak badge, sound toggle, achievement toast, daily quests */

/* ==========================================================================
   SOURCE: styles.css -- XP bar + toast system
   ========================================================================== */

.xp-bar-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    margin: 0 0.75rem;
}

.xp-bar-level {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-warning);
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}

.xp-bar-level svg {
    color: var(--color-warning);
    flex-shrink: 0;
}

.xp-bar-level-num {
    font-variant-numeric: tabular-nums;
}

.xp-bar-track {
    width: 80px;
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-success));
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.xp-bar-text {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* xp toast */
.xp-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-toast);
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.xp-toast-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.xp-toast-exit {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.xp-toast-amount {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-success);
}

.xp-toast-reason {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* level up toast */
.level-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--color-warning);
    border-radius: var(--radius-xl, 20px);
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.15), var(--shadow-lg);
    z-index: var(--z-toast-top);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.level-toast-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.level-toast-exit {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.level-toast-icon {
    color: var(--color-warning);
    display: flex;
    align-items: center;
    animation: levelPulse 0.6s ease-in-out infinite alternate;
}

.level-toast-text {
    font-weight: 800;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--color-warning), var(--color-danger));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes levelPulse {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    .xp-toast,
    .level-toast {
        transition: opacity 0.15s ease;
    }
    .level-toast-icon {
        animation: none;
    }
    .xp-bar-fill {
        transition: none;
    }
}

/* responsive xp bar */
@media (max-width: 768px) {
    .xp-bar-container {
        margin: 0 0.35rem;
    }
    .xp-bar-track {
        width: 50px;
    }
    .xp-bar-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .xp-bar-track {
        width: 36px;
    }
}

/* ==========================================================================
   SOURCE: styles.css -- streak badge
   ========================================================================== */

.streak-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-warning);
    margin: 0 0.35rem;
    transition: transform 0.2s ease, background 0.2s ease;
    cursor: default;
}

.streak-badge:hover {
    background: rgba(251, 146, 60, 0.15);
    transform: scale(1.05);
}

.streak-icon {
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.streak-icon.streak-active {
    color: var(--color-warning);
    fill: var(--color-warning);
    filter: drop-shadow(0 0 3px rgba(251, 146, 60, 0.5));
}

.streak-count {
    line-height: 1;
}

.streak-badge-new {
    animation: streakPulse 0.6s ease;
}

@keyframes streakPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.2); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .streak-badge-new {
        animation: none;
    }
}

@media (max-width: 480px) {
    .streak-badge {
        padding: 0.15rem 0.35rem;
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   SOURCE: styles.css -- sound toggle
   ========================================================================== */

.sound-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
    padding: 0;
}

.sound-toggle-btn:hover {
    color: var(--color-text);
    background: var(--color-border);
}

@media (max-width: 480px) {
    .sound-toggle-btn {
        width: 28px;
        height: 28px;
    }

    .sound-toggle-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* ==========================================================================
   SOURCE: styles.css -- achievement toast
   ========================================================================== */

.achievement-toast {
    position: fixed;
    top: 80px;
    right: -360px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    background: var(--color-bg-card, #1e1e2e);
    border: 1px solid var(--color-border, rgba(255,255,255,0.08));
    border-left: 3px solid #a855f7;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: var(--z-toast-top);
    max-width: 320px;
    transition: right 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.achievement-toast-visible {
    right: 20px;
}

.achievement-toast-exit {
    right: -360px;
    opacity: 0;
    transition: right 0.4s ease-in, opacity 0.3s ease;
}

.achievement-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    flex-shrink: 0;
}

.achievement-toast-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    color: #a855f7;
    margin-bottom: 0.1rem;
}

.achievement-toast-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text, #fafafa);
}

.achievement-toast-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted, #94a3b8);
    margin-top: 0.1rem;
}

@media (prefers-reduced-motion: reduce) {
    .achievement-toast {
        transition: none;
    }
    .achievement-toast-visible {
        right: 20px;
    }
    .achievement-toast-exit {
        display: none;
    }
}

@media (max-width: 480px) {
    .achievement-toast {
        top: auto;
        bottom: -120px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    .achievement-toast-visible {
        bottom: 20px;
        right: 10px;
    }
    .achievement-toast-exit {
        bottom: -120px;
        right: 10px;
    }
}

/* ==========================================================================
   SOURCE: styles.css -- daily quests
   ========================================================================== */

.quest-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-muted);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    z-index: var(--z-modal);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.quest-toggle.quest-toggle-nav {
    position: relative;
    bottom: auto;
    right: auto;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    z-index: auto;
    flex-shrink: 0;
}

.quest-toggle.quest-toggle-nav:hover {
    color: var(--color-text);
    background: var(--color-border);
    transform: none;
}

.quest-toggle:hover {
    color: var(--color-text);
    background: var(--color-border);
    transform: none;
}

.quest-toggle-active {
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.1);
}

.quest-toggle-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-danger, #ef4444);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.quest-panel {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 280px;
    background: var(--color-bg-card, #1e1e2e);
    border: 1px solid var(--color-border, rgba(255,255,255,0.08));
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    z-index: var(--z-modal-backdrop);
    padding: 1rem;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.quest-panel.quest-panel-nav {
    top: 74px;
    right: 24px;
    bottom: auto;
}

.quest-panel-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.quest-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.quest-panel-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text, #fafafa);
    margin: 0;
}

.quest-panel-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-primary, #6366f1);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.quest-panel-items {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.quest-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
}

.quest-item-done {
    opacity: 0.6;
}

.quest-item-done .quest-item-text {
    text-decoration: line-through;
}

.quest-item-check {
    flex-shrink: 0;
    color: var(--color-success, #10b981);
}

.quest-item-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--color-border, rgba(255,255,255,0.15));
}

.quest-item-content {
    flex: 1;
    min-width: 0;
}

.quest-item-text {
    font-size: 0.78rem;
    color: var(--color-text, #fafafa);
    display: block;
    margin-bottom: 0.25rem;
}

.quest-item-bar {
    height: 3px;
    border-radius: 2px;
    background: var(--color-border, rgba(255,255,255,0.08));
    overflow: hidden;
}

.quest-item-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--color-primary, #6366f1);
    transition: width 0.3s ease;
}

.quest-item-done .quest-item-bar-fill {
    background: var(--color-success, #10b981);
}

.quest-item-progress {
    font-size: 0.68rem;
    color: var(--color-text-muted, #94a3b8);
    flex-shrink: 0;
}

.quest-panel-complete {
    margin-top: 0.75rem;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-success, #10b981);
    background: rgba(16, 185, 129, 0.08);
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .quest-panel {
        transition: none;
    }
}

@media (max-width: 480px) {
    .quest-toggle {
        bottom: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }
    .quest-toggle.quest-toggle-nav {
        width: 28px;
        height: 28px;
    }
    .quest-panel {
        bottom: 68px;
        right: 16px;
        left: 16px;
        width: auto;
    }
    .quest-panel.quest-panel-nav {
        top: 70px;
        bottom: auto;
        right: 12px;
        left: 12px;
    }
}

/* ==========================================================================
   SOURCE: landing.css -- XP bar for landing nav
   ========================================================================== */

.xp-bar-container {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0;
}

.xp-bar-level {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: #f59e0b;
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}

.xp-bar-level svg {
  color: #f59e0b;
  flex-shrink: 0;
}

.xp-bar-level-num {
  font-variant-numeric: tabular-nums;
}

.xp-bar-track {
  width: 72px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

[data-theme="light"] .xp-bar-track {
  background: rgba(0, 0, 0, 0.08);
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #10b981);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.xp-bar-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* xp toast (shared across both css systems) */
.xp-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--glass-bg, rgba(255,255,255,0.05));
  backdrop-filter: var(--glass-blur, blur(24px));
  -webkit-backdrop-filter: var(--glass-blur, blur(24px));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: var(--z-toast);
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.xp-toast-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.xp-toast-exit {
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.xp-toast-amount {
  font-weight: 700;
  font-size: 0.95rem;
  color: #22c55e;
}

.xp-toast-reason {
  font-size: 0.8rem;
  color: var(--text-muted, #737373);
}

/* level up toast */
.level-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--glass-bg, rgba(255,255,255,0.05));
  backdrop-filter: var(--glass-blur, blur(24px));
  -webkit-backdrop-filter: var(--glass-blur, blur(24px));
  border: 1px solid #f59e0b;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(249,115,22,0.15), 0 8px 24px rgba(0,0,0,0.5);
  z-index: var(--z-toast-top);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.level-toast-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.level-toast-exit {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.level-toast-icon {
  color: #f59e0b;
  display: flex;
  align-items: center;
  animation: levelPulse 0.6s ease-in-out infinite alternate;
}

.level-toast-text {
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes levelPulse {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .xp-toast,
  .level-toast {
    transition: opacity 0.15s ease;
  }
  .level-toast-icon {
    animation: none;
  }
  .xp-bar-fill {
    transition: none;
  }
}

@media (max-width: 768px) {
  .xp-bar-container {
    gap: 0.3rem;
  }
  .xp-bar-track {
    width: 44px;
  }
  .xp-bar-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .xp-bar-track {
    width: 32px;
  }
}

/* ==========================================================================
   SOURCE: landing.css -- streak badge
   ========================================================================== */

.streak-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0.35rem;
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: default;
}

.streak-badge:hover {
  background: rgba(251, 146, 60, 0.15);
  transform: scale(1.05);
}

.streak-icon {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.streak-icon.streak-active {
  color: #fb923c;
  fill: #fb923c;
  filter: drop-shadow(0 0 3px rgba(251, 146, 60, 0.5));
}

.streak-count {
  line-height: 1;
}

.streak-badge-new {
  animation: streakPulse 0.6s ease;
}

@keyframes streakPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.2); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

[data-theme="light"] .streak-badge {
  background: rgba(251, 146, 60, 0.08);
  border-color: rgba(251, 146, 60, 0.15);
  color: #ea580c;
}

[data-theme="light"] .streak-icon.streak-active {
  color: #ea580c;
  fill: #ea580c;
}

@media (prefers-reduced-motion: reduce) {
  .streak-badge-new {
    animation: none;
  }
}

@media (max-width: 480px) {
  .streak-badge {
    padding: 0.15rem 0.35rem;
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   SOURCE: landing.css -- sound toggle
   ========================================================================== */

.sound-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s, background-color 0.2s;
  padding: 0;
}

.sound-toggle-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .sound-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 480px) {
  .sound-toggle-btn {
    width: 28px;
    height: 28px;
  }

  .sound-toggle-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* ==========================================================================
   SOURCE: landing.css -- achievement toast
   ========================================================================== */

.achievement-toast {
  position: fixed;
  top: 80px;
  right: -360px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 3px solid #a855f7;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: var(--z-toast-top);
  max-width: 320px;
  transition: right 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.achievement-toast-visible {
  right: 20px;
}

.achievement-toast-exit {
  right: -360px;
  opacity: 0;
  transition: right 0.4s ease-in, opacity 0.3s ease;
}

.achievement-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  flex-shrink: 0;
}

.achievement-toast-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  color: #a855f7;
  margin-bottom: 0.1rem;
}

.achievement-toast-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.achievement-toast-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

[data-theme="light"] .achievement-toast {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

@media (prefers-reduced-motion: reduce) {
  .achievement-toast {
    transition: none;
  }
  .achievement-toast-visible {
    right: 20px;
  }
  .achievement-toast-exit {
    display: none;
  }
}

@media (max-width: 480px) {
  .achievement-toast {
    top: auto;
    bottom: -120px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  .achievement-toast-visible {
    bottom: 20px;
    right: 10px;
  }
  .achievement-toast-exit {
    bottom: -120px;
    right: 10px;
  }
}

/* ==========================================================================
   SOURCE: landing.css -- daily quests
   ========================================================================== */

.quest-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  z-index: var(--z-modal);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.quest-toggle.quest-toggle-nav {
  position: relative;
  bottom: auto;
  right: auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  z-index: auto;
  flex-shrink: 0;
}

.quest-toggle.quest-toggle-nav:hover {
  color: var(--text-primary);
  background: var(--border);
  transform: none;
}

.quest-toggle:hover {
  color: var(--text-primary);
  background: var(--border);
  transform: none;
}

.quest-toggle-active {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
}

.quest-toggle-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.quest-panel {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 280px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: var(--z-modal-backdrop);
  padding: 1rem;
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.quest-panel.quest-panel-nav {
  top: 74px;
  right: 24px;
  bottom: auto;
}

.quest-panel-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.quest-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.quest-panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.quest-panel-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.quest-panel-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quest-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
}

.quest-item-done {
  opacity: 0.6;
}

.quest-item-done .quest-item-text {
  text-decoration: line-through;
}

.quest-item-check {
  flex-shrink: 0;
  color: #10b981;
}

.quest-item-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
}

.quest-item-content {
  flex: 1;
  min-width: 0;
}

.quest-item-text {
  font-size: 0.78rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.quest-item-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--glass-border);
  overflow: hidden;
}

.quest-item-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.quest-item-done .quest-item-bar-fill {
  background: #10b981;
}

.quest-item-progress {
  font-size: 0.68rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.quest-panel-complete {
  margin-top: 0.75rem;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 8px;
}

[data-theme="light"] .quest-panel {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

@media (prefers-reduced-motion: reduce) {
  .quest-panel {
    transition: none;
  }
}

@media (max-width: 480px) {
  .quest-toggle {
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }
  .quest-toggle.quest-toggle-nav {
    width: 28px;
    height: 28px;
  }
  .quest-panel {
    bottom: 68px;
    right: 16px;
    left: 16px;
    width: auto;
  }
  .quest-panel.quest-panel-nav {
    top: 70px;
    bottom: auto;
    right: 12px;
    left: 12px;
  }
}

/* ==========================================================================
   signup prompt overlay (post-quiz for logged-out users)
   ========================================================================== */

.signup-prompt-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.signup-prompt-visible {
    opacity: 1;
}

.signup-prompt-exit {
    opacity: 0;
    pointer-events: none;
}

.signup-prompt-card {
    background: var(--glass-bg, rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    padding: 2rem 1.75rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.signup-prompt-visible .signup-prompt-card {
    transform: translateY(0) scale(1);
}

.signup-prompt-exit .signup-prompt-card {
    transform: translateY(10px) scale(0.98);
}

.signup-prompt-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #fafafa);
    margin: 0 0 0.5rem 0;
}

.signup-prompt-sub {
    font-size: 0.9rem;
    color: var(--text-muted, #94a3b8);
    margin: 0 0 1.25rem 0;
}

.signup-prompt-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.signup-prompt-bullets li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-primary, #fafafa);
}

.signup-prompt-bullets li svg {
    flex-shrink: 0;
}

.signup-prompt-primary {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: var(--accent, #34d399);
    color: #000;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 0.75rem;
}

.signup-prompt-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.3);
}

.signup-prompt-primary:active {
    transform: translateY(0);
}

.signup-prompt-dismiss {
    display: block;
    width: 100%;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted, #94a3b8);
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.signup-prompt-dismiss:hover {
    color: var(--text-primary, #fafafa);
}

[data-theme="light"] .signup-prompt-overlay {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .signup-prompt-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .signup-prompt-overlay {
        transition: none;
    }
    .signup-prompt-card {
        transition: none;
    }
}

@media (max-width: 480px) {
    .signup-prompt-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }
    .signup-prompt-heading {
        font-size: 1.1rem;
    }
}

/* ===== inline signup CTA banners ===== */

.signup-cta-banner {
    background: var(--glass-bg, rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    max-width: 560px;
    margin: 2rem auto;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.signup-cta-visible {
    opacity: 1;
    transform: translateY(0);
}

.signup-cta-exit {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.signup-cta-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary, #fafafa);
    margin: 0 0 0.35rem 0;
}

.signup-cta-sub {
    font-size: 0.88rem;
    color: var(--text-muted, #94a3b8);
    margin: 0 0 1rem 0;
}

.signup-cta-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.signup-cta-bullets li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-primary, #fafafa);
}

.signup-cta-bullets li svg {
    flex-shrink: 0;
}

.signup-cta-btn {
    display: inline-block;
    padding: 0.65rem 1.75rem;
    border: none;
    border-radius: 10px;
    background: var(--accent, #34d399);
    color: #000;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 0.5rem;
}

.signup-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.3);
}

.signup-cta-btn:active {
    transform: translateY(0);
}

.signup-cta-dismiss {
    display: block;
    width: 100%;
    padding: 0.35rem;
    border: none;
    background: transparent;
    color: var(--text-muted, #94a3b8);
    font-family: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.signup-cta-dismiss:hover {
    color: var(--text-primary, #fafafa);
}

[data-theme="light"] .signup-cta-banner {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .signup-cta-banner {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 480px) {
    .signup-cta-banner {
        padding: 1.25rem 1rem;
        border-radius: 12px;
        margin: 1.5rem 1rem;
    }
    .signup-cta-heading {
        font-size: 1.05rem;
    }
}

/* ===== zigzag progress path ===== */
.progress-path {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.progress-path-track {
  display: flex;
  flex-direction: column;
}

.progress-path-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.progress-path-row-left {
  align-items: flex-start;
  padding-left: 20%;
}

.progress-path-row-right {
  align-items: flex-end;
  padding-right: 20%;
}

.progress-path-connector {
  width: 2px;
  height: 32px;
  background: var(--glass-border);
  margin: 0 auto;
  position: relative;
  left: 24px;
}

.progress-path-row-right .progress-path-connector {
  left: -24px;
}

.progress-path-connector-done {
  background: #10b981;
}

.progress-path-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 320px;
  width: 100%;
}

.progress-path-node:hover {
  transform: translateY(-2px);
}

.progress-path-node-available {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
}

.progress-path-node-available:hover {
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
  border-color: var(--accent);
}

.progress-path-node-complete {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  cursor: pointer;
}

.progress-path-node-complete:hover {
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.progress-path-node-locked {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.progress-path-node-current {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.progress-path-node-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.progress-path-node-available .progress-path-node-icon {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
}

.progress-path-node-complete .progress-path-node-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.progress-path-node-locked .progress-path-node-icon {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.progress-path-node-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.progress-path-node-num {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.progress-path-node-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.progress-path-node-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.progress-path-node-score {
  font-size: 0.68rem;
  font-weight: 600;
  color: #10b981;
  margin-top: 0.1rem;
}

.progress-path-current-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

.progress-path-lock {
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .progress-path-row-left,
  .progress-path-row-right {
    padding-left: 5%;
    padding-right: 5%;
    align-items: center;
  }
  .progress-path-connector {
    left: 0;
  }
  .progress-path-row-right .progress-path-connector {
    left: 0;
  }
  .progress-path-node {
    max-width: none;
  }
}

.progress-path-section {
  padding: 80px 40px;
  max-width: 700px;
  margin: 0 auto;
}

.progress-path-header {
  text-align: center;
  margin-bottom: 40px;
}

[data-theme="light"] .progress-path-node-available {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .progress-path-node-locked {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .progress-path-node-complete {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .progress-path-connector {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .progress-path-node-title {
  color: #1a1a2e;
}

[data-theme="light"] .progress-path-node-num,
[data-theme="light"] .progress-path-node-subtitle {
  color: #64748b;
}

@media (max-width: 768px) {
  .progress-path-section {
    padding: 60px 20px;
  }
}

