/* ==========================================================================
   nolu — design system
   White canvas, black type; red and yellow as separate accents (never a red/yellow/red stripe).
   ========================================================================== */

/* Fonts are hosted on this site (no requests to Google). Licence: SIL Open Font License. */
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin.woff2") format("woff2"); font-weight: 400; 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; }

:root {
  /* Brand */
  --white: #ffffff;
  --ink: #000000;
  --red: #ff3131;
  --yellow: #ffde59;

  /* Derived */
  --ink-2: #333333;          /* secondary text   ~12.6:1 */
  --ink-3: #646464;          /* muted text       ~5.9:1  */
  --red-ink: #d11a1a;        /* red for small text on white ~5.3:1 */
  --red-hover: #e62424;
  --red-soft: #fff1f1;
  --yellow-soft: #fff8d9;
  --yellow-deep: #f5c800;
  --surface: #fafaf7;        /* warm off-white section bg */
  --line: #ebebeb;
  --line-strong: #d9d9d9;

  /* Type */
  --font-sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;

  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md: 1.125rem;    /* 18 */
  --fs-lg: 1.375rem;    /* 22 */
  --fs-xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  --fs-2xl: clamp(2.25rem, 1.4rem + 3vw, 3.5rem);
  --fs-3xl: clamp(2.6rem, 1.3rem + 4.6vw, 4.75rem);

  /* Space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 1px 1px rgba(0,0,0,.03);
  --shadow-md: 0 6px 20px -6px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 24px 48px -16px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.05);

  --ease-out: cubic-bezier(.2,.8,.2,1);
  --container: 1240px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }

.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }
.i-fill { fill: currentColor; stroke: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: 880px; }
.section { padding-block: var(--s-9); }
.section-sm { padding-block: var(--s-8); }
.section-surface { background: var(--surface); }
.section-ink { background: var(--ink); color: var(--white); }
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .section { padding-block: var(--s-8); }
  .section-sm { padding-block: var(--s-7); }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.section-ink .eyebrow { color: rgba(255,255,255,.75); }

.h-display { font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.h-1 { font-size: var(--fs-2xl); letter-spacing: -0.03em; }
.h-2 { font-size: var(--fs-xl); }
.h-3 { font-size: var(--fs-lg); letter-spacing: -0.015em; }
.lead { font-size: var(--fs-md); color: var(--ink-2); line-height: 1.6; max-width: 60ch; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }

/* The serif italic accent — used sparingly inside headlines */
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* Yellow highlighter swipe behind a word */
.mark {
  position: relative; white-space: nowrap; z-index: 0;
}
.mark::after {
  content: ""; position: absolute; z-index: -1;
  left: -0.08em; right: -0.08em; bottom: 0.06em; height: 0.38em;
  background: var(--yellow); border-radius: 3px;
  transform: skewX(-8deg) rotate(-1deg);
}
/* On dark backgrounds the highlighter becomes a full block so black text stays legible */
.section-ink .mark, .teach-hero .mark, .cta-band .mark { color: var(--ink); padding-inline: 0.08em; }
.section-ink .mark::after, .teach-hero .mark::after, .cta-band .mark::after { bottom: -0.04em; height: 1.02em; left: -0.04em; right: -0.04em; transform: skewX(-6deg); }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-7); }
.section-head > div { max-width: 640px; display: grid; gap: var(--s-4); }

/* ---------- Accent rule (single colour, never a red/yellow/red stripe) ---------- */
.accent-rule { height: 4px; width: 56px; border: 0; margin: 0; border-radius: 2px; background: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-pill); border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: var(--fs-base); letter-spacing: -0.005em; white-space: nowrap;
  transition: transform .18s var(--ease-out), background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-red { --btn-bg: var(--red); --btn-fg: var(--white); --btn-bd: var(--red); font-weight: 700; }
.btn-red:hover { --btn-bg: var(--red-hover); --btn-bd: var(--red-hover); box-shadow: 0 8px 20px -8px rgba(255,49,49,.6); }
.btn-yellow { --btn-bg: var(--yellow); --btn-fg: var(--ink); --btn-bd: var(--yellow); }
.btn-yellow:hover { --btn-bg: var(--yellow-deep); --btn-bd: var(--yellow-deep); }
.btn-dark:hover { --btn-bg: #222; --btn-bd: #222; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn-ghost:hover { --btn-bd: var(--ink); }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.35); }
.btn-ghost-light:hover { --btn-bd: var(--white); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-sm); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: var(--fs-md); }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; border-bottom: 2px solid var(--red); padding-bottom: 2px; transition: gap .2s var(--ease-out); }
.link-arrow:hover { gap: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: var(--s-6); }

.brand { display: inline-flex; align-items: baseline; font-weight: 700; font-size: 1.75rem; letter-spacing: -0.06em; line-height: 1; }
.brand-dot { color: var(--red); margin-left: 1px; }

.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav a {
  position: relative; padding: 8px 12px; font-weight: 500; font-size: 0.9375rem; color: var(--ink-2); border-radius: var(--r-sm);
  transition: color .15s;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.nav a:hover::after { transform: scaleX(.4); background: var(--yellow); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--red); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); }
.lang-toggle button { min-width: 38px; height: 30px; padding: 0 8px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; color: var(--ink-3); transition: background .15s, color .15s; }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.lang-toggle button:not([aria-pressed="true"]):hover { color: var(--ink); }
.header-login { font-weight: 600; font-size: 0.9375rem; padding: 8px 10px; }
.header-login:hover { color: var(--red-ink); }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); align-items: center; justify-content: center; }
.mobile-nav { display: none; }

@media (max-width: 1020px) {
  .nav, .header-actions .header-login, .header-actions .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .mobile-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--white);
    padding: 24px 16px 40px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease-out), visibility 0s .2s;
  }
  .mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .25s var(--ease-out); }
  .mobile-nav a.m-link { padding: 16px 4px; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
  .mobile-nav a.m-link[aria-current="page"] { box-shadow: inset 4px 0 0 var(--red); padding-left: 16px; }
  .mobile-nav .m-actions { display: grid; gap: 10px; margin-top: 24px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-top: var(--s-8); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-7); padding-bottom: var(--s-8); }
