/* Hallmark · v2.0.0 · redesign: full · theme: brand (Munshi CI, kept) · genre: editorial · job: enrol, the action in the hero, beside each price and on every open start date
 * hero: Settled, two tracks 560px and 1fr with a 64px gap, the course name over the head, the locked circle and chat at 400px, about 80% of the text block · nav: logo with the course name, three links, one action · footer: the existing charcoal mast
 * signature: the officer's question and your answer in Malay, on the circle · sections: Hero · Principal (Ainur, a quote) · Outline (outcomes, four chapters as a numbered sequence) · Plans (three columns, no cards) · How to join (charcoal band) · Start dates · Questions · Footer
 * material: real: Ainur's portrait, six learner reviews from Ainur's Tutoroo profile (names and dates as shown there), prices, dates, the syllabus · pictures: the hero learner (Magnific stock), Ainur's portrait, a small-group class (Magnific stock) · absent: student numbers, logos */
@font-face { font-family: "Meow Script"; font-style: normal; font-weight: 400; font-display: swap; src: url("/brand/fonts/meow-script-latin-400-normal.woff2") format("woff2"); }
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V3 · weakest: V, the split hero is the brand's own locked unit; kept it and moved the variety into the teacher spread and the numbered syllabus */
/* Hallmark · waive 77 · the Ainur section is a byline with a small portrait · Ainur asked for a small photo, not a large one */
/* Hallmark · waive 79 · 192px between the hero and the next section is two 96px section paddings · Muhsin asked for one padding on every section */
/* Hallmark · waive 38iii · the hero copies the live munshi.my hero: Malay and Local in orange, once, in the hero (Muhsin, 25 Nov 2026) */
/* Hallmark · waive 24b · every gap is nudged so the visible letters, not the boxes, land on 16, 28, 40 and 64 · Muhsin measures the page on the letters */
/* Hallmark · waive 44c · the circle is centred on the text block; the answer bubble hangs below it · the circle and bubbles are a unit Muhsin locked */


/* Page tokens. Everything below reads these; the brand values come from /brand/tokens.
   Type: Newsreader for headings and figures, Montserrat for reading and controls. One scale, six steps. */
:root {
  --veil-dark: rgb(23 26 27 / .62); --veil-mid: rgb(23 26 27 / .45); --veil-light: rgb(23 26 27 / .12); /* the ink veil over a hero photo (Web brand rules, fade 3) */
  --mask-on: #000; --mask-on-light: #fff; /* mask channels, not colours: what a mask keeps visible */
  --font-display: "Newsreader", Georgia, serif;
  --font-sign: "Meow Script", cursive;
  --t-sign: 1.75rem; --lh-sign: 36px;   /* the learners' names on their quotes, like signatures (Muhsin, 18 Nov 2026) */
  --font-text: var(--mi-font-sans);
  /* FIXED sizes only, three sets: phone (up to 560), tablet (561 to 1199), laptop (1200 and up). Never a fluid size: every element shows a number from the scale (Muhsin, 18 Nov 2026) */
  --t-display: 2rem;      /* 32 phone · 40 tablet · 56 laptop: the hero head, once */
  --t-section: 1.75rem;   /* 28 phone · 36 tablet · 44 laptop: section heads, prices */
  --t-title: 1.25rem;     /* 20 phone · 24 tablet and laptop: card, plan, chapter and step names, the quote, the hero course line on laptop */
  --t-lead: 1.125rem;     /* 18 phone · 20 tablet and laptop: lead sentences, hero facts, questions, buttons */
  --t-body: 1rem;         /* 16 phone · 17 tablet and laptop: all reading text */
  --t-small: 0.875rem;    /* 14 everywhere: labels, notes, tags, nav */
  --bg: var(--mi-white);   /* the main ground: white (Muhsin, 18 Nov 2026) */
  --cream: var(--mi-paper); /* brand Card #F8F6F2: every card, and the decision sections on course pages (Muhsin, 25 Nov 2026: replaces the web-only ivory) */
  --ink: var(--mi-ink);
  --ink-soft: var(--mi-ink-soft);
  --line: color-mix(in srgb, var(--mi-ink-soft) 22%, transparent); /* hairlines in the soft tone, not a separate beige */
  --accent: var(--mi-orange);
  --accent-text: var(--mi-orange-text);
  --accent-hover: color-mix(in srgb, var(--mi-orange) 90%, var(--mi-ink)); /* orange, a touch deeper on hover: no extra colour */
  --dark: var(--mi-ink); /* four page colours: ink is the dark ground, for the footer and for How to Join (Muhsin, 18 Nov 2026) */
  --on-dark: var(--mi-cream);
  --on-dark-soft: var(--mi-on-dark-soft);
  --line-dark: var(--mi-line-dark);
  --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --max: 1280px;
  --pad: 20px;            /* 20 phone · 40 tablet · 64 laptop */
  --col-gap: var(--space-lg);  /* 24 phone · 40 tablet · 64 laptop */
  --section: 48px; /* every section and the footer, top and bottom alike: 48 phone · 64 tablet · 64 laptop (HelloTalk's balance, 18 Nov 2026) */
  --head-gap: var(--space-xl);
  --card-pad: 20px; /* one inner padding for every card (chapters, plans, quotes): 20 phone · 24 tablet · 32 laptop (Muhsin, 18 Nov 2026) */
  /* spacing measured on the letters, every width: title → sentence 28, head (or a lone title) → content 40. The values below are the box gaps that land the letters there. */
  --g-title: 12px; --g-head: 32px; --g-title-only: 29px;
  /* LINE SPACING, one per size, fixed px on the 4px grid (Muhsin, 18 Nov 2026). Single-line pills (buttons, tags, prices) sit at 1 */
  --lh-display: 40px; --lh-section: 36px; --lh-title: 28px; --lh-lead: 28px; --lh-body: 26px; --lh-small: 20px; /* phone: 32/40 · 28/36 · 20/28 · 18/28 · 16/26 · 14/20 */
  --hero-a: 18px; --hero-b: 18px; --hero-c: 36px; /* hero gaps on the letters: 28 between the text lines (course line, headline, sentence), 40 to the buttons, at every width (Muhsin, 18 Nov 2026) */
  --fade: 300px; /* every Paper-into-white fade runs the same 300 px, whatever the section's height (Muhsin, 25 Nov 2026) */
  --radius: 28px;
  --radius-in: 16px;
}

@media (min-width: 561px) { :root { --lh-display: 48px; --lh-section: 44px; --lh-title: 32px; --lh-lead: 32px; --lh-body: 28px; --hero-a: 19px; --hero-b: 15px; --hero-c: 35px; --t-display: 2.5rem; --t-section: 2.25rem; --t-title: 1.5rem; --t-lead: 1.25rem; --t-body: 1.0625rem; --pad: 40px; --col-gap: var(--space-xl); --section: 64px; --head-gap: var(--space-2xl); --g-title: 7px; --g-head: 31px; --g-title-only: 24px; --t-sign: 2.25rem; --lh-sign: 44px; --card-pad: 24px; } }
@media (min-width: 1200px) { :root { --lh-display: 64px; --lh-section: 52px; --t-display: 3.5rem; --t-section: 2.75rem; --pad: 64px; --col-gap: var(--space-2xl); --section: 64px; --card-pad: 32px; --g-title: 5px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-body)/var(--lh-body) var(--font-text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--mi-focus); outline-offset: 3px; border-radius: 4px; }
.foot :focus-visible, .sticky :focus-visible { outline-color: var(--mi-white); }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 450; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h1 { font-size: var(--t-display); line-height: var(--lh-display); }
h2 { font-size: var(--t-section); line-height: var(--lh-section); color: var(--accent-text); } /* every section title in text orange, one treatment for all (Muhsin, 18 Nov 2026) */
h3 { font-size: var(--t-title); line-height: var(--lh-title); }
.lead { font-size: var(--t-lead); line-height: var(--lh-lead); color: var(--ink-soft); max-width: 40ch; text-wrap: balance; } /* balanced lines, no short last line */
.small { font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-soft); }

section { padding-block: var(--section); }
/* grounds (Muhsin, 18 Nov 2026, like HelloTalk): white is the main ground; cream marks only the hero and the plans, switching in suddenly; one left-to-right fade, behind Ainur's photo. Fades only ever go between cream and white. */
.cream { background: var(--cream); }
.head { display: grid; align-content: start; gap: var(--g-title); margin-bottom: var(--g-head); }
.head:not(:has(.lead)) { margin-bottom: var(--g-title-only); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

/* Controls: orange moves forward (ink on orange, 5.6:1), the outline is the quiet option */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border-radius: 999px; border: 2px solid transparent; font: 700 var(--t-lead)/1 var(--font-text); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
/* one orange button everywhere: ink text. White on orange is only 3.4:1 and fails at small sizes, ink is 6:1 at every size (Muhsin, 15 Nov 2026) */
.btn--brand { background: var(--accent); color: var(--ink); }
.btn--brand:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--mi-cream); }
.btn--quiet { border-color: var(--line); color: var(--ink); }
.btn--quiet:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 var(--space-lg); font-size: var(--t-small); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* Nav */
.top { position: sticky; top: 0; z-index: 30; background: var(--mi-white); border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); } /* white bar over the cream hero (Muhsin, 15 Nov 2026) */
.top__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: 72px; }
.top__brand { display: flex; align-items: center; gap: var(--space-md); min-width: 0; text-decoration: none; }
.top__brand img { height: 34px; width: auto; flex: none; }
.top__nav { display: flex; align-items: center; gap: var(--space-xl); font-size: var(--t-small); line-height: var(--lh-small); font-weight: 600; }
.top__nav a:not(.btn) { text-decoration: none; }
.top__nav a:not(.btn):hover { color: var(--accent-text); }
.top__nav .btn { min-height: 44px; padding: 0 var(--space-lg); font-size: var(--t-small); }
@media (max-width: 980px) { .top__nav a:not(.btn) { display: none; } }

/* Hero: the head and the locked circle unit */
/* the hero sits on brand paper and fades into the cream of the course outline, like HelloTalk, so there is no hard edge between them */
.cover { background: linear-gradient(to bottom, var(--cream) 0%, var(--cream) 55%, var(--bg) 100%); } /* cream hero fading into the white of the course outline: no hard edge */
.cover-end { background: linear-gradient(to bottom, var(--bg) 0%, var(--cream) 45%, var(--cream) 100%); } /* the hero in reverse: the questions fade from white into cream before the footer */
.hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-2xl); row-gap: var(--space-xl); align-items: center; }
.hero__text { grid-column: 1; }
@media (min-width: 1200px) { .hero__grid { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); } }
.hero__visual-col { grid-column: 2; display: grid; justify-items: center; }
@media (min-width: 1200px) { .hero h1 span { display: block; white-space: nowrap; } }
/* the course name: second only to the headline, and tied to it */
/* the course line sits exactly midway between the headline and the facts, measured on the visible letters: the +2/+1 make up for the headline's descenders */
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-xl); }
/* three facts, one line each, like Cambly's strip (Muhsin, 18 Nov 2026): a row on laptop, a centred stack on phones */
/* hero text, second take (Muhsin, 18 Nov 2026): the course name first in ink, the promise in orange, then one plain sentence like HelloTalk's */
.hero__course { font: 600 var(--t-lead)/var(--lh-lead) var(--font-text); color: var(--ink); margin-bottom: var(--hero-a); }
.hero h1 { color: var(--accent-text); margin-bottom: var(--hero-b); }
.hero__lead { font: 400 var(--t-lead)/var(--lh-lead) var(--font-text); color: var(--ink-soft); max-width: 34ch; text-wrap: balance; }
.hero__cta { margin-top: var(--hero-c); }
@media (max-width: 560px) { .hero__course { font-size: var(--t-body); line-height: var(--lh-body); } .hero__lead { margin-inline: auto; } }
.facts { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font: 450 var(--t-lead)/var(--lh-lead) var(--font-display); }
.facts li { white-space: nowrap; }
@media (min-width: 1200px) { .facts { column-gap: 0; } .facts li + li::before { content: "·"; margin: 0 var(--space-sm); color: var(--ink-soft); } } /* laptop: one row with a dot between facts, so three long facts don't run together */
@media (max-width: 1199px) { .facts { flex-direction: column; } } /* phones and tablets: a stack, one fact per line */
/* tablet hero rhythm, measured on the letters: 28 around the course line, 40 from the facts to the buttons (as on phones) */
@media (min-width: 561px) and (max-width: 1199px) {
}
/* desktop hero ratio: the headline was 3x everything under it, so the rest read as tiny. Course line and fact titles step up to the title size,
   fact notes to body size: headline to the next size is 2 to 1, like Babbel and Cambly (Muhsin, 15 Nov 2026) */
@media (min-width: 1200px) {
  /* 40 between the four groups (headline, course, facts, buttons), measured on the letters at 1440 */
}
@media (min-width: 1200px) { .hero__grid { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); } }
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__text, .hero__visual-col { grid-column: 1; }
  .hero__visual-col { justify-items: center; }
}

/* Hero visual: circle and both bubbles are one locked unit. Everything inside is sized
   in % or cqw of the circle, so the bubbles keep their place at every screen size. */
