/* Hallmark · shape: a practice card that opens into the app · genre: editorial · theme: custom · job: try · idea: "Deklinoo is one gesture, a German sentence with a gap you fill, so the page opens with a card you can answer and every section shows that card at work" · vibe: "calm exercise book, colour that means grammar"
 * paper: oklch(96.5% 0.013 87) · accent: oklch(38.8% 0.036 171) · display: Inclusive Sans · body: Figtree · hero: split, the headline beside a live article card with Klammi clipped to it · nav: wordmark, three section links, language, a quiet get-the-app · footer: a paper-2 band with the wordmark, legal links, contact and Apple's line · imagery: the product, screenshots 13 (simulator) and one built card · signature: the answerable card with the app's own feedback
 * axes: light/rounded-sans/chromatic-green · posture: full-palette (paper field, green signal, terracotta seal for Klammi, case and chapter colours as labelled surfaces) · modes: light+dark · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a learning app argues little; it argues by showing the calm feedback in the first screen instead of claiming it */
/* Hallmark · hero-review: fix · 5 findings · 3 resolved (headline rewritten around dem/der, meta caption cut, Klammi and spacing at 375) 2 partial (chapter colours added as the session stack behind the card; the split stays, the card carries it; "(der, die, das)" is the app's own instruction, kept verbatim) */
/* Hallmark · dismissed 58 · the static count includes three hidden chapter panels and four hidden feedback variants; the rendered page shows 437 words in English and 403 in German, credits excluded */
/* Hallmark · dismissed F20 · the privacy link sits alone under the facts on purpose, in the facts' column, as the band's one action */
/* Hallmark · finish-review: fix · 8 findings · 6 resolved (close head answers the hero, three heads rewritten, Lernplan level tabs beside the prices, crops recut with a fade, tabs fit at 375, tab label without the middle dot, nav order, price spacing) 1 deferred (English-UI screenshots: the owner supplies them later; DataTools/website_images.py --lang en) 1 partial (privacy band stays type-led: there is no screen of an absence) */
/* Hallmark · waive 24b · the Home Screen widgets (.w*) keep DeklinooWidget.swift's own point metrics (10, 6, 3, 9 pt) · they are a rebuild of the real widget, not page layout */
/* Hallmark · dismissed F6 · the widget count uses proportional digits on purpose, as the app does (a monospaced 7 leaves a gap before /10) */
/* Hallmark · waive 79 · the hero card in the right column runs to y 790 at 1440 x 900 and the text is centred on it · the answerable card is the hero visual, so the band under the shorter text column is the card's, not empty */
@import url("./tokens.css?v=86f8964d8a");
@import url("./base.css?v=604395dec0");

/* ---------- Shared ---------- */

/* The nav is not sticky: an anchor lands just above its heading. */
html { scroll-padding-top: 0; }
/* Links within the page (the nav, the legal pages' contents) glide to their target
   instead of jumping, as in the app. Reduce Motion keeps the jump (base.css). */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
:target { scroll-margin-top: var(--space-xl); }
.privacy:target { scroll-margin-top: 0; }
/* The nav links point at the sections, not their headings: a heading may still be
   moving (scroll motion), and a jump would aim at where it is mid-way. The section
   does not move, so the heading lands just below the top edge. */
.chapters:target, .premium:target { scroll-margin-top: calc(var(--space-xl) - var(--section-gap)); }

body { font-size: var(--text-md); line-height: 1.6; }
strong, b { font-weight: 600; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-control); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-control); background: var(--color-accent); color: var(--color-accent-ink); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn--quiet { background: transparent; color: var(--color-ink); border-color: var(--color-rule); }
.btn--quiet:hover { background: var(--color-paper-2); }

.store { display: inline-block; border-radius: 9px; transition: transform var(--dur-micro) var(--ease-out); }
.store img { width: 150px; height: 50px; }
.store:hover { transform: translateY(-1px); }
.store:active { transform: translateY(1px); }
.store:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); }
.stores .soon { display: inline-flex; margin: 0; align-items: center; min-height: 50px; padding: 0 var(--space-md); border: 1px dashed var(--color-muted); border-radius: 9px; color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1; white-space: nowrap; }

/* ---------- Nav ---------- */

.nav { display: flex; align-items: center; gap: var(--space-lg); min-height: 76px; }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-sm); margin-right: auto; color: var(--color-ink); text-decoration: none; font: 600 var(--text-lg)/1 var(--font-outlier); letter-spacing: -0.01em; border-radius: var(--radius-tab); }
.wordmark img { width: 36px; height: 36px; flex-shrink: 0; }
.wordmark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.nav-links { display: flex; gap: var(--space-lg); }
.nav-links a, .nav-lang { color: var(--color-ink-2); text-decoration: none; font-size: var(--text-sm); border-radius: 4px; transition: color var(--dur-short) var(--ease-out); }
.nav-links a:hover, .nav-lang:hover { color: var(--color-ink); text-decoration: underline; }
.nav-links a:focus-visible, .nav-lang:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.nav-get { font-size: var(--text-sm); }
@media (max-width: 60rem) { .nav-links { display: none; } }
@media (max-width: 26rem) { .nav-get { display: none; } }

/* ---------- Hero ---------- */

/* Top-aligned: an answer makes the card grow downward and nothing else moves. */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: start; min-height: calc(100svh - 76px); padding-block: var(--space-2xl) var(--space-xl); }
.hero-text { grid-column: 1 / span 7; padding-top: var(--space-3xl); }
.hero h1 { font-size: var(--text-display); font-weight: 600; line-height: 1.02; letter-spacing: var(--tracking-display); max-width: 18ch; }
.hero-lede { margin-top: var(--space-lg); max-width: 34ch; font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); }
.hero .stores { margin-top: var(--space-xl); }
.hero-card { grid-column: 8 / span 5; position: relative; overflow: visible; background: none; --pad: var(--space-xl); padding-top: var(--pad); }

