/* Snovia – styly webu. Pořadí: tokeny, základ, komponenty, sekce, články, responzivita. */

/* ---------- Písma (Inter, self-hosted) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokeny ---------- */
:root {
  --ink: #0b1020;
  --text: #1b2140;
  --muted: #5b6482;
  --line: #e4e7f0;
  --line-strong: #cfd4e3;
  --bg: #ffffff;
  --bg-alt: #f5f6fb;
  --primary: #5046e5;
  --primary-hover: #4338ca;
  --primary-soft: #eeedfd;
  --accent: #ffb547;
  --ok: #0f9d58;
  --ok-soft: #e6f6ee;
  --danger: #c4314b;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 72.5rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 23, 53, 0.06);
  --shadow-md: 0 1px 2px rgba(16, 23, 53, 0.06), 0 12px 32px -12px rgba(16, 23, 53, 0.22);
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
code {
  font: 0.88em var(--mono);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  overflow-wrap: anywhere;
}

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 600 0.95rem/1 var(--font);
  height: 2.75rem; padding: 0 1.25rem;
  border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--ghost { color: var(--ink); border-color: var(--line-strong); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--lg { height: 3rem; padding: 0 1.5rem; font-size: 1rem; }

/* ---------- Hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo svg { width: 1.75rem; height: 1.75rem; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 0.5rem 0.8rem; border-radius: 8px; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--ink); background: var(--bg-alt); }
.nav .btn { height: 2.5rem; margin-left: 0.5rem; }

/* ---------- Úvod ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(60rem 28rem at 85% -10%, rgba(80, 70, 229, 0.12), transparent 70%),
    linear-gradient(#fff, var(--bg-alt));
  border-bottom: 1px solid var(--line);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.hero__lead { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 33rem; }

.claim { margin-top: 2rem; max-width: 35rem; }
.claim__field {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 0.4rem 0.4rem 0.4rem 1.1rem; box-shadow: var(--shadow-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.claim__field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(80, 70, 229, 0.16), var(--shadow-md); }
.claim__icon { width: 1.35rem; height: 1.35rem; color: var(--muted); flex: none; margin-right: 0.25rem; }
.claim__input { flex: 1 1 8rem; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 1.15rem/1.5 var(--font); letter-spacing: -0.01em; color: var(--ink); padding: 0.5rem 0; text-align: right; }
.claim__input::placeholder { color: #a3a9bf; font-weight: 500; }
.claim__suffix { font: 500 1.15rem/1.5 var(--font); color: var(--muted); padding-right: 0.5rem; letter-spacing: -0.01em; }
.claim__hint { min-height: 1.5rem; margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted); }
.claim__hint[data-state="error"] { color: var(--danger); }
.claim__hint[data-state="ok"] { color: var(--ok); }

.checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; font-size: 0.9rem; color: var(--muted); }
.checks li { display: inline-flex; align-items: center; gap: 0.45rem; }
.checks svg { width: 1.05rem; height: 1.05rem; color: var(--ok); flex: none; }

/* Náhled panelu */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.panel__head { display: flex; align-items: center; gap: 0.85rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.panel__icon { width: 2.6rem; height: 2.6rem; border-radius: 10px; flex: none; background: linear-gradient(135deg, #6f66f2, #3d33c4); display: grid; place-items: center; color: #fff; }
.panel__icon svg { width: 1.4rem; height: 1.4rem; }
.panel__title { min-width: 0; flex: 1; }
.panel__title strong { display: block; color: var(--ink); font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.panel__title span { display: block; font: 0.82rem/1.4 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 0.3rem 0.7rem; flex: none; }
.badge::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.stats div { padding: 0.95rem 1.25rem; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: 0.78rem; color: var(--muted); }
.stats dd { margin: 0.1rem 0 0; font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.stats dd small { font-weight: 500; color: var(--muted); font-size: 0.85em; }
.log { margin: 0; padding: 1rem 1.25rem 1.2rem; background: var(--ink); color: #aeb5d0; font: 0.78rem/1.85 var(--mono); overflow: hidden; }
.log p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log time { color: #6d7596; margin-right: 0.6rem; }
.log .ok { color: #5fd39a; }

/* ---------- Sekce ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.035em; }
.section__head p { margin-top: 0.85rem; color: var(--muted); font-size: 1.075rem; }

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

.step { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.step__no { font: 600 0.85rem var(--mono); color: var(--primary); }
.step h3 { margin-top: 0.6rem; font-size: 1.2rem; }
.step p { margin-top: 0.6rem; color: var(--muted); }

.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.section--alt .feature { box-shadow: var(--shadow-sm); }
.feature__icon { width: 2.5rem; height: 2.5rem; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.feature__icon svg { width: 1.3rem; height: 1.3rem; }
.feature h3 { margin-top: 1.1rem; font-size: 1.05rem; letter-spacing: -0.01em; }
.feature p { margin-top: 0.45rem; color: var(--muted); font-size: 0.95rem; }
.tag { display: inline-block; vertical-align: 0.05em; margin-left: 0.35rem; font-size: 0.7rem; font-weight: 600; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.5rem; }

/* Ceník */
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; }
.plan--featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-md); }
.plan h3 { font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; }
.plan__label { font-size: 0.72rem; font-weight: 600; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 0.15rem 0.6rem; }
.plan__price { margin-top: 1rem; font-size: 2.5rem; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.plan__price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; font-size: 0.95rem; }
.plan li { display: flex; gap: 0.6rem; align-items: flex-start; }
.plan li svg { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; color: var(--ok); flex: none; }
.note { margin-top: 1.5rem; font-size: 0.9rem; color: var(--muted); }

/* Odkazy na návody */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card-link { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; transition: border-color 0.15s, box-shadow 0.15s; }
.card-link:hover { border-color: var(--primary); box-shadow: var(--shadow-md); color: var(--ink); }
.card-link span { display: block; margin-top: 0.35rem; font-weight: 400; font-size: 0.95rem; color: var(--muted); letter-spacing: 0; }

/* FAQ */
.faq { max-width: 46rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; flex: none; margin-right: 0.25rem; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > p { padding: 0 2rem 1.3rem 0; color: var(--muted); }

/* Výzva k akci */
.cta { background: var(--ink); color: #c4cadf; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.03em; }
.cta p { margin-top: 0.5rem; }
.cta .btn--primary { background: #fff; color: var(--ink); }
.cta .btn--primary:hover { background: var(--accent); color: var(--ink); }

/* Patička */
.site-footer { background: var(--ink); color: #8f97b4; font-size: 0.9rem; padding-block: 2.5rem 3rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.site-footer .logo { color: #fff; }
.site-footer p { margin-top: 0.9rem; max-width: 30rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; align-content: start; }
.site-footer a:not(.logo) { color: #c4cadf; text-decoration: none; }
.site-footer a:not(.logo):hover { color: #fff; text-decoration: underline; }

/* Reklamní místa */
.ad { margin-block: 2rem; min-height: 7rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; }
.ad[hidden] { display: none; }
.ad__label { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.02em; }
.ad--preview { background: repeating-linear-gradient(45deg, #fafbfe, #fafbfe 10px, #f1f3fa 10px, #f1f3fa 20px); border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--muted); font-size: 0.85rem; }

/* ---------- Články ---------- */
.article-page { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.article-layout { display: grid; grid-template-columns: minmax(0, 44rem); justify-content: center; gap: 3rem; }
.article { min-width: 0; }
.rail { display: none; }
@media (min-width: 72rem) {
  .article-layout { grid-template-columns: minmax(0, 44rem) 18.75rem; }
  .rail { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 5.5rem; align-self: start; }
  .rail .ad { margin: 0; min-height: 15.625rem; width: 18.75rem; }
  .rail .ad + .ad { min-height: 37.5rem; }
}
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); }
.article h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 700; letter-spacing: -0.04em; }
.article .lead { margin-top: 1rem; font-size: 1.15rem; color: var(--muted); }
.article h2 { margin-top: 2.5rem; font-size: 1.45rem; letter-spacing: -0.025em; }
.article p, .article li { color: var(--text); }
.article h2 + p, .article h2 + ol, .article h2 + ul { margin-top: 0.9rem; }
.article p + p { margin-top: 1rem; }
.article ol, .article ul { padding-left: 1.4rem; display: grid; gap: 0.6rem; }
.article ol::marker, .article li::marker { color: var(--primary); font-weight: 600; }
.article .cards { margin-top: 2rem; grid-template-columns: 1fr; }

/* ---------- Responzivita ---------- */
@media (max-width: 62rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .panel { max-width: 34rem; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .nav a:not(.btn) { display: none; }
  .grid--3, .cards { grid-template-columns: 1fr; }
  .claim__field { padding: 0.5rem; }
  .claim__input { flex-basis: 6rem; padding-left: 0.6rem; }
  .claim__field .btn { width: 100%; margin-top: 0.25rem; }
  .stats div { padding-inline: 0.9rem; }
  .log { display: none; }
  .site-header .container .btn--primary { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