.hero__visual { position: relative; width: min(100%, 400px); aspect-ratio: 1; container-type: inline-size; }
.orb { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; } /* no ring: orange is for actions (Muhsin, 18 Nov 2026) */
.orb img { width: 100%; height: 100%; object-fit: cover; }
.chat { position: absolute; inset: 0; pointer-events: none; }
/* LOCKED (Muhsin, Nov 2026): the chat bubbles are a light visual aid, not information. They stay small (12 / 11 on phones) and scale with the circle; they sit outside the type scale on purpose */
.msg { position: absolute; width: max-content; padding: 2.8cqw 3.6cqw; border-radius: 4.5cqw; font: 600 var(--t-small)/var(--lh-small) var(--font-text); filter: drop-shadow(0 10px 14px color-mix(in srgb, var(--mi-shadow-ink) 55%, transparent)); }
.msg::after { content: ""; position: absolute; bottom: 0; width: 5.9cqw; height: 5cqw; background: inherit; }
.msg small { display: block; font: italic 400 var(--t-small)/1 var(--font-text); margin-bottom: 1.4cqw; }
.msg--q { right: -9%; top: 55%; max-width: 68%; background: var(--mi-white); color: var(--ink); border-bottom-right-radius: 1cqw; }
.msg--q::after { right: -4.1cqw; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.msg--q small { color: var(--ink-soft); }
.msg--a { right: -9%; top: 80%; max-width: 68%; background: var(--mi-sun); color: var(--ink); border-bottom-left-radius: 1cqw; }
@media (max-width: 560px) { .msg--q { top: 50%; } } @media (max-width: 380px) { .msg--q { top: 40%; } } /* bubbles at 14 on phones: lift the officer's so the two never touch */
.msg--a::after { left: -4.1cqw; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* Who you'll learn from: one centred column, her face, her name, her approach, then three learners' words (Muhsin, 18 Nov 2026) */
.teacher { text-align: center; }
.teacher .head { justify-items: center; margin-bottom: calc(var(--g-title-only) + 2px); } /* every gap here measured on the letters: 40 between groups, 28 face → name, 16 name → role */
.teacher__face { display: block; width: 160px; height: 160px; margin: 0 auto 18px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.teacher__role { margin-top: 1px; color: var(--ink-soft); } /* name → role 16 on the letters */
.teacher__text { max-width: 60ch; margin: 29px auto 0; display: grid; gap: 17px; } /* 28 between paragraphs on the letters */
.teacher__text p { text-wrap: balance; } /* every line about the same length, no short last line */
.quotes { margin-top: 36px; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, var(--mask-on) 8%, var(--mask-on) 92%, transparent); mask-image: linear-gradient(to right, transparent, var(--mask-on) 8%, var(--mask-on) 92%, transparent); text-align: left; } /* six learners glide past, slowly; the set is doubled so the loop has no seam */
.quotes__track { display: flex; width: max-content; animation: quotes-glide 72s linear infinite; }
.quotes:hover .quotes__track, .quotes:focus-within .quotes__track { animation-play-state: paused; }
@keyframes quotes-glide { to { transform: translateX(-50%); } }
.quotes figure { width: calc(220px + 2 * var(--card-pad)); flex: none; margin: 0 var(--space-lg) 0 0; display: flex; flex-direction: column; justify-content: space-between; gap: calc(var(--space-lg) + 3px); background: var(--cream); border-radius: var(--radius); padding: var(--card-pad); } /* the quote and the name are two groups: 40 apart on the letters */
@media (prefers-reduced-motion: reduce) { .quotes { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } .quotes__track { animation: none; } .quotes figure[aria-hidden] { display: none; } }
.quotes blockquote { margin: 0; }
.quotes blockquote p { font: italic 450 var(--t-lead)/var(--lh-lead) var(--font-display); text-wrap: balance; } /* the lead step: the quote supports Ainur, it does not shout */ /* the learner's own voice, set in italic */
.quotes figcaption { color: var(--ink-soft); font-size: var(--t-small); line-height: var(--lh-small); } /* the month under the name: the small step */
.quotes figcaption b { display: flex; align-items: flex-start; gap: 14px; font: 400 var(--t-sign)/var(--lh-sign) var(--font-sign); color: var(--ink); } /* the learner's name in Meow Script. Its letters are small for its size: 24 was unreadable, 44 too jumbo; uses the section step's phone/tablet values, 28 / 36 / 36 */
/* country flag in a small circle, top right of the name: each learner's real country, given by Muhsin (18 Nov 2026) */
.flag { flex: none; width: 0.75em; height: 0.75em; margin-top: 0.1em; border-radius: 50%; background: center / cover no-repeat; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mi-ink) 12%, transparent), 0 2px 4px color-mix(in srgb, var(--mi-ink) 20%, transparent); } /* sized from the name, as in the reference: flag 0.75 of the name's size, gap a little less than the flag, top-aligned with a soft shadow */
/* Flags: human-made SVGs from Freepik's rounded "Country Flags" pack on Flaticon, licensed through Magnific Premium (see assets/img/flags/SOURCE.md). Never draw or generate a flag (Muhsin, 25 Nov 2026). */
.flag--at { background-image: url("../img/flags/at.svg"); } .flag--au { background-image: url("../img/flags/au.svg"); } .flag--be { background-image: url("../img/flags/be.svg"); } .flag--ca { background-image: url("../img/flags/ca.svg"); } .flag--de { background-image: url("../img/flags/de.svg"); } .flag--dk { background-image: url("../img/flags/dk.svg"); } .flag--en { background-image: url("../img/flags/en.svg"); } .flag--gb { background-image: url("../img/flags/gb.svg"); } .flag--hk { background-image: url("../img/flags/hk.svg"); } .flag--hu { background-image: url("../img/flags/hu.svg"); } .flag--in { background-image: url("../img/flags/in.svg"); } .flag--is { background-image: url("../img/flags/is.svg"); } .flag--it { background-image: url("../img/flags/it.svg"); } .flag--jp { background-image: url("../img/flags/jp.svg"); } .flag--kw { background-image: url("../img/flags/kw.svg"); } .flag--my { background-image: url("../img/flags/my.svg"); } .flag--no { background-image: url("../img/flags/no.svg"); } .flag--sg { background-image: url("../img/flags/sg.svg"); } .flag--us { background-image: url("../img/flags/us.svg"); }
@media (min-width: 561px) and (max-width: 1199px) { .teacher__face { margin-bottom: 19px; } .teacher .head { margin-bottom: calc(var(--g-title-only) + 3px); } }
@media (min-width: 1200px) { .teacher__face { width: 200px; height: 200px; } }
@media (max-width: 560px) { .teacher__face { width: 128px; height: 128px; margin-bottom: 20px; } .teacher .head { margin-bottom: calc(var(--g-title-only) + 1px); } .teacher__text { gap: 18px; } .quotes figure { width: calc(200px + 2 * var(--card-pad)); margin-right: var(--space-md); } .quotes { margin-top: 36px; } }

/* Outline */
.label { font: 600 var(--t-small)/var(--lh-small) var(--font-text); color: var(--ink-soft); letter-spacing: 0; margin: var(--space-2xl) 0 var(--space-md); }
.outline__head .label { margin-top: var(--space-xl); }
/* ONE SPLIT PATTERN for the text-and-picture sections (Muhsin, 18 Nov 2026, like HelloTalk: the layout repeats, the picture changes). Same circle as the hero and Ainur; sides alternate */
.split__pic { display: none; }
@media (min-width: 981px) {
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-2xl); align-items: center; }
  .split--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--flip .split__pic { order: -1; }
  .split__pic { display: grid; justify-items: center; }
  .split__pic .orb { position: relative; inset: auto; width: min(100%, 400px); aspect-ratio: 1; }
}
@media (min-width: 1200px) { .split { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); } .split--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 640px); } }
@media (max-width: 980px) { .split { display: flex; flex-direction: column; } .split__pic { order: 2; display: grid; justify-items: center; margin-top: var(--space-xl); } .split__pic .orb { position: relative; inset: auto; width: min(100%, 300px); aspect-ratio: 1; } }
.split__text h2 { margin-bottom: var(--g-title-only); }
#who .head { justify-items: center; text-align: center; } /* a centred row takes a centred head */
#outcomes .ticks { grid-template-columns: minmax(0, 1fr); }
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--col-gap); }
.ticks li { position: relative; padding-left: 36px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--mi-white); font: 700 var(--t-small)/24px var(--font-text); text-align: center; }
.chaps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); align-items: start; } /* each card keeps its own height: opening one never stretches its neighbour */
.chap { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto; align-content: start; column-gap: var(--space-lg); border-radius: var(--radius); padding: var(--card-pad); background: var(--cream); }
.chap > :not(.chap__pic) { grid-column: 1; }
/* each topic as a small photo in the same orange-ringed circle as the hero, Ainur and the class photo */
.chap__pic { grid-column: 2; grid-row: 1 / span 3; align-self: start; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; }
.chap__n { font-size: var(--t-small); line-height: var(--lh-small); font-weight: 600; color: var(--accent-text); margin-bottom: var(--space-xs); }
.chap h3 { margin-bottom: var(--space-sm); }
.chap__topics { color: var(--ink-soft); text-wrap: balance; } /* no one-word last line */
/* the full topic list from the syllabus, one tap away, like OKR's outline: the short line sums up the chapter, the list gives the detail */
.chap > .chap__more { grid-column: 1 / -1; margin-top: var(--space-md); }
.chap__more summary { display: inline-flex; align-items: center; gap: var(--space-xs); cursor: pointer; list-style: none; font: 600 var(--t-small)/var(--lh-small) var(--font-text); color: var(--accent-text); } /* a quiet control: the small step, like the chapter label above it */
.chap__more summary::-webkit-details-marker { display: none; }
.chap__more summary::after { position: static; margin-top: 0; content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.chap__more[open] > summary::after { margin-top: 0; transform: translateY(2px) rotate(-135deg); }
.chap__more ul { list-style: none; padding: 0; margin: var(--space-md) 0 0; columns: 2; column-gap: var(--space-lg); color: var(--ink-soft); } /* the list flows down each column, so a two-line topic never leaves its neighbour hanging */
.chap__more li { position: relative; padding-left: var(--space-md); break-inside: avoid; margin-bottom: var(--space-xs); }
.chap__more li::before { content: ""; position: absolute; left: 0; top: calc(var(--lh-body) / 2 - 2px); width: 5px; height: 5px; border-radius: 50%; background: var(--ink-soft); }
@media (max-width: 560px) { .chap__more ul { columns: 1; } }
@media (max-width: 980px) { /* tablets too: two chapter cards side by side left ~100px for the text at 768 */
  .ticks, .chaps { grid-template-columns: minmax(0, 1fr); }
  .chap__pic { grid-row: 1 / span 2; align-self: start; width: 80px; height: 80px; }
  .chap > .chap__topics { grid-column: 1 / -1; }
}
/* phones: the chapter photo sits above the text so every chapter title stays on one line, even at 360 */
@media (max-width: 560px) {
  .chap { display: flex; flex-direction: column; }
  .chap__pic { order: -1; width: 64px; height: 64px; margin-bottom: var(--space-md); align-self: flex-start; }
}


/* What People Are Saying: real Tutoroo reviews (all 5 stars), a short line from each in their own words; laptop 3 by 3, smaller screens swipe (Muhsin, 18 Nov 2026) */
#reviews .head { text-align: center; margin-bottom: calc(var(--g-title-only) + 11px); }
@media (max-width: 560px) { #reviews .head { margin-bottom: calc(var(--g-title-only) + 8px); } }
@media (min-width: 561px) and (max-width: 1199px) { #reviews .head { margin-bottom: calc(var(--g-title-only) + 12px); } } #reviews .head > * { margin-inline: auto; }
.reviews { overflow: hidden; margin-inline: calc(-1 * var(--pad)); -webkit-mask-image: linear-gradient(to right, transparent, var(--mask-on) 6%, var(--mask-on) 94%, transparent); mask-image: linear-gradient(to right, transparent, var(--mask-on) 6%, var(--mask-on) 94%, transparent); } /* a carousel, like the old quotes: the set glides past slowly, doubled so the loop has no seam (Muhsin, 18 Nov 2026) */
.reviews__track { display: flex; align-items: stretch; width: max-content; animation: quotes-glide 90s linear infinite; }
.reviews:hover .reviews__track, .reviews:focus-within .reviews__track { animation-play-state: paused; }
.review { flex: none; width: 360px; margin: 0 var(--space-lg) 0 0; display: flex; flex-direction: column; background: var(--cream); border-radius: var(--radius); padding: var(--card-pad); }
.review__stars { display: flex; gap: 4px; color: var(--mi-sun); margin-bottom: var(--space-md); }
.review__stars svg { width: 18px; height: 18px; fill: currentColor; }
.review h3 { margin-bottom: var(--space-xs); }
.review blockquote { margin: 0 0 29px; } /* quote → name 40 on the letters */
.review blockquote p { color: var(--ink-soft); }
.review figcaption { margin-top: auto; color: var(--ink-soft); font-size: var(--t-small); line-height: var(--lh-small); }
.review figcaption b { display: flex; align-items: flex-start; gap: 14px; font: 400 var(--t-sign)/var(--lh-sign) var(--font-sign); color: var(--ink); }
@media (max-width: 560px) { .review { width: 290px; margin-right: var(--space-md); } }
@media (prefers-reduced-motion: reduce) { .reviews { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: var(--pad); } .reviews__track { animation: none; } .review[aria-hidden] { display: none; } }

/* Plans: three columns on one surface, hairlines between, no cards */
/* plans as cards, the same family as the chapter cards: paper card on the white section */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); align-items: stretch; }
.plan { display: flex; flex-direction: column; border-radius: var(--radius); padding: var(--card-pad); background: var(--bg); border: 2px solid transparent; }
.plan--hero { border-color: var(--accent); }
.plan__rec { font-size: var(--t-small); font-weight: 600; line-height: 20px; height: 20px; color: var(--accent-text); margin-bottom: var(--space-xs); }
.plan__sub { margin-top: var(--space-xs); font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-soft); }
.plan__price { margin-top: var(--space-xl); font: 450 var(--t-section)/1 var(--font-display); letter-spacing: -0.01em; }
.plan__price small { font: 600 var(--t-small)/1 var(--font-text); letter-spacing: 0; margin-right: 4px; vertical-align: .9em; }
.plan__rate { margin-top: var(--space-xs); font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-soft); }
.plan__rate b { color: var(--ink); font-weight: 600; }
.plan__per { font: 400 var(--t-body)/1 var(--font-text); color: var(--ink-soft); letter-spacing: 0; margin-left: 4px; } /* what they pay each month is the big number; the total and the per-session rate sit under it */
.plan__rate + .plan__rate { margin-top: 0; }
.plan ul { margin: var(--space-lg) 0 var(--space-xl); display: grid; gap: var(--space-sm); } /* one simple line icon per kind of point, no rules (Muhsin, 18 Nov 2026) */
.plan li { display: flex; align-items: flex-start; gap: var(--space-sm); }
.plan .ico { flex: none; width: 20px; height: 20px; margin-top: calc((var(--lh-body) - 20px) / 2); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.plan__rate--session { font-style: italic; }
.plan__foot { margin-top: auto; display: grid; gap: var(--space-sm); }
.plan__note { font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-soft); text-align: center; }
@media (max-width: 900px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan__rec:empty { display: none; }
  .plan--hero { order: -1; }
}

