/* ========================================
   Muzie.Live - Dark SaaS Redesign
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* --- Theme tokens: dark defaults, flipped by .light-mode --- */
:root {
  --bg: #111118;
  --text: #c8c8d0;
  --head: #fff;
  --card: #111118;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: #a855f7; color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Sora', 'Inter', -apple-system, sans-serif; }

/* --- Utilities --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 14px;
  border: none; border-radius: 10px; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff; padding: 12px 24px;
}
.btn-primary:hover { background: linear-gradient(135deg, #9333ea, #db2777); transform: translateY(-1px); box-shadow: 0 4px 24px rgba(168,85,247,0.35); }
.btn-ghost {
  background: transparent; color: #c8c8d0; padding: 12px 24px; border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); }
.btn-outline {
  background: transparent; color: #c8c8d0; padding: 12px 24px; border: 1px solid rgba(255,255,255,0.12);
}
.btn-outline:hover { border-color: #a855f7; color: #a855f7; }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: 0.55; pointer-events: none; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ================================
   NAV
   ================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  transition: all 0.25s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center;
}
.logo-img { height: 90px; width: auto; }
.logo-img-sm { height: 66px; }
.nav-links {
  display: flex; gap: 32px;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: #888;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-link-btn { font-size: 14px; font-weight: 500; color: #888; transition: color 0.2s; }
.nav-link-btn:hover { color: #fff; }
.mobile-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 4px; }
.mobile-only { display: none; }

/* ================================
   HERO
   ================================ */
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(168,85,247,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent 60%);
  pointer-events: none;
}
.hero-center { margin-bottom: 48px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(45,212,191,0.08);
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: 100px; padding: 6px 16px;
  font-size: 13px; font-weight: 500; color: #5eead4;
  margin-bottom: 28px;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}
