/* Hallmark · macrostructure: Marquee Hero · genre: modern-minimal · theme: neutral-lime
 * paper-band: light · display-style: geometric-sans · accent-hue: lime
 * nav: N5 Floating pill · footer: Ft5 Statement
 *
 * Brand lime (#C9F31D) is the fill of the primary and featured buttons and of
 * their hover. On paper the fine-detail accent is a deep olive from the same hue
 * family; on the dark theme the lime itself takes that job.
 */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Base Sans";
  src: url("fonts/base-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Base Sans";
  src: url("fonts/base-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Base Sans";
  src: url("fonts/base-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Neutral paper / ink, the same scale as the dark theme. */
  --paper-0: #fafafa;
  --paper-1: #f4f4f4;
  --paper-2: #ececec;
  --paper-3: #e2e2e2;

  --ink-0: #0a0a0a;
  --ink-1: #3f3f3f;
  --ink-2: #6b6b6b;
  --ink-3: #a3a3a3;

  /* One hue family: deep olive for text and ticks on paper, lime for fills. */
  --accent: oklch(45% 0.13 112);
  --accent-soft: oklch(62% 0.12 112);
  --accent-tint: oklch(94% 0.05 112);
  --brand: #c9f31d;
  --brand-ink: #0b0b0b;
  --focus: oklch(45% 0.13 112);

  /* Base Sans sits behind every stack so Burmese never falls to a tofu face. */
  --font-display: "Geist", "Base Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: var(--font-display);
  --font-mono: "Geist Mono", "Base Sans", ui-monospace, monospace;
  --font-italic: "Instrument Serif", "Base Sans", serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.5rem;
  --text-3xl: 3.5rem;
  --text-h1: clamp(2.4rem, 6.2vw, 4.6rem);
  --text-h2: clamp(1.9rem, 3.6vw, 2.75rem);
  --text-h3: var(--text-lg);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --rule-hair: 1px solid color-mix(in oklch, var(--ink-0) 8%, transparent);
  --rule-soft: 1px solid color-mix(in oklch, var(--ink-0) 14%, transparent);

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 140ms;
  --dur-mid: 240ms;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 60px -28px rgba(0, 0, 0, 0.18), 0 4px 12px -4px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink-0);
  background:
    radial-gradient(
      1200px 600px at 12% -10%,
      color-mix(in oklch, var(--accent-tint) 70%, transparent),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 88% 6%,
      color-mix(in oklch, var(--brand) 20%, transparent),
      transparent 55%
    ),
    var(--paper-0);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--brand);
  color: var(--brand-ink);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

/* The outline follows the element's own shape. Do not set border-radius here: it
   would square off the round nav pills the moment they are focused. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1224px;
  margin: 0 auto;
  padding-inline: 2rem;
}

@media (max-width: 640px) {
  .container {
    padding-inline: 1.25rem;
  }
}

/* ───────── nav · N5 floating pill ───────── */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100% - 1.5rem);
  padding: 6px 6px 6px 16px;
  background: color-mix(in oklch, var(--paper-0) 80%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: var(--rule-soft);
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 30px -12px rgba(20, 30, 80, 0.18);
  font-size: var(--text-sm);
  transition: transform var(--dur-mid) var(--ease-out);
}

/* Scrolling down gives the top of the page back to the page; scrolling up brings the
   pill in again. The offset clears the shadow so nothing peeks at the top edge. */
.nav.is-hidden {
  transform: translate(-50%, calc(-100% - 24px));
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--paper-2);
  /* The avatar is a photo on white; a hairline keeps it from floating on paper. */
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--ink-0) 12%, transparent);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav__brand-name {
  font-size: var(--text-sm);
}

.nav__links {
  display: flex;
  gap: 2px;
  margin-left: 0.75rem;
}

