/* A softer Limi system drawn from the supplied cream, coral, teal, blue and gold references. */
:root {
  --bone: #fbedd8;
  --bone-subtle: #f7e7cb;
  --bone-warm: #f1dcba;
  --paper: #fff9f0;
  --surface: #fffdf8;
  --surface-tint: #fff8eb;
  --ink: #211d19;
  --ink-secondary: #514b43;
  --ink-muted: #706a60;
  --faint: #948d81;
  --sun: #f36e32;
  --sun-hover: #b94a1a;
  --sun-light: #fff0e6;
  --sun-tint: #ffdcc8;
  --gold: #ffbf27;
  --gold-hover: #e8a50d;
  --gold-light: #fff5dc;
  --gold-tint: #ffe8a8;
  --teal: #3d9f99;
  --teal-hover: #287f7b;
  --teal-light: #e5f3f0;
  --teal-tint: #d6ece8;
  --navy: #397fb0;
  --navy-light: #e9f2f8;
  --cobalt: #2d61ee;
  --cobalt-light: #eaf0ff;
  --border: 2px solid var(--ink);
  --border-thick: 2.5px solid var(--ink);
  --border-subtle: 1px solid rgba(33, 29, 25, 0.2);
  --shadow-tactile-sm: 2px 2px 0 var(--ink);
  --shadow-tactile: 3.5px 3.5px 0 var(--ink);
  --shadow-tactile-md: 5.5px 5.5px 0 var(--ink);
  --shadow-tactile-lg: 8px 8px 0 var(--ink);
  --cut-card: 20px 5px 20px 20px;
  --cut-panel: 16px 4px 16px 16px;
  --cut-sm: 11px 3px 11px 11px;
  --disp: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
  --body: "Karla", "Plus Jakarta Sans", sans-serif;
  --max: 1360px;
}

body {
  background: var(--bone);
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

.wrap {
  width: min(calc(100% - 64px), var(--max));
}

.nav {
  background: rgba(251, 237, 216, 0.94);
  border-bottom: 1px solid rgba(61, 47, 31, 0.09);
  box-shadow: none;
}

.nav-in {
  height: 82px;
}

.logo-mark {
  width: 34px;
  height: 48px;
}

.logo-word {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.075em;
}

.nav-tag,
.preview-status {
  border: 0;
  box-shadow: none;
  background: #e3f2ef;
  color: #236962;
}

.nav-links {
  gap: 22px;
}

.nav-links a {
  color: #3b332b;
  font-weight: 700;
}

.nav-links a svg {
  display: none;
}

.btn {
  min-height: 48px;
  height: auto;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 17px rgba(80, 47, 21, 0.08);
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover,
.btn:active {
  transform: translateY(-2px);
  box-shadow: 0 13px 24px rgba(80, 47, 21, 0.13);
}

.btn.primary {
  background: #c05023;
  color: #fff;
}

.btn-sm {
  min-height: 40px;
  padding: 10px 17px;
}

.nav-menu-btn,
.a11y-pill-btn {
  border: var(--border-thick);
  border-radius: 999px;
  box-shadow: none;
  background: rgba(255, 253, 248, 0.72);
}

.nav-links.open,
.a11y-dropdown {
  border: var(--border-thick);
  border-radius: 0 0 22px 22px;
  box-shadow: var(--shadow-tactile-md);
}
.a11y-tools { position: relative; }

/* The wider reading font needs the disclosure menu sooner. */
@media (min-width: 1240px) and (max-width: 1439px) {
  body.dyslexic-font .nav-menu-btn { display: inline-flex; }
  body.dyslexic-font .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 24px 12px;
    background: var(--paper);
    border-top: var(--border);
    border-bottom: var(--border-thick);
    font-size: 15px;
  }
  body.dyslexic-font .nav-links.open { display: flex; }
  body.dyslexic-font .nav-links a { padding: 13px 2px; }
  body.dyslexic-font .nav-links a:hover::after { display: none; }
}

@media (max-width: 640px) {
  .a11y-tools { position: static; }
  .a11y-dropdown { top: 100%; right: 16px; width: min(300px, calc(100vw - 32px)); }
}

.hero {
  min-height: 0;
  padding: clamp(24px, 4svh, 44px) 0 44px;
  /* Clip the decorative circles without creating an invisible scroll area.
     Focusing Play must scroll the page, not push the avatar out of its hero. */
  overflow: clip;
  background:
    radial-gradient(ellipse at 8% 98%, rgba(225, 184, 117, 0.18), transparent 36%),
    radial-gradient(ellipse at 91% 20%, rgba(255, 185, 73, 0.16), transparent 45%),
    linear-gradient(125deg, #fff2dc, #f8e5c6);
}

.hero::before {
  left: -245px;
  top: auto;
  bottom: -550px;
  width: 780px;
  height: 780px;
  border: 62px solid rgba(223, 183, 121, 0.13);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 3vw, 44px);
  align-items: start;
}

.hero-copy {
  padding-top: 24px;
}

#top {
  scroll-margin-top: 82px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 18px;
  color: #226d69;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.hero-eyebrow-mark {
  flex: 0 0 auto;
  width: 82px;
  height: 35px;
}

