/* ============================================================
   YouReader Landing Page — Dark Theme
   Design tokens from the extension's UI
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111;
  --bg-card: #151515;
  --bg-card-hover: #1a1a1a;
  --bg-elevated: #1e1e1e;
  --border: #222;
  --border-light: #2a2a2a;
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --text-muted: #777;
  --text-dim: #555;
  --accent: #3ea6ff;
  --accent-hover: #5ab5ff;
  --accent-glow: rgba(62, 166, 255, 0.15);
  --accent-glow-strong: rgba(62, 166, 255, 0.25);
  --red: #e53935;
  --red-dark: #cc0000;
  --green: #81c784;
  --yellow: #ffd54f;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --max-width: 1120px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
strong { color: var(--text-primary); font-weight: 600; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 720px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px var(--accent-glow), 0 4px 12px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #000;
  box-shadow: 0 0 30px var(--accent-glow-strong), 0 6px 20px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--text-dim);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}
.btn-xl {
  padding: 18px 44px;
  font-size: 18px;
}

.btn-nav {
  padding: 8px 20px;
  font-size: 13px;
}

.btn-pricing {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  margin-top: 0;
  min-height: 48px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.9);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-brand:hover { color: var(--text-primary); }

.nav-logo {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links .btn { color: #000; }
.nav-links .btn:hover { color: #000; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Theme Toggle --- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: var(--bg-card);
}

/* In dark mode: show sun, hide moon */
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

/* In light mode: show moon, hide sun */
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

.theme-toggle-mobile {
  width: auto;
  border-radius: 50px;
  padding: 8px 16px;
  gap: 8px;
  font-size: 14px;
  font-family: var(--font);
  font-weight: 500;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 12px;
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
}
.nav-mobile a:hover { color: var(--text-primary); }
.nav-mobile .btn-mobile-cta {
  margin-top: 8px;
}

/* --- Hero --- */
.hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle radial gradient behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(129, 199, 132, 0.08);
  border: 1px solid rgba(129, 199, 132, 0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 28px;
}

.hero-headline {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-dim);
}

/* --- Pain Section --- */
.pain {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.pain-headline {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 48px;
}

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

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
}
.pain-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.pain-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.pain-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Section Labels --- */
.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 12px;
}

.section-headline {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

/* --- Demo Video --- */
.demo-video {
  padding: 48px 0;
  background: var(--bg-secondary);
}

.demo-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
}

.demo-video-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- How It Works --- */
.how-it-works {
  padding: 60px 0;
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.step-card {
  flex: 1;
  max-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.step-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  margin: 8px auto 16px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 60px;
  opacity: 0.4;
}

/* --- Features --- */
.features {
  padding: 60px 0;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-block:last-of-type { margin-bottom: 60px; }
.feature-block-reverse { direction: rtl; }
.feature-block-reverse > * { direction: ltr; }

.feature-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-text h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.2;
}

.feature-text p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.feature-list li svg {
  flex-shrink: 0;
}

/* Feature visuals */
.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* AI Summary visual */
.fv-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.fv-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.fv-body {
  padding: 16px;
}

.fv-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.fv-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.fv-takeaway {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 0;
  line-height: 1.5;
}
.fv-takeaway::first-letter { color: var(--accent); }

/* Library visual */
.fv-library {
  width: 100%;
  max-width: 400px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.fv-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-dim);
}

.fv-library-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fv-lib-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  transition: all var(--transition);
}
.fv-lib-card:hover {
  border-color: var(--accent);
}

