:root{--success:#2B8A3E;--successSoft:#E3F6E7;--danger:#C92A2A;--dangerSoft:#FDE7E7;--warning:#B35C00;--warningSoft:#FFF2DE;--streak:#D9480F;--xp:#6741D9;--overlay:rgba(20, 18, 40, 0.45);--bg:#F6F3FF;--surface:#FFFFFF;--surfaceAlt:#EFEBFF;--border:#E2DCF7;--text:#1E1B3A;--textMuted:#5E5A7A;--primary:#6A4CF0;--primaryPressed:#5136C9;--primaryText:#FFFFFF;--primarySoft:#EDE8FF;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-scheme]){--success:#69DB7C;--successSoft:#1D3A25;--danger:#FF8787;--dangerSoft:#40202A;--warning:#FFC078;--warningSoft:#3D2C14;--streak:#FFA94D;--xp:#B197FC;--overlay:rgba(0, 0, 0, 0.6);--bg:#131221;--surface:#1D1B30;--surfaceAlt:#27243F;--border:#36325A;--text:#F2F0FF;--textMuted:#ABA6CC;--primary:#A594FF;--primaryPressed:#8B77F5;--primaryText:#16112E;--primarySoft:#2E2752;color-scheme:dark}}:root[data-theme="lavender"][data-scheme="light"]{--success:#2B8A3E;--successSoft:#E3F6E7;--danger:#C92A2A;--dangerSoft:#FDE7E7;--warning:#B35C00;--warningSoft:#FFF2DE;--streak:#D9480F;--xp:#6741D9;--overlay:rgba(20, 18, 40, 0.45);--bg:#F6F3FF;--surface:#FFFFFF;--surfaceAlt:#EFEBFF;--border:#E2DCF7;--text:#1E1B3A;--textMuted:#5E5A7A;--primary:#6A4CF0;--primaryPressed:#5136C9;--primaryText:#FFFFFF;--primarySoft:#EDE8FF;color-scheme:light}:root[data-theme="lavender"][data-scheme="dark"]{--success:#69DB7C;--successSoft:#1D3A25;--danger:#FF8787;--dangerSoft:#40202A;--warning:#FFC078;--warningSoft:#3D2C14;--streak:#FFA94D;--xp:#B197FC;--overlay:rgba(0, 0, 0, 0.6);--bg:#131221;--surface:#1D1B30;--surfaceAlt:#27243F;--border:#36325A;--text:#F2F0FF;--textMuted:#ABA6CC;--primary:#A594FF;--primaryPressed:#8B77F5;--primaryText:#16112E;--primarySoft:#2E2752;color-scheme:dark}:root[data-theme="ocean"][data-scheme="light"]{--success:#2B8A3E;--successSoft:#E3F6E7;--danger:#C92A2A;--dangerSoft:#FDE7E7;--warning:#B35C00;--warningSoft:#FFF2DE;--streak:#D9480F;--xp:#6741D9;--overlay:rgba(20, 18, 40, 0.45);--bg:#F4F7FF;--surface:#FFFFFF;--surfaceAlt:#EAF0FF;--border:#DCE3F3;--text:#1B1F2E;--textMuted:#5B6275;--primary:#3B5BDB;--primaryPressed:#2F4AB8;--primaryText:#FFFFFF;--primarySoft:#E5EBFF;color-scheme:light}:root[data-theme="ocean"][data-scheme="dark"]{--success:#69DB7C;--successSoft:#1D3A25;--danger:#FF8787;--dangerSoft:#40202A;--warning:#FFC078;--warningSoft:#3D2C14;--streak:#FFA94D;--xp:#B197FC;--overlay:rgba(0, 0, 0, 0.6);--bg:#10141F;--surface:#19202F;--surfaceAlt:#222B3E;--border:#2F3A52;--text:#EEF2FA;--textMuted:#A3ADC2;--primary:#8CA6FF;--primaryPressed:#7090F5;--primaryText:#0B1530;--primarySoft:#23305A;color-scheme:dark}:root[data-theme="emerald"][data-scheme="light"]{--success:#2B8A3E;--successSoft:#E3F6E7;--danger:#C92A2A;--dangerSoft:#FDE7E7;--warning:#B35C00;--warningSoft:#FFF2DE;--streak:#D9480F;--xp:#6741D9;--overlay:rgba(20, 18, 40, 0.45);--bg:#F2FBF7;--surface:#FFFFFF;--surfaceAlt:#E3F7EF;--border:#D3EDE2;--text:#15302A;--textMuted:#4F6B63;--primary:#087F5B;--primaryPressed:#066649;--primaryText:#FFFFFF;--primarySoft:#DDF5EC;color-scheme:light}:root[data-theme="emerald"][data-scheme="dark"]{--success:#69DB7C;--successSoft:#1D3A25;--danger:#FF8787;--dangerSoft:#40202A;--warning:#FFC078;--warningSoft:#3D2C14;--streak:#FFA94D;--xp:#B197FC;--overlay:rgba(0, 0, 0, 0.6);--bg:#0F1715;--surface:#16221F;--surfaceAlt:#1E2E2A;--border:#2B403A;--text:#ECF8F4;--textMuted:#9DB8AF;--primary:#38D9A9;--primaryPressed:#20C997;--primaryText:#062A1F;--primarySoft:#173B31;color-scheme:dark}:root[data-theme="sunset"][data-scheme="light"]{--success:#2B8A3E;--successSoft:#E3F6E7;--danger:#C92A2A;--dangerSoft:#FDE7E7;--warning:#B35C00;--warningSoft:#FFF2DE;--streak:#D9480F;--xp:#6741D9;--overlay:rgba(20, 18, 40, 0.45);--bg:#FFF7F1;--surface:#FFFFFF;--surfaceAlt:#FFEDE0;--border:#F5DCCB;--text:#2E1E14;--textMuted:#6E5646;--primary:#C2410C;--primaryPressed:#9A3412;--primaryText:#FFFFFF;--primarySoft:#FFE8D9;color-scheme:light}:root[data-theme="sunset"][data-scheme="dark"]{--success:#69DB7C;--successSoft:#1D3A25;--danger:#FF8787;--dangerSoft:#40202A;--warning:#FFC078;--warningSoft:#3D2C14;--streak:#FFA94D;--xp:#B197FC;--overlay:rgba(0, 0, 0, 0.6);--bg:#1A1310;--surface:#251B16;--surfaceAlt:#31241D;--border:#47352B;--text:#FBF1EA;--textMuted:#C2AB9C;--primary:#FF9A5C;--primaryPressed:#FF8540;--primaryText:#2B1206;--primarySoft:#4A2A18;color-scheme:dark}:root[data-theme="lime"][data-scheme="light"]{--success:#2B8A3E;--successSoft:#E3F6E7;--danger:#C92A2A;--dangerSoft:#FDE7E7;--warning:#B35C00;--warningSoft:#FFF2DE;--streak:#D9480F;--xp:#6741D9;--overlay:rgba(20, 18, 40, 0.45);--bg:#F7F9F0;--surface:#FFFFFF;--surfaceAlt:#EEF3DF;--border:#DFE6CB;--text:#1A1F12;--textMuted:#5A6349;--primary:#4D7C0F;--primaryPressed:#3F6212;--primaryText:#FFFFFF;--primarySoft:#ECF5D6;color-scheme:light}:root[data-theme="lime"][data-scheme="dark"]{--success:#69DB7C;--successSoft:#1D3A25;--danger:#FF8787;--dangerSoft:#40202A;--warning:#FFC078;--warningSoft:#3D2C14;--streak:#FFA94D;--xp:#B197FC;--overlay:rgba(0, 0, 0, 0.6);--bg:#0D0F14;--surface:#171A21;--surfaceAlt:#20242D;--border:#2E3440;--text:#F2F4F7;--textMuted:#A3ABB9;--primary:#C8F560;--primaryPressed:#B2E246;--primaryText:#0D0F14;--primarySoft:#2A3318;color-scheme:dark}/* Langoset website. Colors come from the app themes (CSS variables generated by scripts/build-site.ts). */
@font-face {
  font-family: 'Nunito';
  src: url('/site/Nunito.ttf') format('truetype');
  font-weight: 200 1000;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    'Nunito',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--primary);
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 900;
  letter-spacing: -0.5px;
}
h2 {
  font-size: clamp(24px, 4.5vw, 34px);
  font-weight: 900;
  margin-top: 8px;
}
h3 {
  font-size: 19px;
  font-weight: 800;
}
p {
  margin: 0 0 12px;
}
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.narrow {
  max-width: 760px;
}
.center {
  text-align: center;
}
.small {
  font-size: 14px;
  color: var(--textMuted);
}
.lead {
  font-size: 19px;
  color: var(--textMuted);
}
.note {
  font-size: 14px;
  color: var(--textMuted);
  margin-top: 8px;
}
/* visually hidden until focused (an off-screen offset would scroll right-to-left pages) */
.skip {
  position: absolute;
  top: 0;
  inset-inline-start: 8px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--surface);
  z-index: 20;
}
.skip:focus {
  width: auto;
  height: auto;
  clip-path: none;
  padding: 8px 12px;
}

