/* Regula — web. Farby z appky: modrá #1f9ede, červená #e44553, žltá pravítka, zelená rezacej podložky. */

:root {
  --bg: #fbfbf6;
  --band: #f2f1ea;
  --surface: #ffffff;
  --ink: #22222a;
  --soft: #63636f;
  --line: rgba(20, 20, 30, 0.1);
  --tick: rgba(20, 20, 30, 0.45);
  --accent: #1f9ede;
  --accent-ink: #0d6a9a;
  --mark: #e44553;
  --yellow: #f6c83e;
  --frame: #1b1c22;
  --kbd-bg: #ffffff;
  --shadow: 0 18px 50px rgba(20, 30, 50, 0.16), 0 3px 10px rgba(20, 30, 50, 0.08);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15161b;
    --band: #1b1c22;
    --surface: #212229;
    --ink: #e7e7ee;
    --soft: #a0a0b0;
    --line: rgba(255, 255, 255, 0.1);
    --tick: rgba(255, 255, 255, 0.4);
    --accent: #3aaeea;
    --accent-ink: #7fcaf2;
    --frame: #0b0b0e;
    --kbd-bg: #2a2b33;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 3px 10px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Ubuntu, Cantarell, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.08rem; letter-spacing: -0.01em; }
p { margin: 0; }

code, kbd, pre { font-family: ui-monospace, "JetBrains Mono", "DejaVu Sans Mono", Menlo, monospace; }
code { font-size: 0.88em; background: var(--band); padding: 0.1em 0.35em; border-radius: 5px; overflow-wrap: anywhere; }
kbd {
  display: inline-block;
  font-size: 0.82em;
  line-height: 1.4;
  padding: 0.05em 0.45em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--kbd-bg);
  color: var(--ink);
  white-space: nowrap;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
section { padding: 84px 0; }
section.band { background: var(--band); }
.section-lede { color: var(--soft); font-size: 1.08rem; margin-top: 10px; max-width: 62ch; }
.small { font-size: 0.92rem; color: var(--soft); margin-top: 10px; }

/* ---- ozdobné čiarky pravítka (len dekorácia, nie v mierke) ---- */
.ticks {
  height: 18px;
  background-image:
    linear-gradient(to right, var(--tick) 1px, transparent 1px),
    linear-gradient(to right, var(--tick) 1px, transparent 1px),
    linear-gradient(to right, var(--tick) 1px, transparent 1px);
  background-size: 60px 18px, 30px 11px, 6px 6px;
  background-repeat: repeat-x;
  opacity: 0.55;
}

/* ---- tlačidlá ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { color: #fff; background: #1689c4; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-small { padding: 7px 14px; font-size: 0.92rem; }
.btn .size { font-weight: 500; opacity: 0.75; font-size: 0.88em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---- hlavička ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--soft); text-decoration: none; font-weight: 550; }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* ---- hero ---- */
.hero { padding: 72px 0 64px; }
.hero-text { text-align: center; max-width: 820px; }
.eyebrow { color: var(--accent-ink); font-weight: 650; font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.2rem); margin-top: 12px; letter-spacing: -0.035em; }
.hero h1 .u { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 0.14em; text-underline-offset: 0.12em; text-decoration-skip-ink: none; }
.lede { font-size: clamp(1.05rem, 2.1vw, 1.22rem); color: var(--soft); margin: 20px auto 0; max-width: 60ch; }
.hero .cta { justify-content: center; }

.screen {
  margin: 52px 0 0;
  padding: clamp(6px, 1.2vw, 12px);
  background: var(--frame);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}
.screen video { width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; background: #fbfbf6; }
.hero .ticks { margin-top: 22px; }
.caption { color: var(--soft); font-size: 0.92rem; margin-top: 10px; text-align: center; }

/* ---- ako to funguje ---- */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.steps p { color: var(--soft); margin-top: 8px; }
.steps b { color: var(--ink); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--yellow);
  color: #3d2f00;
  font-weight: 750;
  margin-bottom: 14px;
}
.note { margin-top: 22px; color: var(--soft); max-width: 75ch; }

