/* LaraClass — bright, cheery design system for primary-school MOE homework practice */

:root {
  --sun: #ffd93d;
  --sun-dark: #ffb100;
  --coral: #ff6f91;
  --coral-dark: #ff4d75;
  --sky: #4dd0e1;
  --sky-dark: #2eb8ca;
  --grass: #6bcb77;
  --grape: #a78bfa;
  --ink: #2d2a26;
  --ink-soft: #5c574f;
  --cream: #fffdf7;
  --card: #ffffff;
  --border: #f1e6cf;
  --shadow: 0 10px 30px rgba(45, 42, 38, 0.08);
  --shadow-lg: 0 20px 45px rgba(45, 42, 38, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--coral-dark); text-decoration: none; }

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 0 var(--coral-dark);
}
.btn-primary:hover { box-shadow: 0 10px 0 var(--coral-dark); }

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--border);
  box-shadow: 0 6px 0 var(--border);
}

.btn-sky {
  background: var(--sky);
  color: #fff;
  box-shadow: 0 8px 0 var(--sky-dark);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
}
.brand-badge {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sun);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}
.beta-badge {
  display: inline-flex;
  align-items: center;
  background: var(--grape);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1.4;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  font-weight: 600;
}
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--coral-dark); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-logout-form { margin: 0; }
.nav-toggle { display: none; }