.footer-grid h4 { color: var(--white); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-4); }
.footer-grid ul { display: grid; gap: 10px; font-size: var(--fs-sm); }
.footer-brand .brand { color: var(--white); }
.footer-brand p { margin-top: var(--s-4); max-width: 34ch; font-size: var(--fs-sm); }
.footer-news { margin-top: var(--s-5); display: flex; gap: 8px; max-width: 380px; }
.footer-news input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--white); }
.footer-news input::placeholder { color: rgba(255,255,255,.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; align-items: center; font-size: var(--fs-xs); }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); transition: border-color .15s, background .15s; }
.footer-social a:hover { border-color: var(--yellow); color: var(--yellow); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.chip-red { background: var(--red); border-color: var(--red); color: var(--white); }
.chip-ink { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip-white { background: var(--white); border-color: transparent; color: var(--ink); box-shadow: var(--shadow-sm); }
.level-badge { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--ink); color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: .02em; }

.stars { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: var(--fs-sm); }
.stars .i { color: #f5b800; width: 16px; height: 16px; }
.stars .count { color: var(--ink-3); font-weight: 500; }

.avatar { border-radius: 50%; object-fit: cover; background: var(--surface); flex: none; }
.avatar-xs { width: 24px; height: 24px; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 72px; height: 72px; }

/* ---------- Course card ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
@media (max-width: 1180px) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .course-grid { grid-template-columns: 1fr; } }

/* Image = 70% / details = 30%. If the details ever need more room, they win (min-content) instead of overflowing. */
.course-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
  will-change: transform;
}
.course-card:hover, .course-card:focus-within { transform: scale(1.03); box-shadow: var(--shadow-lg); border-color: transparent; z-index: 2; }
.course-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); flex: none; }
.course-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.course-card:hover .course-card-media img { transform: scale(1.04); }
.course-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,0) 58%, rgba(0,0,0,.55) 100%); pointer-events: none; }
.cc-top { position: absolute; z-index: 1; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.cc-bottom { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: nowrap; gap: 5px; overflow: hidden; color: var(--white); font-size: 12px; font-weight: 600; }
.cc-bottom span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; flex: none; background: rgba(0,0,0,.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 4px 9px; border-radius: var(--r-pill); }
.cc-save { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--ink); transition: color .15s, transform .15s; }
.cc-save:hover { color: var(--red); transform: scale(1.06); }
.cc-save[aria-pressed="true"] { color: var(--red); }
.cc-save[aria-pressed="true"] .i { fill: currentColor; }

