/* Landing site. Same palette as the app (src/constants/theme.ts); system fonts, so no external requests. */
:root {
  --primary: #2446D8;
  --primary-dark: #1B34A8;
  --primary-soft: #E8EDFC;
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --text: #111827;
  --muted: #5B6472;
  --border: #E5E7EB;
  --success: #15803D;
  --radius: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--primary); }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 16px; }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 20px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.small { font-size: 14px; color: var(--muted); }
section { padding: 56px 0; }

/* Header */
.top { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { border-radius: 8px; }
.langs { position: relative; }
.langs summary { cursor: pointer; list-style: none; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 15px; }
.langs summary::-webkit-details-marker { display: none; }
.langs nav { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 6px; display: grid; min-width: 160px; box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12); }
.langs nav a { padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.langs nav a:hover, .langs nav a[aria-current] { background: var(--primary-soft); color: var(--primary); }

/* Hero */
.hero { background: linear-gradient(170deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 56px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; }
.hero-grid > div { padding-bottom: 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; font-weight: 600; opacity: 0.8; margin: 0 0 12px; }
.lead { font-size: 19px; opacity: 0.9; margin: 0 0 24px; }
.hero .small { color: rgba(255, 255, 255, 0.75); }
.phone { justify-self: center; width: 100%; max-width: 330px; border: 10px solid #0F172A; border-bottom: 0; border-radius: 44px 44px 0 0; overflow: hidden; background: var(--bg); box-shadow: 0 -8px 40px rgba(8, 20, 70, 0.35); padding-top: 26px; }
.phone img { display: block; width: 100%; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 8px 20px; border-radius: 12px; background: #fff; color: var(--text); font-weight: 700; text-decoration: none; }
.store small { font-weight: 500; font-size: 12px; color: var(--muted); }
.store.soon { background: rgba(255, 255, 255, 0.14); color: #fff; }
.store.soon small { color: rgba(255, 255, 255, 0.7); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.premium { outline: 2px solid var(--primary); background: var(--primary-soft); }
.ticks { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.ticks li { padding-inline-start: 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #DCFCE7; color: var(--success); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 600; }

/* Screenshots */
.shots-section { padding-top: 0; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shots img { border-radius: 18px; }

/* FAQ and documents */
.qa { background: var(--surface); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.qa summary { cursor: pointer; font-weight: 600; }
.qa p { margin: 10px 0 0; color: var(--muted); }
.doc { padding-top: 40px; padding-bottom: 56px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc p { margin: 0 0 12px; }
.contact { background: var(--surface); border-radius: 12px; padding: 16px 20px; font-weight: 600; }
.note { background: var(--primary-soft); border-radius: 12px; padding: 12px 16px; }
.pick { list-style: none; padding: 0; display: grid; gap: 8px; }
.pick a { display: block; background: var(--surface); padding: 14px 18px; border-radius: 12px; text-decoration: none; font-weight: 600; }

/* Footer */
.foot { background: var(--surface); border-top: 1px solid var(--border); padding: 32px 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.foot nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.disclaimer { color: var(--muted); font-size: 14px; margin: 0 0 6px; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .phone { max-width: 280px; }
  .grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
}

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 12px; background: var(--primary); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.button:disabled { opacity: 0.6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Question pages */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.answer { background: #DCFCE7; border-radius: 12px; padding: 12px 16px; }
.qbox { background: var(--surface); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.qbox .label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 8px; }
.qtext { font-size: 19px; font-weight: 600; margin: 0 0 14px; }
.qbox figure { margin: 0 0 14px; }
.qbox figure img { border-radius: 10px; }
.qbox figcaption { font-size: 12px; color: var(--muted); }
.opts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.opts li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.opts li.correct { border-color: var(--success); background: #F0FDF4; font-weight: 600; }
.letter { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); font-size: 14px; font-weight: 700; }
.correct .letter { background: var(--success); color: #fff; }
.tick { margin-inline-start: auto; color: var(--success); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.explain { margin: 24px 0; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 24px 0; font-weight: 600; }
.cta { background: linear-gradient(170deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; border-radius: var(--radius); padding: 24px; margin-top: 32px; }
.cta h2 { margin: 0 0 8px !important; font-size: 22px; }
.cta p { opacity: 0.9; }
.qlist { list-style: none; padding: 0; display: grid; gap: 6px; }
.qlist a { display: flex; gap: 12px; padding: 10px 14px; background: var(--surface); border-radius: 10px; color: var(--text); text-decoration: none; }
.qlist a:hover { outline: 2px solid var(--primary-soft); }
.qlist .num { flex: none; min-width: 32px; font-weight: 700; color: var(--primary); }
.qlist small { display: block; color: var(--success); font-weight: 600; margin-top: 4px; }
.states a { text-decoration: none; color: var(--text); }
.web { padding-top: 0; }

/* Web quiz */
.quiz-card { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.quiz-card img { border-radius: 10px; margin-bottom: 12px; }
.bar { height: 6px; background: var(--bg); border-radius: 3px; margin-bottom: 16px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--primary); }
.translation { margin: -8px 0 14px; }
.options { display: grid; gap: 8px; margin-bottom: 12px; }
.option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font: inherit; color: inherit; text-align: start; cursor: pointer; }
.option small { display: block; color: var(--muted); font-size: 14px; }
.option:hover:not(:disabled) { border-color: var(--primary); }
.option:disabled { cursor: default; }
.option.correct { border-color: var(--success); background: #F0FDF4; }
.option.correct .letter { background: var(--success); color: #fff; }
.option.wrong { border-color: #B91C1C; background: #FDECEC; }
.option.wrong .letter { background: #B91C1C; color: #fff; }
.feedback { font-weight: 700; min-height: 1.5em; }
.feedback.ok { color: var(--success); }
.feedback.no { color: #B91C1C; }
.score { font-size: 32px; font-weight: 800; margin: 0 0 8px; }
.opts img, .option img { flex: none; width: 72px; height: auto; margin: 0 !important; border-radius: 6px; }

/* Mock test state picker */
.field { display: grid; gap: 6px; font-weight: 600; margin-bottom: 14px; max-width: 360px; }
.field select { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.verdict { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.verdict.ok { color: var(--success); }
.verdict.no { color: #B91C1C; }

/* All questions and answers (also printed to PDF) */
.answers { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.answers li { display: flex; gap: 12px; background: var(--surface); border-radius: 10px; padding: 10px 14px; break-inside: avoid; }
.answers .num { flex: none; min-width: 32px; font-weight: 700; text-decoration: none; }
.answers p { margin: 0; }
.answers li > div { flex: 1; min-width: 0; }
.answers .q { font-weight: 600; }
.answers [dir=ltr] { text-align: left; }
.answers .a { color: var(--success); font-weight: 600; margin-top: 2px; }
.answers .a img { vertical-align: middle; width: 40px; height: auto; }
.answers .tq { color: var(--muted); font-size: 15px; margin-top: 6px; }
.answers .ta { color: var(--muted); font-size: 15px; }
.printonly { display: none; }
@media print {
  @page { size: A4; }
  body { background: #fff; font-size: 11pt; }
  .top, .foot, .noprint, .cta { display: none !important; }
  .printonly { display: block; color: var(--muted); }
  .answers li { background: none; border-bottom: 1px solid var(--border); border-radius: 0; padding: 6px 0; }
  .doc { padding-top: 0; }
}

/* Question pages: the German question is the h1, with its number and topic underneath */
.qpage h1 { font-size: clamp(24px, 3.6vw, 32px); margin-bottom: 6px; }
.qmeta { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
[dir=rtl] .qpage h1[dir=ltr] { text-align: left; }
.related h2 { font-size: 19px; margin: 24px 0 10px; }