.nav__links a {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  color: var(--ink-1);
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.nav__links a:hover {
  background: var(--paper-2);
  color: var(--ink-0);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink-0);
  color: var(--paper-0);
  font-weight: 500;
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.nav__cta:hover {
  background: var(--brand);
  color: var(--brand-ink);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto 0.25rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-1);
}

.lang-switch a,
.lang-switch button,
.lang-switch .is-active {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  line-height: 1;
}

.lang-switch button {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.lang-switch a:hover,
.lang-switch button:hover {
  background: var(--paper-2);
  color: var(--ink-0);
}

.lang-switch .is-active {
  background: var(--paper-2);
  color: var(--ink-0);
}

/* One page, two languages: every string carries both, CSS shows one. The holding page
 * sets <html lang> before paint, so neither language flashes. */
html[lang="my"] [data-en],
html[lang="en"] [data-my] {
  display: none;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-1);
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.theme-toggle:hover {
  background: var(--paper-2);
  color: var(--ink-0);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle__sun {
  display: none;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  gap: 5px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  flex: none;
}

.nav-toggle span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--ink-0);
  transition: transform var(--dur-fast) var(--ease-out);
}

.nav-toggle.is-active span:first-child {
  transform: translateY(3.2px) rotate(45deg);
}

.nav-toggle.is-active span:last-child {
  transform: translateY(-3.2px) rotate(-45deg);
}

@media (max-width: 1020px) {
  .nav__links {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    margin: 0;
    padding: 8px;
    background: var(--paper-0);
    border: var(--rule-soft);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -30px rgba(20, 30, 80, 0.3);
  }

  .nav.is-open .nav__links a {
    padding: 12px 14px;
  }
}

@media (max-width: 560px) {
  .nav {
    padding-left: 12px;
  }

  .nav__brand-name {
    display: none;
  }

  .nav__cta {
    font-size: var(--text-xs);
    padding: 8px 12px;
  }
}

/* 320px phones: the login pill is one item more than the bar can hold, so the gaps
   give the last few pixels back rather than the pill clipping its contents. */
@media (max-width: 340px) {
  .nav {
    gap: 0.25rem;
  }
}

/* ───────── hero ───────── */
.hero {
  padding-top: 148px;
  padding-bottom: 5rem;
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--ink-0) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--ink-0) 6%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 25%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 25%, transparent 70%);
  pointer-events: none;
}

.hero__live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: var(--rule-soft);
  background: var(--paper-0);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-1);
}

.hero__live .dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 35%, transparent);
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

@media (max-width: 980px) {
  .hero__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.hero h1 {
  font-size: var(--text-h1);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0.45em 0 0.35em;
  max-width: 13ch;
}

.hero h1 em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.hero__sub {
  font-size: var(--text-md);
  color: var(--ink-1);
  max-width: 46ch;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn--primary {
  background: var(--ink-0);
  color: var(--paper-0);
  border-color: var(--ink-0);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 8px 24px -10px rgba(0, 10, 60, 0.4);
}

.btn--primary:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-0);
  border-color: color-mix(in oklch, var(--ink-0) 16%, transparent);
}

.btn--ghost:hover {
  background: var(--paper-2);
  border-color: color-mix(in oklch, var(--ink-0) 22%, transparent);
}

.btn--brand {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}

.btn--brand:hover {
  background: var(--paper-0);
  border-color: var(--paper-0);
  color: var(--ink-0);
  transform: translateY(-1px);
}

.btn--block {
  width: 100%;
}

.hero__fineprint {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-2);
}

.hero__fineprint span {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.hero__fineprint span + span::before {
  content: "·";
  color: var(--ink-3);
}

@media (max-width: 520px) {
  .hero__fineprint span + span::before {
    content: "";
    display: none;
  }
}

/* monthly plan card · pure-CSS art */
.invoice {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  padding: 1.75rem 1.85rem;
  background: linear-gradient(180deg, var(--paper-0), var(--paper-1));
  border: var(--rule-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  transform: rotate(0.5deg);
}

.invoice::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px dashed color-mix(in oklch, var(--ink-0) 10%, transparent);
  border-radius: calc(var(--radius-lg) + 8px);
  pointer-events: none;
}

.invoice__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: var(--rule-hair);
}