.course-card-body { padding: 12px 14px 14px; display: grid; gap: 10px; align-content: start; flex: 1; }
.cc-title { font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.cc-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.cc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.cc-teacher { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.cc-teacher span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.cc-spaces { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.cc-spaces .dot { width: 8px; height: 8px; border-radius: 50%; background: #1faa59; }
.cc-spaces.is-low { color: var(--red-ink); }
.cc-spaces.is-low .dot { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.cc-price { font-weight: 700; font-size: var(--fs-md); letter-spacing: -0.02em; }
.cc-save { position: relative; z-index: 2; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field .req { color: var(--red-ink); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--white);
  font-size: var(--fs-base); transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #bdbdbd; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--yellow-soft); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red); }
.field .error { display: none; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 500; color: var(--red-ink); }
.field.has-error .error { display: flex; }
.input-icon { position: relative; }
.input-icon .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.input-icon .input { padding-left: 44px; }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: var(--fs-sm); line-height: 1.45; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--white); display: grid; place-items: center; transition: background .15s, border-color .15s; cursor: pointer; }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: translateY(-1px) rotate(-45deg); }
.check input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--yellow); transform: none; }
.check input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.check .count { margin-left: auto; color: var(--ink-3); font-size: var(--fs-xs); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-group input { position: absolute; opacity: 0; pointer-events: none; }
.pill-group label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; cursor: pointer; transition: all .15s; }
.pill-group label:hover { border-color: var(--ink); }
.pill-group input:checked + label { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pill-group input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }

.form-success { display: none; text-align: center; padding: var(--s-8) var(--s-5); }
.form-success.is-visible { display: block; animation: rise .5s var(--ease-out); }
.form-success .tick { width: 72px; height: 72px; margin: 0 auto var(--s-5); border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }
.form-success .tick .i { width: 34px; height: 34px; stroke-width: 2.5; }

/* ---------- Accordion (details) ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 600; font-size: var(--fs-md); letter-spacing: -0.01em; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .plus { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: transform .25s var(--ease-out), background .2s, border-color .2s; }
.accordion details[open] summary .plus { transform: rotate(45deg); background: var(--yellow); border-color: var(--yellow); }
.accordion .acc-body { padding: 0 48px 24px 0; color: var(--ink-2); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); transition: opacity .2s, transform .3s var(--ease-out); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .i { color: var(--yellow); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .course-card:hover, .course-card:focus-within { transform: none; }
}

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; padding-top: var(--s-8); padding-bottom: var(--s-9); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-8); align-items: center; }
.hero-copy { display: grid; gap: var(--s-5); }
.hero-copy .lead { font-size: 1.1875rem; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 6px 14px 6px 6px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 500; }
.hero-kicker .chip { height: 24px; padding: 0 10px; }

.hero-search { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0; align-items: stretch; margin-top: var(--s-2); background: var(--white); border: 1.5px solid var(--line-strong); border-radius: 18px; padding: 6px; box-shadow: var(--shadow-md); max-width: 580px; }
.hero-search .hs-field { display: grid; gap: 0; padding: 8px 16px; border-radius: 12px; min-width: 0; }
.hero-search .hs-field + .hs-field { border-left: 1px solid var(--line); }
.hero-search label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hero-search select { border: 0; padding: 2px 20px 2px 0; font-weight: 600; background-position: right 0 center; min-height: 28px; background-color: transparent; }
.hero-search select:focus { box-shadow: none; }
.hero-search .hs-field:focus-within { background: var(--surface); }
.hero-search .btn { border-radius: 12px; height: auto; }
@media (max-width: 560px) {
  .hero-search { grid-template-columns: 1fr; }
  .hero-search .hs-field + .hs-field { border-left: 0; border-top: 1px solid var(--line); }
  .hero-search .btn { min-height: 52px; margin-top: 6px; }
}

.hero-proof { display: flex; align-items: center; gap: 14px; font-size: var(--fs-sm); color: var(--ink-2); }
.avatar-stack { display: flex; }
.avatar-stack img, .avatar-stack span { width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid var(--white); margin-left: -10px; object-fit: cover; }
.avatar-stack > :first-child { margin-left: 0; }
.avatar-stack span { display: grid; place-items: center; font-size: 12px; font-weight: 700; }

.hero-visual { position: relative; aspect-ratio: 1 / 1.02; }
.hv-main { position: absolute; inset: 0 0 8% 10%; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hv-main img { width: 100%; height: 100%; object-fit: cover; }
.hv-main::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.5)); z-index: 1; }
.hv-live { position: absolute; z-index: 2; left: 20px; bottom: 20px; right: 20px; color: var(--white); display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.hv-live strong { display: block; font-size: 1.125rem; letter-spacing: -0.01em; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--red); color: var(--white); padding: 4px 10px; border-radius: var(--r-pill); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--white); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.hv-float { position: absolute; z-index: 3; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 16px; display: grid; gap: 6px; font-size: var(--fs-sm); animation: float 6s ease-in-out infinite; }
.hv-float-1 { left: 0; top: 10%; width: 220px; }
.hv-float-2 { right: -12px; top: 38%; width: 190px; animation-delay: -3s; }
.hv-float .label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hv-float .big { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.progress { height: 6px; background: var(--surface); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--red); border-radius: 99px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }


@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .hv-float-2 { right: 0; }
}
@media (max-width: 480px) { .hv-float-1 { width: 180px; } .hv-float-2 { width: 160px; } .hv-main { inset: 0 0 10% 6%; } }

/* Marquee strip */
.strip { border-block: 1px solid var(--line); background: var(--white); overflow: hidden; }
.strip-track { display: flex; gap: 56px; padding-block: 22px; width: max-content; animation: marquee 38s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-item { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; white-space: nowrap; color: var(--ink-2); }
.strip-item .i { color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { padding: 28px 28px; display: grid; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat .num em { font-style: normal; color: var(--red); }
.stat p { color: var(--ink-3); font-size: var(--fs-sm); }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 14px; align-content: start; }
.step-num { font-family: var(--font-serif); font-style: italic; font-size: 3.5rem; line-height: .9; color: var(--ink); }
.step-num::after { content: ""; display: block; width: 32px; height: 4px; margin-top: 12px; border-radius: 2px; background: var(--red); }
.step:nth-child(2) .step-num::after { background: var(--yellow); }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.compare-table { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.compare-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; align-items: center; min-height: 56px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.compare-row:first-child { border-top: 0; font-weight: 700; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface); }
.compare-row > div { padding: 12px 18px; }
.compare-row > div:nth-child(2) { background: var(--yellow-soft); font-weight: 600; height: 100%; display: flex; align-items: center; gap: 8px; }
.compare-row:first-child > div:nth-child(2) { background: var(--yellow); color: var(--ink); }
.compare-row .yes { color: #0f8a46; }
.compare-row .no { color: var(--ink-3); }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; gap: 40px; } }

.feature-list { display: grid; gap: 20px; margin-top: 28px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.feature-list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; }
.feature-list h4 { font-size: 1.0625rem; letter-spacing: -0.01em; margin-bottom: 2px; }
.feature-list p { color: var(--ink-2); font-size: var(--fs-sm); }

/* Teacher spotlight */
.spotlight { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: center; }
.spotlight-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--yellow); }
.spotlight-photo img { width: 100%; height: 100%; object-fit: cover; }
.spotlight blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; }
.spotlight blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--red); margin-bottom: 8px; }
@media (max-width: 900px) { .spotlight { grid-template-columns: 1fr; gap: 32px; } .spotlight-photo { max-width: 420px; } }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tcard { padding: 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); display: grid; gap: 18px; align-content: space-between; }
.tcard p { font-size: 1.0625rem; line-height: 1.55; }
.tcard-foot { display: flex; align-items: center; gap: 12px; }
.tcard-foot .init { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--yellow); }
.tcard:nth-child(2) .init { background: var(--red); color: var(--white); }
.tcard:nth-child(3) .init { background: var(--ink); color: var(--yellow); }
.tcard-foot strong { display: block; font-size: var(--fs-sm); }
.tcard-foot span { font-size: var(--fs-xs); color: var(--ink-3); }
.tcard.is-featured { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tcard.is-featured .tcard-foot span { color: rgba(255,255,255,.65); }
@media (max-width: 960px) { .testimonials { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { position: relative; border-radius: 28px; overflow: hidden; background: var(--ink); color: var(--white); padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: var(--red); opacity: .95; }
.cta-band::before { content: ""; position: absolute; right: 140px; bottom: 120px; width: 120px; height: 120px; border-radius: 50%; background: var(--yellow); z-index: 1; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band p { color: rgba(255,255,255,.75); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band::before { right: 40px; bottom: 200px; width: 70px; height: 70px; } }

/* ==========================================================================
   PAGE HEADERS
   ========================================================================== */
.page-hero { padding-top: var(--s-8); padding-bottom: var(--s-7); border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: var(--s-4); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--s-5); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* ==========================================================================
   COURSES (catalogue)
   ========================================================================== */
.catalog { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-block: var(--s-7) var(--s-9); }
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.catalog-toolbar .count { font-size: var(--fs-sm); color: var(--ink-2); }
.catalog-toolbar .count strong { color: var(--ink); }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.toolbar-right .select { min-height: 42px; width: auto; font-size: var(--fs-sm); font-weight: 500; border-radius: var(--r-pill); padding-left: 16px; }
.filter-open { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.active-filters:empty { display: none; }
.af-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 14px; border-radius: var(--r-pill); background: var(--yellow-soft); border: 1px solid #f3e3a0; font-size: var(--fs-sm); font-weight: 500; }
.af-chip button { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.af-chip button:hover { background: var(--yellow); }
.af-clear { font-size: var(--fs-sm); font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; padding: 0 6px; min-height: 34px; }

.filters { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); scrollbar-width: thin; }
.filters-head { position: sticky; top: 0; z-index: 2; background: var(--white); display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.filters-head h2 { font-size: 1.0625rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.filters-head button.reset { font-size: var(--fs-sm); font-weight: 600; color: var(--red-ink); min-height: 32px; }
.filters-close { display: none; }
.fgroup { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup > h3, .fgroup legend { font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0; margin-bottom: 12px; padding: 0; }
.fgroup fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fgroup .check { padding: 5px 0; }
.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.level-grid input { position: absolute; opacity: 0; pointer-events: none; }
.level-grid label { display: grid; place-items: center; min-height: 40px; border: 1.5px solid var(--line-strong); border-radius: 10px; font-weight: 700; font-size: var(--fs-sm); cursor: pointer; transition: all .15s; }
.level-grid label:hover { border-color: var(--ink); }
.level-grid input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.level-grid input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.price-out { display: flex; justify-content: space-between; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 10px; }
.range { width: 100%; accent-color: var(--red); height: 28px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-strong); transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-out); }
.switch input:checked + span { background: var(--red); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.filters-apply { display: none; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 64px 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); display: grid; gap: 12px; justify-items: center; }
.empty-state .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--yellow-soft); display: grid; place-items: center; }

.catalog-note { margin-top: 48px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }

.filter-backdrop { display: none; }
@media (max-width: 1020px) {
  .catalog { grid-template-columns: 1fr; }
  .filter-open { display: inline-flex; }
  .filters {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(380px, 92vw); max-height: none;
    border-radius: 0; border: 0; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .3s var(--ease-out); visibility: hidden;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters-close { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
  .filters-apply { display: block; position: sticky; bottom: 0; padding: 16px 20px; background: var(--white); border-top: 1px solid var(--line); }
  .filter-backdrop { display: block; position: fixed; inset: 0; z-index: 140; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
  .filter-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .2s; }
}

/* ==========================================================================
   COURSE DETAIL (Maven-style)
   ========================================================================== */
.cd-hero { padding-top: var(--s-6); padding-bottom: var(--s-7); background: linear-gradient(180deg, var(--surface), var(--white)); }
.cd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.cd-head { display: grid; gap: 20px; }
.cd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-title { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.04; }
.cd-sub { font-size: 1.25rem; color: var(--ink-2); line-height: 1.5; max-width: 52ch; }
.cd-instructor { display: flex; align-items: center; gap: 14px; }
.cd-instructor strong { display: block; }
.cd-instructor span { font-size: var(--fs-sm); color: var(--ink-3); }
.cd-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: var(--fs-sm); color: var(--ink-2); }
.cd-rating .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.cd-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.cd-fact { padding: 16px 18px; display: grid; gap: 2px; }
.cd-fact + .cd-fact { border-left: 1px solid var(--line); }
.cd-fact .k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cd-fact .v { font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 640px) { .cd-facts { grid-template-columns: 1fr 1fr; } .cd-fact:nth-child(3) { border-left: 0; } .cd-fact:nth-child(n+3) { border-top: 1px solid var(--line); } }

.cd-tabs { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.cd-tabs ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cd-tabs ul::-webkit-scrollbar { display: none; }
.cd-tabs a { position: relative; display: inline-flex; align-items: center; height: 56px; padding: 0 14px; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: color .15s; }
.cd-tabs a:hover { color: var(--ink); }
.cd-tabs a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); transform: scaleX(0); transition: transform .25s var(--ease-out); }
.cd-tabs a.is-active { color: var(--ink); font-weight: 600; }
.cd-tabs a.is-active::after { transform: scaleX(1); }

.cd-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.cd-main > section { padding-block: 56px; border-bottom: 1px solid var(--line); }
.cd-main > section:last-child { border-bottom: 0; }
.cd-main h2 { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.125rem); margin-bottom: 20px; }
.cd-main .prose { display: grid; gap: 16px; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.cd-main .prose strong { color: var(--ink); }

.for-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.for-card { padding: 22px; border-radius: var(--r-md); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.for-card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; }
.for-card:nth-child(2) .ic { background: var(--red); color: var(--white); }
.for-card:nth-child(3) .ic { background: var(--ink); color: var(--yellow); }
.for-card h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }
.for-card p { font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 760px) { .for-grid { grid-template-columns: 1fr; } }

.outcomes { display: grid; gap: 0; counter-reset: out; }
.outcomes li { counter-increment: out; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.outcomes li:last-child { border-bottom: 1px solid var(--line); }
.outcomes li::before { content: counter(out, decimal-leading-zero); font-family: var(--font-serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--red); }
.outcomes h3 { font-size: 1.125rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.outcomes p { color: var(--ink-2); }

.includes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.includes li { display: flex; gap: 12px; align-items: flex-start; }
.includes .i { color: var(--red); margin-top: 2px; }
@media (max-width: 640px) { .includes { grid-template-columns: 1fr; } }

.syllabus { display: grid; gap: 12px; }
.module { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--white); }
.module[open] { border-color: var(--ink); }
.module summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px 22px; }
.module summary::-webkit-details-marker { display: none; }
.module .mnum { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); }
.module[open] .mnum { background: var(--yellow); border-color: var(--yellow); }
.module .mtitle { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.module .mmeta { font-size: var(--fs-sm); color: var(--ink-3); }
.module .chev { transition: transform .25s var(--ease-out); }
.module[open] .chev { transform: rotate(180deg); }
.module ul { padding: 0 22px 18px 82px; display: grid; gap: 0; }
.module ul li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.module ul li span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.module ul li .i { color: var(--ink-3); }
@media (max-width: 560px) { .module ul { padding-left: 22px; } }

.instructor-card { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.instructor-card .photo { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1; background: var(--yellow); }
.instructor-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.instructor-card h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.instructor-card .role { color: var(--ink-3); margin-top: 4px; }
.instructor-stats { display: flex; flex-wrap: wrap; gap: 24px; margin: 18px 0; font-size: var(--fs-sm); }
.instructor-stats strong { display: block; font-size: 1.25rem; letter-spacing: -0.02em; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: var(--fs-sm); font-weight: 600; transition: border-color .15s, background .15s; }
.social-btn:hover { border-color: var(--ink); background: var(--surface); }
.social-btn small { color: var(--ink-3); font-weight: 500; }
@media (max-width: 640px) { .instructor-card { grid-template-columns: 1fr; } .instructor-card .photo { max-width: 200px; } }

.reviews-summary { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; margin-bottom: 28px; }
.reviews-summary .big { font-size: 3.5rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); display: grid; gap: 12px; align-content: start; }
.review p { color: var(--ink-2); }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-head .init { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); }
.review-head strong { display: block; font-size: var(--fs-sm); }
.review-head span { font-size: var(--fs-xs); color: var(--ink-3); }
@media (max-width: 640px) { .review-grid { grid-template-columns: 1fr; } }

.schedule-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.schedule-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: 12px 14px; background: var(--surface); }
.schedule-table td { padding: 16px 14px; border-top: 1px solid var(--line); }
.schedule-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; }

