:root {
  --bg: #f3f3f1;
  --card: #ffffff;
  --text: #111111;
  --muted: #6c6c72;
  --line: #e4e4e0;
  --accent: #2e7cf6;
  --accent-2: #2fb8ff;
  --shadow: 0 18px 50px rgba(17, 30, 60, .12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08090b; --card: #14161a; --text: #f2f2f2; --muted: #a3a3a8; --line: #24272d;
    --accent: #2fb8ff; --accent-2: #2e7cf6;
    --shadow: 0 18px 50px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html:not([data-lang="uk"]) [data-l="uk"], html[data-lang="uk"] [data-l="en"] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }

header { padding-block: 20px; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.lang button {
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 32px 72px; }
.hero > * { min-width: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h1 { font-size: clamp(40px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; margin: 0 0 18px; text-wrap: balance; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 30em; margin: 0 0 30px; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: block; border-radius: 12px; transition: transform .15s ease; }
.badge:hover { transform: translateY(-2px); }
.badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.badge img { display: block; height: 60px; width: auto; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }

.shot { justify-self: center; width: 100%; max-width: 380px; border-radius: 28px; overflow: hidden; background: #f3f3f1; }
.shot img { display: block; width: 100%; height: auto; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 72px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.feature .num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.feature h3 { margin: 6px 0 4px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.watch { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: 32px; margin-bottom: 72px; scroll-margin-top: 16px; }
.watch > * { min-width: 0; }
.watch .shot { box-shadow: none; border-radius: 22px; max-width: 300px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; text-wrap: balance; }
.chip { display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 14px; }
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
ol.steps li::before {
  content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
ol.steps li > span { padding-top: 5px; }
.muted { color: var(--muted); font-size: 15px; }

footer { border-top: 1px solid var(--line); padding-block: 24px 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; }
  .hero .shot { max-width: 300px; }
  .features { grid-template-columns: 1fr; }
  .watch { grid-template-columns: 1fr; padding: 22px; }
  .watch .shot { order: 2; justify-self: center; }
}
@media (max-width: 440px) {
  .badge img { height: 52px; }
}

.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 72px; }
.link-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; color: var(--text); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.link-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.link-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.link-card b { font-size: 17px; }
.link-card span { color: var(--muted); font-size: 15px; }
.link-card .arrow { color: var(--accent); font-weight: 600; margin-top: auto; padding-top: 8px; }
.hero-icon { width: 72px; height: 72px; border-radius: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
@media (max-width: 820px) { .links { grid-template-columns: 1fr; } }

/* Legal documents */
.doc { max-width: 760px; margin: 0 auto; padding-block: 24px 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 8px; }
.doc h2 { font-size: 21px; letter-spacing: -.01em; margin: 36px 0 10px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { color: var(--muted); font-weight: 500; }
@media (max-width: 560px) {
  .doc table, .doc tr, .doc td, .doc th { display: block; }
  .doc tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .doc tr:last-child { border-bottom: 0; }
  .doc th, .doc tr:has(th) { display: none; }
  .doc td { border: 0; padding: 2px 0; }
}