/* The card: IndexCard from the app, tab and all. */
.card-tab { display: inline-block; margin-left: 28px; padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-tab) var(--radius-tab) 0 0; background: var(--color-artikel); color: var(--color-ink); font-size: var(--text-xs); font-weight: 600; }
.quiz { position: relative; padding: var(--space-xl) var(--space-xl) var(--space-lg); border-radius: var(--radius-card); background: var(--color-card); box-shadow: var(--shadow-card); }
.quiz-task { padding-right: var(--space-2xl); font-size: var(--text-sm); color: var(--color-ink-2); }
.quiz-task strong { color: var(--color-ink); }
.quiz-sentence { margin-top: var(--space-sm); font: 600 var(--text-sentence)/1.25 var(--font-display); letter-spacing: -0.01em; }
.nobr { white-space: nowrap; }
.gap { display: inline-block; min-width: 3.1em; vertical-align: baseline; }
.gap-blank { display: block; height: 0.9em; border-bottom: 2px solid var(--color-ink); }
.gap-fill { display: none; color: var(--color-ok); font-weight: 700; }
.chip { display: inline-block; margin-top: var(--space-md); padding: var(--space-3xs) var(--space-sm); border-radius: var(--radius-pill); font-size: var(--text-xs); }
.chip--dativ { background: var(--color-dativ-fill); color: var(--color-dativ-ink); }
.chip--question { box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--color-ink) 35%, transparent); color: var(--color-ink); }

.quiz-options { display: grid; gap: var(--space-xs); margin: var(--space-lg) 0 0; padding: 0; border: 0; min-width: 0; }
.option { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: var(--color-paper); font-size: var(--text-lg); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
/* The radio covers its whole label: focusing it never has to scroll the page. */
.option input, .tab input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.option:hover { background: var(--color-paper-2); }
.option:active { transform: translateY(1px); }
.option:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.option:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }

/* Answered: the solution fills the gap; only the selected option can turn red. */
.quiz:has(input:checked) .option.is-right { background: var(--color-ok-fill); border-color: var(--color-ok); color: var(--color-ok); }
.option:has(input:checked):not(.is-right) { background: var(--color-bad-fill); border-color: var(--color-bad); color: var(--color-bad); }
.quiz:has(input:checked) .gap-blank { display: none; }
.quiz:has(input:checked) .gap { min-width: 0; }
/* As in the app: once answered, right or wrong, the gap shows the solution. */
.quiz:has(input:checked) .gap-fill { display: inline; }
.quiz:has(input:checked) .gap .visually-hidden { display: none; }

.feedback { margin-top: var(--space-md); }
/* FeedbackPanel + SolutionBlock (SessionView.swift): 20 pt padding, 24 pt corners, 12 pt between the blocks, 4 pt inside the solution. */
.fb { display: none; padding: 20px; border-radius: var(--radius-card); }
.fb--right { --fb-bg: var(--color-ok-fill); background: var(--fb-bg); }
.fb--wrong { --fb-bg: var(--color-bad-fill); background: var(--fb-bg); }
.quiz:has(input[value="dem"]:checked) .fb[data-a="dem"],
.quiz:has(input[value="der"]:checked) .fb[data-a="der"],
.quiz:has(input[value="die"]:checked) .fb[data-a="die"],
.quiz:has(input[value="das"]:checked) .fb[data-a="das"],
.quiz:has(input[value="den"]:checked) .fb[data-a="den"] { display: grid; gap: 12px; }
.fb-head { display: flex; gap: 8px; align-items: flex-start; font: 600 var(--text-md)/1.3 var(--font-body); }
.fb--right .fb-head { color: var(--color-ok); }
.fb--wrong .fb-head { color: var(--color-bad); }
.fb svg { flex-shrink: 0; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fb svg.fb-ico { width: 22px; height: 22px; margin-top: 0.05em; stroke: none; }
.fb-ico .ico-fill { fill: currentColor; stroke: none; }
.fb-ico .ico-glyph { fill: none; stroke: var(--fb-bg); stroke-width: 2.4; }
.fb-solution { display: grid; gap: 12px; }
.fb-group { display: grid; gap: 4px; }
.fb-caption { font-size: var(--text-xs); font-weight: 600; color: var(--color-ink-2); }
.fb-form { font: 600 1.375rem/1.25 var(--font-display); letter-spacing: -0.01em; color: var(--color-ink); }
.fb-form .dev { font-weight: 800; color: var(--color-bad); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.fb-translation { font: italic 1rem/1.35 var(--font-body); color: var(--color-ink-2); }
.fb-given { font-size: 1rem; line-height: 1.35; color: var(--color-ink-2); }
.fb-note, .fb-diagnosis { font-size: 1rem; line-height: 1.4; color: var(--color-ink); }
.fb-diagnosis { display: flex; gap: 8px; align-items: flex-start; }
.fb-diagnosis svg { width: 18px; height: 18px; margin-top: 0.2em; }
.fb-rule { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-accent); font: 400 var(--text-md)/1 var(--font-body); cursor: pointer; }
.fb-rule svg { margin-top: 0; }
.fb-rule:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.fb-rule:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
.fb.fb--static { display: grid; gap: 12px; }
/* A right solution gets a hand-drawn underline (DrawnUnderline): a slight swing, drawn left to right. */
.fb--right .sol-text { position: relative; display: inline-block; }
.fb--right .sol-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 4px; border-bottom: 2.5px solid var(--color-ok); border-radius: 50% / 0 0 100% 100%; rotate: -0.7deg; clip-path: inset(0 100% 0 0); animation: draw-underline 0.45s 0.2s var(--ease-out) forwards; }
@keyframes draw-underline { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .fb--right .sol-text::after { animation: none; clip-path: none; } }