/* Enroll card */
.enroll { position: sticky; top: calc(var(--header-h) + 76px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-lg); overflow: hidden; }
.enroll-media { aspect-ratio: 16/9; position: relative; }
.enroll-media img { width: 100%; height: 100%; object-fit: cover; }
.enroll-media .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.18); }
.enroll-media .play span { width: 60px; height: 60px; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: var(--shadow-md); transition: transform .2s var(--ease-out); }
.enroll-media .play:hover span { transform: scale(1.08); }
.enroll-body { padding: 24px; display: grid; gap: 18px; }
.enroll-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.enroll-price strong { font-size: 2.25rem; letter-spacing: -0.04em; line-height: 1; }
.enroll-price s { color: var(--ink-3); }
.enroll-price .chip { margin-left: auto; }
.cohorts { display: grid; gap: 8px; }
.cohort { position: relative; }
.cohort input { position: absolute; opacity: 0; pointer-events: none; }
.cohort label { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; font-size: var(--fs-sm); }
.cohort label::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: all .15s; }
.cohort input:checked + label { border-color: var(--ink); background: var(--yellow-soft); }
.cohort input:checked + label::before { border: 5px solid var(--ink); }
.cohort input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.cohort strong { display: block; }
.cohort .left { font-size: var(--fs-xs); font-weight: 700; color: var(--red-ink); }
.cohort .left.ok { color: #0f7a3e; }
.enroll-note { font-size: var(--fs-xs); color: var(--ink-3); text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }
.enroll-list { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.enroll-list li { display: flex; gap: 10px; align-items: center; }
.enroll-list .i { color: var(--ink-3); }

.enroll-mobile { display: none; }
@media (max-width: 1020px) {
  .cd-layout, .cd-body { grid-template-columns: 1fr; }
  .cd-aside { display: none; }
  .enroll-mobile { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--white); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -8px 24px -12px rgba(0,0,0,.15); }
  .enroll-mobile strong { font-size: 1.375rem; letter-spacing: -0.03em; }
  .enroll-mobile strong { display: block; }
  .enroll-mobile div > span { display: block; font-size: var(--fs-xs); color: var(--red-ink); font-weight: 600; }
  body.has-enroll-bar { padding-bottom: 84px; }
}

/* ==========================================================================
   TEACHERS
   ========================================================================== */
.teacher-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; padding-block: var(--s-7) var(--s-9); }
.teacher-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.teacher-toolbar .pill-group label { min-height: 38px; }
.tlist { display: grid; gap: 16px; }
.trow { position: relative; display: grid; grid-template-columns: 148px minmax(0,1fr) 260px; gap: 28px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); transition: box-shadow .3s var(--ease-out), border-color .3s, transform .3s var(--ease-out); }
.trow:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-2px); }
.trow-photo { position: relative; width: 148px; height: 148px; border-radius: 16px; overflow: hidden; background: var(--surface); }
.trow-photo img { width: 100%; height: 100%; object-fit: cover; }
.trow-photo .online { position: absolute; right: 8px; bottom: 8px; width: 14px; height: 14px; border-radius: 50%; background: #1faa59; border: 2.5px solid var(--white); }
.trow-main { display: grid; gap: 10px; align-content: start; min-width: 0; }
.trow-name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.trow-name h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.trow-name h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.verified .i { color: var(--red); }
.trow-line { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-sm); color: var(--ink-2); }
.trow-line span { display: inline-flex; align-items: center; gap: 6px; }
.trow-line .i { color: var(--ink-3); }
.trow-line .stars .i { color: #f5b800; }
.trow-bio { color: var(--ink-2); font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trow-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.trow-side { display: grid; gap: 14px; align-content: start; padding-left: 28px; border-left: 1px solid var(--line); }
.trow-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trow-stats strong { display: flex; align-items: center; gap: 4px; font-size: 1.25rem; letter-spacing: -0.02em; }
.trow-stats strong .i { color: #f5b800; width: 18px; height: 18px; }
.trow-stats span { font-size: var(--fs-xs); color: var(--ink-3); }
.trow-socials { display: flex; gap: 6px; position: relative; z-index: 2; }
.trow-socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color .15s, color .15s; }
.trow-socials a:hover { border-color: var(--ink); color: var(--red-ink); }
.trow-side .btn { position: relative; z-index: 2; }
.trow-next { font-size: var(--fs-xs); color: var(--ink-3); }
.trow-next strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .trow { grid-template-columns: 96px minmax(0,1fr); gap: 18px; padding: 18px; }
  .trow-photo { width: 96px; height: 96px; }
  .trow-side { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; grid-template-columns: 1fr auto; align-items: center; }
  .trow-side .trow-next, .trow-side .btn { grid-column: 1 / -1; }
}

/* Teacher profile */
.tp-cover { height: clamp(180px, 18vw, 320px); background: var(--ink) center / cover no-repeat; position: relative; overflow: hidden; }
/* Custom banner (2560×640, see docs/teacher-profile-form.md): hide the default circles, darken the top edge so the breadcrumb stays readable */
.tp-cover.has-banner::before { left: 0; right: 0; top: 0; width: auto; height: 72px; border-radius: 0; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.tp-cover.has-banner::after { display: none; }
.tp-cover::before { content: ""; position: absolute; right: 8%; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: var(--red); }
.tp-cover::after { content: ""; position: absolute; right: calc(8% + 200px); top: 90px; width: 120px; height: 120px; border-radius: 50%; background: var(--yellow); }
.breadcrumb-light { color: rgba(255,255,255,.9); }
.breadcrumb-light [aria-current] { color: var(--white); }
.breadcrumb-light a:hover { color: var(--white); }
.tp-head { display: grid; grid-template-columns: 180px 1fr auto; gap: 28px; align-items: start; margin-top: -90px; position: relative; z-index: 2; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.tp-id, .tp-actions { padding-top: 108px; }
.tp-photo { width: 180px; height: 180px; border-radius: 24px; overflow: hidden; border: 5px solid var(--white); box-shadow: var(--shadow-md); background: var(--yellow); }
.tp-photo img { width: 100%; height: 100%; object-fit: cover; }
.tp-id h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); letter-spacing: -0.035em; }
.tp-id .trow-line { margin-top: 10px; }
.tp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 860px) { .tp-head { grid-template-columns: 1fr; gap: 18px; margin-top: -70px; } .tp-photo { width: 140px; height: 140px; } .tp-id, .tp-actions { padding-top: 0; } }
.toolbar-right { flex-wrap: wrap; }
@media (max-width: 640px) { .toolbar-right, .toolbar-right .input-icon { width: 100% !important; } .toolbar-right .select { flex: 1; } }
.tp-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 56px; padding-block: 48px var(--s-9); align-items: start; }
.tp-layout section + section { margin-top: 56px; }
.tp-layout h2 { font-size: 1.625rem; margin-bottom: 18px; }
.tp-side { display: grid; gap: 16px; }
.tp-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 14px; }
.tp-box h3 { font-size: 1rem; letter-spacing: -0.01em; }
.social-list { display: grid; gap: 8px; }
.social-list a { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, background .15s; }
.social-list a:hover { border-color: var(--ink); background: var(--surface); }
.social-list .sic { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: var(--white); display: grid; place-items: center; }
.social-list strong { display: block; font-size: var(--fs-sm); }
.social-list span { font-size: var(--fs-xs); color: var(--ink-3); }
.video-ph { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); }
.video-ph img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.video-ph button { position: absolute; inset: 0; display: grid; place-items: center; }
.video-ph button span { width: 76px; height: 76px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; transition: transform .2s var(--ease-out); }
.video-ph button:hover span { transform: scale(1.08); }
.lang-bars { display: grid; gap: 10px; }
.lang-bars div { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; font-size: var(--fs-sm); }
.dots { display: flex; gap: 4px; }
.dots i { width: 18px; height: 6px; border-radius: 3px; background: var(--line); }
.dots i.on { background: var(--ink); }
/* Profile buttons: 2×2 grid of equal pills (socials on top, contact + classes below) */
.tp-head .tp-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tp-socials { display: contents; }
.tp-actions .btn { width: 100%; justify-content: center; min-width: 0; padding-inline: 14px; font-size: var(--fs-sm); } /* all four buttons share one text size */
.tp-actions .btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .tp-head .tp-actions { grid-template-columns: 1fr; } } /* phones: one full-width column so handles and email fit */
.tp-layout { row-gap: 18px; }
.tp-layout > .tp-meet { grid-column: 1 / -1; margin-bottom: 0; }
.tp-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tp-review { margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 16px; align-content: space-between; }
.tp-review blockquote { margin: 0; color: var(--ink-2); line-height: 1.6; }
.tp-review figcaption strong { display: block; font-size: var(--fs-sm); }
.tp-review figcaption span { font-size: var(--fs-xs); color: var(--ink-3); }
.tp-video .video-ph { box-shadow: var(--shadow-md); }
/* One-line items sit level with the middle of the icon; longer ones start at its top */
@media (max-width: 1020px) { .tp-layout { grid-template-columns: 1fr; } .tp-side { position: static; margin-top: 38px; } }
.course-grid-sm { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
@media (max-width: 620px) { .course-grid-sm { grid-template-columns: 1fr; } }

/* ==========================================================================
   TEACH ON NOLU
   ========================================================================== */
.teach-hero { background: var(--ink); color: var(--white); padding-block: var(--s-9); position: relative; overflow: hidden; }
.teach-hero .lead { color: rgba(255,255,255,.75); }
.teach-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.teach-hero .breadcrumb { color: rgba(255,255,255,.6); }
.teach-hero .breadcrumb [aria-current] { color: var(--white); }
.teach-stack { position: relative; display: grid; gap: 14px; }
.teach-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.teach-stat strong { font-size: 2rem; letter-spacing: -0.04em; line-height: 1; }
.teach-stat strong em { font-style: normal; color: var(--yellow); }
.teach-stat span { color: rgba(255,255,255,.7); font-size: var(--fs-sm); max-width: 22ch; text-align: right; }
@media (max-width: 900px) { .teach-hero-grid { grid-template-columns: 1fr; } }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { display: grid; gap: 12px; align-content: start; }
.benefit .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--yellow); display: grid; place-items: center; }
.benefit:nth-child(even) .ic { background: var(--red); color: var(--white); }
.benefit h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.benefit p { color: var(--ink-2); font-size: var(--fs-sm); }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; } }

