/* LangPro website. Plain CSS, no external fonts, no inline styles (CSP: style-src 'self'). */

:root {
  --bg: #f6f2e9;
  --bg-soft: #eee8db;
  --text: #1d1c1a;
  --muted: #5f5a52;
  --line: #d8d1c3;
  --accent: #4b6a79;
  --block: #3f5b69;
  --block-line: rgba(246, 242, 233, 0.35);
  --ink: #1d1c1a;
  --course: #1d1c1a;
  --on-dark: #f6f2e9;
  --on-dark-line: rgba(246, 242, 233, 0.28);
  --card: #f6f2e9;
  --card-text: #1d1c1a;
  --focus: #3f5b69;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", "Times New Roman", Georgia, serif;
  --lh: 1.75;
  --ls: 0;
  --h-lh: 1.18;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181715;
    --bg-soft: #201f1c;
    --text: #ece7dd;
    --muted: #a9a296;
    --line: #3a3733;
    --accent: #9fb6c4;
    --block: #2d4350;
    --ink: #0e0d0c;
    --course: #2a2824;
    --card: #e9e3d6;
    --focus: #9fb6c4;
    color-scheme: dark;
  }
}

/* Per-language font stacks. Serif is used for big headings and target-language lines. */
:lang(zh-Hant) {
  --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans CJK TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --serif: "Songti TC", "PMingLiU", "Noto Serif CJK TC", "Noto Serif TC", serif;
  --lh: 1.9;
  --ls: 0.03em;
  --h-lh: 1.4;
}
:lang(ja) {
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", "Noto Serif JP", serif;
  --lh: 1.9;
  --ls: 0.02em;
  --h-lh: 1.4;
}
:lang(ko) {
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans CJK KR", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --serif: "AppleMyungjo", "Noto Serif CJK KR", "Noto Serif KR", "Batang", serif;
  --lh: 1.85;
  --h-lh: 1.4;
}
:lang(ru) {
  --serif: "Iowan Old Style", Georgia, "Noto Serif", "Times New Roman", serif;
}
/* Target-language snippets (lang="en", lang="es") inside any page use Latin faces. */
:lang(en), :lang(es), :lang(pt), :lang(de), :lang(fr), :lang(it) {
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", "Times New Roman", Georgia, serif;
  --lh: 1.7;
  --ls: 0;
}
html:lang(en), html:lang(es-MX), html:lang(pt-BR), html:lang(de), html:lang(fr), html:lang(it) { --h-lh: 1.18; }

/* Wrap CJK copy between phrases, not inside words (ignored by browsers that don't know auto-phrase). */
:lang(ja) body, :lang(zh-Hant) body { word-break: auto-phrase; line-break: strict; }
:lang(ja) .hero-sub { word-break: keep-all; }
:lang(ko) body { word-break: keep-all; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: var(--lh);
  letter-spacing: var(--ls);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: var(--h-lh); letter-spacing: 0; }
a { color: var(--accent); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--on-dark); }
strong { font-weight: 650; }

.skip { position: absolute; left: -999px; top: 0; z-index: 10; background: var(--bg); color: var(--text); padding: 0.6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: 78rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2.5rem; } }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { font-family: var(--serif); font-weight: 650; font-size: 1.3rem; letter-spacing: 0.01em; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.92rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); text-decoration: underline; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; color: var(--muted); min-height: 2.75rem; display: flex; align-items: center; gap: 0.4rem; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 0.38rem; height: 0.38rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-0.1rem); }
.lang-menu[open] summary::after { transform: rotate(-135deg) translateY(-0.05rem); }
.lang-menu summary:hover { color: var(--text); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 5; min-width: 13rem; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0.4rem 0; }
.lang-menu li a { display: flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; color: var(--text); }
.lang-menu li a[aria-current="true"] { color: var(--accent); font-weight: 600; }
.lang-menu li a:hover { background: var(--bg-soft); }

