/* Kolory i typografia przepisane z src/theme/tokens.ts — ciemny motyw jest jedynym (DEC-13). */
:root {
  --page: #08080A;
  --card: #15151C;
  --raised: #1E1E26;
  --accent: #E10600;
  --text-strong: #FFFFFF;
  --text-body: #D6D6DA;
  --text-muted: #A1A1AA;
  --text-faint: #6B6B76;
  --hairline: rgba(255,255,255,0.08);
  --subtle: rgba(255,255,255,0.14);
  --display: "Titillium Web", "Helvetica Neue", Arial, sans-serif;
  --body: Barlow, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
/* Bez scroll-behavior: smooth — w zewnętrznym arkuszu Chrome gubi przewinięcie do kotwicy
   przy wejściu z adresu /#privacy, a ten adres siedzi w konsolach sklepów. */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text-body);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--text-strong); }
a:focus-visible, .btn:focus-visible { outline: 2px solid #FF2A1F; outline-offset: 3px; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 12px;
}

/* ——— header ——— */
header { border-bottom: 1px solid var(--hairline); }
.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 20px; max-width: 760px; margin: 0 auto;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.mark { width: auto; height: 40px; display: block; }
.bar nav a {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
}
.bar nav a + a { margin-left: 20px; }
.bar nav a:hover { color: var(--text-strong); }

/* ——— hero ——— */
.hero { padding: 72px 0 56px; text-align: center; }
.hero .mark-lg { width: min(320px, 70vw); height: auto; margin: 0 auto 28px; display: block; }
h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(38px, 9vw, 64px); line-height: 1.02; letter-spacing: -0.02em;
  color: var(--text-strong); margin: 0 0 20px;
}
.lede { font-size: 19px; color: var(--text-muted); margin: 0 auto; max-width: 34ch; }

/* ——— store buttons ——— */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; justify-content: center; margin: 32px 0 24px; }
.store-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.store-badge { display: block; height: 64px; width: auto; max-width: 100%; }
.store-alternative { display: none; }
html[data-store] .stores { flex-direction: column; gap: 16px; }
html[data-store="app-store"] [data-umami-event-store="google-play"],
html[data-store="google-play"] [data-umami-event-store="app-store"] { order: 1; color: var(--text-muted); font-size: 15px; text-underline-offset: 4px; }
html[data-store="app-store"] [data-umami-event-store="google-play"] .store-badge,
html[data-store="google-play"] [data-umami-event-store="app-store"] .store-badge { display: none; }
html[data-store="app-store"] [data-umami-event-store="google-play"] .store-alternative,
html[data-store="google-play"] [data-umami-event-store="app-store"] .store-alternative { display: inline; }

.disclaimer { font-size: 13px; color: var(--text-faint); margin: 0; }

/* ——— sections ——— */
section { padding: 56px 0; border-top: 1px solid var(--hairline); }
h2 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(26px, 5vw, 32px); line-height: 1.14; letter-spacing: -0.01em;
  color: var(--text-strong); margin: 0 0 24px;
}
/* Kotwice przy nagłówkach — adresy #rules i #privacy podajemy Apple i Google, muszą zostać stabilne. */
.anchor {
  font-family: var(--mono); font-weight: 500; font-size: 0.55em;
  color: var(--text-faint); text-decoration: none; vertical-align: 0.35em;
  margin-left: 8px; opacity: 0; transition: opacity 120ms;
}
h2:hover .anchor, .anchor:focus-visible { opacity: 1; }

h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 19px; letter-spacing: 0.01em; color: var(--text-strong);
  margin: 36px 0 10px;
}

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--hairline);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 20px;
}
.card p { margin: 0; font-size: 15px; color: var(--text-muted); }
.card .title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 17px; color: var(--text-strong); margin: 0 0 6px;
}

ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
ol.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 20px 46px; border-left: 1px solid var(--subtle); margin-left: 12px;
}
ol.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: -13px; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--raised); border: 1px solid var(--subtle);
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
}
ol.steps strong { color: var(--text-strong); font-weight: 600; }

/* ——— privacy ——— */
.policy p, .policy li { font-size: 16px; }
.policy ul { padding-left: 20px; }
.policy li { margin-bottom: 8px; }
.policy .meta {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--text-faint); margin: 0 0 28px;
}
.policy table { width: 100%; border-collapse: collapse; margin: 12px 0 0; font-size: 15px; }
.policy th, .policy td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.policy th {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint);
}
.scroll { overflow-x: auto; }

footer { border-top: 1px solid var(--hairline); padding: 32px 0 48px; }
footer p { font-size: 13px; color: var(--text-faint); margin: 0 0 6px; }

@media (max-width: 480px) {
  .bar { padding: 12px 16px; gap: 12px; }
  .mark { height: 30px; }
  .bar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 12px; }
  .bar nav a { font-size: 10px; letter-spacing: 0.07em; }
  .bar nav a + a { margin-left: 0; }
  .hero { padding: 24px 20px 32px; }
  .hero .mark-lg { width: 200px; margin-bottom: 16px; }
  h1 { font-size: clamp(30px, 8vw, 36px); margin-bottom: 14px; }
  .lede { font-size: 17px; max-width: 30ch; }
  .stores { margin: 24px 0 20px; gap: 24px; }
  .store-badge { height: 64px; }
  .disclaimer { max-width: 36ch; margin: 0 auto; }
}