/* As in the app: once checked, the answer stands; "Weiter" brings the next card. */
.quiz:has(input:checked) .option { pointer-events: none; }
.quiz:has(input:checked) .option:not(.is-right):not(:has(input:checked)) { opacity: 0.6; }
.card-2, .deck-next { display: none; }
.deck:has(input[name="step"]:checked) .card-1 { display: none; }
.deck:has(input[name="step"]:checked) .card-2 { display: block; }
.quiz:has(.option input:checked) .deck-next { display: flex; }
.deck-next { position: relative; width: 100%; min-height: 52px; margin-top: var(--space-md); }
.deck-next input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.deck-next:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* DailyGoalHeader: "1 von 10 heute", counting first answers. */
.goal { position: absolute; top: calc(var(--pad) - 30px); left: 28px; display: flex; align-items: center; gap: var(--space-sm); width: 14rem; font-size: var(--text-xs); font-weight: 600; color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.goal-n { display: none; white-space: nowrap; }
.goal-bar { flex: 0 1 8rem; height: 6px; border-radius: 3px; background: var(--color-rule); overflow: hidden; }
.goal-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--color-ok); transition: width var(--dur-short) var(--ease-out); }
.deck:not(:has(input[name="q1"]:checked)) .goal-0,
.deck:has(input[name="q1"]:checked):not(:has(input[name="q2"]:checked)) .goal-1,
.deck:has(input[name="q2"]:checked) .goal-2 { display: inline; }
.deck:has(input[name="q1"]:checked) .goal-bar span { width: 10%; }
.deck:has(input[name="q2"]:checked) .goal-bar span { width: 20%; }