/* header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 64px;
  padding-block: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  border-radius: 8px;
}
/* phones: logo only next to the buttons, so nothing overlaps; the name comes back on wider screens */
@media (max-width: 479px) {
  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
/* phones and small tablets: the menu is a second row under the logo and buttons */
.nav {
  order: 10;
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 4px;
}
.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--primary);
}
@media (min-width: 760px) {
  .top-row {
    flex-wrap: nowrap;
    padding-block: 0;
  }
  .nav {
    order: 0;
    width: auto;
    gap: 20px;
  }
  .nav a {
    padding: 0;
  }
}
.icon-btn {
  min-width: 48px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 20px;
  cursor: pointer;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primaryText);
  font-weight: 900;
  text-decoration: none;
  border: 0;
  font-size: 17px;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover {
  background: var(--primaryPressed);
}
.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 19px;
}
.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
  white-space: nowrap;
}
.btn-ghost {
  background: var(--primarySoft);
  color: var(--primary);
}
.btn-ghost:hover {
  background: var(--surfaceAlt);
}
.ghost {
  background: none;
  border: 0;
  color: var(--primary);
  font-weight: 800;
  font-size: 16px;
  min-height: 44px;
  cursor: pointer;
  font-family: inherit;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* theme panel */
.panel {
  position: absolute;
  inset-inline-end: 16px;
  top: 68px;
  width: min(320px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.lang-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.lang-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.lang-list a:hover,
.lang-list a:focus-visible {
  background: var(--surfaceAlt);
}
.lang-list .flag {
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.lang-list a[aria-current='true'] {
  background: var(--primarySoft);
  color: var(--primary);
}
.lang-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  padding: 4px 16px;
}
.lang-hint a {
  color: var(--primaryText);
  font-weight: 800;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.lang-hint button {
  background: none;
  border: 0;
  color: var(--primaryText);
  font-size: 22px;
  min-width: 44px;
  min-height: 40px;
  cursor: pointer;
}
/* right-to-left pages (Arabic) */
[dir='rtl'] .checks li {
  padding: 6px 32px 6px 0;
}
[dir='rtl'] .checks li::before {
  left: auto;
  right: 0;
}
[dir='rtl'] .faq summary::after {
  float: left;
}
[dir='rtl'] .facts th,
[dir='rtl'] .facts td,
[dir='rtl'] .demo-options button {
  text-align: right;
}
.panel-title {
  font-weight: 800;
  margin: 4px 0 8px;
}
.swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.swatch {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 3px solid var(--surface);
  outline: 2px solid var(--border);
  cursor: pointer;
}
.swatch[aria-pressed='true'] {
  outline: 3px solid var(--primary);
}
.schemes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.schemes button {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surfaceAlt);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.schemes button[aria-pressed='true'] {
  background: var(--primary);
  color: var(--primaryText);
  border-color: var(--primary);
}
.panel-note {
  font-size: 13px;
  color: var(--textMuted);
  margin: 10px 0 0;
}

/* sections */
.section {
  padding: 48px 0;
}
.alt {
  background: var(--surfaceAlt);
}
.band {
  background: var(--primary);
  color: var(--primaryText);
}
.stats {
  margin: 0;
  padding: 14px 0;
  text-align: center;
  font-weight: 800;
}
.hero {
  padding: 40px 0 48px;
}
.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .hero {
    padding: 72px 0;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
}
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 980px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature-icon {
  font-size: 34px;
  display: block;
  margin-bottom: 6px;
}
.feature p {
  color: var(--textMuted);
  margin: 0;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step-n {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primaryText);
  font-weight: 900;
  margin-bottom: 10px;
}
.two {
  display: grid;
  gap: 24px;
}
@media (min-width: 860px) {
  .two {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.checks li {
  padding: 6px 0 6px 32px;
  position: relative;
}
.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--successSoft);
  color: var(--success);
  font-weight: 900;
  text-align: center;
  line-height: 24px;
}
.final {
  background: var(--primarySoft);
}
.facts {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.facts th,
.facts td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.facts tr:last-child th,
.facts tr:last-child td {
  border-bottom: 0;
}
.facts th {
  width: 34%;
  font-weight: 800;
  color: var(--text);
}
.facts td {
  color: var(--textMuted);
}
.qa {
  margin: 0 0 16px;
}
.qa dt {
  font-weight: 800;
  margin-top: 12px;
}
.qa dd {
  margin: 4px 0 0;
  color: var(--textMuted);
}
.foot-title {
  font-weight: 800;
  margin: 16px 0 0;
}
.continue {
  margin: 16px 0 4px;
  border-color: var(--primary);
  background: var(--primarySoft);
}
.continue-course {
  font-size: 20px;
  margin: 4px 0 12px;
}

/* demo quiz */
.demo {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
.demo-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--textMuted);
  margin: 0;
}
.demo-title .flag {
  flex: none;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.demo-q {
  font-size: 26px;
  font-weight: 900;
  margin: 8px 0 0;
}
.demo-options {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.demo-options button {
  min-height: 52px;
  border-radius: 16px;
  border: 2px solid var(--border);
  border-bottom-width: 4px;
  background: var(--surface);
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  padding: 0 16px;
  cursor: pointer;
  font-family: inherit;
}
.demo-options button:hover {
  border-color: var(--primary);
}
.demo-options .ok {
  border-color: var(--success);
  background: var(--successSoft);
}
.demo-options .bad {
  border-color: var(--danger);
  background: var(--dangerSoft);
}
.level-options,
.demo-options {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.level-options button {
  min-height: 52px;
  border-radius: 16px;
  border: 2px solid var(--border);
  border-bottom-width: 4px;
  background: var(--surface);
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-align: start;
  padding: 0 16px;
  cursor: pointer;
  font-family: inherit;
}
.level-options button:focus-visible {
  border-color: var(--primary);
}
.level-options .opt-skip {
  color: var(--textMuted);
  border-style: dashed;
}
.level-options .ok {
  border-color: var(--success);
  background: var(--successSoft);
}
.level-options .bad {
  border-color: var(--danger);
  background: var(--dangerSoft);
}
.level-word {
  font-size: 30px;
  font-weight: 900;
  margin: 4px 0;
}
.level-bar {
  height: 8px;
  border-radius: 8px;
  background: var(--surfaceAlt);
  overflow: hidden;
  margin-bottom: 12px;
}
.level-bar span {
  display: block;
  height: 100%;
  background: var(--primary);
  transition: width 0.3s;
}
.level-words {
  font-size: 22px;
  font-weight: 900;
}
.level-course {
  display: block;
  font-size: 19px;
  font-weight: 800;
  margin: 4px 0 12px;
}
.table-wrap {
  overflow-x: auto;
}
table.freq {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
table.freq th,
table.freq td {
  text-align: start;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
table.freq th {
  color: var(--textMuted);
  font-weight: 800;
}
.demo-msg {
  font-weight: 800;
  min-height: 26px;
  margin: 10px 0;
}

/* stores */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 18px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}
.store small {
  display: block;
  font-size: 11px;
  opacity: 0.85;
}
.store b {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}
.store-icon {
  font-size: 22px;
}
.store.soon {
  opacity: 0.55;
}

/* courses */
.courses {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}
@media (min-width: 700px) {
  .courses {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1020px) {
  .courses {
    grid-template-columns: repeat(3, 1fr);
  }
}
.course {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  min-height: 48px;
}
.course:hover,
.course:focus-visible {
  border-color: var(--primary);
}
.course-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.course-body b {
  font-weight: 800;
  font-size: 17px;
}
.course-body small {
  color: var(--textMuted);
  font-size: 14px;
}
.course-cover {
  font-size: 32px;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  background: var(--primarySoft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-cover.big {
  font-size: 56px;
  width: 96px;
  height: 96px;
  border-radius: 28px;
}
.course-hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.course-hero > div {
  flex: 1;
  min-width: 240px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 12px;
}
.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surfaceAlt);
  color: var(--textMuted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
a.chip {
  min-height: 36px;
  line-height: 32px;
  padding: 0 14px;
}
.jump {
  margin-bottom: 24px;
}
.crumbs {
  font-size: 14px;
  color: var(--textMuted);
  margin-bottom: 12px;
}
.words {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  margin: 0 0 24px;
}
@media (min-width: 640px) {
  .words {
    grid-template-columns: 1fr 1fr;
  }
}
.words li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.words li span:last-child {
  color: var(--textMuted);
}

/* screens */
.screens {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.screens figure {
  margin: 0;
  flex: 0 0 min(240px, 70vw);
  scroll-snap-align: start;
}
.screens img {
  border-radius: 24px;
  border: 1px solid var(--border);
  display: block;
}
.screens figcaption {
  font-size: 14px;
  color: var(--textMuted);
  margin-top: 8px;
}

/* faq */
.faq {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.faq details {
  padding: 0;
}
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  list-style: none;
  min-height: 48px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary h3 {
  display: inline;
  font-size: 18px;
  margin: 0;
}
.faq summary::after {
  content: '+';
  float: right;
  font-weight: 900;
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  padding: 0 20px 16px;
  margin: 0;
  color: var(--textMuted);
}

/* footer */
.foot {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 18px;
}
.foot-brand img {
  border-radius: 6px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 12px 0;
}
.foot-links a,
.foot-links .link-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* word pages */
.word-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.word-hero h1 {
  margin: 0;
}
.say {
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--primarySoft);
  color: var(--primary);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  padding: 0 12px;
  font-family: inherit;
}
.sense {
  margin: 12px 0;
}
.sense .pos {
  color: var(--textMuted);
  font-weight: 700;
  margin: 0 0 8px;
}
.sense .label {
  font-size: 13px;
  font-weight: 800;
  color: var(--textMuted);
  margin: 8px 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sense .gloss {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  margin: 0;
}
.sense .ex {
  font-size: 18px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sense .exg {
  color: var(--textMuted);
  margin: 4px 0 0;
}
.cta-card {
  margin: 20px 0;
  border-color: var(--primary);
  background: var(--primarySoft);
}
.word-links {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .word-links {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 980px) {
  .word-links {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.word-links li {
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 44px;
}
.word-links a {
  font-weight: 800;
}
.word-links span {
  color: var(--textMuted);
  font-size: 14px;
}
.letters .chip {
  min-width: 40px;
  text-align: center;
}
.chip.on {
  background: var(--primary);
  color: var(--primaryText);
}
/* topic pages */
.topic-words {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .topic-words {
    grid-template-columns: 1fr 1fr;
  }
}
.topic-words li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.topic-words a {
  font-weight: 800;
  font-size: 18px;
}
.topic-words .say {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
}
.tw-emoji {
  font-size: 26px;
}
.tw-gloss {
  color: var(--textMuted);
  margin-inline-start: auto;
  text-align: end;
}
.worksheet {
  display: none;
}
@media print {
  .top,
  .foot,
  .lang-hint,
  .no-print,
  .skip {
    display: none !important;
  }
  .worksheet {
    display: block;
    color: #000;
  }
  body {
    background: #fff;
  }
  .worksheet table {
    width: 100%;
    border-collapse: collapse;
  }
  .worksheet th,
  .worksheet td {
    border: 1px solid #999;
    padding: 10px;
    text-align: start;
    font-size: 16px;
  }
  .worksheet td + td {
    width: 55%;
  }
}

/* consent bar (Google Analytics on the website only) */
.consent {
  position: fixed;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 50;
  max-width: 560px;
  margin-inline: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  font-size: 15px;
}
.consent[hidden] {
  display: none;
}
.consent p {
  margin: 0 0 10px;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
}
.consent-actions .btn {
  min-height: 48px;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
@media print {
  .consent {
    display: none !important;
  }
}

/* word of the day */
.wotd-word {
  font-size: 40px;
  font-weight: 900;
  margin: 0;
  overflow-wrap: anywhere;
}
