 :root{color-scheme:light;--red:#D02931;--action:#556B2F;--correct:#00843D;--amber:#F5A623;--bg:#FFFFFF;--ink:#1C1C1E;--card:#F4F5F7;--secondary:#8E8E93;--on-action:#FFFFFF}
:root[data-theme="dark"]{color-scheme:dark;--action:#A9B665;--bg:#18181B;--ink:#FFFFFF;--card:#28282C;--secondary:#AEAEB2;--on-action:#18181B}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(assets/fonts/poppins-400.woff2) format('woff2'), url(assets/fonts/poppins-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url(assets/fonts/poppins-600.woff2) format('woff2'), url(assets/fonts/poppins-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url(assets/fonts/poppins-700.woff2) format('woff2'), url(assets/fonts/poppins-700.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url(assets/fonts/poppins-800.woff2) format('woff2'), url(assets/fonts/poppins-800.ttf) format('truetype');
}

*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;color:var(--ink);background:var(--bg);font:17px/1.55 Poppins}a{color:inherit;text-underline-offset:.2em}button,textarea,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a:focus-visible,button:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--action);outline-offset:3px}.wrap{width:min(92%, clamp(1180px, 85vw, 1440px));margin:auto}header{border-bottom:1px solid #0001;background:var(--bg)}header .wrap,footer .wrap,.actions,nav,.brand{display:flex;align-items:center;gap:18px;flex-wrap:wrap}header .wrap,footer .wrap{justify-content:space-between;padding:18px 0}.brand{gap:10px;font-weight:800;font-size:21px;letter-spacing:-.05em;text-decoration:none}.brand img{width:42px;height:42px;border-radius:12px}nav a{text-decoration:none;font-weight:650;font-size:16px}nav a:hover,nav a[aria-current]{color:var(--action)}main{text-align:start}h1,h2,h3,p{margin:0 0 .65em}h1,h2,h3{line-height:1.12;letter-spacing:-.055em;text-wrap:balance}h1{font-size:clamp(2rem,calc(1.5rem + 2vw),3.25rem)}h2{font-size:clamp(1.75rem,calc(1.25rem + 1.5vw),2.5rem)}h3{font-size:1.4rem}em{font-style:normal;color:var(--action)}p{max-width:57ch}.hero,.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,4vw,65px);align-items:center}.hero p,.lead{font-size:clamp(1.06rem,1.5vw,1.25rem)}.actions{gap:var(--control-gap);margin:var(--content-gap) 0 0}.btn,button{display:inline-block;background:var(--action);color:white;border:0;border-radius:13px;padding:13px 18px;font-weight:700;text-decoration:none;transition:transform .2s,background .2s}.btn:hover,button:hover{transform:translateY(-2px)}.outline{background:var(--bg);color:var(--ink);box-shadow:inset 0 0 0 1px var(--secondary)}.minor,small{font-size:.9rem}.scene{position:relative;isolation:isolate;display:grid;place-items:center;min-height:480px;border-radius:32px;overflow:hidden;background:var(--olive-wash)}.scene .phone{transform:rotate(4deg);animation:land .7s ease-out}.scene .mascot{position:absolute;bottom:8px;left:2%;width:31%;max-height:180px;object-fit:contain;filter:drop-shadow(0 7px 6px #0003)}@keyframes land{from{opacity:0;transform:translateY(24px) rotate(0)}}.band{padding-block:var(--section-spacing)}.practice{background:var(--card);border-radius:28px;padding:clamp(22px,4vw,50px)}.choices,.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.choices button{background:var(--bg);color:var(--ink);padding:7px;border:1px solid #0002}.choices img,.post img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:9px}.choices button.good{border:3px solid var(--action)}.reply{min-height:28px;font-weight:700;margin:14px 0}.portrait{width:100%;max-height:410px;object-fit:cover;border-radius:24px}.post{display:block;text-decoration:none;color:inherit;background:var(--card);border-radius:22px;overflow:hidden}.post img{aspect-ratio:1.9;border-radius:0}.post div{padding:22px}blockquote{margin:22px 0;padding-left:18px;border-left:4px solid var(--action)}.reading:where(:not(.support-page)){width:min(690px,92%);margin-inline:max(4%,calc((100% - 1180px)/2)) auto}.reading h2{font-size:2rem;margin-top:1em}.reading p{margin-bottom:1em}.feedback label{display:block;margin:14px 0 5px;font-weight:bold}.feedback textarea,.feedback select{width:100%;padding:12px;border:1px solid var(--secondary);border-radius:11px;background:var(--bg)}.feedback textarea{min-height:150px}footer{border-top:1px solid #0002;background:var(--card)}footer nav{gap:12px}dialog{border:0;border-radius:18px;padding:12px;background:var(--bg);max-width:96vw;max-height:98dvh}dialog::backdrop{background:#000d}dialog .actions{justify-content:center;margin:8px 0 0}.crumb{display:inline-block;margin-bottom:22px}[hidden]{display:none!important}@media(max-width:760px){.hero,.split,.grid{grid-template-columns:1fr}.scene{min-height:365px}.scene .mascot{left:7%}header .wrap{gap:10px}nav{gap:12px}.choices{gap:6px}.btn{padding:12px 14px}.portrait{max-height:310px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Fit each screenshot beneath the iPhone 18 Pro bezel. */
.phone {
  position: relative;
  display: block;
  width: min(100%, clamp(185px, 17vw, 250px));
  aspect-ratio: 1293 / 2656;
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 8px 10px #1113);
}
.phone img {
  position: absolute;
  inset: 1.65% 3.8%;
  width: 92.4%;
  height: 96.7%;
  border-radius: 13% / 6%;
  object-fit: fill;
}
.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url(assets/iphone-18-pro.webp) center / 100% 100% no-repeat;
  pointer-events: none;
}
.phone::after {
  content: "";
  position: absolute;
  top: 3%;
  left: 40.85%;
  width: 18.3%;
  height: 2.6%;
  border-radius: 100px;
  background: radial-gradient(circle at 87% 50%, #28282c 0 2%, #09090a 5%);
  pointer-events: none;
}
.scene { padding: 24px 0; }
dialog .phone { width: min(85vw, 36dvh, 420px); }
dialog .actions { gap: 6px; flex-wrap: nowrap; }
dialog button { padding: 10px 12px; }
@media (max-width: 760px) {
  .scene .phone { width: clamp(156px, 45vw, 210px); }

  header nav { gap: 2px 14px; }
  nav a { display: inline-flex; align-items: center; min-height: 44px; }

  .hero .actions { align-items: stretch; }
  .hero .actions .btn { text-align: center; }
}
@media (max-width: 420px) {
  .hero .actions { display: grid; }
  .choices button { font-size: 15px; }
  dialog button { font-size: 16px; }
}
.hero .actions { --hero-button-height: 48px; margin-block-end: 12px; }
.hero .actions .trial-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hero-button-height);
  padding-block: 2px;
  line-height: 1.25;
}
.app-store-badge { display: inline-flex; width: fit-content; align-items: center; align-self: center; }
.app-store-badge img { display: block; height: 53px; width: auto; }
@media (max-width: 420px) { .app-store-badge { justify-self: center; } }

header nav a,header nav a:hover,header nav a:focus-visible,header nav a[aria-current]{text-decoration:none}
.app-store-badge{transition:transform .2s}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.app-store-badge:hover{transform:translateY(-2px)}}
.article-icon { display: block; width: 100%; aspect-ratio: 2 / 1; border-radius: 22px; object-fit: cover; margin: 0 0 24px; }
#reviews{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:var(--content-gap);margin:var(--content-gap) 0 0;max-width:900px}
.review-card{background:var(--card);border-radius:22px;padding:clamp(22px,4vw,42px)}
.review-card h2{font-size:1.5rem}.review-card blockquote{font-size:1.25rem}.review-card video{display:block;width:100%;max-height:65vh;border-radius:12px;background:var(--ink)}

.hero h1 em{color:var(--red)}
.btn,button{color:var(--on-action)}
.btn.outline,.choices button{color:var(--ink)}
.choices button.good{border-color:var(--correct)}

