@font-face {
  font-family: "Fredoka";
  src: url("Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --teal: #2e9e8f;
  --teal-d: #23796e;
  --orange: #ff9f43;
  --orange-d: #e07f22;
  --ink: #3a2a18;
  --muted: #6e5e4c;
  --cream: #fff4e0;
  --paper: #fffaf2;
  --yellow: #ffc93c;
  --card: #ffffff;
  --line: #f0e3cc;
  --radius: 24px;
  --gutter: 16px;
  --max: 1120px;
  --font: "Fredoka", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* --- top bar --- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(var(--gutter), calc((100% - var(--max)) / 2));
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 999px; color: var(--muted);
}
.nav a:hover { background: var(--cream); color: var(--ink); }
.lang {
  font: 600 14px var(--font); color: var(--teal-d);
  border: 1.5px solid var(--teal); background: transparent;
  border-radius: 999px; padding: 6px 14px; cursor: pointer; margin-left: 6px;
}
.lang:hover { background: var(--teal); color: #fff; }

/* --- shared --- */
section { padding: 88px max(var(--gutter), calc((100% - var(--max)) / 2)); }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: 14px; letter-spacing: 0.06em;
  color: var(--orange-d); text-transform: uppercase;
}
.eyebrow.light { color: var(--yellow); }
h1, h2, h3 { line-height: 1.25; letter-spacing: 0.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 10px; }
h2::after {
  content: ""; display: block; width: 56px; height: 6px; border-radius: 3px;
  background: var(--orange); margin-top: 16px;
}
.sec-head { max-width: 680px; margin-bottom: 40px; }

.phone {
  border-radius: 28px; overflow: hidden; background: #fff;
  border: 6px solid #fff;
  box-shadow: 0 18px 40px rgba(58, 42, 24, 0.16), 0 0 0 1px var(--line);
}
.phone img { width: 100%; height: auto; aspect-ratio: 9 / 17; object-fit: cover; object-position: top; }
.screen {
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
figcaption { text-align: center; font-size: 14px; color: var(--muted); padding: 10px 0 4px; background: #fff; }

/* --- hero --- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  padding-top: 64px; padding-bottom: 72px;
  background: radial-gradient(1200px 500px at 85% 10%, var(--cream), transparent 70%);
}
.hero h1 { font-size: clamp(38px, 6vw, 64px); margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.lead { font-size: 19px; color: var(--muted); margin-top: 20px; max-width: 520px; }
.soon {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 32px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 14px 20px 14px 14px; box-shadow: 0 6px 18px rgba(58, 42, 24, 0.06);
}
.soon strong { display: block; font-size: 17px; }
.soon span { display: block; font-size: 14px; color: var(--muted); }
.qr-slot {
  width: 64px; height: 64px; border-radius: 16px; background: var(--cream);
  display: grid; place-items: center; flex: none;
}
.qr-slot img { width: 40px; }

.hero-shots { position: relative; min-height: 600px; }
.hero-shots .phone { position: absolute; width: 56%; }
.p-front { right: 6%; top: 0; transform: rotate(3deg); z-index: 2; }
.p-back { left: 4%; top: 70px; transform: rotate(-6deg); opacity: 0.96; }
.blob { position: absolute; border-radius: 50%; z-index: 0; }
.b1 { width: 260px; height: 260px; background: var(--yellow); opacity: 0.35; right: -40px; bottom: 10px; }
.b2 { width: 140px; height: 140px; background: var(--teal); opacity: 0.18; left: 0; top: 0; }

/* --- cards --- */
.band { background: var(--paper); }
.band:nth-of-type(odd) { background: #fff; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.band:nth-of-type(odd) .card { background: var(--paper); }
.card .icon { width: 52px; height: 52px; margin-bottom: 16px; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }

.shot-row { display: flex; justify-content: center; gap: 32px; margin-top: 48px; }
.shot-row .phone { width: 240px; }
.shot-row.wide { align-items: center; }
.shot-row.wide .screen { width: 560px; }
.shot-row.wide .phone { width: 200px; }

/* --- teachers --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; background: var(--cream); }
.steps { list-style: none; counter-reset: s; margin-top: 28px; display: grid; gap: 18px; }
.steps li {
  counter-increment: s; position: relative; padding-left: 58px;
  background: #fff; border-radius: 20px; padding-top: 16px; padding-bottom: 16px; padding-right: 18px;
}
.steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff;
  display: grid; place-items: center; font-weight: 600;
}
.steps b { display: block; font-size: 18px; }
.steps span { color: var(--muted); font-size: 15.5px; }
.split-shots { display: flex; gap: 24px; justify-content: center; }
.split-shots .phone { width: 46%; max-width: 260px; }
.split-shots .offset { margin-top: 64px; }

/* --- schools (teal band) --- */
.band.teal { background: var(--teal); color: #fff; }
.band.teal h2::after { background: var(--yellow); }
.band.teal .card { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); }
.band.teal .card p { color: rgba(255, 255, 255, 0.86); }
.cta { text-align: center; margin-top: 44px; font-size: 18px; font-weight: 500; }
.cta .mail {
  display: inline-block; margin-left: 8px; padding: 8px 18px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); text-decoration: none; font-weight: 600;
}
.cta .mail:hover { background: #fff; }

/* --- footer --- */
.foot {
  background: var(--ink); color: #fff; text-align: center;
  padding: 44px var(--gutter); display: grid; justify-items: center; gap: 10px;
}
.foot p { opacity: 0.9; }
.foot .small { font-size: 13px; opacity: 0.6; }

/* --- phones and tablets --- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: 1fr; }
  .shot-row.wide { flex-direction: column; }
  .shot-row.wide .screen { width: 100%; max-width: 560px; }
  .shot-row.wide .phone { width: 48%; max-width: 220px; }
}
@media (max-width: 760px) {
  section { padding-top: 56px; padding-bottom: 56px; }
  .nav a { display: none; }
  .hero, .split { grid-template-columns: 1fr; gap: 32px; }
  .hero-shots { min-height: 0; height: 112vw; max-height: 500px; }
  .hero-shots .phone { width: 58%; }
  .b1 { right: 0; width: 200px; height: 200px; }
  .cards { grid-template-columns: 1fr; }
  .shot-row { gap: 14px; }
  .shot-row .phone { width: 31%; border-width: 3px; border-radius: 16px; }
  figcaption { font-size: 12px; }
  .split-shots .offset { margin-top: 36px; }
  .soon { display: flex; }
}

/* Screens that exist only in Chinese stay out of the English page. */
html[lang="en"] .zh-only { display: none; }

/* The CTA line: sentence and email button centred on one axis (the
   button's overflow:hidden otherwise drops its baseline to the bottom
   edge and lifts it above the text); wraps cleanly on small screens. */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; }
.cta .mail { margin-left: 0; vertical-align: middle; }