.invoice__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.invoice__tag {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: color-mix(in oklch, var(--brand) 55%, transparent);
  color: var(--brand-ink);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.invoice__rows {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}

.invoice__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: var(--rule-hair);
  font-size: var(--text-sm);
  color: var(--ink-1);
}

.invoice__row:last-child {
  border-bottom: 0;
}

.invoice__row strong {
  font-weight: 500;
  color: var(--ink-0);
  white-space: nowrap;
}

.invoice__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.35rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: color-mix(in oklch, var(--accent-tint) 65%, transparent);
  font-size: var(--text-xs);
  color: var(--ink-1);
}

.invoice__total .num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-0);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .invoice {
    margin-inline: 0;
    transform: none;
  }
}

/* ───────── section furniture ───────── */
.section {
  padding: 4.5rem 0;
  border-top: var(--rule-hair);
}

/* On the home page the classes section is the whole page: no divider above it, and
   enough room under the fixed nav to read as a page top rather than a cut-off. */
main > .section:first-child {
  border-top: 0;
  padding-top: clamp(5.5rem, 14vw, 8rem);
}

.label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.85rem;
}

.label::before {
  content: "◇ ";
  color: var(--accent);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.section-head--single {
  grid-template-columns: 1fr;
  max-width: 60ch;
}

.section-head h1,
.section-head h2 {
  font-size: var(--text-h2);
  letter-spacing: -0.03em;
}

.section-head__desc {
  font-size: var(--text-md);
  color: var(--ink-1);
  max-width: 54ch;
}

.section-head__desc p + p {
  margin-top: 1rem;
}

@media (max-width: 820px) {
  .section {
    padding: 3.25rem 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
  }
}

/* ───────── three steps ───────── */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 880px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--paper-0);
  border: var(--rule-soft);
  border-radius: var(--radius-lg);
}

.feature__art {
  position: relative;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: var(--rule-hair);
  background: linear-gradient(180deg, var(--paper-0), var(--paper-1));
  overflow: hidden;
}

.feature__art::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: var(--rule-hair);
  border-radius: var(--radius-md);
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--ink-0) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--ink-0) 7%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
}

.feature__num {
  position: relative;
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--accent);
  background: var(--paper-0);
  padding: 4px 14px;
  border: var(--rule-soft);
  border-radius: var(--radius-pill);
}

.feature h3 {
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.feature p {
  font-size: var(--text-sm);
  color: var(--ink-1);
}

/* ───────── pricing ───────── */
.pricing-head {
  max-width: 46ch;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.pricing-head h2 {
  font-size: var(--text-h2);
  letter-spacing: -0.03em;
}

.tier {
  max-width: 620px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--ink-0);
  color: var(--paper-0);
  border: 1px solid var(--ink-0);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 60, 0.55);
}

.tier__name {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.tier__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0.6rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.tier__price small {
  font-size: 0.34em;
  font-weight: 400;
  color: color-mix(in oklch, var(--paper-0) 70%, transparent);
}

.tier__desc {
  font-size: var(--text-sm);
  color: color-mix(in oklch, var(--paper-0) 75%, transparent);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tier__features {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--text-sm);
}

.tier__features li {
  position: relative;
  padding-left: 24px;
  color: color-mix(in oklch, var(--paper-0) 78%, transparent);
}

.tier__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--brand);
  font-weight: 700;
}

/* ───────── classroom rules ───────── */
.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 760px) {
  .rules {
    grid-template-columns: 1fr;
  }
}

.rules li {
  padding: 1.5rem;
  background: var(--paper-1);
  border: var(--rule-hair);
  border-radius: var(--radius-lg);
}

