/* prepka.by static pages (landing, privacy, terms). Colours follow the app's
   palette (lib/core/theme/app_palette.dart): brand panel #3A57A6, brand
   #6750A4, background #F3F4F7 / dark #23262D. No web fonts: system fonts load
   instantly. See docs/features/seo.md. */
:root {
  --bg: #f3f4f7;
  --surface: #ffffff;
  --text: #1c1d22;
  --muted: #5b5e69;
  --brand: #3a57a6;
  --brand-strong: #2e4790;
  /* Text links; the brand fill is for buttons (white text on it). */
  --link: #3a57a6;
  --on-brand: #ffffff;
  --line: #e1e3ea;
  --accent: #f5b83d;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #23262d;
    --surface: #2c3038;
    --text: #eceef3;
    --muted: #a9adb9;
    --brand: #4062bd;
    --brand-strong: #34529f;
    --link: #93aaea;
    --line: #3a3f49;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 0;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--text); text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
nav.top a { margin-left: 18px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav.top a:hover { color: var(--text); }

.btn {
  display: inline-block; padding: 13px 24px; border-radius: 12px;
  background: var(--brand); color: var(--on-brand); font-weight: 700;
  text-decoration: none; border: 2px solid var(--brand);
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn.ghost { background: transparent; color: var(--link); border-color: var(--link); }
.btn.ghost:hover { background: var(--surface); }

.hero { padding: 48px 0 56px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; margin: 0 0 18px; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 720px; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }

section { padding: 44px 0; }
section h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--link); }
a.card h3 { color: var(--link); }

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
ol.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 18px 64px; position: relative; }
ol.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--on-brand);
  font-weight: 700; display: grid; place-items: center;
}
ol.steps strong { display: block; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--muted); }

.band { background: var(--brand); color: var(--on-brand); border-radius: 20px; padding: 36px 28px; text-align: center; }
.band h2 { margin-bottom: 10px; }
.band p { margin: 0 0 22px; }
.band .btn { background: var(--on-brand); color: var(--brand); border-color: var(--on-brand); }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); margin-right: 18px; }

/* Legal pages */
article.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px clamp(18px, 4vw, 44px); margin: 12px 0 40px; }
article.doc h1 { font-size: clamp(26px, 4vw, 34px); margin-top: 0; line-height: 1.2; }
article.doc h2 { font-size: 21px; margin: 30px 0 10px; }
article.doc .updated { color: var(--muted); font-size: 15px; }
article.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
article.doc th, article.doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

@media (max-width: 640px) {
  nav.top a.hide-sm { display: none; }
  .hero { padding-top: 24px; }
}
