/* Reaalnebuss website. Tokens and measurements: web design handoff (web/README.md). */
:root {
  color-scheme: light dark;
  --bg: #ffffff; --bg2: #f4f5f7; --fg: #16181d; --fg2: #555b67; --line: #e2e4e9;
  --accent: #2a56c6; --accentBg: rgba(42, 86, 198, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111215; --bg2: #1b1d22; --fg: #eceef2; --fg2: #a6abb6; --line: #2b2e35;
    --accent: #86a8ff; --accentBg: rgba(134, 168, 255, .12);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--fg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  position: relative; overflow-x: hidden; isolation: isolate; min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}
h1, h2, p, ul, figure, dl, dd { margin: 0; }
p, li, figcaption { text-wrap: pretty; }

.strip { height: 4px; background: var(--accent); }
.bgmap {
  position: absolute; top: 0; left: 0; width: 100%; height: 760px; z-index: -1;
  pointer-events: none; color: var(--accent); opacity: .09;
}
.wrap {
  max-width: 760px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-direction: column; min-height: calc(100vh - 4px);
}

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { flex: none; }
.main-nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.main-nav > a { color: var(--fg2); text-decoration: none; }
.main-nav > a:hover, .main-nav > a[aria-current="page"] { color: var(--fg); }
.lang { display: flex; align-items: center; gap: 6px; color: var(--fg2); }
.lang a { color: var(--fg2); text-decoration: none; padding: 2px 0; }
.lang a:hover { color: var(--fg); }
.lang a[aria-current="true"] {
  color: var(--fg); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

main { flex: 1; padding: 48px 0 64px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); padding: 24px 0 40px; display: flex; flex-direction: column; gap: 12px;
  font-size: 14px; line-height: 1.5; color: var(--fg2);
}
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 700; font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Home */
.home { display: flex; flex-direction: column; gap: 56px; }
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 40px; align-items: center;
  background: var(--accentBg); border-radius: 28px; padding: 32px 28px 0; overflow: hidden;
}
.hero-text { display: flex; flex-direction: column; gap: 20px; padding-bottom: 32px; }
.hero-title { display: flex; flex-direction: column; gap: 8px; }
.hero h1 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: 19px; line-height: 1.45; max-width: 34ch; }
.stores, .badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badges img { height: 40px; width: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; border: 2px solid var(--accent);
}
.hero-shot { display: flex; justify-content: center; align-self: end; }
.hero-crop { width: 100%; max-width: 250px; height: 360px; overflow: hidden; }
.device {
  background: var(--bg); border: 1px solid var(--line); border-bottom: 0; border-radius: 36px; padding: 6px;
}
.device img { border-radius: 30px; width: 100%; }

.sec { display: flex; flex-direction: column; gap: 16px; }
.sec-features { gap: 20px; }
.sec-privacy { gap: 8px; }
.home h2 { font-size: 20px; line-height: 1.3; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.home h2::before {
  content: ""; width: 12px; height: 12px; border-radius: 3px; border: 2.5px solid var(--accent); flex: none;
}
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 28px 20px; }
.features figure { display: flex; flex-direction: column; gap: 12px; }
.shot { border: 1px solid var(--line); border-radius: 22px; padding: 4px; }
.shot img { border-radius: 18px; width: 100%; }
.features figcaption { font-size: 15px; line-height: 1.45; }
.note { font-size: 15px; color: var(--fg2); max-width: 62ch; }
.coverage { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.coverage > div {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2px 20px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.coverage dt { font-weight: 600; }
.coverage dd { color: var(--fg2); }

/* Privacy and Support */
.doc { max-width: 68ch; display: flex; flex-direction: column; gap: 32px; }
.doc-support { gap: 40px; }
.doc h1 { font-size: 30px; line-height: 1.2; font-weight: 700; }
.doc-head { display: flex; flex-direction: column; gap: 6px; }
.doc-support .doc-head { gap: 12px; }
.updated { font-size: 15px; color: var(--fg2); }
.doc section { display: flex; flex-direction: column; gap: 8px; }
.doc-privacy h2 { font-size: 19px; line-height: 1.35; font-weight: 600; }
.doc-support h2 { font-size: 20px; line-height: 1.3; font-weight: 600; }
.doc ul { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 6px; }
.faq { gap: 0 !important; }
.faq h2 { margin-bottom: 12px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; line-height: 1.4; }
.faq details p { margin-top: 10px; }

/* 404 */
.notfound { display: flex; flex-direction: column; gap: 12px; padding: 40px 0; }
.notfound h1 { font-size: 22px; line-height: 1.3; font-weight: 600; }