.rules h3 {
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.rules p {
  font-size: var(--text-sm);
  color: var(--ink-1);
}

/* ───────── faq ───────── */
.faq {
  max-width: 76ch;
  border-top: var(--rule-hair);
}

.faq details {
  border-bottom: var(--rule-hair);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.15rem 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  padding: 0 0 1.25rem;
  max-width: 68ch;
  color: var(--ink-1);
  font-size: var(--text-sm);
}

/* ───────── closing cta ───────── */
.cta {
  padding: 4rem 0 5rem;
}

.cta__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 4.5rem 2rem;
  border-radius: var(--radius-xl);
  background: var(--ink-0);
  color: var(--paper-0);
  text-align: center;
}

.cta__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      620px 220px at 18% 115%,
      color-mix(in oklch, var(--accent) 60%, transparent),
      transparent 70%
    ),
    radial-gradient(
      520px 230px at 92% -15%,
      color-mix(in oklch, var(--brand) 32%, transparent),
      transparent 70%
    );
}

.cta__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.cta__panel h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin: 0 auto 0.75rem;
}

.cta__panel h2 em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
}

.cta__panel p {
  max-width: 46ch;
  margin: 0 auto 1.75rem;
  font-size: var(--text-md);
  color: color-mix(in oklch, var(--paper-0) 78%, transparent);
}

/* ───────── footer · statement ───────── */
.footer {
  padding: 4rem 0 2.5rem;
  border-top: var(--rule-hair);
}

.footer__statement {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 2.5rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  border-top: var(--rule-hair);
  font-size: var(--text-sm);
  color: var(--ink-1);
}

.footer__links a:hover {
  color: var(--ink-0);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: var(--rule-hair);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-2);
}

/* ───────── classes ─────────
 * Live batches on the home page: a timetable you can read without opening anything.
 * The banner borrows the indigo and lime tints so three cards read apart without a
 * third accent. Sample content lives in the markup, not in a CMS. */
.classes {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.class-card {
  display: flex;
  flex: 1 1 300px;
  max-width: 420px;
  flex-direction: column;
  background: var(--paper-0);
  border: var(--rule-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.class-card__art {
  position: relative;
  display: grid;
  align-content: end;
  gap: 0.4rem;
  min-height: 156px;
  padding: 1.25rem;
  border-bottom: var(--rule-hair);
  background: linear-gradient(165deg, var(--paper-1), var(--paper-0) 72%);
}

.class-card__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      to right,
      color-mix(in oklch, var(--ink-0) 7%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      color-mix(in oklch, var(--ink-0) 7%, transparent) 1px,
      transparent 1px
    );
  background-size: 22px 22px;
}

.class-card[data-art="accent"] .class-card__art {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--accent) 16%, var(--paper-0)),
    var(--paper-0)
  );
}

.class-card[data-art="brand"] .class-card__art {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--brand) 42%, var(--paper-0)),
    var(--paper-0)
  );
}

.class-card__level {
  position: relative;
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-1);
}

.class-card__art-title {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.class-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
}

.class-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.class-card__head h2 {
  margin: 0;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  /* Burmese stacks tall glyphs; 1.1 clips the ascenders on a two-line title. */
  line-height: 1.35;
}

.class-card__batch {
  flex: none;
  padding: 2px 8px;
  border: var(--rule-hair);
  border-radius: var(--radius-pill);
  background: var(--paper-1);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-1);
  white-space: nowrap;
}

.class-card__meta {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--text-sm);
}

.class-card__meta > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-top: 0.5rem;
  border-top: var(--rule-hair);
}

.class-card__meta dt {
  color: var(--ink-2);
}

.class-card__meta dd {
  margin: 0 0 0 auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-0);
  text-align: right;
}

.class-card .btn {
  margin-top: auto;
}

