@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700&family=Inter:wght@400;500;600&display=swap');

/* ---- Variables ---- */
:root {
  --bg: #FAFBFF;
  --text: #2D2D3A;
  --text-secondary: #7A7A8C;
  --rose: #FFD6E0;
  --blue: #C8E6FF;
  --mint: #C8F0E0;
  --yellow: #FFF3C0;
  --lilac: #E8D5FF;
  --peach: #FFE4CC;
  --accent: #5B6CF9;
  --accent2: #00B37D;
  --dark: #2D2D3A;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-family: 'Fraunces', serif; font-weight: 700; line-height: 1.1; }

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

/* ---- Animations ---- */
@keyframes float {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content { animation: fadeUp 0.6s ease-out both; }
.hero-visual { animation: fadeUp 0.6s 0.2s ease-out both; }

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ---- Header ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  height: 64px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-color: #E8E6F0; }

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 0;
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--accent);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.nav-link {
  font-size: 15px;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s;
  position: relative;
}
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-signin {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 6px 10px;
  transition: color 0.15s;
}
.nav-signin:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: white;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.15s, transform 0.15s;
}
.nav-cta:hover { opacity: 0.9; transform: scale(1.02); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
  margin-left: auto;
  line-height: 1;
}

/* Mobile overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px 24px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  color: var(--text);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: color 0.15s;
  width: 100%;
  max-width: 320px;
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--accent); }
.nav-mobile-cta {
  background: var(--accent) !important;
  color: white !important;
  border-radius: var(--radius-pill) !important;
  font-size: 16px !important;
  margin-top: 12px;
  font-family: 'Inter', sans-serif !important;
}

/* ---- SECTION 1 — HERO ---- */
.hero {
  background: var(--bg);
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--lilac);
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  margin-bottom: 28px;
  font-weight: 500;
}

.hero h1 {
  font-size: 70px;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
}
.hero h1 .highlight {
  background: var(--yellow);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  transition: opacity 0.15s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.9; transform: scale(1.02); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--text);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 12px 26px;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.15s, transform 0.15s;
  display: inline-block;
}
.btn-outline:hover { background: rgba(45,45,58,0.05); transform: scale(1.02); }

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

/* Tablet mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.tablet-wrap {
  animation: float 3s ease-in-out infinite;
  transform-origin: center center;
}

.tablet {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 285px;
  box-shadow: 0 32px 72px rgba(45,45,58,0.22);
}

.tablet-url {
  font-size: 11px;
  color: var(--accent2);
  font-weight: 600;
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 0.5px;
}

.tablet-code {
  font-family: 'Fraunces', serif;
  font-size: 50px;
  color: white;
  text-align: center;
  letter-spacing: 6px;
  line-height: 1;
  margin-bottom: 14px;
}

.tablet-students {
  font-size: 12px;
  color: var(--accent2);
  text-align: center;
  margin-bottom: 8px;
  font-weight: 500;
}

.tablet-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 0 8px;
}

.tablet-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent2);
  opacity: 0.75;
}

.tablet-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tablet-answer {
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Fraunces', serif;
}
.ta-mint { background: var(--mint); color: #00B37D; }
.ta-blue { background: var(--blue); color: #2D7DD2; }
.ta-peach { background: var(--peach); color: #E8720C; }
.ta-rose { background: var(--rose); color: #E8306A; }

/* ---- SECTION 2 — PROBLEM ---- */
.section-problem {
  background: var(--rose);
  padding: 100px 0;
}
.problem-inner { max-width: 680px; margin: 0 auto; }

.problem-item {
  font-family: 'Fraunces', serif;
  font-size: 34px;
  color: var(--text);
  padding: 32px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.problem-item:first-child { border-top: 1px solid rgba(0,0,0,0.08); }

.problem-close {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  color: var(--accent);
  font-weight: 700;
  margin-top: 56px;
}

/* ---- SECTION 3 — HOW IT WORKS ---- */
.section-how {
  background: var(--blue);
  padding: 100px 0;
}

.how-title {
  font-size: 44px;
  color: var(--text);
  max-width: 560px;
  margin-bottom: 60px;
}

.steps-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  position: relative;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(16.6% + 28px);
  right: calc(16.6% + 28px);
  height: 0;
  border-top: 2px dashed rgba(45,45,58,0.2);
  z-index: 0;
}

