/* learn.newstamford.com — NS TH course landing page.
   Brand tokens: brands/new-stamford/01_brand-foundation/visual-identity.md */
:root {
  --ink: #0B1A44; --royal: #173D8A; --bright: #2F6FED; --slate: #29344A;
  --ice: #EEF5FC; --tint: #D8E9FC; --line: #DCE5F0; --sun: #FFC83D; --white: #fff;
  --amber: #E08A00; --teal: #0E9187; --violet: #7054D6;
  --fd: 'Prompt', 'IBM Plex Sans Thai', sans-serif;
  --fb: 'IBM Plex Sans Thai', 'IBM Plex Sans', sans-serif;
  --gutter: 16px;
  --bar-h: 68px; /* sticky mobile action bar */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--white); color: var(--slate); font: 400 17px/1.65 var(--fb); padding-bottom: var(--bar-h); }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--royal); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--fd); font-weight: 800; color: var(--ink); line-height: 1.3; text-wrap: balance; }
p, li, summary { text-wrap: pretty; }
.nb { display: inline-block; white-space: nowrap; }
@media (max-width: 359px) { h1 .nb, h2 .nb { white-space: normal; } } /* very narrow phones: let long phrases wrap */
/* Components set their own display, so the hidden attribute must win explicitly */
[hidden] { display: none !important; }
h1 { font-size: clamp(31px, 7.6vw, 58px); }
h2 { font-size: clamp(26px, 5.6vw, 40px); }
h3 { font: 700 20px/1.4 var(--fb); color: var(--ink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: 56px 0; }
.band.ice { background: var(--ice); }
.band > .wrap > h2 + p { margin-top: 10px; max-width: 34em; }
:focus-visible { outline: 3px solid var(--bright); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Owner-review notes: only in the mock, removed before go-live */
.mock { background: var(--sun); color: var(--ink); font: 600 14px/1.5 var(--fb); text-align: center; padding: 8px var(--gutter); }
.todo { border: 2px dashed var(--sun); background: #FFF8E1; color: var(--ink); border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.55; }

/* Buttons — capsule, Royal Blue (brand rule) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border-radius: 999px;
  border: 2px solid var(--royal); font: 600 17px/1.3 var(--fb); text-decoration: none; cursor: pointer; background: var(--white); color: var(--royal); }
.btn.fill { background: var(--royal); color: var(--white); }
.btn.sm { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.top .logo img { height: 40px; width: auto; }
.top .lang { margin-left: auto; font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 6px; }
.top .btn { display: none; }
@media (min-width: 720px) { .top .btn { display: inline-flex; } }

/* Hero: copy + the CEFR level ladder (what the free test tells you) */
.hero { background: linear-gradient(180deg, var(--white) 0, var(--ice) 100%); padding: 36px 0 44px; }
.hero .grid { display: grid; gap: 32px; }
.hero p.sub { margin-top: 16px; font-size: 19px; max-width: 30em; }
.hero .btns { margin-top: 24px; }
.hero .time { margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--slate); }
.hero .time li { padding-left: 18px; position: relative; }
.hero .time li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
@media (min-width: 900px) { .hero { padding: 64px 0 72px; } .hero .grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; } }

.ladder { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.ladder .cap { font-weight: 600; color: var(--ink); font-size: 15px; margin-bottom: 14px; }
.ladder ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ladder li { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--ice); color: var(--ink); width: var(--w); min-width: 190px; }
.ladder li b { font: 800 18px/1 var(--fd); width: 30px; }
.ladder li span { font-size: 15px; white-space: nowrap; }
.ladder li.you { background: var(--royal); color: var(--white); position: relative; }
.ladder li.you::after { content: 'ตัวอย่างผล'; position: absolute; right: -8px; top: -10px; background: var(--sun); color: var(--ink); font: 700 12px/1 var(--fb); padding: 5px 8px; border-radius: 6px; transform: rotate(3deg); }
html[lang="en"] .ladder li.you::after { content: 'Sample result'; }
.ladder .rec { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.ladder .rec strong { color: var(--ink); }

.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.trust ul { list-style: none; margin: 0; padding: 14px 0; display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.trust li { padding-left: 26px; position: relative; }
.trust li::before { content: '✓'; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%; background: var(--royal); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
@media (min-width: 820px) { .trust ul { grid-template-columns: repeat(3, auto); justify-content: space-between; } }

/* Courses by age: the age is the heading */
.ages { margin-top: 28px; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.age { display: grid; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.age .who { font: 800 34px/1.15 var(--fd); color: var(--c, var(--royal)); }
.age .who small { display: block; font: 600 15px/1.5 var(--fb); color: var(--slate); }
.age ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.age li strong { display: block; color: var(--ink); font-size: 18px; }
.age li span { display: block; font-size: 16px; }
@media (min-width: 760px) { .age { grid-template-columns: 220px 1fr; } }
.note { margin-top: 22px; max-width: 40em; font-size: 16px; }

/* Price picker */
.picker { margin-top: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.q { display: grid; gap: 8px; padding: 16px; border-bottom: 1px solid var(--line); }
.q .lab { font: 700 16px/1.4 var(--fb); color: var(--ink); }
.q .hint { font-size: 14.5px; line-height: 1.5; color: var(--slate); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--ink); font: 600 16px/1.3 var(--fb); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--royal); border-color: var(--royal); color: var(--white); }
.chip:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.chip.n { min-width: 46px; padding: 8px 12px; }
@media (min-width: 760px) { .q { grid-template-columns: 110px 1fr; align-items: center; padding: 18px 24px; } .q .hint { grid-column: 2; } }

.result { padding: 20px 16px 22px; background: var(--white); }
@media (min-width: 760px) { .result { padding: 26px 24px 28px; } }
.result h3 { font: 800 22px/1.4 var(--fd); }
.result .per { font-size: 15px; margin-top: 2px; }
.soon { display: inline-block; margin-left: 6px; background: var(--sun); color: var(--ink); font: 700 13px/1 var(--fb); padding: 6px 9px; border-radius: 6px; vertical-align: middle; }
.starts { margin-top: 16px; display: grid; gap: 10px; }
.start { background: var(--ice); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; }
.start b { color: var(--ink); font-size: 16.5px; }
.start small { grid-column: 1; font-size: 14.5px; line-height: 1.5; }
.start .btn { grid-row: 1 / span 2; grid-column: 2; }
@media (min-width: 760px) { .starts { grid-template-columns: 1fr 1fr; } }

table.prices { width: 100%; border-collapse: collapse; margin-top: 16px; }
table.prices th, table.prices td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.prices thead th { font: 600 14px/1.4 var(--fb); color: var(--slate); padding-bottom: 8px; }
table.prices .h { font: 700 18px/1.3 var(--fb); color: var(--ink); }
table.prices .h small { display: block; font: 400 14px/1.4 var(--fb); color: var(--slate); }
table.prices .p { font: 800 23px/1.2 var(--fd); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.prices td.p, table.prices th.p { text-align: right; padding-right: 6px; }
table.prices thead th.p { font: 600 14px/1.4 var(--fb); color: var(--slate); }
.allnote { margin-top: 4px; font-size: 15px; }
table.prices td:last-child, table.prices th:last-child { text-align: right; width: 1%; padding-left: 10px; }
.fine { margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.6; display: grid; gap: 4px; }
.fine li { padding-left: 16px; position: relative; }
.fine li::before { content: ''; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--bright); }

/* Full price list + exam prep: wide matrices that scroll sideways inside their own box */
details.all { margin-top: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
details.all > summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 16px; font: 700 18px/1.4 var(--fb); color: var(--royal); position: relative; }
details.all > summary::-webkit-details-marker { display: none; }
details.all > summary::after { content: '+'; position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--royal); font: 700 22px/32px var(--fb); text-align: center; }
details.all[open] > summary::after { content: '–'; }
.allbody { padding: 0 16px 18px; }
.allbody h3 { margin: 22px 0 4px; font: 800 21px/1.4 var(--fd); }
.allbody h4 { margin: 16px 0 6px; font: 700 16px/1.4 var(--fb); color: var(--ink); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; }
table.matrix { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 520px; font-size: 15px; font-variant-numeric: tabular-nums; }
table.matrix th, table.matrix td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.matrix tr:last-child th, table.matrix tr:last-child td { border-bottom: 0; }
table.matrix thead th { background: var(--ice); color: var(--ink); font-weight: 700; }
table.matrix th:first-child { position: sticky; left: 0; text-align: left; background: var(--ice); color: var(--ink); font-weight: 600; }
table.matrix td { color: var(--ink); font-weight: 600; }
table.matrix td.none { color: #9AA6B8; font-weight: 400; }
.swipe { font-size: 13.5px; margin-top: 6px; }
@media (min-width: 720px) { .swipe { display: none; } }
.exam { margin-top: 40px; }
.exam p { margin-top: 8px; max-width: 38em; }
.exam .scroll { margin-top: 16px; background: var(--white); }

/* Teachers */
.ttypes { margin-top: 26px; display: grid; gap: 14px; }
.ttype { background: var(--white); border-radius: 16px; padding: 18px; border-left: 6px solid var(--royal); }
.ttype p { margin-top: 4px; font-size: 16px; }
.ttype .from { margin-top: 10px; font-weight: 600; color: var(--ink); }
@media (min-width: 820px) { .ttypes { grid-template-columns: repeat(3, 1fr); } }
.band .todo { margin-top: 20px; }

/* Proof */
.proof { display: grid; gap: 24px; align-items: center; }
.proof img { border-radius: 12px; border: 1px solid var(--line); }
.proof p { margin-top: 12px; max-width: 30em; }
@media (min-width: 820px) { .proof { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* Steps: a real sequence, so they are numbered */
.steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 20px; }
.steps li { counter-increment: s; padding-left: 60px; position: relative; min-height: 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--royal); color: #fff; font: 800 20px/44px var(--fd); text-align: center; }
.steps strong { display: block; color: var(--ink); font-size: 19px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq { margin-top: 20px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 0; position: relative; font: 600 18px/1.5 var(--fb); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--royal); font: 700 20px/30px var(--fb); text-align: center; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 18px; max-width: 36em; }

/* Apply form */
.apply { background: var(--royal); color: #E3ECFB; }
.apply h2 { color: #fff; }
.apply .wrap { display: grid; gap: 28px; }
.apply .side p { margin-top: 10px; max-width: 26em; }
.apply .side a { color: #fff; font-weight: 600; }
.apply .contact { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16.5px; }
form.card { background: var(--white); color: var(--slate); border-radius: 20px; padding: 20px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, fieldset legend { font: 600 16px/1.4 var(--fb); color: var(--ink); padding: 0; }
.field .opt { font-weight: 400; color: var(--slate); font-size: 14.5px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; font: 400 17px/1.4 var(--fb); color: var(--ink); background: var(--white); }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bright); outline: none; }
.field .err { color: #B3261E; font-size: 14.5px; display: none; }
.field.bad .err { display: block; }
.field.bad input, .field.bad select { border-color: #B3261E; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.two { display: grid; gap: 16px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.picked { background: var(--ice); border-radius: 10px; padding: 10px 12px; font-size: 15.5px; color: var(--ink); display: none; }
.picked.on { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.picked button { border: 0; background: none; color: var(--royal); font: 600 14.5px var(--fb); cursor: pointer; padding: 2px 0; white-space: nowrap; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.55; }
.consent input { width: 22px; height: 22px; min-height: 0; margin-top: 1px; flex: none; }
.hp { position: absolute; left: -9999px; }
.done { display: none; background: var(--white); color: var(--slate); border-radius: 20px; padding: 24px 20px; }
.done h3 { font: 800 24px/1.4 var(--fd); }
.done p { margin: 8px 0 18px; }
.formmsg { font-size: 15px; color: #B3261E; }
@media (min-width: 900px) { .apply .wrap { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; } form.card { padding: 28px; } }

footer { padding: 28px 0 36px; font-size: 14.5px; line-height: 1.7; }

/* Sticky action bar (phones only) */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--bar-h); background: var(--white); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px var(--gutter); }
.bar .btn { min-height: 0; padding: 0 8px; font-size: 16px; }
@media (min-width: 720px) { .bar { display: none; } body { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Colour pass (27 Nov 2026, owner request): secondary colours, book covers, stickers, doodles ---------- */
:root { --pink: #D43D42; --teal-d: #0B7A72; --amber-bg: #FFF2DD; --teal-bg: #E7F7F4; --violet-bg: #F1EDFF; --blue-bg: #EAF2FF; --pink-bg: #FFECEC; }
.band.lilac { background: var(--violet-bg); }
.band.sunny { background: var(--amber-bg); }
.spark { width: 28px; height: 28px; fill: var(--sun); display: block; }

/* Hand-drawn squiggle under section headings */
h2.sq { padding-bottom: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10'%3E%3Cpath d='M2 6c10-8 18 8 28 0s18 8 28 0 18 8 28 0 18 8 28 0' fill='none' stroke='%232F6FED' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 120px 10px no-repeat; }
.lilac h2.sq { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10'%3E%3Cpath d='M2 6c10-8 18 8 28 0s18 8 28 0 18 8 28 0 18 8 28 0' fill='none' stroke='%237054D6' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Hero: sky circle, dot grid, mascot standing on the level ladder */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -130px; top: -130px; width: 420px; height: 420px; border-radius: 50%; background: var(--tint); opacity: .75; }
.hero::after { content: ''; position: absolute; left: 0; bottom: 0; width: 170px; height: 110px; background-image: radial-gradient(var(--bright) 1.6px, transparent 1.7px); background-size: 16px 16px; opacity: .22; }
.hero .grid { position: relative; z-index: 1; }
.ladder { position: relative; }
.ladder > .spark { position: absolute; left: -10px; top: -16px; width: 36px; height: 36px; transform: rotate(12deg); }
.rungs { position: relative; }
.rungs .mascot { position: absolute; right: -6px; bottom: 0; height: 132px; width: auto; pointer-events: none; }
@media (min-width: 900px) { .rungs .mascot { height: 190px; right: 0; } }
.ladder li:nth-child(1) { background: #FFF2DD; }
.ladder li:nth-child(2) { background: #FFECEC; }
.ladder li:nth-child(3) { background: var(--violet-bg); }
.ladder li:nth-child(5) { background: var(--teal-bg); }
.ladder li:nth-child(6) { background: var(--blue-bg); }
.trust li:nth-child(2)::before { background: var(--violet); }
.trust li:nth-child(3)::before { background: var(--sun); color: var(--ink); }

/* Course cards: one colour per course, real book covers fanned out */
.courses { margin-top: 28px; display: grid; gap: 16px; }
@media (min-width: 860px) { .courses { grid-template-columns: 1fr 1fr; } .course.wide { grid-column: 1 / -1; } }
.course { --c: var(--royal); --bg: var(--ice); --on: #fff; background: var(--bg); border-radius: 24px; padding: 22px 20px; position: relative; overflow: hidden; display: grid; gap: 14px; align-content: start; }
.c-amber { --c: #F5A524; --bg: var(--amber-bg); --on: var(--ink); }
.c-teal { --c: var(--teal-d); --bg: var(--teal-bg); }
.c-violet { --c: var(--violet); --bg: var(--violet-bg); }
.c-blue { --c: var(--bright); --bg: var(--blue-bg); }
.c-pink { --c: var(--pink); --bg: var(--pink-bg); }
.agechip { justify-self: start; background: var(--c); color: var(--on); font: 700 15px/1 var(--fb); padding: 8px 14px; border-radius: 999px; }
.course h3 { font: 800 24px/1.3 var(--fd); }
.learn { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.learn li { padding-left: 30px; position: relative; }
.learn li::before { content: '\2713'; position: absolute; left: 0; top: .16em; width: 21px; height: 21px; border-radius: 50%; background: var(--c); color: var(--on); font: 700 12px/21px var(--fb); text-align: center; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact { background: var(--white); border-radius: 14px; padding: 10px 14px; }
.fact b { display: block; font: 800 22px/1.25 var(--fd); color: var(--ink); }
.fact span { display: block; font-size: 14px; line-height: 1.45; }
.shelf { display: flex; align-items: flex-end; gap: 16px; margin-top: 8px; }
.shelf span { font: 600 15px/1.4 var(--fb); color: var(--ink); padding-bottom: 8px; }
.fan { position: relative; width: 200px; height: 138px; flex: none; }
.fan img { position: absolute; bottom: 0; width: 88px; border-radius: 6px; box-shadow: 0 8px 18px rgba(11, 26, 68, .24); }
.fan img:nth-child(1) { left: 2px; transform: rotate(-8deg); }
.fan img:nth-child(2) { left: 56px; bottom: 8px; z-index: 2; }
.fan img:nth-child(3) { left: 110px; transform: rotate(8deg); }
.course .stick { position: absolute; right: 10px; bottom: 10px; width: 104px; transform: rotate(8deg); }
@media (min-width: 860px) { .course .stick { width: 150px; right: 28px; bottom: 16px; } }
.tip { margin-top: 20px; display: flex; gap: 14px; align-items: center; background: var(--ice); border-radius: 20px; padding: 14px 16px; }
.tip img { width: 84px; flex: none; }
.tip p { font-size: 16px; line-height: 1.6; }
.tip strong { color: var(--ink); }

/* Prices: tinted trial / starter boxes */
.start:first-child { background: var(--amber-bg); }
.start:nth-child(2) { background: var(--violet-bg); }

/* Teachers */
.ttype { border-left: 0; border-top: 6px solid var(--c, var(--royal)); }
h3.sub { margin-top: 32px; font: 800 22px/1.4 var(--fd); }
.people { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 620px) { .people { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 940px) { .people { grid-template-columns: repeat(5, 1fr); } }
.person { background: var(--white); border-radius: 20px; padding: 18px 12px 16px; text-align: center; }
.person .ph, .person img { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 12px; border: 4px solid var(--white); box-shadow: 0 0 0 4px var(--c); object-fit: cover; }
.person .ph { background: var(--tint); color: var(--royal); display: grid; place-items: center; font: 800 42px/1 var(--fd); }
.person b { display: block; color: var(--ink); font-size: 17px; }
.person span { display: block; font-size: 14.5px; }

/* Award: trophy + certificate */
.ptext .spark { width: 40px; height: 40px; margin-bottom: 10px; }
.pimgs { display: grid; grid-template-columns: .72fr 1fr; gap: 14px; align-items: end; }
.pimgs img { border-radius: 14px; border: 4px solid var(--white); box-shadow: 0 10px 26px rgba(11, 26, 68, .16); }
.pimgs .trophy { transform: rotate(-2deg); }
.pimgs .cert { transform: rotate(1.5deg); }

/* Steps */
.stepsband .wrap { position: relative; }
.mascot2 { display: none; }
@media (min-width: 980px) { .mascot2 { display: block; position: absolute; right: 24px; top: -30px; height: 168px; width: auto; } }
.steps li:nth-child(1)::before { background: var(--bright); }
.steps li:nth-child(2)::before { background: var(--violet); }
.steps li:nth-child(3)::before { background: var(--teal-d); }

/* Apply band: soft circle */
.apply { position: relative; overflow: hidden; }
.apply::before { content: ''; position: absolute; left: -140px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.apply .wrap { position: relative; }

/* Course intro video: beside the section heading on wide screens, above it on phones */
.intro { display: grid; gap: 26px; }
.intro p { margin-top: 10px; max-width: 30em; }
.vid { position: relative; max-width: 420px; }
.vid video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 24px; background: var(--ice); box-shadow: 0 12px 30px rgba(11, 26, 68, .14); }
.vid .btn { position: absolute; right: 12px; bottom: 12px; border-color: var(--white); }
@media (min-width: 820px) { .intro { grid-template-columns: 340px 1fr; align-items: center; gap: 48px; } }

/* Apply card: link to the school's Airtable enrolment form */
.applycard { background: var(--white); color: var(--slate); border-radius: 20px; padding: 22px 20px; display: grid; gap: 16px; }
.applycard .btn { justify-self: start; }

/* Short interest form: labelled groups so a parent and a child are never mixed up */
fieldset.grp { border: 0; border-top: 2px solid var(--line); margin: 0; padding: 14px 0 0; display: grid; gap: 14px; }
fieldset.grp > legend { font: 800 18px/1.4 var(--fd); color: var(--royal); padding: 0 10px 0 0; }

/* Sticker icons (generated in the brand sticker style, 28 Nov 2026) */
.ico { width: 56px; height: 56px; object-fit: contain; }
.steps li { padding-left: 0; padding-top: 0; min-height: 0; }
.steps li::before { position: static; display: inline-block; vertical-align: middle; margin-right: 10px; }
.steps li .ico { width: 76px; height: 76px; display: inline-block; vertical-align: middle; }
.steps li strong { margin-top: 8px; }
.ttype .ico { width: 68px; height: 68px; margin-bottom: 6px; }
.apply .contact li { display: flex; align-items: center; gap: 12px; }
.apply .contact .ico { width: 44px; height: 44px; flex: none; }
h2 .ico { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.25em; margin-right: 10px; }
.mascot3 { display: none; }
@media (min-width: 900px) { .mascot3 { display: block; height: 230px; width: auto; margin: 22px 0 0; } }

/* Thin line icons in a soft circle: the formal parts of the page (teacher types, contact). Stickers stay
   on the playful parts (course cards, tip, three steps). */
.lico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex: none;
  color: var(--c, var(--royal)); background: color-mix(in srgb, var(--c, var(--royal)) 12%, white); }
.lico svg { width: 26px; height: 26px; }
.ttype .lico { margin-bottom: 10px; }
.apply .contact .lico { width: 42px; height: 42px; color: var(--white); background: rgba(255, 255, 255, .14); }
.apply .contact .lico svg { width: 21px; height: 21px; }

/* Owner-review notes show only in the local preview, never on the deployed site */
.live .mock, .live .todo { display: none; }

/* Sticky bar steps aside while the interest form is on screen */
.bar.off { display: none; }

/* Age note: courses start at 6; younger children can still leave their details */
.hintline { font-size: 14px; color: var(--slate); }
.young { background: #FFF8E1; border-left: 4px solid var(--sun); border-radius: 8px; padding: 8px 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink); }

/* ---------- Review round 28 Nov 2026 ---------- */
/* Duotone icons: navy line + one sunshine shape */
.dico { display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none; color: var(--ink); }
.dico svg { width: 44px; height: 44px; }
.dico .a { fill: var(--sun); }
.ttype .dico { margin-bottom: 8px; }
.apply .contact .dico { width: 44px; height: 44px; color: var(--white); }
.apply .contact .dico svg { width: 36px; height: 36px; }
.apply .contact .dico .a { fill: rgba(255, 200, 61, .9); stroke: var(--white); }

/* Trust strip as three cards */
.trust { background: var(--ice); border: 0; }
.trust ul { padding: 18px 0; gap: 10px; font-size: 16px; }
.trust li { padding: 12px 16px; background: var(--white); border-radius: 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 4px 16px rgba(11, 26, 68, .06); }
.trust li::before { content: none; }
@media (min-width: 820px) { .trust ul { grid-template-columns: repeat(3, 1fr); } }

/* Mascot stands beside the ladder, never on top of the labels */
.rungs { padding-right: 78px; }
.ladder li { min-width: 0; }
.ladder li span { white-space: normal; line-height: 1.3; font-size: 14.5px; }
.rungs .mascot { right: -8px; height: 150px; }
@media (min-width: 900px) { .rungs { padding-right: 112px; } .rungs .mascot { right: -4px; height: 210px; } .ladder li span { font-size: 15px; } }

/* Video section: quick links to each course */
.jump { list-style: none; margin: 18px 0 20px; padding: 0; display: grid; gap: 8px; max-width: 30em; }
.jump a { display: block; padding: 12px 16px; border-radius: 14px; background: var(--ice); color: var(--ink); text-decoration: none; font-size: 16px; }
.jump a:hover { background: var(--tint); }
.jump b { display: inline-block; min-width: 96px; color: var(--royal); }
.jump li:nth-child(1) a { background: var(--amber-bg); } .jump li:nth-child(2) a { background: var(--violet-bg); }
.jump li:nth-child(3) a { background: var(--blue-bg); } .jump li:nth-child(4) a { background: var(--pink-bg); }

/* Teachers: two rows of four */
@media (min-width: 940px) { .people { grid-template-columns: repeat(4, 1fr); } }

/* Price tables: coloured header, striped rows */
table.prices { border-collapse: separate; border-spacing: 0; }
table.prices thead th { background: var(--royal); color: var(--white); padding: 10px 12px; }
table.prices thead th.p { color: var(--white); }
table.prices thead th:first-child { border-radius: 12px 0 0 12px; } table.prices thead th:last-child { border-radius: 0 12px 12px 0; }
table.prices tbody td { padding: 12px; border-bottom: 0; }
table.prices tbody tr:nth-child(odd) td { background: var(--ice); }
table.prices tbody td:first-child { border-radius: 12px 0 0 12px; } table.prices tbody td:last-child { border-radius: 0 12px 12px 0; }
table.prices .h small { color: var(--slate); }
table.matrix thead th { background: var(--royal); color: var(--white); }
table.matrix thead th:first-child { background: var(--royal); color: var(--white); }
table.matrix tbody tr:nth-child(even) td { background: var(--ice); }
table.matrix tbody th { background: var(--tint); }
table.matrix td.none { color: #6E7B90; }
.allbody h3 { margin-top: 26px; padding: 8px 14px; border-radius: 12px; background: var(--amber-bg); display: inline-block; }

/* Free placement test: sample result card */
.testgrid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) { .testgrid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.learn.tick { margin-top: 16px; --c: var(--royal); --on: #fff; }
.result-card { position: relative; background: var(--white); border-radius: 24px; padding: 24px 22px; box-shadow: 0 14px 34px rgba(11, 26, 68, .12); border-top: 8px solid var(--royal); max-width: 420px; }
.result-card .tag { position: absolute; right: 14px; top: -16px; background: var(--sun); color: var(--ink); font: 700 13px/1 var(--fb); padding: 7px 10px; border-radius: 8px; transform: rotate(3deg); }
.rc-head { display: flex; align-items: center; gap: 12px; }
.rc-head img { width: 40px; height: auto; }
.rc-head b { display: block; color: var(--ink); font-size: 17px; } .rc-head span { font-size: 14px; }
.rc-level { margin: 18px 0; padding: 14px 16px; border-radius: 16px; background: var(--blue-bg); display: grid; grid-template-columns: 1fr auto; align-items: center; }
.rc-level span { font-size: 14.5px; } .rc-level strong { grid-row: 1 / span 2; grid-column: 2; font: 800 54px/1 var(--fd); color: var(--royal); }
.rc-level em { font-style: normal; font-weight: 600; color: var(--ink); }
.rc-skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rc-skills li { display: grid; grid-template-columns: 78px 1fr 34px; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.rc-skills i { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--bright) var(--v), var(--line) var(--v)); }
.rc-skills b { text-align: right; }
.rc-rec { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15.5px; } .rc-rec b { color: var(--ink); }

/* Footer */
footer { background: var(--ink); color: #D5DEEE; padding: 34px 0 40px; font-size: 15px; line-height: 1.7; }
footer p { margin: 0 0 8px; max-width: 48em; }
footer strong { color: var(--white); }
footer a { color: var(--white); margin-right: 16px; white-space: nowrap; }
.social { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.social span { font-weight: 600; color: var(--white); margin-right: 4px; }
.social a { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .12); text-decoration: none; font-weight: 600; }
.social a:hover { background: rgba(255, 255, 255, .22); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* Ladder fix: labels stay on one line; the mascot is small beside the two short rows, and stands outside
   the card on wide screens */
.rungs { padding-right: 0; }
.ladder li span { white-space: nowrap; font-size: 14.5px; }
.rungs .mascot { right: -6px; bottom: 0; height: 96px; }
@media (min-width: 900px) { .rungs { padding-right: 0; } .rungs .mascot { right: -4px; height: 100px; } }
@media (min-width: 1240px) { .rungs .mascot { right: -92px; height: 210px; } }

/* ---------- Review round 28 Nov 2026 (2) ---------- */
/* Hero fits a laptop screen together with the trust cards */
@media (min-width: 900px) { .hero { padding: 34px 0 38px; } h1 { font-size: clamp(31px, 4.2vw, 50px); } .hero p.sub { margin-top: 12px; } .hero .btns { margin-top: 18px; } .hero .time { margin-top: 12px; } }
.trust ul { padding: 14px 0; }

/* Video row: third column with the mascot */
.ask { display: none; }
@media (min-width: 1040px) {
  .intro { grid-template-columns: 340px 1fr 200px; }
  .ask { display: grid; justify-items: center; gap: 10px; }
  .ask p { position: relative; margin: 0; background: var(--amber-bg); color: var(--ink); font-weight: 600; font-size: 15.5px; line-height: 1.5; padding: 12px 14px; border-radius: 16px; }
  .ask p::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; background: var(--amber-bg); transform: translateX(-50%) rotate(45deg); }
  .ask img { height: 250px; width: auto; }
}

/* Exam card: name badges */
.exams { display: none; }
@media (min-width: 860px) {
  .exams { position: absolute; right: 210px; top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .exams span { background: var(--white); color: var(--pink); font: 800 20px/1 var(--fd); padding: 16px 20px; border-radius: 14px; text-align: center; box-shadow: 0 4px 12px rgba(212, 61, 66, .12); }
  .exams span:nth-child(2), .exams span:nth-child(3) { color: var(--ink); }
}

/* Price tables take the teacher's colour: native = royal blue, Thai = violet, Filipino = teal */
[data-t="NAT"] { --tc: var(--royal); --tb: var(--blue-bg); --ts: #D8E6FB; }
[data-t="THA"] { --tc: var(--violet); --tb: var(--violet-bg); --ts: #E3DBFF; }
[data-t="PHL"] { --tc: var(--teal-d); --tb: var(--teal-bg); --ts: #CFEFEA; }
#result[data-t] h3 { color: var(--tc); }
#result[data-t] table.prices thead th { background: var(--tc); }
#result[data-t] table.prices tbody tr:nth-child(odd) td { background: var(--tb); }
#result[data-t] table.prices .p { color: var(--tc); }
#result[data-t] table.prices tbody tr:nth-child(2) td { background: #FFF2DD; } /* the 12-hour row most people start with */
table.matrix[data-t] thead th, table.matrix[data-t] thead th:first-child { background: var(--tc); }
table.matrix[data-t] tbody th { background: var(--ts); }
table.matrix[data-t] tbody tr:nth-child(even) td { background: var(--tb); }
.allbody h3 { background: var(--ice); }
#examtable table.matrix thead th, #examtable table.matrix thead th:first-child { background: var(--pink); }
#examtable table.matrix tbody th { background: #FFD9DA; }
#examtable table.matrix tbody tr:nth-child(even) td { background: var(--pink-bg); }

/* Real placement certificate in a phone frame */
.phone { position: relative; justify-self: center; width: min(320px, 82vw); border: 10px solid var(--ink); border-radius: 38px; background: var(--ink); box-shadow: 0 18px 40px rgba(11, 26, 68, .22); }
.phone::before { content: ''; position: absolute; left: 50%; top: 8px; width: 74px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .25); transform: translateX(-50%); z-index: 2; }
.phone .screen { border-radius: 28px; overflow: hidden; background: var(--white); padding-top: 22px; }
.phone img { width: 100%; height: auto; }
.phone .tag { position: absolute; right: -14px; top: 34px; z-index: 3; background: var(--sun); color: var(--ink); font: 700 13px/1 var(--fb); padding: 7px 10px; border-radius: 8px; transform: rotate(4deg); }

/* Free test showcase: a front card with the mascot and the real result sheet tilted behind it */
.showcase { position: relative; justify-self: center; width: min(430px, 92vw); height: 420px; }
.showcase .sheet { position: absolute; right: 0; top: 34px; width: 62%; background: var(--white); border-radius: 18px; overflow: hidden; transform: rotate(7deg); box-shadow: 0 16px 36px rgba(11, 26, 68, .18); }
.showcase .sheet img { width: 100%; height: auto; }
.showcase .front { position: absolute; left: 0; top: 0; width: 56%; height: 86%; border-radius: 26px; border: 8px solid var(--white); background: linear-gradient(160deg, var(--bright) 0%, var(--royal) 100%); box-shadow: 0 18px 40px rgba(11, 26, 68, .22); display: grid; align-items: end; justify-items: center; overflow: hidden; z-index: 2; }
.showcase .front img { height: 88%; width: auto; }
.showcase .chip2 { position: absolute; left: 12px; top: 12px; background: var(--white); color: var(--ink); font: 700 13px/1 var(--fb); padding: 7px 10px; border-radius: 999px; }
.showcase .tag { position: absolute; right: 4px; top: 6px; z-index: 3; background: var(--sun); color: var(--ink); font: 700 13px/1 var(--fb); padding: 7px 10px; border-radius: 8px; transform: rotate(5deg); }
@media (max-width: 480px) { .showcase { height: 360px; } }

/* Nothing may widen the page on phones: tilted or offset decorations are clipped by their own section */
html, body { overflow-x: clip; max-width: 100%; }
.band, .hero, .trust, footer { overflow-x: clip; }
@media (max-width: 480px) {
  .showcase { width: min(340px, 86vw); }
  .showcase .sheet { right: 6px; transform: rotate(5deg); }
  .showcase .tag { right: 10px; }
}

/* Video: play button over the poster so it reads as a video even when autoplay is blocked */
.vplay { position: absolute; inset: 0; width: 100%; border: 0; border-radius: 24px; background: rgba(11, 26, 68, .28); cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 12px; }
.vplay span { width: 84px; height: 84px; border-radius: 50%; background: var(--white); box-shadow: 0 8px 24px rgba(11, 26, 68, .3); position: relative; }
.vplay span::after { content: ''; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent var(--royal); }
.vplay b { background: var(--white); color: var(--ink); font: 700 15px/1 var(--fb); padding: 9px 14px; border-radius: 999px; }
.vid .btn { z-index: 2; }

/* Phones: long Thai phrases may wrap (a no-wrap phrase wider than the screen widened the whole page in
   in-app browsers), and the exam sticker sits in the top corner instead of over the text */
@media (max-width: 600px) {
  .nb { white-space: normal; display: inline; }
  .course .stick { top: 12px; right: 12px; bottom: auto; width: 76px; }
  .c-pink h3 { padding-right: 70px; }
}
html, body { overflow-x: hidden; }
main { overflow-x: hidden; }

/* Showcase v2 (owner, 28 Nov 2026): the result sheet is the tall piece, the mascot card is shorter in front */
.showcase { height: 440px; }
.showcase .sheet { width: 74%; top: 0; right: 0; transform: rotate(5deg); }
.showcase .front { width: 50%; height: 64%; top: auto; bottom: 0; }
.showcase .tag { top: -12px; right: 8px; }
@media (max-width: 480px) { .showcase { height: 350px; } .showcase .sheet { width: 74%; right: 6px; transform: rotate(4deg); } }

/* Showcase v3: the whole certificate (test data, owner 28 Nov 2026) */
.showcase { height: 500px; }
.showcase .sheet { width: 76%; }
.showcase .front { height: 54%; width: 46%; }
@media (max-width: 480px) { .showcase { height: 400px; } }

/* Showcase label: above the sheet (clear of the school logo), royal blue instead of yellow */
.showcase { margin-top: 44px; }
.showcase .tag { top: -40px; right: 6px; background: var(--royal); color: var(--white); transform: rotate(3deg); padding: 8px 12px; }
@media (max-width: 480px) { .showcase .tag { top: -40px; right: 10px; } }

.showcase .chip2 { white-space: nowrap; left: 8px; right: auto; font-size: 12px; padding: 6px 9px; }

/* English page: no course video yet (the video has Thai text) */
@media (min-width: 1040px) { .intro.novid { grid-template-columns: 1fr 200px; } }
@media (min-width: 820px) and (max-width: 1039px) { .intro.novid { grid-template-columns: 1fr; } }
html[lang="en"] h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.18; }
html[lang="en"] h2 { line-height: 1.2; }