/* How to join: part of the cream decision block, no longer a dark band */
.join .lead { color: var(--ink-soft); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-xl); }
.step { padding-top: var(--space-lg); border-top: 1px solid var(--line); }
.step__n { font: 450 var(--t-section)/1 var(--font-display); color: var(--ink); margin-bottom: var(--space-lg); }
.step h3 { margin-bottom: var(--space-sm); }
.step p { color: var(--ink-soft); max-width: 32ch; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Start dates: one panel, a toggle between the three plans, the dates of that plan, one Enrol Now (Muhsin, 18 Nov 2026) */
.picker { max-width: 640px; margin-inline: auto; background: var(--bg); border-radius: var(--radius); padding: var(--card-pad); display: grid; gap: 36px; text-align: left; } /* 40 between groups on the letters, 16 from a label to its control */
#picker-go { margin-top: 4px; }
.picker fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker__label { padding: 0; font-size: var(--t-small); line-height: var(--lh-small); font-weight: 600; color: var(--ink-soft); margin-bottom: 14px; }
.picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--cream); border-radius: 999px; padding: 4px; }
.seg label { cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--space-sm); border-radius: 999px; font: 600 var(--t-small)/1 var(--font-text); color: var(--ink-soft); text-align: center; white-space: nowrap; transition: background-color .15s, color .15s; }
.seg .short { display: none; }
.seg b { font-weight: inherit; }
.seg input:checked + span { background: var(--ink); color: var(--mi-white); }
.seg input:focus-visible + span, .dates-grid input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.picker__sum { margin-top: -20px; background: var(--cream); border-radius: var(--radius-in); padding: var(--space-md) var(--space-lg); }
.picker__price { color: var(--ink-soft); }
.picker__price b { font: 450 var(--t-title)/var(--lh-title) var(--font-display); color: var(--ink); margin-right: 2px; }
.picker__rate--session { font-style: italic; }
.picker__rate { font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-soft); }
.picker__facts { margin-top: var(--space-md); display: grid; gap: var(--space-xs); } /* one column: the second column jumped sideways between plans (Muhsin, 18 Nov 2026) */
@media (min-width: 561px) { .picker__sum { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: var(--space-lg); align-items: start; } .picker__sum .picker__facts { margin-top: 0; } } /* price left, facts right, at fixed columns so nothing moves when the plan changes */
.picker__facts li { display: flex; align-items: flex-start; gap: var(--space-sm); }
.picker__facts .ico { flex: none; width: 20px; height: 20px; margin-top: calc((var(--lh-body) - 20px) / 2); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.dates-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
.dates-grid--later { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dates-grid label { cursor: pointer; }
/* each date is a card with a radio ring, so it reads as something to tap (research, 18 Nov 2026: selectable cards show a radio marker and a visible border, NN/g: flat options need signifiers) */
.dates-grid span { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-sm); align-items: center; height: 100%; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-in); background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .15s; }
.dates-grid span::before { content: ""; grid-row: 1 / 3; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-soft); background: var(--bg); }
.dates-grid b, .dates-grid small { grid-column: 2; }
.dates-grid b { font-weight: 600; }
.dates-grid .seats { font-style: normal; color: var(--accent-text); font-weight: 600; }
.dates-grid small { font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-soft); }
.dates-grid label:hover span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dates-grid input:checked + span { background: var(--cream); box-shadow: inset 0 0 0 2px var(--ink); }
.dates-grid input:checked + span::before { box-shadow: inset 0 0 0 6px var(--ink); }
@media (max-width: 560px) { .dates-grid--later { grid-template-columns: minmax(0, 1fr); } }
.picker__group[hidden] { display: none; }
.dates--centre .head { text-align: center; margin-inline: auto; } .dates--centre .head > * { margin-inline: auto; }
.dates--centre .dates__note { margin-inline: auto; text-align: center; }
@media (max-width: 560px) { .seg .long { display: none; } .seg .short { display: inline; } }
.dates__note { margin-top: 33px; max-width: 60ch; color: var(--ink-soft); text-wrap: pretty; } /* a note under the dates: body size, never bigger than the rows it explains */
@media (max-width: 560px) { .dates__note { margin-top: 34px; } }

/* Questions */
/* per-section nudges so the letters (or the card edge) land on 40 below the head; measured at 375, 768, 1440 */
#outline .head, #plans .head, #dates .head { margin-bottom: calc(var(--g-head) + 4px); }
@media (max-width: 560px) { #plans .head { margin-bottom: calc(var(--g-head) + 3px); } #dates .head { margin-bottom: calc(var(--g-head) + 4px); } }
@media (min-width: 561px) and (max-width: 1199px) { #outcomes .split__text h2 { margin-bottom: calc(var(--g-title-only) + 2px); } }
.faq__head { grid-column: 1 / span 4; }
.faq__list { grid-column: 6 / span 7; } /* no rules between questions (Muhsin, 18 Nov 2026): the spacing separates them */
.faq__list details:first-child summary { --q-pt: 0px; } /* the first question starts level with the title */
@media (min-width: 901px) { .faq__list { padding-top: 9px; } } /* side by side, the first question drops to the title's baseline; the title keeps the section's top line */
@media (min-width: 1200px) { .faq__list { padding-top: 15px; } }
summary::-webkit-details-marker { display: none; }
.faq__list summary { --q-pt: var(--q-gap, 16px); list-style: none; cursor: pointer; position: relative; padding: var(--q-pt) var(--space-xl) 12px 0; font: 450 var(--t-lead)/var(--lh-lead) var(--font-display); } /* a question is a row, not a heading: lead size, like HelloTalk's 18 to 20 (Muhsin, 18 Nov 2026) */
summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: calc(var(--space-xs) * -1); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__list summary::after { top: calc(var(--q-pt) + var(--lh-lead) / 2 - 7px); margin-top: 0; } /* the arrow sits on the question's first line */
.faq__list details[open] > summary::after { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }
.faq__list details p { padding: 0 var(--space-xl) 12px 0; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 900px) { .faq__head, .faq__list { grid-column: 1 / -1; } .faq__head { margin-bottom: 28px; } }
@media (max-width: 560px) { .faq__list { --q-gap: 18px; } .faq__head { margin-bottom: 30px; } } /* 40 on the letters between questions and under the title */
.faq__list details:last-child:not([open]) summary, .faq__list details:last-child p { padding-bottom: 0; } /* the section ends on its padding, not padding plus a row gap */

/* Footer */
/* How to Join: the one sun-yellow section, the page's turn from reading to acting (Muhsin, 18 Nov 2026). All ink: title, text, lines and button. */
.act { background: var(--mi-sun); --ink-soft: var(--mi-ink); --line: var(--mi-ink); }
.act h2 { color: var(--ink); } /* on sun, everything is ink (Muhsin, 18 Nov 2026) */
.act .step { border-top: 0; padding-top: 0; }
#join .head { margin-bottom: calc(var(--g-head) + 3px); }
@media (max-width: 560px) { #join .head { margin-bottom: calc(var(--g-head) + 2px); } }
.act .step__n { margin-bottom: var(--step-n, 0px); } .act .step h3 { margin-bottom: var(--step-h, 6px); } /* number → name and name → text both 16 on the letters */
@media (max-width: 560px) { .act { --step-n: 5px; --step-h: 2px; } }
@media (min-width: 561px) and (max-width: 1199px) { .act { --step-n: 2px; } }
.act .steps { row-gap: calc(var(--space-xl) - 5px); } /* short and simple: no rules, no button; the dates follow right below */
/* FOOTER: one footer for every Munshi Institute website (Muhsin, 25 Nov 2026).
   Ink ground (the only dark ground). Brand block: white logo, tagline in the display serif in bright orange (bright orange reads on ink; text orange is for light grounds), one-line about.
   Then three columns: Address, Connect, Quick Links. Base row: the legal line (Titian Munshi Sdn. Bhd. + registration) and the social icons.
   Laptop: brand + three columns in one row. Tablet: brand on its own row, three columns under it. Phone: one column.
   Sizes from the scale only: tagline at the title step, labels at the body step (600), everything else at the small step. On the letters: 16 inside a group, 40 between groups. */
.foot { background: var(--dark); color: var(--on-dark-soft); padding: 40px 0 38px; }
@media (max-width: 560px) { .foot { padding: 28px 0 26px; } } /* phone: 28 on the letters top and bottom; 40 felt too much (Muhsin, 25 Nov 2026) */ /* 40 on the letters at the top and the bottom, every width (Muhsin, 25 Nov 2026) */
.foot__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--space-xl) - 8px); } /* 40 on the letters between groups */
@media (min-width: 561px) { .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); } .foot__brand { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .foot__grid { grid-template-columns: minmax(0, 440px) repeat(3, minmax(0, 1fr)); column-gap: var(--space-2xl); } .foot__brand { grid-column: auto; } .foot__col { margin-top: -7px; } } /* laptop: the column labels' letters start on the logo's top edge */
.foot__brand img { height: 34px; width: auto; }
.foot .tagline { color: var(--accent); font: 450 var(--t-title)/var(--lh-title) var(--font-display); margin-top: 11px; } /* 16 on the letters under the logo */
.foot__about { font-size: var(--t-small); line-height: var(--lh-small); margin-top: 4px; max-width: 46ch; } /* 16 on the letters under the tagline */
.foot__label { font: 600 var(--t-body)/var(--lh-body) var(--font-text); color: var(--on-dark); margin: 0 0 4px; } /* 16 on the letters to the content */
.foot address { font-style: normal; font-size: var(--t-small); line-height: var(--lh-small); }
.foot__links { margin-top: -2px; } /* keeps 16 on the letters under the label */
.foot__links a { display: flex; align-items: center; min-height: 28px; font-size: var(--t-small); line-height: var(--lh-small); text-decoration: none; } /* 28-tall rows on every device: 16 on the letters between links. Never taller rows on touch screens: 44-tall rows turned the list into gaps on phones (Muhsin, 25 Nov 2026) */
.foot a { transition: color .2s; }
.foot a:hover { color: var(--accent); text-decoration: none; } /* hover: orange, never an underline (Muhsin, 25 Nov 2026) */
.foot__legal { font-size: var(--t-small); line-height: var(--lh-small); margin-top: 10px; } /* 16 on the letters under the about line */
.foot__legal b, .foot__legal span { display: block; font-weight: 600; }
.foot__legal b { color: var(--on-dark); }
.foot__legal span { color: var(--accent); } /* company name, then its registration in brand orange, like Pandai's footer */
.foot__social { display: flex; gap: 0; margin: 0 0 -12px -8px; } /* 16 on the letters under the registration; the first glyph on the brand block's left edge */
.foot__social a { display: grid; place-items: center; width: 36px; height: 44px; border-radius: 50%; color: var(--accent); transition: color .2s; }
.foot__social a:hover { color: var(--on-dark); } /* icons are orange already, so hover lightens them */
.foot__social svg { width: 20px; height: 20px; fill: currentColor; }
.foot__social .ig { fill: none; stroke: currentColor; stroke-width: 1.8; } .foot__social .ig .dot { fill: currentColor; stroke: none; }
@media (max-width: 560px) { .foot__grid { grid-template-columns: minmax(0, 1fr); } .foot__links { margin-bottom: -3px; } } /* phone: one column; brand, Address, Connect, Quick Links each on its own row (Muhsin, 25 Nov 2026) */ /* phone: brand, address, then Connect and Quick Links side by side */
@media (prefers-reduced-motion: reduce) { .foot a, .foot__social a { transition: none; } }
.foot__copy { font-size: var(--t-small); line-height: var(--lh-small); color: var(--on-dark-soft); opacity: .7; text-align: left; margin-top: 27px; } /* the last line, on the left edge under everything, quieter than the rest */
@media (min-width: 1200px) { .foot__copy { margin-top: 34px; } } /* 40 on the letters under the tallest group at every width */

/* Sticky bar (phones) */
.sticky { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; display: none; align-items: center; justify-content: space-between; gap: var(--space-sm); background: var(--ink); color: var(--mi-cream); border-radius: 20px; padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-lg); box-shadow: 0 16px 40px -16px var(--mi-shadow-ink); transform: translateY(140%); transition: transform .25s; }
.sticky.show { transform: none; }
.sticky p { font-size: var(--t-small); line-height: var(--lh-small); }
.sticky b { display: block; font-size: var(--t-body); line-height: var(--lh-body); color: var(--mi-white); }
.sticky .btn { min-height: 44px; padding: 0 var(--space-lg); font-size: var(--t-small); white-space: nowrap; flex: none; }
@media (max-width: 760px) { .sticky { display: flex; } body:has(.sticky) { padding-bottom: 88px; } } /* room for the sticky bar only on pages that have one */
@media (prefers-reduced-motion: reduce) { .sticky { transition: none; } }

/* Phones: one calm scale. Bar and logo come down, the two hero actions share one row at body size,
   the three facts stay a row of three, each set on two lines so they match line for line. */
