/* Goethe Academy – the design system of goethecloud.com (Goethe Write), 1:1: white and #f5f5f7 surfaces, the cream
   paper stage for heroes, New York / system serif for the large headlines, SF / system sans for text, Goethe
   ultramarine as the accent. System fonts only (goethecloud.com self-hosts none), light and dark follow the system.
   Academy-only tokens (--card, --sep, --field, --right, --wrong, bubbles) are mapped onto the same palette. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --card: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #48484d;
  --ink-3: #5f5f65;
  --line: rgba(0, 0, 0, .14);
  --sep: rgba(0, 0, 0, .14);
  --field: #ebebf0;
  --fill: #ebebf0;
  --accent: #3a2fd6;
  --btn: #3a2fd6;
  --btn-hover: #2f25b8;
  --accent-ink: #ffffff;
  --right: #248a3d;
  --right-bg: rgba(52, 199, 89, .14);
  --wrong: #d70015;
  --wrong-bg: rgba(255, 59, 48, .12);
  --bubble-l: #e8e8ed;
  --bubble-r: #3a2fd6;
  --paper: #f4efe4;
  --sel: rgba(58, 47, 214, .22);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --gap: clamp(76px, 10.5vw, 152px);
  --pad: clamp(20px, 5vw, 48px);
  --lc: var(--accent);
  --spring: cubic-bezier(.2, .9, .25, 1.15);
  --paper-a: #fbf8f1; --paper-b: #f0e9da; --paper-c: #e4d9c1;
  --white-a: #ffffff; --white-b: #f1f1f5;
  --win-r: clamp(5px, .82vw, 11px);
  --stage-gap: clamp(84px, 11vw, 168px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121316;
    --bg-2: #1a1b20;
    --card: #1a1b20;
    --ink: #f1eee6;
    --ink-2: #b4b7bf;
    --ink-3: #9a9ea7;
    --line: rgba(255, 255, 255, .14);
    --sep: rgba(255, 255, 255, .14);
    --field: #23242a;
    --fill: #23242a;
    --accent: #a59dff;
    --btn: #4a3fe6;
    --btn-hover: #5a50f0;
    --right: #30d158;
    --right-bg: rgba(48, 209, 88, .16);
    --wrong: #ff6961;
    --wrong-bg: rgba(255, 69, 58, .16);
    --bubble-l: #2c2d34;
    --bubble-r: #4a3fe6;
    --paper: #f1ece1;
    --sel: rgba(58, 47, 214, .38);
    --paper-a: #ece6d8; --paper-b: #e1d9c6; --paper-c: #d3c8ae; --white-a: #ececf0; --white-b: #dedee4;
  }
}
.c-a1 { --lc: #ff9500; } .c-a2 { --lc: #ff2d55; } .c-b1 { --lc: #af52de; } .c-b2 { --lc: #5856d6; } .c-c1 { --lc: #30b0c7; }
.c-novel { --lc: #a2845e; } .c-screen { --lc: #ff3b30; } .c-nonfic { --lc: #ff9f0a; } .c-poetry { --lc: #bf5af2; } .c-legal { --lc: #32ade6; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.55; font-kerning: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--sel); }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
button { font: inherit; color: inherit; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--btn); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right)); }
.narrow { max-width: 720px; }
.preview-note { background: var(--fill); color: var(--ink-2); font-size: 13px; text-align: center; padding: 6px; }

/* header: goethecloud.com's bar – serif "Goethe", sans product name, plain nav, sign-in pill, globe language menu */
.head { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: var(--bg); }
.head-row { display: flex; align-items: center; gap: 8px; min-height: 60px; }
.brand { display: inline-flex; align-items: baseline; gap: .28em; margin-inline-end: auto; color: var(--ink); white-space: nowrap; padding-block: 8px; }
.brand:hover { text-decoration: none; }
.brand-g { font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.brand-w { font-size: 17px; font-weight: 500; color: var(--ink-2); line-height: 1; }
.nav ul { display: flex; list-style: none; gap: 4px; margin: 0; padding: 0; }
.nav-a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-size: 17px; }
.nav-a:hover { text-decoration: none; background: var(--bg-2); }
.nav-a[aria-current="page"] { color: var(--accent); }
.signin { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.signin:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.nav + .signin { margin-inline-start: 18px; }
.pop { position: relative; }
.pop summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--ink); font-size: 17px; user-select: none; }
.pop summary::-webkit-details-marker { display: none; }
.pop summary:hover, .pop[open] summary { background: var(--bg-2); }
.pop-label { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.globe { color: var(--ink-2); }
.pop-list { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 230px; list-style: none; padding: 6px; margin: 0; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); z-index: 30; }
.pop-list a { display: block; padding: 11px 14px; border-radius: 9px; color: var(--ink); font-size: 17px; }
.pop-list a:hover { background: var(--bg-2); text-decoration: none; }
.pop-list a[aria-current] { color: var(--accent); font-weight: 600; }
.menu-pop { display: none; }
.menu-pop summary { font-weight: 600; color: var(--accent); }
@media (max-width: 860px) {
  .nav, .signin { display: none; }
  .menu-pop { display: block; }
  .menu-pop .pop-list, .lang-pop .pop-list { position: fixed; inset-inline-start: 12px; inset-inline-end: 12px; top: 64px; min-width: 0; }
}