/* "Regel ansehen" opens the rule card as a sheet: the popover attribute, no script. */
.rule-sheet { width: min(36rem, calc(100vw - 2 * var(--space-md))); max-height: min(80vh, 44rem); margin: auto; padding: var(--space-lg) var(--space-xl) var(--space-xl); overflow: auto; border: 0; border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); box-shadow: var(--shadow-card), 0 24px 60px rgb(0 0 0 / 0.25); }
.rule-sheet::backdrop { background: rgb(20 24 22 / 0.4); }
/* RuleDetailView as a sheet: "Done" in the bar, then the index card (tab, title, diagram, points), "Examples", "Forms". */
.rule-sheet { --rule-surface: var(--color-artikel); padding: 0 var(--space-md) var(--space-xl); }
.rule-sheet:has(.card-tab--pronomen) { --rule-surface: var(--color-pronomen); }
.rule-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding-top: var(--space-2xs); background: var(--color-paper); }
.rule-bar button { min-height: 44px; padding: 0 var(--space-xs); border: 0; background: none; color: var(--color-accent); font: 600 var(--text-md)/1 var(--font-body); cursor: pointer; }
.rule-bar button:focus-visible { outline: 2px solid var(--color-focus); border-radius: 4px; }
.rule-tab-wrap .card-tab { margin-left: 28px; }
.card-tab--artikel { background: var(--color-artikel); }
.rule-card { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-card); }
.rule-card h2 { font: 600 1.375rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.rule-diagrams { display: grid; gap: 18px; padding: 14px; border-radius: var(--radius-control); background: var(--color-paper); }
.rule-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rule-points li { display: flex; gap: 10px; align-items: baseline; font-size: var(--text-md); line-height: 1.4; }
.rp-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--rule-surface); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--color-ink-2) 40%, transparent); }
.rule-sec { margin-top: 28px; }
.rule-sec h3 { margin-bottom: 12px; font: 600 var(--text-md)/1.3 var(--font-body); color: var(--color-ink); }
.rule-examples { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rule-examples li { display: flex; gap: 12px; }
.rx-bar { flex: none; width: 5px; border-radius: 99px; background: var(--rule-surface); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--color-ink-2) 40%, transparent); }
.rx-de { display: block; font-size: var(--text-md); line-height: 1.4; }
.rx-tr { display: block; font: italic 1rem/1.35 var(--font-body); color: var(--color-ink-2); }
/* Rule diagrams (RuleDiagrams.swift). */
.rd-groups { display: grid; gap: 12px; }
.rd-group { display: flex; gap: 8px; align-items: flex-start; }
.rd-label { flex: none; width: 84px; padding-top: 7px; font: 600 var(--text-xs)/1.2 var(--font-body); }
.rd-label--dativ { color: var(--color-dativ-ink); }
.rd-words { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-w { padding: 4px 10px; border-radius: 999px; font: 500 var(--text-md)/1.3 var(--font-body); }
.rd-w--dativ { background: var(--color-dativ-fill); color: var(--color-dativ-ink); }
.rd-place { display: flex; gap: 16px; align-items: flex-start; }
.rd-panel { display: grid; flex: 1; gap: 8px; min-width: 0; }
.rd-scene { width: 100%; max-width: 132px; height: auto; }
.sc-table { fill: var(--color-ink-2); }
.sc-book { stroke-width: 1.5; }
.rd-scene--dativ .sc-book { fill: var(--color-dativ-fill); stroke: var(--color-dativ-ink); }
.rd-scene--akkusativ .sc-book { fill: var(--color-akk-fill); stroke: var(--color-akk-ink); }
.sc-ghost { fill: none; stroke: var(--color-ink-2); stroke-width: 1.2; stroke-dasharray: 3 2; }
.sc-path { fill: none; stroke: var(--color-akk-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sc-dash { stroke-dasharray: 3 3; }
.rd-q { display: grid; gap: 4px; }
.rd-qh { font: 600 var(--text-md)/1.3 var(--font-body); }
.rd-tag { justify-self: start; padding: 5px 10px; border-radius: 999px; font: 500 var(--text-xs)/1.2 var(--font-body); color: var(--color-ink); }
.rd-tag--dativ { background: var(--color-dativ-fill); }
.rd-tag--akkusativ { background: var(--color-akk-fill); }
.rd-sent { font-size: 1rem; line-height: 1.35; }
.rd-m { font-weight: 700; }
.rd-m--dativ { color: var(--color-dativ-ink); }
.rd-m--akkusativ { color: var(--color-akk-ink); }
.rd-m--pron { padding: 0 2px; border-radius: 5px; background: var(--color-pronomen); color: var(--color-ink); }
.rd-builds { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); gap: 10px; align-items: baseline; }
.rd-src { font-size: var(--text-md); color: var(--color-ink-2); }
.rd-to { font-size: var(--text-lg); }
.rd-arrow { align-self: center; width: 14px; height: 14px; fill: none; stroke: var(--color-ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* FormTable: a grid of cells with a hairline border, 44 pt high. */
.ft { display: grid; grid-template-columns: max-content repeat(3, minmax(0, 1fr)); gap: 6px; align-items: center; }
.ft-h { font: 600 var(--text-xs)/1.2 var(--font-body); color: var(--color-ink-2); }
.ft-r { font: 600 var(--text-xs)/1.2 var(--font-body); color: var(--color-ink); padding-right: 4px; }
.ft-c { display: flex; align-items: center; min-height: 44px; padding: 0 8px; border: 1px solid var(--color-rule); border-radius: 10px; background: var(--color-card); font-size: 1rem; }
@media (max-width: 40rem) {
    .rule-sheet { width: 100%; max-width: none; max-height: 85vh; margin: auto 0 0; padding-inline: var(--space-md); border-radius: var(--radius-card) var(--radius-card) 0 0; }
}

/* The next cards of the session wait behind this one, as in the app icon:
   verbs in sage, pronouns in rose. */
.hero-card::before, .hero-card::after { content: ""; position: absolute; inset: calc(var(--pad) + 26px) 0 0; z-index: -1; border-radius: var(--radius-card); }
.hero-card::before { background: var(--color-verben); transform: rotate(-5deg) translate(-14px, 10px); }
.hero-card::after { background: var(--color-pronomen); transform: rotate(3deg) translate(12px, 18px); }
.hero-card { isolation: isolate; }

/* Klammi, clipped to the card's corner. The app draws him in one stroke on launch. */
.klammi { position: absolute; top: -8px; right: 40px; z-index: var(--z-raised); width: 60px; height: 140px; rotate: 8deg; transform-origin: 50% 100%; overflow: visible; }
.klammi-line { fill: none; stroke: var(--color-seal); stroke-width: 8.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: klammi-draw 1.1s var(--ease-in-out) 0.2s backwards; }
.klammi-eye { fill: var(--color-ink); animation: klammi-eyes 0.3s var(--ease-out) 1.25s backwards; transform-box: fill-box; transform-origin: center; }
.hero-card:has(.card-1 .is-right input:checked) .klammi { animation: klammi-nod 0.6s var(--ease-in-out); }
@keyframes klammi-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes klammi-eyes { from { opacity: 0; transform: scaleY(0.15); } to { opacity: 1; transform: none; } }
@keyframes klammi-nod { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-9deg); } 65% { transform: rotate(4deg); } }

@media (prefers-reduced-motion: reduce) {
    .klammi-line, .klammi-eye, .hero-card:has(.card-1 .is-right input:checked) .klammi { animation: none; }
    .btn, .store, .option { transition: background-color var(--dur-short) linear; }
    .store:hover, .store:active, .btn:active, .option:active { transform: none; }
}

@media (max-width: 60rem) {
    .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; row-gap: var(--space-xl); padding-block: var(--space-md) var(--space-2xl); }
    .hero-text, .hero-card { grid-column: 1; }
    .hero-card { max-width: 30rem; --pad: var(--space-lg); }
    .klammi { right: 20px; width: 48px; height: 112px; }
    .hero .stores { margin-top: var(--space-lg); }
    .hero-text { padding-top: 0; }
}

/* ---------- Sections ---------- */

.section-head h2 { font-size: var(--text-section); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; max-width: 22ch; }
.section-head p { margin-top: var(--space-md); max-width: 46ch; font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); }
/* Cut-outs from the app: only the card, the box or the widget, no frame and no
   CSS shadow (WebKit does not repaint a filtered image that loads lazily). */
.cut { margin: 0; }
.cut img { width: 100%; }
.cut figcaption, .widgets figcaption, .intervals figcaption { margin-top: var(--space-sm); max-width: 40ch; font-size: var(--text-sm); color: var(--color-ink-2); }

/* Chapters: the app's index-card tabs, each in its chapter colour. */
.chapters { padding-top: var(--section-gap); }
.switch { margin-top: var(--space-2xl); }
.tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2xs); margin: 0; padding: 0 0 0 28px; border: 0; min-width: 0; }
.tab, .panel { --surface: var(--color-verben); }
[data-chapter="artikel"] { --surface: var(--color-artikel); }
[data-chapter="pronomen"] { --surface: var(--color-pronomen); }
[data-chapter="adjektive"] { --surface: var(--color-adjektive); }
.tab { position: relative; flex-shrink: 0; padding: var(--space-xs) var(--space-lg) var(--space-sm); border-radius: var(--radius-tab) var(--radius-tab) 0 0; background: color-mix(in oklab, var(--surface) 55%, var(--color-paper)); color: var(--color-ink); font-weight: 600; white-space: nowrap; cursor: pointer; transform: translateY(4px); transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.tab:hover { background: color-mix(in oklab, var(--surface) 80%, var(--color-paper)); }
.tab:has(input:checked) { background: var(--surface); transform: none; }
.tab:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.tab:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
.panel { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--space-2xl); align-items: center; padding: var(--space-2xl); border-radius: var(--radius-card); background: var(--surface); }
.panel + .panel { margin-top: var(--space-lg); }
/* All four panels share one grid cell, so the section keeps its height when the
   chapter changes and the page never moves under the pointer. */