.hero-localized img{display:block;height:clamp(320px,35vw,465px);max-width:100%;object-fit:contain}
dialog{color:var(--ink)}
@media(prefers-color-scheme:dark){.hero-localized img{background:transparent}}
.brand-red,.hero h1 em{color:#D02931}.brand-red{font-weight:inherit}.brand img{object-fit:contain;border-radius:0}
.app-reviews figure{margin:0;background:var(--card);border-radius:22px;padding:clamp(20px,3vw,34px);display:flex;flex-direction:column;justify-content:space-between;gap:18px}
.app-reviews blockquote{margin:0;border:0;padding:0;font-size:1.12rem}.app-reviews figcaption{font-size:.94rem}
#reviews{max-width:none;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
.brand picture{display:flex}

.brand .logo-dark,html[data-theme="dark"] .brand .logo-light{display:none}
html[data-theme="dark"] .brand .logo-dark{display:block;background:white;border-radius:9px}

.trial-action{background:var(--action);color:var(--on-action)}


.brand-mark{filter:none!important;box-shadow:none!important;background:transparent!important}
.hero-localized img{filter:drop-shadow(0 5px 4px rgb(0 0 0 / .12))}
.kmatch > div:not(.exercise-progress) { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem .875rem; }
.kblank strong{display:block;margin:.7rem 0}.kblank button{margin:.2rem}

.home-main { --exercise-spacing: clamp(12px, 1.5vw, 20px); }
.kazgames { display: grid; gap: var(--exercise-spacing); }
.kazgames .practice{width:100%;margin:0}
.practice .wrong,[data-answer=wrong]{--answer:#D02931}
.practice .good,[data-answer=good]{--answer:#00843D}
.practice [role=status],.practice .reply{min-height:1.5em}
.practice [data-answer]{border-inline-start:4px solid var(--answer);padding-inline-start:.65em}

:root {
  --olive-wash: color-mix(in srgb, var(--action) 14%, var(--bg));
  --olive-soft: color-mix(in srgb, var(--action) 8%, var(--bg));
  --olive-line: color-mix(in srgb, var(--action) 26%, var(--bg));
}

body > header { position: sticky; inset-block-start: 0; z-index: 20; }
header .wrap { flex-wrap: nowrap; gap: clamp(12px, 2vw, 30px); }
header .brand { flex: none; flex-wrap: nowrap; }
header .site-menu {
  display: flex; align-items: center; justify-content: flex-end;
  flex: 1; gap: clamp(12px, 1.8vw, 26px);
}
header nav { gap: clamp(12px, 1.25vw, 20px); }
header .header-app-store { flex: none; }
header .header-app-store img { height: 36px; }
header :is(.theme-switch, .menu-toggle, :where(.language-switch > summary)) {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid var(--olive-line); background: var(--olive-soft); color: var(--ink);
}
header :is(.theme-switch, .menu-toggle, :where(.language-switch > summary)) svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
header .menu-toggle { display: none; }

header :is(.theme-switch, .menu-toggle) svg {
  grid-area: 1 / 1;
  transition: opacity 180ms ease, transform 260ms ease;
}

.theme-switch .icon-sun, .menu-toggle .icon-close {
  opacity: 0;
  transform: rotate(-55deg) scale(.65);
}

[data-theme="dark"] .theme-switch .icon-moon,
.menu-open .menu-toggle .icon-menu {
  opacity: 0;
  transform: rotate(55deg) scale(.65);
}

[data-theme="dark"] .theme-switch .icon-sun,
.menu-open .menu-toggle .icon-close {
  opacity: 1;
  transform: none;
}

:is(.language-switch, .appearance-switch) { position: relative; flex: none; }
:is(.language-switch, .appearance-switch) summary { cursor: pointer; list-style: none; }
:is(.language-switch, .appearance-switch) summary::-webkit-details-marker { display: none; }
:is(.language-switch, .appearance-switch) summary:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
}
.language-options {
  display: grid;
  gap: 3px;
  position: absolute;
  z-index: 10;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 7.25rem;
  padding: 4px;
  border: 1px solid var(--olive-line);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 8px 22px #0003;
}
.language-options a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 8px;
  border-radius: 9px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.language-options a:is(:hover, :focus-visible, [aria-current]) {
  color: var(--action);
  background: var(--olive-wash);
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  header .language-switch svg { transition: transform 260ms ease; }
  header .language-switch[open] summary svg,
  :root:not([data-theme="dark"]) header .appearance-switch[open] .icon-moon,
  [data-theme="dark"] header .appearance-switch[open] .icon-sun {
    transform: rotate(55deg);
  }
}

@media (max-width: 760px) {
  header .wrap {
    position: relative;
    --header-control-gap: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-template-areas: "brand menu language theme" "links links links links";
    gap: 0 var(--header-control-gap);
    padding-block: 10px;
  }
  header .brand { grid-area: brand; justify-self: start; }
  header .menu-toggle { display: inline-grid; grid-area: menu; }
  header :is(.theme-switch, .appearance-switch) { grid-area: theme; }
  header .language-switch { grid-area: language; }
  header .site-menu { grid-area: links; }
  header.menu-ready .site-menu {
    grid-area: auto;
    position: absolute;
    z-index: 10;
    inset-block-start: calc(100% - 2px);
    inset-inline-end: calc(72px + 2 * var(--header-control-gap));
    width: max-content;
    max-width: calc(100% - 72px - 2 * var(--header-control-gap));
    padding: 4px;
    border: 1px solid var(--olive-line);
    border-radius: 14px;
    background: var(--bg);
    box-shadow: 0 8px 22px #0003;
  }
  header.menu-ready:not(.menu-open) .site-menu { display: none; }
  header .header-app-store { display: none; }
  header .site-menu > nav { display: grid; width: 100%; gap: 0; }
  header nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: start;
    min-height: 36px;
    padding: 4px 8px;
    border-radius: 9px;
    font-size: .9rem;
    font-weight: 600;
  }
  header nav a:is(:hover, :focus-visible, [aria-current]) { background: var(--olive-wash); }
}

@media (max-width: 380px) {
  header .wrap { --header-control-gap: 4px; }
  header .brand { gap: 5px; font-size: 18px; }
  header .brand img { width: 34px; height: 34px; }
}

.hero h1 { line-height: 1.06; margin-bottom: .34em; }
.scene {
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  gap: clamp(6px, 2vw, 12px);
  min-height: 0; padding: clamp(14px, 2vw, 28px);
  border: 1px solid var(--olive-line);
  background: var(--olive-wash) url(assets/raouche-hero.webp) center / cover no-repeat;
}
.hero-localized { width: min(100%, 239px); justify-self: center; }
.hero-localized img {
  width: 100%; height: auto;
  filter: drop-shadow(0 6px 5px rgb(0 0 0 / .16));
}
.hero-lebo {
  display: grid; justify-items: center; gap: 6px;
  align-self: end; width: 100%; margin-bottom: 4%;
}
.hero-lebo picture { width: min(100%, 164px); }
.scene .mascot {
  position: static; display: block; width: 100%; height: auto; max-height: none;
  pointer-events: none;
  filter: drop-shadow(0 5px 4px rgb(0 0 0 / .12));
}

#lightbox { padding: 14px; border: 1px solid var(--olive-line); }
#lightbox .tour-full-preview {
  width: min(84vw, max(76px, calc((100dvh - 145px) * .49)), 520px);
  aspect-ratio: 608 / 1243;
  align-self: start;
}

.preview-caption { text-align: center; padding-top: 8px; font-weight: 600; font-size: .94rem; }
#lightbox .actions button { min-height: 44px; }
#lightbox #close { background: var(--olive-soft); color: var(--ink); }