/* type */
.context { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.context a { color: var(--ink-2); }
h1 { font-family: var(--display); font-size: clamp(40px, 5.6vw, 72px); line-height: 1.06; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
h1.large { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
h2 { font-family: var(--display); font-size: 24px; line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; margin: 18px 0 6px; }
.lead { font-size: clamp(20px, 2vw, 25px); line-height: 1.45; color: var(--ink-2); margin-top: 12px; max-width: 36em; }
.fine { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.muted { color: var(--ink-3); }
.meta { font-size: 15px; color: var(--ink-2); margin-top: 12px; }

/* buttons: goethecloud.com's filled pill and the plain link with a chevron */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: var(--btn); color: var(--accent-ink); font-weight: 600; line-height: 1.2; cursor: pointer; padding: 0 22px; min-height: 44px; font-size: 17px; transition: background .2s, transform .2s var(--spring); }
.btn:hover { text-decoration: none; background: var(--btn-hover); }
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 48px; padding: 12px 24px; font-size: 18px; }
.btn-md { min-height: 44px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.btn-plain { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; background: none; border: 0; color: var(--accent); font-size: 18px; font-weight: 500; cursor: pointer; padding: 0 2px; }
.btn-plain .chev { color: var(--accent); width: 7px; }
.btn-plain:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: clamp(26px, 3.2vw, 38px); }
.actions.center { justify-content: center; }

/* grouped lists */
.group { margin-top: 34px; }
.group-h { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; margin: 0 16px 7px; }
.group-f { font-size: 13px; color: var(--ink-2); margin: 7px 16px 0; line-height: 1.4; }
.list { list-style: none; padding: 0; margin: 0; background: var(--card); border-radius: 14px; overflow: hidden; }
.row a { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 9px 16px; color: var(--ink); position: relative; }
.row a:hover { text-decoration: none; background: color-mix(in srgb, var(--fill) 60%, transparent); }
.row + .row a::before, .unit-head + .row a::before, .row + .unit-head::before { content: ""; position: absolute; top: 0; inset-inline-end: 0; inset-inline-start: 56px; border-top: .5px solid var(--sep); }
.row-sym { width: 28px; flex: none; display: grid; place-items: center; color: var(--lc); }
.row-sym.accent { color: var(--accent); } .row-sym.grey { color: var(--ink-3); }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-title { font-size: 16px; }
.row-sub { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.row-right { font-size: 15px; color: var(--ink-2); }
.chev { color: #c4c4c7; flex: none; }
.num { color: var(--ink-3); font-variant-numeric: tabular-nums; margin-inline-end: 2px; }
.tag { color: var(--accent); font-size: 15px; }
.lvl { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--lc); }
.row.done .row-sym { color: var(--accent); }
.unit-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--lc); position: relative; }
.unit-head strong { color: var(--ink); font-size: 18px; display: block; }
.checks li { display: flex; gap: 12px; padding: 11px 16px; align-items: flex-start; position: relative; }
.checks li + li::before { content: ""; position: absolute; top: 0; inset-inline-end: 0; inset-inline-start: 50px; border-top: .5px solid var(--sep); }
.tick circle { fill: var(--btn); } .tick path { stroke: #fff; }
.tick { flex: none; margin-top: 1px; }

/* home */
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-top: clamp(36px, 7vw, 88px); padding-bottom: 12px; }
.hero-visual { display: flex; justify-content: center; }
.phone { width: min(300px, 70vw); height: auto; }
.ph-frame { fill: #1d1d1f; } .ph-screen { fill: var(--card); } .ph-notch { fill: #1d1d1f; }
.ph-track { fill: var(--fill); } .ph-fill { fill: var(--accent); }
.ph-ctx { font: 13px var(--sans); fill: var(--ink-2); } .ph-title { font: 700 21px var(--display); fill: var(--ink); }
.ph-b-l rect { fill: var(--bubble-l); } .ph-b-r rect { fill: var(--bubble-r); }
.ph-who { font: 600 11px var(--sans); fill: var(--ink-2); } .ph-who-r { font: 600 11px var(--sans); fill: rgba(255,255,255,.8); }
.ph-txt { font: 14px var(--sans); fill: var(--ink); } .ph-txt-r { font: 14px var(--sans); fill: #fff; }
.ph-speaker circle { fill: var(--btn); } .ph-speaker path { stroke: #fff; }
.ph-card { fill: var(--bg); } .ph-gap { fill: var(--right); font-weight: 600; } .ph-ok { fill: none; stroke: var(--right); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ph-btn { fill: var(--btn); } .ph-btn-t { font: 600 15px var(--sans); fill: #fff; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-visual { order: 2; } }

.faq-item { border-top: .5px solid var(--sep); }
.faq-item:first-child { border-top: 0; }
.faq-item summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .chev { transform: rotate(90deg); }
.faq-item .chev { transition: transform .25s var(--spring); }
.faq-item p { padding: 0 16px 14px; color: var(--ink-2); font-size: 15px; }

/* course page */
.page-head { padding-top: 40px; }
.course-top { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: center; padding-top: clamp(28px, 6vw, 64px); }
.course-art { position: relative; color: var(--lc); display: flex; justify-content: center; }
.hero-art { width: min(260px, 60vw); height: auto; }
.big-level { position: absolute; inset-inline-end: 8%; bottom: 4%; font: 800 48px/1 var(--display); color: var(--lc); letter-spacing: -.03em; }
.buy { margin-top: 24px; }
.price { font: 700 28px var(--display); letter-spacing: -.01em; }
.price .usd { color: var(--ink-2); font-weight: 500; font-size: 20px; }
.prog { padding: 14px 16px; border-bottom: .5px solid var(--sep); }
.meter { height: 6px; background: var(--fill); border-radius: 3px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--btn); border-radius: 3px; transition: width .5s var(--spring); }
.prog-text { margin-top: 8px; }
@media (max-width: 760px) { .course-top { grid-template-columns: 1fr; } .course-art { order: -1; } .hero-art { width: 180px; } .big-level { font-size: 36px; inset-inline-end: 22%; } }

/* locked and empty */
.locked { padding-top: 40px; }
.empty { text-align: center; padding: 36px 20px; color: var(--ink-2); background: var(--card); border-radius: 12px; margin-top: 24px; }
.empty .ic { color: var(--ink-3); margin: 0 auto 10px; display: block; }
.empty p { margin-top: 6px; max-width: 32em; margin-inline: auto; }
.empty strong { color: var(--ink); font-size: 18px; }
.empty .price { color: var(--ink); margin-top: 16px; }

/* player */
.is-player { padding-bottom: 110px; }
.pbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px max(var(--pad), env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.pclose { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--fill); color: var(--ink-2); flex: none; }
.pbar .meter { flex: 1; height: 8px; border-radius: 4px; }
.pbar .meter span { border-radius: 4px; background: var(--lc); }
.pcount { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 44px; text-align: end; }
.steps { padding-top: 12px; }
.step { padding: 12px 0 28px; }
.js .step { display: none; }
.js .step.on { display: block; animation: slide .45s var(--spring); }
.js .step.on.back { animation-name: slide-back; }
@keyframes slide { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes slide-back { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .step.on { animation: none; } * { transition: none !important; } }
.step > h2 { margin-bottom: 16px; }
.de-title { font-family: var(--serif); font-style: italic; }
.intro-art { color: var(--lc); display: flex; justify-content: center; margin: 18px 0 0; }
.intro-art .hero-art { width: 200px; }
.pnav { position: fixed; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: .5px solid var(--sep); padding-bottom: env(safe-area-inset-bottom); }
.pnav-in { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.pnav .pnext { min-width: 160px; }
.pnav .pback[hidden] { display: inline-flex; visibility: hidden; }
html:not(.js) .pnav { display: none; }

/* prose */
.prose { font-size: 17px; line-height: 1.6; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: 22px; margin-top: 28px; } .prose h3, .prose h4 { margin-top: 24px; font-size: 18px; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li + li { margin-top: 4px; }
.prose blockquote { background: var(--card); border-radius: 12px; padding: 14px 16px; }
.prose del { color: var(--wrong); }
.prose code { font: .9em ui-monospace, "SF Mono", Menlo, monospace; }
.goethe blockquote { font-family: var(--serif); font-size: 19px; background: var(--paper); color: #1d1d1f; padding: 18px 20px; }
.read { font-size: 18px; } .read h3 { font-size: 22px; font-family: var(--display); letter-spacing: -.01em; }
.table { overflow-x: auto; background: var(--card); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th { text-align: start; font-weight: 600; font-size: 13px; color: var(--ink-2); }
th, td { padding: 9px 14px; border-bottom: .5px solid var(--sep); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.card { background: var(--card); border-radius: 12px; padding: 18px; margin-top: 18px; }
.culture { font-family: var(--serif); font-size: 19px; }

/* dialogue */
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble-row { display: flex; align-items: flex-end; gap: 8px; }
.bubble-row.r { flex-direction: row-reverse; }
.bubble { max-width: 78%; padding: 9px 14px 10px; border-radius: 20px; background: var(--bubble-l); transition: transform .25s var(--spring), box-shadow .25s; }
.bubble-row.l .bubble { border-bottom-left-radius: 6px; }
.bubble-row.r .bubble { background: var(--bubble-r); color: #fff; border-bottom-right-radius: 6px; }
.bubble .who { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.bubble-row.r .who { color: rgba(255, 255, 255, .8); }
.bubble .de { font-size: 17px; }
.bubble .en { display: none; font-size: 14px; margin-top: 4px; opacity: .75; font-style: italic; }
.chat.show-en .en { display: block; }
.bubble.speaking { transform: scale(1.03); }
.say { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--fill); color: var(--accent); display: inline-grid; place-items: center; cursor: pointer; transition: transform .2s var(--spring); }
.say:active { transform: scale(.9); }
.say.on { background: var(--btn); color: #fff; }
.say-big { width: auto; height: 44px; padding: 0 18px 0 14px; border-radius: 22px; display: inline-flex; gap: 8px; font-weight: 600; font-size: 16px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 18px; }

/* flash cards */
.deck { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.flip { perspective: 1200px; width: min(100%, 420px); height: 240px; cursor: pointer; border: 0; padding: 0; background: none; }
.flip-in { position: relative; width: 100%; height: 100%; transition: transform .6s var(--spring); transform-style: preserve-3d; }
.flip.turned .flip-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--card); border-radius: 18px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 22px; text-align: center; gap: 8px; }
.face-b { transform: rotateY(180deg); }
.face .big { font: 700 30px/1.15 var(--display); letter-spacing: -.015em; color: var(--ink); }
.face .art { font-size: 14px; color: var(--lc); font-weight: 600; }
.face .ex-s { font-size: 15px; color: var(--ink-2); font-style: italic; }
.face .hint { position: absolute; bottom: 12px; font-size: 12px; color: var(--ink-3); }
.deck-nav { display: flex; align-items: center; gap: 18px; }
.deck-nav .count { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--accent); display: grid; place-items: center; cursor: pointer; }
.round[disabled] { opacity: .35; }
.all-words { margin-top: 24px; }
.all-words summary { list-style: none; cursor: pointer; color: var(--accent); padding: 8px 0; display: flex; gap: 8px; align-items: center; }
.all-words summary::-webkit-details-marker { display: none; }
.all-words summary .chev { color: var(--accent); }
.all-words[open] summary .chev { transform: rotate(90deg); }
.words li { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 16px; position: relative; }
.words li + li::before { content: ""; position: absolute; top: 0; inset-inline-start: 16px; inset-inline-end: 0; border-top: .5px solid var(--sep); }
.w-de { flex: 1; font-weight: 500; } .w-en { flex: 1; color: var(--ink-2); font-size: 15px; }
.words .say { width: 30px; height: 30px; }

/* exercises */
.ex-intro { margin-bottom: 14px; color: var(--ink-2); }
.items { list-style: none; padding: 0; margin: 0; background: var(--card); border-radius: 12px; }
.item { padding: 14px 16px; position: relative; }
.item + .item::before { content: ""; position: absolute; top: 0; inset-inline-start: 16px; inset-inline-end: 0; border-top: .5px solid var(--sep); }
.item .n { color: var(--ink-3); font-variant-numeric: tabular-nums; margin-inline-end: 6px; }
.stem { line-height: 2.1; }
.field { font: inherit; font-size: 17px; color: var(--ink); background: var(--field); border: 0; border-radius: 10px; padding: 7px 12px; outline: none; min-width: 0; transition: background .2s, box-shadow .2s; }
.field:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.gap { width: 8.5em; padding: 4px 10px; margin: 0 3px; }
.text-in { width: 100%; margin-top: 8px; }
.essay { width: 100%; min-height: 160px; resize: vertical; line-height: 1.5; margin-top: 10px; font-family: var(--serif); font-size: 18px; }
.ok .field, .field.ok { background: var(--right-bg); color: var(--right); }
.bad .field, .field.bad { background: var(--wrong-bg); color: var(--wrong); }
.fb { font-size: 14px; margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fb .r { color: var(--right); font-weight: 600; } .fb .w { color: var(--wrong); font-weight: 600; }
.fb .sol { color: var(--ink-2); }
.fb button { font-size: 14px; padding: 0; }
.choices { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.choice { text-align: start; border: 0; border-radius: 12px; background: var(--fill); padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; align-items: center; font-size: 16px; transition: transform .18s var(--spring), background .2s; }
.choice:active { transform: scale(.985); }
.choice .L { color: var(--ink-3); font-weight: 600; width: 1.2em; }
.choice.sel { background: color-mix(in srgb, var(--accent) 16%, var(--fill)); }
.choice.right { background: var(--right-bg); color: var(--right); }
.choice.wrong { background: var(--wrong-bg); color: var(--wrong); }
.choice[disabled] { cursor: default; }
.select { appearance: none; -webkit-appearance: none; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238e8e93' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; padding: 9px 34px 9px 12px; width: 100%; margin-top: 8px; }
.match-opts { margin: 0 0 14px; padding: 12px 16px; background: var(--card); border-radius: 12px; list-style: none; font-size: 15px; color: var(--ink-2); }
.match-opts li { padding: 3px 0; } .match-opts b { color: var(--ink); margin-inline-end: 6px; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; min-height: 44px; }
.answer-line { border-bottom: 1.5px solid var(--sep); padding-bottom: 8px; }
.tile { border: 0; border-radius: 10px; background: var(--fill); padding: 8px 13px; font-size: 16px; cursor: pointer; transition: transform .2s var(--spring), opacity .2s; }
.answer-line .tile { background: color-mix(in srgb, var(--accent) 14%, var(--fill)); }
.tile:active { transform: scale(.94); }
.tile.used { opacity: 0; pointer-events: none; }
.ok .answer-line .tile { background: var(--right-bg); color: var(--right); }
.bad .answer-line .tile { background: var(--wrong-bg); color: var(--wrong); }
.ex-actions { display: flex; gap: 16px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.ex-score { font-size: 15px; color: var(--ink-2); }
.model { margin-top: 12px; }
.model summary { cursor: pointer; color: var(--accent); list-style: none; padding: 6px 0; }
.model summary::-webkit-details-marker { display: none; }
.model .prose { background: var(--card); border-radius: 12px; padding: 14px 16px; margin-top: 6px; font-size: 16px; }
.cloze { line-height: 2.3; background: var(--card); border-radius: 12px; padding: 14px 16px; white-space: pre-line; }
.task { margin-bottom: 6px; }
.saved { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.qa li { padding: 12px 16px; position: relative; list-style-position: inside; }
.qa li + li::before { content: ""; position: absolute; top: 0; inset-inline-start: 16px; inset-inline-end: 0; border-top: .5px solid var(--sep); }
.qa p { display: inline; }
.qa details { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.qa summary { color: var(--accent); cursor: pointer; }
.script { margin-top: 14px; }
.script summary { cursor: pointer; color: var(--accent); list-style: none; display: flex; gap: 8px; align-items: center; }
.script summary::-webkit-details-marker { display: none; }
.script summary .chev { color: var(--accent); }
.script[open] summary .chev { transform: rotate(90deg); }
.script .prose { background: var(--card); border-radius: 12px; padding: 14px 16px; margin-top: 8px; }

/* quiz */
.q-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.q-text { font-size: 19px; font-weight: 600; line-height: 1.35; }
.q-why { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.q-done { text-align: center; padding: 24px 0; }
.ring { width: 140px; height: 140px; margin: 0 auto 12px; display: block; }
.ring circle { fill: none; stroke-width: 12; }
.ring .bgc { stroke: var(--fill); } .ring .fgc { stroke: var(--lc); stroke-linecap: round; transition: stroke-dashoffset .9s var(--spring); }
.ring text { font: 700 30px var(--display); fill: var(--ink); }

/* reminders checklist */
.remind li { position: relative; }
.remind li + li::before { content: ""; position: absolute; top: 0; inset-inline-start: 52px; inset-inline-end: 0; border-top: .5px solid var(--sep); }
.remind label { display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px; cursor: pointer; }
.remind input { position: absolute; opacity: 0; }
.remind .circle { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-3); margin-top: 1px; transition: all .25s var(--spring); }
.remind input:checked + .circle { background: var(--btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; border-color: var(--accent); }
.remind input:checked ~ span:last-child { color: var(--ink-2); }
.remind input:focus-visible + .circle { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

.done { text-align: center; padding-top: 30px; }
.done > .ic { color: var(--right); margin: 0 auto 10px; display: block; animation: pop .6s var(--spring); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.score-line { margin-top: 10px; font-size: 17px; font-weight: 600; }

/* tests */
.test { padding-top: 36px; }
.tpart h2 { margin-bottom: 12px; }
.titem { margin: 10px 0 14px; padding: 12px 14px; background: var(--bg); border-radius: 10px; }
.titem .stem { line-height: 1.5; }
.tchoices { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tchoices .choice { padding: 8px 14px; }
.test-result { text-align: center; }
.score-big { font: 700 44px var(--display); margin-top: 8px; }
.verdict { font-size: 17px; font-weight: 600; }
.verdict.pass { color: var(--right); } .verdict.fail { color: var(--ink-2); }

/* certificate */
.cert-page { padding-top: 36px; }
.field-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px; }
.field-row label { flex: none; font-size: 16px; }
.field-row .field { flex: 1; background: transparent; padding: 6px 0; text-align: end; }
.cert { position: relative; margin-top: 28px; background: var(--paper); color: #1d1d1f; border-radius: 6px; padding: clamp(14px, 3vw, 22px); aspect-ratio: 1.414; display: flex; }
.cert-in { flex: 1; border: 1px solid rgba(0, 0, 0, .14); border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4% 6%; gap: 1.2%; }
.cert-brand { font-family: var(--serif); font-size: clamp(16px, 2.6vw, 24px); } .cert-brand span { color: #6e6e73; }
.cert-kind { font-family: var(--display); font-size: clamp(20px, 4.4vw, 38px); font-weight: 700; letter-spacing: -.02em; margin-top: 2%; }
.cert-small { font-size: clamp(11px, 1.6vw, 14px); color: #6e6e73; }
.cert-name { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 5vw, 42px); border-bottom: 1px solid rgba(0, 0, 0, .2); padding: 0 6% 1%; min-width: 50%; }
.cert-course { font-size: clamp(14px, 2.4vw, 21px); font-weight: 600; color: var(--lc); }
.cert-meta { font-size: clamp(10px, 1.4vw, 13px); color: #6e6e73; }
.cert-seal { color: var(--lc); }
.cert-seal .ic { width: clamp(34px, 6vw, 60px); height: auto; }
.cert-foot { font-size: clamp(8px, 1.15vw, 11px); color: #8e8e93; }
.cert-stamp { position: absolute; top: 16px; inset-inline-end: 16px; font-size: 12px; color: #8e8e93; }

/* footer: goethecloud.com's footer – serif brand line, tag, columns under a hairline, languages, fine print */
.foot { margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(48px, 6vw, 72px) clamp(40px, 5vw, 56px); font-size: 16px; color: var(--ink-2); }
.foot-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 16px; }
.foot-line { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--ink); }
.foot-tag { font-size: 16px; color: var(--ink-3); }
.foot-status { font-size: 17px; color: var(--ink); max-width: 46em; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.foot-h { font-family: var(--sans); font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.foot ul { list-style: none; margin: 10px 0 0; padding: 0; }
.foot li + li { margin-top: 8px; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--accent); }
.foot-lang { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-lang ul { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; }
.foot-lang li + li { margin-top: 0; }
.foot-lang a[aria-current] { color: var(--ink); font-weight: 600; }
.foot-fine { margin-top: 20px; font-size: 15px; line-height: 1.55; color: var(--ink-3); max-width: 60em; }
.foot-fine + .foot-fine { margin-top: 8px; }
.foot-legal { margin-top: 20px; font-size: 15px; } .foot-legal a { margin-inline-end: 22px; }
.summary { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-top: 10px; max-width: 40em; }
.prose a[href*="goethecloud.com"] { font-weight: 600; }
.foot-langs a { color: var(--ink-2); }
.is-player .foot { display: none; }
[tabindex="-1"]:focus { outline: none; }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: baseline; }
.item > * { grid-column: 2; }
.item > .n { grid-column: 1; grid-row: 1; line-height: 2.1; margin: 0; }
.gap { padding: 3px 10px; }
@media (max-width: 600px) { .cert { aspect-ratio: auto; } .cert-in { padding: 28px 16px; gap: 8px; } }
.cert-stamp { top: auto; bottom: 10px; inset-inline-end: 14px; }

.audio-note { font-size: 13px; color: var(--ink-3); margin: 6px 0 0; }

/* English | Arabic explanations */
.player:not(.show-ar) .lang-ar { display: none !important; }
.player.show-ar .lang-en { display: none !important; }
.xlang { display: inline-flex; gap: 2px; padding: 2px; margin: 0 0 12px; border-radius: 9px; background: rgba(120,120,128,.12); }
.xlang button { border: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; padding: 5px 14px; border-radius: 7px; cursor: pointer; }
.xlang button[aria-pressed="true"] { background: Canvas; color: CanvasText; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.lang-ar[dir="rtl"], [dir="rtl"].lang-ar { text-align: end; font-family: "Geeza Pro", "SF Arabic", "Noto Naskh Arabic", "Segoe UI", sans-serif; line-height: 1.8; }
.lang-ar em, .lang-ar del { unicode-bidi: isolate; }
.lang-ar ul, .lang-ar ol { padding-inline-start: 0; padding-inline-start: 1.4em; }
.lang-ar th, .lang-ar td { text-align: end; }
.ex-ar { margin: 0 0 12px; }
.field-row label:only-child { flex: 1 1 auto; min-width: 0; white-space: normal; line-height: 1.4; }
.field-row label:only-child input[type=checkbox] { margin-inline-end: 8px; vertical-align: -2px; }


/* ================================================================ stages: goethecloud.com's paper hero
   The cream manuscript stage keeps its tone in dark appearance (a shade calmer), so its text colours are set here. */
.stage { position: relative; padding-block: clamp(40px, 6.5vw, 96px) clamp(64px, 8vw, 120px); overflow: clip; color: var(--ink); }
.stage-paper {
  --ink: #1d1d1f; --ink-2: #45454a; --ink-3: #5c5c62; --line: rgba(0, 0, 0, .15); --accent: #3a2fd6; --btn: #3a2fd6; --btn-hover: #2f25b8;
  --ring: rgba(0, 0, 0, .26); --shade: rgba(28, 24, 40, .34);
  background: radial-gradient(ellipse 80% 55% at 50% 100%, var(--paper-c), transparent 72%), linear-gradient(var(--paper-a), var(--paper-b));
}
.stage-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mark { display: block; line-height: 1; color: var(--ink-2); }
.mark-g { font-family: var(--serif); font-size: clamp(27px, 2.7vw, 36px); font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.mark-w { font-family: var(--display); font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; }
.display { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 7.7vw, 108px); line-height: .98; letter-spacing: -.028em; color: var(--ink); text-wrap: balance; max-width: 11.5em; margin-inline: auto; }
.mark + .display { margin-top: clamp(14px, 1.8vw, 24px); }
.display.sm { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.03; max-width: 13em; }
.stage-lead { margin-top: clamp(20px, 2.4vw, 30px); font-size: clamp(20px, 2vw, 26px); line-height: 1.4; color: var(--ink-2); max-width: 30em; text-wrap: balance; margin-inline: auto; }
.stage-sub .stage-lead { max-width: 36em; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; text-wrap: pretty; }
.stage-ctx { font-size: 16px; margin-bottom: clamp(16px, 2vw, 24px); color: var(--ink-3); } .stage-ctx a { color: var(--ink-3); } .stage-ctx a:hover { color: var(--accent); }
.stage .actions { justify-content: center; }
.btn-light { background: var(--btn); color: #fff; }
.btn-plain.on-ink, .btn-plain.on-ink .chev { color: var(--accent); }
.stage-demo { margin-top: clamp(44px, 6vw, 84px); }
@media (prefers-reduced-motion: no-preference) {
  .stage-demo .demo { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* the live lesson */
.stage-demo { display: flex; justify-content: center; }
.demo { box-shadow: 0 0 0 1px var(--ring, rgba(0,0,0,.26)), 0 2px 5px rgba(0, 0, 0, .14), 0 22px 44px -14px var(--shade, rgba(28,24,40,.34)), 0 64px 120px -44px var(--shade, rgba(28,24,40,.34)); }
.demo { width: min(300px, 78vw); aspect-ratio: 9 / 17.5; border-radius: 52px; padding: 11px; background: linear-gradient(160deg, #2a2f3a, #0d0f14); }
.demo-screen { position: relative; height: 100%; border-radius: 42px; background: #f2f2f7; color: #1d1d1f; padding: 46px 18px 18px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; font-size: 14px; line-height: 1.3; }
.demo-top { position: absolute; top: 14px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 14px; background: #000; }
.demo-track { display: block; height: 4px; border-radius: 2px; background: #dcdce2; margin-bottom: 6px; } .demo-fill { display: block; height: 100%; width: 62%; border-radius: 2px; background: #3a2fd6; }
.demo-screen > .demo-track { order: -1; }
.demo-top .demo-track { display: none; }
.demo-ctx { font-size: 12px; color: #6e6e73; }
.demo-title { font: 700 20px/1.15 var(--display); letter-spacing: -.01em; }
.demo-chat { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.bub { max-width: 84%; padding: 8px 12px; border-radius: 18px; background: #e5e5ea; }
.bub.r { align-self: flex-end; background: #3a2fd6; color: #fff; }
.bub .who { display: block; font-size: 11px; font-weight: 600; opacity: .62; margin-bottom: 1px; }
.dots { display: none; gap: 4px; padding: 4px 0; } .dots i { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; }
.demo-listen { display: flex; align-items: center; gap: 10px; color: #3a2fd6; margin-top: 2px; }
.demo-listen svg { width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: #3a2fd6; color: #fff; }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; } .wave i { width: 3px; height: 30%; border-radius: 2px; background: currentColor; opacity: .55; }
.demo-ex { margin-top: auto; background: #fff; border-radius: 16px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; }
.demo-ex .demo-ctx { grid-column: 1 / -1; }
.demo-q { font-size: 16px; white-space: nowrap; }
.demo .gap { display: inline-block; min-width: 54px; padding: 0; border-bottom: 2px solid #c7c7cc; text-align: center; }
.demo .gap .word { color: #248a3d; font-weight: 600; }
.demo-ok circle { fill: #248a3d; } .demo-ok path { stroke: #fff; }
.demo-btn { display: block; text-align: center; background: #3a2fd6; color: #fff; font-weight: 600; border-radius: 14px; padding: 11px; }
@media (prefers-reduced-motion: no-preference) {
  .demo-fill { animation: d-fill 12s linear infinite; }
  .b1 { animation: d-b1 12s var(--spring) infinite; } .b2 { animation: d-b2 12s var(--spring) infinite; } .b3 { animation: d-b3 12s var(--spring) infinite; }
  .b3 .dots { display: flex; animation: d-dots 12s steps(1) infinite; } .b3 .txt { animation: d-txt 12s steps(1) infinite; }
  .dots i { animation: d-bounce .9s ease-in-out infinite; } .dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
  .wave i { animation: d-wave 12s ease-in-out infinite; } .wave i:nth-child(2n) { animation-delay: -.2s; } .wave i:nth-child(3n) { animation-delay: -.45s; }
  .demo .gap .word { display: inline-block; animation: d-word 12s var(--spring) infinite; } .demo-ok { animation: d-ok 12s var(--spring) infinite; }
}
@keyframes d-fill { 0% { width: 8%; } 80% { width: 62%; } 100% { width: 62%; } }
@keyframes d-b1 { 0%, 4% { opacity: 0; transform: translateY(10px) scale(.96); } 9%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes d-b2 { 0%, 16% { opacity: 0; transform: translateY(10px) scale(.96); } 21%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes d-b3 { 0%, 28% { opacity: 0; transform: translateY(10px) scale(.96); } 32%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes d-dots { 0% { display: flex; } 42% { display: none; } }
@keyframes d-txt { 0% { display: none; } 42% { display: inline; } }
@keyframes d-bounce { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes d-wave { 0%, 46%, 70%, 100% { height: 30%; } 50%, 58%, 66% { height: 100%; } 54%, 62% { height: 45%; } }
@keyframes d-word { 0%, 72% { opacity: 0; transform: translateY(-14px); } 76%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes d-ok { 0%, 77% { opacity: 0; transform: scale(.4); } 81%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* audience paths */
.paths { padding-top: var(--gap); }
.paths-h, .appx-h { font: 500 clamp(36px, 5.6vw, 72px)/1.03 var(--serif); letter-spacing: -.022em; text-wrap: balance; max-width: 13em; }
.paths-sub { color: var(--ink-2); font-size: clamp(19px, 1.55vw, 22px); line-height: 1.5; margin-top: 10px; max-width: 36em; }
.path-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.path { display: flex; align-items: center; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--ink); }
.path:hover { text-decoration: none; } .path:hover .path-t { color: var(--accent); }
.path-sym { color: var(--accent); flex: none; }
.path-text { flex: 1; min-width: 0; }
.path-t { display: block; font: 600 20px/1.25 var(--display); letter-spacing: -.01em; transition: color .2s; }
.path-s { display: block; color: var(--ink-2); font-size: 15px; margin-top: 3px; }
@media (max-width: 760px) { .path-list { grid-template-columns: 1fr; } }

/* app teaser */
.appx { margin-top: var(--gap); background: linear-gradient(var(--white-a), var(--white-b)); color: #1d1d1f; --ink: #1d1d1f; --ink-2: #45454a; --accent: #3a2fd6; padding: var(--stage-gap) 0; overflow: hidden; }
.appx-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.appx-icon { width: 72px; height: 72px; border-radius: 16px; display: block; margin-bottom: 18px; }
.appx-soon { color: var(--accent); font-weight: 600; margin-top: 8px; }
.appx-p { color: var(--ink-2); font-size: 17px; margin-top: 10px; max-width: 30em; }
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.shots img { display: block; width: 100%; height: auto; border-radius: clamp(14px, 1.8vw, 24px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .26), 0 18px 40px -16px rgba(28, 24, 40, .34); }
.shots li:nth-child(2n) { transform: translateY(28px); }
@media (max-width: 760px) {
  .appx-in { grid-template-columns: 1fr; }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) 28px; scrollbar-width: none; }
  .shots li { flex: 0 0 58%; scroll-snap-align: center; }
}

/* audience page */
.benefits { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 28px; }
.benefits h3 { font: 650 clamp(20px, 1.7vw, 23px)/1.3 var(--display); margin: 0 0 6px; letter-spacing: -.01em; }
.benefits p { color: var(--ink-2); }
.benefits li { border-top: 1px solid var(--line); padding-top: 20px; }
ol.steps { counter-reset: s; }
ol.steps > li { counter-increment: s; display: flex; gap: 14px; padding: 13px 16px; position: relative; align-items: baseline; }
ol.steps > li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--btn); color: #fff; font: 600 13px/24px var(--sans); text-align: center; }
ol.steps > li + li::after { content: ""; position: absolute; top: 0; inset-inline-start: 54px; inset-inline-end: 0; border-top: .5px solid var(--sep); }

/* money */
.fx-note { display: block; margin-top: 4px; color: var(--ink-3); }
.cur-pick { font: inherit; font-size: 13px; color: var(--accent); background: transparent; border: 0; padding: 2px 0; margin-top: 4px; cursor: pointer; }
.money-alt { color: var(--ink-2); font-weight: 500; font-size: .72em; }


/* checkout */
.wrap.narrow:has(.co) { max-width: 1040px; }
.co { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "head head" "pay sum"; gap: 20px 40px; padding: clamp(24px, 5vw, 56px) 0 64px; }
.co-head { grid-area: head; } .co-pay { grid-area: pay; } .co-sum { grid-area: sum; align-self: start; position: sticky; top: 72px; }
.co-sum { background: var(--card); border-radius: 14px; padding: 24px; }
.co-course { font: 600 21px/1.2 var(--display); }
.co-sub { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.co-price { font: 500 44px/1 var(--serif); letter-spacing: -.02em; margin-top: 20px; }
.co-approx { color: var(--ink-2); margin-top: 6px; }
.co-h { font-size: 15px; font-weight: 600; margin: 22px 0 8px; letter-spacing: 0; }
.co-get { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.co-get li { display: flex; gap: 10px; align-items: flex-start; }
.co-fine { color: var(--ink-2); font-size: 13px; margin-top: 18px; line-height: 1.45; }
.co-pay form { background: var(--card); border-radius: 14px; padding: 24px; }
.co-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.co-field { width: 100%; height: 50px; border: 0; border-radius: 12px; background: var(--field); color: var(--ink); font: inherit; font-size: 17px; padding: 0 14px; }
.co-note { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.co-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.co-consent input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--accent); }
.co-btn { width: 100%; margin-top: 22px; height: 54px; font-size: 18px; }
.co-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.co-badge { display: inline-flex; align-items: center; gap: 3px; padding: 4px 10px; border-radius: 7px; border: .5px solid var(--sep); color: var(--ink); font-weight: 600; }
.co-via { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: auto; }
@media (max-width: 760px) { .co { grid-template-columns: 1fr; grid-template-areas: "head" "pay" "sum"; } .co-sum { position: static; } .co-via { margin-inline-start: 0; } }

.stage h1:not(.display) { font: inherit; max-width: none; letter-spacing: 0; }
.is-player .foot { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------------ knowledge base (/learn/) */
.crumbs { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs a { color: var(--ink-2); }
.kb-meta { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.kb > * + * { margin-top: 28px; }
.kb h2 { font-size: 22px; margin-bottom: 12px; }
.kb-summary h2 { font-size: 15px; color: var(--ink-2); font-family: var(--sans); font-weight: 600; margin-bottom: 8px; }
.kb-exercise + .kb-exercise { margin-top: 24px; }
.kb-exercise h3 { font-size: 18px; margin-bottom: 10px; }
.js .ex-static { display: none; }
.kb-sol { margin-top: 18px; }
.kb-cta h2 { font-size: 20px; }
.kb-cta .actions { margin-top: 14px; }
.kb-senses ul { list-style: none; padding: 0; }
.kb-senses li + li { margin-top: 12px; }
.lvl-chip { display: inline-block; font: 700 12px/1 var(--sans); color: var(--lc); border: 1px solid currentColor; border-radius: 6px; padding: 3px 5px; vertical-align: 1px; }
.vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 18px; }
.vt h3 { font-size: 15px; margin-bottom: 6px; }
.vt th { font-weight: 400; color: var(--ink-2); white-space: nowrap; }
.vt-note { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.4; }
.kb-search { margin-top: 24px; }
.kb-search .field { width: 100%; }
.kb-hits { margin-top: 10px; }
.kb-none { margin-top: 10px; font-size: 15px; }
.kb-cols { list-style: none; padding: 12px 16px; margin: 0; background: var(--card); border-radius: 12px; columns: 3 150px; column-gap: 18px; font-size: 15px; line-height: 1.9; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* knowledge base: living and working (templates, dialogues, checklists, country switcher, legal note) */
.kb-legal { border-inline-start: 4px solid var(--accent); }
.kb-legal p { margin: 0; font-size: 15px; line-height: 1.5; }
.kb-switch ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.kb-switch a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 15px; }
.kb-switch a[aria-current] { background: var(--accent); color: var(--accent-ink); }
.kb-switch a:hover { text-decoration: none; }
.kb-cc { font: 700 12px/1 var(--sans); letter-spacing: .04em; }
.kb-template { background: var(--card); border-radius: 12px; margin: 16px 0; overflow: hidden; }
.kb-template-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.kb-template pre { margin: 0; padding: 14px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.55 ui-monospace, "SF Mono", Menlo, monospace; }
.kb-dialogue { background: var(--card); border-radius: 12px; padding: 8px 16px; margin: 16px 0; }
.kb-dialogue .turn { display: grid; grid-template-columns: minmax(70px, 130px) 1fr; gap: 12px; padding: 10px 0; }
.kb-dialogue .turn + .turn { border-top: 1px solid var(--line); }
.kb-dialogue .who { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.kb-dialogue p { margin: 0; }
.kb-dialogue .tr { color: var(--ink-2); font-size: 14px; font-style: italic; margin-top: 2px; }
@media (max-width: 520px) { .kb-dialogue .turn { grid-template-columns: 1fr; gap: 2px; } }
.prose ul.tasks { list-style: none; padding: 0; }
.prose ul.tasks li { margin: 8px 0; }
.prose ul.tasks label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.prose ul.tasks input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.kb-check-note { font-size: 13px; margin-top: -4px; }

/* Learner illustrations: each SVG carries its own cream stage, so it reads the same in light and dark. */
.learner { display: block; width: 100%; height: auto; border-radius: clamp(14px, 2vw, 22px); }
.learners { padding-top: var(--gap); }
.learner-grid { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: repeat(3, 1fr); }
.learner-grid.n4, .learner-grid.n2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .learner-grid.n4 { grid-template-columns: repeat(4, 1fr); } }
.aud .learners { padding-top: clamp(40px, 6vw, 72px); }
.course-learner { max-width: 440px; }
.learner-sm { width: 160px; margin-top: 20px; border-radius: 12px; }
.learner-hub { margin: 28px 0 0; }
@media (max-width: 760px) { .learner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .learner-grid, .learner-grid.n4, .learner-grid.n2 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad); scrollbar-width: none; } .learner-grid li { scroll-snap-align: start; } .learner-sm { width: 120px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .learner { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); } }
:root[data-theme="dark"] .learner { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }

/* right-to-left languages (ar, fa, ps, ur): layout mirrors through logical properties above;
   directional icons flip, Latin-script German examples stay left-to-right */
[dir="rtl"] .chev, [dir="rtl"] .btn-plain .chev { transform: scaleX(-1); }
[dir="rtl"] .faq-item[open] summary .chev, [dir="rtl"] .all-words[open] summary .chev, [dir="rtl"] .script[open] summary .chev { transform: rotate(90deg); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] body { letter-spacing: 0; }
[dir="rtl"] [dir="ltr"] { text-align: start; }
@keyframes slide-rtl { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
/* system font stacks per script (Noto where installed) */
:lang(ar), :lang(fa), :lang(ps), :lang(ku-Arab) { --sans: "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; --display: var(--sans); --serif: "Noto Naskh Arabic", "Geeza Pro", "Times New Roman", serif; }
:lang(ur) { --sans: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; --display: var(--sans); line-height: 1.9; }
:lang(hi) { --sans: "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", "Mangal", system-ui, sans-serif; --display: var(--sans); }
:lang(bn) { --sans: "Kohinoor Bangla", "Noto Sans Bengali", "Nirmala UI", "Vrinda", system-ui, sans-serif; --display: var(--sans); }
:lang(ti) { --sans: "Kefa", "Noto Sans Ethiopic", "Nyala", "Ebrima", system-ui, sans-serif; --display: var(--sans); }
:lang(zh-Hans) { --sans: "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif; --display: var(--sans); --serif: "Songti SC", "Noto Serif SC", serif; }
:lang(ar) h1, :lang(fa) h1, :lang(ps) h1, :lang(ur) h1, :lang(hi) h1, :lang(bn) h1 { line-height: 1.35; }
/* language menu: search field and groups */
.lang-list { max-height: min(70vh, 560px); overflow-y: auto; }
.lang-find { width: 100%; box-sizing: border-box; margin: 2px 0 6px; padding: 10px 12px; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--ink); }
.lang-group { list-style: none; margin: 0; padding: 0; }
.lang-group + .lang-group { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.lang-group:empty, .lang-group li[hidden] { display: none; }
.legal-en { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); }
/* inside RTL pages the brand, the demo phone and German text (lang="de") stay left-to-right */
[dir="rtl"] .brand, [dir="rtl"] .demo, [dir="rtl"] .foot-brand, [dir="rtl"] [lang="de"], [dir="rtl"] [lang="en"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .demo { text-align: left; }
[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }
.lang-group:not(:has(li:not([hidden]))) { display: none; }
/* Course catalogue cards */
.cc-sec { margin: 40px 0 8px; }
.cc-h { font-family: var(--serif, ui-serif, Georgia, serif); font-size: clamp(26px, 4vw, 36px); font-weight: 400; margin: 0 0 18px; }
.cc-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cc { background: var(--card, #fff); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06); transition: transform .2s ease, box-shadow .2s ease; }
.cc:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 14px 34px rgba(0,0,0,.1); }
.cc-img { position: relative; display: block; background: #f4ecdf; }
.cc-pic { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.cc-level { position: absolute; top: 14px; inset-inline-start: 14px; font: 700 15px/1 var(--sans); padding: 8px 12px; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.cc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cc-title { font-size: 21px; margin: 0; } .cc-title a { color: inherit; text-decoration: none; }
.cc-sub { margin: 0; color: var(--text-2, #6e6e73); font-size: 14px; }
.cc-promise { margin: 4px 0 0; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cc-meta { margin: 6px 0 0; color: var(--text-2, #6e6e73); font-size: 14px; }
.cc-actions { margin: auto 0 0; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
@media (prefers-reduced-motion: reduce) { .cc, .cc:hover { transition: none; transform: none; } }