/* Child switcher */
.child-switcher { position: relative; }
.child-switcher > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  list-style: none;
}
.child-switcher > summary::-webkit-details-marker { display: none; }
.child-switcher > summary::marker { content: ""; }
.child-switcher-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.child-switcher-avatar img { width: 100%; height: 100%; display: block; }
.child-switcher-name { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.child-switcher-caret { font-size: 0.65rem; color: var(--ink-soft); }
.child-switcher[open] > summary { border-color: var(--sky); }

.child-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  z-index: 200;
}
.child-row { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: var(--radius-sm); }
.child-row + .child-row { margin-top: 2px; }
.child-row.active { background: #fff9ec; }
.child-row-switch-form { flex: 1; min-width: 0; margin: 0; }
.child-row-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 4px;
  border: none;
  background: none;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.child-row-switch:hover { background: var(--cream); }
.child-row-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.child-row-avatar img { width: 100%; height: 100%; display: block; }
.child-refresh-btn {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  cursor: pointer;
}
.child-refresh-btn:hover { background: var(--sky); border-color: var(--sky); color: #fff; }

.child-add-form {
  display: flex;
  gap: 6px;
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.child-add-form input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  font-family: "Nunito", sans-serif;
  font-size: 0.85rem;
}
.child-add-form .btn { padding: 7px 14px; font-size: 0.85rem; box-shadow: none; }
.child-add-form .btn:hover { transform: none; }

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 110px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff2c9;
  color: #8a6400;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--ink);
}
.hero h1 .accent { color: var(--coral-dark); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.tingxie-cta { margin-top: 28px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0; }
.hero-cta-compact { gap: 10px; }
.hero-cta-compact .btn { padding: 12px 18px; font-size: 0.92rem; }
#tingxie-hero .hero-grid { grid-template-columns: 1.5fr 0.5fr; }
@media (max-width: 1100px) {
  #tingxie-hero .hero-grid { grid-template-columns: 1fr; text-align: center; }
  #tingxie-hero .hero-cta { justify-content: center; }
}
.trust-chips { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.trust-chip { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-soft); font-size: 0.95rem; }
.trust-chip img { width: 26px; height: 26px; }

.hero-art { position: relative; }
.hero-art img { max-width: 400px; margin: 0 auto; }

.hanzi-box {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
  background: var(--cream);
  border: 3px solid var(--sun-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hanzi-box::before,
.hanzi-box::after { content: ""; position: absolute; }
.hanzi-box::before {
  left: 50%; top: 0; bottom: 0; width: 0;
  border-left: 2px dashed var(--sun-dark);
  opacity: 0.6;
}
.hanzi-box::after {
  top: 50%; left: 0; right: 0; height: 0;
  border-top: 2px dashed var(--sun-dark);
  opacity: 0.6;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  z-index: -1;
}
.blob-1 { width: 340px; height: 340px; background: #fff2c9; top: -80px; right: -60px; }
.blob-2 { width: 220px; height: 220px; background: #d9f3ff; bottom: -40px; left: -60px; }
.blob-3 { width: 160px; height: 160px; background: #ffe1ea; top: 40%; right: 8%; }

/* Stats strip */
.stats-strip {
  background: var(--ink);
  color: #fff;
  padding: 26px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-num { font-family: "Baloo 2", sans-serif; font-size: 1.8rem; color: var(--sun); }
.stat-label { font-size: 0.9rem; opacity: 0.85; }

/* Site-wide messages (Django messages framework) */
.site-messages { padding-top: 20px; }
.site-message {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  background: #fff9ec;
  border: 1px solid var(--border);
}
.site-message-error { background: #fff0f0; border-color: var(--coral); color: var(--coral-dark); }
.site-message-success { background: #edfaee; border-color: var(--grass); color: #2f8f43; }

/* Section headers */
.section { padding: 84px 0; }
.section-alt { background: #fff9ec; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.tag {
  display: inline-block;
  background: #e8fbe9;
  color: #2f8f43;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

/* Feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.icon-badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.icon-badge img { width: 32px; height: 32px; }
.icon-badge.yellow { background: #fff2c9; }
.icon-badge.pink { background: #ffe1ea; }
.icon-badge.blue { background: #d9f3ff; }
.icon-badge.green { background: #e5f8e6; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.98rem; }

/* Subjects */
.subject-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 30px;
  color: #fff;
  box-shadow: var(--shadow);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.subject-card.live { background: linear-gradient(150deg, #ff8fa8, #ff6f91); }
.subject-card.soon { background: linear-gradient(150deg, #b9c2cc, #93a0ad); }
.subject-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
}
.subject-hanzi { font-size: 2.6rem; font-family: "Baloo 2", sans-serif; opacity: 0.9; }

.mini-badge {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 8px;
}
.subject-card h3 { color: #fff; margin-bottom: 4px; }
.subject-card p { color: rgba(255,255,255,0.9); font-size: 0.92rem; margin-bottom: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; padding: 0 12px; }
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  box-shadow: 0 6px 0 var(--sun-dark);
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--ink-soft); font-size: 0.92rem; }

/* Trust / for parents */
.trust-panel {
  background: linear-gradient(135deg, #eafaf0, #e6f7fb);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.trust-list li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.trust-list img { width: 30px; height: 30px; flex-shrink: 0; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 760px; margin: 0 auto; }
.price-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
}

/* Auth (signup / login) */
.auth-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 420px;
  margin: 0 auto;
}
.auth-card h1 { font-size: 1.6rem; text-align: center; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.form-field label { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.form-input,
/* allauth's own form fields don't carry the form-input class, only a
   type attribute -- style them the same way, scoped to .form-field so
   inputs elsewhere on the site are unaffected. */
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="text"] {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  width: 100%;
}
.form-input:focus,
.form-field input[type="email"]:focus,
.form-field input[type="password"]:focus,
.form-field input[type="text"]:focus { outline: none; border-color: var(--coral); }
.form-error { color: var(--coral-dark); font-size: 0.85rem; font-weight: 700; margin: 0; }
.auth-form .btn { justify-content: center; margin-top: 6px; }
.auth-switch { text-align: center; font-size: 0.92rem; color: var(--ink-soft); margin-top: 22px; }
.auth-switch a { font-weight: 700; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--ink-soft); font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-google { width: 100%; justify-content: center; font-size: 0.98rem; }
.btn-google svg { flex-shrink: 0; }

.profile-setup-card { max-width: 560px; }
.profile-setup-subhead { font-size: 1.1rem; margin: 8px 0 0; }
.child-form-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}
#add-child-btn { align-self: flex-start; }
.price-card.featured { border-color: var(--coral); position: relative; box-shadow: var(--shadow-lg); }
.price-card.featured::before {
  content: "Family plan";
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--coral); color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 6px 16px; border-radius: 999px;
}
.price { font-family: "Baloo 2", sans-serif; font-size: 2.4rem; margin: 12px 0; }
.price span { font-size: 1rem; font-family: "Nunito", sans-serif; color: var(--ink-soft); }
.price-teaser {
  font-family: "Baloo 2", sans-serif;
  font-size: 1.3rem;
  color: var(--coral-dark);
  margin: 16px 0;
}
.price-list { list-style: none; padding: 0; margin: 20px 0; text-align: left; display: grid; gap: 10px; }
.price-list li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--ink-soft); }
.price-list li::before { content: "✓"; color: var(--grass); font-weight: 700; }

/* Feature comparison table */
.compare-table-wrap {
  max-width: 760px;
  margin: 0 auto;
  overflow-x: auto;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; white-space: nowrap; }
.compare-table thead th {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}
.compare-table thead th:not(:first-child), .compare-table td:not(:first-child) { text-align: center; }
.compare-table tbody tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
.compare-table tbody td:first-child { font-weight: 700; }
.compare-yes { color: #2f8f43; font-weight: 700; }
.compare-partial { color: var(--sun-dark); font-weight: 700; }
.compare-no { color: var(--coral-dark); font-weight: 700; }
.compare-muted { color: var(--ink-soft); }
.compare-note {
  max-width: 760px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 24px;
}
.faq-item summary {
  cursor: pointer;
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--coral); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--ink-soft); padding-bottom: 18px; margin: 0; }

/* Final CTA */
.cta-banner {
  background: linear-gradient(135deg, var(--coral), var(--sun-dark));
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.92); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-banner .btn-secondary { background: #fff; box-shadow: 0 6px 0 rgba(0,0,0,0.15); }

/* Footer */
.footer {
  background: var(--ink);
  color: #d8d3c8;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.footer a { color: #d8d3c8; }
.footer a:hover { color: var(--sun); }
.footer-bottom {
  border-top: 1px solid #47433c;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #a8a297;
}

/* Waitlist modal */
.waitlist-modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 460px;
  width: calc(100% - 40px);
  box-shadow: var(--shadow-lg);
}
.waitlist-modal::backdrop {
  background: rgba(45, 42, 38, 0.55);
}
.waitlist-modal-body {
  position: relative;
  padding: 40px 36px 36px;
  text-align: center;
}
.waitlist-modal-body .brand-badge {
  width: 52px; height: 52px;
  font-size: 1.6rem;
  margin: 0 auto 14px;
}
.waitlist-modal-body h3 { font-size: 1.4rem; margin-bottom: 8px; }
.waitlist-modal-body p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }
.waitlist-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
}
.waitlist-modal-close:hover { background: var(--border); color: var(--ink); }
#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
#waitlist-email {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  color: var(--ink);
}
#waitlist-email:focus { outline: none; border-color: var(--coral); }
.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
.consent-checkbox input {
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px; height: 16px;
  accent-color: var(--coral);
  cursor: pointer;
}
.consent-checkbox span {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.consent-checkbox strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.88rem;
  color: var(--ink);
}
.consent-checkbox a { color: var(--coral-dark); text-decoration: underline; }
#waitlist-form .btn { justify-content: center; }
.waitlist-modal-body .btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.waitlist-modal-status {
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 1.2em;
  margin: 14px 0 0;
}
.waitlist-modal-status.success { color: #2f8f43; }
.waitlist-modal-status.error { color: var(--coral-dark); }

.waitlist-step[hidden] { display: none; }

#waitlist-profile-form { margin-top: 20px; }
.waitlist-field {
  text-align: left;
  margin: 0 0 20px;
  border: none;
  padding: 0;
}
.waitlist-field legend,
.waitlist-field > label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 8px;
  padding: 0;
}
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-checkbox { position: relative; display: inline-flex; }
.pill-checkbox input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.pill-checkbox span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pill-checkbox:has(input:checked) span { background: var(--coral); border-color: var(--coral); color: #fff; }
.pill-checkbox:has(input:focus-visible) span { outline: 2px solid var(--sky); outline-offset: 2px; }

#waitlist-school-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  color: var(--ink);
}
#waitlist-school-input:focus { outline: none; border-color: var(--coral); }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip-list:empty { margin-top: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff2c9;
  color: #8a6400;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
}
.chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: #8a6400;
  padding: 2px 4px;
}
.chip-remove:hover { color: var(--coral-dark); }

.waitlist-step-actions { display: flex; gap: 12px; margin-top: 24px; }
.waitlist-step-actions .btn { flex: 1; justify-content: center; }

.waitlist-success {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.waitlist-success.is-visible { opacity: 1; transform: translateY(0); }
.waitlist-success h3 { font-size: 1.4rem; margin-bottom: 10px; }
.waitlist-success p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.waitlist-success .btn { width: 100%; justify-content: center; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .trust-chips { justify-content: center; }
  .hero-art img { max-width: 280px; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-panel { grid-template-columns: 1fr; padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links, .nav-actions .btn-secondary { display: none; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Legal pages (Terms of Use, Privacy Policy) */
.legal-page { max-width: 760px; margin: 0 auto; }
.legal-page h1 { margin-bottom: 4px; }
.legal-updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 36px; }
.legal-page h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal-page h2:first-of-type { margin-top: 0; }
.legal-page h3 { font-size: 1.05rem; margin-top: 1.5em; }
.legal-page p, .legal-page li { color: var(--ink-soft); }
.legal-page ul, .legal-page ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal-page li { margin-bottom: 0.4em; }
.legal-page strong { color: var(--ink); }
.legal-page table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.92rem; }
.legal-page th, .legal-page td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-page th { color: var(--ink); }