@supports selector(:has(*)) {
    .switch { display: grid; grid-template-columns: minmax(0, 1fr); }
    .panel { grid-row: 2; grid-column: 1; visibility: hidden; }
    .panel + .panel { margin-top: 0; }
    .switch:has(input[value="verben"]:checked) .panel[data-chapter="verben"],
    .switch:has(input[value="artikel"]:checked) .panel[data-chapter="artikel"],
    .switch:has(input[value="pronomen"]:checked) .panel[data-chapter="pronomen"],
    .switch:has(input[value="adjektive"]:checked) .panel[data-chapter="adjektive"] { visibility: visible; }
}
.screen { width: 300px; border-radius: var(--radius-screen); outline: 1px solid color-mix(in oklab, var(--color-ink) 12%, transparent); outline-offset: -1px; }
.panel-sentence { font: 400 clamp(2rem, 1.8vw + 1.1rem, 3rem)/1.15 var(--font-display); letter-spacing: -0.02em; max-width: 20ch; }
.panel-sentence b { font-weight: 600; }
.panel-translation { margin-top: var(--space-sm); font-size: var(--text-lg); }
/* The slice of the app's form table the sentence practises, the practised cell marked. */
.forms { margin-top: var(--space-xl); border-collapse: separate; border-spacing: var(--space-xs); margin-inline: calc(-1 * var(--space-xs)); font-size: var(--text-md); }
.forms caption { padding: 0 var(--space-xs) var(--space-xs); text-align: left; font-size: var(--text-sm); font-weight: 600; caption-side: top; }
.forms thead th { padding: 0 var(--space-sm); text-align: left; font-size: var(--text-xs); font-weight: 400; color: var(--color-ink-2); white-space: nowrap; }
.forms tbody th { padding-right: var(--space-xs); text-align: left; font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }
.forms thead td { background: none; }
.forms td { padding: var(--space-xs) var(--space-sm); border-radius: 10px; background: color-mix(in oklab, var(--color-card) 75%, transparent); white-space: nowrap; }
.forms td.is-practised { background: var(--color-card); outline: 2px solid var(--color-ink); outline-offset: -2px; }
.forms .short { display: none; }
.forms i { font-style: normal; font-weight: 600; }
.forms b { font-weight: 600; }
.panel-more { margin-top: var(--space-md); max-width: 52ch; font-size: var(--text-sm); }

/* Help: a tinted band with three cut-outs side by side, tops aligned. */
.help { margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); align-items: start; }
.help-head { grid-column: 1 / -1; }

/* Help cards: the hero's card pieces, live, in the three columns. No JavaScript: the case hint is a one-way radio next to
   the card, a tapped word is :focus (tabindex), the answers are the same radio/:has() pairs as the hero. */
.quiz:has(input[value="sie"]:checked) .fb[data-a="sie"],
.quiz:has(input[value="ihm"]:checked) .fb[data-a="ihm"],
.quiz:has(input[value="ihr"]:checked) .fb[data-a="ihr"],
.quiz:has(input[value="ihnen"]:checked) .fb[data-a="ihnen"] { display: grid; gap: var(--space-sm); }
.help-live { position: relative; }
.help-live .quiz { padding: 20px; }
.help-live .quiz-task { padding-right: 0; }
.help-live .quiz-sentence { font-size: 1.75rem; }
.help-live .option { font-size: var(--text-md); }
.help-live .feedback { margin-top: var(--space-md); }
.help-tab { line-height: 0; }
.help-tab .card-tab { line-height: 1.5; margin-left: 20px; }
.card-tab--pronomen { background: var(--color-pronomen); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.chips .chip { margin-top: 0; }
.chip--word { box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--color-ink) 35%, transparent); color: var(--color-ink); font-weight: 600; }
/* "Fall: ?" on request: dashed until tapped or answered, then the case chip itself. */
.chip--ask { cursor: pointer; border: 1px dashed color-mix(in oklch, var(--color-ink) 50%, transparent); color: var(--color-ink); }
.chip--ask .ask-a { display: none; }
.help-case:has(input[name="hint-case"]:checked) .chip--ask,
.help-case .quiz:has(.option input:checked) .chip--ask { border-color: transparent; background: var(--color-dativ-fill); color: var(--color-dativ-ink); cursor: default; }
.help-case:has(input[name="hint-case"]:checked) .ask-q,
.help-case .quiz:has(.option input:checked) .ask-q { display: none; }
.help-case:has(input[name="hint-case"]:checked) .ask-a,
.help-case .quiz:has(.option input:checked) .ask-a { display: inline; }
.help-case:has(input[name="hint-case"]:focus-visible) .chip--ask { outline: 2px solid var(--color-focus); outline-offset: 2px; }
/* A word with a meaning: faint dotted rule, tap for a small dark bubble above it. */
.gw { position: relative; cursor: pointer; text-decoration: underline dotted 2px color-mix(in oklch, var(--color-ink) 40%, transparent); text-underline-offset: 0.18em; border-radius: 4px; }
.gw:focus { outline: none; background: color-mix(in oklch, var(--color-ink) 10%, transparent); }
.gw:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.gb { position: absolute; z-index: var(--z-raised); bottom: calc(100% + 10px); left: 50%; display: grid; gap: 1px; width: max-content; max-width: 16rem; padding: 12px 16px; border-radius: 16px; background: var(--color-ink); color: var(--color-paper); font: 500 1rem/1.3 var(--font-body); letter-spacing: 0; font-style: normal; text-decoration: none; text-align: left; translate: -50% 0; opacity: 0; pointer-events: none; }
.gb::after { content: ""; position: absolute; top: 100%; left: 50%; translate: -50% 0; border: 7px solid transparent; border-top-color: var(--color-ink); }
.gb-w { font-weight: 600; }
.gb-m { opacity: 0.72; }
.gw:focus .gb { opacity: 1; }
.quiz:has(.option input:checked) .gw:focus .gb { opacity: 1; }
.help-gloss .quiz-sentence .gw:first-of-type .gb, .help-case .quiz-sentence .gw:first-of-type .gb { left: 0; translate: 0 0; }
.help-gloss .quiz-sentence .gw:first-of-type .gb::after, .help-case .quiz-sentence .gw:first-of-type .gb::after { left: 1.2em; }
.help-live .quiz-sentence .gw:last-of-type .gb { left: auto; right: 0; translate: 0 0; }
.help-live .quiz-sentence .gw:last-of-type .gb::after { left: auto; right: 1.2em; translate: 0 0; }
.fb-form .gb { left: 0; translate: 0 0; }
.fb-form .gb::after { left: 1.1em; translate: 0 0; }
.fb--right .gw--sol { text-decoration: none; }
@media (prefers-reduced-motion: no-preference) { .gb { transition: opacity var(--dur-micro) linear; } }

