/* Olimpia's app palette. System fonts, local assets, no scripts or third-party requests. */
:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --surface: #fff;
  --text: #141b2d;
  --muted: #5b6170;
  --line: #d7dce3;
  --blue: #004aad;
  --blue-dark: #003a88;
  --blue-soft: #e6eefb;
  --visual: #e7eef9;
  --good: #227249;
  --good-soft: #edf7ef;
  --bad: #a53434;
  --bad-soft: #fff1ee;
  --navy: #141b2d;
  --shadow: 0 8px 24px #141b2d14;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--text); background: var(--surface); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 4px; }
a, summary, label { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 4px; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 20px; }
h1, h2, h3 { margin: 0 0 22px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(48px, 5.2vw, 78px); }
h2 { font-size: clamp(34px, 3.5vw, 49px); }
h3 { font-size: 25px; letter-spacing: -.03em; }
h1 em, h2 em, h3 em { font: inherit; color: inherit; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }
.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 80px; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .12em; margin-bottom: 24px; }
.section-lead { font-size: 17px; color: var(--muted); max-width: 390px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 44px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .section-lead { margin-bottom: 3px; max-width: 330px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 50px; padding: 12px 21px; border-radius: 4px; border: 1px solid transparent; text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.4; transition: background .15s; }
.btn:hover { text-decoration: underline; }
.btn-blue { background: #004aad; color: #fff; }
.btn-blue:hover { background: #003a88; }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); }
.text-link { display: inline-flex; gap: 14px; align-items: center; font-size: 14px; font-weight: 600; text-decoration: none; padding-block: 12px; }
.text-link:hover { text-decoration: underline; }
.button-arrow { font-size: 20px; }
.skip-link { position: fixed; left: 16px; top: -100px; padding: 12px 20px; background: var(--surface); color: var(--blue); z-index: 100; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { height: 88px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; color: var(--blue); font-size: 29px; font-weight: 750; letter-spacing: -.06em; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand img { width: 38px; height: 38px; margin-right: 9px; }
.brand-dot { color: var(--text); }
.nav { display: flex; gap: 28px; margin-inline: auto; }
.nav a, .header-teacher { color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; }
.nav a:hover, .header-teacher:hover { color: var(--blue); }
.header-teacher { display: inline-flex; gap: 12px; }
.header-cta { font-size: 12px; min-height: 43px; padding: 10px 18px; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { display: flex; align-items: center; gap: 18px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; }
.menu nav { position: absolute; right: 0; top: 58px; width: 250px; display: grid; padding: 12px; border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); background: var(--surface); }
.menu nav a { color: var(--text); padding: 12px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.menu nav a:hover { background: var(--blue-soft); }
.hero { padding-block: 76px 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 80px; }
.hero-copy { padding-block: 24px; }
.hero h1 { font-size: clamp(52px, 5.5vw, 80px); line-height: 1.02; margin-bottom: 28px; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.8; max-width: 480px; }
.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.hero-benefits { display: flex; gap: 20px; padding: 0; margin: 30px 0 0; list-style: none; color: var(--muted); font-size: 11px; }
.hero-benefits li + li { border-left: 1px solid var(--line); padding-left: 16px; }
.card-label { font-size: 11px; letter-spacing: .04em; font-weight: 600; }
.numbers-section { border-block: 1px solid var(--line); }
.numbers { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr .8fr; align-items: center; padding-block: 30px; gap: 26px; }
.numbers > div + div { border-left: 1px solid var(--line); padding-left: 28px; }
.numbers strong { display: block; font-size: 34px; font-weight: 500; letter-spacing: -.05em; line-height: 1.2; }
.numbers strong span { color: var(--blue); }
.numbers p { font-size: 11px; color: var(--muted); margin: 7px 0 0; }
.numbers .numbers-intro { font-size: 12px; color: var(--muted); line-height: 1.8; }
.numbers-intro strong { font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: 0; line-height: 1.8; }
.study-paths { border-top: 2px solid var(--text); }
.path-card { border-bottom: 1px solid var(--line); }
.path-card:hover, .path-card[open] { background: var(--bg); }
.path-card summary { display: grid; grid-template-columns: 150px 1fr 1.2fr 140px; align-items: center; gap: 24px; padding: 27px 12px; }
.path-category { color: var(--muted); font-size: 11px; letter-spacing: .03em; }
.path-title { font-family: Georgia, serif; font-size: 25px; line-height: 1.25; }
.path-description { color: var(--muted); font-size: 14px; }
.path-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--blue); }
.path-bottom > span { display: grid; place-items: center; width: 24px; height: 24px; flex: none; font-size: 20px; line-height: 1; transition: transform .2s; }
.path-card[open] .path-bottom > span { transform: rotate(45deg); }
.path-content { padding: 0 24px 24px 186px; font-size: 15px; max-width: 900px; }
.path-content p { border-top: 1px solid var(--line); padding-top: 18px; }

.learning-section { background: var(--bg); }
.steps { list-style: none; padding: 0; margin: 50px 0 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.step { padding-top: 20px; border-top: 1px solid var(--line); }
.step-number { font-size: 12px; color: var(--blue); display: block; margin-bottom: 22px; }
.step h3 { font-size: 21px; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 14px; max-width: 340px; margin: 0; }
.quiz-demo { padding: 30px 0; border-block: 2px solid var(--blue); }
.demo-top { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: .04em; color: var(--muted); margin-bottom: 25px; }
.demo-options { padding: 0; margin: 0; border: 0; min-width: 0; }
.demo-options legend { font-family: Georgia, serif; font-size: 30px; letter-spacing: -.035em; font-weight: 400; line-height: 1.25; padding: 0; margin-bottom: 26px; }
.answer { position: relative; margin-bottom: 9px; }
.answer input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.answer label { display: flex; align-items: center; gap: 12px; border-radius: 3px; padding: 15px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; cursor: pointer; }
.answer label:hover { border-color: var(--blue); }
.answer-letter { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 50%; font-size: 10px; flex: none; }
.answer-check { display: none; margin-left: auto; }
.answer input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 3px; }
.answer input:checked + label { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.right-answer input:checked + label { border-color: var(--good); background: var(--good-soft); color: var(--good); }
.right-answer input:checked + label .answer-check { display: inline; }
.answer-feedback { display: none; font-size: 14px; line-height: 1.65; padding: 12px 8px 5px; margin: 0; color: var(--bad); }
.answer input:checked ~ .answer-feedback { display: block; }
.right-answer .answer-feedback { color: var(--good); }
.answer-feedback strong { display: block; margin-bottom: 4px; }
.demo-hint { font-size: 12px; color: var(--muted); margin: 17px 0 0; }
.feature-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px 64px; }
.feature { padding: 26px 0 0; border-top: 1px solid var(--line); }
.feature-index { display: block; font-size: 10px; letter-spacing: .08em; color: var(--blue); font-weight: 600; margin-bottom: 18px; }
.feature h3 { font-size: 29px; margin-bottom: 16px; }
.feature p { font-size: 14px; color: var(--muted); max-width: 360px; }
.feature-flashcards { grid-row: span 2; }
.flashcard { margin: 30px 0 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--blue); }
.flashcard summary { display: block; }
.flashcard .card-label { display: block; color: var(--blue); }
.flashcard-question { display: block; font-family: Georgia, serif; font-size: 23px; line-height: 1.4; margin: 23px 0; max-width: 320px; }
.flashcard-prompt { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--blue); }
.flashcard-prompt > span { font-size: 22px; }
.flashcard-answer { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 20px; }
.flashcard-answer strong { font-size: 28px; color: var(--blue); font-family: Georgia, serif; font-weight: 400; }
.flashcard-answer p { margin: 5px 0 0; }



.feature-progress, .feature-own { display: flex; flex-direction: column; }
.progress-example { margin-top: auto; padding-top: 18px; max-width: 420px; }
.progress-example > div:not(.example-track) { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.example-track { height: 8px; background: var(--line); border-radius: 5px; margin: 7px 0 17px; }
.example-track span { display: block; height: 100%; border-radius: inherit; }
.bar-first { width: 60%; background: #9dbbf0; }
.bar-next { width: 90%; background: #004aad; }
.progress-example small { font-size: 9px; color: var(--muted); }
.own-example { display: flex; align-items: center; gap: 15px; padding: 16px 0; border-top: 1px solid var(--line); margin-top: 16px; }
.own-example > span { font-size: 30px; color: var(--blue); }
.own-example > span:last-child { margin-left: auto; font-size: 22px; }
.own-example strong { display: block; font-size: 14px; font-weight: 600; }
.own-example small { display: block; font-size: 11px; color: var(--muted); }
.reminder-strip { display: flex; align-items: center; gap: 22px; padding: 28px 0 0; }
.reminder-strip h3 { font-size: 16px; letter-spacing: -.015em; margin-bottom: 5px; }
.reminder-strip p { font-size: 12px; color: var(--muted); margin: 0; }
.teacher-section { border-bottom: 1px solid var(--line); }
.teacher-layout, .story-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.teacher-layout .section-lead { margin: 24px 0 30px; }
.availability-note { font-size: 10px; color: var(--muted); margin: 15px 0 0; }
.teacher-preview { padding: 30px 0 30px 36px; border-left: 2px solid var(--blue); }
.preview-heading { display: flex; align-items: center; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.preview-title { font-size: 20px; letter-spacing: -.03em; line-height: 1.35; margin: 24px 0; }
.teacher-workflow { list-style: none; padding: 0; margin: 0; }
.teacher-workflow li { display: flex; gap: 15px; align-items: start; margin-top: 22px; }
.teacher-workflow li > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 11px; flex: none; }
.teacher-workflow strong { display: block; font-size: 13px; }
.teacher-workflow p { color: var(--muted); font-size: 11px; margin: 3px 0 0; }
.story-layout { align-items: start; }
.story-layout .section-lead { max-width: 440px; margin-top: 26px; }
.story-layout > div > p:not(.eyebrow):not(.section-lead) { color: var(--muted); font-size: 14px; max-width: 440px; }
.story-note { border-top: 2px solid var(--blue); padding: 28px 0 0; }
.quote-mark { display: block; font-family: Georgia, serif; font-size: 70px; line-height: 1; color: var(--blue); height: 50px; }
blockquote { margin: 0; font-family: Georgia, serif; font-size: 22px; line-height: 1.5; letter-spacing: -.025em; }
.quote-author { display: flex; align-items: center; gap: 13px; padding-block: 24px 28px; }
.author-monogram { width: 39px; height: 39px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 11px; }
.quote-author strong { display: block; font-size: 12px; }
.quote-author div > span { display: block; color: var(--muted); font-size: 10px; }
.award-line { display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 15px; }
.award-line > span { color: var(--blue); font-size: 35px; line-height: 1; }
.award-line .trophy { display: block; width: 32px; height: 32px; fill: currentColor; }
.eyebrow.motto { letter-spacing: .06em; }
.eyebrow.motto span { color: var(--muted); }
.award-line strong { display: block; font-size: 13px; }
.award-line div > span { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.story-history { border-block: 1px solid var(--line); margin-top: 48px; }
.story-history > summary { display: flex; justify-content: space-between; align-items: center; padding-block: 22px; font-size: 14px; font-weight: 500; }
.story-history > summary span { color: var(--blue); font-size: 24px; }
.timeline { list-style: none; padding: 12px 0 10px; margin: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 40px; padding: 15px 0; }
.timeline time { font-size: 12px; color: var(--blue); font-weight: 600; }
.timeline p { font-size: 14px; color: var(--muted); margin: 0; }
.press-section { padding-top: 0; }
.press { border-top: 1px solid var(--line); }
.press a { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 32px; border-bottom: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: 14px; text-decoration: none; }

.press a:hover { background: var(--bg); border-color: var(--blue); }
.press small { color: var(--text); font-size: 18px; min-width: 250px; letter-spacing: -.02em; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.press small::after { content: '↗'; font-size: 21px; color: var(--blue); }
.faq-section { border-top: 1px solid var(--line); background: var(--bg); }
.faq-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.faq-layout > div > .section-lead { margin-top: 24px; max-width: 300px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 14px; font-weight: 600; padding: 22px 0; }
.faq summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--blue); flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); font-size: 14px; margin: 0; padding: 0 24px 22px 0; }
.download-section { padding-block: 64px; }
.download-panel { padding: 40px 0; border-top: 2px solid var(--blue); text-align: left; }
.download-panel .eyebrow { color: var(--blue); }
.download-panel h2 { max-width: 700px; }

.download-panel > p:not(.eyebrow) { color: var(--muted); font-size: 16px; }
.store-links { display: flex; gap: 12px; justify-content: start; flex-wrap: wrap; margin: 30px 0 22px; }
.store-badge { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 4px; padding: 12px 18px; text-align: left; }
.store-badge small { display: block; font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.store-badge strong { font-size: 18px; font-weight: 500; line-height: 1.2; }
.store-badge svg { width: 22px; height: 24px; fill: currentColor; }
.download-social { display: inline-block; padding: 10px 0; color: var(--blue); font-size: 14px; }
.download-social span { margin-left: 8px; }
.site-footer { border-top: 1px solid var(--line); padding: 45px 0 22px; }
.footer-top { display: flex; align-items: start; justify-content: space-between; gap: 45px; margin-bottom: 45px; }
.footer-top p { font-size: 11px; color: var(--muted); margin: 18px 0 0; }
.footer-top nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 60px; }
.footer-top nav a { color: var(--muted); font-size: 12px; text-decoration: none; padding-block: 4px; }
.footer-top nav a:hover { color: var(--blue); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 23px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
.footer-bottom a { text-decoration: none; }
/* Existing privacy and teacher holding pages share the new visual system. */
.page-hero { background: var(--blue-soft); padding: 65px 0; }
.page-hero h1 { font-size: clamp(35px, 4vw, 56px); margin-bottom: 20px; }
.page-hero .lead { max-width: 620px; margin: 0; }
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.page-body { padding: 60px 0 90px; }
.doc { max-width: 820px; padding: 35px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.doc h2 { font-size: 26px; }
.doc h2:not(:first-child) { margin-top: 35px; }
.doc p, .doc li { color: var(--muted); font-size: 15px; }
.doc p:last-child { margin-bottom: 0; }
/* Legal pages (regulamin, prywatnosc — scripts/legal-pages.py) */
.doc + .doc { margin-top: 24px; }
.toc ol { columns: 2; column-gap: 28px; padding-left: 0; list-style: none; margin: 0; }
.toc li { padding-block: 3px; break-inside: avoid; }
.toc a { color: var(--blue); text-decoration: none; font-size: 15px; }
.toc a:hover { text-decoration: underline; }
.legal h2 { font-size: 21px; scroll-margin-top: 90px; }
.legal h3 { font-size: 16px; margin: 22px 0 8px; }
.legal ol { padding-left: 26px; margin: 0 0 14px; }
.legal ol > li { padding-block: 4px; }
.legal ol > li::marker { color: var(--blue); font-weight: 600; }
.legal .sub { list-style: circle; padding-left: 22px; margin: 6px 0 2px; }
.legal .sub li { padding-block: 2px; }
.legal a { overflow-wrap: anywhere; }
.ticks { padding-left: 20px; margin-bottom: 22px; }
.ticks li { padding-block: 5px; }
.ticks li::marker { color: var(--blue); }
.soon-tag { display: inline-block; vertical-align: middle; padding: 4px 9px; font-size: 10px; letter-spacing: .06em; border-radius: 3px; color: var(--blue); background: var(--blue-soft); }
.back { margin: 30px 0 0; }
.page-body .steps { margin: 36px 0; }
.muted { color: var(--muted); }

/* The question is the first product experience, presented like a school exercise. */
.hero-exercise { min-width: 0; scroll-margin-top: 110px; }
.exercise-heading { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.exercise-caption { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.feature-own { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.feature-own .feature-index { grid-column: 1 / -1; }
.feature-own p { grid-column: 1; max-width: 510px; }
.feature-own .own-example { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
.reminder-strip { border-top: 1px solid var(--line); margin-top: 36px; }
.preview-heading .mini-chip { margin-left: auto; color: var(--muted); font-size: 12px; }
/* Dark colours: the device's setting unless the switch chose otherwise
   (data-theme on <html>, set by theme.js). */
/* 2026-10-19: claim, lektury, progress list, personalised reminders */
.claim { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 13px; border: 1px solid var(--blue); border-radius: 4px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.lektury-facts { display: flex; flex-wrap: wrap; gap: 14px 48px; margin: 0 0 30px; font-size: 12px; color: var(--muted); }
.lektury-facts strong { display: block; font-size: 30px; font-weight: 500; letter-spacing: -.04em; color: var(--text); line-height: 1.2; }
.lektury-list { columns: 3 230px; column-gap: 44px; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.lektury-list li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.lektury-list li span { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.feature-list { list-style: none; margin: 4px 0 18px; padding: 0; font-size: 13px; color: var(--muted); }
.feature-list li { padding: 4px 0 4px 22px; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.reminder-strip { flex-wrap: wrap; justify-content: space-between; }
.reminder-example { margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-size: 13px; color: var(--text); }
.reminder-example span { display: block; font-size: 10px; letter-spacing: .06em; color: var(--blue); font-weight: 600; margin-bottom: 3px; }

/* App Store #1 (index.html) */
.rank-section { border-bottom: 1px solid var(--line); }
.rank-layout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; padding-block: 56px; }
.rank-layout h2 { margin-bottom: 14px; }
.rank-shot { margin: 0; text-align: center; }
.rank-shot img { display: block; width: 240px; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 36, 90, .14); }
.rank-shot figcaption { margin-top: 12px; font-size: 11px; color: var(--muted); }
/* Photo carousel (carousel.js); without JavaScript a scrollable row */
.gallery-section { overflow-x: clip; }
.carousel { position: relative; }
.carousel-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 0 0 8px; }
.carousel-item { flex: 0 0 78%; scroll-snap-align: center; }
.carousel-item figure { margin: 0; }
.carousel-item img { display: block; width: 100%; height: auto; border-radius: 6px; }
.carousel-item figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }
.carousel-btn, .carousel-status { display: none; }
.carousel.is-ready .carousel-track { display: block; position: relative; overflow: visible; height: calc(min(56vw, 520px) + 46px); padding: 0; }
.carousel.is-ready .carousel-item { position: absolute; top: 0; left: 50%; width: min(64%, 600px); transform: translateX(-50%) scale(.7); opacity: 0; pointer-events: none; transition: transform .45s ease, opacity .45s ease; }
.carousel.is-ready .carousel-item img { height: min(56vw, 520px); object-fit: cover; }
/* Tall photos: keep the top (heads, a poster's title) instead of the middle. */
.carousel-item img.focus-top { object-position: center top; }
.carousel.is-ready .carousel-item figcaption { opacity: 0; transition: opacity .3s ease; }
.carousel.is-ready .carousel-item.is-active { transform: translateX(-50%) scale(1); opacity: 1; z-index: 3; pointer-events: auto; }
.carousel.is-ready .carousel-item.is-active figcaption { opacity: 1; }
.carousel.is-ready .carousel-item.is-prev { transform: translateX(-122%) scale(.78); opacity: .4; z-index: 2; pointer-events: auto; cursor: pointer; }
.carousel.is-ready .carousel-item.is-next { transform: translateX(22%) scale(.78); opacity: .4; z-index: 2; pointer-events: auto; cursor: pointer; }
.carousel.is-ready .carousel-btn { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: calc(min(56vw, 520px) / 2); transform: translateY(-50%); z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 20px; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.carousel.is-ready .carousel-btn:hover { border-color: var(--blue); color: var(--blue); }
.carousel.is-ready .carousel-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.carousel.is-ready .carousel-prev { left: 4%; }
.carousel.is-ready .carousel-next { right: 4%; }
.carousel.is-ready .carousel-status { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 800px) {
  .rank-layout { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; }
  .rank-shot img { width: 200px; margin: 0 auto; }
  .carousel.is-ready .carousel-item { width: 76%; }
  .carousel.is-ready .carousel-item img, .carousel.is-ready .carousel-track { height: auto; }
  .carousel.is-ready .carousel-item img { height: 64vw; }
  .carousel.is-ready .carousel-track { height: calc(64vw + 46px); }
  .carousel.is-ready .carousel-btn { top: 32vw; width: 40px; height: 40px; font-size: 17px; }
  .carousel.is-ready .carousel-prev { left: 0; }
  .carousel.is-ready .carousel-next { right: 0; }
  .carousel.is-ready .carousel-item.is-prev { transform: translateX(-130%) scale(.8); opacity: .35; }
  .carousel.is-ready .carousel-item.is-next { transform: translateX(30%) scale(.8); opacity: .35; }
}
@media (prefers-reduced-motion: reduce) { .carousel.is-ready .carousel-item, .carousel.is-ready .carousel-item figcaption { transition: none; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg: #192333; --surface: #121b29; --text: #f3f4f6; --muted: #b7c2d1; --line: #3b485b; --blue: #9ac2ff; --blue-dark: #b7d3ff; --blue-soft: #233650; --good: #90dfb0; --good-soft: #1a382a; --bad: #ffb0a6; --bad-soft: #422929; }
  :root:not([data-theme="light"]) .brand img, :root:not([data-theme="light"]) .preview-heading img { background: #fff; border-radius: 50%; padding: 3px; }
}
:root[data-theme="dark"] { color-scheme: dark; --bg: #192333; --surface: #121b29; --text: #f3f4f6; --muted: #b7c2d1; --line: #3b485b; --blue: #9ac2ff; --blue-dark: #b7d3ff; --blue-soft: #233650; --good: #90dfb0; --good-soft: #1a382a; --bad: #ffb0a6; --bad-soft: #422929; }
:root[data-theme="dark"] .brand img, :root[data-theme="dark"] .preview-heading img { background: #fff; border-radius: 50%; padding: 3px; }
:root[data-theme="light"] { color-scheme: light; }
@media (max-width: 1150px) {
  .wrap { width: calc(100% - 64px); }
  .header-inner { gap: 20px; }
  .nav { gap: 20px; }
  .header-teacher { display: none; }
  .hero-grid { gap: 40px; }
  .hero-benefits { flex-wrap: wrap; gap: 10px; }
  .numbers { gap: 16px; }
  .numbers > div + div { padding-left: 16px; }
  .numbers strong { font-size: 29px; }
  .path-card summary { grid-template-columns: 120px 1fr 1fr 130px; gap: 20px; }
  .path-content { padding-left: 152px; }
  .teacher-layout, .story-layout { gap: 50px; }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 85px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { height: 72px; }
  .nav, .header-cta { display: none; }
  .menu { display: block; }
  .hero { padding-block: 45px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(48px, 9vw, 68px); }
  .hero .lead { max-width: 570px; }
  .hero-exercise { max-width: 600px; width: 100%; }
  .numbers { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .numbers-intro { display: none; }
  .numbers > div:nth-child(2) { border: 0; padding: 0; }
  .numbers strong { font-size: 27px; }
  .section { padding-block: 56px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading .section-lead { max-width: 540px; margin-top: 18px; }
  .path-card summary { grid-template-columns: 110px 1fr 28px; gap: 10px 18px; }
  .path-title { font-size: 24px; }
  .path-description { grid-column: 2; }
  .path-bottom { grid-column: 3; grid-row: 1 / span 2; font-size: 0; }
  .path-bottom > span { font-size: 26px; }
  .path-content { padding-left: 140px; }
  .feature-grid { gap: 30px; }
  .feature h3 { font-size: 26px; }
  .feature-own { column-gap: 30px; }
  .teacher-layout, .story-layout, .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .teacher-layout .section-lead, .story-layout .section-lead { max-width: 580px; }
  .teacher-preview { padding-block: 10px; }
  .press-section { padding-top: 0; }
  .press small { min-width: 180px; }
  .steps { gap: 24px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 36px); }
  .brand { font-size: 26px; }
  .brand img { width: 34px; height: 34px; }
  h2 { font-size: 34px; }
  .hero h1 { font-size: clamp(48px, 12vw, 58px); }
  .hero .eyebrow { font-size: 10px; letter-spacing: .06em; }
  .lead, .section-lead { font-size: 16px; }
  .actions { gap: 8px 18px; margin-top: 22px; }
  .actions .btn, .actions .text-link { font-size: 13px; }
  .hero-benefits { font-size: 11px; gap: 8px; margin-top: 20px; }
  .hero-benefits li + li { padding-left: 8px; }
  .quiz-demo { padding-block: 24px; }
  .demo-options legend { font-size: 28px; }
  .answer label { padding: 13px 10px; gap: 10px; font-size: 14px; }
  .numbers { grid-template-columns: 1fr 1fr; gap: 24px; }
  .numbers > div + div { padding-left: 0; border: 0; }
  .numbers > div:nth-child(odd) { padding-left: 24px; border-left: 1px solid var(--line); }
  .section { padding-block: 46px; }
  .eyebrow { font-size: 10px; margin-bottom: 18px; }
  .path-card summary { grid-template-columns: 1fr 28px; padding: 22px 0; gap: 8px 12px; }
  .path-category, .path-description { grid-column: 1; }
  .path-title { grid-column: 1; font-size: 25px; }
  .path-bottom { grid-column: 2; grid-row: 1 / span 3; }
  .path-content { padding: 0 0 22px; }
  .feature-grid, .feature-own { display: block; }
  .feature + .feature { margin-top: 30px; }
  .feature h3 { font-size: 28px; }
  .feature p { font-size: 15px; }
  .feature-own .own-example { margin-top: 24px; }
  .flashcard { padding: 22px; }
  .reminder-strip h3 { line-height: 1.4; }
  .teacher-preview { padding-left: 22px; }
  .preview-title { font-size: 21px; }
  .teacher-workflow strong { font-size: 15px; }
  .teacher-workflow p { font-size: 13px; }
  blockquote { font-size: 23px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .press-section { padding-top: 0; }
  .press a { flex-direction: column-reverse; gap: 9px; }
  .press small { min-width: 0; width: 100%; }
  .faq summary, .faq details p { font-size: 14px; }
  .download-section { padding-block: 20px; }
  .download-panel { padding-block: 32px 10px; }
  .store-badge { padding: 10px 12px; }
  .store-badge strong { font-size: 16px; }
  .footer-top { flex-direction: column; gap: 26px; margin-bottom: 30px; }
  .footer-top nav { gap: 10px 24px; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-bottom > span:nth-child(2) { display: none; }
  .footer-bottom a { margin-left: auto; }
  .page-hero { padding-block: 40px; }
  .page-hero h1 { font-size: 37px; }
  .page-body { padding-block: 35px 55px; }
  .doc { padding: 24px; }
  .doc h2 { font-size: 25px; }
  .legal h2 { font-size: 19px; }
  .toc ol { columns: 1; }
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .answer input:checked + label { outline: 2px solid Highlight; }
  .answer input:checked + label .answer-letter { background: Highlight; color: HighlightText; }
  .btn { border: 1px solid ButtonText; }
}

/* The light/dark switch (shown only when theme.js runs). */
.theme-toggle { display: none; width: 42px; height: 42px; flex: none; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; font-size: 18px; line-height: 1; }
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: inline; }
}

/* The app on a phone: a static picture of an answered question (always in
   the app's light theme, like a screenshot). */
.hero-phone { display: flex; justify-content: center; align-items: flex-start; }
.phone { width: 340px; max-width: 100%; background: #0b1220; border-radius: 44px; padding: 12px; box-shadow: 0 24px 60px rgba(20, 27, 45, .28); user-select: none; pointer-events: none; }
.screen { background: #f6f3f7; color: #111; border-radius: 34px; padding: 20px 16px 22px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.screen-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: #004aad; margin-bottom: 10px; }
.screen-top span:last-child { color: #555060; }
.screen .progress { height: 6px; border-radius: 99px; background: #e9e5ec; margin-bottom: 18px; overflow: hidden; }
.screen .progress i { display: block; width: 8%; height: 100%; background: #004aad; border-radius: 99px; }
.screen .q { font-size: 19px; font-weight: 800; line-height: 1.3; margin: 0 0 14px; letter-spacing: 0; font-family: inherit; }
.screen .opt { padding: 12px 14px; margin-bottom: 9px; background: #fff; border: 2px solid #e9e5ec; border-radius: 12px; font-weight: 700; font-size: 15.5px; line-height: 1.4; }
.screen .opt.ok { border-color: #1d8a4e; background: #e5f5ec; color: #14653a; }
.screen .expl { margin: 12px 0 0; padding: 12px 14px; background: #fff; border-radius: 12px; font-size: 14.5px; line-height: 1.5; color: #333; }
:root[data-theme="dark"] .phone { box-shadow: 0 0 0 1px #3b485b, 0 24px 60px rgba(0, 0, 0, .45); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone { box-shadow: 0 0 0 1px #3b485b, 0 24px 60px rgba(0, 0, 0, .45); } }

/* The phone in dark mode: the app's own dark theme (lib/theme/app_colors.dart). */
:root[data-theme="dark"] .screen { background: #141b2d; color: #ffffff; }
:root[data-theme="dark"] .screen-top { color: #6ea8ff; }
:root[data-theme="dark"] .screen-top span:last-child { color: #a5a5a5; }
:root[data-theme="dark"] .screen .progress { background: #2a3652; }
:root[data-theme="dark"] .screen .progress i { background: #6ea8ff; }
:root[data-theme="dark"] .screen .opt { background: #1f2940; border-color: #2a3652; color: #ffffff; }
:root[data-theme="dark"] .screen .opt.ok { background: #15301f; border-color: #5fd28c; color: #8ee6ad; }
:root[data-theme="dark"] .screen .expl { background: #1f2940; color: #d4d9e3; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .screen { background: #141b2d; color: #ffffff; }
  :root:not([data-theme="light"]) .screen-top { color: #6ea8ff; }
  :root:not([data-theme="light"]) .screen-top span:last-child { color: #a5a5a5; }
  :root:not([data-theme="light"]) .screen .progress { background: #2a3652; }
  :root:not([data-theme="light"]) .screen .progress i { background: #6ea8ff; }
  :root:not([data-theme="light"]) .screen .opt { background: #1f2940; border-color: #2a3652; color: #ffffff; }
  :root:not([data-theme="light"]) .screen .opt.ok { background: #15301f; border-color: #5fd28c; color: #8ee6ad; }
  :root:not([data-theme="light"]) .screen .expl { background: #1f2940; color: #d4d9e3; }
}