/* Hero */
.hero { padding: 2.5rem 0 4.5rem; }
.hero-text h1 { font-size: clamp(2.1rem, 9.2vw, 3.4rem); max-width: 18ch; text-wrap: balance; }
:lang(ja) .hero-text h1, :lang(zh-Hant) .hero-text h1, :lang(ko) .hero-text h1 { max-width: 14em; letter-spacing: 0.03em; }
.hero-sub { margin-top: 1.5rem; color: var(--muted); max-width: 34rem; }
.hero-soon { margin-top: 2rem; display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.92rem; color: var(--text); text-decoration: none; }
.hero-soon::before { content: ""; width: 2rem; border-top: 1px solid var(--accent); }
.video { margin: 3rem auto 0; width: min(72vw, 17.5rem); }
.video-frame { position: relative; aspect-ratio: 720 / 1560; background: var(--ink); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.vplay { position: absolute; inset: 0; width: 100%; border: 0; padding: 0 0 14%; margin: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; gap: 0.75rem; align-items: center; justify-content: flex-end; color: var(--on-dark); font: inherit; }
.vsound { font-size: 0.8rem; letter-spacing: 0.04em; padding: 0.2rem 0.8rem; border-radius: 999px; background: rgba(29, 28, 26, 0.82); border: 1px solid rgba(246, 242, 233, 0.5); }
.vplay[hidden] { display: none; }
.vplay span.disc { width: 4.25rem; height: 4.25rem; border-radius: 50%; background: rgba(29, 28, 26, 0.82); border: 1px solid rgba(246, 242, 233, 0.6); display: flex; align-items: center; justify-content: center; transition: background 0.4s ease; }
.vplay:hover span.disc { background: rgba(29, 28, 26, 0.95); }
.vplay span.disc::before { content: ""; margin-left: 0.3rem; border-style: solid; border-width: 0.7rem 0 0.7rem 1.15rem; border-color: transparent transparent transparent #f6f2e9; }
@media (prefers-color-scheme: dark) { .video-frame video { filter: brightness(0.86); } }
.vlabel { margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted); text-align: center; }
.vtext { margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.vtext summary { cursor: pointer; text-align: center; list-style: none; color: var(--muted); text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.vtext summary::-webkit-details-marker { display: none; }
.vtext p { margin-top: 0.6rem; line-height: 1.7; }

@media (min-width: 64rem) {
  .hero { padding: 3rem 0 6rem; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: center; min-height: calc(100vh - 11rem); min-height: calc(100svh - 11rem); }
  .hero-text h1 { font-size: clamp(2.8rem, 4.2vw, 4rem); max-width: 22ch; }
  :lang(ja) .hero-text h1, :lang(zh-Hant) .hero-text h1, :lang(ko) .hero-text h1 { font-size: clamp(3rem, 4.9vw, 4.6rem); }
  .hero-sub { font-size: 1.2rem; margin-top: 2rem; }
  .video { margin: 0 0 0 auto; width: min(21rem, 38vh); }
  .vlabel, .vtext summary { text-align: left; }
}

/* Points */
.points { border-top: 1px solid var(--line); }
.point { display: grid; gap: 1.5rem; padding: 3.5rem 0; border-top: 1px solid var(--line); }
.point:first-child { border-top: 0; }
.point-head .n { display: block; margin-bottom: 0.75rem; font-family: var(--serif); font-size: 0.95rem; color: var(--muted); letter-spacing: 0.12em; }
.point h2 { font-size: clamp(1.6rem, 6.4vw, 2.3rem); text-wrap: balance; }
.point-body p + p { margin-top: 1rem; }
.point-body p { max-width: 38rem; }
@media (min-width: 64rem) {
  .point { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 4rem; padding: 6rem 0; }
  .point h2 { font-size: 2.2rem; }
  .point-body { font-size: 1.1rem; }
  .point-wide { grid-column: 1 / -1; }
}
.point-body h3 { margin: 3rem 0 1rem; font-size: 1.3rem; }
.point-body h3:first-child { margin-top: 0; }
.point-body .rule { margin: 3rem 0 0; border: 0; border-top: 1px solid var(--line); }
.how-details { margin-top: 1.75rem; }
.how-details summary { cursor: pointer; display: flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; list-style: none; font-weight: 600; }
.how-details summary::-webkit-details-marker { display: none; }
.how-details summary::before { content: ""; width: 0.42rem; height: 0.42rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg); transition: transform 0.3s ease; }
.how-details[open] summary::before { transform: rotate(45deg); }
.how { margin-top: 0.75rem; border-top: 1px solid var(--line); }
.how div { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.how dt { font-weight: 650; }
.how dd { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.98rem; }
@media (min-width: 40rem) {
  .how div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; }
  .how dd { margin: 0; }
}
.how-note { margin-top: 1rem; font-size: 0.95rem; color: var(--muted); }
.pricing-foot { margin-top: 0.9rem; color: var(--muted); }

/* Conversation demo (blue block) */
.demo { background: var(--block); color: var(--on-dark); border-radius: 8px; padding: 1.5rem 1.25rem; margin-top: 2.5rem; }
.demo-cap { font-size: 0.88rem; letter-spacing: 0.04em; padding-bottom: 1rem; border-bottom: 1px solid var(--on-dark-line); }
.demo-cap b { font-weight: 650; }
.talk > li { padding: 1.25rem 0; border-bottom: 1px solid var(--on-dark-line); display: grid; gap: 0.5rem; }
.talk > li:last-child { border-bottom: 0; padding-bottom: 0; }
.talk .lab { font-size: 0.85rem; line-height: 1.5; letter-spacing: 0.03em; }
.talk .lab b { display: block; font-weight: 650; }
.talk .say { font-size: 1.15rem; line-height: 1.55; }
.talk .say.serif { font-family: var(--serif); font-size: 1.3rem; }
.talk .you .say { font-weight: 450; }
.card { background: var(--card); color: var(--card-text); border-radius: 6px; padding: 1.1rem 1.15rem 0.5rem; }
.card .target { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.4; }
.glosses { margin-top: 0.9rem; border-top: 1px solid rgba(29, 28, 26, 0.2); }
.glosses li { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; justify-content: space-between; padding: 0.55rem 0; font-size: 0.95rem; border-bottom: 1px solid rgba(29, 28, 26, 0.12); }
.glosses li:last-child { border-bottom: 0; }
.glosses .term { font-weight: 600; }
.glosses .tr { color: #4a463f; }
@media (min-width: 48rem) {
  .demo { padding: 2.5rem 3rem; }
  .talk > li { grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; padding: 1.6rem 0; align-items: start; }
  .talk .say.serif { font-size: 1.5rem; }
  .card { padding: 1.4rem 1.6rem 0.7rem; }
  .card .target { font-size: 1.65rem; }
}
.mini { margin-top: 2rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); }
.mini-cap { padding: 0.9rem 1.1rem 0.7rem; font-size: 0.85rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.mini ul > li { padding: 0.9rem 1.1rem; display: grid; gap: 0.15rem; }
.mini ul > li + li { border-top: 1px solid var(--line); }
.mini .who { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }
.mini .line { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; }
.mini em { font-style: normal; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* Course (ink block) */
.block-ink { background: var(--course); color: var(--on-dark); }
.block-ink a { color: var(--on-dark); }
.course { padding: 4.5rem 0 5rem; }
.course .big { font-family: var(--serif); font-weight: 600; font-size: clamp(7.5rem, 34vw, 15rem); line-height: 0.82; letter-spacing: -0.02em; }
.course h2 { margin-top: 2rem; font-size: clamp(1.6rem, 6.4vw, 2.3rem); text-wrap: balance; }
.course .lead { margin-top: 1.25rem; max-width: 38rem; }
.course h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.course-cols { margin-top: 3.5rem; display: grid; gap: 3.5rem; }
.steps { counter-reset: s; border-top: 1px solid var(--on-dark-line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.5rem; padding: 1rem 0; border-bottom: 1px solid var(--on-dark-line); }
.steps li::before { content: counter(s); font-family: var(--serif); color: rgba(246, 242, 233, 0.7); }
.tl-text { max-width: 32rem; }
.timeline { position: relative; margin: 2.75rem 0 0; height: 3.2rem; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 0.4rem; border-top: 1px solid var(--on-dark-line); }
.timeline li { font-family: var(--serif); position: absolute; top: 0; left: calc(0.4rem + (100% - 0.8rem) * var(--f)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.55rem; font-size: 0.95rem; white-space: nowrap; }
.timeline li::before { content: ""; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--course); border: 1px solid var(--on-dark); }
.timeline li.tl-d1 { left: 0; transform: none; align-items: flex-start; }
.timeline li.tl-d7 { --f: 0.2069; }
.timeline li.tl-d14 { --f: 0.4483; }
.timeline li.tl-d21 { --f: 0.6897; }
.timeline li.tl-d30 { left: auto; right: 0; transform: none; align-items: flex-end; }
@media (min-width: 64rem) {
  .course { padding: 7rem 0 8rem; }
  .course-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: end; }
  .course h2 { margin-top: 0; font-size: 2.2rem; }
  .course-cols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; margin-top: 5rem; }
  .timeline li { font-size: 0.85rem; }
}

/* Languages */
.langs { padding: 4.5rem 0 3rem; }
.langs h2 { font-size: clamp(1.6rem, 6.4vw, 2.3rem); }
.langs .lead { margin-top: 0.9rem; color: var(--muted); }
.lang-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.lang-grid li { padding: 0 0; min-height: 4rem; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }
.lang-grid li:nth-child(odd) { padding-right: 1rem; }
@media (min-width: 48rem) {
  .lang-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 1.5rem; }
  .lang-grid li:nth-child(odd) { padding-right: 0; }
  .lang-grid li { font-size: 1.5rem; min-height: 5rem; }
}
.also { margin-top: 3.5rem; }
.also h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.also li { padding: 0.7rem 0 0.7rem 1.25rem; position: relative; border-top: 1px solid var(--line); color: var(--muted); max-width: 46rem; }
.also li::before { content: ""; position: absolute; left: 0; top: 1.65em; width: 0.6rem; border-top: 1px solid var(--accent); }
.also li:last-child { border-bottom: 1px solid var(--line); }

/* Download (blue block) */
.block-blue { background: var(--block); color: var(--on-dark); }
.block-blue a { color: var(--on-dark); }
.download { padding: 4.5rem 0 5rem; }
.download h2 { font-size: 1.05rem; letter-spacing: 0.14em; font-family: var(--sans); font-weight: 500; opacity: 0.9; }
.download .status { margin-top: 1.5rem; font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 9vw, 3.6rem); line-height: var(--h-lh); max-width: 16ch; text-wrap: balance; }
:lang(ja) .download .status, :lang(zh-Hant) .download .status, :lang(ko) .download .status { max-width: 12em; }
.download .note { margin-top: 1.5rem; max-width: 30rem; }
.store-btn { display: inline-block; margin-top: 2rem; padding: 0.95rem 1.75rem; background: var(--on-dark); color: var(--ink) !important; border-radius: 6px; text-decoration: none; font-weight: 600; letter-spacing: 0.01em; }
.store-btn:hover { background: #fff; text-decoration: none; }
@media (min-width: 64rem) {
  .download { padding: 7rem 0 7.5rem; }
  .download .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: end; }
  .download .status { margin-top: 1.75rem; font-size: clamp(2.8rem, 4.4vw, 4rem); max-width: 14ch; }
  .download .note { margin-top: 1.75rem; }
}

/* Footer */
.site-footer { padding: 3rem 0 3.5rem; font-size: 0.9rem; color: var(--muted); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer a[aria-current="true"] { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent); }
.site-footer .row + .row { margin-top: 0.5rem; }
.site-footer .copy { margin-top: 1.5rem; max-width: 40rem; }
@media (min-width: 64rem) { .site-footer { padding: 4rem 0 4rem; } .site-footer .cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } .site-footer .row + .row { margin-top: 0; } }