/* Study plans. */
.plans { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; padding-top: var(--section-gap); }
.plans-shot { grid-column: 1 / span 5; max-width: 440px; }
.plans-body { grid-column: 7 / span 6; }
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); margin-top: var(--space-2xl); }
.level h3 { padding-bottom: var(--space-xs); border-bottom: 2px solid var(--color-ink); font-size: var(--text-xl); font-weight: 600; }
.level dl { margin: 0; }
.level dl > div { margin-top: var(--space-md); }
.level dt { font-size: var(--text-sm); font-weight: 600; }
.level dd { margin: var(--space-2xs) 0 0; font-family: var(--font-display); font-size: var(--text-md); line-height: 1.4; }
.level dd b { font-weight: 600; }

/* Review intervals: a real diagram of ReviewScheduler, square-root scale. */
.progress { padding-top: var(--section-gap-l); }
.intervals { margin: var(--space-2xl) 0 0; }
.intervals ol { position: relative; height: 7rem; margin: 0 1.5ch 0 0.5ch; padding: 0; list-style: none; }
/* The axis is its own element, so it can draw itself on scroll. */
.intervals ol::before { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--color-ink); transform-origin: left; }
.intervals li { position: absolute; bottom: 0; left: var(--x); display: grid; justify-items: center; transform: translateX(-50%); }
.intervals li::after { content: ""; width: 2px; height: var(--space-md); background: var(--color-ink); }
.intervals .num { font: 600 clamp(2.25rem, 3.5vw + 0.5rem, 4.5rem)/1 var(--font-body); letter-spacing: -0.02em; }
.progress-shots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; margin-top: var(--space-3xl); }
.progress-today { grid-column: 1 / span 5; max-width: 420px; }
.widgets { grid-column: 7 / span 6; margin: 0; }
.widgets-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-lg); }
/* The Home Screen widgets, built like DeklinooWidget.swift at its point sizes
   (iPhone 17: small 164 x 164, medium 350 x 164, 16 pt margins, 22 pt corners). */
.w { position: relative; box-sizing: border-box; height: 164px; padding: var(--space-md); border-radius: 22px; overflow: hidden; color: var(--w-ink);
     background: repeating-linear-gradient(to bottom, transparent 0 25px, color-mix(in srgb, var(--w-line) 36%, transparent) 25px 26px), var(--w-paper);
     box-shadow: 0 0 0 1px var(--w-edge), var(--shadow-card); line-height: 1.2; }