.practice {
  background: var(--olive-soft); border: 1px solid var(--olive-line);
  padding: clamp(23px, 3.4vw, 44px); color: var(--ink);
}
.practice h2 { font-size: clamp(1.9rem, 3.1vw, 2.85rem); line-height: 1.09; margin-bottom: .34em; }
.practice p { margin-bottom: .7em; }
.practice .choices button { padding: 6px; }
.practice .choices img { margin-bottom: 5px; }
.practice .listen-feedback { margin: 8px 0 0; }
.kazgames .practice:first-child { background: var(--bg); }
.kazgames .practice:nth-child(2) { background: var(--olive-soft); }
.kazgames .practice {
  align-items: start;
  min-block-size: 18rem;
  padding-block: clamp(26px, 3.7vw, 46px);
}
.kazgames .typing-card { background: var(--olive-wash); scroll-margin-block-start: 18px; }
.kblank strong { font-size: 1.3rem; }
:is(.kblank, .kmatch) [role=status]:not(:empty) { margin: 12px 0 0; }
.kmatch > button, .kblank > button { margin: 16px 0 0; }
.practice [role=status]:empty { margin: 0; min-height: 0; }
.practice input:is(.good, .wrong) {
  border: 2px solid var(--answer);
  background: color-mix(in srgb, var(--answer) 9%, var(--bg));
  box-shadow: none; color: var(--ink); opacity: 1;
}
.practice button:disabled { transform: none; cursor: default; }
.practice button:focus-visible, .type-form input:focus-visible, .type-hint summary:focus-visible {
  outline: 3px solid var(--action); outline-offset: 3px;
}
.type-question { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; margin-bottom: 10px; }
.type-question label { font-weight: 600; }
.type-entry { display: flex; gap: 8px; align-items: stretch; }
.type-form { min-width: 0; }
.type-form input {
  min-width: 0; width: 100%; padding: .7rem .9rem; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--action); border-radius: 12px;
}
.type-form input::placeholder { color: color-mix(in srgb, var(--ink) 66%, var(--bg)); }
.kazgames .type-entry button {
  flex: none;
}
.type-hint { margin-top: 5px; }
.type-hint summary {
  width: fit-content; cursor: pointer; padding: 8px 3px; text-decoration: underline; text-underline-offset: .2em;
}
.type-hint p { margin: 0 0 8px; }
.typing-intro { display: flex; align-items: center; gap: 6px; }
.typing-intro img { width: clamp(65px, 7vw, 101px); height: auto; flex: none; }
@media (prefers-reduced-motion:no-preference) {
  .typing-card:focus-within .typing-intro img { animation: lebo-nod .6s ease-in-out; transform-origin: 50% 87%; }
  @keyframes lebo-nod { 45% { transform: rotate(-5deg) translateY(-2px); } }
}

.app-reviews figure, .review-card, .post { background: var(--olive-soft); border: 1px solid var(--olive-line); }
.app-reviews figure:nth-child(3n+2), .review-card:nth-child(3n+2) { background: var(--bg); }
.app-reviews figure:nth-child(3n), .review-card:nth-child(3n) { background: var(--olive-soft); }
#lessons { align-items: start; row-gap: var(--content-gap); }
#lessons .actions { margin: 0; }
#lessons .portrait { display: block; }
.lessons-hero { align-items: start; }
.lessons-hero .portrait { object-position: center 68%; }
.lesson-quote {
  grid-column: 1/-1; padding: clamp(22px, 3.2vw, 38px);
  background: var(--olive-soft); border: 1px solid var(--olive-line); border-radius: 24px;
}
.lesson-quote h3 { font-size: clamp(1.55rem, 2.3vw, 2rem); line-height: 1.17; margin: 0 0 1em; }
.lesson-review-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(18px, 2.4vw, 32px); }
.lesson-review-list figure { margin: 0; border-inline-start: 4px solid var(--action); padding-inline-start: 15px; }
.lesson-review-list :is(blockquote, p) { margin: 0; padding: 0; border: 0; font-size: 1.01rem; line-height: 1.55; }
.lesson-quote a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; font-weight: 600; }
.home-main .lesson-quote figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.home-main .lesson-quote figcaption > a { margin-block-start: 0; }
@media (max-width: 58rem) {
  .lesson-review-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .typing-intro { justify-content: space-between; }
  .type-entry { flex-wrap: wrap; }
  .type-entry input { flex: 1 1 150px; }
  .lesson-review-list { grid-template-columns: repeat(auto-fit, minmax(min(235px,100%), 1fr)); }
  .practice.split { gap: 14px; }
  .practice .listen-feedback:empty { min-height: 0; margin: 0; }
  #lessons > .lesson-quote { margin-block-start: 10px; }
  #app .actions { gap: 6px; margin-block-end: 1.5rem; }
  #app .actions .app-store-badge { justify-self: start; min-height: 44px; }
  #app .actions .app-store-badge img { height: 50px; width: auto; }
  #lessons .portrait { max-height: 340px; }
}
@media (max-width: 420px) {
  .hero .actions { justify-content: start; justify-items: start; }
  .hero .actions .app-store-badge { justify-self: start; }
  #lightbox .actions button { padding: 8px 10px; }
}
@media (hover:none), (prefers-reduced-motion:reduce) {
  .btn:hover, button:hover { transform: none; }
}

#tour {
  background: var(--bg);
}
.tour-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .93fr);
  align-items: center;
  gap: clamp(16px, 4vw, 54px);
  padding: clamp(23px, 3.7vw, 48px);
  border: 1px solid var(--olive-line);
  border-radius: 32px;
  background: var(--olive-wash);
}
.tour-info :is(h2, h3) {
  font-size: clamp(1.75rem, calc(1.25rem + 1.5vw), 2.5rem);
  line-height: 1.08;
  margin-bottom: .35em;
}
.tour-tip { margin: 0; }
.tour-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 1.05rem 0 .9rem;
}
.tour-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--olive-line);
  background: var(--bg);
  color: var(--ink);
}
/* A filled triangle for directional controls and links. */
:root {
  --navigation-triangle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 1.7Q3 .6 4 .95l7 4.15q1.25.9 0 1.8L4 11.05Q3 11.4 3 10.3Z'/%3E%3C/svg%3E");
}
:is(.tour-arrow, [data-blog-step])::before {
  content: "";
  display: inline-block;
  width: .72em;
  height: .72em;
  flex: none;
  vertical-align: middle;
  background: currentColor;
  mask: var(--navigation-triangle) center / contain no-repeat;
}
.tour-previous::before, [data-blog-step="-1"]::before {
  transform: scaleX(-1);
}
.tour-arrow[aria-disabled=true], #lightbox button[aria-disabled=true] {
  opacity: .44;
  cursor: default;
  transform: none;
}
.tour-position {
  color: var(--action);
  width: min(10.5rem, calc(100% - 104px));
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 6px 8px;
  border: 1px solid var(--olive-line);
  border-radius: 12px;
  background: var(--bg);
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
}
.tour-captions { display: grid; align-items: start; }
/* The tallest caption sets the row height at each viewport width. */
.tour-caption { grid-area: 1 / 1; }
.tour-caption:not(.is-current) { visibility: hidden; }
.tour-caption :is(h3, h4) {
  margin-block: 0 var(--text-gap);
  font-size: clamp(1.26rem, 2.25vw, 1.68rem);
  line-height: 1.16;
  text-wrap: initial;
}
.tour-caption p { margin: 0; max-width: 40ch; }