.apply-wrap { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 56px; align-items: start; }
.apply-steps { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 4px; }
.apply-steps a { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-3); transition: background .15s, color .15s; }
.apply-steps a span { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.apply-steps a:hover { background: var(--surface); color: var(--ink); }
.apply-steps a.is-active { color: var(--ink); font-weight: 600; background: var(--surface); }
.apply-steps a.is-active span { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.apply-steps a.is-done span { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.apply-form { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.form-section { padding: 36px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.form-section-head .n { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); }
.form-section-head h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.form-section-head p { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 2px; }
.form-foot { padding: 24px 36px 36px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--surface); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.social-inputs { display: grid; gap: 12px; }
.social-input { display: grid; grid-template-columns: 1fr 160px; gap: 10px; }
.social-input .input-icon .i { color: var(--ink); }
@media (max-width: 900px) { .apply-wrap { grid-template-columns: 1fr; } .apply-steps { display: none; } }
@media (max-width: 560px) { .form-section { padding: 24px 18px; } .form-foot { padding: 20px 18px 24px; } .social-input { grid-template-columns: 1fr; } }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 56px; align-items: start; padding-block: var(--s-7) var(--s-9); }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); margin-bottom: 28px; width: 100%; max-width: 460px; }
.seg button { min-height: 44px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-sm); color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, color .2s, box-shadow .2s; }
.seg button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg button[aria-selected="true"] .i { color: var(--red); }
.contact-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; }
.contact-side { display: grid; gap: 16px; }
.contact-side .tp-box a:not(.btn) { font-weight: 600; border-bottom: 2px solid var(--yellow); }
.info-row { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.info-row .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.info-row strong { display: block; font-size: var(--fs-sm); }
.info-row span, .info-row a { font-size: var(--fs-sm); color: var(--ink-2); }
.teach-promo { background: var(--ink); color: var(--white); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.teach-promo::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--red); }
.teach-promo > * { position: relative; z-index: 1; }
.teach-promo p { color: rgba(255,255,255,.72); font-size: var(--fs-sm); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-card { padding: 22px 18px; } }