.w--small { width: 164px; display: flex; flex-direction: column; gap: 10px; }
.w--medium { width: 350px; display: flex; align-items: flex-end; gap: var(--space-sm); }
.w-row { display: flex; align-items: flex-end; flex: 1; min-height: 0; }
.w-col { display: flex; flex-direction: column; align-items: flex-start; height: 100%; }
.w-fill { flex: 1; min-height: 4px; }
.w-main { display: flex; flex-direction: column; flex: 1; min-width: 0; height: 100%; }
.w-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); }
.w-headline { display: flex; align-items: baseline; gap: 6px; }
.w-count { font-family: var(--font-display); font-weight: 600; color: var(--w-ink-soft); letter-spacing: -0.01em; white-space: nowrap; }
.w-count b { color: var(--w-ink); font-weight: 600; }
.w-count--s { font-size: 19px; } .w-count--s b { font-size: 38px; }
.w-count--m { font-size: 17px; } .w-count--m b { font-size: 34px; }
.w-today { font-size: 13px; font-weight: 500; color: var(--w-ink-soft); }
.w-headline .w-today { font-size: 15px; }
.w-pill { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 9px; border-radius: 13px; background: var(--w-apricot); font: 700 15px/1 var(--font-display); color: var(--w-ink); }
.w-flame { width: 11px; height: 15px; }
.w-flame-outer { fill: var(--w-terracotta); }
.w-flame-inner { fill: var(--w-apricot); }
.w-status { margin-top: var(--space-3xs); font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-week { display: flex; margin-top: auto; }
.w-day { display: flex; flex: 1; flex-direction: column; align-items: center; gap: var(--space-2xs); font-size: 11px; font-weight: 500; color: var(--w-ink-soft); }
.w-day.is-today { color: var(--w-ink); font-weight: 700; }
.w-dot { position: relative; width: 22px; height: 22px; border-radius: 50%; }
.w-dot svg { width: 22px; height: 22px; }
.w-dot--reached { background: var(--w-primary); }
.w-check { fill: none; stroke: var(--w-on-primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.w-dot--practised { background: color-mix(in srgb, var(--w-primary) 18%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--w-primary) 70%, transparent); }
.w-dot--practised::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--w-primary); }
.w-dot--later { border: 1.5px dashed var(--w-line); }
.w-ring, .w-ring-fill { fill: none; stroke-width: 3; }
.w-ring { stroke: var(--w-line); }
.w-ring-fill { stroke: var(--w-primary); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.w-klammi { flex-shrink: 0; overflow: visible; }
.w--small .w-row { justify-content: space-between; } /* the widget's Spacer: Klammi stands at the right edge */
.w--small .w-klammi { width: 50px; height: 108px; margin-right: var(--space-xs); }
.w--medium .w-klammi { width: 52px; height: 112px; margin-inline: 10px; }
.w-clip { fill: none; stroke: var(--w-terracotta); stroke-width: 8.64; stroke-linecap: round; stroke-linejoin: round; }
.w-eye { fill: var(--w-ink); }
.w-mouth { fill: none; stroke: var(--w-ink); stroke-width: 2.6; stroke-linecap: round; }
.w-bar { display: block; height: 6px; border-radius: 3px; background: var(--w-line); }
.w-bar span { display: block; width: 90%; height: 100%; border-radius: 3px; background: var(--w-primary); }

/* Privacy: the app's ink as a band. */
.privacy { --color-focus: var(--color-band-ink); margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: var(--color-band); color: var(--color-band-ink); }
.privacy-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); }
.privacy h2 { grid-column: 1 / span 5; font-size: var(--text-section); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.privacy-facts { grid-column: 7 / span 6; display: grid; gap: var(--space-md); max-width: 36rem; margin: 0; padding-top: var(--space-md); border-top: 1px solid var(--color-band-rule); font-size: var(--text-lg); color: var(--color-band-ink-2); }
.privacy-facts p { margin: 0; }
.privacy-link { grid-column: 7 / span 6; justify-self: start; color: var(--color-band-ink); font-weight: 600; text-underline-offset: 0.2em; border-radius: 4px; transition: color var(--dur-short) var(--ease-out); }
.privacy-link:hover { text-decoration-thickness: 2px; }
.privacy-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }

/* Free and Premium. */
.premium { padding-top: var(--section-gap); }
/* Pricing is centred as a block: heading, the two plans and the notes share one axis. */
.premium .section-head { text-align: center; }
.premium .section-head h2, .premium .section-head p { margin-inline: auto; }
.premium .pricing, .premium .plan-support, .premium .tier-note { margin-inline: auto; text-align: center; }
.premium .plan { text-align: left; }
.ticks { margin: var(--space-lg) 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: var(--space-xs) 0 var(--space-xs) var(--space-xl); border-top: 1px solid var(--color-rule); }
.ticks li::before { content: ""; position: absolute; left: var(--space-2xs); top: 0.9em; width: 12px; height: 6px; border-left: 2px solid var(--color-ok); border-bottom: 2px solid var(--color-ok); transform: rotate(-45deg); }
/* Reference: quiet pricing cards, one separator, no row rules or oversized prices. */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); align-items: stretch; max-width: 58rem; margin-top: var(--space-xl); }
.plan { display: flex; flex-direction: column; min-width: 0; padding: var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: var(--color-card); }
.plan--premium { background: linear-gradient(165deg, var(--color-card) 60%, var(--color-verben)); }
.plan h3 { font: 400 var(--text-lg)/1.4 var(--font-body); }
.plan-price { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }
.plan-price .num { margin-right: 0.15em; font: 600 var(--text-3xl)/1.2 var(--font-body); letter-spacing: -0.03em; color: var(--color-ink); }
.plan-sub { margin-top: var(--space-xs); min-height: 2.8em; font-size: var(--text-sm); color: var(--color-ink-2); }
.plan-lead { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-ink-2); }
.plan .ticks { margin: var(--space-sm) 0 var(--space-lg); font-size: var(--text-sm); }
.plan .ticks li { padding: var(--space-2xs) 0 var(--space-2xs) var(--space-lg); border: 0; }
.plan .ticks li::before { left: 2px; top: 0.8em; width: 9px; height: 5px; }
.plan-action { align-self: flex-start; margin-top: auto; font-size: var(--text-sm); border-radius: 8px; }
.plan-support { max-width: 58rem; margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-ink-2); }
.tier-note { max-width: 58rem; margin-top: var(--space-xs); font-size: var(--text-xs); color: var(--color-ink-2); }

