/* ===== Learners' English: styles =====
   Mobile first. Course colours: rose = Speaking, purple = Accent, blue = Grammar. */

:root {
  --ink: #0F1C3F;
  --muted: #5A6482;
  --bg: #FBF8F4;
  --card: #fff;
  --line: #E9E3DB;
  --gold: #F4B24B;
  --gold-dark: #D8921E;
  --peach: #FBE3D2;
  --radius: 22px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --my: "Noto Sans Myanmar", "Myanmar Text", Padauk, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --tabbar-h: 78px;
  --tg-top: 0px;
}
.theme-rose   { --accent: #C0506B; --accent-dark: #5E1F35; --tint: #FBEAEE; --tint2: #F5D9DF; }
.theme-purple { --accent: #6B4BB5; --accent-dark: #33205C; --tint: #EEE9FA; --tint2: #DFD7F3; }
.theme-blue   { --accent: #2060C0; --accent-dark: #112F63; --tint: #E6EEFB; --tint2: #D2E0F6; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.app { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
main { flex: 1; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  padding-top: var(--tg-top, 0px);
  background: rgba(251, 248, 244, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.topbar.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(15, 28, 63, .5); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand img { height: 40px; width: auto; display: block; }
.nav { display: none; gap: 4px; }
.nav a { padding: 8px 15px; border-radius: 99px; font-weight: 700; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.nav a:hover { color: var(--ink); background: rgba(15, 28, 63, .05); }
.nav a.on { color: var(--ink); background: rgba(244, 178, 75, .28); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 99px; border: 2px solid transparent;
  font-weight: 800; font-size: 16px; line-height: 1.2; cursor: pointer; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn svg { width: 19px; height: 19px; transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn.gold { background: var(--gold); color: #1a2142; box-shadow: 0 10px 24px -10px rgba(228, 150, 30, .9); }
.btn.gold:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(228, 150, 30, .95); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { transform: translateY(-2px); }
.btn.accent { background: var(--accent); color: #fff; }
.btn.accent:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn.light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.sm { padding: 9px 17px; font-size: 14.5px; }
.btn.block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s var(--ease) var(--d, 0ms), transform .75s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- page transition ---------- */
.page-enter-active, .page-leave-active { transition: opacity .28s ease, transform .28s ease; }
.page-enter-from { opacity: 0; transform: translateY(12px); }
.page-leave-to { opacity: 0; }

/* ---------- small shared bits ---------- */
.pill {
  display: inline-block; padding: 7px 16px; border-radius: 99px;
  background: var(--accent, var(--ink)); color: #fff; font-weight: 800; font-size: 14px; line-height: 1.3;
}
.pill.soft { background: rgba(15, 28, 63, .07); color: var(--ink); }
.eyebrow { font-weight: 800; letter-spacing: .09em; text-transform: uppercase; font-size: 12.5px; color: var(--accent, var(--gold-dark)); }
.section { padding: 52px 0; }
.sec-head { margin-bottom: 26px; display: grid; gap: 10px; }
.sec-head h2 { font-size: clamp(27px, 6vw, 40px); }
.sec-head p { color: var(--muted); max-width: 56ch; }
.lead { font-size: clamp(17px, 2.6vw, 20px); color: var(--muted); max-width: 52ch; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 30px 0 60px; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; animation: drift 20s ease-in-out infinite; }
.blob.b1 { width: 560px; height: 560px; right: -220px; top: -200px; background: #F7DDE3; }
.blob.b2 { width: 360px; height: 360px; left: -150px; bottom: -120px; background: var(--peach); animation-delay: -6s; }
.blob.b3 { width: 260px; height: 260px; right: 14%; bottom: 8%; background: #E1E9F9; animation-delay: -11s; opacity: .8; }
.hero-grid { position: relative; display: grid; gap: 34px; align-items: center; }
.hero h1 { font-size: clamp(36px, 9vw, 64px); line-height: 1.06; margin: 18px 0 16px; isolation: isolate; }
.hero h1 em, .marker { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -3%; right: -3%; bottom: .02em; height: .34em; z-index: -1;
  background: var(--gold); opacity: .6; border-radius: 6px;
  transform: scaleX(0); transform-origin: left; animation: swipe .9s .7s var(--ease) forwards;
}
.hero .cta-row { margin-top: 26px; }
.rec { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 99px; font-size: 15px; font-weight: 700; text-decoration: none; }
.rec .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.stack { position: relative; height: 340px; max-width: 440px; width: 100%; margin: 6px auto 0; }
.fcard {
  position: absolute; width: 72%; display: flex; align-items: center; gap: 13px; padding: 15px 17px;
  background: #fff; border-radius: 22px; text-decoration: none; color: var(--ink);
  box-shadow: 0 22px 44px -22px rgba(15, 28, 63, .45); border: 1px solid rgba(15, 28, 63, .05);
  transform: rotate(var(--r, 0deg)); animation: float 7s ease-in-out infinite; transition: box-shadow .3s;
}
.fcard:hover { box-shadow: 0 26px 50px -20px rgba(15, 28, 63, .55); }
.fcard .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.fcard .ico svg { width: 24px; height: 24px; }
.fcard b { display: block; font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.fcard small { color: var(--muted); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.fcard.f1 { top: 0; left: 0; --r: -4deg; }
.fcard.f2 { top: 112px; right: 0; --r: 3deg; animation-delay: -2.3s; }
.fcard.f3 { top: 226px; left: 5%; --r: -2deg; animation-delay: -4.6s; }
.fchip {
  position: absolute; padding: 7px 14px; border-radius: 99px; font-weight: 800; font-size: 14px;
  background: var(--accent); color: #fff; animation: float 6s ease-in-out infinite; box-shadow: 0 10px 20px -10px var(--accent);
}
.fchip.c1 { right: 2%; top: 34px; animation-delay: -1s; }
.fchip.c2 { left: 0; top: 150px; animation-delay: -3s; }
.fchip.c3 { right: 6%; bottom: 0; animation-delay: -5s; }

/* ---------- course cards ---------- */
.grid3 { display: grid; gap: 18px; }
.ccard {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; height: 100%;
  padding: 24px; border-radius: 28px; background: var(--tint); color: var(--ink); text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.ccard::before {
  content: ""; position: absolute; right: -70px; top: -70px; width: 210px; height: 210px; border-radius: 50%;
  background: var(--tint2); transition: transform .6s var(--ease);
}
.ccard:hover { transform: translateY(-6px); box-shadow: 0 28px 48px -26px var(--accent); }
.ccard:hover::before { transform: scale(1.3); }
.ccard > * { position: relative; }
.ccard .top { display: flex; align-items: center; justify-content: space-between; }
.ccard .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.ccard .ico svg { width: 27px; height: 27px; }
.ccard h3 { font-size: 24px; color: var(--accent-dark); }
.ccard p { color: #3b4361; }
.facts-row { display: flex; flex-wrap: wrap; gap: 8px; }
.facts-row span { background: rgba(255, 255, 255, .8); border-radius: 99px; padding: 5px 12px; font-size: 13.5px; font-weight: 800; color: var(--accent-dark); }
.ccard .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.price { font-family: var(--serif); font-weight: 700; font-size: 27px; color: var(--accent-dark); line-height: 1; }
.price small { font-family: var(--sans); font-size: 13px; font-weight: 800; margin-left: 4px; opacity: .7; }
.go { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-dark); color: #fff; display: grid; place-items: center; transition: transform .35s var(--ease); }
.go svg { width: 20px; height: 20px; }
.ccard:hover .go { transform: translateX(5px); }

/* ---------- dark band ---------- */
.band {
  position: relative; overflow: hidden; background: var(--ink); color: #fff;
  border-radius: 32px; padding: 38px 26px; display: grid; gap: 20px;
}
.band::before, .band::after { content: ""; position: absolute; border-radius: 50%; }
.band::before { width: 260px; height: 260px; right: -90px; top: -100px; background: rgba(244, 178, 75, .16); animation: drift 16s ease-in-out infinite; }
.band::after { width: 180px; height: 180px; left: -70px; bottom: -80px; background: rgba(255, 255, 255, .06); animation: drift 22s ease-in-out infinite reverse; }
.band > * { position: relative; z-index: 1; }
.band h2 { font-size: clamp(26px, 5.6vw, 38px); }
.band p { color: #C7D0EA; max-width: 48ch; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.step .n { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #1a2142; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 19px; }
.step h3 { font-size: 19px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 16px; }

/* ---------- teacher ---------- */
.tcard { display: grid; gap: 26px; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 26px; }
.avatar-wrap { position: relative; width: 132px; height: 132px; flex: none; }
.avatar-wrap .ring { position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(#C0506B, #6B4BB5, #2060C0, #F4B24B, #C0506B); animation: spin 10s linear infinite; }
.avatar { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(145deg, #FFE6B8, var(--gold)); display: grid; place-items: center; overflow: hidden; border: 5px solid #fff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar span { font-family: var(--serif); font-weight: 700; font-size: 58px; color: var(--ink); }
.tcard .who { display: flex; align-items: center; gap: 22px; }
.tcard h3 { font-size: 26px; }
.tcard .role { color: var(--muted); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { background: var(--bg); border-radius: 20px; padding: 18px 12px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.stat small { color: var(--muted); font-weight: 700; font-size: 13.5px; }

/* ---------- course page ---------- */
.chero { position: relative; overflow: hidden; background: var(--tint); padding: 24px 0 46px; }
.chero::before { content: ""; position: absolute; right: -170px; top: -190px; width: 520px; height: 520px; border-radius: 50%; background: var(--tint2); animation: drift 22s ease-in-out infinite; }
.chero::after { content: ""; position: absolute; left: -90px; bottom: -130px; width: 260px; height: 260px; border-radius: 50%; background: var(--peach); opacity: .7; animation: drift 26s ease-in-out infinite reverse; }
.chero .wrap { position: relative; z-index: 1; }
.backlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--accent-dark); text-decoration: none; margin-bottom: 18px; opacity: .85; }
.backlink svg { width: 18px; height: 18px; transform: rotate(180deg); transition: transform .25s var(--ease); }
.backlink:hover svg { transform: rotate(180deg) translateX(4px); }
.chero h1 { font-size: clamp(32px, 7.5vw, 56px); color: var(--accent-dark); margin: 16px 0 14px; max-width: 18ch; }
.chero h1 em { font-style: normal; color: var(--accent); }
.chero .lead { color: #3d4565; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.meta-row span { background: #fff; border-radius: 99px; padding: 6px 14px; font-weight: 800; font-size: 14px; color: var(--accent-dark); }
.chero .cta-row { margin-top: 24px; }

.checklist { background: #fff; border-radius: 28px; padding: 6px 22px; box-shadow: 0 24px 44px -30px rgba(15, 28, 63, .5); border: 1px solid var(--line); }
.checklist li { display: flex; align-items: center; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 18px; line-height: 1.35; }
.checklist li:last-child { border-bottom: 0; }
.tick { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.tick svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; }
.in .tick svg, .tick.on svg { animation: draw .55s .25s var(--ease) forwards; }

.learn { display: grid; gap: 12px; }
.lcard { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; font-weight: 800; font-size: 17.5px; line-height: 1.3; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.lcard:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -22px var(--accent); border-color: var(--accent); }
.lcard .num { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 17px; border-radius: 99px; border: 2px solid var(--accent); color: var(--accent-dark); font-weight: 800; background: #fff; transition: transform .25s var(--ease), background .25s, color .25s; }
.chip:hover { transform: translateY(-3px) rotate(-1.5deg); background: var(--accent); color: #fff; }
.callout { background: var(--accent); color: #fff; border-radius: 24px; padding: 22px 26px; font-weight: 800; font-size: 19px; line-height: 1.4; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px 18px; }
.fact b { display: block; font-family: var(--serif); font-size: clamp(22px, 5.4vw, 32px); line-height: 1.1; color: var(--accent); margin-bottom: 6px; }
.fact small { font-weight: 700; color: var(--accent-dark); font-size: 15px; line-height: 1.3; display: block; }
.fee { margin-top: 12px; background: var(--accent-dark); color: #fff; border-radius: 26px; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.fee span { font-weight: 800; font-size: 17px; }
.fee b { font-family: var(--serif); font-size: clamp(34px, 9vw, 52px); color: var(--gold); line-height: 1; }
.fee b small { font-family: var(--sans); font-size: 15px; color: #fff; margin-left: 6px; font-weight: 800; }
.fee-note { margin-top: 14px; font-weight: 700; color: var(--accent-dark); }
.ctaband { background: var(--accent-dark); color: #fff; position: relative; overflow: hidden; padding: 54px 0; text-align: center; }
.ctaband::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .06); right: -120px; top: -150px; }
.ctaband .wrap { position: relative; display: grid; gap: 22px; justify-items: center; }
.ctaband h2 { font-size: clamp(27px, 6vw, 40px); max-width: 20ch; }
.two-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.extras { display: grid; gap: 14px; margin-top: 22px; }
.extra { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.extra:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -22px var(--accent); }
.extra .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.extra .ico svg { width: 23px; height: 23px; }
.extra b { display: block; font-size: 17px; }
.extra small { color: var(--muted); font-weight: 700; }
.extra .go { margin-left: auto; width: 38px; height: 38px; background: var(--accent-dark); }

/* ---------- courses page ---------- */
.page-head { padding: 34px 0 6px; }
.page-head h1 { font-size: clamp(32px, 7.5vw, 52px); margin: 10px 0 12px; }

/* ---------- quiz ---------- */
.quiz { max-width: 640px; margin: 0 auto; padding: 26px 20px 20px; min-height: 68vh; }
.qprog { display: flex; align-items: center; gap: 14px; margin: 6px 0 22px; font-weight: 800; color: var(--muted); font-size: 14.5px; }
.qbar { flex: 1; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.qbar i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 8px; transition: width .5s var(--ease); }
.qback { appearance: none; border: 0; background: none; padding: 6px 0; color: var(--muted); font-weight: 800; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.qback svg { width: 17px; height: 17px; transform: rotate(180deg); }
.qback[disabled] { opacity: 0; pointer-events: none; }
.quiz h1 { font-size: clamp(27px, 6.4vw, 36px); margin: 4px 0 22px; }
.qopts { display: grid; gap: 12px; }
.qopt {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 15px; padding: 16px 18px;
  background: #fff; border: 2px solid var(--line); border-radius: 20px; font-size: 17.5px; font-weight: 700; color: var(--ink); cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .2s;
}
.qopt:hover { border-color: var(--ink); transform: translateY(-2px); }
.qopt:active { transform: scale(.985); }
.qopt .k { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 14px; transition: background .2s, color .2s; }
.qopt.on { border-color: var(--gold-dark); background: #FFF6E4; }
.qopt.on .k { background: var(--gold); color: #1a2142; }
.slide-next-enter-active, .slide-next-leave-active, .slide-prev-enter-active, .slide-prev-leave-active { transition: opacity .3s ease, transform .35s var(--ease); }
.slide-next-enter-from, .slide-prev-leave-to { opacity: 0; transform: translateX(34px); }
.slide-next-leave-to, .slide-prev-enter-from { opacity: 0; transform: translateX(-34px); }

.result { animation: pop .6s var(--ease) both; }
.res-card { position: relative; overflow: hidden; background: var(--tint); border-radius: 30px; padding: 28px 24px; }
.res-card::before { content: ""; position: absolute; right: -80px; top: -90px; width: 250px; height: 250px; border-radius: 50%; background: var(--tint2); animation: drift 18s ease-in-out infinite; }
.res-card > * { position: relative; }
.res-card h2 { font-size: clamp(27px, 6.5vw, 36px); color: var(--accent-dark); margin: 14px 0 12px; }
.res-card p { color: #3b4361; }
.res-card .facts-row { margin: 18px 0 8px; }
.res-card .cta-row { margin-top: 22px; }
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: burst .9s var(--ease) forwards; opacity: 0; }
.also { margin-top: 18px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.also h3 { font-size: 19px; margin-bottom: 6px; }
.note { margin-top: 16px; padding: 16px 18px; background: #FFF6E4; border: 1px solid #F3DDB0; border-radius: 18px; font-weight: 700; color: #6b4a0b; font-size: 15.5px; }
.saved-line { margin-top: 18px; color: var(--muted); font-weight: 700; font-size: 14.5px; text-align: center; }
.linkbtn { appearance: none; background: none; border: 0; color: var(--ink); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; padding: 0; }

/* ---------- progress ---------- */
.ptop { background: var(--tint); position: relative; overflow: hidden; padding: 28px 0 32px; }
.ptop::before { content: ""; position: absolute; right: -130px; top: -150px; width: 400px; height: 400px; border-radius: 50%; background: var(--tint2); }
.ptop .wrap { position: relative; display: grid; gap: 22px; align-items: center; }
.ptop h1 { font-size: clamp(30px, 7vw, 46px); color: var(--accent-dark); margin: 10px 0; }
.ringbox { display: flex; align-items: center; gap: 22px; }
.ring-svg { width: 132px; height: 132px; flex: none; transform: rotate(-90deg); }
.ring-svg circle { fill: none; stroke-width: 11; }
.ring-svg .bg { stroke: #fff; }
.ring-svg .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease); }
.ringnum { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 32px; color: var(--accent-dark); line-height: 1; }
.ringnum small { display: block; font-family: var(--sans); font-weight: 800; font-size: 12px; color: var(--muted); margin-top: 3px; }
.ring-wrap { position: relative; width: 132px; height: 132px; flex: none; }
.ptxt b { display: block; font-size: 19px; }
.ptxt span { color: var(--muted); font-weight: 700; }
.ulist { display: grid; gap: 12px; margin-top: 4px; }
.urow { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; transition: background .3s, border-color .3s, box-shadow .3s; }
.urow .hd { display: flex; align-items: center; gap: 14px; }
.urow .num { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; transition: background .3s, color .3s; }
.urow b { font-size: 17.5px; line-height: 1.3; }
.urow .btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0 52px; }
.sbtn { appearance: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; border: 2px solid var(--tint2); background: #fff; color: var(--accent); font-weight: 800; font-size: 14.5px; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .2s var(--ease); }
.sbtn:active { transform: scale(.94); }
.sbtn svg { width: 17px; height: 17px; }
.sbtn .tk { width: 17px; height: 17px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; }
.sbtn .tk svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; }
.sbtn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sbtn.on .tk { background: #fff; border-color: #fff; }
.sbtn.on .tk svg { stroke: var(--accent); animation: draw .4s var(--ease) forwards; }
.urow.done { background: var(--tint); border-color: var(--tint2); }
.urow.done .num { background: var(--accent); color: #fff; }
.urow.next { border-color: var(--accent); box-shadow: 0 16px 30px -24px var(--accent); }
.nexttag { margin-left: auto; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--gold); color: #1a2142; animation: pulse 2.2s ease-in-out infinite; white-space: nowrap; }
.donebar { margin-top: 18px; padding: 20px; border-radius: 22px; background: var(--accent); color: #fff; font-weight: 800; font-size: 18px; text-align: center; animation: pop .6s var(--ease) both; }
.infobox { margin-top: 22px; display: grid; gap: 12px; }
.infocard { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; }
.infocard h3 { font-size: 18px; margin-bottom: 6px; }
.infocard p { color: var(--muted); margin-bottom: 12px; font-size: 16px; }

/* ---------- teacher page ---------- */
.thero { position: relative; overflow: hidden; padding: 34px 0 44px; background: linear-gradient(180deg, #FFF3DD 0%, var(--bg) 100%); }
.thero .wrap { display: grid; gap: 26px; justify-items: center; text-align: center; }
.thero .avatar-wrap { width: 168px; height: 168px; }
.thero .avatar span { font-size: 74px; }
.thero h1 { font-size: clamp(32px, 7.5vw, 50px); }
.thero .role { color: var(--muted); font-weight: 700; font-size: 18px; margin-top: 6px; }
.thero .stats { width: 100%; max-width: 560px; }
.langtoggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px; margin-bottom: 16px; }
.langtoggle button { appearance: none; border: 0; background: none; padding: 8px 18px; border-radius: 99px; font-weight: 800; font-size: 14.5px; color: var(--muted); cursor: pointer; transition: background .25s, color .25s; }
.langtoggle button.on { background: var(--ink); color: #fff; }
.bio { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 24px; }
.bio p { font-size: 18px; line-height: 1.7; }
.bio p.my { font-family: var(--my); line-height: 2.1; font-size: 17px; }
.qgrid { display: grid; gap: 14px; }
.qcard { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 22px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.qcard:hover { transform: translateY(-4px); box-shadow: 0 22px 36px -28px rgba(15, 28, 63, .6); }
.qcard .gh { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.qcard .gi { width: 42px; height: 42px; border-radius: 13px; background: var(--ink); color: var(--gold); display: grid; place-items: center; }
.qcard .gi svg { width: 22px; height: 22px; }
.qcard h3 { font-size: 20px; }
.qcard li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid var(--line); color: #2d3656; font-size: 16.5px; line-height: 1.45; }
.qcard li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.qcard li:first-of-type { border-top: 0; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #C2CBE6; padding: 46px 0 40px; margin-top: 30px; }
.footer .wrap { display: grid; gap: 26px; }
.footer img { height: 46px; width: auto; display: block; }
.footer p { max-width: 40ch; font-size: 15.5px; }
.flinks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.flinks a { color: #fff; font-weight: 700; text-decoration: none; opacity: .85; }
.flinks a:hover { opacity: 1; text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; color: #fff; font-weight: 700; font-size: 14.5px; text-decoration: none; transition: background .2s; }
.social a:hover { background: rgba(255, 255, 255, .12); }
.social svg { width: 18px; height: 18px; }
.copy { font-size: 13.5px; opacity: .65; }

/* ---------- bottom tab bar (phones) ---------- */
.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px;
  background: rgba(255, 255, 255, .93); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 16px 38px -16px rgba(15, 28, 63, .45);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 22px; font-size: 11px; font-weight: 800; color: var(--muted); text-decoration: none; position: relative; transition: color .25s, background .25s; }
.tabbar a svg { width: 23px; height: 23px; transition: transform .35s var(--ease); }
.tabbar a.on { color: var(--ink); background: rgba(244, 178, 75, .3); }
.tabbar a.on svg { transform: translateY(-2px) scale(1.12); }
.pad-tab { height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }

/* ---------- keyframes ---------- */
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-11px) rotate(var(--r, 0deg)); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-16px, 14px) scale(1.04); } 66% { transform: translate(12px, -10px) scale(.97); } }
@keyframes swipe { to { transform: scaleX(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-120px) scale(.3); } }

/* ---------- larger screens ---------- */
/* ---------- course page: illustrations and icons ---------- */
.chero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.cart { width: min(300px, 78%); margin: 4px auto 0; }
.cart svg { display: block; width: 100%; height: auto; overflow: visible; }
.a-t2 { fill: var(--tint2); } .a-ac { fill: var(--accent); } .a-dk { fill: var(--accent-dark); } .a-gold { fill: var(--gold); }
.a-wh { fill: #fff; stroke: var(--accent); stroke-width: 3; }
.a-line { fill: none; stroke: var(--accent-dark); stroke-width: 5; stroke-linecap: round; }
.a-tick { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.a-ln { fill: var(--tint2); } .a-dash { stroke: var(--tint2); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 10; }
.cart .dot { fill: #fff; transform-box: fill-box; transform-origin: center; animation: dotbounce 1.4s ease-in-out infinite; }
.cart .d2 { animation-delay: .18s; } .cart .d3 { animation-delay: .36s; }
.cart .bob { animation: bob 4.600s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.cart .b2 { animation-delay: -1.500s; } .cart .b3 { animation-delay: -3s; }
.cart .bar { transform-box: fill-box; transform-origin: bottom; animation: barpulse 1.300s ease-in-out infinite; }
.ipa-main { font: 700 104px var(--serif); fill: #fff; } .ipa-sm { font: 700 28px var(--serif); fill: var(--accent-dark); }
.ipa-dk { font: 700 24px var(--serif); fill: var(--accent-dark); } .aa { font: 700 24px var(--serif); fill: #fff; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes dotbounce { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(-7px); opacity: 1; } }
@keyframes barpulse { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.lcard .num.ico { background: var(--tint); color: var(--accent); border-radius: 14px; width: 42px; height: 42px; }
.lcard .num.ico svg { width: 22px; height: 22px; }
.chip .emo { margin-right: 7px; }
.fact .fico { width: 44px; height: 44px; border-radius: 14px; background: var(--tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.fact .fico svg { width: 24px; height: 24px; }

@media (min-width: 640px) {
  .learn.two { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .qgrid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .chero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 40px; }
  .cart { width: 100%; max-width: 400px; margin: 0 0 0 auto; }
  body { font-size: 18px; }
  .nav { display: flex; }
  .tabbar, .pad-tab { display: none; }
  .hero { padding: 64px 0 90px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 50px; }
  .stack { height: 440px; max-width: 480px; }
  .fcard.f2 { top: 150px; } .fcard.f3 { top: 298px; }
  .grid3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .section { padding: 76px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .band { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 54px; }
  .band .cta-col { justify-self: end; }
  .tcard { grid-template-columns: auto 1fr; align-items: center; gap: 44px; padding: 38px; }
  .chero { padding: 40px 0 70px; }
  .extras { grid-template-columns: 1fr 1fr; }
  .ptop .wrap { grid-template-columns: 1.3fr 1fr; }
  .thero .wrap { grid-template-columns: auto 1fr; text-align: left; justify-items: start; gap: 48px; align-items: center; }
  .thero .stats { max-width: none; }
  .footer .wrap { grid-template-columns: 1.2fr 1fr; align-items: end; }
}

/* ---------- respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 em::after { transform: scaleX(1); }
  .tick svg, .sbtn.on .tk svg { stroke-dashoffset: 0; }
}