.tour-viewport {
  width: min(100%, 425px);
  --tour-edge-fade: clamp(12px, 5%, 22px);
  mask-image: linear-gradient(to right, transparent, #000 var(--tour-edge-fade), #000 calc(100% - var(--tour-edge-fade)), transparent);
  padding-block: 8px;
  justify-self: center;
  overflow: hidden;
  overflow: clip;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  cursor: grab;
}
.tour-track {
  --tour-gap: 16px;
  display: flex;
  gap: var(--tour-gap);
  width: min(73%, 276px);
  margin-inline: auto;
  transform: translateX(calc(var(--tour-index, 0) * (-100% - var(--tour-gap)) + var(--tour-drag, 0px)));
  transition: transform .31s cubic-bezier(.22, .72, .32, 1);
}
.tour-track.is-dragging { cursor: grabbing; transition: none; }
.tour-shot {
  position: relative;
  display: block;
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 608 / 1243;
  align-self: start;
  border-radius: 20px;
  opacity: .48;
  cursor: inherit;
  transition: opacity .2s ease-out;
}
.tour-shot.is-current { opacity: 1; }
.tour-shot:focus-visible { outline-offset: 2px; }
.tour-shot img, .tour-full-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.tour-shot img {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 4px 3px rgb(0 0 0 / .12));
}
.tour-full-preview { touch-action: pan-y pinch-zoom; user-select: none; }
@media (max-width: 760px) {
  .tour-panel { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: clamp(18px, 5vw, 34px); }
  .tour-track { width: min(76%, 245px); }
}
:root { --card: #fff; }
:root[data-theme=dark] { --card: #28282c; }
.overview article { border: 1px solid var(--olive-line); border-radius: 22px; overflow: hidden; background: var(--bg); }
.overview .grid { align-items: stretch; }
.overview-art { background: var(--olive-wash); height: 245px; display: grid; justify-items: center; overflow: hidden; padding: 16px; }
.overview-art img { width: 146px; height: auto; filter: drop-shadow(0 6px 10px #0002); }
.overview-text { padding: 22px; }
.overview-text h3 { line-height: 1.15; }
.community-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; background: var(--olive-wash); border-radius: 24px; padding: 32px 16px; }
.community-stats strong { display: block; font-size: clamp(1.7rem,4vw,2.5rem); }
.app-reviews .lesson-review-list { grid-template-columns: repeat(3,minmax(0,1fr)); background: var(--olive-soft); border: 1px solid var(--olive-line); border-radius: 24px; padding: clamp(22px,3vw,38px); }
.app-reviews .lesson-review-list figure { padding: 0 0 0 15px; border-radius: 0; border: 0; border-inline-start: 4px solid var(--action); background: none; display: block; }
footer { background: #556B2F; color: #fff; }
footer .brand-red { color: white; }
footer a:hover { color: #fff; }
.faq-list { border-radius: 24px; padding: clamp(18px,5vw,44px); background: var(--olive-wash); }
.faq-list details { padding: 15px 0; }
.faq-list details + details { border-top: 1px solid var(--olive-line); }
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list p { margin: .65em 0 0; }
.lebo-greeting { border-radius: 12px; background: var(--olive-wash); color: var(--ink); padding: 6px 9px; font-size: clamp(.78rem, 1.5vw, .9rem); font-weight: 600; text-align: center; line-height: 1.35; }
@media(max-width:760px) {
 .community-stats { grid-template-columns: repeat(2,1fr); }
 .app-reviews .lesson-review-list { grid-template-columns: 1fr; }
 .overview-art { height: 200px; }
}
.kazgames .typing-card, .community-stats { background: var(--bg); border: 1px solid var(--olive-line); }
footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  align-items: start;
  gap: clamp(20px, 5vw, 64px);
  padding-block: clamp(28px, 5vw, 58px) 20px;
}

.site-footer h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 700;
}

footer .footer-group {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 2px;
}

.site-footer .footer-group a,
.site-footer .footer-languages a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
}

.site-footer :is(.footer-group, .footer-languages) a:is(:hover, :focus-visible) {
  color: #fff;
  text-decoration: none;
}

.site-footer :is(.footer-group, .footer-languages) a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.footer-social .social-links { display: grid; gap: 12px; }
.footer-social .social-links > div { display: flex; align-items: center; flex-wrap: wrap; gap: 0 2px; }
.footer-social .social-links strong { flex-basis: 100%; font-size: .85rem; }
.footer-social .social-links a {
  width: 36px;
  justify-content: center;
  border-radius: 8px;
}
.footer-social .social-links a:focus-visible { background: rgb(255 255 255 / 15%); }

footer .footer-end {
  position: relative;
  display: grid;
  padding-block: 20px 24px;
  gap: 16px;
}
footer .footer-end::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--footer-divider-color, #fff);
  transform: scaleY(.5);
  transform-origin: top;
}

footer .footer-languages { display: grid; gap: 2px; }
.footer-languages > div { display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-footer .footer-languages a[aria-current] { font-weight: 800; text-decoration: none; }
.site-footer .footer-social a::after,
.site-footer .footer-languages a::after { content: none; }

@media (max-width: 580px) {
  footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-social { grid-column: 1 / -1; }
}

#android-waitlist { position: relative; width: min(94vw, 570px); padding: 28px; background: var(--olive-wash); }
#android-waitlist h2 { padding-right: 32px; font-size: clamp(1.45rem, 4vw, 2rem); }
#android-waitlist form, .waitlist-fields { display: grid; gap: 10px; }
.waitlist-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
.waitlist-fields input { display: block; width: 100%; margin-top: 4px; padding: 12px; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--olive-line); border-radius: 13px; }
.waitlist-close { position: absolute; inset: 10px 10px auto auto; padding: 0; width: 42px; height: 42px; background: var(--bg); color: var(--ink); }
#android-waitlist [role=status]:empty { margin: 0; }
@media(max-width:480px) { .waitlist-fields { grid-template-columns: 1fr; } }
.lesson-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--section-spacing); }
.lesson-details h2 { font-size: clamp(1.65rem,3vw,2.4rem); line-height: 1.12; }
.lesson-start li { margin-block: .5em; }
.lesson-start .actions { align-items: center; }
@media(max-width:760px) { .lesson-details { grid-template-columns: 1fr; } }
.wrap.band:has(#listen) .practice, .kazgames .practice:has(.kblank) { background: var(--bg); }
.kazgames .practice:has(.kmatch), .kazgames .typing-card { background: var(--olive-wash); }
.blog-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.blog-heading h2 { margin: 0; }
.blog-slider { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px) / 5); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 9px; }
.blog-slider .post { scroll-snap-align: start; }
.blog-slider .post div { padding: 14px; }
.blog-slider h3 { font-size: 1.06rem; line-height: 1.25; }
.blog-slider p { font-size: .88rem; }
.blog-controls { display: none; }
@media(max-width:1000px) {
  .blog-slider { grid-auto-columns: clamp(174px, 31%, 265px); }
}
@media (min-width: 761px) and (max-width: 1000px) and (pointer: fine) {
  .blog-controls { display: flex; justify-content: end; gap: 8px; margin-top: 8px; }
  .blog-controls button { padding: 5px; width: 44px; height: 44px; font-size: 1.4rem; }
}
@media(max-width:500px) { .blog-slider { grid-auto-columns: 76%; } }
@media(any-pointer:coarse) {
  .tour-viewport { --slide-width: min(76%, 245px); position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x mandatory; touch-action: pan-x pan-y pinch-zoom; overscroll-behavior-x: contain; cursor: auto; }
  .tour-track { width: auto; margin: 0; padding-inline: calc((100% - var(--slide-width)) / 2); transform: none; transition: none; }
  .tour-track::after { content: ""; flex: 0 0 0; margin-inline-start: calc(-1 * var(--tour-gap)); }
  .tour-shot { flex: 0 0 100%; scroll-snap-align: center; transition: none; }
  .tour-shot img { filter: none; }
}

/* Text links use a trailing arrow, with a visible focus outline for keyboard users. */
a:not(.btn, .brand, .app-store-badge, .post, .tour-shot, :has(img)) {
  text-decoration: none;
}

a:not(.btn, .brand, .app-store-badge, .post, .tour-shot, :has(img), .blog-page a, .language-options a, header nav a, footer nav a)::after {
  content: "";
  display: inline-block;
  width: .55em;
  height: .55em;
  margin-inline-start: .35em;
  vertical-align: .06em;
  background: currentColor;
  mask: var(--navigation-triangle) center / contain no-repeat;
}

a:not(.btn, .brand, .app-store-badge, .post, .tour-shot, :has(img)):hover,
.post:hover h3 {
  color: var(--action);
  text-decoration: none;
}

footer a:not(.btn, .brand, .app-store-badge, .post, .tour-shot, :has(img)):hover {
  color: #fff;
  opacity: .85;
}