/* Support and legal pages */
.page { padding-top: 2.5rem; padding-bottom: 5rem; }
.page-head h1 { font-size: clamp(2rem, 8vw, 3rem); }
.page-head .meta { margin-top: 0.9rem; color: var(--muted); font-size: 0.95rem; }
.page-head .lead { margin-top: 1.25rem; color: var(--muted); max-width: 36rem; }
.page-body { margin-top: 3rem; }
@media (min-width: 64rem) {
  .page { padding-top: 4rem; padding-bottom: 8rem; }
  .page-head { max-width: 46rem; }
  .support-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; align-items: start; }
  .toc { position: sticky; top: 2rem; }
}
.toc { font-size: 0.95rem; margin-bottom: 3rem; }
@media (min-width: 64rem) { .toc { margin-bottom: 0; } }
.toc ol { border-top: 1px solid var(--line); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: flex; align-items: center; min-height: 2.75rem; padding: 0.45rem 0; color: var(--text); text-decoration: none; line-height: 1.5; }
.toc a:hover { color: var(--accent); }
.faq { padding: 2rem 0; border-top: 1px solid var(--line); }
.faq:first-child { border-top: 0; padding-top: 0; }
.faq h2 { font-size: clamp(1.25rem, 5vw, 1.55rem); text-wrap: balance; }
.faq p { margin-top: 0.9rem; max-width: 40rem; }
.faq p strong { font-weight: 650; }
.contact { margin-top: 1rem; padding: 2rem 0 0; border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(1.25rem, 5vw, 1.55rem); }
.contact p { margin-top: 0.9rem; max-width: 40rem; }
.mail { display: inline-block; margin-top: 1rem; font-family: var(--serif); font-size: clamp(1.15rem, 4.6vw, 1.5rem); word-break: break-all; }