/* A closed batch: grey the card and stop its button. */
.class-card.is-full .class-card__art,
.class-card.is-full .btn {
  opacity: 0.45;
  pointer-events: none;
}

/* ───────── class detail ─────────
 * One batch read as a sheet: breadcrumb, a week strip standing in for a photo, then
 * the long copy with the facts pinned alongside. Same paper and ink as the home page;
 * the strip is the only new furniture. */
.class-page {
  padding-top: clamp(5.5rem, 12vw, 7.5rem);
  padding-bottom: 5rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-2);
}

.crumbs a {
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, var(--ink-2) 40%, transparent);
  text-underline-offset: 3px;
}

.crumbs a:hover {
  color: var(--ink-0);
}

.crumbs__sep {
  color: var(--ink-2);
}

.class-hero {
  margin-top: 2.5rem;
}

.class-hero h1 {
  font-size: var(--text-h1);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 16ch;
}

.class-hero h1 em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.class-hero__sub {
  margin-top: 1.1rem;
  max-width: 46ch;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--ink-1);
}

.week {
  display: flex;
  gap: 6px;
  max-width: 560px;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.week li {
  flex: 1;
  padding: 0.55rem 0.25rem;
  border: var(--rule-hair);
  border-radius: var(--radius-md);
  background: var(--paper-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-align: center;
  color: var(--ink-2);
}

.week li[data-on] {
  background: var(--ink-0);
  border-color: var(--ink-0);
  color: var(--paper-0);
}

.class-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(270px, 1fr);
  gap: 3.5rem;
  align-items: start;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: var(--rule-hair);
}

.class-body {
  display: grid;
  gap: 2.75rem;
}

.class-body h2 {
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.class-body p {
  margin-top: 0.9rem;
  max-width: 62ch;
  color: var(--ink-1);
}

.class-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.class-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-1);
}

.class-list li::before {
  content: "◇";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.class-steps {
  display: grid;
  gap: 1.1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.class-steps li {
  position: relative;
  padding-left: 2.25rem;
  counter-increment: step;
}

.class-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.2em;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
}

.class-steps h3 {
  font-size: var(--text-base);
  letter-spacing: -0.01em;
}

.class-steps p {
  margin-top: 0.25rem;
  font-size: var(--text-sm);
  color: var(--ink-1);
}

.class-back {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-2);
}

.class-back:hover {
  color: var(--ink-0);
}

.class-side {
  position: sticky;
  top: 96px;
}

.class-facts {
  padding: 1.5rem;
  background: var(--paper-0);
  border: var(--rule-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.class-facts dl {
  display: grid;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
}

.class-facts dl > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-top: 0.75rem;
  border-top: var(--rule-hair);
}

.class-facts dt {
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.class-facts dd {
  margin: 0 0 0 auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-align: right;
}

.class-facts .btn {
  margin-top: 1.5rem;
}

.class-facts__note {
  margin-top: 0.9rem;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--ink-2);
}

/* Below the split, the facts come first: they are the reason the visitor is here. */
@media (max-width: 900px) {
  .class-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2.25rem;
  }

  .class-side {
    position: static;
    order: -1;
  }
}

/* ───────── Burmese ─────────
 * Base Sans sets Burmese heavier and looser than Geist sets Latin, so the display
 * scale steps down and the tracking goes. Mono labels keep their numerals. */
html[lang="my"] {
  --text-h1: clamp(1.95rem, 3.6vw + 0.85rem, 3.6rem);
  --text-h2: clamp(1.6rem, 2.4vw + 0.8rem, 2.2rem);
}

html[lang="my"] body {
  line-height: 1.75;
}

html[lang="my"] h1,
html[lang="my"] h2,
html[lang="my"] h3 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
}

html[lang="my"] .class-card__art-title {
  letter-spacing: 0;
  line-height: 1.5;
}

html[lang="my"] .hero h1,
html[lang="my"] .class-hero h1 {
  letter-spacing: 0;
  line-height: 1.45;
  max-width: 22ch;
}