@media (max-width: 760px) {
  .blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .blog-list .post { border-radius: 15px; }
  .blog-list .post div { padding: 12px; }
  .blog-list h3 { font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
  .blog-list p { font-size: .875rem; line-height: 1.4; }
}

@media (max-width: 760px) {
  .lebo-greeting-name { display: block; white-space: nowrap; }
}



:is(.btn, button, :is(.language-switch, .appearance-switch) > summary):not(:where(.app-store-badge, .cookie-settings-link, .practice button)) {
  --button-depth: 5px;
  --button-press-offset: 0px;
  --button-edge: color-mix(in srgb, var(--action) 58%, black);
  --button-inset: transparent;
  box-shadow: 0 var(--button-depth) 0 var(--button-edge), inset 0 0 0 1px var(--button-inset);
}

.btn.outline {
  --button-edge: var(--practice-neutral-edge, #abb0a8);
  --button-inset: var(--secondary);
}

:is(.theme-switch, .menu-toggle, .language-switch > summary, .tour-arrow, .waitlist-close) {
  --button-depth: 4px;
  --button-edge: var(--practice-neutral-edge, #abb0a8);
}

:is(.btn, button, :is(.language-switch, .appearance-switch) > summary):not(.app-store-badge, .cookie-settings-link, .practice button, :disabled, [aria-disabled=true]):active {
  box-shadow: 0 1px 0 var(--button-edge), inset 0 0 0 1px var(--button-inset);
  transform: translateY(var(--button-press-offset));
}

.practice button {
  --button-depth: 6px;
  --button-edge: var(--practice-neutral-edge, #abb0a8);
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--olive-line);
  border-radius: 16px;
  min-height: 44px;
  box-shadow: 0 var(--button-depth) 0 var(--button-edge);
}

:root[data-theme="dark"] {
  --practice-neutral-edge: #080809;
}

.practice :is(#listen, .typing-card button, .kmatch > button, .kblank > button),
.practice .kmatch button[aria-pressed=true] {
  --button-edge: color-mix(in srgb, var(--action) 58%, black);
  background: var(--action);
  border-color: transparent;
  color: var(--on-action);
}

.practice button:disabled:not(.good, .wrong) {
  background: var(--card);
  color: var(--secondary);
}

.practice button:is(.good, .wrong) {
  --button-edge: color-mix(in srgb, var(--answer) 62%, black);
  background: var(--answer);
  border-color: transparent;
  color: white;
}

.practice button:hover {
  transform: none;
}

.practice button:not(:disabled):active {
  --button-depth: 1px;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  :is(.btn, button, :is(.language-switch, .appearance-switch) > summary):not(:where(.app-store-badge, .cookie-settings-link, .practice button)) {
    --button-press-offset: calc(var(--button-depth) - 1px);
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 220ms ease, color 220ms ease;
  }

  .practice button {
    transition: transform 100ms ease-out, box-shadow 100ms ease-out;
  }

  .practice button:not(:disabled):active {
    transform: translateY(5px);
    transition-duration: 65ms;
  }
}

.support-policy-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.support-footer .footer-end { --footer-divider-color: rgb(255 255 255 / 32%); }

header :is(.theme-switch, .menu-toggle, .language-switch > summary) {
  width: 36px;
  height: 36px;
  --button-depth: 3px;
}
header :is(.theme-switch, .menu-toggle, .language-switch > summary) svg { width: 18px; height: 18px; }
@media (min-width: 761px) {
  header .theme-switch { margin-inline-start: calc(8px - clamp(12px, 2vw, 30px)); }
}


/* Match the trial button's lift and press across interactive controls. */
@media (prefers-reduced-motion: no-preference) {
  :is(.app-store-badge, header nav a, .language-options a, .site-footer a) {
    transition: transform 140ms ease, background-color 220ms ease, color 220ms ease;
  }

  :is(.app-store-badge, header nav a, .language-options a, .site-footer a):active {
    transform: translateY(2px);
  }

  @media (hover: hover) {
    :is(button, .btn, :is(.language-switch, .appearance-switch) > summary, .app-store-badge,
        header nav a, .language-options a, .site-footer a):not(:disabled, [aria-disabled=true]):hover:not(:active) {
      transform: translateY(-2px);
    }
  }
}

.community-stats { text-align: center; align-items: center; }
#lessons > div > ol { padding-inline-start: 0; list-style-position: inside; }



:root {
  --section-spacing: clamp(24px, 3.5vw, 48px);
  --text-gap: clamp(8px, 1vw, 12px);
  --content-gap: clamp(12px, 1.6vw, 20px);
  --control-gap: clamp(8px, 1.2vw, 14px);
}

main { padding-block: var(--section-spacing); }

main > :is(.band, .hero, .kazgames, .community-stats, .lesson-start) {
  margin-block: 0;
}

main > :is(.band, .hero) { padding-block: 0; }

main > :is(.band, .hero, .kazgames, .community-stats, .lesson-start) ~
       :is(.band, .hero, .kazgames, .community-stats, .lesson-start) {
  margin-block-start: var(--section-spacing);
}

main.reading > h2 { margin-block-start: var(--section-spacing); }


.hero .download-note { font-size: .9rem; margin: 0 0 8px; }
.hero-app-review {
  border-color: var(--olive-line);
  max-width: 38ch;
  margin: 0 0 14px;
  font-size: .95rem;
}
.home-main > .more-games { display: none; }
@media (min-width: 761px) {
  .home-main > .band:has(#listen) + .more-games + .kazgames {
    margin-block-start: var(--exercise-spacing);
  }
}
@media (max-width: 760px) {
  .home-main > .more-games { display: block; margin-block-start: var(--exercise-spacing); }
  
  .home-main > .more-games + .kazgames { margin-block-start: var(--exercise-spacing); }
  .more-games:has(button[aria-expanded="false"]) + .kazgames { display: none; }
}

.lesson-start > ol { padding-inline-start: 0; list-style-position: inside; }
.featured-student-video h2 { margin-block-end: 6px; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.featured-student-video p { margin-block-end: 8px; }
.student-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: var(--content-gap);
}
.student-video {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid var(--olive-line);
  border-radius: 14px;
  background: var(--olive-soft);
  font-weight: 700;
}

.student-video { color: var(--ink); }
.student-video-grid .student-video { display: grid; gap: 8px; padding: 8px; text-align: start; }
.student-video-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 9px;
  background: var(--olive-wash);
}
.student-video-preview img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.student-video-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgb(0 0 0 / 72%);
  color: white;
}
.student-video-play::before {
  content: "";
  width: 13px;
  height: 15px;
  margin-inline-start: 2px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.student-video-grid .student-video-name { padding-inline: 4px; }
@media (max-width: 600px) {
  .student-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.student-video-dialog { width: min(440px, 94vw, calc(43dvh + 32px)); color: var(--ink); padding: var(--content-gap); }
.student-video-header { display: flex; justify-content: space-between; align-items: center; gap: var(--control-gap); }
.student-video-header h2 { font-size: 1.5rem; margin: 0; }
.student-video-player iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 8px;
  margin-block-start: var(--content-gap);
}

.student-video-header button:focus-visible { outline-color: var(--ink); }

.featured-student-video .featured-video-grid {
  width: min(100%, calc(448px + var(--content-gap)));
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-booking-note { margin-block: var(--content-gap) 0; }

.trial-label-mobile { display: none; }

/* Keep the trial and social links in the shared mobile button layout. */
.about-buttons { display: contents; }
@media (max-width: 540px) {
  .about-buttons .about-socials { display: contents; }
  .about-buttons .btn { text-align: center; justify-content: center; }
  .about-buttons,
  :is(#app, #lessons, .lesson-start) .actions,
  .actions.review-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 16px;
    width: min(100%, 20rem);
  }
  :is(#app, #lessons, .lesson-start) .actions > .btn,
  .review-cta > .btn { text-align: center; }

  #app .actions { width: min(100%, 20rem); gap: 12px; }
  #app .trial-action { font-size: .9375rem; padding-inline: 8px; white-space: nowrap; }
  #app .trial-action .trial-label-wide { display: none; }
  #app .trial-action .trial-label-mobile { display: inline; }
}

main :is(h1, h2, h3):has(+ p) {
  margin-block-end: var(--text-gap);
}

.support-page > h1 {
  margin-block-end: clamp(20px, 2.4vw, 32px);
}

/* Frame the real coastline and keep the phone and Lebo readable over the water. */
#app .scene {
  background-image: linear-gradient(155deg, transparent 32%, rgb(15 35 29 / .22)),
    url(assets/raouche-hero.webp);
  box-shadow: 0 12px 30px -20px rgb(26 47 28 / .55);
}
[data-theme="dark"] #app .scene {
  background-image: linear-gradient(145deg, rgb(17 27 34 / .19), rgb(15 29 30 / .46)),
    url(assets/raouche-hero.webp);
}
#app .hero-localized {
  position: relative;
  border-radius: 15% / 7%;
  filter: drop-shadow(0 9px 9px rgb(11 28 24 / .18));
}
.hero-lebo { gap: 12px; }
.hero-lebo .lebo-greeting {
  position: relative;
  border-radius: 14px;
  padding: 8px 12px;
  background: var(--bg);
  box-shadow: 0 3px 14px rgb(14 29 20 / .18);
}
.lebo-greeting::after {
  content: "";
  position: absolute;
  top: calc(100% - 1px);
  left: calc(50% - 6px);
  border: 6px solid transparent;
  border-top-color: var(--bg);
}
.overview {
  --overview-olive: #e2e8cc;
  --overview-red: #f7d8d5;
  --overview-blue: #d9e9f6;
}
[data-theme="dark"] .overview {
  --overview-olive: #424831;
  --overview-red: #563838;
  --overview-blue: #324857;
}
.overview article { background: var(--bg); }
.overview-art {
  align-items: start;
  padding-block-start: clamp(17px, 2.6vw, 32px);
  background: var(--overview-olive);
}
.overview article:nth-child(2) .overview-art { background: var(--overview-red); }
.overview article:nth-child(3) .overview-art { background: var(--overview-blue); }
.overview-art img { width: clamp(152px, 14vw, 188px); }
.overview-text p, .post p { margin-bottom: 0; }
.blog-list .post, .blog-slider .post, .review-card {
  border: 1px solid var(--olive-line);
}
.blog-list .post, .blog-slider .post { background: var(--card); }
.tour-position { font-variant-numeric: tabular-nums; }
#tour .tour-arrow, #tour .tour-position { flex-shrink: 0; }
.student-video-play { box-shadow: 0 0 0 1px rgb(255 255 255 / .55), 0 3px 12px rgb(0 0 0 / .17); }
@media (prefers-reduced-motion: no-preference) {
  [data-entry-motion] {
    translate: 0 var(--entry-rise, 0px);
    transition: translate 330ms cubic-bezier(.2,.72,.26,1);
  }
  #app .scene, .lessons-hero .portrait { animation: scene-arrival 650ms cubic-bezier(.22,.77,.27,1) both; }
  .tour-caption.is-current, .tour-position > span { animation: tour-text-fade 200ms ease-out; }
  .student-video-play, .post img {
    transition: scale 230ms ease-out, box-shadow 230ms ease-out;
  }
  @keyframes scene-arrival {
    from { opacity: .78; transform: translateY(15px) scale(.985); }
    to { opacity: 1; transform: none; }
  }
  @keyframes tour-text-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @media (hover: hover) and (pointer: fine) {
    .student-video:is(:hover, :focus-visible) .student-video-play { scale: 1.10; }
    .post:is(:hover, :focus-visible) img { scale: 1.025; }
  }
}

.tour-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1px 8px;
}
.tour-position small { font-size: .75rem; color: var(--ink); font-weight: 600; white-space: nowrap; }
.bilingual-example {
  padding-inline-start: .85rem;
  border-inline-start: 3px solid var(--olive-line);
}
.bilingual-example strong[lang="ar-Latn"] { color: var(--action); }
@media (max-width: 360px) {
  header .brand-mark { width: 29px; height: 29px; }
  header .brand span { font-size: 15px; white-space: nowrap; }
}

.blog-page { --article-red: var(--red); --article-heading: #000; }
[data-theme="dark"] .blog-page { --article-red: #ff9399; --article-heading: var(--ink); }
.blog-page :is(.article-opening h1, .reading h2, .reading h3),
.blog-page.reading :is(h2, h3) { color: var(--article-heading); }
.article-opening h1 .article-title-accent { color: var(--article-red); }
.blog-page .reading a:not(.article-back, .btn, .app-store-badge),
.blog-page.reading a:not(.article-back, .btn, .app-store-badge),
.blog-page .bilingual-example strong[lang="ar-Latn"] {
  color: var(--article-red);
}
.blog-page .bilingual-example { border-inline-start-color: var(--article-red); }
/* Keep article artwork intact, with square, aligned thumbnails in both listings. */
.article-opening { display: flex; flex-direction: column; }
.article-intro { display: contents; }
.article-opening h1 {
  margin-block: 0 clamp(8px, 1vw, 12px);
  line-height: 1.14;
  letter-spacing: -.035em;
}
.article-opening .article-icon {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
:is(.blog-list, .blog-slider) .post img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.article-opening .article-icon { order: -1; margin-block-end: 16px; }
:is(.blog-list, .blog-slider) .post:is(:hover, :focus-visible) img { scale: 1; }

.blog-page a.article-back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: .55em;
  min-height: 44px;
  margin-block-end: clamp(12px, 1.6vw, 20px);
  padding: .4em .85em;
  color: var(--article-heading);
  background-color: var(--bg);
  border: 1.5px solid currentColor;
  border-radius: 12px;
  box-shadow: 0 2px 0 currentColor;
  font-size: .95rem;
  line-height: 1.25;
  font-weight: 650;
  text-decoration: none;
}
.blog-page .article-back span { font-size: 1.3em; line-height: 1; }
.blog-page a.article-back:hover {
  color: var(--article-heading);
  background-color: color-mix(in srgb, var(--article-heading) 8%, var(--bg));
}
.blog-page a.article-back:active { box-shadow: none; }
.blog-page a.article-back:focus-visible { outline: 3px solid var(--article-heading); outline-offset: 4px; }

@media (min-width: 900px) {
  .blog-page.reading, .blog-page > article.reading {
    display: flow-root;
    width: calc(100% - clamp(64px, 8vw, 160px));
    margin-inline: auto;
  }
  .article-opening, .article-intro { display: contents; }
  .article-opening h1 {
    line-height: 1.12;
    letter-spacing: -.04em;
  }
  .article-opening .article-icon {
    float: right;
    width: min(39%, 36rem);
    margin: 0 0 24px clamp(24px, 4vw, 64px);
  }
  .article-intro > p, .blog-page.reading > :is(p, ul, ol, h2, h3),
  .blog-page > article.reading > :is(p, ul, ol, h2, h3) { max-inline-size: 74ch; }
  .article-cta { clear: both; }
}
/* The opening is a flex stack on phones and flows around the art on desktop. */
.blog-page .article-intro > p,
:is(.blog-page.reading, .blog-page > .reading) > :is(p, ul, ol) {
  margin-block: 0 .875rem;
}
.blog-page .article-intro > p:last-child { margin-block-end: 0; }
:is(.blog-page.reading, .blog-page > .reading) > :is(h2, h3) {
  margin-block: clamp(22px, 2vw, 28px) 8px;
}
:is(.blog-page.reading, .blog-page > .reading) > .bilingual-example:has(+ .bilingual-example) {
  margin-block-end: 10px;
}
:is(.blog-page.reading, .blog-page > .reading) > :is(ul, ol) > li + li { margin-block-start: 6px; }
:is(.blog-page.reading, .blog-page > .reading) > p:has(+ details) { margin-block-end: 4px; }
.blog-page .reading details, .blog-page.reading details { margin-block: 0 12px; }
.blog-page details > p:last-child { margin-block: 0; }
.blog-page details > summary {
  width: fit-content;
  min-height: 44px;
  padding-block: 9px;
  color: var(--article-red);
  cursor: pointer;
  font-weight: 600;
}
.blog-page details > summary:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
}
.blog-page :is(p, a):has(+ .article-cta) { margin-block-end: 0; }
:is(.blog-page.reading, .blog-page > .reading) > a:has(+ .article-cta) {
  display: table;
  color: var(--action);
  font-weight: 700;
}
.blog-page a:has(+ .article-cta):focus-visible,
.article-cta .trial-action:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 4px;
}
.article-cta {
  margin-block-start: 8px;
  padding-block-start: 10px;
  border-block-start: 1px solid var(--olive-line);
}
.article-cta .actions {
  margin: 0;
  gap: 16px;
}
.article-cta .app-store-badge img { height: 48px; }
.article-cta .trial-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding-block: 8px;
  text-align: center;
  background-color: var(--action);
  color: var(--on-action);
  font-weight: 700;
}
@media (max-width: 540px) {
  .article-cta .actions { flex-direction: column; align-items: flex-start; }
  .article-cta .app-store-badge { align-self: flex-start; }
  .article-cta .trial-action { max-width: 100%; }
}