/* ==========================================================================
   nolu additions
   ========================================================================== */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; background: var(--yellow); color: var(--ink); font-size: var(--fs-xs); font-weight: 600; text-align: center; }
.site-header { border-bottom-color: var(--line); }
.btn-xs { min-height: 32px; padding: 0 12px; font-size: var(--fs-xs); gap: 6px; }
.btn.is-busy { opacity: .7; cursor: progress; }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.level-badge-lg { height: 30px; min-width: 42px; font-size: 14px; border-radius: 8px; }
.cc-top { justify-content: flex-start; }
.cc-bottom span .avatar { width: 18px; height: 18px; }

/* Card: title + price, then one compact row per group */
.cc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cc-head .cc-title { min-height: 0; -webkit-line-clamp: 2; font-size: 1.0625rem; }
.cc-blurb { font-size: var(--fs-xs); line-height: 1.45; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cc-price small { font-size: var(--fs-xs); font-weight: 500; color: var(--ink-3); margin-left: 1px; }
.cc-groups { display: grid; gap: 6px; }
.cc-group { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); }
.cc-gname { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.cc-gname strong { font-weight: 600; }
.cc-gname .muted { font-size: var(--fs-xs); }
.cc-group .cc-spaces { font-size: 12px; }
.cc-spaces.is-full { color: var(--ink); }
.cc-spaces.is-full .dot { background: var(--ink-3); }
.cc-notify { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: var(--ink); color: var(--white); font-size: 12px; font-weight: 600; }
.cc-notify:hover { background: var(--red); }
.cc-group.is-full { background: var(--white); }
.cc-group.is-full .cc-spaces { flex: 1; }

/* Dialog */
.dialog { border: 0; padding: 0; border-radius: var(--r-lg); width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); color: var(--ink); background: var(--white); }
.dialog::backdrop { background: rgba(0,0,0,.45); }
.dialog-body { position: relative; padding: 32px 28px 28px; display: grid; gap: 14px; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.dialog-close:hover { background: var(--surface); }
.dialog-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--yellow); display: grid; place-items: center; }