@media (max-width: 560px) {
  .top__in { height: 60px; }
  .top__brand img { height: 22px; }
  .top__nav .btn { min-height: 36px; padding: 0 var(--space-sm); font-size: var(--t-small); }
  .sticky .btn { min-height: 44px; font-size: var(--t-small); }
  /* one centre line: text, actions, facts and the circle share the middle of the screen */
  .cover { padding-top: calc(var(--space-xl) - 1px); }
  /* course outline on the same rhythm, on the letters: 64 under the section top, title → sentence 28, 40 between groups, label → its content 16 */
  #outline { padding-top: calc(var(--section) - 2px); }
  #outline > .wrap > .label { margin-top: calc(var(--space-2xl) - 31px); }
  #outline .label { margin-bottom: calc(var(--space-md) - 5px); }
 /* 40 under the bar, as Babbel and HelloTalk do */
  /* plans on the same rhythm, on the letters: 64 under the section top, title → sentence 28, sentence → first card 40;
     inside a card: 16 within a group (label, name, line under it; price and rate; button and note), 40 between groups */
  #plans { padding-top: calc(var(--section) - 3px); }
  .plan__sub { margin-top: calc(var(--space-xs) - 7px); }
  .plan__price { margin-top: calc(var(--space-xl) - 9px); }
  .plan__rate { margin-top: calc(var(--space-xs) - 5px); }
  .plan ul { margin-top: calc(var(--space-xl) - 7px); }
  .plan__foot { gap: calc(var(--space-sm) - 2px); }
  .hero__text { text-align: center; }
  .hero__visual-col .hero__visual { width: min(calc(100% / 1.18), 300px); } /* circle plus the bubbles' 9% overhang on each side never passes the content edge */
  .lead { font-size: var(--t-body); line-height: var(--lh-body); }
  .hero__cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn:not(.btn--sm):not(.top__nav .btn):not(.sticky .btn) { min-height: 48px; font-size: var(--t-lead); } /* one button on phones: 18 bold, 48 tall, everywhere; the nav and sticky bar keep the small one */
  .hero__cta .btn { padding: 0 var(--space-md); }
  .facts { flex-direction: column; align-items: center; gap: var(--space-xs); }
  /* one rhythm: 16 inside a group (label and headline), 40 between groups (text, actions, facts, picture) */
    .hero__grid { row-gap: var(--space-xl); }
}