.site-footer .cookie-settings-link {
  min-height: 36px;
  padding: 0;
  background: none;
  border: 0;
  color: #fff;
  text-align: start;
  font-size: .9rem;
  font-weight: 500;
}
.site-footer .cookie-settings-link:hover { transform: none; opacity: .85; }
.site-footer .cookie-settings-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cookie-settings-dialog {
  width: min(92vw, 31rem);
  max-height: 86vh;
  padding: clamp(1.3rem, 4vw, 2rem);
  margin: auto;
  border: 1px solid var(--olive-line);
  border-radius: 1.3rem;
  background: var(--bg);
  color: var(--ink);
  text-align: start;
}
.cookie-settings-dialog::backdrop { background: rgb(0 0 0 / 48%); }
.cookie-settings-dialog h2 { margin: 0; font-size: 1.5rem; }
.cookie-settings-dialog p { margin: .75rem 0; }
.cookie-settings-dialog label { display: flex; gap: .65rem; align-items: center; min-height: 44px; font-weight: 600; cursor: pointer; }
.cookie-settings-dialog input { width: 1.15rem; height: 1.15rem; accent-color: var(--action); }
.cookie-settings-dialog .actions { justify-content: flex-start; margin-top: 1rem; }

.mobile-review-card { display: none; }
.mobile-review-dialog {
  width: min(90vw, 30rem);
  max-height: 86dvh;
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid var(--olive-line);
  border-radius: 20px;
  color: var(--ink);
  background: var(--bg);
}
.mobile-review-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.mobile-review-dialog h2 { margin: 0; font-size: 1.4rem; }
.mobile-review-body { margin: 1em 0 1.3em; }
.mobile-review-body :is(blockquote, p) { margin: .6em 0; padding: 0; border: 0; font-size: 1rem; line-height: 1.6; }
.mobile-review-body a { display: inline-flex; align-items: center; min-height: 44px; }
.mobile-review-dialog button { min-height: 44px; }