/* Close: the download again beside the dictionary and a rule card. */
.close { margin-top: var(--section-gap); padding-block: var(--section-gap-s); border-top: 1px solid var(--color-rule); }
.close-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: start; }
.close-body { grid-column: 1 / span 4; align-self: center; }
.close-body h2 { font-size: var(--text-section); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.close-body > p { margin-top: var(--space-md); font-size: var(--text-lead); color: var(--color-ink-2); }
.close-body .stores { margin-top: var(--space-xl); }
.close-word { grid-column: 5 / span 4; }
.close-rule { grid-column: 9 / span 4; }

/* Footer. */
.footer { padding-block: var(--space-2xl); background: var(--color-paper-2); color: var(--color-ink); }
.footer-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-lg) var(--space-2xl); align-items: center; }
.footer .wordmark { margin-right: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-xs) var(--space-lg); }
.footer-links a { color: var(--color-ink); text-underline-offset: 0.2em; border-radius: 4px; }
.footer-links a:hover { text-decoration-thickness: 2px; }
.footer-links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.footer-made { grid-column: 1 / -1; padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.footer-legal { grid-column: 1 / -1; max-width: 75ch; font-size: var(--text-xs); color: var(--color-ink-2); }

@media (prefers-reduced-motion: reduce) {
    .tab { transition: background-color var(--dur-short) linear; transform: none; }
}

@media (max-width: 24rem) {
    .w--medium { zoom: 0.86; }
    /* All four chapter tabs stay on one line down to 320 px. */
    .tabs { flex-wrap: nowrap; }
    .tab { min-width: 0; padding-inline: var(--space-2xs); font-size: var(--text-xs); }
}

@media (max-width: 60rem) {
    .help-grid { grid-template-columns: minmax(0, 1fr); }
    .help-main, .help-case, .help-gloss { max-width: 26rem; }
    .plans, .progress-shots, .privacy-grid, .pricing, .close-grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
    .help-head, .help-main, .help-case, .help-gloss, .plans-shot, .plans-body, .progress-today, .widgets,
    .privacy h2, .privacy-facts, .privacy-link, .close-body, .close-word, .close-rule { grid-column: 1; grid-row: auto; margin-top: 0; }
    .tabs { padding-left: 0; }
    .tab { flex: 1 1 auto; padding-inline: var(--space-xs); font-size: var(--text-sm); text-align: center; }
    .close-word, .close-rule { max-width: 26rem; }
    .panel { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); padding: var(--space-xl) var(--space-lg); }
    /* Here the tabs run the full width, from corner to corner: square top corners, so no tab
       pokes out past a rounded corner. */
    .panel { border-top-left-radius: 0; border-top-right-radius: 0; }
    .screen { width: min(260px, 100%); }
    .levels { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); margin-top: var(--space-xl); }
    .forms { border-spacing: var(--space-2xs); margin-inline: calc(-1 * var(--space-2xs)); font-size: var(--text-sm); }
    .forms td { padding: var(--space-2xs) var(--space-xs); }
    .forms thead th { padding: 0 var(--space-xs); }
    /* Narrow screens show the endings alone: "-em" instead of "offenem". */
    .forms .stem { display: none; }
    /* Hidden visually only, so screen readers still hear the full name. */
    .forms .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .forms .short { display: inline; }
    .forms .stem + i::before { content: "-"; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-links { justify-content: flex-start; }
}

/* The screenshots are light. In dark mode the ones with loose text (headings
   on the app's paper) sit on that paper, so the text stays readable. */
@media (prefers-color-scheme: dark) {
    .cut img.loose { padding: var(--space-md); border-radius: var(--radius-card); background: var(--color-shot-paper); }
    /* A dark-mode screenshot of the same screen needs no plate. */
    .cut img.loose.has-dark { padding: 0; background: none; }
}

/* ---------- Motion on scroll ---------- */

/* Like the app's cards, things rise into place as they come into view. The motion is
   tied to the scroll (no JavaScript), so it never lags behind the thumb, and it is done
   within the first 280 px of scrolling: nothing waits half-faded on screen. Without
   support (older browsers) or with Reduce Motion the page is simply there.
   Individual transform properties (translate, scale) leave existing transforms alone. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .section-head, .switch, .help .cut, .plans-shot, .level, .intervals li, .progress-today, .widgets .w,
        .widgets figcaption, .privacy h2, .privacy-facts, .privacy-link, .plan, .close-body, .close-word, .close-rule {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0px entry 280px;
        }
        /* Neighbours in a row follow one another, a beat apart. */
        :is(.help .cut, .level, .widgets .w, .plan):nth-of-type(2), .close-rule { animation-range: entry 50px entry 330px; }
        :is(.help .cut, .level):nth-of-type(3) { animation-range: entry 100px entry 380px; }
        /* The phone screens in the chapters settle from slightly smaller. */
        .switch .screen { animation: settle linear both; animation-timeline: view(); animation-range: entry 0px entry 360px; }
        /* The review axis draws itself, then each interval drops onto it in turn. */
        .intervals ol::before { animation: draw linear both; animation-timeline: --axis; animation-range: entry 40px entry 400px; }
        .intervals ol { view-timeline: --axis block; }
        .intervals li { animation-name: drop; animation-timeline: --axis; }
        .intervals li:nth-child(1) { animation-range: entry 80px entry 240px; }
        .intervals li:nth-child(2) { animation-range: entry 130px entry 290px; }
        .intervals li:nth-child(3) { animation-range: entry 180px entry 340px; }
        .intervals li:nth-child(4) { animation-range: entry 230px entry 390px; }
        .intervals li:nth-child(5) { animation-range: entry 280px entry 440px; }
    }
}
/* Eased in the keyframe, so the scroll position still drives it one to one. */
@keyframes rise { from { opacity: 0; translate: 0 36px; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); } to { opacity: 1; translate: none; } }
@keyframes settle { from { opacity: 0.4; scale: 0.94; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); } to { opacity: 1; scale: none; } }
@keyframes draw { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes drop { from { opacity: 0; translate: 0 -14px; animation-timing-function: cubic-bezier(0.3, 1.4, 0.5, 1); } to { opacity: 1; translate: none; } }

/* On load the hero card is dealt from the stack behind it, as practice starts in the app. */
@media (prefers-reduced-motion: no-preference) {
    .hero-card { animation: deal 0.7s var(--ease-out) 0.1s backwards; }
    .hero-card::before { animation: fan-left 0.8s var(--ease-out) 0.25s backwards; }
    .hero-card::after { animation: fan-right 0.8s var(--ease-out) 0.25s backwards; }
    .hero-text { animation: rise 0.7s var(--ease-out) backwards; }
}
@keyframes deal { from { opacity: 0; translate: 0 28px; rotate: 2deg; } to { opacity: 1; translate: none; rotate: none; } }
@keyframes fan-left { from { transform: none; } }
@keyframes fan-right { from { transform: none; } }

