/* PixelChat — prodejní web. Design v duchu pixelbrothers.cz (navy #012970, čisté světlé). */
:root {
  --navy: #012970;
  --navy-2: #0a3a93;
  --blue: #2563ff;
  --blue-soft: #eaf0ff;
  --ink: #0c1733;
  --muted: #586a8c;
  --surface: #f6f9ff;
  --line: #e4eaf6;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(1, 41, 112, .10);
  --shadow-sm: 0 6px 20px rgba(1, 41, 112, .07);
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* pojistka proti horizontálnímu scrollu celé stránky */
}
img, pre { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Tlačítka ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 22px rgba(1, 41, 112, .25); }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(1, 41, 112, .32); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-light:hover { background: rgba(255, 255, 255, .24); transform: translateY(-2px); }

/* ── Navigace ─────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; }
.logo-mark { width: 34px; height: 34px; display: block; flex: none; }
.logo-text { font-weight: 700; letter-spacing: -.01em; }
.logo-text strong { color: var(--navy); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-weight: 500; color: #34406a; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(37, 99, 255, .12), transparent 60%),
    linear-gradient(180deg, var(--surface), #fff);
  padding: 84px 0 96px;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px;
  font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 6px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin: 18px 0 18px; }
.grad { background: linear-gradient(120deg, var(--navy), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin: 28px 0 22px; flex-wrap: wrap; }
.hero-points { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; color: #34406a; font-size: 14.5px; font-weight: 500; }

/* Chat demo bublina */
.hero-visual { display: flex; justify-content: center; }
.chat-demo {
  width: 100%; max-width: 380px; background: #fff; border-radius: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden; transform: rotate(.5deg);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--navy); color: #fff; }
.chat-ava { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-weight: 800; }
.chat-ava img { display: block; }
.chat-head strong { display: block; font-size: 15px; }
.chat-on { font-size: 12px; color: #7dffc0; }
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); min-height: 240px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-typing { align-self: flex-start; display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); padding: 12px 14px; border-radius: 14px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b9c4dd; animation: blink 1.2s infinite both; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat-input { padding: 14px 18px; color: #9aa7c4; font-size: 14px; border-top: 1px solid var(--line); background: #fff; }

/* ── Trust ────────────────────────────────────── */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 20px 24px; color: var(--muted); font-size: 14px; }
.trust strong { color: var(--navy); font-weight: 700; }
.trust .dot { color: var(--line); }

/* ── Sekce ────────────────────────────────────── */
.section { padding: 88px 0; }
.section.alt { background: var(--surface); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 14px; }
.section-sub { color: var(--muted); font-size: 17px; }
.grid { display: grid; gap: 22px; }
.features { grid-template-columns: repeat(4, 1fr); }

/* Karty funkcí */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic { width: 50px; height: 50px; border-radius: 13px; background: var(--blue-soft); display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* Kroky */
.steps { grid-template-columns: repeat(3, 1fr); }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; min-width: 0; }
.step-n { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.code { margin-top: 16px; max-width: 100%; background: #0b1733; color: #cdd9ff; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; padding: 14px; border-radius: 11px; overflow-x: auto; line-height: 1.5; }

/* Zabezpečení */
.sec-grid { grid-template-columns: repeat(4, 1fr); }
.sec-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px; box-shadow: var(--shadow-sm); }
.sec-item h3 { font-size: 16px; margin-bottom: 7px; }
.sec-item p { color: var(--muted); font-size: 14px; }

/* Ceník */
.pricing { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.price { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative; }
.price h3 { font-size: 18px; font-weight: 700; color: var(--navy); }
.price .amount { font-size: 18px; color: var(--muted); margin: 12px 0 4px; }
.price .num { font-size: 38px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.price ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; flex: 1; }
.price li { font-size: 14.5px; padding-left: 26px; position: relative; color: #2c3858; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.price li.off { color: #9aa7c4; }
.price li.off::before { content: "–"; color: #c4cfe4; }
.price li.on::before { content: "★"; }
.price.featured { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-6px); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--navy), #06226e 60%, var(--blue)); color: #fff; padding: 84px 0; text-align: center; }
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.cta p { font-size: 18px; color: rgba(255, 255, 255, .82); margin-bottom: 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { background: #06112b; color: #aeb9d6; padding: 56px 0 26px; font-size: 14.5px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand { max-width: 320px; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand p { color: #8694b8; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-cols a { display: block; margin-bottom: 9px; color: #aeb9d6; transition: color .15s; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; color: #6f7ea6; font-size: 13px; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 980px) {
  .features, .sec-grid, .pricing { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .price.featured { transform: none; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px;
  }
  .nav-toggle { display: flex; }
  .features, .sec-grid, .pricing { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-inner { flex-direction: column; gap: 28px; }
  /* Snippet na mobilu raději zalomit než scrollovat. */
  .code { white-space: pre-wrap; word-break: break-word; }
}
/* ── Changelog ────────────────────────────────── */
.cl-hero { background: linear-gradient(180deg, var(--surface), #fff); padding: 64px 0 30px; }
.cl-hero h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; letter-spacing: -.02em; margin: 16px 0 14px; }
.cl-section { padding-top: 44px; }
.cl-wrap { max-width: 760px; }
/* Levá kolejnice: svislá čára + tečky vlevo, obsah napravo (nepřekrývá se). */
.timeline { position: relative; margin-left: 7px; padding-left: 32px; border-left: 2px solid var(--line); }
.rel { position: relative; padding-bottom: 36px; }
.rel:last-child { padding-bottom: 0; }
.rel::before { content: ""; box-sizing: border-box; position: absolute; left: -40px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.rel-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ver { font-weight: 800; color: var(--navy); font-size: 17px; }
.rel-head time { color: var(--muted); font-size: 14px; }
.rel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.rel-card h2 { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.rel-card ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.rel-card li { font-size: 14.5px; color: #2c3858; display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.tag { flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; margin-top: 1px; }
.tag-new { background: #e9f9f0; color: #1c7a47; }
.tag-imp { background: var(--blue-soft); color: var(--blue); }
.tag-fix { background: #fff3e0; color: #9a6212; }
@media (max-width: 640px) {
  .timeline { margin-left: 4px; padding-left: 24px; }
  .rel::before { left: -31px; width: 12px; height: 12px; }
}