/* Tiny equalizer in the hero badge: three bars dancing at different tempos. */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i {
  width: 3px; border-radius: 1.5px; background: currentColor;
  animation: eq-bounce 1.1s ease-in-out infinite;
}
.eq i:nth-child(1) { height: 6px; animation-delay: 0s; }
.eq i:nth-child(2) { height: 11px; animation-delay: 0.25s; animation-duration: 0.9s; }
.eq i:nth-child(3) { height: 8px; animation-delay: 0.5s; animation-duration: 1.3s; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}
/* Floating note glyphs drifting around the hero headline. */
.hero-notes { position: absolute; inset: 0; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.float-note { position: absolute; opacity: 0.16; animation: note-float 9s ease-in-out infinite alternate; }
.float-note.fn1 { left: 9%; top: 24%; color: #2dd4bf; }
.float-note.fn2 { right: 8%; top: 19%; color: #a855f7; animation-duration: 11s; animation-delay: 1.2s; }
.float-note.fn3 { left: 17%; top: 46%; color: #ec4899; animation-duration: 8s; animation-delay: 0.6s; }
.float-note.fn4 { right: 15%; top: 44%; color: #2dd4bf; animation-duration: 12s; animation-delay: 2s; }
@keyframes note-float {
  from { transform: translateY(0) rotate(-4deg); }
  to { transform: translateY(-16px) rotate(6deg); }
}
.light-mode .float-note { opacity: 0.22; }
.light-mode .float-note.fn1, .light-mode .float-note.fn4 { color: #0d9488; }
.light-mode .float-note.fn2 { color: #9333ea; }
.light-mode .float-note.fn3 { color: #db2777; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: 56px; font-weight: 800; line-height: 1.1;
  color: var(--head); letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, #2dd4bf 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px; color: #888; max-width: 560px; margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-actions {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 16px;
}
.login-actions { margin-top: 32px; gap: 16px; flex-wrap: wrap; }
.hero-logos { margin-top: 24px; }
.hero-logos-label { font-size: 12px; color: #555; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.logo-row {
  display: flex; justify-content: center; gap: 40px; margin-top: 16px; flex-wrap: wrap;
}
.trust-logo {
  font-size: 13px; font-weight: 600; color: #444; letter-spacing: 0.02em;
}

/* --- Product Screenshot --- */
.hero-product {
  max-width: 894px; margin: 0 auto;
  position: relative;
}
.product-frame {
  background: #111118;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}
.frame-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.frame-dots { display: flex; gap: 6px; }
.frame-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.frame-url {
  flex: 1; text-align: center; font-size: 11px; color: #555;
  margin-right: 40px;
}
.product-screen {
  min-height: 340px;
}
/* Real product screenshot fills the browser frame below the title bar. */
.product-shot { display: block; width: 100%; height: auto; }

/* --- Video Lesson Mockup --- */
.vl-screen { display: flex; flex-direction: column; }
.vl-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; color: #ccc;
}
.vl-live-pill {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; color: #ef4444;
  background: rgba(239,68,68,0.12); padding: 3px 10px; border-radius: 4px;
  letter-spacing: 0.04em;
}
.vl-live-pill span {
  width: 6px; height: 6px; border-radius: 50%; background: #ef4444;
  animation: pulse 1.5s infinite;
}
.vl-info { flex: 1; font-weight: 500; }
.vl-timer { color: #666; font-variant-numeric: tabular-nums; font-size: 12px; }

.vl-layout {
  display: flex; flex: 1; min-height: 240px;
}
.vl-video-area {
  flex: 1.2; display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 14px;
}
.vl-feed {
  border-radius: 10px; position: relative;
  display: flex; align-items: flex-end; padding: 10px;
  min-height: 110px;
}
.vl-teacher {
  background: linear-gradient(145deg, #2d2060 0%, #1a133d 60%, #251848 100%);
}
.vl-student {
  background: linear-gradient(145deg, #1a3a2a 0%, #132a1f 60%, #1d3525 100%);
}
.vl-feed span {
  font-size: 10px; color: #fff; background: rgba(0,0,0,0.5);
  padding: 2px 8px; border-radius: 4px; position: relative; z-index: 2;
}
.vl-ring {
  position: absolute; inset: -2px; border-radius: 12px;
  border: 2px solid rgba(168,85,247,0.5);
  animation: ringPulse 2s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { border-color: rgba(168,85,247,0.5); }
  50% { border-color: rgba(168,85,247,0.15); }
}

.vl-panel {
  width: 220px; border-left: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
}
.vl-panel-tabs {
  display: flex; gap: 0; padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.vl-panel-tabs span {
  flex: 1; text-align: center; padding: 8px 4px;
  font-size: 10px; font-weight: 600; color: #555; cursor: default;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.vl-panel-tabs span.active {
  color: #c084fc; border-bottom-color: #a855f7;
}

.vl-whiteboard {
  flex: 1; padding: 14px; position: relative; overflow: hidden;
}
.vl-staff {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 0;
}
.vl-staff div { height: 1px; background: rgba(255,255,255,0.08); }
.vl-notes { position: absolute; inset: 0; }
.vl-n {
  position: absolute; width: 7px; height: 7px;
  background: #2dd4bf; border-radius: 50%;
  box-shadow: 0 0 6px rgba(45,212,191,0.4);
}
.vl-n::after {
  content: ''; position: absolute; left: 6px; bottom: 0;
  width: 2px; height: 16px; background: #2dd4bf; border-radius: 1px;
}
.vl-wb-label {
  position: absolute; bottom: 8px; left: 14px;
  font-size: 9px; color: #555;
}

.vl-chat-peek {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.vl-chat-av {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: rgba(34,197,94,0.15); color: #22c55e;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700;
}
.vl-chat-txt { font-size: 10px; color: #888; line-height: 1.3; }

.vl-toolbar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.vl-ctrl {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: #777; transition: all 0.15s;
}
.vl-ctrl.on { background: rgba(168,85,247,0.15); color: #c084fc; }
.vl-ctrl.rec { background: rgba(239,68,68,0.12); color: #ef4444; }
.vl-ctrl.end { background: rgba(239,68,68,0.15); color: #ef4444; }
.vl-spacer { flex: 1; }

/* ================================
   STATS STRIP
   ================================ */
.stats-strip {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
  background: rgba(255,255,255,0.01);
}
.stats-row {
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0 48px;
}
.stat strong {
  font-size: 28px; font-weight: 800; color: var(--head); letter-spacing: -0.02em;
}
.stat span { font-size: 13px; color: #8a8a94; }
.stat-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.08); }

/* ================================
   HOW IT WORKS
   ================================ */
.how-section { padding: 88px 0; }
.section-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: #2dd4bf; margin-bottom: 12px; text-align: center;
}
.section-title {
  font-size: 36px; font-weight: 800; color: var(--head); text-align: center;
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 20px;
}
.section-sub {
  font-size: 16px; color: #8a8a94; text-align: center; margin-bottom: 48px;
}
/* A little brand-gradient flourish under every section title. */
.section-title::after {
  content: ''; display: block; width: 56px; height: 4px; border-radius: 2px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, #2dd4bf, #a855f7, #ec4899);
}
/* Per-act accent colors so the page moves through the brand palette. */
.accent-purple .section-label { color: #c084fc; }
.accent-pink .section-label { color: #f472b6; }
.light-mode .accent-purple .section-label { color: #9333ea; }
.light-mode .accent-pink .section-label { color: #be185d; }

/* When content follows the title directly (no .section-sub), give it room. */
.section-title + .tab-grid,
.section-title + .pill-strip,
.section-title + .testimonials-scroller,
.section-title + .diff-grid,
.section-title + .compare-table,
.section-title + .pricing-summary,
.section-title + .faq-list,
.section-title + .workflow-steps { margin-top: 44px; }
.workflow-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.step {
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,0.06);
  border-right: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.step:first-child { border-radius: 14px 0 0 14px; }
.step:last-child { border-radius: 0 14px 14px 0; border-right: 1px solid rgba(255,255,255,0.06); }
.step:hover { background: rgba(255,255,255,0.02); }
.step.active {
  background: rgba(168,85,247,0.06);
  border-color: rgba(168,85,247,0.2);
}
.step.active + .step { border-left-color: rgba(168,85,247,0.2); }
.step-num {
  font-size: 12px; font-weight: 700; color: #444;
  margin-bottom: 14px; font-variant-numeric: tabular-nums;
}
.step.active .step-num { color: #a855f7; }
.step h3 {
  font-size: 18px; font-weight: 700; color: var(--head); margin-bottom: 8px;
}
.step p {
  font-size: 13px; color: #9a9aa4; line-height: 1.6;
}

/* ================================
   FEATURES GRID
   ================================ */
.features-section {
  padding: 88px 0;
  background: rgba(255,255,255,0.01);
}
.features-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
}
.feature-card {
  background: var(--card);
  padding: 28px 24px;
  transition: background 0.25s ease;
}
/* Bento accents: three cards span two columns; the grid packs densely so
   no holes open up. Cell math stays a clean 6 rows of 3 (12 + 3*2 = 18). */
.feature-card-wide { grid-column: span 2; }

/* --- Feature pills (compact "everything else" strip) --- */
.pill-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 860px; margin: 0 auto;
}
.pill {
  display: inline-block; padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 100px;
  font-size: 13px; font-weight: 500; color: var(--text);
  background: var(--card);
  transition: transform 0.2s ease, background 0.2s ease;
}
.light-mode .pill { border-color: rgba(0,0,0,0.1); }
/* Cycle the pills through the brand palette and let them bounce on hover. */
.pill:nth-child(3n+1) { border-color: rgba(45,212,191,0.35); }
.pill:nth-child(3n+2) { border-color: rgba(168,85,247,0.35); }
.pill:nth-child(3n)   { border-color: rgba(236,72,153,0.35); }
.pill:hover { transform: translateY(-3px) rotate(-1deg); background: rgba(168,85,247,0.08); }

/* --- Differentiators (What makes Muzie different) --- */
.diff-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.diff-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 32px 28px;
}
.diff-card .feature-icon { margin-bottom: 18px; }
.diff-card h3 {
  font-size: 20px; font-weight: 700; color: var(--head); margin-bottom: 12px;
}
.diff-card p { font-size: 14px; line-height: 1.7; color: #9a9aa4; }
.light-mode .diff-card { border-color: rgba(0,0,0,0.08); }
.light-mode .diff-card p { color: #666; }
.feature-card:hover {
  background: rgba(168,85,247,0.04);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(45,212,191,0.08);
  border: 1px solid rgba(45,212,191,0.15);
  display: flex; align-items: center; justify-content: center;
  color: #2dd4bf;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 16px; font-weight: 700; color: var(--head);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 13px; color: #9a9aa4; line-height: 1.6;
}

/* ================================
   AUDIENCE TABS
   ================================ */
.audience-section { padding: 88px 0; }
.audience-tabs {
  display: flex; justify-content: center; gap: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px; padding: 4px;
  max-width: 440px; margin: 0 auto 48px;
}
.tab-btn {
  flex: 1; padding: 10px 20px;
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: #777; background: transparent;
  border: none; border-radius: 10px;
  cursor: pointer; transition: all 0.2s;
}
.tab-btn:hover { color: #bbb; }
.tab-btn.active {
  background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff; font-weight: 600;
  box-shadow: 0 2px 12px rgba(168,85,247,0.3);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; opacity: 1; transform: none; }
.tab-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.tab-grid.reverse > :first-child { order: 1; }
.tab-grid.reverse > :last-child { order: 2; }
.tab-content h3 {
  font-size: 28px; font-weight: 800; color: var(--head); letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.tab-content > p {
  font-size: 15px; color: #888; line-height: 1.7; margin-bottom: 24px;
}
.feature-list { margin-bottom: 28px; }
.feature-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #bbb; padding: 6px 0;
}

/* Tab Mockups */
.tab-visual { display: flex; justify-content: center; align-items: center; }
.tab-mockup {
  background: #111118;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; overflow: hidden;
  width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.tm-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; color: #ccc; font-weight: 500;
}
.tm-live {
  font-size: 10px; font-weight: 700; color: #ef4444;
  background: rgba(239,68,68,0.12); padding: 2px 8px; border-radius: 4px;
  letter-spacing: 0.04em;
  animation: pulse 1.5s infinite;
}
.tm-time { margin-left: auto; color: #666; font-variant-numeric: tabular-nums; }
.tm-streak { margin-left: auto; color: #2dd4bf; font-size: 12px; }
.tm-body { padding: 18px; }
.tm-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.tm-vid {
  aspect-ratio: 16/10; border-radius: 8px;
  display: flex; align-items: flex-end; justify-content: flex-start; padding: 8px;
}
.tm-vid span { font-size: 10px; color: #fff; background: rgba(0,0,0,0.5); padding: 2px 6px; border-radius: 4px; }
.tm-vid.v1 { background: linear-gradient(135deg, #2a1f5e 0%, #1a133d 100%); }
.tm-vid.v2 { background: linear-gradient(135deg, #1f3a2e 0%, #132a1f 100%); }
.tm-sheet {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 14px;
}
.tm-sheet-lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.tm-sheet-lines div {
  height: 1px; background: rgba(255,255,255,0.08);
}
.tm-sheet-label { font-size: 10px; color: #555; }
.tm-controls {
  display: flex; justify-content: center; gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.tm-ctrl {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: #888;
}
.tm-ctrl.on { background: rgba(168,85,247,0.15); color: #c084fc; }
.tm-ctrl.end { background: rgba(239,68,68,0.15); color: #ef4444; }

/* Student tab mockup */
.student-body { padding: 14px 18px; }
.tm-course {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tm-course:last-of-type { border-bottom: none; }
.tm-ci {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
}
.tm-ci.c1 { background: linear-gradient(135deg, #a855f7, #6d5dd6); }
.tm-ci.c2 { background: linear-gradient(135deg, #2dd4bf, #14b8a6); }
.tm-ci.c3 { background: linear-gradient(135deg, #22c55e, #16a34a); }
.tm-cinfo { flex: 1; }
.tm-cinfo span { font-size: 12px; color: #ccc; display: block; margin-bottom: 4px; }
.tm-prog {
  height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden;
}
.tm-prog div {
  height: 100%; background: #a855f7; border-radius: 2px; transition: width 0.5s;
}
.tm-prog div.done { background: #2dd4bf; }
.tm-prog div.done-b { background: #22c55e; }
.tm-pct { font-size: 11px; color: #666; font-weight: 600; min-width: 36px; text-align: right; }
.tm-pct.done-text { color: #22c55e; }

.tm-stats-row {
  display: flex; gap: 16px; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.06);
}
.tm-stats-row div {
  flex: 1; text-align: center;
}
.tm-stats-row strong { display: block; font-size: 16px; color: var(--head); font-weight: 700; }
.tm-stats-row span { font-size: 10px; color: #666; }

/* School tab */
.school-stats { margin-top: 0; padding-top: 0; border-top: none; }
.tm-chart { margin-top: 16px; }
.tm-chart-title { font-size: 11px; color: #666; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.tm-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 80px;
}
.tm-bars > div {
  flex: 1; background: rgba(168,85,247,0.2); border-radius: 3px 3px 0 0;
  transition: height 0.3s;
}
.tm-bars > div.hi { background: #a855f7; }
.tm-bar-labels {
  display: flex; gap: 6px; margin-top: 6px;
}
.tm-bar-labels span { flex: 1; text-align: center; font-size: 9px; color: #555; }

/* ================================
   PRICING
   ================================ */
.pricing-section {
  padding: 88px 0;
  background: rgba(255,255,255,0.01);
}
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; max-width: 920px; margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; overflow: hidden;
}
.price-card {
  padding: 36px 28px;
  position: relative;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.price-card:last-child { border-right: none; }
.price-card.popular {
  background: rgba(168,85,247,0.04);
  border-right: 1px solid rgba(168,85,247,0.15);
  border-left: 1px solid rgba(168,85,247,0.15);
}
.popular-badge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff;
  font-size: 11px; font-weight: 600; padding: 4px 16px;
  border-radius: 0 0 8px 8px; letter-spacing: 0.02em;
}
.price-name { font-size: 20px; font-weight: 700; color: var(--head); margin-bottom: 4px; }
.price-desc { font-size: 13px; color: #666; margin-bottom: 20px; }
.price-amount {
  font-size: 48px; font-weight: 800; color: var(--head);
  line-height: 1; margin-bottom: 28px; letter-spacing: -0.03em;
}
.currency { font-size: 24px; font-weight: 600; vertical-align: top; margin-right: 2px; position: relative; top: 8px; }
.period { font-size: 16px; font-weight: 500; color: #666; }
.price-features { margin-bottom: 28px; }
.price-features li {
  font-size: 14px; color: #999; padding: 6px 0;
  padding-left: 20px;
  position: relative;
}
.price-features li::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(168,85,247,0.4);
}
.price-card.popular .price-features li::before { background: #a855f7; }
.price-features li.price-includes {
  font-weight: 600; color: #ccc; padding-left: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 10px; margin-bottom: 4px;
}
.price-features li.price-includes::before { display: none; }

/* ================================
   TESTIMONIALS
   ================================ */
.testimonials-section { padding: 88px 0; }
/* Horizontal testimonial scroller: always one row, scrolls when it overflows. */
.testimonials-scroller { position: relative; }
.testimonials-scroller::before,
.testimonials-scroller::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 64px; z-index: 2;
  pointer-events: none; opacity: 0; transition: opacity 0.25s ease;
}
.testimonials-scroller::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.testimonials-scroller::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.testimonials-scroller.has-scroll:not(.at-start)::before { opacity: 1; }
.testimonials-scroller.has-scroll:not(.at-end)::after { opacity: 1; }
.testimonials-row {
  display: flex; gap: 16px; justify-content: center;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
  padding-bottom: 4px; scrollbar-width: none;
}
.testimonials-row::-webkit-scrollbar { display: none; }
.testimonials-row.is-scrollable { justify-content: flex-start; }
.testimonials-row.dragging { scroll-behavior: auto; cursor: grabbing; scroll-snap-type: none; }
.testimonials-row > .testimonial-card {
  flex: 0 0 clamp(280px, 78vw, 340px); scroll-snap-align: start;
}
.testimonials-row:focus-visible { outline: 2px solid #a855f7; outline-offset: 4px; border-radius: 16px; }
/* Round arrow controls, shown only when the row overflows. */
.scroller-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: var(--card); color: var(--head); cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.testimonials-scroller.has-scroll .scroller-btn { display: flex; }
.scroller-btn[data-dir="-1"] { left: -10px; }
.scroller-btn[data-dir="1"] { right: -10px; }
.scroller-btn:hover:not(:disabled) { border-color: #a855f7; transform: translateY(-50%) scale(1.06); }
.scroller-btn:disabled { opacity: 0.25; cursor: default; }
.light-mode .scroller-btn { border-color: rgba(0,0,0,0.12); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 28px;
  display: flex; flex-direction: column;
}
.stars { color: #2dd4bf; font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-card p {
  font-size: 14px; color: #aaa; line-height: 1.7; margin-bottom: 20px;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px; margin-top: auto;
}
.author-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(168,85,247,0.12); color: #a855f7;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.author-avatar.av-purple { background: rgba(168,85,247,0.15); color: #c084fc; }
.author-avatar.av-teal { background: rgba(45,212,191,0.12); color: #2dd4bf; }
.author-avatar.av-pink { background: rgba(236,72,153,0.12); color: #f472b6; }
.author-avatar.av-img { overflow: hidden; background: #fff; }
.author-avatar.av-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.testimonial-author strong { display: block; font-size: 14px; color: #ddd; }
.testimonial-author span { font-size: 12px; color: #666; }

/* ================================
   CTA
   ================================ */
.cta-section { padding: 60px 0 100px; }
.cta-card {
  position: relative; overflow: hidden;
  background: rgba(168,85,247,0.06);
  border: 1px solid rgba(168,85,247,0.15);
  border-radius: 20px;
  padding: 64px 40px;
  text-align: center;
}
.cta-glow {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 400px;
  background: radial-gradient(ellipse, rgba(168,85,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-card h2 {
  font-size: 32px; font-weight: 800; color: var(--head); margin-bottom: 12px;
  position: relative; letter-spacing: -0.02em;
}
.cta-card p {
  font-size: 16px; color: #888; margin-bottom: 32px; position: relative;
}
.cta-actions {
  display: flex; justify-content: center; gap: 12px; position: relative;
}

/* ================================
   FOOTER
   ================================ */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 12px; font-size: 18px; }
.footer-brand p { font-size: 13px; color: #666; margin-bottom: 16px; line-height: 1.5; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #666;
  transition: all 0.2s;
}
.social-row a:hover { background: rgba(168,85,247,0.1); color: #a855f7; border-color: rgba(168,85,247,0.2); }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--head); margin-bottom: 16px; }
.footer-col a {
  display: block; font-size: 13px; color: #8a8a94; padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #bbb; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px; text-align: center;
}
.footer-bottom p { font-size: 12px; color: #8a8a90; }

/* ================================
   ANIMATIONS
   ================================ */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1; transform: translateY(0);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 42px; }
  .vl-panel { width: 180px; }
  .workflow-steps { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .scroller-btn { display: none !important; }
  .diff-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .step { border-right: 1px solid rgba(255,255,255,0.06); }
  .step:nth-child(2) { border-radius: 0 14px 0 0; }
  .step:first-child { border-radius: 14px 0 0 0; }
  .step:nth-child(3) { border-radius: 0 0 0 14px; }
  .step:last-child { border-radius: 0 0 14px 0; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(16px);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 12px;
  }
  .nav-right { display: flex; gap: 10px; }
  .nav-right .nav-link-btn { display: none; }
  .mobile-toggle { display: block; }
  .theme-toggle { display: flex; }
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-product { margin: 0 -12px; }
  .vl-panel { display: none; }
  .vl-video-area { grid-template-columns: 1fr 1fr; }
  .stats-row { flex-wrap: wrap; gap: 24px; }
  .stat-sep { display: none; }
  .stat { padding: 0 24px; }
  .section-title { font-size: 28px; }
  .section-title br { display: none; }
  .workflow-steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: auto; }
  .step, .step:first-child, .step:last-child,
  .step:nth-child(2), .step:nth-child(3) { border-radius: 0; border-right: 1px solid rgba(255,255,255,0.06); }
  .step:first-child { border-radius: 14px 14px 0 0; }
  .step:last-child { border-radius: 0 0 14px 14px; }
  .tab-grid, .tab-grid.reverse { grid-template-columns: 1fr; }
  .tab-grid.reverse > :first-child { order: 2; }
  .tab-grid.reverse > :last-child { order: 1; }
  .audience-tabs { max-width: 100%; }
  .tab-btn { padding: 10px 12px; font-size: 13px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .price-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .price-card:last-child { border-bottom: none; }
  .price-card.popular { border-left: none; border-right: none; }
  .cta-card { padding: 48px 24px; }
  .cta-card h2 { font-size: 24px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .logo-row { gap: 20px; }
  .trust-logo { font-size: 11px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .stat strong { font-size: 22px; }
  .stats-row { justify-content: space-around; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* ================================
   THEME TOGGLE BUTTON
   ================================ */
.theme-toggle {
  background: none; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #888; transition: all 0.2s;
}
.theme-toggle:hover { border-color: rgba(255,255,255,0.25); color: #fff; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* ================================
   LIGHT MODE
   ================================ */
.light-mode {
  --bg: #eaeaf1;
  --text: #3a3a4a;
  --head: #0f0f1a;
  --card: #f5f5fa;
}

/* Toggle icon in light mode */
.light-mode .theme-toggle { border-color: rgba(0,0,0,0.12); color: #555; }
.light-mode .theme-toggle:hover { border-color: rgba(0,0,0,0.3); color: #111; }
.light-mode .theme-toggle .icon-sun { display: block; }
.light-mode .theme-toggle .icon-moon { display: none; }

/* Nav */
.light-mode .nav.scrolled {
  background: rgba(234,234,241,0.9);
  border-bottom-color: rgba(0,0,0,0.08);
}
.light-mode .nav-links a { color: #555; }
.light-mode .nav-links a:hover { color: #111; }
.light-mode .nav-link-btn { color: #555; }
.light-mode .nav-link-btn:hover { color: #111; }
.light-mode .mobile-toggle { color: #111; }
.light-mode .btn-ghost {
  color: #444; border-color: rgba(0,0,0,0.15);
}
.light-mode .btn-ghost:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.25); }
.light-mode .btn-outline { color: #444; border-color: rgba(0,0,0,0.15); }
.light-mode .btn-outline:hover { border-color: #a855f7; color: #a855f7; }

/* Mobile nav open */
.light-mode .nav-links.open {
  background: rgba(245,245,250,0.97);
  border-bottom-color: rgba(0,0,0,0.08);
}

/* Hero */
.light-mode .grid-overlay {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}
.light-mode .hero-sub { color: #555; }
.light-mode .hero-logos-label { color: #999; }
.light-mode .trust-logo { color: #aaa; }

/* Product frame */
.light-mode .product-frame {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.06);
}
.light-mode .frame-bar {
  background: rgba(0,0,0,0.03);
  border-bottom-color: rgba(0,0,0,0.06);
}
.light-mode .frame-dots span { background: rgba(0,0,0,0.1); }
.light-mode .frame-url { color: #aaa; }

/* Video lesson mockup */
.light-mode .vl-topbar { border-bottom-color: rgba(0,0,0,0.06); color: #444; }
.light-mode .vl-timer { color: #aaa; }
.light-mode .vl-panel { border-left-color: rgba(0,0,0,0.06); }
.light-mode .vl-panel-tabs { border-bottom-color: rgba(0,0,0,0.06); }
.light-mode .vl-panel-tabs span { color: #aaa; }
.light-mode .vl-staff div { background: rgba(0,0,0,0.1); }
.light-mode .vl-wb-label { color: #aaa; }
.light-mode .vl-chat-peek {
  border-top-color: rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.02);
}
.light-mode .vl-chat-txt { color: #777; }
.light-mode .vl-toolbar {
  border-top-color: rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.02);
}
.light-mode .vl-ctrl { background: rgba(0,0,0,0.06); color: #777; }

/* Stats strip */
.light-mode .stats-strip {
  border-color: rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
}
.light-mode .stat span { color: #888; }
.light-mode .stat-sep { background: rgba(0,0,0,0.1); }

/* Sections */
.light-mode .section-sub { color: #777; }

/* How it works steps */
.light-mode .step {
  border-color: rgba(0,0,0,0.08);
}
.light-mode .step:last-child { border-right-color: rgba(0,0,0,0.08); }
.light-mode .step:hover { background: rgba(0,0,0,0.02); }
.light-mode .step p { color: #666; }
.light-mode .step-num { color: #bbb; }

/* Features grid */
.light-mode .features-section { background: rgba(0,0,0,0.01); }
.light-mode .features-grid {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.06);
}
.light-mode .feature-card:hover { background: rgba(168,85,247,0.04); }
.light-mode .feature-card p { color: #666; }

/* Audience tabs */
.light-mode .audience-tabs { background: rgba(0,0,0,0.04); }
.light-mode .tab-btn { color: #666; }
.light-mode .tab-btn:hover { color: #333; }
.light-mode .tab-content > p { color: #666; }
.light-mode .feature-list li { color: #555; }

/* Tab mockups */
.light-mode .tab-mockup {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.light-mode .tm-header {
  border-bottom-color: rgba(0,0,0,0.06);
  color: #333;
}
.light-mode .tm-time { color: #aaa; }
.light-mode .tm-sheet {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.06);
}
.light-mode .tm-sheet-lines div { background: rgba(0,0,0,0.1); }
.light-mode .tm-sheet-label { color: #aaa; }
.light-mode .tm-controls {
  border-top-color: rgba(0,0,0,0.06);
}
.light-mode .tm-ctrl { background: rgba(0,0,0,0.06); color: #777; }
.light-mode .tm-course { border-bottom-color: rgba(0,0,0,0.04); }
.light-mode .tm-cinfo span { color: #444; }
.light-mode .tm-prog { background: rgba(0,0,0,0.06); }
.light-mode .tm-pct { color: #999; }
.light-mode .tm-stats-row { border-top-color: rgba(0,0,0,0.06); }
.light-mode .tm-stats-row span { color: #999; }
.light-mode .tm-chart-title { color: #aaa; }
.light-mode .tm-bars > div { background: rgba(168,85,247,0.15); }
.light-mode .tm-bar-labels span { color: #aaa; }

/* Pricing */
.light-mode .pricing-section { background: rgba(0,0,0,0.01); }
.light-mode .pricing-grid { border-color: rgba(0,0,0,0.1); }
.light-mode .price-card { border-right-color: rgba(0,0,0,0.08); }
.light-mode .price-desc { color: #888; }
.light-mode .period { color: #888; }
.light-mode .price-features li { color: #666; }
.light-mode .price-features li.price-includes { color: #333; border-bottom-color: rgba(0,0,0,0.08); }

/* Testimonials */
.light-mode .testimonial-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}
.light-mode .testimonial-card p { color: #555; }
.light-mode .testimonial-author strong { color: #1a1a2e; }
.light-mode .testimonial-author span { color: #999; }

/* CTA */
.light-mode .cta-card {
  background: rgba(168,85,247,0.05);
  border-color: rgba(168,85,247,0.2);
}
.light-mode .cta-card p { color: #666; }

/* Footer */
.light-mode .footer { border-top-color: rgba(0,0,0,0.08); }
.light-mode .footer-brand p { color: #888; }
.light-mode .social-row a {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: #888;
}
.light-mode .footer-col a { color: #888; }
.light-mode .footer-col a:hover { color: #333; }
.light-mode .footer-bottom { border-top-color: rgba(0,0,0,0.08); }
.light-mode .footer-bottom p { color: #6e6e78; }

/* Responsive overrides for light mode */
@media (max-width: 1024px) {
  .light-mode .step { border-right-color: rgba(0,0,0,0.08); }
}
@media (max-width: 768px) {
  .light-mode .price-card { border-bottom-color: rgba(0,0,0,0.08); }
  .light-mode .step,
  .light-mode .step:first-child,
  .light-mode .step:last-child,
  .light-mode .step:nth-child(2),
  .light-mode .step:nth-child(3) { border-right-color: rgba(0,0,0,0.08); }
}

/* ================================
   HERO NO-CREDIT NOTE
   ================================ */
.hero-nocredit {
  font-size: 12px; color: #8a8a90; margin-top: 12px;
  letter-spacing: 0.02em;
}
.light-mode .hero-nocredit { color: #6e6e78; }

/* Light-mode accent legibility: deepen the teal/green text and logo so they
   read against the light background (a mid-tone teal has poor contrast on
   near-white, so we darken the foreground rather than only the background). */
.light-mode .logo-img,
.light-mode .compare-logo-img { filter: brightness(0.9) saturate(1.12); }
.light-mode .hero-badge,
.light-mode .section-label,
.light-mode .story-eyebrow,
.light-mode .step-hint,
.light-mode .stars,
.light-mode .tm-streak,
.light-mode .faq-a p a,
.light-mode .feature-icon { color: #0f766e; }
.light-mode .feature-list svg path,
.light-mode .compare-yes svg path { stroke: #0f766e; }
.light-mode .gradient-text {
  background: linear-gradient(135deg, #0d9488 0%, #9333ea 50%, #db2777 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ================================
   HERO TRUST LINE (replaces logo row)
   ================================ */
.hero-trust { margin-top: 28px; }
.hero-trust-text {
  font-size: 13px; color: #555; line-height: 1.6;
}
.hero-trust-text strong { color: #888; font-weight: 600; }

/* ================================
   STORY SECTION
   ================================ */
.story-section {
  padding: 88px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.story-inner {
  max-width: 720px; margin: 0 auto; text-align: center;
}
.story-eyebrow {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: #2dd4bf; margin-bottom: 16px;
}
.story-inner h2 {
  font-size: 36px; font-weight: 800; color: var(--head);
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.story-inner p {
  font-size: 16px; color: #888; line-height: 1.8; margin-bottom: 16px;
}
.story-inner p em { color: #aaa; font-style: italic; }
.story-founders {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 36px; flex-wrap: wrap;
}
.founder-chip {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px; padding: 8px 16px 8px 8px;
}
.founder-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.founder-chip span { font-size: 13px; color: #bbb; font-weight: 500; }

/* ================================
   COMPARISON SECTION
   ================================ */
.compare-section {
  padding: 88px 0;
  background: rgba(255,255,255,0.01);
}
.compare-table {
  max-width: 760px; margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; overflow: hidden;
}
.compare-header {
  display: grid; grid-template-columns: 1fr 190px 190px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 9px 24px;
  align-items: center;
}
.compare-col-muzie {
  text-align: center; padding: 0 12px;
}
.compare-logo-img {
  height: 58px; width: auto; margin: 0 auto;
}
.compare-col-other {
  text-align: center; font-size: 17px; font-weight: 600;
  color: #555; padding: 0 12px;
}
.compare-row {
  display: grid; grid-template-columns: 1fr 190px 190px;
  padding: 14px 24px; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.compare-row:last-child { border-bottom: none; }
.compare-row:hover { background: rgba(255,255,255,0.02); }
.compare-feat { font-size: 14px; color: #ccc; }
.compare-yes, .compare-no {
  display: flex; justify-content: center; align-items: center;
}

/* ================================
   PRICING: Studio per-teacher note
   ================================ */
.price-per-teacher {
  font-size: 12px; color: #666; line-height: 1.55;
  margin-top: -14px; margin-bottom: 26px;
}
.price-card.popular .price-per-teacher { color: #888; }

/* ================================
   FAQ SECTION
   ================================ */
.faq-section {
  padding: 88px 0;
  background: rgba(255,255,255,0.01);
}
.faq-list {
  max-width: 720px; margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.faq-item:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 15px; font-weight: 600; color: #ddd;
  padding: 18px 0;
  transition: color 0.2s;
}
.faq-q:hover { color: #fff; }
.faq-q.open { color: #fff; }
.faq-chevron {
  flex-shrink: 0; transition: transform 0.25s ease;
  color: #555;
}
.faq-q.open .faq-chevron { transform: rotate(180deg); color: #a855f7; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-a.open { max-height: 300px; padding-bottom: 20px; }
.faq-a p {
  font-size: 14px; color: #888; line-height: 1.8;
}
.faq-a p a { color: #2dd4bf; text-decoration: underline; text-decoration-color: rgba(45,212,191,0.3); }
.faq-a p a:hover { color: #5eead4; }

/* ================================
   LIGHT MODE - new sections
   ================================ */
.light-mode .story-section { border-top-color: rgba(0,0,0,0.08); }
.light-mode .story-inner p { color: #666; }
.light-mode .story-inner p em { color: #555; }
.light-mode .founder-chip {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
.light-mode .founder-chip span { color: #555; }
.light-mode .hero-trust-text { color: #999; }
.light-mode .hero-trust-text strong { color: #666; }

.light-mode .compare-section { background: rgba(0,0,0,0.01); }
.light-mode .compare-table { border-color: rgba(0,0,0,0.1); }
.light-mode .compare-header {
  background: rgba(0,0,0,0.03);
  border-bottom-color: rgba(0,0,0,0.08);
}
.light-mode .compare-col-other { color: #aaa; }
.light-mode .compare-row { border-bottom-color: rgba(0,0,0,0.05); }
.light-mode .compare-row:hover { background: rgba(0,0,0,0.02); }
.light-mode .compare-feat { color: #444; }

.light-mode .faq-section { background: rgba(0,0,0,0.01); }
.light-mode .faq-item { border-bottom-color: rgba(0,0,0,0.08); }
.light-mode .faq-item:first-child { border-top-color: rgba(0,0,0,0.08); }
.light-mode .faq-q { color: #333; }
.light-mode .faq-q:hover, .light-mode .faq-q.open { color: #0f0f1a; }
.light-mode .faq-a p { color: #666; }

.light-mode .price-per-teacher { color: #999; }

.light-mode .nav-links.open .mobile-cta { background: linear-gradient(135deg, #a855f7, #ec4899); }

/* ================================
   RESPONSIVE - new sections
   ================================ */
@media (max-width: 768px) {
  .compare-header { grid-template-columns: 1fr 80px 80px; padding: 12px 16px; }
  .compare-row { grid-template-columns: 1fr 80px 80px; padding: 12px 16px; }
  .compare-logo-img { height: 44px; }
  .compare-col-other { font-size: 11px; }
  .compare-feat { font-size: 13px; }
  .story-inner h2 { font-size: 28px; }
  .story-inner p { font-size: 15px; }
  .mobile-cta { display: inline-flex !important; }
}

/* ================================
   SUB-PAGE STYLES
   ================================ */

/* Page hero - smaller than homepage */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero .hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px; background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: 48px; font-weight: 800; line-height: 1.1;
  color: var(--head); letter-spacing: -0.03em; margin-bottom: 16px;
}
.page-hero .page-sub {
  font-size: 18px; color: #888; max-width: 640px; margin: 0 auto 32px;
  line-height: 1.6;
}
.page-hero .btn { margin: 0 8px; }

/* Feature detail - alternating rows */
.feature-detail-section { padding: 80px 0; }
.feature-detail-section .section-label { margin-bottom: 8px; }
.feature-detail-section .section-sub { margin-bottom: 16px; }
.feature-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.feature-detail:last-child { border-bottom: none; }
.feature-detail.reverse { direction: rtl; }
.feature-detail.reverse > * { direction: ltr; }
.feature-detail-text h3 {
  font-size: 24px; font-weight: 700; margin-bottom: 16px; color: var(--head);
}
.feature-detail-text p {
  font-size: 15px; color: #999; line-height: 1.7;
}
.feature-detail-visual {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  color: #333; font-size: 13px; font-weight: 500;
  letter-spacing: 0.03em;
  overflow: hidden;
  transition: border-color 0.3s;
}
/* A real screenshot shows at its natural aspect ratio inside the bordered,
   rounded slot; overflow:hidden on the box clips it to the rounded corners. */
.feature-detail-visual.has-shot {
  aspect-ratio: auto; display: block; align-self: start; padding: 0;
}
.feature-detail-visual img { width: 100%; height: auto; display: block; }

/* Feature mini-grid - for pages with many features */
.feature-mini-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.feature-mini-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 28px 24px;
  transition: border-color 0.2s, background 0.2s;
}
.feature-mini-card:hover { border-color: rgba(168,85,247,0.3); }
.feature-mini-card h4 {
  font-size: 16px; font-weight: 700; color: var(--head); margin-bottom: 12px;
}
.feature-mini-card p {
  font-size: 14px; color: #888; line-height: 1.6;
}

/* About page */
.about-hero { padding: 140px 0 40px; text-align: center; }
.about-content {
  max-width: 720px; margin: 0 auto; padding: 0 24px 80px;
}
.about-content h2 {
  font-size: 24px; font-weight: 700; color: var(--head); margin: 40px 0 12px;
}
.about-content h2:first-child { margin-top: 0; }
.about-content p {
  font-size: 15px; color: #999; line-height: 1.8; margin-bottom: 16px;
}
.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin: 0 0 48px; padding: 32px; border-radius: 16px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
}
.about-stat { text-align: center; }
.about-stat strong {
  display: block; font-size: 32px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-stat span { font-size: 13px; color: #888; }

/* Demo page */
.demo-section { padding: 140px 0 80px; }
.demo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.demo-info h1 { font-size: 40px; font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.demo-info p { font-size: 16px; color: #888; line-height: 1.7; margin-bottom: 24px; }
.demo-benefits { margin-bottom: 32px; }
.demo-benefits li {
  font-size: 15px; color: #ccc; padding: 8px 0 8px 28px; position: relative;
}
.demo-benefits li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(45,212,191,0.15);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 13l4 4L19 7' stroke='%232dd4bf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}
.demo-embed {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; overflow: hidden; min-height: 600px;
}
.demo-embed iframe {
  width: 100%; height: 700px; border: none;
}

/* Sub-page responsive */
@media (max-width: 1024px) {
  .feature-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-hero { padding: 120px 0 40px; }
  .page-hero h1 { font-size: 32px; }
  .page-hero .page-sub { font-size: 16px; }
  .feature-detail { grid-template-columns: 1fr; gap: 24px; }
  .feature-detail.reverse { direction: ltr; }
  .feature-mini-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-embed { min-height: 500px; }
  .demo-embed iframe { height: 600px; }
}

/* Sub-page light mode */
.light-mode .page-hero .page-sub { color: #666; }
.light-mode .feature-detail-text p { color: #666; }
.light-mode .feature-detail-visual {
  background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08);
  color: #aaa;
}
.light-mode .feature-detail { border-bottom-color: rgba(0,0,0,0.06); }
.light-mode .feature-mini-grid { border-top-color: rgba(0,0,0,0.06); }
.light-mode .feature-mini-card {
  background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08);
}
.light-mode .feature-mini-card:hover { border-color: rgba(168,85,247,0.3); }
.light-mode .feature-mini-card p { color: #666; }
.light-mode .about-content p { color: #555; }
.light-mode .about-stats {
  background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08);
}
.light-mode .about-stat span { color: #666; }
.light-mode .demo-info h1 { color: #0f0f1a; }
.light-mode .demo-info p { color: #666; }
.light-mode .demo-benefits li { color: #444; }
.light-mode .demo-embed {
  background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08);
}

/* ================================
   FOCUS STYLES
   ================================ */
:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}
.btn:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(168,85,247,0.2);
}
.tab-btn:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: -2px;
}
.faq-q:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}
.light-mode :focus-visible {
  outline-color: #7c3aed;
}

/* ================================
   UTILITY CLASSES
   ================================ */
.section-no-top-pad { padding-top: 0; }
.section-actions { text-align: center; margin-top: 32px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.workflow-steps-2col { grid-template-columns: 1fr 1fr; }
.step-first { border-radius: 14px 0 0 14px; }
.step-last { border-radius: 0 14px 14px 0; border-right: 1px solid rgba(255,255,255,0.06); }
.step-hint { margin-top: 12px; color: #2dd4bf; font-size: 12px; font-weight: 600; }
.workflow-note { text-align: center; color: #888; font-size: 14px; margin-top: 24px; }
.story-founders { margin-top: 16px; }

/* Pricing summary (homepage compact version) */
.pricing-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,0.06); border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06); margin-bottom: 32px;
}
.pricing-summary-card {
  background: var(--card); padding: 32px 28px; text-align: center;
  position: relative;
}
.pricing-summary-card.popular { background: rgba(168,85,247,0.06); }
.pricing-summary-card p { font-size: 14px; color: #888; line-height: 1.5; margin-top: 8px; }
.light-mode .pricing-summary { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.08); }
.light-mode .pricing-summary-card.popular { background: rgba(168,85,247,0.04); }
.light-mode .pricing-summary-card p { color: #666; }
@media (max-width: 768px) {
  .pricing-summary { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .workflow-steps-2col { grid-template-columns: 1fr; }
  .step-first { border-radius: 14px 14px 0 0; }
  .step-last { border-radius: 0 0 14px 14px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
}

/* ================================
   REDUCED MOTION
   ================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Legal pages (privacy, terms) */
.legal-section { padding: 16px 0 100px; }
.legal-content {
  max-width: 760px; margin: 0 auto;
  color: var(--text); font-size: 16px; line-height: 1.75;
}
.legal-content > p:first-child { margin-top: 0; }
.legal-content h2 {
  font-size: 23px; font-weight: 700; color: var(--head);
  letter-spacing: -0.02em; margin: 48px 0 14px; scroll-margin-top: 90px;
}
.legal-content h3 {
  font-size: 17px; font-weight: 600; color: var(--head); margin: 30px 0 12px;
}
.legal-content p { margin: 0 0 18px; }
.legal-content ul { margin: 0 0 20px; padding-left: 22px; }
.legal-content li { margin-bottom: 10px; }
.legal-content strong { color: var(--head); font-weight: 600; }
.legal-content a {
  color: #a855f7; text-decoration: none;
  border-bottom: 1px solid rgba(168,85,247,0.35);
}
.legal-content a:hover { border-bottom-color: #a855f7; }
.legal-table-wrap {
  overflow-x: auto; margin: 0 0 24px;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
}
.legal-content table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 540px; }
.legal-content th, .legal-content td {
  text-align: left; padding: 12px 16px; vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.legal-content thead th { color: var(--head); font-weight: 600; background: rgba(255,255,255,0.02); }
.legal-content tbody tr:last-child td { border-bottom: none; }
.light-mode .legal-content a { color: #9333ea; border-bottom-color: rgba(147,51,234,0.3); }
.light-mode .legal-table-wrap { border-color: rgba(0,0,0,0.1); }
.light-mode .legal-content th, .light-mode .legal-content td { border-bottom-color: rgba(0,0,0,0.08); }
.light-mode .legal-content thead th { background: rgba(0,0,0,0.03); }
@media (max-width: 768px) { .legal-content { font-size: 15px; } }

/* Home-page audience screenshots (replaced the animated mockups) */
.tab-shot {
  display: block; width: 100%; height: auto; max-width: 560px;
  aspect-ratio: 1243 / 1005; align-self: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.light-mode .tab-shot {
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* Login page: two clear "which version?" choice cards */
.login-choices {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 780px; margin: 40px auto 0; text-align: left;
}
.login-choice {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 32px 30px;
}
.login-choice-name {
  font-size: 22px; font-weight: 800; color: var(--head);
  letter-spacing: -0.02em; margin-bottom: 10px;
}
.login-choice-desc {
  font-size: 15px; color: #999; line-height: 1.6;
  margin-bottom: 24px; flex: 1;
}
.login-choice .login-btn {
  width: 100%; justify-content: center;
  font-size: 17px; padding: 18px 24px; border-radius: 12px;
}
.light-mode .login-choice { background: var(--card); border-color: rgba(0,0,0,0.08); }
.light-mode .login-choice-desc { color: #666; }
@media (max-width: 640px) {
  .login-choices { grid-template-columns: 1fr; max-width: 420px; }
}

/* Bulleted FAQ answer (Lite vs Pro) */
.faq-a ul { list-style: disc; padding-left: 20px; margin: 8px 0 12px; }
.faq-a li { font-size: 14px; color: #888; line-height: 1.7; margin-bottom: 7px; }
.faq-a li::marker { color: #a855f7; }
.faq-a strong { color: var(--head); }
.faq-a-lg.open { max-height: 560px; }
.light-mode .faq-a li { color: #666; }
@media (max-width: 600px) { .faq-a-lg.open { max-height: 860px; } }

/* FAQ Lite-vs-Pro recommendation line */
.faq-bottom-line { margin-top: 6px; }
.faq-pro { color: #a855f7; }
.light-mode .faq-pro { color: #9333ea; }

/* Install page */
.install-section { padding: 8px 0 20px; }
.install-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.install-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 30px 28px;
}
.install-icon {
  width: 50px; height: 50px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(168,85,247,0.12); color: #a855f7; margin-bottom: 18px;
}
.install-card h3 { font-size: 19px; font-weight: 700; color: var(--head); margin-bottom: 18px; }
.install-steps { list-style: none; counter-reset: step; }
.install-steps li {
  position: relative; padding-left: 38px; margin-bottom: 14px;
  font-size: 15px; color: #999; line-height: 1.6;
}
.install-steps li:last-child { margin-bottom: 0; }
.install-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -1px;
  width: 25px; height: 25px; border-radius: 50%;
  background: rgba(168,85,247,0.14); color: #a855f7;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.install-steps strong { color: var(--head); font-weight: 600; }
.install-steps a { color: #a855f7; text-decoration: none; border-bottom: 1px solid rgba(168,85,247,0.35); }
.install-steps a:hover { border-bottom-color: #a855f7; }
.install-mac { padding: 24px 0 100px; }
.mac-card {
  max-width: 640px; margin: 44px auto 0; text-align: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 44px 40px;
}
.mac-card .install-icon { display: flex; margin: 0 auto 20px; }
.mac-card h2 { font-size: 26px; font-weight: 800; color: var(--head); letter-spacing: -0.02em; margin-bottom: 10px; }
.mac-card > p { font-size: 15px; color: #999; margin-bottom: 26px; }
.mac-steps { text-align: left; max-width: 380px; margin: 30px auto 0; }
.install-note { font-size: 13px; color: #777; margin-top: 20px; }
.light-mode .install-card, .light-mode .mac-card { background: var(--card); border-color: rgba(0,0,0,0.08); }
.light-mode .install-steps li { color: #666; }
.light-mode .mac-card > p { color: #666; }
.light-mode .install-icon { background: rgba(147,51,234,0.1); color: #9333ea; }
.light-mode .install-steps li::before { background: rgba(147,51,234,0.12); color: #9333ea; }
.light-mode .install-steps a { color: #9333ea; border-bottom-color: rgba(147,51,234,0.3); }
.light-mode .install-note { color: #888; }
@media (max-width: 860px) { .install-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }

/* Install page: optional-but-recommended callout */
.install-optional {
  max-width: 560px; margin: 18px auto 0; padding: 12px 20px;
  border-radius: 12px; background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.18);
  font-size: 14px; color: #999; line-height: 1.6;
}
.install-optional strong { color: var(--head); }
.light-mode .install-optional { background: rgba(147,51,234,0.06); border-color: rgba(147,51,234,0.16); color: #666; }

/* Billing period toggle (pricing page) */
.billing-toggle-wrap { text-align: center; padding-top: 24px; margin-bottom: 44px; }
.billing-toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
}
.billing-opt {
  font: inherit; font-size: 14px; font-weight: 600;
  color: #999; background: transparent; border: none; cursor: pointer;
  padding: 9px 24px; border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.billing-opt:hover { color: var(--head); }
.billing-opt.active { background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff; }
.light-mode .billing-toggle { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
.light-mode .billing-opt { color: #666; }
.light-mode .billing-opt:hover { color: #111; }
.light-mode .billing-opt.active { color: #fff; }

/* Nav Features dropdown */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-toggle {
  font: inherit; font-size: 14px; font-weight: 500; color: #888;
  background: none; border: none; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 5px; transition: color 0.2s;
}
.nav-dropdown-toggle:hover, .nav-dropdown.open .nav-dropdown-toggle { color: #fff; }
.nav-chevron { transition: transform 0.2s; }
.nav-dropdown.open .nav-chevron, .nav-dropdown:hover .nav-chevron { transform: rotate(180deg); }
.nav-dropdown::after { content: ""; position: absolute; top: 100%; left: -8px; right: -8px; height: 12px; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  display: flex; flex-direction: column; gap: 2px;
  min-width: 150px; padding: 8px;
  background: rgba(17,17,24,0.98); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden; z-index: 200;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  font-size: 14px; font-weight: 500; color: #bbb;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.light-mode .nav-dropdown-toggle { color: #555; }
.light-mode .nav-dropdown-toggle:hover, .light-mode .nav-dropdown.open .nav-dropdown-toggle { color: #111; }
.light-mode .nav-dropdown-menu { background: rgba(255,255,255,0.99); border-color: rgba(0,0,0,0.1); box-shadow: 0 12px 40px rgba(0,0,0,0.14); }
.light-mode .nav-dropdown-menu a { color: #555; }
.light-mode .nav-dropdown-menu a:hover { background: rgba(0,0,0,0.05); color: #111; }

/* Demo page */
.demo-section { padding: 8px 0 90px; }
.calendly-inline-widget { max-width: 100%; border-radius: 14px; overflow: hidden; }

@media (max-width: 768px) {
  .nav-dropdown { flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
  .nav-dropdown::after { display: none; }
  .nav-dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: none; border: none; box-shadow: none; backdrop-filter: none;
    padding: 0 0 0 14px; min-width: 0; gap: 12px;
  }
  .nav-chevron { display: none; }
  .demo-section .container { padding-left: 14px; padding-right: 14px; }
}