/* Auth pages */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: var(--white); padding: 64px clamp(24px, 5vw, 72px); display: grid; align-content: center; gap: 24px; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%; background: var(--red); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side p, .auth-side li { color: rgba(255,255,255,.75); }
.auth-side ul { display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; }
.auth-side li .i { color: var(--yellow); margin-top: 3px; }
.auth-main { padding: 64px 24px; display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 420px; display: grid; gap: 20px; }
.auth-card form { display: grid; gap: 16px; }
.auth-alt { font-size: var(--fs-sm); color: var(--ink-2); text-align: center; }
.auth-alt a, .text-link { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-3); }
.pw-toggle:hover { color: var(--ink); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: var(--fs-sm); background: var(--yellow-soft); border: 1px solid #f3e3a0; }
.notice .i { flex: none; margin-top: 2px; }
.notice.is-error { background: var(--red-soft); border-color: #ffc9c9; color: var(--red-ink); }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-main { padding: 40px 16px; } }

/* Account dashboard */
.acct { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; padding-block: 40px var(--s-9); }
.acct-section + .acct-section { margin-top: 40px; }
.acct h2 { font-size: 1.375rem; margin-bottom: 16px; }
.class-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.class-card + .class-card { margin-top: 16px; }
.class-card-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 22px 24px; }
.class-card-head h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.class-next { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 24px; background: var(--surface); border-top: 1px solid var(--line); }
.class-next .cal { width: 56px; text-align: center; border-radius: 12px; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.class-next .cal span { display: block; background: var(--ink); color: var(--yellow); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 0; }
.class-next .cal strong { display: block; font-size: 1.375rem; padding: 4px 0; }
.class-next .when strong { display: block; }
.class-next .when span { font-size: var(--fs-sm); color: var(--ink-3); }
.class-next .when .join-note { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; color: var(--ink-2); }
.class-next .when .live-dot { display: inline-flex; font-size: 12px; color: var(--white); } /* keep the red "live" badge text white */
.class-upcoming { padding: 14px 24px 18px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; background: #e7f6ec; color: #0f6b36; }
.status-pill.is-warn { background: var(--yellow-soft); color: #7a5b00; }
.status-pill.is-bad { background: var(--red-soft); color: var(--red-ink); }
.empty-box { border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: 40px 24px; text-align: center; display: grid; gap: 12px; justify-items: center; }
@media (max-width: 960px) { .acct { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .class-next { grid-template-columns: auto 1fr; } .class-next .btn { grid-column: 1 / -1; } }

/* Level tests */

.quiz { max-width: 760px; margin-inline: auto; padding-block: 40px var(--s-9); }
.quiz-progress { position: sticky; top: var(--header-h); z-index: 20; background: var(--white); padding: 14px 0; display: grid; gap: 8px; }
.quiz-progress .bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.quiz-progress .bar span { display: block; height: 100%; background: var(--red); border-radius: 99px; transition: width .3s var(--ease-out); }
.quiz-progress .meta { display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--ink-3); }
.q-section { margin-top: 32px; }
.q-section > h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.q-section > p { color: var(--ink-3); font-size: var(--fs-sm); margin-bottom: 16px; }
.q { border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; margin: 0 0 12px; min-width: 0; }
.q legend { padding: 0; font-weight: 600; margin-bottom: 12px; line-height: 1.5; }
.q legend .qn { color: var(--ink-3); font-weight: 500; margin-right: 6px; }
.q .opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.q .opts input { position: absolute; opacity: 0; pointer-events: none; }
.q .opts label { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; cursor: pointer; font-size: var(--fs-sm); transition: border-color .15s, background .15s; }
.q .opts label:hover { border-color: var(--ink); }
.q .opts input:checked + label { border-color: var(--ink); background: var(--yellow-soft); font-weight: 600; }
.q .opts input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.q.is-missing { border-color: var(--red); }
.passage { padding: 20px 22px; border-radius: var(--r-md); background: var(--surface); border-left: 4px solid var(--ink); margin-bottom: 16px; line-height: 1.7; }
@media (max-width: 560px) { .q .opts { grid-template-columns: 1fr; } }
.result { text-align: center; display: grid; gap: 16px; justify-items: center; padding: 48px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.result-level { width: 120px; height: 120px; border-radius: 32px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-size: 2.75rem; font-weight: 700; letter-spacing: -0.03em; }
.result-scale { display: flex; gap: 6px; }
.result-scale span { width: 44px; height: 32px; display: grid; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--surface); color: var(--ink-3); border: 1px solid var(--line); }
.result-scale span.on { background: var(--red); color: var(--white); border-color: var(--red); }

/* Course page: group picker + test prompt + policy notes */
.test-prompt { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 12px; background: var(--yellow-soft); border: 1px solid #f3e3a0; font-size: var(--fs-sm); }
.test-prompt strong { display: block; }
.cohort .left.full { color: var(--ink-3); }
.cohort input:disabled + label { cursor: not-allowed; background: var(--surface); }
.cohort input:disabled + label::before { opacity: .4; }
.policy-list { display: grid; gap: 14px; }
.policy-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.policy-list .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.policy-list strong { display: block; }
.policy-list p { color: var(--ink-2); font-size: var(--fs-sm); }
.sessions-list { display: grid; gap: 8px; }
.sessions-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: var(--fs-sm); }
.sessions-list li.is-skipped { background: var(--surface); color: var(--ink-3); text-decoration: line-through; }
.placeholder-note { font-size: var(--fs-xs); color: var(--ink-3); font-style: italic; }

/* Teachers: single card + coming soon */
.coming-soon { display: flex; gap: 16px; align-items: center; padding: 22px 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--ink-2); }
.coming-soon .ic { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }

/* Legal */
.legal { max-width: 760px; padding-block: 48px var(--s-9); }
.legal h2 { font-size: 1.5rem; margin: 40px 0 12px; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal h3 { font-size: 1.0625rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--surface); border-top: 0; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-sm); color: var(--ink-2); }
.hero-facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero-facts .i { color: var(--red); }
.cd-enroll .enroll { box-shadow: var(--shadow-md); }
@media (max-width: 1020px) { .cd-enroll { max-width: 520px; } }

/* Group pills on course cards */
.cc-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; position: relative; z-index: 2; }
.cc-tz { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-right: 2px; }
.cc-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cc-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #1faa59; }
.cc-pill.is-low { color: var(--red-ink); }
.cc-pill.is-low .dot { background: var(--red); }
.cc-pill.is-full { background: var(--ink); border-color: var(--ink); color: var(--white); cursor: pointer; transition: background .15s; }
.cc-pill.is-full:hover { background: var(--red); border-color: var(--red); }

/* 4-column comparison (nolu vs apps vs recorded courses) */
.compare-4 .compare-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr); }
.compare-4 .compare-row > div { overflow-wrap: anywhere; hyphens: auto; }
.compare-4 .compare-row > div { padding: 12px 14px; }
.compare-4 .compare-row:not(:first-child) > div:nth-child(2) { justify-content: flex-start; }
@media (max-width: 520px) { .compare-4 .compare-row { font-size: 12px; } .compare-4 .compare-row > div { padding: 10px 8px; } }

/* Class details box (course page enrol card) */
.class-details { display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.class-details dl { margin: 0; display: grid; gap: 6px; }
.class-details dl > div { display: grid; grid-template-columns: 116px 1fr; gap: 10px; font-size: var(--fs-sm); }
.class-details dt { color: var(--ink-3); }
.class-details dd { margin: 0; font-weight: 500; }
#terms-row { font-size: var(--fs-sm); }

/* Legal pages: Spanish note only shows when the site is in Spanish */
.legal-es:empty { display: none; }
.legal-es { margin-top: 16px; max-width: 70ch; }
.footer-consent { margin-top: 10px; font-size: 12px; max-width: 380px; color: rgba(255,255,255,.55); }
.footer-consent a { text-decoration: underline; }
.consents { display: grid; gap: 10px; }
.consents .check { font-size: var(--fs-sm); }
.consents .optional { padding-top: 10px; border-top: 1px dashed var(--line-strong); }

/* ==========================================================================
   Course page layout: content on the left, enrol card fixed in view on the right
   ========================================================================== */
.cd-page { padding-block: 24px var(--s-9); }
.cd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.cd-left { min-width: 0; }
.cd-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); margin-bottom: 32px; }
.cd-head { display: grid; gap: 20px; }
.cd-left .cd-tabs { position: sticky; top: var(--header-h); z-index: 20; margin-top: 40px; background: var(--white); border-bottom: 1px solid var(--line); }
.cd-side { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--r-lg); scrollbar-width: thin; }
.cd-side .enroll { position: static; }
.cd-main > section:first-child { padding-top: 40px; }

