/* Landing page — clean, no emoji, SVG icons, grid hero */

.landing-topbar { padding: 6px 0; }
.landing-topbar .nav-links { gap: 22px; align-items: center; }
.landing-topbar .nav-link {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
}
.landing-topbar .nav-link:hover { color: var(--primary-d); }
.btn.small { padding: 8px 16px; font-size: 14px; }

.brand-mark {
  display: inline-flex; width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  border-radius: 12px; align-items: center; justify-content: center;
}
.brand-mark svg { width: 26px; height: 26px; }

/* Hero */
.hero-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1.1fr 1fr;
  padding: 36px 8px 24px;
  text-align: left;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 18px 4px; }
  .hero-illustration { order: -1; }
}
.hero-text h1 {
  font-size: 44px; line-height: 1.15; color: var(--primary-d); margin: 0 0 16px;
}
.hero-text .sub { font-size: 19px; color: var(--muted); margin: 0 0 26px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
@media (max-width: 860px) { .hero-cta { justify-content: center; } }

.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-trust { justify-content: center; } }
.hero-trust > div { display: flex; flex-direction: column; }
.hero-trust strong { font-size: 28px; color: var(--primary-d); }
.hero-trust span { font-size: 13px; color: var(--muted); }

.hero-illustration {
  width: 100%; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-illustration .stage {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: 1;
}
.hero-illustration .blob {
  position: absolute; inset: 4% 6% 8% 4%;
  background: radial-gradient(circle at 30% 30%, var(--yellow), transparent 55%),
              radial-gradient(circle at 70% 70%, var(--mint), transparent 55%),
              var(--blue);
  border-radius: 48% 52% 60% 40% / 50% 60% 40% 50%;
  opacity: 0.65;
  animation: blob-spin 18s ease-in-out infinite;
}
@keyframes blob-spin {
  0%,100% { border-radius: 48% 52% 60% 40% / 50% 60% 40% 50%; transform: rotate(0); }
  50% { border-radius: 60% 40% 50% 50% / 40% 60% 50% 60%; transform: rotate(8deg); }
}
.hero-illustration .mascot-slot {
  position: absolute;
  width: 38%; height: 38%;
  display: flex; align-items: center; justify-content: center;
}
.hero-illustration .mascot-slot.center { left: 31%; top: 30%; width: 42%; height: 42%; z-index: 2; }
.hero-illustration .mascot-slot.left   { left: 4%;  top: 50%; transform: rotate(-6deg); }
.hero-illustration .mascot-slot.right  { right: 4%; top: 50%; transform: rotate(6deg); }
.hero-illustration .mascot-svg { width: 100%; height: 100%; }

/* Auth card */
.auth-card { margin-top: 28px; max-width: 640px; margin-left: auto; margin-right: auto; }
.auth-card h2 { text-align: center; margin-top: 0; }
.auth-card .center { text-align: center; }
.auth-card .small { font-size: 13px; }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: #fdebe0; padding: 6px; border-radius: 999px; margin: 18px auto;
  max-width: 460px;
}
.auth-tab {
  border: none; background: transparent; color: var(--muted);
  font-family: inherit; font-size: 15px; font-weight: 700;
  padding: 10px 14px; border-radius: 999px; cursor: pointer;
}
.auth-tab.active { background: var(--card); color: var(--primary-d); box-shadow: 0 2px 8px rgba(255,107,61,0.18); }

.auth-pane { padding: 8px 4px; }
.google-btn {
  display: inline-flex; gap: 10px; align-items: center; justify-content: center;
  width: 100%; background: #fff !important; color: #3c4043 !important;
  border: 2px solid #dadce0; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.google-btn:hover { background: #f8f9fa !important; border-color: var(--primary); }
.google-btn svg { flex: 0 0 22px; }

.auth-switch {
  display: flex; gap: 4px; margin-bottom: 12px;
  border-bottom: 2px solid #f3d8c8;
}
.auth-switch button {
  border: none; background: transparent; font-family: inherit;
  padding: 10px 14px; font-size: 15px; cursor: pointer;
  color: var(--muted); font-weight: 700;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.auth-switch button.active { color: var(--primary-d); border-bottom-color: var(--primary); }

.captcha-row label { display: flex; align-items: center; gap: 10px; }
.captcha-row #capQ { font-weight: bold; color: var(--primary-d); }
.auth-foot { margin-top: 18px; }
.auth-foot a { color: var(--primary-d); }

/* Subjects */
.mt20 { margin-top: 24px; }
.subjects-grid { margin-top: 18px; }
.subject-card {
  background: var(--card); border-radius: var(--radius);
  padding: 22px 18px; text-align: left;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}
.subject-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.subject-card h3 { margin: 12px 0 6px; color: var(--primary-d); font-size: 20px; }
.subject-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.subject-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: #fff3e6; display: flex; align-items: center; justify-content: center;
}
.subject-icon svg { width: 32px; height: 32px; color: var(--primary-d); }
.subject-card:nth-child(2) .subject-icon { background: #e4f4ff; }
.subject-card:nth-child(2) .subject-icon svg { color: #2563b0; }
.subject-card:nth-child(3) .subject-icon { background: #e7f8ec; }
.subject-card:nth-child(3) .subject-icon svg { color: #2c9550; }
.subject-card:nth-child(4) .subject-icon { background: #e2f0ff; }
.subject-card:nth-child(4) .subject-icon svg { color: #1f7ad4; }
.subject-card:nth-child(5) .subject-icon { background: #ffe9ee; }
.subject-card:nth-child(5) .subject-icon svg { color: #c43c5c; }
.subject-card:nth-child(6) .subject-icon { background: #efe5ff; }
.subject-card:nth-child(6) .subject-icon svg { color: #6c3ec7; }

/* Features */
.feat-grid { margin-top: 18px; }
.feat { padding: 16px 8px; }
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--yellow), var(--mint));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.feat-icon svg { width: 26px; height: 26px; color: var(--primary-d); }
.feat h3 { margin: 6px 0; font-size: 17px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* FAQ */
details.faq {
  background: #fffaf3; border: 1px solid #f3d8c8; border-radius: 14px;
  padding: 12px 16px; margin: 10px 0;
}
details.faq summary {
  cursor: pointer; font-weight: 700; color: var(--text); font-size: 16px;
  list-style: none; padding-right: 24px; position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--primary-d); font-size: 22px; font-weight: 700;
}
details.faq[open] summary::after { content: '−'; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.landing-footer {
  margin-top: 56px; padding: 28px 12px; text-align: center;
  color: var(--muted); border-top: 1px solid #f3d8c8;
}
.landing-footer a { color: var(--primary-d); font-weight: 600; }
.landing-footer p { margin: 6px 0; }
.landing-footer .small { font-size: 13px; margin-top: 12px; }

.banner[hidden] { display: none; }