/* ===== munshi.my additions (same system, new arrangements) ===== */
.feature__label { font: 600 var(--t-small)/var(--lh-small) var(--font-text); color: var(--accent-text); margin-bottom: 4px; }
.feature__btn { margin-top: var(--space-xl); }
.ways .step { border-top: 0; padding-top: 0; }
.ways .step__n { margin-bottom: var(--step-n, 0px); } .ways .step h3 { margin-bottom: var(--step-h, 6px); }
@media (max-width: 560px) { .ways { --step-n: 5px; --step-h: 2px; } }
@media (min-width: 561px) and (max-width: 1199px) { .ways { --step-n: 2px; } }
.closer { background: var(--cream); border-radius: var(--radius); padding: var(--space-2xl) var(--card-pad); text-align: center; }
.closer .lead { margin: var(--g-title) auto 0; max-width: 34ch; color: var(--ink-soft); }
.closer__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); margin-top: var(--space-xl); }
#pr-course .ticks { grid-template-columns: minmax(0, 1fr); }
/* home: nudges so every gap lands on the letters (28 / 40), measured at 375, 768, 1440 */
#who .head { margin-bottom: calc(var(--g-head) + 4px); }
.ways .head { margin-bottom: calc(var(--g-head) + 3px); }
@media (max-width: 760px) { .ways .steps { row-gap: calc(var(--space-xl) - 6px); } }
#pr-course h2 { margin-bottom: calc(var(--g-title-only) + 9px); }
@media (max-width: 560px) { #pr-course h2 { margin-bottom: calc(var(--g-title-only) + 7px); } .feature__btn { margin-top: 39px; } }
@media (min-width: 561px) { .feature__btn { margin-top: 37px; } }
@media (max-width: 560px) { .hero--home .hero__course { margin-bottom: calc(var(--hero-a) - 2px); } .hero--home h1 { margin-bottom: calc(var(--hero-b) - 7px); } }
@media (min-width: 561px) and (max-width: 1199px) { .hero--home .hero__course { margin-bottom: calc(var(--hero-a) - 3px); } }
@media (min-width: 561px) and (max-width: 1199px) { #pr-course h2 { margin-bottom: calc(var(--g-title-only) + 11px); } }
@media (min-width: 1200px) { #pr-course h2 { margin-bottom: calc(var(--g-title-only) + 10px); } .hero--home .hero__course { margin-bottom: calc(var(--hero-a) - 3px); } .hero--home h1 { margin-bottom: calc(var(--hero-b) - 1px); } .ways .head h2 { margin-bottom: 1px; } }
@media (max-width: 560px) { .closer__cta { flex-direction: column; } .closer__cta .btn { width: 100%; } } /* on phones the two buttons stack at one width */

/* ===== munshi.my home (reskin of the live page, 18 Nov 2026) ===== */
#world .head, #paths .head { text-align: center; justify-items: center; } #world .head > *, #paths .head > * { margin-inline: auto; }
.flags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md); }
.flags .flag { display: block; width: 48px; height: 48px; margin: 0; }
@media (max-width: 560px) { .flags { gap: var(--space-sm); } .flags .flag { width: 40px; height: 40px; } }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.pillar { background: var(--cream); border-radius: var(--radius); padding: var(--card-pad); }
.pillar h3 { margin-bottom: var(--space-xs); }
.pillar p { color: var(--ink-soft); }
@media (max-width: 900px) { .pillars { grid-template-columns: minmax(0, 1fr); } }
.paths .chap { background: var(--bg); list-style: none; } /* white cards on the cream decision section */
.paths { list-style: none; margin: 0; padding: 0; }
.path__link { grid-column: 1 / -1; margin-top: var(--space-md); display: inline-flex; align-items: center; gap: 6px; justify-self: start; font: 600 var(--t-small)/var(--lh-small) var(--font-text); color: var(--accent-text); text-decoration: none; }
.path__link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.path__link:hover { text-decoration: underline; }
@media (max-width: 760px) { .chaps { grid-template-columns: minmax(0, 1fr); } }
.pillars { margin-top: var(--space-xl); } /* the three ideas sit under the flags as one group, 40 apart */
@media (max-width: 560px) { .hero--home h1 { margin-bottom: var(--hero-b); } }
#world .head .lead, #paths .head .lead { margin-top: 10px; } /* both titles carry descenders (p, y, g): 28 on the letters */
@media (max-width: 560px) { #world .head .lead, #paths .head .lead { margin-top: 7px; } }
@media (min-width: 561px) and (max-width: 1199px) { #world .head .lead, #paths .head .lead { margin-top: 9px; } }
.pillars { margin-top: 45px; }
#world .head { margin-bottom: calc(var(--g-head) + 1px); }
.pillar p { text-wrap: pretty; } /* no lone last word */
@media (max-width: 560px) { .flags { gap: 10px; } .flags .flag { width: 36px; height: 36px; } } /* 13 flags: 7 + 6 on a phone, never one alone */
@media (min-width: 561px) and (max-width: 1199px) { .flags { gap: 12px; } .flags .flag { width: 40px; height: 40px; } }


/* QUESTION CARDS (munshi.my Home, Muhsin 25 Nov 2026): from the live site's FAQ. One centred column of cream cards on the white ground, no panel around them.
   Question at the lead step (Newsreader 450), a bright orange ring with a plus on the first line that turns to a cross when open, the answer inside the same card at the body step.
   Card padding is the one card token; 16 between cards; radius is the card radius. */
.qcards { max-width: 840px; margin-inline: auto; display: grid; gap: var(--space-md); }
.qcards details { background: var(--cream); border-radius: var(--radius); }
.qcards summary { list-style: none; cursor: pointer; position: relative; display: block; text-wrap: balance; padding: var(--card-pad) calc(var(--card-pad) + 56px) var(--card-pad) var(--card-pad); font: 450 var(--t-lead)/var(--lh-lead) var(--font-display); color: var(--ink); border-radius: var(--radius); }
.qcards summary::-webkit-details-marker { display: none; }
.qcards summary::before, .qcards summary::after { content: ""; position: absolute; }
.qcards summary::before { right: var(--card-pad); top: calc(var(--card-pad) + var(--lh-lead) / 2 - 20px); width: 40px; height: 40px; border: 1.5px solid var(--accent); border-radius: 50%; box-sizing: border-box; transition: background-color .2s; }
.qcards summary::after { right: calc(var(--card-pad) + 12px); top: calc(var(--card-pad) + var(--lh-lead) / 2 - 8px); width: 16px; height: 16px; margin: 0; border: 0; transform: none; background: linear-gradient(var(--accent), var(--accent)) center / 16px 1.5px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 1.5px 16px no-repeat; transition: transform .2s; }
.qcards details[open] > summary::after { transform: rotate(45deg); margin: 0; }
.qcards summary:hover::before { background: var(--accent); }
.qcards summary:hover::after { background: linear-gradient(var(--ink), var(--ink)) center / 16px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 16px no-repeat; }
.qcards details p { padding: 0 calc(var(--card-pad) + 56px) var(--card-pad) var(--card-pad); margin-top: -4px; color: var(--ink-soft); max-width: 66ch; text-wrap: pretty; } /* 16 on the letters under the question */
@media (prefers-reduced-motion: reduce) { .qcards summary::before, .qcards summary::after { transition: none; } }
@media (max-width: 560px) { .qcards summary { padding-right: calc(var(--card-pad) + 48px); } .qcards details p { padding-right: var(--card-pad); } }
#faq .head { text-align: center; }
#faq .head { padding-bottom: 12px; } @media (min-width: 1200px) { #faq .head { padding-bottom: 11px; } } @media (max-width: 560px) { #faq .head { padding-bottom: 1px; } } /* 40 on the letters from the title to the first card */
@media (min-width: 1200px) { /* laptop: title left, cards right, like the live munshi.my FAQ (Muhsin, 25 Nov 2026). The title runs as two balanced lines and stays in view while the cards scroll past; its first baseline sits on the first question's baseline; it stays put, no sticky (Muhsin, 25 Nov 2026) */
  #faq .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 760px); column-gap: var(--space-2xl); align-items: start; }
  #faq .head { text-align: left; padding-bottom: 0; margin: 0; padding-top: 17px; } /* drops the title so its first baseline sits on the first question's baseline; it stays put, no sticky (Muhsin, 25 Nov 2026) */
  #faq .head h2 { text-wrap: balance; max-width: 9em; }
  #faq .qcards { margin: 0; max-width: none; }
}


/* card buttons use the small button (14, 44 tall), as in the approved mockup: a full-size button outranked the course name (FLAGGED to Muhsin, 25 Nov 2026) */
/* LEARNING PATHS (Muhsin and Ainur, 25 Nov 2026): one road winding down the page, from "Apa khabar?" top left to "Speak like a local" bottom right; the four courses are stops on it.
   ONE inner padding --pin everywhere in a card (Muhsin, 25 Nov 2026): curved edge → photo, photo → text, text → top, bottom and outer edge. Phone only: photo → text is 28 (--gap) for breathing room; the card grows, never to the full width.
   The photo is as tall as the text block, so the card is photo + --pin all round; its photo end is a half circle concentric with the photo. No ring on the photo.
   Text faces away from the photo. Stops alternate sides; laptop and tablet: photos 180 either side of the centre line; phone: cards full width. */
#paths { --orb: 148px; --pin: 28px; --off: 180px; --step: 96px; --road: 44px; --g1: 4px; --g2: 4px; --g3: 16px; }
@media (min-width: 561px) and (max-width: 1199px) { #paths { --off: 172px; --step: 88px; --road: 40px; } }
@media (max-width: 560px) { #paths { --orb: 124px; --pin: 16px; --gap: 28px; --step: 96px; --road: 32px; --g2: 0px; --g3: 8px; } } /* photo 124 = label 20 + 4 + name 28 + Malay line 20 + 8 + button 44 */
#paths { --cap: calc(var(--orb) / 2 + var(--pin)); }
.route { position: relative; }
.route__road { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.route__bed { fill: none; stroke: var(--mi-cream); stroke-width: var(--road); stroke-linecap: round; }
.route__lane { fill: none; stroke: var(--bg); stroke-width: 2.5; stroke-dasharray: 10 12; stroke-linecap: round; }
.route__reveal { fill: none; stroke: var(--mask-on-light); stroke-width: calc(var(--road) + 4px); stroke-linecap: round; }
.route__stops { list-style: none; margin: 0; padding: 0; position: relative; }
.route__end { position: relative; display: flex; align-items: center; gap: var(--space-md); font: 600 var(--t-small)/var(--lh-small) var(--font-text); color: var(--ink-soft); width: calc(2 * (var(--off) + var(--cap))); margin-inline: auto; }
.route__end b { display: block; font: 450 var(--t-title)/var(--lh-title) var(--font-display); color: var(--ink); }
.route__end--finish { justify-content: flex-end; text-align: right; margin-top: var(--step); }
.route__dot { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 9px var(--accent), inset 0 0 0 14px var(--bg); position: relative; z-index: 1; }
.route__dot--done { width: 40px; height: 40px; box-shadow: none; background: var(--mi-sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23171A1B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat; }
.route__end--start .route__dot, .route__end--finish .route__dot { margin: 0; } /* the dots sit inside, their outer edge on the cards' outer edge, at every width (Muhsin, 25 Nov 2026: too close to the screen edge) */
.stop { position: relative; width: max-content; height: calc(var(--orb) + 2 * var(--pin)); margin-top: var(--step); } /* each card hugs its text, so photo → text is --pin too */
.stop--l { margin-left: calc(50% - var(--off) - var(--cap)); }
.stop--r { margin-left: auto; margin-right: calc(50% - var(--off) - var(--cap)); }
.stop__pic { position: absolute; top: var(--pin); width: var(--orb); height: var(--orb); border-radius: 50%; overflow: hidden; z-index: 1; }
.stop--l .stop__pic { left: var(--pin); } .stop--r .stop__pic { right: var(--pin); }
.stop__pic img { width: 100%; height: 100%; object-fit: cover; }
.stop__card { height: 100%; display: flex; flex-direction: column; justify-content: center; background: var(--cream); box-shadow: 0 20px 40px -28px var(--mi-shadow-ink); }
.stop--l .stop__card { align-items: flex-end; text-align: right; padding: var(--pin) var(--pin) var(--pin) calc(var(--orb) + var(--pin) + var(--gap, var(--pin))); border-radius: var(--cap) var(--radius) var(--radius) var(--cap); }
.stop--r .stop__card { align-items: flex-start; text-align: left; padding: var(--pin) calc(var(--orb) + var(--pin) + var(--gap, var(--pin))) var(--pin) var(--pin); border-radius: var(--radius) var(--cap) var(--cap) var(--radius); }
.stop__for { font: 600 var(--t-small)/var(--lh-small) var(--font-text); color: var(--accent-text); }
.stop__card h3 { font: 450 var(--t-title)/var(--lh-title) var(--font-display); margin: var(--g1) 0 0; }
.stop__say { font: italic 450 var(--t-body)/var(--lh-body) var(--font-display); color: var(--ink-soft); margin-top: var(--g2); white-space: nowrap; }
.stop__card .btn { margin-top: var(--g3); }
.route__soon { color: var(--ink-soft); cursor: default; } .route__soon:hover { border-color: var(--line); }
@media (max-width: 560px) {
  .stop--l { margin-left: -12px; } .stop--r { margin-right: -12px; } /* phone: cards reach 8 from the screen edge so the one inner padding can be 16 (Muhsin, 25 Nov 2026: more breathing space) */
  .stop__say { font-size: var(--t-small); line-height: var(--lh-small); } /* phone: the Malay line at the small step so a card fits a 360 screen */
  .stop__card .btn { padding-inline: var(--space-md); }
  .route__end { width: calc(100% + 24px); margin-inline: -12px; } /* phone: start and end line up with the cards, 8 from the screen edge */
}
@media (prefers-reduced-motion: reduce) { .route__reveal { transition: none !important; } }
/* rhythm on the letters (25 Nov 2026): title → "Start here" 40, section ends 48 / 64 / 64 */
#paths .head { margin-bottom: calc(var(--g-title-only) + 4px); }
@media (min-width: 561px) and (max-width: 1199px) { #paths .head { margin-bottom: calc(var(--g-title-only) + 8px); } }
@media (min-width: 1200px) { #paths .head { margin-bottom: calc(var(--g-title-only) + 7px); } }
#paths { padding-bottom: calc(var(--section) - 4px); }
@media (min-width: 1200px) { #who { padding-bottom: calc(var(--section) - 2px); } }
@media (max-width: 560px) { .foot__copy { margin-top: 30px; } } /* phone: 40 on the letters under the last list */
@media (max-width: 374px) { #paths { --gap: 16px; } } /* small phones (360): photo → text back to 16 so the widest card still fits */

/* WHO IT'S FOR: the world map (Muhsin, 25 Nov 2026). A human-made dotted map (Magnific 49214220) in faint orange rises under the title; Malaysia in full orange with a slow pulse;
   one dashed line from each start to Malaysia, spread around it so no two lines cross. Under the map, the six learners: face, name, their Malay line. One layout at every width. */
#who .head { position: relative; z-index: 1; justify-items: center; text-align: center; margin-bottom: 0; }
#who .head { --drop: 12px; transform: translateY(var(--drop)); } /* the title drops about one more dot row into the map (Muhsin, 25 Nov 2026, set by eye): 12 laptop, 8 tablet, 4 phone */
@media (max-width: 1199px) { #who .head { --drop: 8px; } }
@media (max-width: 560px) { #who .head { --drop: 4px; } }
.globe { position: relative; max-width: 1120px; margin-inline: auto; }
.globe__stage { position: relative; margin-top: calc(-4% - 100% / 101); } /* -(overlap + one dot row): the title sits one dot lower in the map (Muhsin, 25 Nov 2026) */
@media (max-width: 1199px) { .globe__stage { margin-top: calc(-5% - 100% / 101); } }
@media (max-width: 560px) { .globe__stage { margin-top: calc(-7% - 100% / 101); } } /* the map's top rows sit behind the title */
.globe__map, .globe__art { display: block; width: 100%; height: auto; }
.globe__art { position: absolute; inset: 0; overflow: visible; }
.globe__lines path { fill: none; stroke: var(--mi-sun); stroke-width: 2.5; stroke-dasharray: 8 10; stroke-linecap: round; opacity: 1; } /* sun lines, one fixed dash and gap on every line (Muhsin, 25 Nov 2026: the gaps must match), Malaysia stays orange (Muhsin, 25 Nov 2026) */
.globe__from circle { fill: var(--accent); }
.globe__my { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; }
.globe__dot { fill: var(--accent); stroke: var(--bg); stroke-width: 4; }
.globe__pulse { fill: var(--accent); opacity: .3; transform-origin: 785px 405px; animation: globe-pulse 2.4s ease-out infinite; }
@keyframes globe-pulse { from { transform: scale(1); opacity: .35; } to { transform: scale(3); opacity: 0; } }
.globe__home { position: absolute; left: var(--x); top: var(--y); transform: translate(18px, -50%); font: 600 var(--t-small)/var(--lh-small) var(--font-text); color: var(--accent-text); }
.globe__who { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, max-content); justify-content: space-between; gap: var(--space-lg) var(--space-xl); margin: 39px auto 0; max-width: 1000px; }
.pin { display: flex; align-items: center; gap: var(--space-md); }
.pin img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.pin span { display: grid; }
.pin b { font: 600 var(--t-body)/var(--lh-body) var(--font-text); white-space: nowrap; }
.pin i { font: italic 450 var(--t-body)/var(--lh-body) var(--font-display); color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 1199px) { .globe__who { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; } }
@media (max-width: 560px) {
  .globe { margin-inline: calc(var(--pad) * -1 + 8px); }
  .globe__who { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); margin-inline: calc(var(--pad) - 8px); }
  .pin img { width: 48px; height: 48px; }
  .pin i { font-size: var(--t-small); line-height: var(--lh-small); }
  .globe__lines path { stroke-width: 3; }
  .globe__from circle { r: 10; }
}
/* the lines draw themselves once when the map scrolls into view; still for reduced motion */
.globe__lines path { stroke-dashoffset: 0; }
.globe.is-in .globe__lines path { animation: globe-flow 1.6s ease-out both; }
.globe.is-in .globe__lines path:nth-child(2) { animation-delay: .15s; } .globe.is-in .globe__lines path:nth-child(3) { animation-delay: .3s; }
.globe.is-in .globe__lines path:nth-child(4) { animation-delay: .45s; } .globe.is-in .globe__lines path:nth-child(5) { animation-delay: .6s; } .globe.is-in .globe__lines path:nth-child(6) { animation-delay: .75s; }
@keyframes globe-flow { from { opacity: 0; stroke-dashoffset: 36; } to { opacity: 1; stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .globe__pulse { animation: none; } .globe.is-in .globe__lines path { animation: none; } }

/* SPEAK PRACTICAL MALAY (Muhsin, 25 Nov 2026, after Babbel's "The effective way to learn a language online"): the two-line title from munshi.my,
   the moving row of learners' flags, then three rows that swap sides: a round photo of Malay in real life with one Malay word on a sun card (our twist on Babbel's sticker), and the idea beside it. */
#world .head { justify-items: center; text-align: center; }
/* two rows of learners' flags gliding in opposite directions, like munshi.my, faded towards the middle so the row never reads as too long (Muhsin, 25 Nov 2026) */
.flagruns { --fsize: 48px; --fgap: 40px; display: grid; gap: var(--space-md); width: min(100%, calc(8 * (var(--fsize) + var(--fgap)))); margin-inline: auto; } /* eight circles in view per row (Muhsin, 25 Nov 2026) */
.flagruns .flags .flag { width: var(--fsize); height: var(--fsize); }
@media (max-width: 1199px) { .flagruns { --fsize: 40px; --fgap: 32px; } }
@media (max-width: 560px) { .flagruns { --fsize: 32px; --fgap: 10px; } }
.flagrun { display: flex; gap: var(--fgap); overflow: hidden; padding: 4px 0 8px; -webkit-mask-image: linear-gradient(90deg, transparent, var(--mask-on) 32%, var(--mask-on) 68%, transparent); mask-image: linear-gradient(90deg, transparent, var(--mask-on) 32%, var(--mask-on) 68%, transparent); }
.flagrun .flags { flex: none; flex-wrap: nowrap; gap: var(--fgap); animation: flagrun 36s linear infinite; }
.flagrun--right .flags { animation-direction: reverse; }
.flagruns:hover .flags { animation-play-state: paused; }
@keyframes flagrun { to { transform: translateX(calc(-100% - var(--fgap))); } }
@media (prefers-reduced-motion: reduce) { .flagrun { -webkit-mask-image: none; mask-image: none; justify-content: center; } .flagrun .flags { flex-wrap: wrap; justify-content: center; flex: 1; animation: none; } .flagrun .flags[aria-hidden] { display: none; } }
.feats { display: grid; gap: var(--space-2xl); margin-top: var(--space-2xl); }
.feat { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 420px); justify-content: center; align-items: center; column-gap: 96px; } /* the circle and its idea sit together as one pair, centred (no gap across the page) */
.feat:nth-child(even) { grid-template-columns: minmax(0, 420px) minmax(0, 400px); }
@media (max-width: 1199px) { .feat, .feat:nth-child(even) { column-gap: var(--space-2xl); } }
.feat__pic { position: relative; width: min(100%, 400px); aspect-ratio: 1; justify-self: center; }
.feat__pic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.feat:nth-child(even) .feat__pic { order: 2; }
.feat__text { max-width: 420px; }
.feat:nth-child(even) .feat__text { justify-self: start; }
.feat__text h3 { margin-bottom: 12px; }
.feat__text p { color: var(--ink-soft); text-wrap: pretty; }
.feat__word { position: absolute; right: -6%; bottom: 8%; display: grid; padding: 12px 20px; border-radius: var(--radius-in); background: var(--mi-sun); color: var(--ink); filter: drop-shadow(0 10px 14px color-mix(in srgb, var(--mi-shadow-ink) 55%, transparent)); }
.feat:nth-child(even) .feat__word { right: auto; left: -6%; }
.feat__word b { font: 450 var(--t-title)/var(--lh-title) var(--font-display); white-space: nowrap; }
.feat__word span { font: 400 var(--t-small)/var(--lh-small) var(--font-text); }
@media (max-width: 760px) {
  .feats { gap: var(--space-xl); margin-top: var(--space-xl); }
  .feat, .feat:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 28px; text-align: center; }
  .feat:nth-child(even) .feat__pic { order: 0; }
  .feat__pic { width: min(100% - 48px, 300px); }
  .feat__text, .feat:nth-child(even) .feat__text { justify-self: center; }
  .feat__word { right: -12px; }
  .feat:nth-child(even) .feat__word { left: -12px; }
}
/* Speak Practical Malay rhythm, on the letters (25 Nov 2026): title → flags 40, flags → first circle 64 (40 phone), circle → name 28 on phones */
.feats { margin-top: calc(var(--space-2xl) - 3px); }
@media (max-width: 760px) { .feats { margin-top: calc(var(--space-xl) - 4px); row-gap: calc(var(--space-xl) - 4px); } .feat, .feat:nth-child(even) { row-gap: 34px; } }
@media (max-width: 560px) { #world .head { margin-bottom: calc(var(--g-title-only) - 2px); } }


/* HERO, munshi.my Home (Muhsin, 25 Nov 2026): a copy of the live munshi.my hero, picture changed. Full-width photo under a 30% dark veil, the two-line title centred in white with the key words in orange, one button; an orange band under it with the three audiences. */
.hero--photo { position: relative; display: grid; place-items: center; min-height: 562px; padding: 64px 0; overflow: hidden; background: var(--ink); }
.hero--photo .hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.hero--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--veil-dark) 0%, var(--veil-mid) 40%, var(--veil-light) 75%); }
.hero--photo .hero__in { position: relative; z-index: 1; display: grid; justify-items: start; text-align: left; width: 100%; }
.hero--photo h1 { color: var(--mi-white); margin: 0; }
.hero--photo h1 span { display: block; }
.hero--photo h1 b { font-weight: inherit; color: var(--accent); }
.hero--photo .btn { margin-top: 40px; }
.hero-band { background: var(--mi-sun); color: var(--ink); } /* sun band: an approved exception to "sun only for How to Join" (Muhsin, 25 Nov 2026) */
.hero-band p { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 0; padding: 13px var(--pad); font: 600 var(--t-body)/var(--lh-body) var(--font-text); text-align: center; }
.hero-band span + span::before { content: "|"; margin: 0 16px; }
@media (max-width: 1199px) { .hero--photo { min-height: 480px; } }
@media (max-width: 560px) { .hero--photo { min-height: 420px; } .hero--photo .hero__photo { object-position: 76% 30%; } .hero-band p { flex-direction: column; } .hero-band span + span::before { content: none; } }

@media (max-width: 560px) { .hero--photo .hero__in { justify-items: center; text-align: center; } .hero--photo::after { background: var(--veil-mid); } }

/* FINAL CALL TO ACTION (munshi.my Home, Muhsin, 25 Nov 2026, after HelloTalk's "Your Language Learning Journey Starts Here"): the last section before the footer, white. Title centred at the section step, the brand philosophy as one lead sentence in soft ink, two buttons side by side: Find a Course (orange) and Chat With Us (ghost, WhatsApp). 28 title to sentence, 40 sentence to buttons, on the letters. */
.cta__in { display: grid; justify-items: center; text-align: center; }
.cta h2 { margin: 0; }
.cta p { margin: 18px 0 0; max-width: 46ch; font: 400 var(--t-lead)/var(--lh-lead) var(--font-text); color: var(--ink-soft); text-wrap: balance; }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }
@media (min-width: 561px) { .cta p { margin-top: 16px; } .cta__btns { margin-top: 35px; } }
@media (min-width: 1200px) { .cta p { margin-top: 15px; } }
@media (max-width: 560px) { .cta__btns { display: grid; grid-template-columns: 1fr; width: 100%; max-width: 320px; } .cta__btns .btn { min-height: 48px; font-size: 18px; } }
/* the final call to action: cream at the top fading into white, like HelloTalk's last band (Muhsin, 25 Nov 2026; full sun and boxed cards rejected) */
.cta { background: linear-gradient(to bottom, var(--mi-cream) 0, var(--mi-white) var(--fade)); padding-block: 64px; } /* brand Paper #EFEAE1 into brand white #FDFCFA */
@media (min-width: 561px) { .cta { padding-block: 96px; } }
.cta { padding-top: 58px; } /* even on the letters, top and bottom */
@media (min-width: 561px) { .cta { padding-top: 91px; } }
@media (min-width: 1200px) { .cta { padding-top: 92px; } }

@media (max-width: 560px) { #world { padding-bottom: 45px; } } /* the last circle's sticker sits 4 below the circle: 48 on the letters, like every section */
/* phone hero (Muhsin, 25 Nov 2026: the title sat on her face): her face stays in the top half, the title and button sit in the lower half over the table, the veil darkest at the bottom behind them */
@media (max-width: 560px) {
  .hero--photo { min-height: 480px; place-items: end center; padding: 40px 0; }
  .hero--photo .hero__photo { object-position: 76% 0%; }
  .hero--photo::after { background: linear-gradient(to top, var(--veil-dark) 0%, var(--veil-mid) 40%, var(--veil-light) 75%); }
}


/* split (Muhsin, 25 Nov 2026): "Join Learners From Around The World" with the flags, then "Speak Practical Malay" with the three rows, each its own section */
#speak .head { text-align: center; justify-items: center; margin-bottom: calc(var(--g-head) + 1px); }
#speak .head > * { margin-inline: auto; }
@media (max-width: 560px) { #speak { padding-bottom: 44px; } }
@media (min-width: 561px) and (max-width: 1199px) { #speak { padding-bottom: calc(var(--section) + 8px); } }
#world .head { margin-bottom: calc(var(--g-head) - 8px); } /* 40 on the letters, title to flags */
#world { padding-bottom: calc(var(--section) - 3px); }
@media (max-width: 560px) { #world .head { margin-bottom: calc(var(--g-title-only) - 2px); } #world { padding-bottom: 45px; } }
@media (min-width: 761px) { #speak .feats { margin-top: 0; } #speak .head { margin-bottom: calc(var(--g-head) + 5px); } } @media (min-width: 1200px) { #speak .head { margin-bottom: calc(var(--g-head) + 4px); } } /* 40 on the letters, title to the first circle (the 64 was for flags to circle) */
@media (max-width: 560px) { #speak .head { margin-bottom: 0; } #speak .feats { margin-top: 29px; } } /* two-line title ends on "Connections": 40 on the letters */
#world { background: linear-gradient(to bottom, var(--mi-cream) 0, var(--mi-white) var(--fade)); } /* brand Paper into brand white over the whole section, under the sun band (Muhsin, 25 Nov 2026) */

/* Malaysia's round flag on the map, on the Malaysia dot, the pulse behind it (Muhsin, 25 Nov 2026) */
.globe__flag { position: absolute; left: var(--x); top: var(--y); width: 32px; height: 32px; margin: 0; transform: translate(-50%, -50%); z-index: 1; box-shadow: 0 4px 10px color-mix(in srgb, var(--mi-ink) 25%, transparent); } /* no white ring (Muhsin, 25 Nov 2026) */
.globe__dot, .globe__my { display: none; }
.globe__pulse { r: 18; }
.globe__home { transform: translate(24px, -50%); }
@media (max-width: 560px) { .globe__flag { width: 22px; height: 22px; } .globe__home { transform: translate(16px, -50%); } }

/* ========== CONTACT PAGE (Muhsin, 25 Nov 2026, redone from munshi.my/contact) ========== */
/* hero: brand Paper fading into white (the same 300 px fade), text left, the learner on a video call right; phone: photo first, text centred */
.chero { background: linear-gradient(to bottom, var(--mi-cream) 0, var(--mi-white) var(--fade)); padding-block: 40px var(--section); }
.chero__grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); align-items: center; justify-items: center; text-align: center; }
.chero h1 { color: var(--accent-text); margin: 0; }
.chero__lead { margin: 18px 0 0; max-width: 34ch; font: 400 var(--t-lead)/var(--lh-lead) var(--font-text); color: var(--ink-soft); text-wrap: balance; }
.chero__btns { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); width: 100%; max-width: 320px; margin: 36px auto 0; }
.chero__btns .btn { min-height: 48px; }
.chero__pic { order: -1; }
.chero__pic img { display: block; width: 240px; height: 240px; border-radius: 50%; object-fit: cover; }
@media (min-width: 561px) { .chero { padding-top: var(--section); } .chero__btns { display: flex; justify-content: center; max-width: none; } .chero__btns .btn { min-height: 52px; } .chero__pic img { width: 280px; height: 280px; } .chero__lead { margin-top: 16px; } .chero__btns { margin-top: 35px; } }
@media (min-width: 1200px) {
  .chero { padding-block: 96px var(--section); }
  .chero__grid { grid-template-columns: minmax(0, 640px) auto; justify-content: space-between; text-align: left; justify-items: start; }
  .chero__pic { order: 0; }
  .chero__pic img { width: 296px; height: 296px; }
  .chero__lead { margin-top: 15px; }
  .chero__btns { justify-content: flex-start; margin-inline: 0; }
}

/* the form in a Card, the other ways beside it; titles on one baseline */
.reach__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.reach h2 { margin: 0 0 var(--space-xl); }
.reach__form { background: var(--cream); border-radius: var(--radius); padding: var(--card-pad); }
@media (min-width: 1200px) { .reach__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: var(--space-2xl); } .reach__ways { padding-top: var(--card-pad); } }
.form { display: grid; gap: var(--space-lg); }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
@media (min-width: 561px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: var(--space-xs); }
.field > span { font: 600 var(--t-small)/var(--lh-small) var(--font-text); color: var(--ink); }
.field i { font-style: normal; color: var(--accent-text); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 14px 16px; border: 0; border-radius: var(--radius-in); background: var(--mi-white); font: 400 var(--t-body)/var(--lh-body) var(--font-text); color: var(--ink); appearance: none; }
.field textarea { min-height: 148px; resize: vertical; }
.field select { padding-right: 44px; background: var(--mi-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23171A1B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 18px no-repeat; }
.field select:invalid { color: var(--ink-soft); }
.field ::placeholder { color: var(--ink-soft); opacity: .8; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .btn { justify-self: start; margin-top: var(--space-md); }
@media (max-width: 560px) { .form .btn { justify-self: stretch; min-height: 48px; } }
.form__error { margin: 0; font: 600 var(--t-small)/var(--lh-small) var(--font-text); color: var(--accent-text); }
.form__done { margin: 0; font: 600 var(--t-small)/var(--lh-small) var(--font-text); color: var(--mi-green); } /* green: a success moment */
.ways { display: grid; gap: var(--space-xl); margin: 0; }
.ways dt { font: 600 var(--t-small)/var(--lh-small) var(--font-text); color: var(--accent-text); margin-bottom: var(--space-md); }
.ways dd { margin: 0; font: 400 var(--t-body)/var(--lh-body) var(--font-text); color: var(--ink); }
.ways dd a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ways dd a:hover { color: var(--accent-text); }
.ways address { font-style: normal; }
.ways__map { display: inline-block; margin-top: var(--space-md); color: var(--accent-text) !important; }
/* contact rhythm on the letters: photo → title 40, title → sentence 28, last line → section end 48 / 64 */
.chero__grid { row-gap: 35px; } .chero__lead { margin-top: 19px; }
@media (min-width: 561px) { .chero__grid { row-gap: 36px; } .chero__lead { margin-top: 15px; } }
@media (min-width: 1200px) { .chero__lead { margin-top: 15px; } }
.reach { padding-bottom: calc(var(--section) - 4px); }
@media (min-width: 1200px) { .reach { padding-bottom: var(--section); } .chero { padding-top: 93px; } }
.chero__pic img { transform: scaleX(-1); } /* mirrored so she faces the title (Muhsin, 25 Nov 2026) */
.chero { padding-bottom: 44px; } @media (min-width: 561px) { .chero { padding-bottom: 59px; } } @media (min-width: 1200px) { .chero { padding-top: 96px; padding-bottom: var(--section); } } /* without buttons: 48 / 64 on the letters under the sentence, 96 above the photo on laptop */
.ways dt { margin-bottom: 4px; } /* label → value 16 on the letters (Muhsin, 25 Nov 2026: was too far) */
.ways__map { margin-top: 8px; }
.custom { margin-top: var(--space-2xl); padding: var(--card-pad); border-radius: var(--radius); background: var(--cream); }
.custom h3 { margin: 0; font-size: var(--t-title); line-height: var(--lh-title); color: var(--ink); }
.custom p { margin: 12px 0 0; font: 400 var(--t-body)/var(--lh-body) var(--font-text); color: var(--ink-soft); }
.reach h2 { margin-bottom: 21px; } /* 40 on the letters, title → first label */
.ways { gap: 30px; } /* 40 on the letters between details */
.ways__map { margin-top: 5px; }
.custom p { margin-top: 17px; } /* 28 on the letters, title → sentence */
@media (max-width: 560px) { .reach h2 { margin-bottom: 26px; } }
.reach { padding-bottom: var(--section); } /* the Custom Requests card ends the section: 48 / 64 to its edge */
@media (min-width: 1200px) { .reach__grid { align-items: stretch; } .reach__ways { display: flex; flex-direction: column; } .custom { margin-top: auto; } .reach__ways .ways { margin-bottom: var(--space-xl); } } /* laptop: the Custom Requests card ends on the form card's bottom edge */
.custom { background: var(--mi-sun); } .custom p { color: var(--ink); } /* sun card: the one highlight on the Contact page; everything on it ink (Muhsin, 25 Nov 2026) */

/* ========== ABOUT PAGE (Muhsin, 25 Nov 2026, redone from munshi.my/about) ========== */
/* hero: Paper fade; the promise left, our name as a dictionary entry right (a Card with a sun tag, like the word stickers on Home) */
.ahero { background: linear-gradient(to bottom, var(--mi-cream) 0, var(--mi-white) var(--fade)); padding-block: 40px var(--section); }
.ahero__grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); align-items: center; justify-items: center; text-align: center; }
.ahero h1 { color: var(--accent-text); margin: 0; }
.ahero__lead { margin: 19px 0 0; max-width: 40ch; font: 400 var(--t-lead)/var(--lh-lead) var(--font-text); color: var(--ink-soft); text-wrap: balance; }
.word { position: relative; margin: 0; width: min(100%, 420px); padding: calc(var(--card-pad) + 8px) var(--card-pad) var(--card-pad); border-radius: var(--radius); background: var(--cream); text-align: left; }
.word__tag { position: absolute; top: -14px; left: var(--card-pad); margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--mi-sun); font: 600 var(--t-small)/var(--lh-small) var(--font-text); color: var(--ink); }
.word__head { margin: 0; font: 450 var(--t-section)/var(--lh-section) var(--font-display); color: var(--accent-text); }
.word__type { margin: 4px 0 0; font: 400 var(--t-small)/var(--lh-small) var(--font-text); color: var(--ink-soft); font-style: italic; }
.word__def { margin: 12px 0 0; font: 450 var(--t-title)/var(--lh-title) var(--font-display); color: var(--ink); }
.word figcaption { margin-top: 12px; font: 400 var(--t-body)/var(--lh-body) var(--font-text); color: var(--ink-soft); }
@media (min-width: 561px) { .ahero { padding-top: var(--section); } .ahero__lead { margin-top: 15px; } }
@media (min-width: 1200px) {
  .ahero { padding-block: 96px var(--section); }
  .ahero__grid { grid-template-columns: minmax(0, 600px) minmax(0, 420px); justify-content: space-between; justify-items: start; text-align: left; }
}

/* founder: Ainur's real portrait in a circle, her name as the title */
.founder__grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); justify-items: center; text-align: center; align-items: center; }
.founder__pic { width: 280px; height: 280px; border-radius: 50%; object-fit: cover; }
.founder__role { margin: 0 0 12px; font: 600 var(--t-small)/var(--lh-small) var(--font-text); color: var(--accent-text); }
.founder .founder__name { margin: 0; }
.founder__text p:not(.founder__role) { margin: 16px 0 0; max-width: 46ch; font: 400 var(--t-body)/var(--lh-body) var(--font-text); color: var(--ink-soft); }
.founder__text .founder__name + p { margin-top: 17px !important; }
@media (min-width: 768px) { .founder__grid { grid-template-columns: auto minmax(0, 480px); column-gap: var(--space-3xl); justify-content: center; justify-items: start; text-align: left; } .founder__pic { width: 360px; height: 360px; } }
@media (min-width: 1200px) { .founder__pic { width: 400px; height: 400px; } }

/* vision and mission: the vision under the title, the three aims in Cards with their step numbers */
.mission .head { text-align: center; justify-items: center; }
.mission .head > * { margin-inline: auto; }
.mission .lead { max-width: 40ch; text-wrap: balance; }
.aims { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
@media (min-width: 1200px) { .aims { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); } } @media (min-width: 561px) and (max-width: 1199px) { .aims { max-width: 720px; margin-inline: auto; } }
.aims li { padding: var(--card-pad); border-radius: var(--radius); background: var(--cream); }
.aims__n { display: block; font: 450 var(--t-section)/var(--lh-section) var(--font-display); color: var(--accent-text); }
.aims h3 { margin: 16px 0 0; font-size: var(--t-title); line-height: var(--lh-title); color: var(--ink); text-wrap: balance; }
.aims p { margin: 12px 0 0; font: 400 var(--t-body)/var(--lh-body) var(--font-text); color: var(--ink-soft); }

/* philosophy: the one sun band on the page, everything ink */
.motto { background: var(--mi-sun); }
.motto__in { text-align: center; }
.motto__line { margin: 0; font: 450 var(--t-section)/var(--lh-section) var(--font-display); color: var(--ink); }
.motto__sub { margin: 16px auto 0; max-width: 46ch; font: 400 var(--t-lead)/var(--lh-lead) var(--font-text); color: var(--ink); text-wrap: balance; }
.ahero__grid { row-gap: 50px; } /* 40 on the letters from the sentence to the sun tag */
.ahero { padding-top: 35px; } @media (min-width: 561px) { .ahero { padding-top: var(--section); } } @media (min-width: 1200px) { .ahero { padding-top: 96px; } }
/* about rhythm on the letters: title → sentence 28, label → name 16, name → text 28, paragraphs 28, head → cards 40, section ends 48 / 64 */
.ahero__lead { margin-top: 11px; } @media (min-width: 561px) { .ahero__lead { margin-top: 15px; } } @media (min-width: 1200px) { .ahero { padding-top: 110px; } }
.founder__grid { row-gap: 36px; } .founder__role { margin-bottom: 6px; } .founder__text .founder__name + p { margin-top: 12px !important; } .founder__text p + p { margin-top: 18px !important; }
.founder { padding-bottom: calc(var(--section) - 8px); }
.aims { margin-top: 35px; }
.motto__sub { margin-top: 12px; } @media (min-width: 561px) { .motto__sub { margin-top: 7px; } } @media (min-width: 1200px) { .motto__sub { margin-top: 6px; } }
.motto { padding-bottom: calc(var(--section) - 4px); } @media (min-width: 561px) { .motto { padding-bottom: calc(var(--section) - 5px); } }
@media (min-width: 1200px) { .founder { padding-bottom: var(--section); } }

/* about: Who We Are and the founder as splits with a flags section between them (never two splits in a row) */
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 36px; justify-items: center; text-align: center; align-items: center; }
.story__pic { width: 280px; height: 280px; border-radius: 50%; object-fit: cover; }
.story__label { margin: 0 0 6px; font: 600 var(--t-small)/var(--lh-small) var(--font-text); color: var(--accent-text); }
.story h2 { margin: 0; }
.story__text p:not(.story__label) { margin: 18px 0 0; max-width: 46ch; font: 400 var(--t-body)/var(--lh-body) var(--font-text); color: var(--ink-soft); }
.story__text h2 + p { margin-top: 12px !important; }
@media (min-width: 768px) { .story__grid { grid-template-columns: auto minmax(0, 480px); column-gap: var(--space-3xl); justify-content: center; justify-items: start; text-align: left; } .story__pic { width: 360px; height: 360px; } }
@media (min-width: 1200px) { .story__pic { width: 400px; height: 400px; } }
@media (min-width: 768px) { .founder--right .founder__grid { grid-template-columns: minmax(0, 480px) auto; } .founder--right .founder__pic { order: 2; } }
.learners .head { text-align: center; justify-items: center; margin-bottom: calc(var(--g-head) - 8px); }
@media (max-width: 560px) { .learners .head { margin-bottom: calc(var(--g-title-only) - 2px); } }
.mission__more { margin: 16px auto 0; max-width: 60ch; font: 400 var(--t-body)/var(--lh-body) var(--font-text); color: var(--ink-soft); text-wrap: balance; }
.story__text h2 + p { margin-top: 19px !important; } .story__text p + p { margin-top: 14px !important; }
.story { padding-bottom: calc(var(--section) - 5px); } @media (min-width: 561px) { .story { padding-bottom: calc(var(--section) - 4px); } } @media (min-width: 1200px) { .story { padding-bottom: var(--section); } }
.learners { padding-bottom: calc(var(--section) - 3px); }
.mission__more { margin-top: 6px; } @media (min-width: 561px) { .mission__more { margin-top: 9px; } } @media (min-width: 1200px) { .mission__more { margin-top: 11px; } }
/* About v2 order (Muhsin, 25 Nov 2026): Mission (title + three cards), Vision (title + lead), flags, founder */
.vision .head { text-align: center; justify-items: center; }
.vision .head > * { margin-inline: auto; }
.vision .lead { max-width: 40ch; text-wrap: balance; }
.mission, .vision, .learners, .motto { padding-top: calc(var(--section) - 5px); }
@media (min-width: 561px) { .mission, .vision, .learners, .motto { padding-top: calc(var(--section) - 4px); } }
.mission .head { margin-bottom: 0; } .mission .aims { margin-top: 30px; } @media (min-width: 561px) { .mission .aims { margin-top: 28px; } } @media (min-width: 1200px) { .mission .aims { margin-top: 30px; } }
.vision .head { margin-bottom: 0; } .vision { padding-bottom: calc(var(--section) - 4px); } @media (min-width: 561px) { .vision { padding-bottom: calc(var(--section) - 5px); } }
@media (min-width: 561px) { .mission .aims { margin-top: 27px; } } @media (min-width: 1200px) { .mission .aims { margin-top: 25px; } }
@media (min-width: 561px) and (max-width: 1199px) { .founder { padding-top: calc(var(--section) - 4px); } }
/* Founder (Muhsin, 25 Nov 2026): her name handwritten in Meow Script, like the learners' names, at the section step; photo a step smaller */
.founder .founder__name { font: 400 var(--t-section)/var(--lh-section) var(--font-sign); color: var(--accent-text); letter-spacing: 0; }
.founder__pic { width: 240px; height: 240px; }
@media (min-width: 768px) { .founder__pic { width: 300px; height: 300px; } }
@media (min-width: 1200px) { .founder__pic { width: 340px; height: 340px; } }
@media (max-width: 560px) { .founder .founder__name { font-size: 2.25rem; line-height: 44px; } }
.founder__text p { text-wrap: pretty; }
.founder__role { margin-bottom: 5px; } .founder__text .founder__name + p { margin-top: 16px !important; }
@media (min-width: 561px) { .founder__text .founder__name + p { margin-top: 15px !important; } .founder__text p + p { margin-top: 17px !important; } }
@media (min-width: 1200px) { .founder__role { margin-bottom: 4px; } .founder__text .founder__name + p { margin-top: 14px !important; } }
/* Founder name (Muhsin, 25 Nov 2026): name first, then the role, at 36 / 40 / 44 */
.founder .founder__name { font: 400 2.25rem/44px var(--font-sign); color: var(--accent-text); }
@media (min-width: 561px) { .founder .founder__name { font-size: 2.5rem; line-height: 48px; } }
@media (min-width: 1200px) { .founder .founder__name { font-size: 2.75rem; line-height: 52px; } }
.founder__role { margin: 0; } .founder__text .founder__name + .founder__role { margin-top: 8px; } .founder__text .founder__name + p { margin-top: 0 !important; } .founder__role + p { margin-top: 16px !important; }
@media (max-width: 560px) { .founder__text .founder__name + .founder__role { margin-top: 10px; } }
.founder__role + p { margin-top: 15px !important; }
.founder .founder__text .founder__name + .founder__role { margin-top: 2px !important; }
@media (max-width: 560px) { .founder .founder__text .founder__name + .founder__role { margin-top: 4px !important; } }
.founder .founder__text .founder__role + p { margin-top: 17px !important; }
@media (max-width: 560px) { .founder .founder__text .founder__role + p { margin-top: 16px !important; } }
@media (max-width: 560px) { .founder .founder__text .founder__name + .founder__role { margin-top: 2px !important; } .founder .founder__text .founder__role + p { margin-top: 17px !important; } }
@media (min-width: 1200px) { .founder .founder__text .founder__name + .founder__role { margin-top: 0 !important; } .founder .founder__text .founder__role + p { margin-top: 16px !important; } }
.founder .founder__name { white-space: nowrap; }
@media (min-width: 561px) and (max-width: 1199px) { .founder__pic { width: 260px; height: 260px; } .founder__grid { column-gap: var(--space-2xl); } }
@media (min-width: 561px) and (max-width: 1199px) { .founder .founder__text .founder__name + .founder__role { margin-top: 1px !important; } .founder .founder__text .founder__role + p { margin-top: 16px !important; } .founder { padding-top: calc(var(--section) - 5px); } }
@media (max-width: 560px) { .founder__grid { row-gap: 35px; } }
.founder .founder__text .founder__name + .founder__role { margin-top: -5px !important; }
@media (max-width: 560px) { .founder .founder__text .founder__name + .founder__role { margin-top: -2px !important; } .founder__grid { row-gap: 42px; } }
@media (min-width: 561px) and (max-width: 1199px) { .founder .founder__text .founder__name + .founder__role { margin-top: -3px !important; } .founder { padding-top: calc(var(--section) + 2px); } }
/* Founder name back to Meow Script, the testimonials' font (Muhsin, 25 Nov 2026), at 36 / 40 / 44 */
.founder .founder__name { font-family: var(--font-sign); }
.founder .founder__text .founder__name + .founder__role { margin-top: 6px !important; }
@media (max-width: 560px) { .founder .founder__text .founder__name + .founder__role { margin-top: 6px !important; } .founder__grid { row-gap: 34px; } }
@media (min-width: 561px) and (max-width: 1199px) { .founder .founder__text .founder__name + .founder__role { margin-top: 6px !important; } .founder { padding-top: calc(var(--section) - 6px); } }
@media (min-width: 1200px) { .founder .founder__text .founder__name + .founder__role { margin-top: 5px !important; } }
/* Our Vision globe (Muhsin, 25 Nov 2026): "Apa khabar?" on a faint dotted globe (the Magnific map, projected) inside a dashed sun ring, with eight hello stickers on the ring */
.hglobe { container-type: inline-size; position: relative; width: min(560px, 100%); aspect-ratio: 1; margin: 40px auto 0; }
.hglobe__ball { position: absolute; inset: 10.7%; border-radius: 50%; background: url("../img/about/globe-dots.svg") center / 100% no-repeat; }
.hglobe__ball::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='49.6' fill='none' stroke='%23FBC048' stroke-width='2' stroke-dasharray='8 10' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% no-repeat; }
.hglobe__mid { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; }
.hglobe__mid p { margin: 0; }
.hglobe__ak { font: italic 450 var(--t-display)/var(--lh-display) var(--font-display); color: var(--accent-text); }
.hglobe__tr { font: 600 var(--t-small)/var(--lh-small) var(--font-text); color: var(--ink-soft); }
.hglobe__hellos { list-style: none; margin: 0; padding: 0; }
.hello { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--mi-sun); color: var(--ink); font: 450 var(--t-body)/1 var(--font-display); white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--a)) translate(39.3cqw) rotate(calc(-1 * var(--a))) rotate(var(--r)); }
.hello .flag { width: 18px; height: 18px; margin: 0; }
@media (min-width: 561px) { .hello { gap: 8px; padding: 11px 16px 11px 10px; font-size: var(--t-lead); line-height: 1; } /* single-line pills sit at line height 1; padding keeps the same pill height */ .hello .flag { width: 22px; height: 22px; } }
.hglobe { margin-top: 9px; margin-bottom: -16px; }
@media (min-width: 561px) { .hglobe { margin-top: -14px; margin-bottom: -37px; } }
.hglobe { margin-top: 18px; margin-bottom: -14px; }
@media (min-width: 561px) { .hglobe { margin-top: -1px; margin-bottom: -31px; } }
.founder .founder__text .founder__role + p { margin-top: 19px !important; }
@media (max-width: 560px) { .founder .founder__text .founder__role + p { margin-top: 20px !important; } }
/* The globe's dashed ring turns at the flag rows' pace (Muhsin, 25 Nov 2026): the dashes travel 22 px a second on laptop (63 s a turn), 18 on tablet (77 s), 10.5 on phone (79 s), clockwise like the top flag row; pauses on hover, still for reduced motion */
.hglobe__ball::after { animation: hglobe-turn 79s linear infinite; }
@media (min-width: 561px) { .hglobe__ball::after { animation-duration: 77s; } }
@media (min-width: 1200px) { .hglobe__ball::after { animation-duration: 63s; } }
.hglobe:hover .hglobe__ball::after { animation-play-state: paused; }
@keyframes hglobe-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hglobe__ball::after { animation: none; } }
/* Our Mission road (Muhsin, 25 Nov 2026): the Paper road from Home's learning path as a background behind the untouched cards; laptop: one smooth wave edge to edge; tablet and phone: one smooth curve from the top left, through the cards, out at the bottom right. Fixed widths and dashes (non-scaling strokes): 44 / 40 / 32 wide, white 8 / 10 centre line */
.mission { position: relative; overflow: hidden; }
.aimswrap { position: relative; }
.aimswrap .aims { position: relative; z-index: 1; }
.mroad { position: absolute; z-index: 0; pointer-events: none; overflow: visible; }
.mroad path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: butt; }
.mroad__road { stroke: var(--mi-cream); stroke-width: 32px; }
.mroad__dash { stroke: var(--mi-white); stroke-width: 2.5px; stroke-dasharray: 10 12; stroke-linecap: round; }
.mroad--wide { display: none; left: calc(50% - 50vw); width: 100vw; top: 0; height: 100%; }
.mroad--tall { left: calc(50% - 50vw); width: 100vw; top: -64px; height: calc(100% + 128px); }
@media (min-width: 561px) { .mroad__road { stroke-width: 40px; } }
@media (min-width: 1200px) { .mroad--wide { display: block; } .mroad--tall { display: none; } .mroad__road { stroke-width: 44px; } }
/* Mission road, stronger (Muhsin, 25 Nov 2026): it spans the whole section, top left to bottom right, at the learning-path road's width: 44 / 40 / 32 */
.mission .aimswrap { position: static; }
.mission > .wrap { position: relative; z-index: 1; }
.mission .mroad { z-index: 0; }
.mroad--wide, .mroad--tall { left: 0; width: 100%; top: 0; height: 100%; }
/* Hero band, Cambly style (Muhsin, 25 Nov 2026): three things that set our classes apart, each with a human-made ink icon (Flaticon), on sun, all ink. Laptop and tablet one centred row, 40 between items; phone a centred column with the icons on one left edge */
.hero-band__list { list-style: none; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding: 16px var(--pad); font: 600 var(--t-body)/var(--lh-body) var(--font-text); }
.hero-band__list li { display: flex; align-items: center; gap: 12px; }
.hero-band__icon { flex: none; width: 24px; height: 24px; fill: currentColor; }
@media (max-width: 560px) { .hero-band__list { flex-direction: column; align-items: flex-start; width: max-content; margin-inline: auto; gap: 12px; padding: 20px var(--pad); } .hero-band__icon { width: 22px; height: 22px; } }
/* Band spacing (Muhsin, 25 Nov 2026): a little more air between the three points */
.hero-band__list { column-gap: 64px; }
@media (max-width: 560px) { .hero-band__list { row-gap: 16px; } }
/* Phone hero v2 (Muhsin, 25 Nov 2026): title and button on the left, the veil darkest on the left behind the words (the same left-to-right veil as laptop), and the photo slid so she sits on the right, partly off screen */
@media (max-width: 560px) {
  .hero--photo { place-items: center start; padding: 40px 0; min-height: 480px; }
  .hero--photo .hero__in { justify-items: start; text-align: left; }
  .hero--photo .hero__photo { object-position: 55% 0%; }
  .hero--photo::after { background: linear-gradient(90deg, var(--veil-dark) 0%, var(--veil-mid) 55%, var(--veil-light) 100%); }
}
/* Menu (Muhsin, 25 Nov 2026): on phone and tablet the nav button becomes a hamburger (Flaticon, ink, 22) that opens the links in a white panel under the bar: links at the lead step, 16 apart on the letters, then the orange Find A Course button at full width. The icon turns to a cross when open */
.top__menu { display: none; place-items: center; width: 44px; height: 44px; margin-right: -11px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.top__menu svg { width: 22px; height: 22px; fill: currentColor; grid-area: 1 / 1; }
.top__menu-close { display: none; }
.top.is-open .top__menu-open { display: none; } .top.is-open .top__menu-close { display: block; }
@media (max-width: 980px) {
  .top__menu { display: grid; }
  .top__nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 28px; background: var(--mi-white); box-shadow: 0 16px 24px -16px color-mix(in srgb, var(--mi-ink) 25%, transparent); }
  .top.is-open .top__nav { display: flex; }
  .top__nav a:not(.btn) { display: block; padding: 10px 0; font: 600 var(--t-lead)/var(--lh-lead) var(--font-text); }
  .top__nav .btn { margin-top: 16px; min-height: 48px; font-size: var(--t-lead); }
}
/* the three band points left-aligned on phones, on the content edge like the hero words (Muhsin, 25 Nov 2026) */
@media (max-width: 560px) { .hero-band__list { width: auto; margin-inline: 0; align-items: flex-start; } }
/* Logo V2 on phones (Muhsin, 25 Nov 2026: 22 was minuscule): 30 tall, so "INSTITUTE" reads */
@media (max-width: 560px) { .top__brand img { height: 30px; } }
/* Logo V2 on laptop and tablet (Muhsin, 25 Nov 2026): the mark as tall as the Find A Course button, 44 */
@media (min-width: 561px) { .top__brand img { height: 44px; } }
/* Footer logo (Muhsin, 25 Nov 2026): a touch bigger, 40 */
.foot__brand img { height: 40px; }
/* thin line icons (Muhsin, 25 Nov 2026): the band icons a touch bigger so the thin lines read, 28 / 24 */
.hero-band__icon { width: 28px; height: 28px; }
@media (max-width: 560px) { .hero-band__icon { width: 24px; height: 24px; } }
.top__menu svg { width: 24px; height: 24px; }
/* UIcons Regular Rounded (one family): band icons 24 / 22, menu 24 */
.hero-band__icon { width: 24px; height: 24px; }
@media (max-width: 560px) { .hero-band__icon { width: 22px; height: 22px; } }
.top__menu svg { width: 22px; height: 22px; }
/* Phone hero v3 (Muhsin, 25 Nov 2026): shorter, ending just below her elbow; the button keeps its own width (full width was rejected) */
@media (max-width: 560px) {
  .hero--photo { min-height: 360px; }
}
@media (max-width: 560px) {
  .hero--photo { min-height: 340px; }
  .hero--photo .hero__photo { height: 145%; inset: 0 0 auto 0; }
}
@media (max-width: 560px) {
  .hero--photo { min-height: 380px; }
  .hero--photo .hero__photo { height: 118%; }
}
/* Laptop hero keeps one crop at every width (Muhsin, 25 Nov 2026): the height grows with the width, so the photo always ends just below her elbow, as at 1864 wide (562 tall). A fixed height showed more of the table on narrower screens. */
@media (min-width: 1200px) { .hero--photo { min-height: 0; height: auto; aspect-ratio: 1864 / 562; } }
/* Tablet hero keeps one crop at every width too (Muhsin, 25 Nov 2026): height follows width at 2 : 1, the photo 125% tall pinned to the top so it ends just below her elbow, like laptop */
@media (min-width: 561px) and (max-width: 1199px) {
  .hero--photo { min-height: 0; height: auto; aspect-ratio: 2 / 1; padding: 48px 0; }
  .hero--photo .hero__photo { height: 125%; inset: 0 0 auto 0; object-position: 62% 0%; }
}
/* Footer logo keeps the laptop ratio to the bar logo, 40 : 44, on phones too: 30 in the bar, 27 in the footer (Muhsin, 25 Nov 2026) */
@media (max-width: 560px) { .foot__brand img { height: 27px; } }
/* Laptop circle photos at 300 (Muhsin, 25 Nov 2026): Ainur on About and the Contact hero */
@media (min-width: 1200px) { .founder__pic { width: 300px; height: 300px; } .chero__pic img { width: 300px; height: 300px; } }