/* ---- nástroje ---- */
.groups { display: grid; gap: 18px; margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 10px; min-width: 0; }
.group h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); }
.tools { list-style: none; padding: 0; margin: 12px 0 0; }
.tools li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.tools li:first-child { border-top: 0; }
.tools img {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 7px;
  border-radius: 10px;
  background: #f4f4ef;                 /* ikonky z appky sú kreslené na svetlé pozadie */
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.tools div { min-width: 0; }
.tools b { display: block; }
.tools span { display: block; color: var(--soft); font-size: 0.95rem; margin-top: 2px; }

/* ---- presnosť ---- */
.features { display: grid; gap: 18px; margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; border-top: 3px solid var(--accent); min-width: 0; }
.feature:nth-child(2) { border-top-color: var(--mark); }
.feature:nth-child(3) { border-top-color: var(--yellow); }
.feature:nth-child(4) { border-top-color: #2e6b4f; }
.feature:nth-child(5) { border-top-color: var(--soft); }
.feature p { color: var(--soft); margin-top: 8px; }

/* ---- galéria ---- */
.gallery { display: grid; gap: 22px; margin-top: 36px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.gallery figure { margin: 0; min-width: 0; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(20, 30, 50, 0.08); transition: transform 0.15s ease; }
.gallery a:hover { transform: translateY(-2px); }
.gallery img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.gallery figcaption { color: var(--soft); font-size: 0.92rem; margin-top: 8px; }

/* ---- skratky ---- */
.keys { display: grid; gap: 10px 40px; margin: 32px 0 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.keys div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.keys dt { font-weight: 600; flex: none; }
.keys dd { margin: 0; color: var(--soft); text-align: right; }

/* ---- inštalácia ---- */
.install { list-style: none; counter-reset: step; padding: 0; margin: 32px 0 0; }
.install > li { counter-increment: step; position: relative; padding: 0 0 30px 48px; min-width: 0; }
.install > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #3d2f00;
  font-weight: 750;
}
.install > li::after { content: ""; position: absolute; left: 14.5px; top: 34px; bottom: 6px; width: 1px; background: var(--line); }
.install > li:last-child::after { display: none; }
.install h3 { margin-bottom: 10px; }
.install p { margin-top: 6px; }
.optional { font-size: 0.75rem; font-weight: 600; color: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; letter-spacing: 0; }

.codebox { position: relative; margin-top: 10px; }
.code {
  margin: 10px 0 0;
  max-width: 100%;
  overflow-x: auto;                 /* dlhý riadok sa posúva v rámčeku, nie celá stránka */
  background: #1c1d23;
  color: #e9e9f0;
  border: 1px solid var(--line);    /* v tmavom režime by kód splynul s pozadím */
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.55;
}
.codebox .code { margin: 0; padding-right: 78px; }
.code code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; color: inherit; }
.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  font: 600 0.78rem system-ui, sans-serif;
  color: #e9e9f0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 4px 9px;
  cursor: pointer;
}
.copy:hover { background: rgba(255, 255, 255, 0.18); }

/* ---- stiahnutie ---- */
.download { display: flex; gap: 26px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 32px; box-shadow: var(--shadow); }
.download-text { min-width: 0; }
.download-text > p { color: var(--soft); margin-top: 10px; }
.download .cta { margin-top: 20px; }
@media (max-width: 560px) {
  .download { flex-direction: column; padding: 24px; }
  .download img { width: 56px; height: 56px; }
}

/* ---- pätička ---- */
.foot { padding: 0 0 36px; }
.foot .ticks { margin-bottom: 22px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--soft); font-size: 0.95rem; }
.foot-row span { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding: 48px 0 52px; }
  .screen { margin-top: 36px; }
  .keys dd { text-align: left; }
  .codebox .code { padding-top: 42px; padding-right: 16px; }     /* „Copy" má na mobile vlastný pruh nad kódom */
}
