:root {
  --paper: #faf9f6;
  --surface: #ffffff;
  --ink: #17151f;
  --muted: #5c5a66;
  --border: #e5e2da;
  --accent: #3f3d99;
  --accent-strong: #2d2b78;
  --amber: #b45309;
  --green: #1a7f5c;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.logo em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 26px; font-size: 0.92rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-block; cursor: pointer;
  background: var(--accent); color: #fff;
  padding: 10px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  border: none; font-family: inherit;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-strong); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: #f1efe9; }
.btn-sm { padding: 7px 16px; font-size: 0.88rem; }

/* Hero */
.hero { padding: 88px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.kicker {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--border); background: var(--surface);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin-bottom: 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fine-note { font-size: 0.85rem; color: var(--muted); }

/* App mock */
.app-mock {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
  box-shadow: 0 1px 2px rgba(23, 21, 31, 0.04), 0 12px 32px rgba(23, 21, 31, 0.06);
}
.app-mock .mock-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.82rem; color: var(--muted); font-weight: 600;
  padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.app-mock .mock-head b { color: var(--amber); }
.app-mock .q { font-size: 0.98rem; font-weight: 600; margin-bottom: 14px; line-height: 1.5; }
.app-mock .opt {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 13px; margin-bottom: 9px; font-size: 0.88rem; color: var(--muted);
}
.app-mock .opt.good {
  border-color: var(--green); color: var(--green); background: rgba(26, 127, 92, 0.06); font-weight: 600;
}
.app-mock .progress { display: flex; justify-content: space-between; margin-top: 16px; font-size: 0.82rem; color: var(--muted); }
.app-mock .bar { height: 6px; border-radius: 99px; background: var(--border); margin-top: 8px; }
.app-mock .bar i { display: block; height: 100%; width: 72%; border-radius: 99px; background: var(--accent); }
.mock-caption { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: #f2f0ea; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kicker-line { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 12px; }
.section-lead { color: var(--muted); max-width: 620px; margin-bottom: 40px; }

.icons { display: flex; gap: 20px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card .icon {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: #eef0fb; color: var(--accent); margin-bottom: 16px;
}
.card .icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 1.02rem; margin-bottom: 7px; }
.card p { color: var(--muted); font-size: 0.93rem; }
.step-num {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 0.9rem; margin-bottom: 14px;
}

/* Two column (teachers) */
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.check-list { list-style: none; margin-top: 22px; }
.check-list li { padding: 13px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 0.96rem; }
.check-list li:last-child { border-bottom: none; }
.check-list li b { color: var(--ink); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.stat-box .num { font-size: 2.1rem; font-weight: 800; color: var(--accent); }
.stat-box .lbl { color: var(--muted); font-size: 0.85rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Signup form */
.signup-band { background: var(--accent); color: #fff; border-radius: 18px; padding: 56px 40px; }
.signup-band h2 { margin-bottom: 8px; }
.signup-band .lede { color: #d3d2e8; margin-bottom: 32px; max-width: 560px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.83rem; font-weight: 600; color: #d3d2e8; }
.field input, .field select {
  font-family: inherit; font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.08); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 8px;
  padding: 11px 13px; outline: none;
}
.field input::placeholder { color: #99a2b3; }
.field input:focus, .field select:focus { border-color: #fff; }
.field select option { color: var(--ink); }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-msg { margin-top: 14px; font-size: 0.92rem; min-height: 1.4em; }
.form-msg.ok { color: #9ff0d2; }
.form-msg.err { color: #ffb3a7; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: 0.88rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
footer a:hover { color: var(--ink); }

/* Legal / contact pages */
.page { max-width: 760px; margin: 0 auto; padding: 64px 24px 0; }
.page h1 { font-size: 2rem; margin-bottom: 6px; }
.updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 36px; }
.page h2 { font-size: 1.2rem; margin: 36px 0 10px; }
.page p, .page li { color: var(--muted); margin-bottom: 12px; }
.page b { color: var(--ink); }
.page ul { padding-left: 22px; }
.page a { color: var(--accent); }

/* Mobile */
@media (max-width: 900px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .grid, .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid, .steps-grid, .faq-grid, .form-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .signup-band { padding: 40px 22px; }
}