.eyebrow-blue { fill: var(--cobalt); }
.eyebrow-teal { fill: var(--teal); }
.eyebrow-gold { fill: var(--gold); }
.eyebrow-orange { fill: #f39a2b; }
.eyebrow-coral { fill: var(--sun); }

.hero-eyebrow-mark rect {
  transform-box: fill-box;
  transform-origin: center;
}

.hero-eyebrow:hover .hero-eyebrow-mark rect {
  animation: eyebrow-wave 0.9s ease-in-out infinite;
}

.hero-eyebrow:hover .hero-eyebrow-mark rect:nth-child(2) { animation-delay: 0.08s; }
.hero-eyebrow:hover .hero-eyebrow-mark rect:nth-child(3) { animation-delay: 0.16s; }
.hero-eyebrow:hover .hero-eyebrow-mark rect:nth-child(4) { animation-delay: 0.24s; }
.hero-eyebrow:hover .hero-eyebrow-mark rect:nth-child(5) { animation-delay: 0.32s; }
.hero-eyebrow:hover .hero-eyebrow-mark rect:nth-child(6) { animation-delay: 0.40s; }
.hero-eyebrow:hover .hero-eyebrow-mark rect:nth-child(7) { animation-delay: 0.48s; }
.hero-eyebrow:hover .hero-eyebrow-mark rect:nth-child(8) { animation-delay: 0.56s; }
.hero-eyebrow:hover .hero-eyebrow-mark rect:nth-child(9) { animation-delay: 0.64s; }

@keyframes eyebrow-wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.45); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow:hover .hero-eyebrow-mark rect { animation: none; }
}

h1.hero-headline {
  font-size: clamp(42px, 4vw, 60px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}

h1.hero-headline .hot {
  color: var(--sun-hover);
}

.wavy-line {
  display: none;
}

.hero-lede {
  max-width: 460px;
  margin-bottom: 24px;
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions {
  gap: 10px;
  margin-bottom: 24px;
}

.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
}

.cap-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 18px 6px 6px;
  background: var(--paper);
  border: 1px solid rgba(33, 29, 25, 0.08);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(120, 72, 20, 0.08);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cap-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(120, 72, 20, 0.14);
}

.cap-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
}

.cap-icon svg {
  width: 19px;
  height: 19px;
}

.cap-blue { background: var(--cobalt); }
.cap-teal { background: var(--teal); }
.cap-gold { background: var(--gold); }
.cap-coral { background: var(--sun); }
.cap-gray { background: #8f9693; }

.hero-preview-card {
  min-width: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 4px 4px 0 var(--ink), 0 16px 36px rgba(56, 35, 19, 0.1);
  overflow: hidden;
  scroll-margin-top: 95px;
}

.preview-card-header {
  min-height: 44px;
  padding: 9px 14px;
  gap: 12px;
  background: #fff5e6;
  border-bottom: 1px solid rgba(33, 29, 25, 0.32);
}

.bead-lights {
  display: none;
}

.bead-header-title {
  font-size: 12px;
}

.preview-status {
  border: 1px solid var(--ink);
  background: #dceee9;
  color: #205e57;
  font-size: 9px;
}

.card-split-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  height: auto;
  min-height: 404px;
  background: var(--paper);
  overflow: visible;
}

.card-avatar-pane {
  position: relative;
  inset: auto;
  grid-column: 1;
  grid-row: 1;
  order: 0;
  width: auto;
  height: auto;
  min-height: 404px;
  flex: none;
  background:
    linear-gradient(180deg, rgba(33, 29, 25, 0.04) 30%, rgba(33, 29, 25, 0.24) 100%),
    url("./background.webp") 27% center / cover no-repeat;
}

.card-text-pane {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  order: 1;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 16px;
  gap: 12px;
  border: 0;
  border-left: 1px solid rgba(33, 29, 25, 0.24);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
  backdrop-filter: none;
}

.card-text-pane h3 {
  font-size: 20px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.card-text-pane p {
  font-size: 12px;
  line-height: 1.5;
}

.card-text-pane #cardBody {
  font-size: 14px;
  line-height: 1.5;
}

.card-text-pane .preview-review-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-muted);
}

.detected-pill {
  flex-wrap: wrap;
  color: #b7471d;
}

.card-text-pane .lesson-topic {
  margin: 8px 0 4px;
  color: #b84f25;
  font: 800 9px var(--mono);
  letter-spacing: .035em;
  line-height: 1.35;
  text-transform: uppercase;
}

.student-note-card {
  container-type: inline-size;
}

.notebook-copy {
  position: absolute;
  inset: 15% 8% 7% 19%;
  display: flex;
  flex-direction: column;
  gap: 2.5cqw;
  color: #252e30;
  font: 3.7cqw/1.28 "Marker Felt", "Bradley Hand", cursive;
}

.notebook-copy .notebook-subject {
  align-self: flex-start;
  color: #226a65;
  font: 800 2.8cqw var(--mono);
  letter-spacing: .06em;
}

.notebook-copy strong {
  align-self: flex-start;
  background: linear-gradient(transparent 66%, #f4c0a3 66%);
  font-size: 5.2cqw;
  line-height: 1.08;
}

.notebook-copy .notebook-highlight {
  align-self: flex-start;
  padding: .2cqw .8cqw;
  background: #f8e2a8;
  font-weight: 700;
}

.notebook-copy p {
  margin: 0;
}

.card-audio-bar {
  min-height: 52px;
  padding: 6px 8px;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid rgba(33, 29, 25, 0.24);
  border-radius: 12px;
  box-shadow: none;
  background: #fffdf8;
  margin-top: auto;
}

.mini-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 84px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: #c05023;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 800;
  border: 0;
  box-shadow: none;
}

