/* ============================
   DEMO SECTION — STEP BY STEP
   ============================ */

.demo-section {
  background: #F8FAFC;
  padding: 80px 0;
}

.demo-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.demo-badge {
  display: inline-block;
  background: #DBEAFE;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.demo-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 12px 0;
}

.demo-header p {
  font-size: 17px;
  color: #64748B;
  margin: 0;
}

.demo-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.demo-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
}

.demo-step-number {
  font-size: 36px;
  font-weight: 800;
  color: #E2E8F0;
  line-height: 1;
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}

.demo-step-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.06);
}

.step-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-icon {
  font-size: 24px;
}

.step-card-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.demo-step-card > p {
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 20px 0;
}

/* Preview Cards */
.demo-card-preview {
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
}

/* Deck Preview */
.preview-deck-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #F1F5F9;
}
.preview-deck-item:last-child { border-bottom: none; }
.preview-deck-icon { font-size: 20px; }
.preview-deck-name { font-size: 14px; font-weight: 600; color: #0F172A; }
.preview-deck-meta { font-size: 12px; color: #94A3B8; margin-top: 2px; }
.preview-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #F1F5F9;
  color: #64748B;
  white-space: nowrap;
}
.preview-badge.due { background: #DBEAFE; color: #1D4ED8; }

/* Study Preview */
.preview-flashcard { padding: 20px; }
.preview-card-topic {
  font-size: 11px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.preview-card-question {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 14px;
}
.preview-card-answer {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  background: #F8FAFC;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}
.preview-rating-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.preview-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  gap: 2px;
}
.preview-btn small { font-size: 11px; font-weight: 400; opacity: 0.8; }
.preview-btn.again { background: #FEE2E2; color: #991B1B; }
.preview-btn.hard { background: #FEF3C7; color: #92400E; }
.preview-btn.good { background: #DBEAFE; color: #1D4ED8; }
.preview-btn.easy { background: #D1FAE5; color: #065F46; }

/* Stats Preview */
.stats-preview { padding: 16px; }
.preview-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.preview-stat {
  text-align: center;
  padding: 12px 8px;
  background: #F8FAFC;
  border-radius: 10px;
}
.preview-stat.highlight {
  background: #DBEAFE;
}
.preview-stat-num { font-size: 18px; font-weight: 800; color: #0F172A; }
.preview-stat.highlight .preview-stat-num { color: #1D4ED8; }
.preview-stat-label { font-size: 11px; color: #94A3B8; margin-top: 4px; }

.preview-coverage { display: flex; flex-direction: column; gap: 10px; }
.preview-cov-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #475569;
}
.preview-cov-row > span:first-child { width: 90px; flex-shrink: 0; }
.preview-cov-row > span:last-child { width: 30px; text-align: right; color: #1D4ED8; font-weight: 600; }
.preview-cov-bar {
  flex: 1;
  height: 6px;
  background: #F1F5F9;
  border-radius: 9999px;
  overflow: hidden;
}
.preview-cov-bar > div {
  height: 100%;
  background: #2563EB;
  border-radius: 9999px;
}

/* Demo CTA */
.demo-cta {
  text-align: center;
  margin-top: 56px;
}
.demo-cta-note {
  font-size: 13px;
  color: #94A3B8;
  margin: 12px 0 0 0;
}

/* Mobile responsive for demo section */
@media (max-width: 640px) {
  .demo-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .demo-step-number {
    font-size: 20px;
  }
  .preview-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .preview-rating-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================
   NAV BAR FIXES
   ============================ */

.landing-nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2E8F0;
  z-index: 1000;
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #64748B;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 150ms;
}
.nav-link:hover { background: #F1F5F9; color: #0F172A; }
.nav-cta { margin-left: auto; white-space: nowrap; }
.mobile-menu-btn { display: none; }
.mobile-menu { display: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
  }
  .mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #0F172A;
    border-radius: 2px;
  }
  .nav-cta { display: none; }
  .mobile-menu.open {
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    border-top: 1px solid #E2E8F0;
    gap: 8px;
  }
  .mobile-menu a {
    font-size: 15px;
    color: #0F172A;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
  }
}

/* ============================
   HERO SECTION FIXES
   ============================ */

.hero-section {
  background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 50%, #F0FDF4 100%);
  padding: 80px 24px 60px;
  text-align: center;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: #DBEAFE;
  color: #1D4ED8;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 9999px;
  margin-bottom: 24px;
}
.hero-h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.15;
  margin: 0 0 20px 0;
  letter-spacing: -0.5px;
}
.hero-sub {
  font-size: clamp(15px, 2.5vw, 18px);
  color: #475569;
  line-height: 1.7;
  margin: 0 0 36px 0;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-ctas .btn {
  white-space: nowrap;
}
@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn {
    text-align: center;
    justify-content: center;
  }
}

/* ============================
   FEATURES SECTION FIXES
   ============================ */

.features-section {
  padding: 80px 24px;
  background: white;
}
.features-inner { max-width: 1100px; margin: 0 auto; }
.features-header { text-align: center; margin-bottom: 56px; }
.features-header h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 12px 0;
}
.features-header p { font-size: 17px; color: #64748B; margin: 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 28px;
  transition: all 200ms ease;
}
.feature-card:hover {
  background: white;
  box-shadow: 0 4px 20px rgba(37,99,235,0.1);
  border-color: #93C5FD;
  transform: translateY(-2px);
}
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 8px 0;
}
.feature-desc {
  font-size: 14px;
  color: #64748B;
  line-height: 1.65;
  margin: 0;
}

/* ============================
   PRICING SECTION FIXES
   ============================ */

.pricing-section {
  padding: 80px 24px;
  background: #F8FAFC;
}
.pricing-inner { max-width: 860px; margin: 0 auto; }
.pricing-header { text-align: center; margin-bottom: 48px; }
.pricing-header h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 10px 0;
}
.pricing-header p { color: #64748B; font-size: 16px; margin: 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
  background: white;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
}
.pricing-card.pro {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.plan-recommended {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563EB;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 9999px;
  white-space: nowrap;
}
.plan-name {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 16px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.price-amount {
  font-size: 42px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
}
.price-period {
  font-size: 16px;
  color: #94A3B8;
}
.plan-note {
  font-size: 13px;
  color: #94A3B8;
  margin-bottom: 24px;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features li {
  font-size: 14px;
  color: #475569;
  line-height: 1.4;
}
.plan-btn {
  display: block;
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
}
.plan-after {
  text-align: center;
  font-size: 12px;
  color: #94A3B8;
  margin: 12px 0 0 0;
}
.plan-after a { color: #2563EB; }

/* ============================
   FAQ SECTION FIXES
   ============================ */

.faq-section {
  padding: 80px 24px;
  background: white;
}
.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}
.faq-inner h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 40px 0;
  text-align: center;
}
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #0F172A;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 20px;
  color: #2563EB;
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 200ms;
}
details[open] .faq-question::after {
  content: '−';
}
details[open] .faq-item,
.faq-item:hover { border-color: #93C5FD; }
.faq-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  border-top: 1px solid #F1F5F9;
  padding-top: 14px;
}

/* ============================
   FOOTER FIXES
   ============================ */

.landing-footer {
  background: #0F172A;
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand span:last-child { color: white; }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: #94A3B8;
  font-size: 13px;
  text-decoration: none;
}
.footer-links a:hover { color: white; }
.footer-note { color: #475569; font-size: 12px; }

/* ================================
   PAIN SECTION — "Sound Familiar?"
   ================================ */

.pain-section {
  padding: 80px 24px;
  background: white;
}

.pain-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

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

.pain-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #EF4444;
  background: #FEE2E2;
  padding: 5px 16px;
  border-radius: 9999px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.pain-header h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 14px 0;
  line-height: 1.2;
}

.pain-header p {
  font-size: 17px;
  color: #64748B;
  margin: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

.pain-card {
  background: #FFF7F7;
  border: 1.5px solid #FEE2E2;
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 200ms ease;
}

.pain-card:hover {
  background: white;
  border-color: #FCA5A5;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.1);
  transform: translateY(-3px);
}

.pain-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.pain-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.pain-card p {
  font-size: 14px;
  color: #64748B;
  line-height: 1.7;
  margin: 0;
}

.pain-solution-hint {
  margin-top: 48px;
  font-size: 15px;
  color: #94A3B8;
  font-weight: 500;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .pain-section {
    padding: 60px 16px;
  }
  .pain-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pain-card {
    padding: 22px 20px;
  }
}