html[lang="my"] .section-head h2,
html[lang="my"] .pricing-head h2,
html[lang="my"] .cta__panel h2 {
  letter-spacing: 0;
  line-height: 1.45;
}

html[lang="my"] em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  color: inherit;
  letter-spacing: 0;
}

html[lang="my"] .label,
html[lang="my"] .hero__live,
html[lang="my"] .tier__name,
html[lang="my"] .invoice__tag,
html[lang="my"] .footer__legal {
  text-transform: none;
  letter-spacing: 0;
}

html[lang="my"] .hero__sub,
html[lang="my"] .class-hero__sub,
html[lang="my"] .class-body p,
html[lang="my"] .class-steps p,
html[lang="my"] .section-head__desc,
html[lang="my"] .rules p,
html[lang="my"] .faq details p,
html[lang="my"] .tier__features,
html[lang="my"] .tier__desc {
  line-height: 1.85;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ───────── dark theme ─────────
 * Same tokens, restated. The class is set before first paint by the inline script in
 * each page head and stored under the portal's `theme` key, so a student's choice
 * follows them from these pages into /portal/ and back. */
html {
  color-scheme: light;
}

html.dark {
  color-scheme: dark;

  --paper-0: #0a0a0a;
  --paper-1: #111111;
  --paper-2: #171717;
  --paper-3: #262626;

  --ink-0: #f5f5f5;
  --ink-1: #d4d4d4;
  --ink-2: #a3a3a3;
  --ink-3: #737373;

  /* On paper lime cannot carry text; on black it can, so it becomes the one accent. */
  --accent: var(--brand);
  --accent-soft: #dcf86a;
  --accent-tint: oklch(24% 0.06 112);
  --focus: var(--brand);

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 60px -28px rgba(0, 0, 0, 0.7), 0 4px 12px -4px rgba(0, 0, 0, 0.4);
}

html.dark .theme-toggle__sun {
  display: block;
}

html.dark .theme-toggle__moon {
  display: none;
}

/* The featured price card and the closing panel are dark panels on a light page.
 On a dark page they step up to a raised surface instead, and their inner greys
 have to be restated or they vanish. */
html.dark .tier,
html.dark .cta__panel {
  background: var(--paper-2);
  color: var(--ink-0);
}

html.dark .tier {
  border-color: var(--paper-3);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.7);
}

html.dark .tier__price small {
  color: var(--ink-2);
}

html.dark .tier__desc {
  color: var(--ink-1);
  border-bottom-color: color-mix(in oklch, var(--ink-0) 14%, transparent);
}

html.dark .tier__features li,
html.dark .cta__panel p {
  color: var(--ink-1);
}

/* Lime on a near-white monogram is unreadable; the tag's 55% lime tint reads as
 olive over a dark card. Both go solid. */
html.dark .invoice__tag {
  background: var(--brand);
  color: var(--brand-ink);
}

/* Light-theme rim highlights become mud on dark, so they shrink to a hairline. */
html.dark .nav {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 8px 30px -12px rgba(0, 0, 0, 0.6);
}

html.dark .nav.is-open .nav__links {
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

/* On dark the ink fill would turn the primary button white, which reads as
   secondary. Make it lime, like the portal's, and drop the light-theme inset rim
   that the ink fill needed. */
html.dark .btn--primary {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
  box-shadow: 0 8px 24px -12px color-mix(in oklch, var(--brand) 45%, transparent);
}

html.dark .nav__cta {
  background: var(--brand);
  color: var(--brand-ink);
}

html.dark .nav__cta:hover {
  background: var(--paper-1);
  color: var(--ink-0);
}

html.dark .btn--primary:hover {
  background: var(--paper-1);
  border-color: color-mix(in oklch, var(--ink-0) 22%, transparent);
  color: var(--ink-0);
}