.mini-play-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

#heroAudioCounter {
  flex: 1 1 90px;
  min-width: 0;
  line-height: 1.5;
}

.mini-wave {
  flex: 0 0 auto;
}

.audio-mode-label {
  display: none;
}

.mini-wave span {
  background: var(--teal);
}

.stage-loading {
  background: rgba(249, 233, 207, 0.72);
  backdrop-filter: blur(4px);
}

.stage-loading-card {
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

.voice-preview-note {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-muted);
}
.voice-preview-note[hidden] { display: none; }

.avatar-stage-topline {
  left: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 8px;
  gap: 6px;
  font-size: 10px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  border: 1px solid rgba(33, 29, 25, 0.24);
  border-radius: 8px;
  box-shadow: none;
}
#heroMotionPrefix,
.sasl-live-chip { display: none; }
.card-split-stage:not(.sasl-preview) .avatar-stage-topline { display: none; }
body.dyslexic-font { --body: Verdana, Tahoma, sans-serif; }
body.dyslexic-font .card-text-pane { letter-spacing: .015em; line-height: 1.75; }

.card-lang-strip {
  margin: 0;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(33, 29, 25, 0.32);
  background: #f5e3c6;
}

.lang-strip-header {
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.lang-strip-title {
  font-size: 11px;
}

.lang-strip-subtitle {
  font-size: 9px;
}

.language-disclosure-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid rgba(33, 29, 25, 0.22);
  border-radius: 999px;
  background: rgba(255, 249, 240, 0.74);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-secondary);
}
.language-disclosure-toggle:hover { background: var(--surface); }
.language-disclosure-toggle svg,
.languages-more summary svg { width: 14px; height: 14px; flex-shrink: 0; }
.language-disclosure-toggle[aria-expanded="true"] svg,
.languages-more[open] summary svg { transform: rotate(180deg); }
.language-count { font-size: 10px; color: var(--ink-muted); }