.fv-lib-thumb {
  width: 100%;
  height: 56px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.fv-lib-thumb.t1 { background: linear-gradient(135deg, #1a3a5c, #0d2137); }
.fv-lib-thumb.t2 { background: linear-gradient(135deg, #3a1a5c, #210d37); }
.fv-lib-thumb.t3 { background: linear-gradient(135deg, #1a5c3a, #0d3721); }
.fv-lib-thumb.t4 { background: linear-gradient(135deg, #5c3a1a, #37210d); }

.fv-lib-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fv-lib-meta {
  font-size: 10px;
  color: var(--text-dim);
}

/* Export visual */
.fv-export {
  width: 100%;
  max-width: 340px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.fv-export-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.fv-export-row:hover {
  background: var(--bg-card);
}

.fv-export-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fv-export-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.fv-export-desc {
  font-size: 12px;
  color: var(--text-dim);
}

/* --- Extras Grid --- */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.extra-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}
.extra-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.extra-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.extra-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.extra-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

kbd {
  display: inline-block;
  padding: 2px 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-primary);
}

/* --- Use Cases --- */
.use-cases {
  padding: 60px 0;
  background: var(--bg-secondary);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}
.use-case-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.uc-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.use-case-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.use-case-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Pricing --- */
.pricing {
  padding: 60px 0;
  background: var(--bg-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 680px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-shared {
  max-width: 680px;
  margin: 0 auto 36px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.pricing-shared-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.pricing-shared-grid span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pricing-shared-grid span svg {
  flex-shrink: 0;
}

.pricing-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  border-color: var(--border-light);
}

.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}
.pricing-card-featured:hover {
  border-color: var(--accent-hover);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent);
  color: #000;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-top: 4px;
}

.pricing-decimal {
  font-size: 20px;
  font-weight: 600;
}

.pricing-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.pricing-includes {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  flex: 1;
}

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

.pricing-features li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* --- Final CTA --- */
.final-cta {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.final-cta p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.final-cta .btn {
  position: relative;
  z-index: 1;
}

.beta-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.beta-form input {
  flex: 1;
  min-width: 220px;
  padding: 16px 18px;
  border: 1px solid var(--border-light);
  border-radius: 50px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.beta-form input::placeholder {
  color: var(--text-muted);
}

.beta-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.beta-feedback {
  min-height: 22px;
  margin-top: 10px;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.beta-feedback.success {
  color: var(--green);
}

.beta-feedback.error {
  color: var(--yellow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cta-sub {
  font-size: 13px !important;
  color: var(--text-dim) !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

/* --- Footer --- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-primary); }

.footer-copyright {
  font-size: 12px;
  color: var(--text-dim);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
.extras-grid .reveal:nth-child(2),
.use-cases-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.extras-grid .reveal:nth-child(3),
.use-cases-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.extras-grid .reveal:nth-child(4),
.use-cases-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

.steps-grid .reveal:nth-child(1) { transition-delay: 0s; }
.steps-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.steps-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.steps-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.steps-grid .reveal:nth-child(5) { transition-delay: 0.24s; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .extras-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature-block-reverse {
    direction: ltr;
  }
  .feature-visual {
    order: -1;
  }
}

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

  /* Hamburger animation */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding: 110px 0 40px;
  }

  .hero-headline br { display: none; }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }
  .step-card { max-width: 100%; }
  .step-arrow {
    transform: rotate(90deg);
    padding: 0;
  }

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

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

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-shared-grid {
    grid-template-columns: 1fr;
  }

  .pricing-shared {
    max-width: 400px;
  }

  .beta-form {
    flex-direction: column;
  }

  .beta-form input,
  .beta-form .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .section-headline {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero { padding: 100px 0 32px; }
  .hero-headline { font-size: 28px; }

  .btn-lg { padding: 14px 24px; font-size: 15px; }
  .btn-xl { padding: 16px 28px; font-size: 16px; }

  .pricing-card { padding: 28px 20px; }
  .pricing-price { font-size: 36px; }

  .fv-card, .fv-library, .fv-export {
    max-width: 100%;
  }

  .fv-library-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* ============================================================
   Additions: Skip-to-content, Testimonials, FAQ, Newsletter,
   Footer columns, Light mode, Reduced motion, 404
   ============================================================ */

/* --- Skip to Content --- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--accent);
  color: #000;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-to-content:focus {
  top: 0;
  color: #000;
}

/* --- Testimonials --- */
.testimonials {
  padding: 60px 0;
}

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.testimonial-stars {
  color: var(--yellow);
  font-size: 16px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
  border: none;
  padding: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-dim);
}

/* --- FAQ --- */
.faq {
  padding: 60px 0;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover,
.faq-item[open] {
  border-color: var(--border-light);
}

.faq-question {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-question::after {
  content: '\2212';
}

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Newsletter --- */
.newsletter-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 24px;
  position: relative;
  z-index: 1;
}
.newsletter-divider::before,
.newsletter-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}
.newsletter-divider span {
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
}

.newsletter-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border: 1px solid var(--border-light);
  border-radius: 50px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.newsletter-form input::placeholder {
  color: var(--text-muted);
}
.newsletter-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.newsletter-feedback {
  min-height: 22px;
  margin-top: 12px;
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.newsletter-feedback.success { color: var(--green); }
.newsletter-feedback.error { color: var(--yellow); }

/* --- Footer (updated layout) --- */
.footer {
  padding: 48px 0 32px;
}

.footer-inner {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-columns {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* --- Gradient Text Readability --- */
.gradient-text {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* --- 404 Page --- */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.page-404-code {
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.12;
}

.page-404 h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.page-404 p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}

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

/* --- Light Mode --- */
[data-theme="light"] {
  --bg-primary: #f7f9fc;
  --bg-secondary: #edf1f7;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4fa;
  --bg-elevated: #e4eaf3;
  --border: #d0d8e4;
  --border-light: #b8c4d4;
  --text-primary: #0f1724;
  --text-secondary: #3d4f65;
  --text-muted: #6b7d94;
  --text-dim: #94a3b8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.1);
  --accent-glow-strong: rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.8);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .btn-primary {
  color: #fff;
}
[data-theme="light"] .btn-primary:hover {
  color: #fff;
}
[data-theme="light"] .nav-links .btn,
[data-theme="light"] .nav-links .btn:hover {
  color: #fff;
}

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

[data-theme="light"] .nav-toggle span {
  background: var(--text-primary);
}

[data-theme="light"] .pricing-badge,
[data-theme="light"] .step-number,
[data-theme="light"] .skip-to-content,
[data-theme="light"] .skip-to-content:focus {
  color: #fff;
}

[data-theme="light"] .gradient-text {
  filter: none;
}

[data-theme="light"] .hero-badge {
  background: rgba(46, 125, 50, 0.08);
  border-color: rgba(46, 125, 50, 0.2);
}

[data-theme="light"] .fv-lib-thumb.t1 { background: linear-gradient(135deg, #bbdefb, #90caf9); }
[data-theme="light"] .fv-lib-thumb.t2 { background: linear-gradient(135deg, #e1bee7, #ce93d8); }
[data-theme="light"] .fv-lib-thumb.t3 { background: linear-gradient(135deg, #c8e6c9, #a5d6a7); }
[data-theme="light"] .fv-lib-thumb.t4 { background: linear-gradient(135deg, #ffe0b2, #ffcc80); }

/* --- Responsive: new sections --- */
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }
  .footer-columns {
    flex-direction: column;
    gap: 24px;
  }
  .footer-bottom {
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form input,
  .newsletter-form .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .faq-question {
    padding: 16px 18px;
    font-size: 15px;
  }
  .faq-answer {
    padding: 0 18px 16px;
  }
}
