/* muj-byznys — statická prezentace
   Vizuální jazyk převzat z design systému „Modernist“ (design/_ds). */
:root {
  --main: #1f3864;
  --accent: #62ef69;
  --accent2: #258f99;
  --grad: linear-gradient(90deg, #62ef69, #258f99);
  --bg: #f3f2f2;
  --surface: #e6e9ee;
  --text: #1f3864;
  --muted: #4f5d7a;
  --divider: #1f3864;
  --accent-600: #258f99;
  --accent-700: #1a6f78;
  --accent-100: #e6f7f0;
  --accent-200: #c9f7cc;
  --n-200: #e3e6ec;
  --n-300: #cfd5e0;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--main); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); margin-bottom: 32px; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 8px; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface); padding: 1px 6px; }
.accent { color: var(--main); background: linear-gradient(90deg,#62ef69,#258f99) 0 92%/100% .22em no-repeat; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.kicker { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-700); margin-bottom: 20px; }
h1 + .lead { margin-top: 28px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 44ch; }

/* NAV */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 var(--gutter); background: var(--bg); border-bottom: 2px solid var(--divider); }
.brand { font-weight: 900; font-size: 1.15rem; text-decoration: none; letter-spacing: -.02em; }
.brand::before { content: "</>"; margin-right: 10px; }
.collab { font-size: .85rem; color: var(--muted); padding-left: 24px; border-left: 2px solid var(--divider); }
.collab strong { color: var(--text); }
.menu { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: .9rem; font-weight: 500; }
.menu a:not(.btn) { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.menu a:not(.btn):hover, .menu a.active { border-bottom-color: var(--accent); }
.progress { position: fixed; top: 64px; left: 0; right: 0; height: 3px; z-index: 21; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); }

/* BUTTONS / TAGS */
.btn { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 12px 22px; font: 600 .95rem var(--font); text-decoration: none; border: 2px solid var(--text); border-radius: 0; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--main); border-color: var(--main); color: #fff; }
.btn-primary:hover { background: var(--grad); border-color: var(--main); color: var(--main); }
.btn-primary:active { background: var(--accent2); border-color: var(--main); color: var(--main); }
.btn-secondary { background: transparent; }
.btn-secondary:hover { background: var(--text); color: var(--bg); }
.menu .btn { padding: 8px 16px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; padding: 3px 9px; }
.tag-accent { background: var(--accent); color: var(--main); }
.tag-neutral { background: var(--n-300); color: var(--text); }
.tag-outline { border: 2px solid currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* SLIDES */
.slide { position: relative; min-height: 100vh; padding: 120px 0 80px; display: flex; align-items: center; border-bottom: 2px solid var(--divider); scroll-margin-top: 0; }
.slide > .wrap { position: relative; }
.slide.alt { background: var(--surface); }
.slide.dark { background: var(--main); color: var(--bg); }
.slide.dark .kicker { color: var(--accent); }
.slide.dark .cell { border-color: #4f5d7a; }
.slide.dark .cell p { color: #d7d3d3; }
.slide.cta { background: var(--accent-100); flex-wrap: wrap; align-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero { padding-top: 96px; }
.scroll-hint { position: absolute; left: var(--gutter); bottom: 24px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; color: var(--muted); }
.scroll-hint:hover { color: var(--accent-700); }

/* CELLS GRID */
.cells { display: grid; border-top: 2px solid var(--divider); border-left: 2px solid var(--divider); }
.cells-3 { grid-template-columns: repeat(3, 1fr); }
.cells-4 { grid-template-columns: repeat(4, 1fr); }
.cell { padding: 24px; border-right: 2px solid var(--divider); border-bottom: 2px solid var(--divider); }
.cell p { color: var(--muted); margin: 0; font-size: .95rem; }
.slide.dark .cells { border-color: #4f5d7a; }
.num { display: block; font-weight: 800; font-size: .85rem; color: var(--accent2); margin-bottom: 28px; }
.cells-4 .cell { transition: background .15s; }
.cells-4 .cell:hover { background: var(--accent-200); }

/* TICKS */
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { padding: 12px 0 12px 32px; position: relative; border-top: 2px solid var(--divider); font-weight: 500; }
.ticks li:last-child { border-bottom: 2px solid var(--divider); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 12px; height: 12px; background: var(--grad); }

/* HERO VISUAL / REEL */
.reel { position: relative; aspect-ratio: 4/5; background: var(--main); color: var(--bg); overflow: hidden; border: 2px solid var(--divider); }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; display: block; }
.reel-fallback { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; }
.reel-fallback p { margin: 0; font-weight: 800; font-size: 1.4rem; letter-spacing: -.01em; }
.stack { position: relative; flex: 1; margin: 24px 0; }
.stack i { position: absolute; left: 0; right: 0; height: 30%; border: 2px solid var(--bg); background: var(--main); }
.stack i:nth-child(1) { top: 0; left: 0; right: 24%; }
.stack i:nth-child(2) { top: 26%; left: 12%; right: 12%; background: var(--grad); border-color: var(--accent); }
.stack i:nth-child(3) { top: 52%; left: 24%; right: 0; }
.media-grid { margin-top: 32px; }
.media-grid .reel { aspect-ratio: 16/10; border-width: 0 2px 2px 0; border-color: var(--divider); }
.note { margin-top: 20px; font-size: .85rem; color: var(--muted); max-width: 70ch; }

/* INVOICE */
.invoice { margin: 0; background: #fff; border: 2px solid var(--divider); padding: 28px; box-shadow: 10px 10px 0 var(--accent2); }
.inv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.inv-no { font-size: 1.6rem; font-weight: 900; margin-left: 10px; letter-spacing: -.02em; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; padding: 16px 0; border-top: 2px solid var(--divider); border-bottom: 2px solid var(--divider); }
.inv-parties small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding: 8px 0; border-bottom: 2px solid var(--divider); }
.table td { padding: 10px 0; border-bottom: 1px solid var(--n-300); }
.table .r { text-align: right; }
.table .total td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--divider); }
.inv-foot { display: flex; gap: 20px; align-items: center; margin-top: 20px; }
.inv-foot p { margin: 0; font-size: .9rem; }
.inv-foot small { color: var(--muted); }
.qr { width: 84px; height: 84px; flex: none; background:
  conic-gradient(from 90deg at 3px 3px, transparent 90deg, var(--text) 0) 0 0/12px 12px,
  var(--bg); border: 6px solid var(--text); position: relative; }
.qr::before, .qr::after { content: ""; position: absolute; width: 22px; height: 22px; border: 4px solid var(--text); background: var(--bg); }
.qr::before { top: -2px; left: -2px; } .qr::after { bottom: -2px; right: -2px; background: var(--accent2); }

/* COMPARE */
.compare { margin: 0; }
.compare .row { margin-bottom: 28px; }
.compare .row > span { display: block; font-weight: 700; margin-bottom: 8px; }
.track { height: 48px; border: 2px solid var(--divider); background: #fff; }
.track i { display: block; height: 100%; width: 0; background: var(--text); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.track i.hot { background: var(--grad); }
.compare figcaption { font-size: .85rem; color: var(--muted); }

/* CODE */
.code { margin: 0; padding: 28px; background: var(--main); color: var(--bg); font: 500 .95rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; border: 2px solid var(--divider); box-shadow: 10px 10px 0 var(--accent2); overflow-x: auto; }
.code code { background: none; padding: 0; font-size: inherit; }
.code .c { color: var(--accent); }
.foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px var(--gutter); border-top: 2px solid var(--divider); font-size: .8rem; color: var(--muted); }
.slide.cta { padding-bottom: 110px; }
.release-meta { margin-top: 20px; font-size: .85rem; color: var(--muted); }
.release-meta a { color: inherit; }
.release-meta a:hover { color: var(--accent-700); }
.install { min-width: 0; }
.install .copy { margin-top: 20px; }
.docker-note { margin-top: 20px; font-size: .85rem; color: var(--muted); }
.docker-note code { font-size: inherit; }

/* REVEAL */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

/* FOOTER */
footer { background: var(--surface); color: var(--muted); font-size: .8rem; padding: 16px var(--gutter); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 2px solid var(--divider); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .menu a:not(.btn) { display: none; }
  .collab { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .cells-3, .cells-4 { grid-template-columns: 1fr 1fr; }
  .slide { min-height: auto; padding: 104px 0 64px; }
  .hero-visual { order: -1; max-width: 360px; }
  .scroll-hint { display: none; }
}
@media (max-width: 960px) { .cells-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } .media-grid > .reel:last-child:nth-child(odd) { aspect-ratio: 32/10; background: var(--bg); } .media-grid > .reel:last-child:nth-child(odd) img { object-fit: contain; } }
@media (max-width: 560px) {
  .cells-3, .cells-4 { grid-template-columns: 1fr; }
  .invoice { padding: 18px; box-shadow: 6px 6px 0 var(--accent2); }
  .code { box-shadow: 6px 6px 0 var(--accent2); font-size: .82rem; }
}
@media print {
  .nav, .progress, .scroll-hint { display: none; }
  .slide { min-height: auto; page-break-after: always; padding: 32px 0; }
  .rv { opacity: 1; transform: none; }
}

/* "Co je nového" — release notes dialog (script.js) */
.notes-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0; border: 2px solid var(--main); border-radius: 0; background: var(--bg); color: var(--text); font-family: var(--font); box-shadow: 10px 10px 0 var(--accent2); }
.notes-dialog[open] { display: flex; flex-direction: column; }
.notes-dialog::backdrop { background: rgba(31, 56, 100, .45); }
.notes-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: var(--main); color: #fff; font-size: 1.05rem; }
.notes-close { border: 0; background: transparent; color: inherit; font-size: 1.1rem; cursor: pointer; padding: 4px 8px; }
.notes-body { flex: 1; min-height: 0; padding: 8px 20px 4px; overflow-y: auto; line-height: 1.55; }
.notes-body h2 { font-size: 1.4rem; margin: 12px 0 8px; }
.notes-body h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.notes-body ul { margin: 0 0 12px; padding-left: 1.3em; }
.notes-body li { margin: 4px 0; }
.notes-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface); padding: 1px 5px; }
.notes-code { position: relative; margin: 6px 0 14px; }
.notes-code pre { margin: 0; padding: 14px 52px 14px 16px; background: var(--main); color: var(--bg); font: 500 .9rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; }
.notes-copy { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; font-size: 1.05rem; cursor: pointer; }
.notes-copy:hover, .notes-copy:focus-visible { background: rgba(255, 255, 255, .15); }
.notes-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 20px 18px; }
.notes-raw { color: var(--muted); font-size: .85rem; }