/* Home: section padding measured on the letters, like About (25 Nov 2026): the title's letters sit 48 / 64 / 64 under the section's top edge, not the text box */
#world, #speak, #who { padding-top: calc(var(--section) - 5px); }
#paths, #reviews, #faq { padding-top: calc(var(--section) - 6px); }
@media (min-width: 561px) { #world, #speak, #who { padding-top: calc(var(--section) - 4px); } #paths, #reviews, #faq { padding-top: calc(var(--section) - 5px); } }
@media (min-width: 1200px) { #faq { padding-top: calc(var(--section) - 1px); } }

/* Tap targets at least 44 tall without moving anything (25 Nov 2026): the bar logo, the laptop menu links and the contact links get invisible padding, cancelled by a negative margin */
.top__brand { min-height: 44px; }
@media (min-width: 981px) { .top__nav a:not(.btn) { padding: 12px 4px; margin: -12px -4px; } } /* laptop only: bigger tap area; the phone menu keeps its own rows */
.ways dd a { display: inline-block; padding-block: 12px; margin-block: -12px; }
/* The name card on About: one inner padding on the letters (25 Nov 2026): sides and bottom equal, the top the same plus the half of the "Our Name" tag that sits inside the card */
.word { padding: calc(var(--card-pad) + 9px) var(--card-pad) calc(var(--card-pad) - 5px); }
@media (min-width: 561px) { .word { padding: calc(var(--card-pad) + 10px) var(--card-pad) calc(var(--card-pad) - 8px); } }

/* Speak Practical Malay stickers: the Malay word in Newsreader italic, like every Malay line (Muhsin, 26 Nov 2026) */
.feat__word b { font-style: italic; }
/* About founder: a "Meet The Founder" section title, centred like the other About titles (Muhsin, 26 Nov 2026) */
.founder__head { text-align: center; justify-items: center; }
.founder { padding-top: calc(var(--section) - 5px); }
@media (min-width: 561px) { .founder { padding-top: calc(var(--section) - 4px); } }
.founder .head.founder__head { margin-bottom: calc(var(--g-title-only) + 1px); }
@media (min-width: 561px) and (max-width: 1199px) { .founder .head.founder__head { margin-bottom: calc(var(--g-title-only) - 3px); } }
/* Contact hero: the sentence now ends on a line with no descenders ("around the world."), so 4 less box keeps 48 / 64 on the letters (26 Nov 2026) */
@media (max-width: 1199px) { .chero { padding-bottom: 40px; } }
@media (min-width: 561px) and (max-width: 1199px) { .chero { padding-bottom: 55px; } }
/* About founder: the role sits 8 on the letters under Ainur's name, so name and role read as one (Muhsin, 26 Nov 2026) */
.founder .founder__text .founder__name + .founder__role { margin-top: -4px !important; }
@media (max-width: 560px) { .founder .founder__text .founder__name + .founder__role { margin-top: -3px !important; } }
@media (min-width: 561px) and (max-width: 1199px) { .founder .founder__text .founder__name + .founder__role { margin-top: -4px !important; } }
@media (min-width: 561px) { .word { padding-bottom: calc(var(--card-pad) - 4px); } } /* new caption ends on "language." (26 Nov 2026): 24 / 32 on the letters */
/* About hero on laptop: the name card is wider (500) and starts further left, so the gap between the words and the card matches the page margins better (Muhsin, 26 Nov 2026) */
@media (min-width: 1200px) { .ahero__grid { grid-template-columns: minmax(0, 560px) minmax(0, 500px); } .word { width: 100%; max-width: 500px; } }
.word figcaption { text-wrap: pretty; } /* no lone word on the last line */
/* About name card: Munshi Abdullah's portrait pinned top right, like the round photo on the chapter cards (Muhsin picked A, 26 Nov 2026). 112 on tablet and laptop, 64 on phones; the word lines keep clear of it */
.word__pic { position: absolute; top: var(--card-pad); right: var(--card-pad); width: 88px; height: 88px; border-radius: 50%; object-fit: cover; filter: sepia(.25); }
.word__head, .word__type, .word__def { padding-right: calc(88px + 12px); }
@media (max-width: 411px) { .word__pic { width: 72px; height: 72px; } .word__head, .word__type, .word__def { padding-right: calc(72px + 12px); } }
@media (min-width: 561px) { .word__pic { width: 112px; height: 112px; } .word__head, .word__type, .word__def { padding-right: calc(112px + 16px); } }
@media (max-width: 374px) { .word__pic { width: 56px; height: 56px; } .word__head, .word__type, .word__def { padding-right: calc(56px + 12px); } } /* the smallest phones: the word line stays on one line */
/* Contact hero on laptop: the photo right beside the words, never pinned to the far right edge (Muhsin, 26 Nov 2026) */
@media (min-width: 1200px) { .chero__grid { grid-template-columns: fit-content(460px) auto; column-gap: 96px; justify-content: start; } .chero__pic { justify-self: start; } } /* the photo sits 96 to the right of the words; the title stays on the left content edge, the same line as the form below (Muhsin tried B, kept A, 26 Nov 2026) */
/* Home hero on phones: taller, 375 : 330, so the laptop and its keyboard show under her hands; the photo 118% tall pinned to the top, she on the right, the words on the dark left, her face clear of them (Muhsin picked B, 26 Nov 2026) */
@media (max-width: 560px) {
  .hero--photo { min-height: 0; height: auto; aspect-ratio: 375 / 330; padding: 40px 0; display: flex; flex-direction: column; justify-content: center; }
  .hero--photo .hero__photo { height: 118%; inset: 0 0 auto 0; object-position: 50% 0%; }
  @media (max-width: 392px) { .hero--photo .hero__photo { object-position: 46% 0%; } } /* narrow phones: she slides right so "Local" stays off her chin */
}
@media (max-width: 1199px) { .chero__lead { margin-inline: auto; } } /* the sentence box is centred too, not only its lines (26 Nov 2026) */
/* Full check, 26 Nov 2026: three gaps put back on the letters */
@media (max-width: 1199px) { .reach__grid { row-gap: 36px; } } @media (max-width: 560px) { .reach__grid { row-gap: 35px; } } /* Contact, phone and tablet: form card → "Contact Details" is 40 on the letters, the gap between groups (was 68) */
@media (min-width: 561px) and (max-width: 1199px) { .ahero { padding-top: calc(var(--section) - 4px); } } /* About hero, tablet: 64 on the letters (was 68) */
@media (min-width: 1200px) { #who { padding-bottom: var(--section); } } /* Home map section, laptop: 64 at the bottom (was 62) */
/* Full check, 26 Nov 2026: no lone word on a last line; the hero band on one row on tablet (it wrapped 2 + 1) */
main p { text-wrap: pretty; }
@media (min-width: 561px) and (max-width: 1199px) { .hero-band__list { column-gap: 40px; flex-wrap: nowrap; } }
@media (max-width: 1199px) { .custom { margin-top: 36px; } } /* phone and tablet: Address → Custom Requests card is 40 on the letters, the gap between groups (was 68) */
