/* Eszett - the website. The same palette and faces as the app: Vollkorn for German, Fira Sans for the rest,
   Königsblau on paper, amber for warmth; light and dark follow the system. No framework, no tracking. */

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;600&family=Vollkorn:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --paper: #f5f6f9;
  --sheet: #ffffff;
  --sheet-alt: #eceef4;
  --rule: #dfe3ec;
  --ink: #182033;
  --ink-soft: #566076;
  --ink-faint: #8a93a8;
  --royal: #2442c6;
  --royal-tint: #e7ebfb;
  --on-royal: #ffffff;
  --amber: #e89b12;
  --amber-ink: #8a5900;
  --amber-tint: #fff1d6;
  --green: #1c8556;
  --green-tint: #e4f3eb;
  --red: #cf3427;
  --sans: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Vollkorn', Georgia, serif;
  --radius: 22px;
  --radius-s: 14px;
  --gutter: clamp(18px, 4vw, 36px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1322;
    --sheet: #161c2e;
    --sheet-alt: #1e2539;
    --rule: #2a3249;
    --ink: #e9edf5;
    --ink-soft: #a3acbf;
    --ink-faint: #6f788d;
    --royal: #8197ff;
    --royal-tint: #1e2852;
    --on-royal: #0e1322;
    --amber: #ffb532;
    --amber-ink: #ffc861;
    --amber-tint: #33290f;
    --green: #3dc48a;
    --green-tint: #123326;
    --red: #ff6f61;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--royal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 0.4em; font-variant-numeric: lining-nums; }
.de, .ico, .badge, .plan .price, .quote { font-variant-numeric: lining-nums; }
h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.de { font-family: var(--serif); }
.soft { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.small { font-size: 15px; }
.center { text-align: center; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; font-size: 20px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand:hover { text-decoration: none; }
nav.links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
nav.links a { color: var(--ink-soft); }
nav.links a:hover { color: var(--royal); }

/* hero */
.hero { padding: clamp(32px, 8vw, 96px) 0 clamp(24px, 6vw, 64px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero .mark { width: min(260px, 60vw); margin: 0 auto; filter: drop-shadow(0 24px 48px rgba(36, 66, 198, 0.25)); }
.hero p.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-soft); max-width: 36ch; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--royal-tint); color: var(--royal); font-weight: 500; font-size: 15px; }
.pill.amber { background: var(--amber-tint); color: var(--amber-ink); }
.pill.green { background: var(--green-tint); color: var(--green); }
.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: var(--radius-s); background: var(--royal); color: var(--on-royal); font-weight: 600; font-size: 16px; border: 0; cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.secondary { background: var(--sheet); color: var(--ink); border: 1px solid var(--rule); }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }

/* sections */
section { padding: clamp(28px, 5vw, 56px) 0; }
section.alt { background: var(--sheet-alt); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: var(--royal-tint); color: var(--royal); font-family: var(--serif); font-weight: 700; font-size: 22px; }
.card .ico.amber { background: var(--amber-tint); color: var(--amber-ink); }
.card .ico.green { background: var(--green-tint); color: var(--green); }
.quote { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.3; }
.quote small { display: block; font-family: var(--sans); font-size: 15px; color: var(--ink-soft); margin-top: 10px; }

/* pricing */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plan { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.plan.highlight { border-color: var(--royal); box-shadow: 0 0 0 3px var(--royal-tint); }
.plan .price { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.plan ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); }
.plan li { margin: 4px 0; }

/* faq */
details { border-top: 1px solid var(--rule); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--royal); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

/* legal pages */
.legal { padding-block: 24px 64px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); }
.legal h2 { font-size: 24px; margin-top: 2em; }
.legal h3 { font-size: 19px; margin-top: 1.6em; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0 20px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.legal th { color: var(--ink-soft); font-weight: 500; }
.lang { display: inline-flex; gap: 6px; background: var(--sheet-alt); padding: 4px; border-radius: 999px; margin: 8px 0 24px; }
.lang a { padding: 6px 14px; border-radius: 999px; color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.lang a.on { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.lang a:hover { text-decoration: none; }
.todo { background: var(--amber-tint); color: var(--amber-ink); padding: 2px 6px; border-radius: 6px; } /* placeholders during drafting; none on the live pages */
.note { background: var(--royal-tint); border-radius: var(--radius-s); padding: 14px 18px; margin: 16px 0; }

/* footer */
footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; color: var(--ink-soft); font-size: 15px; }
footer .row { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin: 0 auto 8px; }
  .pills, .stores { justify-content: center; }
  .hero .mark { order: -1; width: min(200px, 50vw); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .mark { animation: float 6s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
}

/* learning pages (generated by build.mjs) */
.learn { padding-block: 12px 64px; }
.learn h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 0.2em; }
.learn h2 { font-size: 24px; margin-top: 1.8em; }
.learn h3 { font-size: 19px; margin-top: 1.4em; }
.learn .lead { font-size: 19px; }
.eyebrow { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--royal); font-weight: 600; margin: 0 0 8px; }
.subtitle { font-size: 20px; margin-top: 0; }
.crumbs { font-size: 14px; color: var(--ink-faint); margin: 4px 0 10px; }
.crumbs a { color: var(--ink-soft); }
.langs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; margin: 0 0 22px; color: var(--ink-faint); }
.langs a { color: var(--ink-soft); }
.langs [aria-current] { color: var(--ink); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.tags .pill { font-family: var(--serif); font-size: 16px; }
.examples { margin: 0; }
.examples div { padding: 10px 0; border-top: 1px solid var(--rule); }
.examples div:last-child { border-bottom: 1px solid var(--rule); }
.examples dt { font-family: var(--serif); font-size: 19px; }
.examples dd { margin: 2px 0 0; color: var(--ink-soft); }
.pitfalls { list-style: none; padding: 0; margin: 0; }
.pitfalls li { padding: 10px 0; border-top: 1px solid var(--rule); }
.pitfalls li:last-child { border-bottom: 1px solid var(--rule); }
.pitfalls .wrong { font-family: var(--serif); font-size: 18px; color: var(--red); text-decoration: line-through; text-decoration-thickness: 1px; }
.pitfalls .right { font-family: var(--serif); font-size: 18px; color: var(--green); font-weight: 600; }
.pitfalls .arrow { color: var(--ink-faint); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.cards li { padding: 10px 14px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-s); }
.cards li a { font-weight: 600; }
.facts { padding-left: 20px; }
.facts li { margin: 8px 0; }
table.exams { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0 20px; }
table.exams th, table.exams td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
table.exams th { color: var(--ink-soft); font-weight: 500; }
.story p[lang="de"] { font-family: var(--serif); font-size: 19px; line-height: 1.6; }
.gloss { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; font-size: 15px; }
.gloss div { display: contents; }
.gloss dt { font-family: var(--serif); font-size: 17px; }
.gloss dd { margin: 0; color: var(--ink-soft); }
.questions > li { margin: 10px 0; }
.questions ul { list-style: none; padding: 4px 0 0 0; margin: 0; }
.questions ul li { padding: 4px 10px; margin: 2px 0; border-radius: 8px; border: 1px solid var(--rule); }
#show-answers:checked ~ .story .questions li.answer { background: var(--green-tint); border-color: var(--green); color: var(--green); }
.toggle { height: 40px; font-size: 15px; margin: 6px 0 16px; }
#show-answers:checked ~ .toggle { background: var(--green-tint); color: var(--green); border-color: var(--green); }
.scenes { list-style: none; padding: 0; margin: 0; }
.scenes li { padding: 14px 0; border-top: 1px solid var(--rule); }
.scenes li:last-child { border-bottom: 1px solid var(--rule); }
.scenes .opening { margin-top: 6px; font-family: var(--serif); font-size: 18px; }
.weeks { padding-left: 0; list-style: none; counter-reset: none; }
.weeks > li { padding: 16px 0; border-top: 1px solid var(--rule); }
.weeks > li:last-child { border-bottom: 1px solid var(--rule); }
.weeks h3 { margin-top: 0; }
.steps { display: grid; gap: 6px; font-size: 15px; }
.steps .k { display: inline-block; min-width: 9em; color: var(--ink-faint); font-weight: 500; }
.asks { margin: 4px 0 0; padding-left: 20px; }
.asks li { margin: 2px 0; }
.levels { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 8px 0 8px; }
.level { display: grid; gap: 6px; padding: 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); }
.level:hover { text-decoration: none; border-color: var(--royal); }
.level .badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--royal-tint); color: var(--royal); font-family: var(--serif); font-weight: 700; font-size: 20px; }
.cta { display: flex; gap: 18px; align-items: flex-start; margin-top: 48px; padding: 22px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); }
.cta img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.cta p { margin: 6px 0 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[dir="rtl"] .steps .k, [dir="rtl"] .facts, [dir="rtl"] .asks { text-align: right; }
[dir="rtl"] span[lang="de"], [dir="rtl"] a[lang="de"], [dir="rtl"] .examples dt, [dir="rtl"] .pitfalls .wrong, [dir="rtl"] .pitfalls .right, [dir="rtl"] .gloss dt { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .story p[lang="de"], [dir="rtl"] h1[lang="de"], [dir="rtl"] .questions[lang="de"], [dir="rtl"] .gloss[lang="de"] { direction: ltr; text-align: left; }
@media (max-width: 760px) { .cta { flex-direction: column; } .gloss { grid-template-columns: 1fr; } }
.card.link { color: var(--ink); display: block; }
.card.link:hover { text-decoration: none; border-color: var(--royal); }
.card.link h3 { color: var(--ink); }
.langs-home { display: flex; flex-wrap: wrap; gap: 6px 14px; }
