/* Vlaky zadarmo – web. Bez skriptov; CSP povoľuje len štýly z tohto súboru. */

:root {
  --bg: #f6faf8;
  --bg-tint: #e6f5ee;
  --surface: #ffffff;
  --surface-2: #f1f7f4;
  --text: #0f1a15;
  --muted: #5a6b63;
  --accent: #10a06a;
  --accent-strong: #0b8456;
  --accent-soft: #dcf3e8;
  --red: #dc4545;
  --line: rgba(15, 26, 21, 0.09);
  --shadow-sm: 0 1px 2px rgba(15, 26, 21, 0.06), 0 4px 14px rgba(15, 26, 21, 0.05);
  --shadow-lg: 0 30px 60px -20px rgba(8, 60, 38, 0.35), 0 12px 24px -12px rgba(8, 40, 26, 0.25);
  --bezel: #101614;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09110e;
    --bg-tint: #0e2219;
    --surface: #121c18;
    --surface-2: #17241e;
    --text: #e9f2ed;
    --muted: #97aaa1;
    --accent: #2cc486;
    --accent-strong: #52d6a0;
    --accent-soft: #143426;
    --line: rgba(233, 242, 237, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    --bezel: #000000;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--accent-strong); text-underline-offset: 3px; }

h1, h2, h3, figcaption { text-wrap: balance; }
p, li { text-wrap: pretty; }

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

/* ---------- hlavička ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav { display: flex; gap: 6px; }

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
}

.nav a:hover { color: var(--text); background: var(--surface-2); }

/* ---------- úvod ---------- */

.hero {
  background:
    radial-gradient(900px 480px at 85% 10%, var(--bg-tint), transparent 70%),
    radial-gradient(700px 420px at 0% 100%, var(--bg-tint), transparent 70%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 600;
}

.eyebrow svg { width: 16px; height: 16px; }

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero h1 .accent { color: var(--accent); }

.lead {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 32px; }

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 16px;
}

.store-pill svg { width: 22px; height: 22px; }
.store-pill small { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; line-height: 1.1; }
.store-pill span { line-height: 1.15; }

.text-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link:hover { color: var(--accent-strong); }
.text-link svg { width: 18px; height: 18px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.checks li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 16px; }

.checks svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.hero-visual { position: relative; display: flex; justify-content: center; }

/* telefón so screenshotom */
.phone {
  position: relative;
  width: 300px;
  max-width: 100%;
  padding: 10px;
  border-radius: 50px;
  background: var(--bezel);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}

.phone img {
  width: 100%;
  aspect-ratio: 720 / 1565;
  object-fit: cover;
  border-radius: 41px;
}

.hero .phone { transform: rotate(2deg); }

.float-card {
  position: absolute;
  left: 0;
  bottom: 18%;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  line-height: 1.3;
  color: var(--muted);
}

.float-card strong { display: block; color: var(--text); font-size: 18px; }

.float-card .dot {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
}

.float-card .dot svg { width: 20px; height: 20px; }

/* ---------- sekcie ---------- */

.section { padding: 88px 0; }
.section.alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .kicker { margin: 0 0 8px; color: var(--accent-strong); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 18px;
}

.card .icon svg { width: 22px; height: 22px; }
.card .step { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.card h3 { margin: 4px 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; justify-items: center; }
.screens figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.screens .phone { width: 260px; border-radius: 44px; padding: 9px; }
.screens .phone img { border-radius: 36px; }
.screens figcaption { margin-top: 20px; text-align: center; max-width: 260px; }
.screens figcaption strong { display: block; font-size: 17px; }
.screens figcaption span { color: var(--muted); font-size: 15px; }

.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 760px; }

.contact a.card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}

.contact a.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.contact .icon { margin: 0; }
.contact small { display: block; color: var(--muted); font-size: 14px; }
.contact b { font-size: 19px; font-weight: 650; }

/* ---------- pätička ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; }
.site-footer a { color: var(--muted); }

/* ---------- textová stránka (zásady ochrany súkromia) ---------- */

.doc { max-width: 760px; padding: 56px 0 72px; }
.doc .kicker { margin: 0 0 8px; color: var(--accent-strong); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.doc h1 { margin: 0 0 10px; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.03em; }
.doc .meta { margin: 0 0 32px; color: var(--muted); }
.doc h2 { margin: 40px 0 10px; font-size: 22px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc .summary {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--text);
}
.doc .summary svg { flex: none; width: 24px; height: 24px; color: var(--accent-strong); margin-top: 2px; }
.doc .summary p { margin: 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0 8px; }
.doc [id] { scroll-margin-top: 80px; }

/* ---------- menšie obrazovky ---------- */

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screens .phone { width: 220px; }
}

@media (max-width: 820px) {
  /* karty vedľa ikony, nech nie sú zbytočne vysoké */
  .trust .card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
  }
  .trust .card .icon { grid-row: 1 / span 2; margin: 0; }
  .trust .card h3 { margin-top: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; padding-bottom: 56px; }
  .hero-visual { order: 2; }
  .phone { width: 260px; }
  .float-card { left: 50%; transform: translateX(-160px); bottom: 12%; }
  .trust, .contact { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }

  /* screenshoty vedľa seba na posúvanie */
  .screens {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 24px 18px;
    margin: 0 -24px;
    justify-items: initial;
  }
  .screens figure { flex: none; scroll-snap-align: center; }
}

@media (max-width: 560px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .nav a:not(.nav-keep) { display: none; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .steps .card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    padding: 20px;
  }
  .steps .card .icon { grid-row: 1 / span 3; margin: 0; }
  .trust .card { padding: 20px; }
  .lead { font-size: 17.5px; }
  .float-card { transform: translateX(-140px); padding: 12px 14px; }
  .screens { margin: 0 -18px; padding: 6px 18px 18px; }
}