.step-item { position: relative; z-index: 1; }

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}
.step-num-1 { background: var(--mint); color: var(--accent2); }
.step-num-2 { background: rgba(255,255,255,0.7); color: #2D7DD2; }
.step-num-3 { background: var(--peach); color: #E8720C; }

.step-item h3 { font-size: 20px; color: var(--text); margin-bottom: 10px; }
.step-item p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* ---- SECTION 4 — 3 MODES ---- */
.section-modes {
  background: var(--dark);
  padding: 100px 0;
}

.modes-title {
  font-size: 44px;
  color: white;
  margin-bottom: 12px;
  max-width: 580px;
}

.modes-sub {
  font-size: 18px;
  color: #9B9BAC;
  margin-bottom: 56px;
}

.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.mode-card {
  background: #383849;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid #44445A;
}
.mode-card:nth-child(2) { transform: translateY(20px); }

.mode-badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
}
.mb-mint { background: var(--mint); color: var(--accent2); }
.mb-blue { background: var(--blue); color: #2D7DD2; }
.mb-lilac { background: var(--lilac); color: var(--accent); }

.mode-card h3 { font-size: 22px; color: white; margin-bottom: 12px; }
.mode-card p { font-size: 15px; color: #9B9BAC; line-height: 1.6; margin-bottom: 20px; }

.mode-footer { font-size: 13px; font-weight: 500; }
.mf-mint { color: var(--accent2); }
.mf-blue { color: #2D7DD2; }
.mf-lilac { color: var(--accent); }

/* ---- SECTION 5 — LIBRARY ---- */
.section-library {
  background: var(--yellow);
  padding: 100px 0;
}

.library-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.lib-badge {
  display: inline-flex;
  background: var(--peach);
  color: #E8720C;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.lib-title { font-size: 42px; color: var(--text); margin-bottom: 20px; }

.lib-text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.lib-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lib-list li {
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.lib-list li svg { flex-shrink: 0; margin-top: 2px; }

/* Library mockup */
.lib-mockup {
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 24px;
}

.lib-search {
  background: #F5F5FF;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}

.lib-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.lib-filter-badge {
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
}
.lf-mint { background: var(--mint); color: var(--accent2); }
.lf-blue { background: var(--blue); color: #2D7DD2; }
.lf-lilac { background: var(--lilac); color: var(--accent); }

.lib-result {
  padding: 14px 0;
  border-bottom: 1px solid #F5F5F5;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lib-result:last-child { border-bottom: none; padding-bottom: 0; }

.lib-result-info { flex: 1; min-width: 0; }
.lib-result-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.lib-result-meta { font-size: 11px; color: var(--text-secondary); }

.lib-result-btn {
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.lrb-mint { background: var(--mint); color: var(--accent2); }
.lrb-blue { background: var(--blue); color: #2D7DD2; }
.lrb-lilac { background: var(--lilac); color: var(--accent); }

/* ---- SECTION 6 — DASHBOARD ---- */
.section-dashboard {
  background: var(--mint);
  padding: 100px 0;
}

.dashboard-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.dash-badge {
  display: inline-flex;
  background: var(--lilac);
  color: var(--accent);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.dash-title { font-size: 42px; color: var(--text); margin-bottom: 20px; }

.dash-text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.dash-alert {
  background: white;
  border-left: 4px solid var(--peach);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
}
.dash-alert-main { font-size: 14px; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.dash-alert-sub { font-size: 13px; color: var(--text-secondary); }

/* Dashboard mockup */
.dash-mockup {
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 24px;
  overflow: hidden;
}

.dash-mockup-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-mockup-badge {
  background: var(--mint);
  color: var(--accent2);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dash-table th {
  background: #FAFBFF;
  color: var(--text-secondary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px;
  text-align: center;
  font-weight: 500;
  border-bottom: 1px solid #F0EEF8;
}
.dash-table th:first-child { text-align: left; }
.dash-table td {
  padding: 8px;
  border-top: 1px solid #F5F5F5;
  vertical-align: middle;
  text-align: center;
}
.dash-table td:first-child { text-align: left; font-weight: 500; font-size: 13px; }
.dash-table tr:nth-child(even) td { background: #FAFBFF; }
.dash-table td.col-q3 { background: #FFFBEA; }
.dash-table tr:nth-child(even) td.col-q3 { background: #FFF7D6; }

.dash-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}
.dc-ok { background: var(--mint); color: var(--accent2); }
.dc-ko { background: var(--rose); color: #E8306A; }

.dash-score { font-weight: 600; color: var(--text); }

/* ---- SECTION 7 — COMPARISON ---- */
.section-compare {
  background: var(--bg);
  padding: 100px 0;
}

.compare-title {
  font-size: 38px;
  color: var(--text);
  text-align: center;
  margin-bottom: 48px;
}

.compare-wrap { max-width: 720px; margin: 0 auto; }

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.compare-table th {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  background: var(--dark);
  color: white;
}
.compare-table th:first-child { text-align: left; }
.compare-table th.col-kwiiz {
  background: #1C1C28;
  border-top: 3px solid var(--accent2);
}

.compare-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text);
  text-align: center;
  border-bottom: 1px solid #F0EEF8;
}
.compare-table td:first-child { text-align: left; font-weight: 500; }
.compare-table tr:nth-child(odd) td { background: #FAFBFF; }
.compare-table tr:nth-child(even) td { background: white; }
.compare-table td.col-kwiiz { background: #F0FBF6 !important; }

.check { color: var(--accent2); font-weight: 700; }
.cross { color: #CCCCCC; }
.limited { color: #E8720C; }

/* ---- SECTION 8 — CTA ---- */
.section-cta {
  background: var(--accent);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.cta-title { font-size: 52px; color: white; line-height: 1.1; }

.cta-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-top: 16px;
}

.cta-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.cta-input {
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: white;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  width: 280px;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.cta-input::placeholder { color: rgba(255,255,255,0.6); }
.cta-input:focus { border-color: rgba(255,255,255,0.7); }

.cta-submit {
  background: white;
  color: var(--accent);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  font-family: 'Inter', sans-serif;
}
.cta-submit:hover { opacity: 0.92; transform: scale(1.02); }

.cta-micro {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 16px;
}

.cta-sep {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 56px auto 0;
  max-width: 400px;
}

.cta-share {
  display: block;
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
}
.cta-share:hover { opacity: 0.7; }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  padding: 32px 0;
}

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

.footer-copy,
.footer-mid,
.footer-links { font-size: 13px; color: var(--text-secondary); }

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.15s;
  margin-left: 16px;
}
.footer-links a:hover { color: white; }
.footer-links a:first-child { margin-left: 0; }

/* ---- PAGE HERO (secondary pages) ---- */
.page-hero {
  background: var(--lilac);
  padding: 72px 0 60px;
}
.page-hero h1 {
  font-size: 44px;
  color: var(--text);
  margin-bottom: 16px;
  margin-top: 12px;
}
.page-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb-sep { color: var(--text-secondary); }

/* ---- SECTION (generic for secondary pages) ---- */
.section { padding: 80px 0; }
.section-title {
  font-size: 32px;
  color: var(--text);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
}
.section-alt { background: var(--lilac); }

/* ---- LIBRARY PAGE ---- */
.library-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-select {
  border: 1.5px solid #E0DEF0;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text);
  background: white;
  cursor: pointer;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s;
}
.filter-select:focus { border-color: var(--accent); }

.filter-reset {
  background: var(--rose);
  color: #E8306A;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.quiz-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid #EEEDF8;
  transition: box-shadow 0.15s;
}
.quiz-card:hover { box-shadow: 0 4px 20px rgba(91,108,249,0.1); }

.quiz-card-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.quiz-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

.badge {
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
}
.badge-discipline { background: var(--blue); color: #2D7DD2; }
.badge-degre { background: var(--mint); color: var(--accent2); }
.badge-per { background: var(--lilac); color: var(--accent); }

.quiz-card-footer { display: flex; justify-content: space-between; align-items: center; }
.quiz-q-count { font-size: 13px; color: var(--text-secondary); }

.quiz-launch-btn {
  background: var(--accent);
  color: white;
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.15s;
}
.quiz-launch-btn:hover { opacity: 0.85; }

.empty-state {
  text-align: center;
  padding: 48px;
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

.library-cta {
  margin-top: 56px;
  background: var(--lilac);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.library-cta h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 8px; }
.library-cta p { color: var(--text-secondary); margin: 0; }

/* ---- BLOG PAGE ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #EEEDF8;
  transition: box-shadow 0.15s;
  display: block;
  color: var(--text);
}
.blog-card:hover { box-shadow: 0 6px 24px rgba(91,108,249,0.1); }

.blog-card-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-body { padding: 24px; }
.blog-card-body h3 { font-size: 17px; margin: 10px 0 8px; color: var(--text); line-height: 1.4; }
.blog-card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }

.blog-tag {
  display: inline-flex;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tag-science { background: var(--blue); color: #2D7DD2; }
.tag-pratique { background: var(--mint); color: var(--accent2); }
.tag-pedagogie { background: var(--yellow); color: #9A7500; }

.blog-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 4px;
  align-items: center;
}
.blog-meta-sep { opacity: 0.4; }

/* ---- CONTACT PAGE ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
}

.contact-info h2 { font-size: 32px; margin-bottom: 16px; }
.contact-info > p { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; }

.contact-items { display: flex; flex-direction: column; gap: 20px; }

.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item-icon { font-size: 1.4rem; }
.contact-item-label { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.contact-item-value { font-size: 15px; color: var(--text); font-weight: 500; }

.contact-idea-block {
  margin-top: 40px;
  background: var(--lilac);
  border-radius: var(--radius-md);
  padding: 24px;
}
.contact-idea-block h3 { font-weight: 700; margin-bottom: 8px; color: var(--text); font-size: 1.05rem; }
.contact-idea-block p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; line-height: 1.6; }

.contact-form-wrap {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid #EEEDF8;
}
.contact-form-wrap h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1.5px solid #E0DEF0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { min-height: 140px; resize: vertical; }

.form-submit {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.15s, transform 0.15s;
  width: 100%;
}
.form-submit:hover { opacity: 0.9; transform: scale(1.01); }

.form-success {
  display: none;
  margin-top: 16px;
  background: var(--mint);
  color: var(--accent2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 16px; }

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid #EEEDF8;
  cursor: pointer;
}
.faq-item summary {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--accent); font-size: 1.3rem; flex-shrink: 0; }
.faq-item p { margin-top: 16px; color: var(--text-secondary); line-height: 1.7; }

/* Utility */
.text-center { text-align: center; }
.mt-8 { margin-top: 32px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-toggle { display: block; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 46px; }
  .hero-visual { order: -1; }
  .tablet { width: 240px; }
  .tablet-code { font-size: 40px; }

  .steps-row { grid-template-columns: 1fr; }
  .steps-row::before { display: none; }

  .modes-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .modes-grid::-webkit-scrollbar { display: none; }
  .mode-card { min-width: 260px; flex-shrink: 0; }
  .mode-card:nth-child(2) { transform: none; }

  .library-inner { grid-template-columns: 1fr; }
  .dashboard-inner { grid-template-columns: 1fr; }

  .cta-form { flex-direction: column; align-items: center; }
  .cta-input { width: 100%; max-width: 340px; }

  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
  .footer-links { display: flex; gap: 0; justify-content: center; flex-wrap: wrap; }
  .footer-links a { margin-left: 12px; }
  .footer-links a:first-child { margin-left: 0; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .problem-item { font-size: 26px; }
  .how-title { font-size: 32px; }
  .modes-title { font-size: 32px; }
  .lib-title, .dash-title { font-size: 30px; }
  .compare-title { font-size: 28px; }
  .cta-title { font-size: 36px; }

  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 10px 10px; }

  section { padding: 72px 0; }
  .section { padding: 60px 0; }

  .page-hero { padding: 52px 0 44px; }
  .page-hero h1 { font-size: 34px; }

  .library-cta { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 38px; }
  .hero-badge { font-size: 10px; letter-spacing: 1px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-title { font-size: 30px; }
}

/* ============================================
   ARTICLE PAGES
   ============================================ */

.article-header {
  padding: 60px 0 56px;
}
.article-header--science  { background: var(--blue); }
.article-header--pratique { background: var(--mint); }
.article-header--pedagogie { background: var(--yellow); }

.article-header .container {
  max-width: 800px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-tag {
  border-radius: var(--radius-pill);
  padding: 4px 13px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-header--science  .article-tag { background: white; color: #2D7DD2; }
.article-header--pratique .article-tag { background: white; color: var(--accent2); }
.article-header--pedagogie .article-tag { background: white; color: #9A7500; }

.article-date, .article-read {
  font-size: 14px;
  color: var(--text-secondary);
}

.article-header h1 {
  font-size: 48px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 680px;
}

.lead {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
}

/* Reading column */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 52px 24px 88px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  transition: color 0.15s;
  text-decoration: none;
}
.back-link:hover { color: var(--accent); }

.article-body h2 {
  font-size: 26px;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 14px;
  line-height: 1.25;
}

.article-body p {
  font-size: 17px;
  color: #3D3D4E;
  line-height: 1.8;
  margin-bottom: 18px;
}

.article-body em { font-style: italic; }
.article-body strong { font-weight: 600; color: var(--text); }

.article-body ul {
  margin: 4px 0 20px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-body ul li {
  font-size: 17px;
  color: #3D3D4E;
  line-height: 1.7;
  padding-left: 22px;
  position: relative;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.article-callout {
  background: var(--lilac);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 28px 0;
}
.article-callout p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.article-source {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #EEEDF8;
  line-height: 1.6;
}

.article-cta {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 56px;
  text-align: center;
}
.article-cta h3 {
  font-size: 26px;
  color: white;
  margin-bottom: 10px;
}
.article-cta p {
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-white {
  background: white;
  color: var(--accent);
  border-radius: var(--radius-pill);
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  display: inline-block;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-white:hover { opacity: 0.9; transform: scale(1.02); }

/* Progress bar — reading indicator */
.reading-progress {
  position: fixed;
  top: 64px;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 99;
  transition: width 0.1s linear;
  width: 0%;
}

@media (max-width: 768px) {
  .article-header h1 { font-size: 32px; }
  .lead { font-size: 17px; }
  .article-body h2 { font-size: 22px; }
  .article-body p, .article-body ul li { font-size: 16px; }
  .article-cta { padding: 28px 20px; }
  .article-cta h3 { font-size: 22px; }
}