@media (max-width: 760px) {
  #reviews.has-mobile-reviews,
  .student-stories .student-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(6px, 1.6vw, 12px);
  }
  .has-mobile-reviews > .review-card:has(.mobile-review-card) {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
  }
  .has-mobile-reviews > .review-card:has(.mobile-review-card) > :not(.mobile-review-card) { display: none; }
  .has-mobile-reviews .mobile-review-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    height: 100%;
    min-height: 90px;
    padding: clamp(7px, 1.8vw, 12px);
    border: 1px solid var(--olive-line);
    border-radius: 12px;
    text-align: start;
    overflow-wrap: anywhere;
    background: var(--card);
    color: var(--ink);
    --button-depth: 2px;
    --button-edge: var(--olive-line);
  }
  .mobile-review-card strong { font-size: .875rem; line-height: 1.25; }
  .mobile-review-card .review-excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.35;
  }
  .mobile-review-card .review-read {
    margin-block-start: auto;
    padding-block-start: 3px;
    color: var(--action);
    font-size: .8125rem;
    font-weight: 700;
  }
  .student-stories .student-video { min-width: 0; gap: 4px; padding: 5px; }
  .student-stories .student-video-name { padding-inline: 0; font-size: .875rem; line-height: 1.3; overflow-wrap: anywhere; }
  .student-stories .student-video-play { width: 30px; height: 30px; }
  .student-stories .student-video-play::before { width: 9px; height: 11px; }
}

/* Support keeps its wider title gap; the questions below follow a tighter rhythm. */
.support-page > p,
main.reading:has(> .meta) > :is(p, ul, ol),
.reading.feedback > p { margin-block: 0 var(--content-gap); }
.support-page > h2,
main.reading:has(> .meta) > h2 { margin-block: var(--section-spacing) var(--content-gap); }
@media (min-width: 761px) {
  .support-page > h2:first-of-type { margin-block-start: clamp(20px, 2.4vw, 32px); }
}
.support-page > h3,
main.reading:has(> .meta) > h3 { margin-block: var(--content-gap) var(--text-gap); }
.support-page > :last-child,
.reading.feedback > :last-child,
main.reading:has(> .meta) > :last-child { margin-block-end: 0; }

main.reading:has(> .meta) > .brand { margin-block-end: var(--content-gap); }
main.reading:has(> .meta) > h1,
main.reading:has(> .meta) > p.meta:has(+ .meta) { margin-block-end: var(--text-gap); }
main.reading:has(> .meta) li + li { margin-block-start: var(--text-gap); }

.faq-list { padding: var(--content-gap); }
.faq-list details { padding: 0; }
.faq-list summary { padding-block: var(--content-gap); min-block-size: 44px; }
.faq-list details[open] > summary { padding-block-end: var(--text-gap); }
.faq-list details > p { margin-block: 0 var(--content-gap); }
@media (max-width: 991px) {
  main.wrap:has(> .faq-list) > h1 { margin-block-end: var(--content-gap); }
}

.feedback #feedback { display: grid; gap: var(--text-gap); }
.feedback #feedback > :is(label, p) { margin-block: 0; }
.feedback #feedback > :is(select, textarea) { display: block; }
.feedback #feedback > :is(select, p) { margin-block-end: calc(var(--content-gap) - var(--text-gap)); }
.feedback #feedback > button { justify-self: start; }

/* Keep reading, tutoring and reviews comfortable on tablets and wide displays. */
@media (min-width: 761px) {
  .support-page > :is(p, h3) { max-inline-size: 68ch; }

  main.wrap:has(> .faq-list) { width: min(92%, 54rem); }
  .faq-list p { max-inline-size: 65ch; }

  .student-stories .student-video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  main.wrap:has(> .faq-list) {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 5rem);
    width: min(92%, 76rem);
  }
  main.wrap:has(> .faq-list) > h1 {
    overflow-wrap: break-word;
  }

  .student-stories .student-video-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1440px) {
  .blog-page.reading, .blog-page > article.reading { max-inline-size: 88rem; }
}

/* Keep the full desktop navigation and both hero actions usable in narrow windows. */
@media (min-width: 761px) {
  #app.hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  #app .actions {
    display: grid;
    grid-template-columns: auto minmax(0, max-content);
    justify-content: start;
    align-items: center;
  }
  #app .trial-action { margin-block-end: var(--button-depth); text-align: center; text-wrap: balance; }
  .home-main .overview .grid,
  .home-main .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-main .overview-art { height: clamp(10rem, 19vw, 15.3rem); }
  .home-main .overview-text { padding: clamp(1rem, 2vw, 1.5rem); }
  .home-main .practice.split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .home-main .type-entry { flex-wrap: wrap; }
  .home-main .type-entry input { flex: 1 1 9.5rem; }
  .home-main .type-entry button { max-width: 100%; }
}

@media (min-width: 761px) and (max-width: 1023px) {
  header .wrap { gap: 10px; }
  header .site-menu, header .site-menu nav { gap: 10px; }
  header .site-menu nav a { font-size: .9375rem; }
  header .theme-switch { margin-inline-start: 0; }
  #app.hero { gap: clamp(1.25rem, 2.8vw, 1.8rem); }
  #app .actions { gap: .55rem; --hero-button-height: 44px; }
  #app .actions .app-store-badge img { height: calc(var(--hero-button-height) + 5px); }
  #app .trial-action { font-size: .9375rem; padding: .45rem .65rem; }
  .home-main .practice.split { gap: clamp(1rem, 2.5vw, 1.5rem); }
  .home-main .choices { gap: clamp(6px, 1vw, 10px); }
  .home-main .choices button { overflow-wrap: anywhere; }
  footer .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 40px); }
}

header .brand-mark { scale: .9; transform-origin: right center; }
header .brand > span { scale: .94; transform-origin: left center; }

