/* No web fonts or CDNs: Google Fonts and many CDNs are blocked in China, where
   many of our teachers are, so the page uses the system font and ships alone. */
:root {
  --paper: #f6f9f8;
  --card: #ffffff;
  --ink: #10201d;
  --muted: #53635f;
  --line: #dbe6e3;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --teal-wash: #e3f4f1;
  --amber: #f5b301;
  --amber-ink: #8a5a00;
  --amber-wash: #fff4d6;
  --shadow: 0 1px 2px rgba(16, 32, 29, .06), 0 12px 32px rgba(16, 32, 29, .08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1412;
    --card: #14201d;
    --ink: #e6efec;
    --muted: #9cb0ab;
    --line: #23332f;
    --teal: #3fbfae;
    --teal-bright: #5fd4c3;
    --teal-wash: #15302b;
    --amber: #fbbf24;
    --amber-ink: #fcd36a;
    --amber-wash: #2e2610;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.brand sup { font-size: 10px; font-weight: 600; color: var(--muted); margin-left: 1px; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.btn-primary { background: #0f766e; color: #fff; }
.btn-primary:hover { background: #0d665f; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--card); }
.btn-small { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .hero { padding-top: 44px; } .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.hero h1 { font-size: clamp(38px, 5.6vw, 60px); letter-spacing: -.025em; font-weight: 800; }
.hero h1 span { color: var(--teal); }
.hero p.lede { font-size: 19px; color: var(--muted); margin: 22px 0 30px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Illustration: a student card with drafted next steps */
.demo { position: relative; }
.demo-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; }
.demo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-wash); color: var(--teal); display: grid; place-items: center; font-weight: 700; }
.demo-head strong { display: block; font-size: 16px; }
.demo-head small { color: var(--muted); font-size: 13px; }
.marks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.mark { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.mark small { display: block; color: var(--muted); font-size: 12px; }
.mark b { font-size: 18px; font-variant-numeric: tabular-nums; }
.mark i { font-style: normal; font-size: 12px; color: var(--teal); margin-left: 4px; }
.steps { background: var(--teal-wash); border-radius: 12px; padding: 14px 16px; }
.steps-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--teal); margin-bottom: 8px; }
.steps-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.steps ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.steps li b { font-weight: 600; }
.steps .review { margin-top: 12px; display: flex; gap: 8px; }
.chip { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.chip.ok { background: #0f766e; border-color: #0f766e; color: #fff; }
.demo-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* Sections */
section.band { padding: 72px 0; border-top: 1px solid var(--line); }
section[id] { scroll-margin-top: 64px; }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin: 14px 0 0; font-size: 18px; }

.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.tile h3 { font-size: 19px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.tile .kicker { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.tile ul { margin: 0; padding-left: 18px; font-size: 15px; display: grid; gap: 6px; }
.ico { width: 30px; height: 30px; border-radius: 8px; background: var(--teal-wash); display: grid; place-items: center; flex: none; }
.ico svg { width: 18px; height: 18px; stroke: var(--teal); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ai { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .ai { grid-template-columns: 1fr; gap: 28px; } }
.ai-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ai-list li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 16px 52px; position: relative; }
.ai-list li::before { content: ""; position: absolute; left: 20px; top: 21px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--teal); }
.ai-list li::after { content: ""; position: absolute; left: 25px; top: 26px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.ai-list b { display: block; font-size: 16.5px; }
.ai-list span { color: var(--muted); font-size: 15px; }
.promise { background: var(--amber-wash); border-radius: 14px; padding: 20px 22px; margin-top: 22px; color: var(--ink); }
.promise b { color: var(--amber-ink); }

.privacy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .privacy { grid-template-columns: 1fr; } }
.privacy .tile p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }

.get { background: #0f3f3a; color: #e6f3f0; border-radius: 22px; padding: 44px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.get img { width: 112px; height: 112px; }
.get h2 { font-size: clamp(26px, 3.2vw, 34px); color: #fff; }
.get p { margin: 10px 0 20px; color: #b9d6d0; }
.get .btn-primary { background: #fbbf24; color: #1f1600; }
.get .btn-primary:hover { background: #f5b301; }
.get .fine { color: #9cc3bb; }
.get a.mail { color: #fff; }
@media (max-width: 640px) { .get { grid-template-columns: 1fr; padding: 30px 24px; text-align: left; } .get img { width: 80px; height: 80px; } }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---- Shared by the multi-page site (features, example, FAQ, privacy) ---- */
.top nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
/* On phones the nav becomes a second row that scrolls sideways, so every page stays one tap away. */
@media (max-width: 760px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; row-gap: 4px; }
  .top .btn { margin-left: auto; }
  .top nav { display: flex; order: 3; width: 100%; margin: 0; gap: 20px; overflow-x: auto; white-space: nowrap; padding: 4px 0 10px; font-size: 14.5px; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  section[id] { scroll-margin-top: 104px; }
}

.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.025em; font-weight: 800; max-width: 18em; }
.page-hero p.lede { font-size: 19px; color: var(--muted); margin: 18px 0 0; max-width: 38em; }
@media (max-width: 640px) { .page-hero { padding: 40px 0 28px; } }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 880px) { .grid3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }
.tile p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
.tile p.kicker + ul { margin-top: 0; }

/* Feature rows: copy beside a screenshot */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature:nth-of-type(even) .shot { order: -1; }
.feature h2 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.feature > div > p { color: var(--muted); margin: 14px 0 18px; font-size: 17.5px; }
.feature ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; }
.feature li b { font-weight: 600; }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; } .feature:nth-of-type(even) .shot { order: 0; } }

/* Screenshot placeholder. Swap the div for an <img> when real screenshots exist. */
.shot { margin: 0; }
.shot .ph { aspect-ratio: 16 / 10; border: 2px dashed color-mix(in srgb, var(--teal) 40%, var(--line)); border-radius: 16px; background: repeating-linear-gradient(135deg, var(--card) 0 14px, var(--teal-wash) 14px 15px); display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-size: 14.5px; }
.shot .ph b { display: block; color: var(--teal); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

.note { background: var(--teal-wash); border-radius: 14px; padding: 18px 22px; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }
.promise p { margin: 0; }

/* Which parts work for every subject */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table.support { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.support th, table.support td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.support tr:last-child td { border-bottom: 0; }
table.support th { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
table.support td:first-child { font-weight: 600; white-space: nowrap; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.tag.any { background: var(--teal-wash); color: var(--teal); }
.tag.econ { background: var(--amber-wash); color: var(--amber-ink); }
/* Phones: each row becomes a small card (part, then tag, then note). */
@media (max-width: 560px) {
  table.support thead { display: none; }
  table.support, table.support tbody, table.support tr, table.support td { display: block; }
  table.support tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.support tr:last-child { border-bottom: 0; }
  table.support td { padding: 0; border: 0; }
  table.support td:first-child { white-space: normal; }
  table.support td + td { margin-top: 6px; }
  table.support td:empty { display: none; }
  table.support td:last-child { color: var(--muted); font-size: 14.5px; }
}

/* Worked example: a term, step by step */
ol.term { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: t; }
ol.term > li { counter-increment: t; position: relative; padding: 0 0 36px 64px; }
ol.term > li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: grid; place-items: center; }
ol.term > li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
ol.term > li:last-child::after { display: none; }
ol.term h3 { font-size: 21px; padding-top: 7px; }
ol.term .when { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--teal); margin: 4px 0 0; }
ol.term p { margin: 10px 0 0; color: var(--muted); }
ol.term .who { display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-top: 12px; }
@media (max-width: 560px) { ol.term > li { padding-left: 54px; } }

/* Long-form text */
.prose { max-width: 44em; }
.prose h2 { font-size: 26px; letter-spacing: -.015em; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }
.prose .fine { margin-top: 36px; }

/* FAQ */
.faq-group { margin-top: 40px; }
.faq-group:first-child { margin-top: 0; }
.faq-group h2 { font-size: 22px; letter-spacing: -.01em; margin-bottom: 12px; }
details.q { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0; margin-top: 10px; }
details.q summary { cursor: pointer; font-weight: 600; padding: 16px 48px 16px 20px; list-style: none; position: relative; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; position: absolute; right: 20px; top: 13px; font-size: 22px; font-weight: 400; color: var(--teal); }
details.q[open] summary::after { content: "−"; }
details.q summary:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 2px; border-radius: 12px; }
details.q .a { padding: 0 20px 18px; color: var(--muted); }
details.q .a p { margin: 0; }
details.q .a p + p, details.q .a ul { margin-top: 10px; }
details.q .a ul { padding-left: 20px; display: grid; gap: 6px; }

/* Register interest */
.interest { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; box-shadow: var(--shadow); }
.interest h2 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.02em; }
.interest > div > p { color: var(--muted); margin: 12px 0 0; }
.interest form { display: grid; gap: 14px; }
.interest label { font-weight: 600; font-size: 15px; display: grid; gap: 6px; }
.interest select, .interest input { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; }
.interest select:focus-visible, .interest input:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 1px; }
.interest .btn { justify-content: center; cursor: pointer; font-family: inherit; }
.interest .fine { margin: 12px 0 0; }
.interest form .fine { margin: 0; }
.interest [hidden] { display: none; }
@media (max-width: 800px) { .interest { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; } }

/* Footer with page links */
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer .links a { color: var(--muted); }
footer .links a:hover { color: var(--ink); }