.lang-bead-tabs {
  gap: 6px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mini-lang-tab {
  min-height: 46px;
  padding: 5px 7px;
  border: 1px solid rgba(33, 29, 25, 0.26);
  border-radius: 8px;
  box-shadow: none;
  background: #fff9f0;
}
.mini-lang-tab[hidden] { display: none; }

.mini-lang-tab:hover,
.mini-lang-tab.active {
  transform: none;
  box-shadow: none;
  border-color: var(--sun-hover);
}

.mini-lang-tab.active { background: #a83b18; color: #fff; }
.mini-lang-tab.active .tab-head { opacity: 1; }
.mini-lang-tab.active .tab-code { background: #70270f; color: #fff; }

.mini-lang-tab.sasl-tab.active {
  background: var(--teal-hover);
}

.mini-lang-tab .tab-head {
  font-size: 8px;
  gap: 3px;
}

.mini-lang-tab .tab-name {
  font-size: 11px;
}

.mini-lang-tab .tab-code {
  font-size: 7px;
  padding: 0 3px;
}

.mini-lang-tab.sasl-tab {
  border-color: var(--ink);
}

.section {
  scroll-margin-top: 80px;
}

#api,
#modes,
#offline,
#access {
  background: #fbedd8;
}

#ocr-hub,
#languages,
#institutions {
  background: #fff8ec;
}

.mini-lang-tab.pending-tab:not(.active) { background: #f7eddd; color: #4b443b; }
.languages-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.languages-more {
  margin-top: 18px;
  border: 1px solid rgba(33, 29, 25, 0.24);
  border-radius: 14px;
  background: var(--paper);
  overflow: clip;
}
.languages-more summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}
.languages-more summary::-webkit-details-marker { display: none; }
.languages-more summary:focus-visible { outline: 3px solid var(--cobalt); outline-offset: -4px; }
.languages-more-note { margin-left: auto; color: var(--ink-muted); font-size: 13px; font-weight: 600; }
.languages-more .languages-grid { padding: 16px; border-top: 1px solid rgba(33, 29, 25, 0.18); }

@media (max-width: 1080px) {
  .hero {
    min-height: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    padding-top: 0;
    max-width: 680px;
    width: 100%;
    margin-inline: auto;
  }

  .hero-preview-card {
    max-width: 680px;
    width: 100%;
    margin-inline: auto;
  }
  .languages-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .wrap {
    width: min(calc(100% - 40px), var(--max));
  }

  .section {
    padding: 72px 0;
  }

  .card-split-stage {
    height: auto;
    display: grid;
  }

  .card-avatar-pane {
    width: auto;
    flex: none;
    border-bottom: 0;
  }

  .card-text-pane {
    position: relative;
    inset: auto;
    width: auto;
    margin: 0;
  }
  .languages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .nav-in {
    height: 70px;
  }

  .hero {
    padding: 26px 0 40px;
  }

  #top { scroll-margin-top: 70px; }

  h1.hero-headline {
    font-size: clamp(34px, 8.8vw, 50px);
    margin-bottom: 18px;
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    min-height: 44px;
    padding-block: 10px;
  }

  .hero-eyebrow {
    gap: 8px;
    font-size: 12px;
  }

  .hero-lede {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .hero-actions {
    margin-bottom: 20px;
  }

  .hero-capabilities {
    gap: 8px;
  }

  .cap-chip {
    font-size: 14px;
    padding-right: 15px;
  }

  .card-split-stage { grid-template-columns: 1fr; }
  .card-avatar-pane { grid-column: 1; grid-row: 1; height: 300px; min-height: 300px; }
  .card-text-pane { grid-column: 1; grid-row: 2; border-left: 0; border-top: 1px solid rgba(33, 29, 25, 0.24); }
  .lang-bead-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .preview-card-header { gap: 8px; }
  .preview-status { font-size: 8px; }
  .languages-more summary { flex-wrap: wrap; gap: 6px 10px; }
  .languages-more-note { flex: 1; min-width: 110px; }

  .section {
    padding: 62px 0;
  }

  h2.section-title {
    font-size: clamp(31px, 7vw, 40px);
  }

  .presets-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .nav-in { gap: 8px; }
  .logo-mark { width: 26px; height: 38px; }
  .logo-word { font-size: 24px; }
  .logo-lockup { gap: 6px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-sm { padding-inline: 10px; font-size: 10.5px; }
  .hero-capabilities { gap: 8px; }
  .cap-chip { gap: 8px; min-height: 44px; padding: 5px 13px 5px 5px; }
  .cap-icon { width: 32px; height: 32px; }
  .cap-icon svg { width: 17px; height: 17px; }
}

body.high-contrast .nav,
body.high-contrast .hero,
body.high-contrast #api,
body.high-contrast #ocr-hub,
body.high-contrast #modes,
body.high-contrast #languages,
body.high-contrast #offline,
body.high-contrast #institutions,
body.high-contrast #access {
  background: #fff;
}

body.high-contrast .hero::before {
  display: none;
}

body.high-contrast .hero-eyebrow {
  color: #000;
}

body.high-contrast .hero-eyebrow-mark rect {
  fill: #000;
}

body.high-contrast .btn,
body.high-contrast .mini-play-btn,
body.high-contrast .hero-capabilities a,
body.high-contrast .preview-card-header,
body.high-contrast .card-text-pane,
body.high-contrast .card-lang-strip,
body.high-contrast .language-disclosure-toggle,
body.high-contrast .languages-more,
body.high-contrast .preset-card,
body.high-contrast .lang-tile,
body.high-contrast .surface-card,
body.high-contrast .ocr-hub-plate,
body.high-contrast .reality-plate,
body.high-contrast .early-access-plate {
  background: #fff;
  color: #000;
  border: 2px solid #000;
  box-shadow: none;
}

body.high-contrast .btn.primary,
body.high-contrast .mini-lang-tab.active {
  background: #000;
  color: #fff;
}

body.high-contrast .hero-capabilities .cap-icon {
  background: #000;
  color: #fff;
}

body.high-contrast h1.hero-headline .hot,
body.high-contrast .hero-lede,
body.high-contrast .section-desc {
  color: #000;
}

@media (prefers-reduced-motion: reduce) {
  .hero-capabilities a,
  .btn {
    transition: none;
  }
  .mini-wave.playing span { animation: none; }
}

/* The transcript occupies its own pane so it never covers signing hands. */
.lang-tile { cursor: pointer; }
.lang-tile:focus-visible, .mini-lang-tab:focus-visible, .mini-play-btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

.motion-toggle[hidden] { display: none; }

/* Learner-first preview, scan workspace and demo request. */
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10000; padding: 12px 18px; background: #211d19; color: #fff; border: 2px solid #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:where(a, button, input, select, summary) { scroll-margin-block: 112px 24px; }
summary:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.hero-preview-link { background: transparent; box-shadow: none; border: 1px solid #756d60; }
.hero-copy { padding-top: 12px; }
.hero-lede { font-size: 16px; }
.ocr-hub-plate { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border: 1px solid #7e776b; border-radius: 24px; box-shadow: 0 16px 40px rgba(52,43,29,.1); }
.scan-source { margin: 0; padding: 22px; min-width: 0; background: var(--bone-subtle); color: var(--ink); }
.scan-source-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; font-size: 14px; font-weight: 700; }
.scan-source-heading > span:first-child { display: inline-flex; gap: 8px; align-items: center; }
.scan-source-heading svg { width: 18px; height: 18px; }
.scan-file-name { color: var(--ink-secondary); font-size: 12px; }
.scan-photo { padding: 18px; background: var(--bone-warm); border-radius: 16px; }
.scan-frame { position: relative; container-type: inline-size; width: min(100%, 420px); aspect-ratio: 1120 / 1400; margin-inline: auto; overflow: hidden; border-radius: 10px; box-shadow: 0 14px 30px rgba(80, 48, 16, 0.22); }
.scan-frame img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; transition: filter 0.4s ease; }
.scan-guides { position: absolute; inset: 12px; pointer-events: none; }
.scan-guides span { position: absolute; width: 24px; height: 24px; border-color: #fff; border-style: solid; border-width: 0; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
.scan-guides span:nth-child(1) { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-radius: 6px 0 0; }
.scan-guides span:nth-child(2) { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-radius: 0 6px 0 0; }
.scan-guides span:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 6px; }
.scan-guides span:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 6px; }
.scan-beam { display: none; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--cobalt), var(--teal), var(--gold), #f39a2b, var(--sun)); box-shadow: 0 0 22px 6px rgba(255, 191, 39, 0.55); }
.scanning .scan-beam { display: block; animation: scan-pass 1.8s ease-in-out; }
@keyframes scan-pass { from { top: 5%; } to { top: 95%; } }
.scan-text-layer { position: absolute; inset: 0; visibility: hidden; }
.scan-line { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); display: flex; align-items: center; font-family: var(--body); font-size: calc(var(--h) * 0.95cqw); line-height: 1; white-space: nowrap; color: transparent; cursor: text; }
.scan-line > span { position: relative; display: inline-block; transform-origin: left center; }
.scan-line::before { content: ""; position: absolute; inset: -12% -1.5%; border-radius: 6px; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 1.5px rgba(45, 97, 238, 0.55), 0 4px 14px rgba(45, 97, 238, 0.25); clip-path: inset(0 100% 0 0); pointer-events: none; }
.scan-line ::selection { background: rgba(45, 97, 238, 0.38); color: transparent; }
.extracted .scan-text-layer { visibility: visible; }
.extracted .scan-frame img { filter: brightness(0.9) saturate(0.9); }
.extracted .scan-line::before { animation: line-extract 0.5s ease-out calc(var(--i) * 0.12s) forwards, line-settle 0.6s ease calc(var(--i) * 0.12s + 1.1s) forwards; }
@keyframes line-extract { to { clip-path: inset(0 0 0 0); } }
@keyframes line-settle { to { background: rgba(255, 255, 255, 0.18); box-shadow: 0 0 0 1px rgba(45, 97, 238, 0.35); } }
.scan-source-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.scan-button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 18px 6px 6px; border: 1px solid rgba(33, 29, 25, 0.12); border-radius: 999px; background: var(--paper); box-shadow: 0 6px 16px rgba(120, 72, 20, 0.1); color: var(--ink); font-weight: 800; font-size: 14px; cursor: pointer; }
.scan-button .cap-icon svg { width: 18px; height: 18px; }
#ocrScanStatus, .scan-source figcaption { font-size: 13px; color: var(--ink-secondary); }
.scan-source figcaption { margin-top: 12px; }
.ocr-reader-side { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: clamp(22px,3vw,42px); background: #fff8eb; }
.ocr-status-strip { gap: 10px; flex-wrap: wrap; }
.ocr-detected-badge { border: 0; border-radius: 6px; box-shadow: none; padding: 7px 10px; font-size: 12px; }
.sample-tag { font-size: 12px; color: #575348; }
.reader-eyebrow { margin: 24px 0 10px; font-size: 13px; color: #226d69; font-weight: 700; }
.ocr-text-block h3 { font-size: clamp(26px,3vw,34px); line-height: 1.12; letter-spacing: -.025em; margin-bottom: 18px; }
.ocr-text-block p { font-size: 18px; font-weight: 400; line-height: 1.7; }
.ocr-actions-strip { gap: 10px; margin-top: 28px; }
.ocr-language-button { background: #e3eddf; border: 1px solid #737b6a; box-shadow: none; }
.ocr-example-details { margin-top: 18px; color: #575348; font-size: 13px; }
.ocr-example-details summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-weight: 700; }
.ocr-example-details p { line-height: 1.6; margin: 0; }
.audience-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.audience-grid .surface-card { border: 1px solid #8a8172; border-radius: 18px; box-shadow: none; padding: 28px; background: #f8e7c9; }
.audience-grid .surface-card:nth-child(2) { background: #dceee7; }
.audience-grid .surface-card:nth-child(3) { background: #f6ddd0; }
.audience-grid .surface-badge { background: none; border: 0; padding: 0; font-size: 11px; color: #514b43; }
.audience-icon { width: 30px; height: 30px; margin: 20px 0; color: #226d69; }
.audience-grid h3 { font-size: 25px; line-height: 1.15; }
.audience-grid p { font-size: 16px; line-height: 1.6; }
.audience-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.audience-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.early-access-plate { background: #daeee6; border: 1px solid #5e7b6d; border-radius: 22px; box-shadow: none; }
.lozenge-header-band { background: #1e514e; border: 0; flex-wrap: wrap; gap: 10px; letter-spacing: .035em; }
.lozenge-header-band span.active-node { color: #fff; }
.demo-intro { font-size: 17px; line-height: 1.6; margin-top: 16px; color: #394b42; }
.demo-request-form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.demo-request-form label { font-size: 16px; font-weight: 800; }
.demo-request-form input { width: 100%; min-height: 52px; padding: 14px 16px; background: #fffdf8; color: #211d19; border: 1px solid #5e6d63; border-radius: 9px; font: inherit; }
.demo-request-form input::placeholder { color: #646e64; opacity: 1; }
.demo-request-form input[aria-invalid="true"] { border: 2px solid #aa321d; }
.demo-request-form .btn { align-self: flex-start; margin: 6px 0 0; }
#demoEmailHint, .demo-privacy { font-size: 13px; color: #394b42; line-height: 1.5; margin: 0; }
.form-error { color: #8d2314; font-weight: 700; font-size: 14px; margin: 0; }
#demoRequestStatus { font-size: 14px; line-height: 1.5; margin: 0; }
.demo-email-fallback { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; font-weight: 700; }
.demo-email-fallback svg { width: 16px; height: 16px; }
.demo-email-fallback[hidden], .form-error[hidden] { display: none; }
body.high-contrast .scan-source { background: #fff; color: #000; }
body.high-contrast #ocrScanStatus, body.high-contrast .scan-source figcaption, body.high-contrast .scan-file-name { color: #000; }
body.high-contrast .ocr-reader-side, body.high-contrast .demo-request-form input { background: #fff; color: #000; }
body.high-contrast .sample-tag, body.high-contrast .reader-eyebrow, body.high-contrast .ocr-example-details, body.high-contrast .demo-intro, body.high-contrast #demoEmailHint, body.high-contrast .demo-privacy { color: #000; }
@media (max-width: 960px) {
  .audience-grid { grid-template-columns: 1fr; }
  .ocr-hub-plate { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 640px) {
  .early-access-inner { padding: 24px; gap: 24px; }
  .demo-request-form .btn { width: 100%; justify-content: center; }
  .scan-source { padding: 16px; }
  .ocr-text-block p { font-size: 16px; }
  .ocr-actions-strip .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .scanning .scan-beam { display: none; animation: none; }
  .scan-frame img { transition: none; }
  .extracted .scan-line::before { animation: none; clip-path: none; background: rgba(255, 255, 255, 0.18); box-shadow: 0 0 0 1px rgba(45, 97, 238, 0.35); }
  .polaroid-frame, .btn, .api-pipeline-node, .lang-tile, .preset-card { transition: none; }
}

/* Contrast fixes verified in the rendered WCAG audit. */
.step-lozenge .num-badge { background: #a83b18; color: #fff; }
.api-route-btn:hover, .api-route-btn.active { background: #a83b18; color: #fff; border-color: #a83b18; }
.terminal-title small { color: #aaa39c; }
.code-line-no { color: #aaa39c; }
.pipeline-step-index { color: #226d69; }
.pipeline-step.active .pipeline-step-index { color: #ffbf27; }
.package-badge { color: #923711; }
.package-tree span:nth-child(1) { color: #226d69 !important; }
.package-tree span:nth-child(7) { color: #a83b18 !important; }
.package-tree span:nth-child(9) { color: #785000 !important; }
.reality-content h2 { font-size: clamp(29px, 3vw, 40px); line-height: 1.1; letter-spacing: -.04em; margin-bottom: 18px; }
.notebook-revision h4 { margin-block: 12px 8px; font-size: 15px; }
.notebook-revision dt { font-weight: 800; }
.notebook-revision dd { margin: 0 0 10px; }
.notebook-revision ol { padding-left: 22px; margin-bottom: 12px; }
.notebook-revision li { margin-bottom: 8px; }

/* Language cards: bold brand colours, greeting first, then what you can do today. */
.languages-grid { gap: 16px; }
.lang-tile,
.lang-tile.zulu, .lang-tile.xhosa, .lang-tile.sepedi, .lang-tile.afrikaans, .lang-tile.english, .lang-tile.sasl, .lang-tile.pending {
  --tile-bg: var(--paper);
  --tile-ink: var(--ink);
  justify-content: flex-start;
  gap: 4px;
  min-height: 0;
  padding: 24px 24px 22px;
  background: var(--tile-bg);
  color: var(--tile-ink);
  border: 0;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(120, 72, 20, 0.12);
}
.lang-tile.zulu { --tile-bg: #f39a2b; }
.lang-tile.xhosa { --tile-bg: #287f7b; --tile-ink: #fff; }
.lang-tile.sepedi { --tile-bg: #2a6a99; --tile-ink: #fff; }
.lang-tile.afrikaans { --tile-bg: var(--gold); }
.lang-tile.english { --tile-bg: var(--cobalt); --tile-ink: #fff; }
.lang-tile.sasl { --tile-bg: #211d19; --tile-ink: #fff9f0; }
.lang-tile.pending { --tile-bg: var(--paper); box-shadow: none; border: 1.5px dashed #a59a88; }
.lang-tile:hover, .lang-tile.active { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(120, 72, 20, 0.2); }
.lang-tile.active { outline: 3px solid var(--ink); outline-offset: 3px; }
.lang-tile.active:focus-visible { outline-color: var(--cobalt); }
.lang-wave { position: absolute; top: 22px; right: 22px; display: flex; align-items: center; gap: 4px; height: 34px; }
.lang-wave i { width: 6px; border-radius: 99px; background: currentColor; opacity: 0.35; transform-origin: center; }
.lang-wave i:nth-child(1) { height: 40%; }
.lang-wave i:nth-child(2) { height: 75%; }
.lang-wave i:nth-child(3) { height: 100%; }
.lang-wave i:nth-child(4) { height: 65%; }
.lang-wave i:nth-child(5) { height: 35%; }
.lang-tile.sasl .lang-wave i { opacity: 1; }
.lang-tile.sasl .lang-wave i:nth-child(1) { background: var(--cobalt); }
.lang-tile.sasl .lang-wave i:nth-child(2) { background: var(--teal); }
.lang-tile.sasl .lang-wave i:nth-child(3) { background: var(--gold); }
.lang-tile.sasl .lang-wave i:nth-child(4) { background: #f39a2b; }
.lang-tile.sasl .lang-wave i:nth-child(5) { background: var(--sun); }
.lang-tile:hover .lang-wave i, .lang-tile.active .lang-wave i { animation: eyebrow-wave 0.9s ease-in-out infinite; }
.lang-wave i:nth-child(2) { animation-delay: 0.1s; }
.lang-wave i:nth-child(3) { animation-delay: 0.2s; }
.lang-wave i:nth-child(4) { animation-delay: 0.3s; }
.lang-wave i:nth-child(5) { animation-delay: 0.4s; }
.lang-greeting { padding-right: 60px; font-family: var(--disp); font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.lang-tile.sasl .lang-greeting { font-size: 24px; }
.lang-tile b, .lang-tile.pending b { font-family: var(--body); font-size: 16px; font-weight: 700; color: inherit; }
.lang-tile.pending b { font-family: var(--disp); font-size: 24px; }
.lang-tile .gate-status,
.lang-tile.sepedi .gate-status, .lang-tile.afrikaans .gate-status {
  align-self: flex-start;
  margin-top: 18px;
  padding: 6px 13px;
  background: #fff;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(33, 29, 25, 0.12);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}
.lang-tile.pending .gate-status { background: var(--bone-subtle); box-shadow: none; }
.lang-review { margin-top: 4px; font-size: 13px; font-weight: 600; }
.lang-tile.pending .lang-review { color: var(--ink-secondary); }
@media (max-width: 640px) {
  .lang-tile, .lang-tile.zulu, .lang-tile.xhosa, .lang-tile.sepedi, .lang-tile.afrikaans, .lang-tile.english, .lang-tile.sasl, .lang-tile.pending { padding: 16px 14px; border-radius: 18px; }
  .lang-wave { top: 14px; right: 12px; height: 22px; gap: 3px; }
  .lang-wave i { width: 4px; }
  .lang-greeting { padding-right: 34px; font-size: 24px; }
  .lang-tile.sasl .lang-greeting { font-size: 17px; }
  .lang-tile .gate-status { margin-top: 12px; font-size: 12px; padding: 5px 10px; }
  .lang-review { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-tile:hover .lang-wave i, .lang-tile.active .lang-wave i { animation: none; }
}
body.high-contrast .lang-tile { --tile-bg: #fff; --tile-ink: #000; border: 2px solid #000; }
body.high-contrast .lang-tile .gate-status { background: #fff; color: #000; border: 1px solid #000; box-shadow: none; }
body.high-contrast .lang-wave { display: none; }

/* Demo request: warm brand card with logo bars, email and button side by side. */
.demo-cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(120deg, var(--paper) 0%, #fdeedb 55%, #fbe1c6 100%);
  border: 1px solid rgba(33, 29, 25, 0.1);
  box-shadow: 0 18px 44px rgba(120, 72, 20, 0.12);
}
.demo-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  padding-right: clamp(28px, 14vw, 220px);
}
.demo-cta h2 { margin-top: 18px; font-family: var(--disp); font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.demo-cta h2 .hot { color: var(--sun-hover); }
.demo-cta .demo-intro { color: var(--ink-secondary); }
.demo-points { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 22px 0 0; padding: 0; list-style: none; }
.demo-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.demo-points .cap-icon { width: 28px; height: 28px; }
.demo-points .cap-icon svg { width: 15px; height: 15px; }
.demo-cta .demo-request-form { padding: clamp(20px, 3vw, 30px); background: var(--surface); border-radius: 22px; box-shadow: 0 10px 28px rgba(120, 72, 20, 0.1); }
.demo-cta #demoEmailHint, .demo-cta .demo-privacy { color: var(--ink-secondary); }
.demo-cta .demo-request-form { gap: 16px; }
.demo-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.demo-field label { font-size: 15px; font-weight: 800; }
.demo-field .optional { color: var(--ink-secondary); font-weight: 600; }
.demo-cta .demo-request-form input,
.demo-cta .demo-request-form select { width: 100%; min-width: 0; min-height: 50px; padding: 12px 16px; background: var(--paper); color: var(--ink); border: 1px solid #8a8172; border-radius: 14px; font: inherit; font-size: 16px; }
.demo-cta .demo-request-form select { appearance: none; padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23211d19' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.demo-cta .demo-request-form input:focus-visible,
.demo-cta .demo-request-form select:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-color: var(--cobalt); }
.demo-cta .demo-request-form [aria-invalid="true"] { border: 2px solid #aa321d; }
.demo-cta .demo-request-form .btn.demo-submit { align-self: stretch; justify-content: center; margin: 4px 0 0; min-height: 52px; }
.demo-cta-bars { position: absolute; right: clamp(16px, 3vw, 48px); bottom: -40px; display: flex; align-items: flex-end; gap: 12px; height: 100%; pointer-events: none; }
.demo-cta-bars span { width: 30px; border-radius: 999px 999px 0 0; }
.demo-cta-bars span:nth-child(1) { height: 38%; background: var(--cobalt); }
.demo-cta-bars span:nth-child(2) { height: 58%; background: var(--teal); }
.demo-cta-bars span:nth-child(3) { height: 76%; background: var(--gold); }
.demo-cta-bars span:nth-child(4) { height: 66%; background: #f39a2b; }
.demo-cta-bars span:nth-child(5) { height: 92%; background: var(--sun); }
@media (max-width: 1080px) {
  .demo-cta-inner { grid-template-columns: minmax(0, 1fr); padding-right: clamp(28px, 5vw, 64px); }
  .demo-cta-bars { top: 0; bottom: auto; right: 28px; height: 120px; gap: 8px; align-items: flex-start; }
  .demo-cta-bars span { width: 18px; border-radius: 0 0 999px 999px; }
  .demo-cta-copy { padding-right: 130px; }
}
@media (max-width: 640px) {
  .demo-cta-inner { padding: 22px 16px; }
  .demo-cta-bars { right: 16px; height: 72px; gap: 5px; }
  .demo-cta-bars span { width: 10px; }
  .demo-cta-copy { padding-right: 70px; }
}
body.high-contrast .demo-cta, body.high-contrast .demo-cta .demo-request-form { background: #fff; color: #000; border: 2px solid #000; box-shadow: none; }
body.high-contrast .demo-cta-bars { display: none; }
body.high-contrast .demo-cta h2 .hot, body.high-contrast .demo-cta .demo-intro, body.high-contrast .demo-points li { color: #000; }

/* Notebook reader: tabs swap in place so the section never grows. */
.ocr-reader-side { justify-content: flex-start; gap: 22px; }
.reader-tabs { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; background: var(--bone-subtle); border-radius: 999px; }
.reader-tab { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-secondary); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.reader-tab:hover { color: var(--ink); }
.reader-tab[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 3px 10px rgba(120, 72, 20, 0.14); }
.reader-tab:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.reader-panel:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 6px; border-radius: 6px; }
.reader-panels { display: grid; }
.reader-panel { grid-area: 1 / 1; min-width: 0; }
.reader-panel[hidden] { display: block; visibility: hidden; }
/* Stacked layout: nothing sits beside the reader, so hidden tabs stop reserving height. */
@media (max-width: 960px) { .reader-panel[hidden] { display: none; } }
.reader-panel h3 { font-family: var(--disp); font-size: 20px; font-weight: 800; margin: 0 0 12px; }
.reader-panel .ocr-text-block { margin-top: 18px; }
.reader-panel .ocr-text-block h3 { font-size: clamp(26px, 3vw, 34px); }
.reader-panel h3 + .revision-terms { margin-top: 0; }
.revision-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.revision-terms div { padding: 12px 14px; background: var(--paper); border-radius: 14px; box-shadow: 0 3px 10px rgba(120, 72, 20, 0.08); }
.revision-terms dt { font-weight: 800; font-size: 15px; }
.revision-terms dd { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-secondary); }
.revision-questions { margin: 0 0 18px; padding-left: 22px; font-size: 15px; line-height: 1.55; }
.revision-questions li + li { margin-top: 4px; }
.revision-remember { margin: 0; padding: 10px 14px; background: var(--gold-light); border-radius: 12px; font-size: 15px; }
.revision-margin { margin: 10px 0 0; font-size: 13px; color: var(--ink-secondary); }
#readerPanelAbout p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--ink-secondary); }
@media (max-width: 640px) {
  .revision-terms { grid-template-columns: minmax(0, 1fr); }
  .reader-tab { padding: 8px 12px; font-size: 13px; }
}
body.high-contrast .reader-tabs, body.high-contrast .revision-terms div, body.high-contrast .revision-remember { background: #fff; border: 1px solid #000; box-shadow: none; }
body.high-contrast .reader-tab[aria-selected="true"] { background: #000; color: #fff; }
body.high-contrast .revision-terms dd, body.high-contrast .revision-margin, body.high-contrast #readerPanelAbout p { color: #000; }

/* Revision notes: bold study cards in the Limi palette. */
.reader-tab[aria-selected="true"] { background: var(--sun-hover); color: #fff; box-shadow: 0 4px 12px rgba(185, 74, 26, 0.3); }
.revision-terms div { position: relative; padding: 16px 18px; border-radius: 18px; color: #fff; box-shadow: 0 8px 18px rgba(120, 72, 20, 0.14); }
.revision-terms div:nth-child(1) { background: var(--cobalt); }
.revision-terms div:nth-child(2) { background: #287f7b; }
.revision-terms div:nth-child(3) { background: var(--gold); color: var(--ink); }
.revision-terms div:nth-child(4) { background: var(--sun-hover); }
.revision-terms dt { font-family: var(--disp); font-size: 19px; }
.revision-terms dd { color: inherit; font-size: 14.5px; }
.revision-questions { counter-reset: q; list-style: none; padding: 0; display: grid; gap: 8px; }
.revision-questions li { counter-increment: q; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; background: var(--paper); border-radius: 14px; box-shadow: 0 3px 10px rgba(120, 72, 20, 0.08); }
.revision-questions li + li { margin-top: 0; }
.revision-questions li::before { content: counter(q); flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 14px; background: var(--cobalt); }
.revision-questions li:nth-child(2)::before { background: #287f7b; }
.revision-questions li:nth-child(3)::before { background: var(--sun-hover); }
.revision-remember { position: relative; padding: 14px 18px; background: #ffe36e; border-radius: 4px 16px 16px 16px; transform: rotate(-0.6deg); box-shadow: 0 6px 14px rgba(120, 72, 20, 0.14); }
@media (prefers-reduced-motion: reduce) { .revision-remember { transform: none; } }
body.high-contrast .reader-tab[aria-selected="true"] { background: #000; color: #fff; }
body.high-contrast .revision-terms div, body.high-contrast .revision-questions li { background: #fff; color: #000; border: 1px solid #000; }
body.high-contrast .revision-questions li::before { background: #000; }
body.high-contrast .revision-remember { background: #fff; transform: none; }
.terminal-header { flex-wrap: wrap; gap: 10px; }
.lang-selector-code { flex-wrap: wrap; max-width: 100%; }