/* Give related text one small gap and separate the next group or action. */
.home-main :is(h1, h2, h3):has(+ p) { margin-block-end: var(--text-gap); }
.home-main :is(.overview > h2, .app-reviews > h2, .lesson-quote > h3, .blog-heading) {
  margin-block-end: var(--content-gap);
}
.home-main .hero .actions { margin-block: var(--content-gap) var(--text-gap); }
.home-main .hero .download-note { margin-block: var(--text-gap) 0; }
.home-main .hero-app-review { margin-block-end: var(--text-gap); }
.home-main .tour-navigation { margin-block: var(--content-gap); }
.home-main .practice h2 + p:last-child,
.home-main .kblank > p:first-child { margin-block-end: 0; }
.home-main .practice p:has(+ #listen) { margin-block-end: var(--content-gap); }
.home-main .kblank > strong { margin-block: var(--text-gap) var(--content-gap); }
.home-main .type-question { margin-block-end: var(--text-gap); }
.home-main .type-hint { margin-block-start: var(--text-gap); }
.home-main .type-hint p { margin-block: 0; }
.home-main .practice :is(.reply, [role="status"]):not(:empty),
.home-main :is(.kmatch, .kblank) > button { margin-block: var(--content-gap) 0; }
.home-main .practice :is(.reply, [role="status"]):empty { margin: 0; min-height: 0; }
.home-main .community-stats > div { display: grid; gap: var(--text-gap); }
.home-main .community-stats strong { line-height: 1.15; }
.home-main #lessons ol { margin-block: var(--content-gap); }
.home-main #lessons li + li { margin-block-start: var(--text-gap); }
.home-main .lesson-quote > a { margin-block-start: var(--content-gap); }

/* Pair nearby text and leave a separate gap before the next action or group. */
main:not(.home-main) > .split.band .lead,
main:not(.home-main) > .split.band .lead ~ p,
.lesson-details section > h2,
.featured-student-video > h2 { margin-block-end: var(--text-gap); }

.lessons-hero p,
main:not(.home-main) > .split.band p:has(+ .btn),
main > .band:has(> .blog-list) > .lead,
.student-stories > p { margin-block-end: var(--content-gap); }

.lesson-details section > p:last-child { margin-block-end: 0; }
.lesson-start > h2 { margin-block-end: var(--content-gap); }
.lesson-start li { margin-block: 0; }
.lesson-start li + li { margin-block-start: var(--text-gap); }

@media (max-width: 991px) {
  .lesson-start > ol { margin-block: 0 var(--content-gap); }
  .featured-student-video > p { margin-block-end: var(--content-gap); }
}

@media (min-width: 761px) {
  .student-reviews .review-card > blockquote { margin-block: 0 var(--text-gap); }
  .student-reviews .review-card > h2 { margin-block: 0 var(--text-gap); }
  .student-reviews .review-card > a.minor { display: table; }
}

.community-stats strong { font-variant-numeric: tabular-nums; }

/* Keep the same navigation links in the desktop header and the mobile menu. */
header :is(.header-primary, .header-actions) { display: contents; }

@media (min-width: 761px) {
  header .site-menu, header .site-menu nav { min-width: 0; }
  header .site-menu nav { justify-content: flex-end; gap: clamp(8px, 1vw, 16px); }
  header :is(.header-primary, .header-actions) {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: clamp(7px, .8vw, 14px);
  }
  header .header-actions { flex-wrap: nowrap; max-width: 100%; }
  header nav .header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    min-height: 38px;
    border: 1px solid var(--action);
    border-radius: 12px;
    font-size: .875rem;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 0 color-mix(in srgb, var(--action) 75%, #000);
  }
  header nav .header-waitlist { color: var(--action); background: var(--bg); }
  header nav .header-trial, header nav .header-trial:hover { color: var(--on-action); background: var(--action); }
  header nav .header-waitlist:hover { background: var(--olive-wash); }
  header nav .header-action:active { transform: translateY(2px); box-shadow: none; }
}
@media (min-width: 761px) and (max-width: 1240px) {
  header .wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "brand links lang theme" ". actions actions actions";
    gap: 6px 10px;
    padding-block: 8px;
  }
  header .site-menu, header .site-menu nav { display: contents; }
  header .brand { grid-area: brand; }
  header .header-primary { grid-area: links; }
  header .header-actions { grid-area: actions; justify-self: end; }
  header .language-switch { grid-area: lang; }
  header :is(.theme-switch, .appearance-switch) { grid-area: theme; }
}
@media (max-width: 760px) {
  header .site-menu nav a.header-action { min-height: 44px; }
  header.menu-ready .site-menu { max-height: calc(100dvh - 72px); overflow-y: auto; }
}

#app.hero h1 { font-size: clamp(2.25rem, 4.1vw, 3.625rem); }

/* The production site's consent controls use the reference theme. */
.ck-card{position:fixed;z-index:100;right:24px;bottom:24px;width:360px;max-width:calc(100% - 24px);padding:20px;border-radius:24px;background:var(--card);color:var(--ink);box-shadow:0 10px 40px #0003}
.ck-card p{font-size:15px}
.ck-card p a{color:var(--action);font-weight:700}
.ck-bs{display:flex;gap:var(--control-gap)}
.ck-bs button{flex:1;color:var(--on-action);font-size:14px}
.ck-bs button[data-a=no]{background:var(--bg);color:var(--ink)}
.hp{display:none}
input,select,textarea,button{font-family:Poppins,sans-serif}
.bilingual-example br{display:initial}
@media(max-width:600px){.ck-card{right:12px;bottom:12px}}

/* Keep policy URLs and long localized headings readable on narrow screens. */
main.reading{overflow-wrap:break-word}
@media(max-width:359px){main h1,main h2{overflow-wrap:break-word}}

/* D-1140 on the D-1182 design: a heading sits 12 px above its line everywhere; cards are 20 px inside. */
:is(main, #app) h2:has(+ :is(p, .tour-tip)) { margin-block-end: 12px; }
:is(main, #app) h2 + :is(p, .tour-tip) { margin-block-start: 0; }
.overview-text { padding: 20px; }
/* The anti-spam field the build adds to the waitlist form stays out of sight (people never see or fill it). */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* The language and dark mode buttons: 14 px apart at every width, so their shadows never touch. */
@media (max-width: 760px) { header .wrap { --header-control-gap: 14px; } }
@media (min-width: 761px) and (max-width: 1240px) { header .wrap { column-gap: 14px; } header .theme-switch.theme-switch { margin-inline-start: 0; } }
@media (min-width: 1241px) { header .theme-switch.theme-switch { margin-inline-start: calc(14px - clamp(12px, 2vw, 30px)); } }

.about-socials .about-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.about-instagram > span {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  background-color: currentColor;
  mask: url("/assets/social/instagram.svg") center / contain no-repeat;
}

.about-buttons > .app-store-badge { vertical-align: middle; margin-inline-start: var(--control-gap); }
@media (max-width: 540px) {
  .about-buttons > .app-store-badge { justify-self: center; margin-inline-start: 0; }
}

.about-team { width: min(100%, 23rem); height: auto; max-height: none; justify-self: center; }


.article-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: var(--control-gap);
  margin-block-end: clamp(12px, 1.6vw, 20px);
}
.blog-page .article-navigation .article-back { margin-block-end: 0; }

.app-features > h2 { margin-block-end: var(--content-gap); }
.app-features-tour { margin-block: 0 1.5rem; }
.app-features :is(#tour), .app-features-anchor { scroll-margin-top: var(--header-offset, 6rem); }

#tour .tour-position {
  width: min(16rem, calc(100% - 104px));
  font-size: clamp(.875rem, 2.4vw, 1.15rem);
}
#tour .tour-position > span { white-space: nowrap; }
.home-main #tour .tour-navigation { margin-block: .75rem clamp(14px, 1.4vw, 20px); }
@media (max-width: 420px) {
  #tour .tour-navigation { gap: 4px; }
  #tour .tour-arrow { width: 36px; }
  #tour .tour-position {
    width: min(16rem, calc(100% - 80px));
    padding-inline: 3px;
    font-size: .75rem;
  }
}

main > :is(.band, .hero, .kazgames, .community-stats, .lesson-start) ~ :is(.band, .hero, .kazgames, .community-stats, .lesson-start) {
  margin-block-start: clamp(28px, calc(3.5vw + 4px), 54px);
}
@media (min-width: 761px) {
  .home-main > .band:has(#listen) + .more-games + .kazgames { margin-block-start: var(--exercise-spacing); }
}
@media (max-width: 760px) {
  .home-main > .more-games + .kazgames { margin-block-start: var(--exercise-spacing); }
}

.appearance-options { min-width: max-content; }
.appearance-options button {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 4px 8px;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  text-align: start;
  font-size: .9rem;
  font-weight: 600;
}
.appearance-options button:is(:hover, :focus-visible, [aria-pressed="true"]) {
  color: var(--action);
  background: var(--olive-wash);
  transform: none;
}

.exercise-progress {
  display: block;
  width: min(100%, 8rem);
  height: .5rem;
  margin-block: 0 var(--text-gap);
  border-radius: 999px;
  background: var(--olive-line);
  overflow: hidden;
}
.exercise-progress::before {
  content: "";
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--action);
  width: calc(100% * var(--progress-fill, 0));
}
@media (prefers-reduced-motion: no-preference) {
  .exercise-progress::before { transition: width 320ms ease-out; }
}
.type-question:has(.exercise-progress) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--text-gap);
}
.type-question .exercise-progress { margin: 0; }