.prose { max-width: 44rem; }
.prose h2 { font-size: 1.35rem; margin: 3.25rem 0 1rem; padding-top: 1.75rem; border-top: 1px solid var(--line); text-wrap: balance; }
.prose h3 { font-size: 1.08rem; margin: 2rem 0 0.5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.3rem 0; }
.prose code { font-size: 0.9em; background: var(--bg-soft); padding: 0.05em 0.3em; border-radius: 3px; }
.prose blockquote { margin: 0 0 1.1rem; padding: 0.1rem 0 0.1rem 1rem; border-left: 1px solid var(--line); color: var(--muted); }
.prose .table { overflow-x: auto; margin: 0 0 1.5rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; line-height: 1.65; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.6rem 0.9rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 650; color: var(--muted); font-size: 0.84rem; }
@media (max-width: 34rem) {
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { position: absolute; left: -999px; }
  .prose tr { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .prose td { border: 0; padding: 0.15rem 0; }
  .prose td:first-child { font-weight: 650; }
}
.note-box { border-left: 2px solid var(--accent); background: var(--bg-soft); padding: 0.8rem 1rem; font-size: 0.93rem; margin-top: 1.5rem; max-width: 44rem; }

/* Language chooser (root) and 404 */
.chooser { padding-top: 3rem; padding-bottom: 5rem; }
.chooser h1 { font-size: clamp(2.4rem, 10vw, 4rem); }
.chooser .lead { margin-top: 1.25rem; color: var(--muted); max-width: 30rem; }
.chooser .lang-grid { margin-top: 3rem; }
.chooser .lang-grid a { color: var(--text); text-decoration: none; display: flex; align-items: center; min-height: inherit; width: 100%; }
.chooser .lang-grid a:hover { color: var(--accent); }
.chooser .quick { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0 1.5rem; font-size: 0.95rem; }
.chooser .quick a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Quiet motion: slow fade and a small lift, only when the visitor allows it. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
  .hero-text h1 { animation: rise 1.1s ease-out both; }
  .hero-sub, .hero-soon { animation: rise 1.1s ease-out 0.2s both; }
  .video { animation: rise 1.3s ease-out 0.35s both; }
  @supports (animation-timeline: view()) {
    .point-head, .point-body, .demo, .course .big, .download .status {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
  a, .vplay span.disc { transition: color 0.3s ease, background 0.4s ease; }
}

@media print {
  :root { --bg: #fff; --text: #000; --muted: #333; --line: #999; --accent: #000; --bg-soft: #f2f2f2; color-scheme: light; }
  body { font-size: 10.5pt; line-height: 1.6; }
  .site-header .site-nav, .skip, .video, .lang-menu { display: none; }
  .prose a[href^="http"]::after, .prose a[href^="mailto"]::after { content: " <" attr(href) ">"; font-size: 0.85em; }
  .prose h2 { break-after: avoid; }
  .prose tr, .prose li { break-inside: avoid; }
}

.sr-only-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