/* Videos (course intro + teacher intro) */
.cd-video iframe, .cd-video video, .video-ph iframe, .video-ph video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.cd-video > img, .video-ph > img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.video-soon { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; }
.video-soon-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; }
/* Course page: the cover is a finished design, so show it at full strength with a small corner label */
.cd-video > img { opacity: 1; }
.cd-video .video-soon { place-content: end start; justify-items: start; padding: 16px; }
.cd-video .video-soon-ic { display: none; }

@media (max-width: 1020px) {
  /* Phones/tablets: video → title & facts → enrol card → tabs & information */
  .cd-grid { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .cd-left { display: contents; }
  .cd-grid > *, .cd-left > * { min-width: 0; } /* lets the tab row scroll sideways instead of widening the page */
  .cd-video { order: 1; margin-bottom: 0; }
  .cd-head { order: 2; }
  .cd-side { order: 3; position: static; max-height: none; overflow: visible; }
  .cd-left .cd-tabs { order: 4; margin-top: 8px; }
  .cd-main { order: 5; }
  .cd-main > section:first-child { padding-top: 24px; }
}

/* Text on dark backgrounds is always light */
.cta-band .eyebrow, .teach-hero .eyebrow, .auth-side .eyebrow, .teach-promo .eyebrow, .section-ink .eyebrow { color: rgba(255,255,255,.85); }
.cta-band, .teach-hero, .auth-side, .teach-promo, .section-ink { color: var(--white); }

/* My account: list of later classes under the next one */
.class-later { padding: 16px 24px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.class-later h4 { font-weight: 600; letter-spacing: 0; }
.class-later ul { width: 100%; display: grid; gap: 8px; }
.class-later li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.class-later li.is-skipped .when { text-decoration: line-through; color: var(--ink-3); }
.class-later .when strong { display: block; font-size: var(--fs-sm); }
.class-later .when span { font-size: var(--fs-xs); color: var(--ink-3); }
.class-later .cal { width: 44px; text-align: center; border-radius: 10px; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.class-later .cal span { display: block; background: var(--ink); color: var(--yellow); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 0; }
.class-later .cal strong { display: block; font-size: 1rem; padding: 2px 0; }
@media (max-width: 560px) { .class-later li { grid-template-columns: auto 1fr; } .class-later li .status-pill { grid-column: 2; justify-self: start; } }
.tp-video .video-ph > img { object-position: center 30%; }
.trow-email span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Contact: a sentence you complete ("Hi, I'm a … and my question is about …"), then message, then what happens next */
.cf { min-height: 320px; }
.cf-step { display: grid; gap: 22px; animation: rise .35s var(--ease-out); }
.cf-q { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.03em; outline: none; }
.cf-note { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); color: var(--ink-2); }
.cf-note img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.cf-sentence { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); line-height: 1.35; letter-spacing: -0.03em; font-weight: 600; outline: none; display: block; }
.cf-picks { display: inline-flex; flex-wrap: wrap; gap: 8px; vertical-align: middle; margin: 4px 0; }
.cf-pick { font: inherit; font-size: .62em; font-weight: 600; letter-spacing: -0.01em; padding: .35em .8em; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink); transition: border-color .15s, background .15s; }
.cf-pick:hover, .cf-pick:focus-visible { border-color: var(--ink); background: var(--yellow-soft); }
.cf-chosen { font: inherit; color: var(--red-ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--yellow); }
.cf-chosen:hover { text-decoration-color: var(--red); }
.cf-form { display: grid; gap: 14px; animation: rise .35s var(--ease-out); }
.cf .textarea { min-height: 140px; }
.cf-send { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cf-send p { max-width: 340px; }
.cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* honeypot: hidden from people */
.cf-done { display: grid; gap: 14px; justify-items: start; }
.cf-timeline { display: grid; gap: 0; margin: 8px 0 12px; }
.cf-timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding-bottom: 26px; }
.cf-timeline li:last-child { padding-bottom: 0; }
.cf-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; border-left: 2px dotted var(--ink-3); }
.cf-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--white); display: grid; place-items: center; }
.cf-timeline li.is-done .cf-dot { background: var(--red); border-color: var(--red); color: var(--white); }
.cf-timeline strong { display: block; padding-top: 3px; }
.cf-timeline span { font-size: var(--fs-sm); color: var(--ink-3); }

/* Class page: what happens in a 50-minute Speaking Club class (timeline bar + stages) */
.cls { display: grid; gap: 22px; margin-top: 20px; }
.cls-bar { display: flex; height: 44px; border-radius: 12px; overflow: hidden; }
.cls-seg { display: flex; align-items: center; padding-left: 10px; min-width: 0; font-size: 12px; white-space: nowrap; }
.cls-seg b { font-weight: 700; }
.cls-seg-0 { background: var(--yellow); color: var(--ink); }
.cls-seg-1 { background: var(--yellow-deep); color: var(--ink); }
.cls-seg-2 { background: var(--ink); color: var(--white); }
.cls-seg-3 { background: var(--red); color: var(--white); }
.cls-steps { display: grid; gap: 18px; }
.cls-steps li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.cls-time { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; height: 24px; }
.cls-time i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.cls-steps p { color: var(--ink-2); font-size: var(--fs-sm); margin-top: 2px; }
.cls-why { font-size: 1.0625rem; line-height: 1.65; color: var(--ink); border-left: 3px solid var(--red); padding-left: 16px; }
@media (max-width: 560px) { .cls-steps li { grid-template-columns: 1fr; gap: 4px; } .cls-seg b { display: none; } }

/* Teacher profile: one plain fact sheet instead of stacked boxes */
.tp-facts { display: grid; border-top: 2px solid var(--ink); }
.tp-facts > div { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tp-facts dt { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); }
.tp-facts dd { margin: 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink); }
.tp-facts .sep { color: var(--ink-3); }
.tp-facts .nw { white-space: nowrap; }
.tp-facts .lang-bars div { grid-template-columns: 90px 1fr auto; }
.tp-list { display: grid; gap: 6px; }
.tp-list li { padding-left: 14px; position: relative; }
.tp-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }


/* Level tests page: one feature block + a sample question */
.lt-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 8px 0 24px; }
.lt-copy { display: grid; gap: 14px; justify-items: start; }
.lt-facts { font-weight: 600; }
.lt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.lt-try { background: var(--ink); color: var(--white); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 14px; }
.lt-try-label { font-size: var(--fs-xs); font-weight: 700; color: var(--yellow); }
.lt-try-q { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.lt-try-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lt-try-opts button { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.25); color: var(--white); font-weight: 500; transition: border-color .15s, background .15s; }
.lt-try-opts button:hover:not(:disabled) { border-color: var(--white); }
.lt-try-opts button.is-right { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.lt-try-opts button.is-wrong { border-color: var(--red); background: rgba(255,49,49,.18); }
.lt-try-opts button:disabled { cursor: default; opacity: 1; }
.lt-try-result { min-height: 1.4em; color: rgba(255,255,255,.85); }
.lt-more { border-top: 1px solid var(--line); padding-top: 18px; font-size: var(--fs-sm); }
@media (max-width: 860px) { .lt-feature { grid-template-columns: 1fr; gap: 28px; } }
