/* Změř.to – web. Colour tokens follow the app (Návrh 2, android/core/ui Theme.kt). */
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #F4F5F2; --surface: #FFFFFF; --surface2: #ECEEEA; --ink: #15191C; --muted: #555D64; --line: #DFE2DC;
  --accent: #183FA8; --on-accent: #FFFFFF; --accent-soft: #DCE4FA; --accent-text: #183FA8;
  --note-bg: #FBEBD3; --note-ink: #6B3D00;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1214; --surface: #1A1F23; --surface2: #242A2F; --ink: #EEF0F2; --muted: #A3ABB2; --line: #2E353A;
    --accent: #8AA8FF; --on-accent: #0B1638; --accent-soft: #22305A; --accent-text: #A9BFFF;
    --note-bg: #3E2A0A; --note-ink: #F5C27A;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-text); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .04em; font-size: 20px; }
.brand img { width: 28px; height: 28px; display: block; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; font-weight: 500; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--accent-text); }

/* content */
main { padding-bottom: 48px; }
.prose { max-width: 760px; padding-top: 32px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; margin: 0 0 16px; }
h2 { font-size: 22px; font-weight: 700; margin: 36px 0 10px; }
h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.prose li { margin: 4px 0; }
.lead { font-size: 19px; color: var(--muted); }
.big { font-size: 24px; font-weight: 700; }
.updated { margin-top: 40px; color: var(--muted); font-size: 14px; }
.note { background: var(--note-bg); color: var(--note-ink); border-radius: 16px; padding: 4px 22px; margin: 24px 0; }
.note h2 { margin-top: 18px; }
.note a { color: inherit; }

/* home */
.hero { background: #183FA8; color: #FFFFFF; padding: 56px 0 48px; }
.hero h1 { max-width: 760px; font-size: clamp(30px, 6vw, 52px); }
.hero .lead { color: #DCE4FA; max-width: 720px; }
.badge { display: inline-block; border: 2px solid #FFFFFF; border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 15px; }
.block { padding-top: 16px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px 8px; }
.cards h3 { color: var(--accent-text); margin-top: 16px; }
.cards p { margin-top: 0; color: var(--muted); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 2px; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; }
.foot .wrap { padding-top: 18px; padding-bottom: 18px; }
.foot a { color: var(--muted); }

/* minimal home (until the app is on Google Play, Robin 13. 10.): everything centred */
main.home { min-height: calc(100vh - 70px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 16px; }
.home .mark { width: 128px; height: 128px; margin-bottom: 20px; display: block; }
.home h1 { font-size: clamp(48px, 12vw, 96px); font-weight: 900; letter-spacing: .02em; margin: 0; }
.home .tagline { font-size: clamp(18px, 3.5vw, 22px); color: var(--muted); margin: 12px 0 4px; }
.home .sub { font-size: 16px; color: var(--muted); margin: 0 0 36px; }
.docs { display: flex; flex-direction: column; gap: 12px; font-weight: 600; }
.foot p { margin: 0; text-align: center; }

/* /app – test APK download (Robin 17. 10., not linked, noindex) */
.dl { display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700; font-size: 18px;
  padding: 14px 26px; border-radius: 999px; }
.dl:hover { text-decoration: none; filter: brightness(1.08); }
.small { font-size: 14px; color: var(--muted); }
.pc { display: flex; align-items: center; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 24px 0; }
.pc p { margin: 0; }
.qr { width: 132px; height: 132px; flex: none; border-radius: 8px; }
@media (max-width: 520px) { .pc { flex-direction: column; text-align: center; } }
