/* FONTS — stored in the fonts folder so they always load.
   Thai text uses Noto Sans Thai; the Thai hero headline uses Mitr. */
@font-face { font-family: "Noto Sans Thai"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/noto-thai-400.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/noto-thai-500.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/noto-thai-600.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/noto-thai-700.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Mitr"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/mitr-700.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Mitr"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/mitr-800.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jakarta-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jakarta-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/jakarta-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/jakarta-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/jakarta-800.woff2") format("woff2"); }

/* ============================================================
   COLORS — change these to restyle the whole site.
   First block = light mode, second block = dark mode.
   ============================================================ */
:root {
  --bg: #FBF6EF;
  --text: #2B1408;
  --muted: #6E5444;
  --card: #FFFFFF;
  --line: rgba(59, 28, 10, 0.12);
  --ink: #2B1408;
  --on-ink: #FBF6EF;
  --red: #C8372C;
  --red-text: #C23A2E;
  --gold: #E9B65C;
  --chip: #F3E8DA;
  --brown: #3B1C0A;
  --cream: #FBF3E8;
  --cream-muted: rgba(251, 243, 232, 0.78);
  --nav: rgba(255, 252, 248, 0.66);
  --contact: #F3E8DA;
  --glow-red: rgba(200, 55, 44, 0.14);
  --glow-gold: rgba(233, 182, 92, 0.18);
  --shadow: 0 1px 2px rgba(59, 28, 10, 0.05), 0 6px 20px rgba(59, 28, 10, 0.06);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #140B07;
  --text: #F7EFE6;
  --muted: rgba(247, 239, 230, 0.7);
  --card: #21140D;
  --line: rgba(255, 255, 255, 0.12);
  --ink: #F7EFE6;
  --on-ink: #1A0F0A;
  --red-text: #F0766A;
  --chip: rgba(255, 255, 255, 0.08);
  --brown: #2A170D;
  --nav: rgba(33, 20, 13, 0.62);
  --contact: #1C110B;
  --glow-red: rgba(200, 55, 44, 0.16);
  --glow-gold: rgba(233, 182, 92, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

/* Follow the device setting when the visitor hasn't picked one */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #140B07;
    --text: #F7EFE6;
    --muted: rgba(247, 239, 230, 0.7);
    --card: #21140D;
    --line: rgba(255, 255, 255, 0.12);
    --ink: #F7EFE6;
    --on-ink: #1A0F0A;
    --red-text: #F0766A;
    --chip: rgba(255, 255, 255, 0.08);
    --brown: #2A170D;
    --nav: rgba(33, 20, 13, 0.62);
    --contact: #1C110B;
    --glow-red: rgba(200, 55, 44, 0.16);
    --glow-gold: rgba(233, 182, 92, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Noto Sans Thai", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.05; font-weight: 800; }
h1 { font-size: clamp(48px, 8vw, 92px); letter-spacing: -0.05em; line-height: 0.98; }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: 26px; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.red { color: var(--red-text); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); max-width: 34em; text-wrap: pretty; }
.eyebrow { color: var(--red-text); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
#courses .eyebrow { margin-bottom: 20px; }

/* background glows */
.glow { position: fixed; width: 640px; height: 640px; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: -1; }
.glow-red { background: var(--glow-red); top: -200px; right: -220px; }
.glow-gold { background: var(--glow-gold); bottom: -260px; left: -240px; }

/* ============================================================
   NAV
   ============================================================ */
.nav-wrap { position: sticky; top: 16px; z-index: 10; padding-inline: 20px; }
.nav {
  max-width: 1120px; margin: 16px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 12px;
  background: var(--nav);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.avatar {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 14px;
}
.logo { height: 15px; width: auto; flex: none; margin-left: 14px; }
.logo-on-dark { display: none; }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-on-light { display: none; }
  :root:not([data-theme="light"]) .logo-on-dark { display: block; }
}
.avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--nav); color: var(--text); cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.theme-toggle:hover { transform: translateY(-2px); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}

/* ============================================================
   BUTTONS, PILLS, CARDS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-gold { background: var(--gold); color: #2B1408; }
.btn-outline { border-color: var(--line); background: var(--card); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.pill {
  display: inline-flex; align-items: center; width: fit-content;
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.pill-xs { font-size: 12px; padding: 5px 10px; }
.pill-soft { background: var(--chip); color: var(--text); }
.pill-gold { background: var(--gold); color: #2B1408; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); background: var(--card);
}
.tags-sm li { font-size: 12px; padding: 5px 10px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 28px; box-shadow: var(--shadow);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: 72px; }
.section > h2 { margin-bottom: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
  padding-top: 120px; padding-bottom: 90px;
}
.hero-text { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.hero-card-wrap { position: relative; padding-bottom: 28px; }
.feedback-card { display: flex; flex-direction: column; gap: 18px; }
.feedback-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.essay { font-size: 16px; line-height: 1.75; }
.essay s { color: var(--muted); }
.essay .fix { color: var(--red-text); font-weight: 700; }
.essay mark { background: rgba(233, 182, 92, 0.32); color: inherit; padding: 2px 3px; border-radius: 4px; }
.note { display: flex; gap: 12px; background: var(--chip); padding: 16px; border-radius: 16px; }
.note strong { font-size: 14px; }
.note p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.float-pill {
  position: absolute; left: -24px; bottom: 0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--brown); color: var(--cream); font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(43, 20, 8, 0.25);
}
.float-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* courses */
.course { display: flex; flex-direction: column; gap: 14px; }
.course h3 { color: var(--red-text); }
.course p { font-size: 15px; color: var(--muted); flex: 1; }
.format { padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }

/* pricing */
.price-card { display: flex; flex-direction: column; gap: 16px; padding: 36px; }
.price-card h3 { font-size: 30px; }
.price-card .spacer { flex: 1; }
.brown {
  background: radial-gradient(120% 120% at 0% 0%, #6E2416 0%, var(--brown) 60%);
  border-color: transparent; color: var(--cream);
}
.brown p { color: var(--cream-muted); }
.price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0; }
.price b { font-size: 44px; color: var(--gold); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { font-size: 15px; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-photo {
  width: 100%; height: auto; max-height: 640px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center bottom;
  border-radius: 24px; background: var(--chip); box-shadow: var(--shadow);
}
.about-text { display: flex; flex-direction: column; gap: 20px; }
.edu { border-top: 1px solid var(--line); }
.edu li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.edu strong { font-size: 15px; }
.edu span { font-size: 14px; color: var(--muted); }

/* steps */
.step { display: flex; flex-direction: column; gap: 14px; }
.num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; }
.num-red { background: var(--red); color: #fff; }
.num-gold { background: var(--gold); color: #2B1408; }

/* contact */
.contact {
  padding: 64px; border-radius: 32px; background: var(--contact);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.contact::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: var(--glow-red); filter: blur(60px); pointer-events: none;
}
.contact h2 { position: relative; z-index: 1; }
.contact-grid { margin-top: 32px; position: relative; z-index: 1; }
.contact-item {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  transition: transform .15s ease;
}
.contact-item:hover { transform: translateY(-2px); }
.contact-item strong { font-size: 17px; }

/* footer */
.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 32px 48px; margin-top: 48px; border-top: 1px solid var(--line); font-size: 14px;
}

/* ============================================================
   TABLET
   ============================================================ */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; padding-top: 72px; }
  .hero-card-wrap { max-width: 560px; }
  .float-pill { left: 16px; }
}

/* ============================================================
   PHONE
   ============================================================ */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .brand span:last-child { display: none; }
  .section { padding-block: 52px; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .card { padding: 22px; }
  .price-card { padding: 28px; }
  .contact { padding: 32px 22px; }
  .lead { font-size: 16px; }
  .hero { padding-top: 48px; gap: 40px; }
  .float-pill { position: static; margin-top: 12px; }
  .hero-card-wrap { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.dot { color: #C8372C; }

/* Fade-in on scroll (turned on by script.js) */
.has-reveal .hero-text > *, .has-reveal .section .eyebrow, .has-reveal .section h2,
.has-reveal .card, .has-reveal .about-photo, .has-reveal .about-text > *, .has-reveal .contact {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.has-reveal .is-in, .has-reveal .section .is-in { opacity: 1; transform: none; }
.has-reveal .card.is-in:hover { transform: none; }

/* Buttons sit at the bottom of their cards */
.price-card > .btn, .step > .btn-row { margin-top: auto; }
.price-card, .step { min-height: 100%; }
.step { gap: 14px; }
.step-head { display: flex; align-items: center; gap: 14px; }
.step-head h3 { margin: 0; }
.step { gap: 20px; padding: 24px 28px; }

/* EN / TH switch */
.lang {
  height: 38px; min-width: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--text);
}
.lang:hover { background: var(--chip); }

/* Thai page */
:lang(th) body, body:lang(th) { font-family: "Plus Jakarta Sans", "Noto Sans Thai", system-ui, sans-serif; line-height: 1.6; }
html[lang="th"] h2, html[lang="th"] h3 { letter-spacing: 0; line-height: 1.3; }
html[lang="th"] .lead { line-height: 1.7; }
.nowrap { white-space: nowrap; }

/* Hero fills the first screen; the rest starts below the fold */
.hero {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  min-height: calc(100vh - 96px); min-height: calc(100svh - 96px);
  padding-top: 24px; padding-bottom: 72px;
}
@media (max-width: 760px) { .hero { padding-top: 16px; padding-bottom: 56px; } }

/* Logo shows on phones only; desktop shows the name */
@media (min-width: 761px) {
  .nav .brand .logo { display: none !important; }
  .nav .brand > span { margin-left: 14px; }
}

/* ============================================================
   RATES AND TERMS PAGE (tutoring/)
   ============================================================ */
.terms { max-width: 860px; padding-top: 56px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 16px; }
.back { font-size: 14px; font-weight: 600; color: var(--muted); width: fit-content; }
.back:hover { color: var(--text); }
.terms-intro { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 24px; }
.terms-title { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.045em; line-height: 1; }
.terms-sec { display: flex; flex-direction: column; gap: 16px; }
.terms-sec h2 { font-size: 22px; letter-spacing: -0.02em; }
.terms-head { display: flex; align-items: center; gap: 14px; }
.num-soft { background: var(--red); color: #fff; width: 32px; height: 32px; font-size: 14px; flex: none; }
.terms-list { display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.terms-list li { position: relative; padding-left: 20px; }
.terms-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.rates-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.rates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 460px; }
.rates th, .rates td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rates th:first-child { text-align: left; }
.rates thead th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--chip); }
.rates tbody th { font-weight: 700; }
.rates tbody tr:last-child > * { border-bottom: 0; }
.rates td:nth-child(2) { color: var(--red-text); font-weight: 700; }
.terms-cta { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; padding: 36px; }
.terms-cta h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--cream); }
.btn-outline-cream { border-color: rgba(251,243,232,.35); color: var(--cream); background: transparent; }
@media (max-width: 760px) {
  .terms { padding-top: 32px; }
  .terms-cta { padding: 28px 22px; }
  .terms-cta .btn { width: 100%; }
}
/* Rates table becomes one block per course on phones */
@media (max-width: 600px) {
  .rates { min-width: 0; }
  .rates thead { display: none; }
  .rates tbody tr { display: grid; grid-template-columns: 1fr 1fr; padding: 14px 16px; gap: 8px 16px; border-bottom: 1px solid var(--line); }
  .rates tbody tr:last-child { border-bottom: 0; }
  .rates tbody th { grid-column: 1 / -1; padding: 0; border: 0; font-size: 17px; }
  .rates td { display: flex; justify-content: space-between; padding: 0; border: 0; }
  .rates td::before { content: attr(data-l); color: var(--muted); font-weight: 500; }
}
h1 .line { display: block; }

/* About: heading lines up with the top of the photo, degrees with the bottom */
@media (min-width: 761px) {
  .about { align-items: stretch; }
  .about-text { justify-content: flex-start; gap: 16px; padding: 4px 0; }
  .about-text .edu { margin-top: auto; }
}
@media (max-width: 600px) { h2 .nowrap { white-space: normal; } }
@media (max-width: 600px) { .lead .nowrap { white-space: normal; } }

/* "Coming soon" sits on the same line as the price beside it */
.price.soon span { color: var(--muted); }
.price.soon b { visibility: hidden; width: 0; overflow: hidden; display: inline-block; }
@media (max-width: 760px) { .about .about-photo { order: 2; } .about .about-text { order: 1; } }

/* Every section fills the screen like the hero, content centered top to bottom */
main > .section {
  min-height: calc(100vh - 96px); min-height: calc(100svh - 96px);
  display: flex; flex-direction: column; justify-content: center;
}
main > .section.about { display: grid; align-content: center; }

/* ---------- Bigger cards on tablet and desktop ---------- */
@media (min-width: 761px) {
  /* Courses: square cards, name on top, description at the bottom */
  .course { aspect-ratio: 1 / 1; justify-content: space-between; padding: 32px; }
  .course h3 { font-size: clamp(30px, 3vw, 40px); }
  .course p { flex: 0 0 auto; font-size: 16px; }

  /* Pricing: tall cards, title on top, price and button at the bottom */
  .price-card { min-height: clamp(380px, 58vh, 540px); padding: 44px; }
  .price-card h3 { font-size: clamp(34px, 3.4vw, 46px); }
  .price-card .price { margin-top: auto; }
  .price-card > .btn { margin-top: 8px; }
}

/* Course names: white in dark mode */
:root[data-theme="dark"] .course h3 { color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .course h3 { color: var(--text); } }

/* ============================================================
   PROPORTIONS — one type scale, one rhythm (desktop and tablet)
   Display (hero) · Section title · Card title · Body
   ============================================================ */
:root { --t-section: clamp(36px, 4vw, 54px); --t-card: clamp(26px, 2.4vw, 34px); --card-tall: clamp(340px, 44vh, 420px); }

@media (min-width: 761px) {
  .container { width: min(1240px, 100% - 64px); }
  .nav { max-width: 1240px; }
  h1 { font-size: clamp(64px, 8vw, 112px); }
  .hero-text { gap: 28px; max-width: 900px; }
  .hero .btn { padding: 16px 28px; font-size: 16px; }

  /* Every section opens the same way: red label, then content */
  main > .section > .eyebrow { margin-bottom: 24px; font-size: 15px; }
  #start h2, .about-text h2, .contact h2 { font-size: var(--t-section); }
  #start > h2 { margin-top: -8px; margin-bottom: 28px; }

  /* All card titles share one size */
  .course h3, .price-card h3, .step h3 { font-size: var(--t-card); letter-spacing: -0.03em; }

  /* Courses: four squares */
  .grid-4 { gap: 20px; }
  .grid-2 { gap: 20px; }
  .course { aspect-ratio: 1 / 1; padding: 32px; }

  /* Pricing and Free Consultation: same height, title on top, action at the bottom */
  .price-card, .step { min-height: var(--card-tall); padding: 36px; }
  .step { justify-content: flex-start; }
  .step > .btn-row { margin-top: auto; }
  .step .btn-sm { padding: 14px 24px; font-size: 15px; }
  .num { width: 40px; height: 40px; }

  /* Contact box matches the card rhythm */
  .contact { padding: 56px; min-height: var(--card-tall); display: flex; flex-direction: column; justify-content: center; }
}

/* Course descriptions: tops line up across all four cards; the longest one sits on the bottom edge */
@media (min-width: 761px) {
  .grid-4 { grid-template-rows: auto 1fr auto; }
  .grid-4 > .course { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  .grid-4 > .course > h3 { grid-row: 1; }
  .grid-4 > .course > p { grid-row: 3; align-self: start; }
}
@media (min-width: 761px) {
  .grid-4 > .course { aspect-ratio: auto; }
}
@media (min-width: 1081px) {
  /* one row of four squares: the row is as tall as one card is wide */
  .grid-4 { min-height: calc((min(1240px, 100vw - 64px) - 60px) / 4); }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .grid-4 { grid-template-rows: auto minmax(160px, 1fr) auto auto minmax(160px, 1fr) auto; row-gap: 0; }
  .grid-4 > .course:nth-child(n+3) { margin-top: 20px; }
}
html[lang="th"] .hero h1 { font-family: "Plus Jakarta Sans", "Mitr", "Noto Sans Thai", sans-serif; font-weight: 700; letter-spacing: 0; line-height: 1.12; }
.brand-red { font-style: normal; }

/* ============================================================
   HERO CARD — example of Nat's feedback on an essay
   ============================================================ */
.hero-card-wrap { width: 100%; max-width: 600px; justify-self: end; padding-bottom: 30px; }
.feedback-card { padding: 34px; gap: 22px; }
.fb-task { font-size: 14px; font-weight: 600; }
.essay { font-size: 19px; line-height: 1.75; }
.note { align-items: flex-start; }
.note p { font-size: 16px; line-height: 1.6; }
@media (min-width: 761px) { .hero { padding-bottom: 120px; } }
html[lang="th"] .note p { line-height: 1.75; }
.float-pill { margin: 0; }
.lead.hero-sub .nowrap { white-space: nowrap; }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 30em; margin-top: -8px; }
@media (max-width: 760px) {
  .hero-card-wrap { justify-self: stretch; max-width: none; padding-bottom: 0; }
  .feedback-card { padding: 22px; gap: 16px; }
  .essay { font-size: 16px; }
}
/* Tablet and desktop: always side by side; the headline shrinks to fit its column */
@media (min-width: 761px) {
  .hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; column-gap: clamp(24px, 3vw, 40px); }
  .hero h1 { font-size: clamp(44px, 6vw, 84px); }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .hero-text { gap: 22px; }
  .hero .btn { padding: 14px 22px; font-size: 15px; }
}


@media (max-width: 600px) { .lead.hero-sub .nowrap { white-space: nowrap; } }
