/* ============================================
   NOCAP ACADEMY — style.css
   Redesigned landing page
   Palette: Navy #0F172A, Indigo #6366F1,
   Amber #F59E0B, Off-white #F8FAFC
   Fonts: Fraunces (display) + DM Sans (body)
============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; font-size: 16px; color: #1E293B; background: #F8FAFC; line-height: 1.7; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.sec-tag { font-size: 11px; font-weight: 500; color: #6366F1; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
h2 { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 500; color: #0F172A; line-height: 1.25; margin-bottom: 14px; }
.sec-sub { font-size: 15px; color: #64748B; max-width: 540px; margin-bottom: 40px; line-height: 1.75; }

/* ---- NAVBAR ---- */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(15,23,42,0.96); backdrop-filter: blur(12px); border-bottom: 0.5px solid rgba(255,255,255,0.07); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 62px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 15px; font-weight: 500; }
.logo-mark { width: 28px; height: 28px; background: #6366F1; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; color: #fff; flex-shrink: 0; }
.logo-mark.small { width: 22px; height: 22px; font-size: 9px; }
.nav-links { display: none; gap: 28px; }
.nav-links a { color: #94A3B8; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: none; align-items: center; gap: 10px; }
.btn-ghost-nav { color: #94A3B8; font-size: 13px; padding: 7px 14px; border: 0.5px solid rgba(255,255,255,0.15); border-radius: 6px; transition: all 0.2s; }
.btn-ghost-nav:hover { color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-amber-nav { background: #F59E0B; color: #0F172A; font-size: 13px; font-weight: 500; padding: 7px 16px; border-radius: 6px; transition: background 0.2s; }
.btn-amber-nav:hover { background: #D97706; }

.hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: #94A3B8; border-radius: 2px; transition: background 0.2s; }
.hamburger:hover span { background: #fff; }
.mobile-menu { display: none; flex-direction: column; padding: 16px 24px 20px; border-top: 0.5px solid rgba(255,255,255,0.08); gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: #94A3B8; font-size: 15px; padding: 10px 0; border-bottom: 0.5px solid rgba(255,255,255,0.06); transition: color 0.2s; }
.mobile-menu a:hover { color: #fff; }
.mobile-menu .mob-login { margin-top: 12px; text-align: center; border: 0.5px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 12px; color: #fff; }
.mobile-menu .mob-cta { background: #F59E0B; color: #0F172A; font-weight: 500; text-align: center; border-radius: 6px; padding: 12px; border: none; }

/* ---- HERO ---- */
.hero { background: #0F172A; padding: 96px 0 80px; text-align: center; position: relative; overflow: hidden; }
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-inner { max-width: 700px; margin: 0 auto; padding: 0 24px; position: relative; }
.hero-pill { display: inline-block; background: rgba(99,102,241,0.12); color: #818CF8; font-size: 12px; padding: 5px 16px; border-radius: 20px; margin-bottom: 24px; border: 0.5px solid rgba(99,102,241,0.25); letter-spacing: 0.04em; }
.hero h1 { font-family: 'Fraunces', serif; font-size: 48px; font-weight: 500; color: #fff; line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { color: #6366F1; font-style: italic; }
.hero-sub { font-size: 17px; color: #94A3B8; margin-bottom: 36px; line-height: 1.75; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-bottom: 56px; }
.btn-primary { display: inline-block; background: #6366F1; color: #fff; font-weight: 500; font-size: 15px; padding: 14px 32px; border-radius: 8px; width: 100%; max-width: 280px; text-align: center; transition: background 0.2s, transform 0.15s; }
.btn-primary:hover { background: #4F46E5; transform: translateY(-1px); }
.btn-ghost { display: inline-block; background: transparent; color: #94A3B8; font-size: 15px; padding: 14px 32px; border-radius: 8px; border: 0.5px solid rgba(255,255,255,0.15); width: 100%; max-width: 280px; text-align: center; transition: all 0.2s; }
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero-proof { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; border: 0.5px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; }
.proof-item { padding: 20px 16px; text-align: center; background: rgba(255,255,255,0.03); }
.proof-num { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 500; color: #fff; line-height: 1; }
.proof-label { font-size: 12px; color: #64748B; margin-top: 5px; }
.proof-divider { display: none; }

/* ---- ANIMATIONS ---- */
.animate-fade { opacity: 0; transform: translateY(16px); animation: fadeUp 0.7s ease forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- DEMO SECTION ---- */
.demo-section { background: #fff; border-top: 0.5px solid #E2E8F0; border-bottom: 0.5px solid #E2E8F0; }
.demo-header { margin-bottom: 32px; }
.demo-tab-bar { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.demo-tab { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px; border: 0.5px solid #E2E8F0; background: #F8FAFC; color: #64748B; font-size: 14px; font-weight: 500; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.2s; }
.demo-tab:hover { border-color: #6366F1; color: #6366F1; }
.demo-tab.active { background: #6366F1; border-color: #6366F1; color: #fff; }
.demo-panel { display: none; }
.demo-panel.active { display: block; }
.demo-lesson-card { background: #F8FAFC; border: 0.5px solid #E2E8F0; border-radius: 16px; padding: 32px; }
.demo-lesson-tag { font-size: 11px; font-weight: 500; color: #6366F1; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.demo-lesson-title { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 500; color: #0F172A; margin-bottom: 14px; }
.demo-lesson-body { font-size: 14px; color: #475569; line-height: 1.8; margin-bottom: 24px; }

.demo-interactive-wrap { background: #fff; border: 0.5px solid #E2E8F0; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.demo-interactive-label { font-size: 12px; color: #94A3B8; margin-bottom: 14px; font-family: 'DM Mono', monospace; }

/* Pixel canvas */
.demo-pixel-container { display: flex; flex-direction: column; gap: 10px; align-items: center; }
#demo-pixel-canvas { border-radius: 8px; cursor: pointer; max-width: 100%; border: 0.5px solid #E2E8F0; }
.demo-pixel-info { font-size: 12px; color: #94A3B8; font-family: 'DM Mono', monospace; }

/* Colour depth */
.demo-concept-wrap { background: #fff; border: 0.5px solid #E2E8F0; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.demo-concept-label { font-size: 12px; color: #64748B; margin-bottom: 14px; font-weight: 500; }
.demo-colour-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 14px; }
.demo-colour-card { border: 0.5px solid #E2E8F0; border-radius: 8px; padding: 10px 6px; text-align: center; cursor: pointer; transition: all 0.2s; background: #F8FAFC; }
.demo-colour-card:hover { border-color: #6366F1; }
.demo-colour-card.active { border-color: #6366F1; background: #EEF2FF; }
.dcg-bits { font-size: 11px; font-weight: 500; font-family: 'DM Mono', monospace; color: #6366F1; margin-bottom: 8px; }
.dcg-swatch { height: 32px; border-radius: 4px; margin-bottom: 6px; overflow: hidden; }
.dcg-label { font-size: 11px; color: #64748B; }
.demo-colour-detail { font-size: 13px; color: #475569; line-height: 1.6; padding: 10px 12px; background: #F8FAFC; border-radius: 6px; border: 0.5px solid #E2E8F0; min-height: 36px; }

/* Wave canvas */
.demo-wave-container { margin-bottom: 14px; }
#demo-wave-canvas { max-width: 100%; border-radius: 8px; background: #0F172A; }
.demo-wave-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-demo-landing { background: #6366F1; color: #fff; border: none; padding: 10px 18px; border-radius: 7px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; }
.btn-demo-landing:hover { background: #4F46E5; }
.btn-demo-landing:disabled { background: #CBD5E1; cursor: not-allowed; }
.btn-demo-reset-landing { background: #F1F5F9; color: #64748B; border: 0.5px solid #E2E8F0; padding: 10px 16px; border-radius: 7px; font-size: 13px; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s; }
.btn-demo-reset-landing:hover { border-color: #CBD5E1; }
.demo-wave-info { font-size: 12px; color: #64748B; font-family: 'DM Mono', monospace; }

/* Sample rate cards */
.demo-rate-grid { display: flex; flex-direction: column; gap: 8px; }
.demo-rate-card { padding: 12px 14px; background: #F8FAFC; border: 0.5px solid #E2E8F0; border-radius: 8px; }
.demo-rate-card.featured { background: #EEF2FF; border-color: #6366F1; }
.drc-rate { font-size: 14px; font-weight: 500; font-family: 'DM Mono', monospace; color: #6366F1; margin-bottom: 2px; }
.drc-label { font-size: 13px; font-weight: 500; color: #0F172A; margin-bottom: 2px; }
.drc-desc { font-size: 12px; color: #64748B; }

/* Try-it */
.demo-tryit { background: #EEF2FF; border: 0.5px solid #6366F1; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.demo-tryit-label { font-size: 12px; font-weight: 500; color: #6366F1; margin-bottom: 10px; }
.demo-tryit-q { font-size: 14px; font-weight: 500; color: #0F172A; line-height: 1.6; margin-bottom: 14px; }
.demo-tryit-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.demo-tryit-input { flex: 1; min-width: 140px; padding: 10px 14px; border: 0.5px solid #C7D2FE; border-radius: 7px; font-size: 14px; font-family: 'DM Mono', monospace; background: #fff; outline: none; color: #0F172A; }
.demo-tryit-input:focus { border-color: #6366F1; }
.demo-tryit-btn { background: #0F172A; color: #fff; border: none; padding: 10px 20px; border-radius: 7px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; transition: background 0.2s; }
.demo-tryit-btn:hover { background: #1E293B; }
.demo-tryit-feedback { font-size: 13px; min-height: 18px; font-weight: 500; }
.demo-tryit-feedback.correct { color: #16A34A; }
.demo-tryit-feedback.incorrect { color: #DC2626; }
.demo-tryit-hint { font-size: 12px; color: #94A3B8; margin-top: 8px; }

/* Demo CTA */
.demo-cta-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 16px; border-top: 0.5px solid #E2E8F0; }
.demo-cta-bar span { font-size: 14px; color: #64748B; }
.btn-primary-sm { background: #6366F1; color: #fff; font-size: 13px; font-weight: 500; padding: 10px 20px; border-radius: 7px; white-space: nowrap; transition: background 0.2s; }
.btn-primary-sm:hover { background: #4F46E5; }

/* ---- RESULTS ---- */
.results-section { background: #0F172A; }
.results-section .sec-tag { color: #818CF8; }
.results-section h2 { color: #fff; }
.results-section .sec-sub { color: #64748B; }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
.testimonial-card { background: rgba(255,255,255,0.04); border: 0.5px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 16px; transition: border-color 0.2s; }
.testimonial-card:hover { border-color: rgba(99,102,241,0.3); }
.testimonial-card.highlight { border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.06); }
.tcard-score { display: flex; align-items: center; gap: 12px; }
.tcard-before { font-size: 14px; color: #EF4444; font-family: 'DM Mono', monospace; font-weight: 500; }
.tcard-arrow { font-size: 18px; color: #475569; }
.tcard-after { font-family: 'Fraunces', serif; font-size: 36px; font-weight: 500; color: #22C55E; line-height: 1; }
.tcard-quote { font-size: 14px; color: #94A3B8; line-height: 1.75; font-style: italic; flex: 1; }
.tcard-name { font-size: 14px; font-weight: 500; color: #fff; }
.tcard-detail { font-size: 12px; color: #64748B; margin-top: 2px; }

/* ---- HOW IT WORKS ---- */
.hiw-section { background: #F8FAFC; border-top: 0.5px solid #E2E8F0; border-bottom: 0.5px solid #E2E8F0; }
.hiw-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.hiw-card { background: #fff; border: 0.5px solid #E2E8F0; border-radius: 14px; padding: 28px; transition: border-color 0.2s, transform 0.2s; position: relative; overflow: hidden; }
.hiw-card:hover { border-color: #6366F1; transform: translateY(-2px); }
.hiw-num { font-family: 'Fraunces', serif; font-size: 52px; font-weight: 300; color: #E2E8F0; position: absolute; top: 16px; right: 20px; line-height: 1; }
.hiw-icon { font-size: 28px; margin-bottom: 12px; }
.hiw-title { font-size: 16px; font-weight: 500; color: #0F172A; margin-bottom: 8px; }
.hiw-desc { font-size: 13px; color: #64748B; line-height: 1.75; }

/* ---- TOPICS ---- */
.topics-section { background: #fff; border-top: 0.5px solid #E2E8F0; border-bottom: 0.5px solid #E2E8F0; }
.topics-inner { display: flex; flex-direction: column; gap: 40px; }
.topics-sub { font-size: 14px; color: #64748B; line-height: 1.75; margin-bottom: 20px; }
.topics-boards { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-board-tag { font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 20px; }
.topic-board-tag.live { background: #EEF2FF; color: #4338CA; border: 0.5px solid #C7D2FE; }
.topic-board-tag.soon { background: #F1F5F9; color: #64748B; border: 0.5px solid #E2E8F0; }
.topics-list { display: flex; flex-direction: column; border: 0.5px solid #E2E8F0; border-radius: 12px; overflow: hidden; }
.topic-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 0.5px solid #E2E8F0; background: #F8FAFC; transition: background 0.2s; }
.topic-row:last-child { border-bottom: none; }
.topic-row.done { background: #fff; }
.topic-row:hover { background: #EEF2FF; }
.topic-num { font-size: 12px; font-weight: 500; color: #CBD5E1; font-family: 'DM Mono', monospace; width: 24px; flex-shrink: 0; }
.topic-row.done .topic-num { color: #6366F1; }
.topic-info { flex: 1; }
.topic-name { font-size: 14px; font-weight: 500; color: #0F172A; }
.topic-sub { font-size: 12px; color: #94A3B8; margin-top: 1px; }
.topic-status { flex-shrink: 0; }
.live-tag { font-size: 11px; font-weight: 500; background: #DCFCE7; color: #166534; padding: 3px 9px; border-radius: 10px; }
.soon-tag { font-size: 11px; color: #94A3B8; background: #F1F5F9; padding: 3px 9px; border-radius: 10px; }

/* ---- ABOUT ---- */
.about-section { background: #0F172A; }
.about-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.about-tag { font-size: 11px; font-weight: 500; color: #6366F1; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.about-text { font-size: 17px; color: #94A3B8; line-height: 1.85; }

/* ---- CONTACT ---- */
.contact-section { background: #F8FAFC; border-top: 0.5px solid #E2E8F0; }
.contact-grid { display: flex; flex-direction: column; gap: 40px; }
.contact-left h2 { margin-bottom: 12px; }
.contact-sub { font-size: 14px; color: #64748B; line-height: 1.8; margin-bottom: 28px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.cd-item { display: flex; flex-direction: column; gap: 2px; }
.cd-label { font-size: 11px; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.06em; }
.cd-val { font-size: 14px; color: #0F172A; font-weight: 500; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.cf-field { display: flex; flex-direction: column; gap: 5px; }
.cf-field label { font-size: 12px; color: #64748B; }
.cf-field input, .cf-field textarea { width: 100%; background: #fff; border: 0.5px solid #E2E8F0; border-radius: 6px; padding: 11px 13px; font-size: 14px; color: #1E293B; font-family: 'DM Sans', sans-serif; outline: none; transition: border-color 0.2s; }
.cf-field input:focus, .cf-field textarea:focus { border-color: #6366F1; }
.cf-field textarea { height: 100px; resize: none; }
.btn-submit { background: #6366F1; color: #fff; border: none; padding: 14px; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; }
.btn-submit:hover { background: #4F46E5; }

/* ---- FOOTER ---- */
.footer { background: #0F172A; padding: 24px 0; border-top: 0.5px solid rgba(255,255,255,0.06); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 500; }
.footer-note { font-size: 12px; color: #475569; }

/* ============================================
   DESKTOP 768px+
============================================ */
@media (min-width: 768px) {
  h2 { font-size: 40px; }
  .hero h1 { font-size: 64px; }
  .hero-btns { flex-direction: row; justify-content: center; }
  .btn-primary, .btn-ghost { width: auto; }
  .hero-proof { grid-template-columns: repeat(4,1fr); border-radius: 14px; }
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
  .hamburger { display: none; }
  .testimonials-grid { grid-template-columns: repeat(2,1fr); }
  .hiw-grid { grid-template-columns: repeat(2,1fr); }
  .topics-inner { flex-direction: row; align-items: flex-start; gap: 60px; }
  .topics-left { flex: 0 0 320px; position: sticky; top: 80px; }
  .topics-right { flex: 1; }
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
  .demo-rate-grid { flex-direction: row; }
  .demo-rate-card { flex: 1; }
}

@media (min-width: 1024px) {
  .hiw-grid { grid-template-columns: repeat(4,1fr); }
}
.tcard-student { border-top: 0.5px solid rgba(255,255,255,0.08); padding-top: 12px; }


/* ============================================
   LANDING PAGE — new sections
============================================ */

/* Philosophy section */
.philosophy-section { background: #fff; border-top: 0.5px solid #E2E8F0; border-bottom: 0.5px solid #E2E8F0; }
.philosophy-inner { display: flex; flex-direction: column; gap: 32px; }
.philosophy-left h2 { font-size: 32px; line-height: 1.2; }
.philosophy-body { font-size: 15px; color: #475569; line-height: 1.85; margin-bottom: 16px; }
.philosophy-link { display: inline-block; font-size: 15px; font-weight: 500; color: #6366F1; border-bottom: 1px solid #6366F1; padding-bottom: 2px; transition: color 0.2s; margin-top: 8px; }
.philosophy-link:hover { color: #4F46E5; }

/* Results */
.results-section { background: #0F172A; }
.results-header { margin-bottom: 8px; }

/* Coverage */
.coverage-section { background: #F8FAFC; border-top: 0.5px solid #E2E8F0; border-bottom: 0.5px solid #E2E8F0; }
.coverage-inner { display: flex; flex-direction: column; gap: 40px; }
.coverage-body { font-size: 15px; color: #64748B; line-height: 1.8; margin-bottom: 20px; }
.coverage-boards { display: flex; flex-direction: column; gap: 10px; }
.coverage-board-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #475569; }
.cb-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cb-dot.live { background: #22C55E; }
.cb-dot.soon { background: #CBD5E1; }
.coverage-topic-list { background: #fff; border: 0.5px solid #E2E8F0; border-radius: 12px; overflow: hidden; }
.ct-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 0.5px solid #E2E8F0; }
.ct-row:last-child { border-bottom: none; }
.ct-row.active { background: #fff; }
.ct-row.muted { background: #F8FAFC; }
.ct-num { font-size: 12px; font-weight: 500; font-family: 'DM Mono', monospace; color: #CBD5E1; width: 32px; flex-shrink: 0; }
.ct-row.active .ct-num { color: #6366F1; }
.ct-name { flex: 1; font-size: 14px; font-weight: 500; color: #0F172A; line-height: 1.4; }
.ct-row.muted .ct-name { color: #94A3B8; }
.ct-tag-live { font-size: 11px; font-weight: 500; background: #DCFCE7; color: #166534; padding: 3px 10px; border-radius: 10px; flex-shrink: 0; }
.ct-tag-soon { font-size: 11px; color: #94A3B8; background: #F1F5F9; padding: 3px 10px; border-radius: 10px; flex-shrink: 0; }

/* About */
.about-section { background: #0F172A; }
.about-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.about-tag { font-size: 11px; font-weight: 500; color: #6366F1; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.about-text { font-size: 17px; color: #94A3B8; line-height: 1.9; }

/* Testimonials */
.testimonial-card { background: rgba(255,255,255,0.04); border: 0.5px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.testimonial-card.highlight { border-color: rgba(99,102,241,0.35); background: rgba(99,102,241,0.06); }
.tcard-score { display: flex; align-items: baseline; gap: 12px; }
.tcard-before { font-size: 13px; color: #EF4444; font-family: 'DM Mono', monospace; }
.tcard-arrow { font-size: 16px; color: #475569; }
.tcard-after { font-family: 'Fraunces', serif; font-size: 40px; font-weight: 500; color: #22C55E; line-height: 1; }
.tcard-quote { font-size: 14px; color: #94A3B8; line-height: 1.8; font-style: italic; }
.tcard-student { border-top: 0.5px solid rgba(255,255,255,0.07); padding-top: 14px; }
.tcard-name { font-size: 14px; font-weight: 500; color: #fff; }
.tcard-detail { font-size: 12px; color: #64748B; margin-top: 2px; }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }


/* ============================================
   DEMO PAGE
============================================ */
.demo-page { background: #F8FAFC; }

.demo-header { background: #0F172A; border-bottom: 0.5px solid rgba(255,255,255,0.08); position: sticky; top: 0; z-index: 100; }
.demo-header-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.demo-back { color: #64748B; font-size: 14px; transition: color 0.2s; }
.demo-back:hover { color: #fff; }

.demo-page-intro { background: #0F172A; padding: 64px 0 56px; }
.demo-intro-inner { max-width: 620px; }
.demo-intro-tag { font-size: 11px; font-weight: 500; color: #6366F1; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.demo-intro-title { font-family: 'Fraunces', serif; font-size: 40px; font-weight: 500; color: #fff; line-height: 1.2; margin-bottom: 20px; }
.demo-intro-body { font-size: 16px; color: #94A3B8; line-height: 1.8; margin-bottom: 14px; }

.demo-page-main { padding: 56px 0; }

.demo-lesson-wrap { margin-bottom: 48px; }
.demo-lesson-marker { font-size: 11px; font-weight: 500; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.demo-full-card { background: #fff; border: 0.5px solid #E2E8F0; border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 28px; }

.dfc-tag { font-size: 11px; font-weight: 500; color: #6366F1; text-transform: uppercase; letter-spacing: 0.08em; }
.dfc-title { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 500; color: #0F172A; line-height: 1.25; }
.dfc-body { font-size: 15px; color: #475569; line-height: 1.85; }

.dfc-interactive { background: #F8FAFC; border: 0.5px solid #E2E8F0; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.dfc-interactive-label { font-size: 12px; color: #94A3B8; font-family: 'DM Mono', monospace; }
.dfc-pixel-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#pixel-canvas { border-radius: 8px; cursor: pointer; max-width: 100%; border: 0.5px solid #E2E8F0; }
.dfc-pixel-info { font-size: 12px; color: #94A3B8; font-family: 'DM Mono', monospace; }

#wave-canvas { max-width: 100%; border-radius: 8px; display: block; }
.dfc-wave-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dfc-wave-btn { background: #6366F1; color: #fff; border: none; padding: 10px 18px; border-radius: 7px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; }
.dfc-wave-btn:hover { background: #4F46E5; }
.dfc-wave-btn:disabled { background: #CBD5E1; cursor: not-allowed; }
.dfc-wave-reset { background: #F1F5F9; color: #64748B; border: 0.5px solid #E2E8F0; padding: 10px 16px; border-radius: 7px; font-size: 13px; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.dfc-wave-info { font-size: 12px; color: #64748B; font-family: 'DM Mono', monospace; }

.dfc-concept { display: flex; flex-direction: column; gap: 14px; }
.dfc-concept-title { font-size: 17px; font-weight: 500; color: #0F172A; }
.dfc-concept-body { font-size: 14px; color: #64748B; line-height: 1.8; }

.dfc-colour-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.dfc-colour-card { border: 0.5px solid #E2E8F0; border-radius: 8px; padding: 10px 8px; text-align: center; cursor: pointer; transition: all 0.2s; background: #F8FAFC; }
.dfc-colour-card:hover { border-color: #6366F1; }
.dfc-colour-card.active { border-color: #6366F1; background: #EEF2FF; }
.dcc-bits { font-size: 11px; font-weight: 500; font-family: 'DM Mono', monospace; color: #6366F1; margin-bottom: 6px; }
.dcc-swatch { height: 28px; border-radius: 4px; margin-bottom: 6px; }
.dcc-colours { font-size: 11px; color: #64748B; }
.dfc-colour-detail { font-size: 13px; color: #475569; line-height: 1.7; padding: 12px 14px; background: #F8FAFC; border-radius: 8px; border: 0.5px solid #E2E8F0; min-height: 36px; }

.dfc-rate-grid { display: flex; flex-direction: column; gap: 8px; }
.dfc-rate-item { padding: 13px 16px; background: #F8FAFC; border: 0.5px solid #E2E8F0; border-radius: 8px; }
.dfc-rate-item.featured { background: #EEF2FF; border-color: #6366F1; }
.dri-rate { font-size: 15px; font-weight: 500; font-family: 'DM Mono', monospace; color: #6366F1; margin-bottom: 2px; }
.dri-label { font-size: 13px; font-weight: 500; color: #0F172A; margin-bottom: 2px; }
.dri-desc { font-size: 12px; color: #64748B; }

.dfc-tryit { background: #EEF2FF; border: 0.5px solid #6366F1; border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.dfc-tryit-label { font-size: 11px; font-weight: 500; color: #6366F1; text-transform: uppercase; letter-spacing: 0.08em; }
.dfc-tryit-q { font-size: 15px; font-weight: 500; color: #0F172A; line-height: 1.6; }
.dfc-tryit-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dfc-tryit-input { flex: 1; min-width: 140px; padding: 11px 14px; border: 0.5px solid #C7D2FE; border-radius: 7px; font-size: 14px; font-family: 'DM Mono', monospace; background: #fff; outline: none; color: #0F172A; transition: border-color 0.2s; }
.dfc-tryit-input:focus { border-color: #6366F1; }
.dfc-tryit-btn { background: #0F172A; color: #fff; border: none; padding: 11px 22px; border-radius: 7px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; }
.dfc-tryit-btn:hover { background: #1E293B; }
.dfc-tryit-feedback { font-size: 13px; font-weight: 500; min-height: 18px; }
.dfc-tryit-feedback.correct { color: #16A34A; }
.dfc-tryit-feedback.incorrect { color: #DC2626; }
.dfc-tryit-hint { font-size: 12px; color: #94A3B8; }

.dfc-next-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 16px 20px; background: #F0FDF4; border: 0.5px solid #86EFAC; border-radius: 10px; }
.dfc-next-msg { font-size: 14px; font-weight: 500; color: #166534; }
.dfc-next-btn { background: #16A34A; color: #fff; border: none; padding: 11px 22px; border-radius: 7px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; text-decoration: none; transition: background 0.2s; }
.dfc-next-btn:hover { background: #15803D; }

.demo-bottom-cta { margin-top: 16px; }
.demo-bottom-inner { background: #0F172A; border-radius: 16px; padding: 48px 36px; text-align: center; }
.demo-bottom-title { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 500; color: #fff; margin-bottom: 14px; line-height: 1.3; }
.demo-bottom-body { font-size: 15px; color: #94A3B8; line-height: 1.8; max-width: 520px; margin: 0 auto 28px; }

/* ---- DESKTOP ---- */
@media (min-width: 768px) {
  .philosophy-inner { flex-direction: row; gap: 80px; align-items: flex-start; }
  .philosophy-left { flex: 0 0 320px; }
  .philosophy-left h2 { font-size: 40px; }
  .testimonials-grid { grid-template-columns: repeat(2,1fr); }
  .coverage-inner { flex-direction: row; gap: 60px; align-items: flex-start; }
  .coverage-text { flex: 0 0 340px; }
  .coverage-visual { flex: 1; }
  .dfc-rate-grid { flex-direction: row; }
  .dfc-rate-item { flex: 1; }
  .demo-intro-title { font-size: 52px; }
}
.philosophy-right { display: flex; flex-direction: column; gap: 0; }

/* ---- PHILOSOPHY CTA (prominent 'see a lesson' button) ---- */
.philosophy-cta-wrap { margin-top: 24px; }
.philosophy-cta-eyebrow { font-size: 14px; color: #64748B; margin-bottom: 12px; }
.philosophy-cta { display: inline-flex; align-items: center; gap: 10px; background: #6366F1; color: #fff; font-weight: 600; font-size: 15px; padding: 15px 30px; border-radius: 10px; box-shadow: 0 10px 26px rgba(99,102,241,0.30); transition: background 0.2s, transform 0.15s, box-shadow 0.2s; }
.philosophy-cta:hover { background: #4F46E5; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(99,102,241,0.40); }
.philosophy-cta .cta-arrow { transition: transform 0.2s; }
.philosophy-cta:hover .cta-arrow { transform: translateX(4px); }

/* ---- Lumira brand emblem ---- */
.brandmark{width:30px;height:32px;display:block;flex-shrink:0;}
.brandmark.small{width:24px;height:26px;}
