/* Písmo Inter (proměnný řez 400-800) z vlastního serveru místo Google Fonts -
   odpadá blokující CSS a spojení na další domény. Soubory jsou stejné, jaké
   posílá Google (v20). Licence SIL Open Font License. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/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;
}

/* ─────────────────────────────────────────────────────────────────────
   ONEPOST - web aplikace pro správu datových schránek
   Statický web (HTML + CSS + JS), stejný přístup jako atlasgroup.cz.
   Barvy vychází z loga: modrá #075985 (sky) + zelená #34d399 (emerald).
   ───────────────────────────────────────────────────────────────────── */

/* ── tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Brand - modrá škála */
  --navy-950: #051c2e;
  --navy-900: #082f49;
  --navy-800: #0c4a6e;
  --navy-700: #075985;
  --navy-600: #0369a1;
  --navy-100: #e0f2fe;
  --navy-50:  #f0f9ff;

  /* Brand - zelená škála */
  --green-700: #047857; /* text na bílé (AA) */
  --green-600: #059669;
  --green-500: #10b981;
  --green-400: #34d399; /* barva z loga */
  --green-300: #6ee7b7;
  --green-100: #d1fae5;
  --green-50:  #ecfdf5;

  --sky-400: #49a3d7; /* doplňková modrá z ikon */

  --brand-strip: linear-gradient(90deg, var(--green-400) 0%, var(--sky-400) 100%);

  /* Plochy */
  --bg:      #f6f8fa;
  --surface: #ffffff;

  /* Text */
  --ink-900: #0b1b2b;
  --ink-700: #26394d;
  --ink-600: #44586d;
  --ink-500: #64758a;
  --ink-400: #8796a8;
  --ink-300: #b6c1cd;

  /* Linky */
  --line:        #e4e9ef;
  --line-strong: #d0d8e2;

  /* Stíny */
  --shadow-xs: 0 1px 2px rgba(8, 47, 73, 0.05);
  --shadow-sm: 0 1px 2px rgba(8, 47, 73, 0.05), 0 1px 3px rgba(8, 47, 73, 0.07);
  --shadow-md: 0 4px 12px rgba(8, 47, 73, 0.07), 0 2px 4px rgba(8, 47, 73, 0.04);
  --shadow-lg: 0 24px 48px rgba(8, 47, 73, 0.11), 0 8px 16px rgba(8, 47, 73, 0.06);
  --shadow-xl: 0 40px 80px rgba(5, 28, 46, 0.25), 0 16px 32px rgba(5, 28, 46, 0.12);

  /* Rádiusy */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Typografie */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --header-h: 84px;
}

/* ── reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
}

img, svg { display: block; max-width: 100%; height: auto; }
site-header, site-footer, poptavka-form, client-logos, site-testimonials { display: contents; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
strong { font-weight: 600; }

::selection { background: var(--green-100); color: var(--navy-900); }

:focus-visible { outline: 2px solid var(--green-500); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--navy-900); color: #fff; font-weight: 600;
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

/* ── helpers ────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow { max-width: 880px; }

.section { padding: 112px 0; }
.section-sm { padding: 72px 0; }
.section-white { background: var(--surface); }
/* Navazující bílé plochy: mezera se nesčítá, druhá sekce nemá horní odsazení.
   (client-logos a site-testimonials mají display: contents, sourozencem
   je proto tento prvek.) */
.section-white + .section-white,
client-logos + .section-white,
site-testimonials[tone="white"] + .section-white { padding-top: 0; }
.section-tint { background: linear-gradient(180deg, var(--navy-50) 0%, var(--bg) 100%); }

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head--left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before {
  content: ""; width: 28px; height: 3px; border-radius: 3px;
  background: var(--brand-strip);
}
.on-dark .eyebrow, .eyebrow--light { color: var(--green-300); }

.h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink-900);
  text-wrap: balance;
  margin: 0 0 18px;
}
.h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
  text-wrap: balance;
}
.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-600);
  text-wrap: pretty;
}
.on-dark { color: #fff; }
.on-dark .h2, .on-dark .h3 { color: #fff; }
.on-dark .lead { color: rgba(255, 255, 255, 0.78); }

.accent {
  background: linear-gradient(90deg, var(--green-400), var(--green-300));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.text-green { color: var(--green-700); }

/* ── buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-900);
  transition: background .18s ease, border-color .18s ease, color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--green-400);
  color: var(--navy-950);
  box-shadow: 0 8px 22px rgba(52, 211, 153, 0.28);
}
.btn-primary:hover { background: var(--green-300); box-shadow: 0 12px 30px rgba(52, 211, 153, 0.36); }

.btn-dark {
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 8px 22px rgba(8, 47, 73, 0.22);
}
.btn-dark:hover { background: var(--navy-700); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink-900);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--navy-50); border-color: var(--ink-300); }

/* průhledné tlačítko na tmavém pozadí - bez rámečku, jen jemná plocha */
.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--green-700);
}
.link-arrow .arrow { width: 16px; height: 16px; flex-shrink: 0; transition: transform .18s ease; }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ─────────────────────────────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────────────────────────────── */
/* Hlavička na celou šířku: nahoře průhledná nad tmavým úvodem, po scrollu
   bílá (sklo) od okraje k okraji s jemnou linkou a stínem. */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.header[data-state="scrolled"] {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(8, 47, 73, 0.06);
}
.header .container { max-width: none; padding: 0 32px; }

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  transition: height .3s ease;
}
.header[data-state="scrolled"] .header-bar { height: 64px; }

.brand { display: flex; align-items: center; justify-self: start; }
.brand-logo { height: 26px; width: auto; }
.brand-logo--dark { display: none; }
.header[data-state="scrolled"] .brand-logo--light { display: none; }
.header[data-state="scrolled"] .brand-logo--dark { display: block; }

.nav { display: flex; align-items: center; gap: 2px; justify-self: center; }
.nav-home, .nav-mobile-only { display: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 13px;
  font-size: 14px; font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
  border: 0; background: transparent;
  border-radius: 10px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover, .nav-item:focus-within > .nav-link { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav-link.is-current { color: var(--green-300); }
.header[data-state="scrolled"] .nav-link { color: var(--ink-700); }
.header[data-state="scrolled"] .nav-link:hover,
.header[data-state="scrolled"] .nav-item:focus-within > .nav-link { background: rgba(8, 47, 73, 0.06); color: var(--ink-900); }
.header[data-state="scrolled"] .nav-link.is-current { color: var(--green-700); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s ease; }

/* Dropdown Doplňky */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 640px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-dropdown::before { /* hover most přes mezeru */
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item[data-open="true"] .nav-dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav-item:hover .chev, .nav-item[data-open="true"] .chev { transform: rotate(180deg); }
.nav-dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-dropdown a.dd-link {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  transition: background .15s ease;
}
.nav-dropdown a.dd-link:hover { background: var(--navy-50); }
.dd-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--green-50);
  color: var(--green-600);
  transition: background .15s ease, color .15s ease;
}
.dd-icon svg { width: 19px; height: 19px; }
.dd-link:hover .dd-icon, .dd-link.is-current .dd-icon { background: var(--green-400); color: var(--navy-950); }
.dd-text { min-width: 0; padding-top: 1px; }
.dd-link strong { display: block; font-size: 14px; color: var(--ink-900); margin-bottom: 2px; }
.dd-text > span { display: block; font-size: 13px; line-height: 1.45; color: var(--ink-500); }
.dd-link.is-current { background: var(--green-50); }
/* „Všechny doplňky“ jen v mobilním menu - na mobilu se na /doplnky jinak nedá dostat */
.nav-dropdown a.dd-all { display: none; }

.header-right { display: flex; align-items: center; gap: 8px; justify-self: end; }
.btn-login {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: background .18s ease, color .18s ease;
}
.btn-login svg { width: 16px; height: 16px; }
.btn-login:hover { background: rgba(255, 255, 255, 0.18); }
.header[data-state="scrolled"] .btn-login { color: var(--navy-800); background: rgba(8, 47, 73, 0.06); }
.header[data-state="scrolled"] .btn-login:hover { background: rgba(8, 47, 73, 0.1); }
.header .btn-primary { min-height: 42px; padding: 0 18px; font-size: 14px; border-radius: 10px; box-shadow: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  padding: 0; border: 0; background: transparent;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle-bar {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .2s ease, background .15s ease;
}
.header[data-state="scrolled"] .nav-toggle-bar,
.header[data-menu-open="true"] .nav-toggle-bar { background: var(--ink-900); }
.header[data-menu-open="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header[data-menu-open="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.header[data-menu-open="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────────────────────────────────
   DARK HERO / PAGE INTRO
   ───────────────────────────────────────────────────────────────────── */
.dark-bg {
  position: relative;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(52, 211, 153, 0.16), transparent 60%),
    radial-gradient(70% 80% at 0% 0%, rgba(73, 163, 215, 0.22), transparent 60%),
    linear-gradient(170deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  overflow: hidden;
}
/* Stuhy z tenkých linek v barvách značky - každá tmavá sekce má vlastní
   kompozici (assets/vlna-*.svg, generované skriptem, viz CLAUDE.md). */
.dark-bg::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: url("/assets/vlna-podstranka.svg?v=3") center / cover no-repeat;
  opacity: .3;
  pointer-events: none;
}
/* Úvod: pevné měřítko podle šířky - na vysokém hero (mobil) by "cover"
   stuhu zvětšil přes celou výšku. Vede za nadpisem. */
.hero.dark-bg::before {
  background-image: url("/assets/vlna-uvod.svg?v=3");
  background-size: max(100%, 1600px) auto;
  background-position: center top;
}
/* Doplňky: stuha šikmo z levého dolního do pravého horního rohu. */
.addons-section.dark-bg::before { background-image: url("/assets/vlna-doplnky.svg?v=3"); }
/* Stuha v doplňcích se stáhne až kousek před sekcí (třída bg-in ze script.js). */
.js .addons-section.dark-bg:not(.bg-in)::before { background-image: none; }

/* Home hero - jako úvod DATIFY: vlevo text, vpravo aplikace v mírném
   náklonu, která záměrně přetéká za pravý okraj okna. Na užších displejích
   se obojí složí pod sebe. */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 72px;
  padding-top: 132px; padding-bottom: 96px;
}
.hero .h1 { margin: 0 0 24px; font-size: clamp(40px, 4.4vw, 66px); }
.hero .lead { max-width: 560px; margin: 0 0 36px; color: rgba(255, 255, 255, 0.8); }

/* Ukázka aplikace (okno prohlížeče s interaktivní ukázkou, viz app-demo.js) */
.showcase {
  position: relative;
  margin-right: -320px;
  perspective: 1800px;
  perspective-origin: 65% 35%;
}
.showcase .browser {
  transform-origin: 0 50%;
  transition: transform 1.4s cubic-bezier(.22, 1, .36, 1), box-shadow .6s ease;
}
.showcase[data-cam="rest"] .browser { transform: rotateX(2deg) rotateY(-8deg); }
.showcase[data-cam="toolbar"] .browser,
.showcase[data-cam="side"] .browser { transform: rotateX(1deg) rotateY(-4deg); }
.showcase[data-cam="list"] .browser { transform: rotateX(1deg) rotateY(-5deg); }
@media (min-width: 1500px) { .showcase { margin-right: -420px; } }
.browser {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 16px;
  background: #0d2236;
  padding: 0 0 0;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 14px;
  height: 40px; padding: 0 16px;
  background: #11283e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.browser-dots { display: flex; gap: 7px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.browser-url {
  flex: 1; max-width: 360px; margin: 0 auto;
  height: 24px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px; color: rgba(255, 255, 255, 0.6);
}
.browser-url svg { width: 11px; height: 11px; }

/* ── Ukázka aplikace (app-demo.js) ─────────────────────────────────────
   Rozměry v px odpovídají návrhu 1440 × 740 (DESIGN v app-demo.js),
   celé rozhraní se pak škáluje na šířku rámu. Barvy jsou ze skutečné
   aplikace (paleta Tailwind: sky, slate, emerald, violet). Ukázka je jen
   vizuál - na myš nereaguje. */
.op-demo { position: relative; background: #f1f5f9; pointer-events: none; user-select: none; }
.op-demo-fallback { display: block; width: 100%; height: auto; }
.op-demo.is-ready .op-demo-fallback { display: none; }
.op-viewport { position: relative; overflow: hidden; }
.op-app {
  position: absolute; top: 0; left: 0;
  width: 1440px; height: 740px;
  transform-origin: 0 0;
  font-family: var(--font-sans);
  font-size: 14px; line-height: 1.4;
  color: #0f172a;
  background: #f1f5f9;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.op-cam {
  position: absolute; inset: 0;
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1), transform-origin 1.2s cubic-bezier(.22, 1, .36, 1), opacity .4s ease;
  will-change: transform;
}
.op-app svg { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; }
.op-app em { font-style: normal; font-size: 12px; color: #64748b; font-weight: 400; }

/* horní lišta */
.op-top {
  height: 56px; display: grid; grid-template-columns: 504px 462px 1fr; align-items: center;
  padding: 0 0 0 16px; background: #0c4a6e; color: #fff;
}
.op-top-left { display: flex; align-items: center; gap: 22px; }
.op-ico-grid svg { width: 20px; height: 20px; color: #cbd5e1; }
.op-logo { height: 24px; width: auto; }
.op-search {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 12px; border-radius: 6px;
  background: #082f49; color: #e2e8f0;
}
.op-search svg { width: 16px; height: 16px; }
.op-search kbd { margin-left: auto; font: inherit; font-size: 12px; color: #cbd5e1; }
.op-top-right { display: flex; align-items: center; justify-content: flex-end; gap: 22px; padding-right: 14px; color: #e0f2fe; }
.op-top-right .op-ico svg { width: 18px; height: 18px; }
.op-ai-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 7px;
  background: #8b5cf6; color: #fff; font-weight: 600;
  transition: box-shadow .2s ease, transform .2s ease;
}
.op-ai-btn svg { width: 16px; height: 16px; }
.op-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; margin-left: -8px;
  background: #e0e7ff; color: #3730a3; font-size: 13px; font-weight: 700;
}

/* nástrojová lišta */
.op-toolbar {
  position: relative;
  height: 56px; display: flex; align-items: center; gap: 8px;
  padding: 0 8px; background: #fff; border-bottom: 1px solid #e2e8f0;
}
.op-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 6px;
  background: #f1f5f9; font-weight: 600;
  transition: background .15s ease, box-shadow .2s ease, transform .15s ease;
}
.op-btn svg { width: 16px; height: 16px; color: #475569; }
.op-btn-green { background: #34d399; }
.op-btn-green svg { color: #0f172a; }
.op-pill {
  position: absolute; top: -8px; right: 10px;
  padding: 1px 6px; border-radius: 5px;
  background: #0ea5e9; color: #fff; font-size: 11px; font-weight: 600; line-height: 1.4;
  transition: opacity .35s ease, transform .35s ease;
}
.op-pill.is-split { animation: op-pill-split .45s cubic-bezier(.3, 1.6, .5, 1); box-shadow: 0 0 0 4px rgba(14, 165, 233, .25); }
.op-pill.is-gone { opacity: 0; transform: scale(.4); }
.op-btn.is-busy { background: #e0f2fe; box-shadow: 0 0 0 2px #7dd3fc; }
.op-btn.is-busy svg { color: #0284c7; }
.is-pressed { transform: scale(.96); }
.op-quota { margin-left: auto; display: flex; gap: 32px; padding-right: 14px; font-weight: 600; }
.op-quota span { display: inline-flex; align-items: center; gap: 8px; }
.op-quota svg { width: 16px; height: 16px; color: #64748b; }
.op-quota-ai svg { color: #7c3aed; }
.op-quota-credit svg { color: #f59e0b; }
.op-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; opacity: 0; transition: opacity .3s; }
.op-progress i { position: absolute; top: 0; bottom: 0; width: 30%; background: #0ea5e9; animation: op-bar 1.1s ease-in-out infinite; }
.op-demo.is-receiving .op-progress { opacity: 1; }

/* tělo + levý panel */
.op-body { display: grid; grid-template-columns: 300px 1fr; height: 628px; }
.op-side { position: relative; background: #fff; border-right: 1px solid #e2e8f0; padding: 14px 0 0; overflow: hidden; }
.op-side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 20px; height: 36px; }
.op-side-head strong { font-size: 16px; font-weight: 700; }
.op-side-head span { display: inline-flex; gap: 14px; color: #475569; }
.op-side-head svg { width: 18px; height: 18px; }
.op-find-row { display: flex; gap: 8px; margin: 10px 14px 10px 18px; }
.op-find {
  flex: 1; display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px; border-radius: 6px;
  border: 1px solid #e2e8f0; color: #64748b;
}
.op-find svg { width: 15px; height: 15px; color: #334155; }
.op-sort { width: 38px; height: 38px; border-radius: 6px; background: #f1f5f9; display: grid; place-items: center; color: #475569; }
.op-sort svg { width: 16px; height: 16px; }
.op-mbs { margin-top: 6px; }
.op-all, .op-mb-head { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 20px; }
.op-all { font-weight: 600; }
.op-all span { flex: 1; }
.op-all svg, .op-mb-head > svg { width: 16px; height: 16px; color: #334155; }
.op-mb { position: relative; }
.op-mb.is-open { background: #f8fafc; }
.op-mb.is-open::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #34d399; }
.op-mb-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-mb-name strong { font-weight: 600; }
.op-badge, .op-fbadge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 5px;
  display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 600; font-style: normal;
  transition: opacity .25s ease, transform .25s ease;
}
.op-badge { background: #ef4444; color: #fff; }
.op-badge.is-zero { opacity: 0; transform: scale(.4); }
.op-fbadge { background: #fee2e2; color: #dc2626; margin-left: auto; }
.is-bump { animation: op-bump .5s cubic-bezier(.3, 1.6, .5, 1); }
.op-folders { padding-bottom: 4px; }
.op-folder { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 16px 0 22px; color: #1e293b; }
.op-folder > svg:first-child { width: 17px; height: 17px; color: #64748b; }
.op-folder > svg:last-child { width: 16px; height: 16px; color: #94a3b8; margin-left: auto; }
.op-folder .op-fbadge + svg { margin-left: 10px; }
.op-folder.is-on > svg:first-child { color: #10b981; }

/* seznam zpráv */
.op-main { position: relative; overflow: hidden; }
.op-list { padding: 0 8px; transition: opacity .35s ease, transform .35s ease; }
.op-listbar { display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 10px; }
.op-check { display: inline-block; width: 22px; height: 22px; border-radius: 5px; border: 1px solid #cbd5e1; background: #fff; }
.op-seg { display: flex; padding: 3px; border-radius: 7px; background: #e2e8f0; }
.op-seg span { padding: 6px 12px; border-radius: 5px; color: #334155; }
.op-seg span.is-on { background: #fff; color: #0f172a; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.op-tools { margin-left: auto; display: flex; gap: 30px; color: #1e293b; }
.op-tools span { display: inline-flex; align-items: center; gap: 8px; }
.op-tools svg { width: 16px; height: 16px; color: #64748b; }
.op-table { background: #fff; border-radius: 4px; overflow: hidden; }
.op-thead, .op-row {
  display: grid;
  grid-template-columns: 46px 36px 56px 110px 1fr 360px 170px;
  align-items: center;
  height: 40px; border-bottom: 1px solid #e2e8f0;
}
.op-thead > span, .op-row > span { padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-thead { color: #334155; font-size: 13px; }
.op-thead > span + span { border-left: 1px solid #e2e8f0; height: 100%; display: flex; align-items: center; gap: 8px; }
.op-thead .c-chk, .op-row .c-chk { display: flex; justify-content: center; }
.op-ico-s svg { width: 14px; height: 14px; color: #475569; }
.op-row { position: relative; transition: background .2s ease; }
.op-star svg { width: 15px; height: 15px; color: #64748b; }
.op-clip { display: inline-flex; align-items: center; gap: 4px; color: #334155; font-size: 13px; }
.op-clip svg { width: 13px; height: 13px; color: #64748b; }
.op-tag { display: inline-block; padding: 2px 9px; border-radius: 5px; color: #fff; font-size: 12px; font-weight: 500; }
.op-row.is-unread { background: #f0f9ff; font-weight: 600; }
.op-row.is-unread::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: #0ea5e9; }
.op-row.is-new { animation: op-row-in .6s cubic-bezier(.22, 1, .36, 1), op-row-flash 2.4s ease; }
.op-row.is-pressed { background: #e0f2fe; transform: none; }
.op-row .c-from em { font-weight: 400; }

/* detail zprávy */
.op-detail {
  position: absolute; inset: 0;
  padding: 0 0 0 10px;
  opacity: 0; transform: translateX(24px); visibility: hidden;
  transition: opacity .4s ease, transform .5s cubic-bezier(.22, 1, .36, 1), visibility .4s;
}
.op-main.is-detail .op-list { opacity: 0; transform: translateX(-24px); }
.op-main.is-detail .op-detail { opacity: 1; transform: none; visibility: visible; }
.op-detail-bar { display: flex; align-items: center; gap: 26px; height: 56px; padding: 0 12px; font-weight: 600; }
.op-x svg { width: 20px; height: 20px; color: #475569; }
.op-reply-btn { margin-left: -6px; }
.op-act { display: inline-flex; align-items: center; gap: 8px; }
.op-act svg { width: 17px; height: 17px; color: #475569; }
.op-card { background: #fff; border-radius: 4px; padding: 18px 22px 18px; margin-right: 10px; }
.op-subject { display: flex; align-items: center; gap: 12px; }
.op-subject strong { font-size: 17px; font-weight: 700; }
.op-star-o svg { width: 16px; height: 16px; color: #cbd5e1; }
.op-addtag { display: flex; align-items: center; gap: 8px; margin: 12px 0 0 4px; padding-bottom: 16px; border-bottom: 1px solid #e2e8f0; font-weight: 600; }
.op-addtag svg { width: 16px; height: 16px; }
.op-meta { display: grid; grid-template-columns: 136px 1fr; gap: 14px 8px; margin: 18px 0 0; }
.op-meta dt { font-weight: 700; }
.op-meta dd { margin: 0; display: flex; align-items: center; gap: 10px; }
.op-meta dd svg { width: 15px; height: 15px; color: #64748b; }
.op-aisum { margin-top: 22px; padding: 16px 20px; border-radius: 6px; background: #f5f3ff; }
.op-aisum-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.op-aisum-head svg { width: 16px; height: 16px; color: #8b5cf6; }
.op-aisum-head span { padding: 2px 8px; border-radius: 4px; background: #ede9fe; font-size: 12px; font-weight: 600; }
.op-aisum p:last-child { margin: 0; line-height: 1.55; }
.op-ai-open { margin: 14px 0 0 14px; font-weight: 700; }
.op-tabs { display: flex; gap: 22px; margin: 10px 10px 0 0; padding: 12px 12px; background: #f8fafc; }
.op-tabs span.is-on { font-weight: 600; }
.op-file { display: flex; align-items: center; gap: 10px; margin-right: 10px; padding: 14px 22px; background: #fff; }
.op-file svg { width: 20px; height: 20px; color: #10b981; }

/* formulář nové zprávy (odpověď) */
.op-compose {
  position: absolute; inset: 0;
  display: flex; justify-content: center;
  padding: 30px 40px 0;
  opacity: 0; transform: translateY(16px); visibility: hidden;
  transition: opacity .4s ease, transform .5s cubic-bezier(.22, 1, .36, 1), visibility .4s;
}
.op-main.is-compose .op-detail { opacity: 0; transform: translateX(-24px); visibility: hidden; }
.op-main.is-compose .op-compose { opacity: 1; transform: none; visibility: visible; }
.op-form { width: 860px; }
.op-form label { display: block; margin: 0 0 5px 16px; font-size: 13px; color: #0f172a; }
.op-field {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; margin-bottom: 14px; padding: 0 18px;
  border-radius: 6px; background: #fff;
  box-shadow: 0 0 0 1px #e2e8f0;
  color: #0f172a;
}
.op-field > svg { margin-left: auto; width: 18px; height: 18px; color: #475569; }
.op-textarea { align-items: flex-start; min-height: 128px; padding: 14px 18px; line-height: 1.55; }
.op-compose-text.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 16px; margin-left: 1px; vertical-align: -3px; background: #0f172a; animation: op-caret .9s steps(1) infinite; }
.op-upload { gap: 10px; }
.op-upload > svg { margin-left: 0; width: 17px; height: 17px; }
.op-upload strong { font-weight: 500; }
.op-upload i { flex: 1; height: 6px; border-radius: 6px; background: #e2e8f0; }
.op-upload small { font-size: 12px; color: #334155; }
.op-form-actions { display: flex; align-items: center; gap: 28px; margin-top: 18px; padding: 0 12px; font-weight: 600; }
.op-form-actions > span { display: inline-flex; align-items: center; gap: 8px; }
.op-form-actions svg { width: 17px; height: 17px; color: #475569; }
.op-form-right { margin-left: auto; }
.op-send { gap: 0 !important; margin-left: -12px; border-radius: 6px; overflow: hidden; background: #10b981; }
.op-send b { padding: 10px 18px; font-weight: 600; color: #0f172a; transition: background .15s ease; }
.op-send b.is-pressed { background: #059669; transform: none; }
.op-send i { display: grid; place-items: center; width: 40px; align-self: stretch; border-left: 1px solid rgba(15, 23, 42, .12); }
.op-send i svg { width: 17px; height: 17px; color: #0f172a; }
.op-demo.is-composing .op-toolbar .op-btn-green,
.op-demo.is-composing .op-toolbar .op-btn:nth-child(2) { opacity: .45; }

/* AI asistent */
.op-ai {
  position: absolute; top: 66px; right: 24px; z-index: 4;
  width: 440px; height: 650px;
  display: flex; flex-direction: column;
  border-radius: 12px; background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18), 0 0 0 1px rgba(15, 23, 42, .06);
  opacity: 0; transform: translateX(30px) scale(.98); visibility: hidden;
  transition: opacity .4s ease, transform .5s cubic-bezier(.22, 1, .36, 1), visibility .4s;
}
.op-ai.is-open { opacity: 1; transform: none; visibility: visible; }
.op-ai-head { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 18px; border-bottom: 1px solid #f1f5f9; }
.op-ai-head > svg { width: 18px; height: 18px; color: #8b5cf6; }
.op-ai-head strong { font-size: 17px; font-weight: 700; }
.op-ai-head span { margin-left: auto; display: inline-flex; gap: 16px; color: #94a3b8; }
.op-ai-head span svg { width: 17px; height: 17px; }
.op-ai-body { position: relative; flex: 1; overflow: hidden; }
.op-ai-menu { padding: 8px 18px; transition: opacity .3s ease; }
.op-ai.is-chat .op-ai-menu { opacity: 0; visibility: hidden; }
.op-ai-group { margin: 12px 0 6px; color: #475569; font-size: 13.5px; }
.op-ai-item { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 8px; font-weight: 600; transition: background .15s ease; }
.op-ai-item.is-pressed { background: #f5f3ff; transform: none; }
.op-ai-ico { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: #f1f5f9; color: #475569; }
.op-ai-ico svg { width: 15px; height: 15px; }
.op-ai-badge { padding: 1px 6px; border-radius: 4px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.op-ai-badge.is-codexis { background: #22c55e; }
.op-ai-badge.is-datify { background: #3b82f6; }
.op-chat { position: absolute; inset: 0; padding: 18px; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.op-msg { max-width: 92%; animation: op-pop .45s cubic-bezier(.22, 1, .36, 1); }
.op-msg.is-user { align-self: flex-end; padding: 9px 14px; border-radius: 12px 12px 4px 12px; background: #f1f5f9; font-weight: 500; }
.op-msg.is-ai { display: flex; gap: 10px; align-items: flex-start; }
.op-msg-ico { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #ede9fe; color: #7c3aed; }
.op-msg-ico svg { width: 15px; height: 15px; }
.op-msg-body { line-height: 1.5; font-size: 13.5px; }
.op-msg-title { margin: 3px 0 8px; font-weight: 700; font-size: 14px; }
.op-msg-body ul { margin: 0; padding-left: 18px; list-style: disc; display: grid; gap: 4px; }
.op-msg-body li::marker { color: #a78bfa; }
.op-deadline { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 8px 10px; border-radius: 6px; background: #fef3c7; color: #92400e; font-size: 13px; }
.op-deadline svg { width: 15px; height: 15px; }
.op-draft { padding: 10px 12px; border-radius: 8px; border: 1px solid #e2e8f0; background: #f8fafc; line-height: 1.5; }
.op-draft-actions { display: flex; gap: 8px; margin-top: 10px; }
.op-draft-use, .op-draft-alt { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 6px; font-weight: 600; font-size: 13px; transition: transform .15s ease; }
.op-draft-use { background: #8b5cf6; color: #fff; }
.op-draft-alt { background: #f1f5f9; }
.op-draft-use svg, .op-draft-alt svg { width: 14px; height: 14px; }
.op-dots { display: inline-flex; gap: 4px; padding: 8px 2px; }
.op-dots i { width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; animation: op-dot 1s ease-in-out infinite; }
.op-dots i:nth-child(2) { animation-delay: .15s; }
.op-dots i:nth-child(3) { animation-delay: .3s; }
.op-ai-input { margin: 0 12px; padding: 12px 12px 10px; border-radius: 10px; border: 1px solid #e2e8f0; }
.op-ai-field { position: relative; min-height: 22px; color: #0f172a; }
.op-ai-ph { position: absolute; left: 0; top: 0; color: #94a3b8; }
.op-ai.is-typing-input .op-ai-ph { display: none; }
.op-ai.is-typing-input .op-ai-text::after { content: ""; display: inline-block; width: 1.5px; height: 16px; margin-left: 1px; vertical-align: -3px; background: #0f172a; animation: op-caret .9s steps(1) infinite; }
.op-ai-tools { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.op-ai-round { width: 32px; height: 32px; border-radius: 7px; border: 1px solid #e2e8f0; display: grid; place-items: center; color: #475569; }
.op-ai-round svg { width: 15px; height: 15px; }
.op-ai-mic { margin-left: auto; }
.op-ai-send { width: 36px; height: 32px; border-radius: 7px; display: grid; place-items: center; background: #6ee7b7; color: #fff; transition: background .2s ease, transform .15s ease; }
.op-ai.is-typing-input .op-ai-send { background: #10b981; }
.op-ai-send svg { width: 16px; height: 16px; }
.op-ai-foot { display: flex; justify-content: space-between; padding: 12px 16px 14px; font-size: 13px; }
.op-ai-foot span { display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 2px; }
.op-ai-foot svg { width: 15px; height: 15px; }
.op-ai-foot span:first-child svg { color: #10b981; }
.op-ai-foot span:last-child svg { color: #3b82f6; }

/* hlášení dole */
.op-toast {
  position: absolute; left: 50%; bottom: 22px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 10px;
  background: #0f172a; color: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .25);
  opacity: 0; transform: translate(-50%, 10px);
  transition: opacity .3s ease, transform .3s ease;
}
.op-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.op-toast svg { width: 18px; height: 18px; color: #34d399; }
.op-toast strong { font-weight: 700; }

/* letící „+N“ (vypadá jako odznak na tlačítku Hromadné přijetí) a kurzor */
.op-fly-layer { position: absolute; inset: 0; z-index: 6; }
.op-fly {
  position: absolute; left: 0; top: 0;
  height: 24px; min-width: 34px; margin: -12px 0 0 -17px; padding: 0 8px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: #0ea5e9; color: #fff;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(14, 165, 233, .45);
}
.op-cursor {
  position: absolute; left: 0; top: 0; z-index: 7;
  width: 26px; height: 26px; margin: -3px 0 0 -5px;
  transition: transform 1s cubic-bezier(.45, 0, .2, 1), opacity .3s ease;
}
.op-cursor svg { width: 26px; height: 26px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.op-cursor i { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -12px 0 0 -12px; border-radius: 50%; background: rgba(14, 165, 233, .35); transform: scale(0); opacity: 0; }
.op-cursor.is-click i { animation: op-click .5s ease-out; }
.op-cursor.is-hidden { opacity: 0; }
.op-demo.is-reset .op-cam { opacity: 0; }

/* nádech kolem okna, když aplikace pracuje (zelený příjem, fialová AI) */
.showcase:has(.op-demo.is-receiving) .browser { box-shadow: var(--shadow-xl), 0 0 0 1px rgba(52, 211, 153, .5), 0 0 80px -10px rgba(52, 211, 153, .55); }
.showcase:has(.op-demo.is-ai-working) .browser { box-shadow: var(--shadow-xl), 0 0 0 1px rgba(139, 92, 246, .45), 0 0 80px -10px rgba(139, 92, 246, .5); }

@keyframes op-pill-split { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes op-bar { from { left: -30%; } to { left: 100%; } }
@keyframes op-bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes op-click { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes op-row-in { from { height: 0; opacity: 0; } to { height: 40px; opacity: 1; } }
@keyframes op-row-flash { 0%, 40% { background: #bae6fd; } 100% { background: #f0f9ff; } }
@keyframes op-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes op-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes op-caret { 50% { opacity: 0; } }

/* YouTube - načte se až po kliknutí */
.yt {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0; padding: 0;
  background: var(--navy-900) center / cover no-repeat;
  overflow: hidden;
  cursor: pointer;
}
.yt::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 28, 46, 0.1), rgba(5, 28, 46, 0.45));
  transition: opacity .2s ease;
}
.yt:hover::after { opacity: .6; }
.yt-play {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 78px; height: 78px; border-radius: 50%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  background: var(--green-400);
  color: var(--navy-950);
  box-shadow: 0 14px 40px rgba(5, 28, 46, 0.4);
  transition: transform .2s ease;
}
.yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.06); }
.yt-play svg { width: 30px; height: 30px; margin-left: 4px; }
.yt-title {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1;
  text-align: left; color: #fff; font-weight: 600; font-size: 15px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }

/* Podstránky - úvodní blok */
.page-intro { padding: 152px 0 88px; }
.page-intro .h1 { font-size: clamp(36px, 4.6vw, 60px); margin-bottom: 20px; max-width: 900px; }
.page-intro .lead { max-width: 720px; color: rgba(255, 255, 255, 0.8); }
.page-intro .btn-row { margin-top: 32px; }


.intro-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.intro-media {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 4 / 3;
}
.intro-media img { width: 100%; height: 100%; object-fit: cover; }

/* ─────────────────────────────────────────────────────────────────────
   KLIENTI - LOGA
   ───────────────────────────────────────────────────────────────────── */
.logos { padding: 64px 0; background: var(--surface); }
.logos--plain { padding: 44px 0; }
.logos-title {
  text-align: center;
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 28px;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 64px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track img {
  height: 40px; width: auto; max-width: 150px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .62;
  mix-blend-mode: multiply;
  transition: filter .2s ease, opacity .2s ease;
}
.marquee-track img:hover { filter: none; opacity: 1; }
.marquee-track img.logo-tall { height: 52px; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────
   FUNKCE - střídavé řádky
   ───────────────────────────────────────────────────────────────────── */
/* Dlaždice funkcí na úvodu - jako na původním webu: 2 × 2, střídavě modré
   a zelené pozadí, nahoře tenká ikona a text, dole snímek z aplikace
   přilepený ke spodní hraně (PNG/WebP s vlastním stínem a průhledností). */
.feature-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature-tile {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #f4f4f5 center / cover no-repeat;
}
.feature-tile--blue { background-image: url("/assets/pozadi-modre.svg"); }
.feature-tile--green { background-image: url("/assets/pozadi-zelene.svg"); }
.feature-tile-copy { padding: 36px 40px 20px; }
.feature-tile-icon {
  width: 48px; height: 48px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.feature-tile-icon svg { width: 24px; height: 24px; }
.feature-tile--blue .feature-tile-icon { color: var(--navy-600); }
.feature-tile--green .feature-tile-icon { color: var(--green-600); }
.feature-tile h2 {
  margin: 0 0 10px;
  font-size: clamp(21px, 1.8vw, 25px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 700;
  text-wrap: balance;
}
.feature-tile p { font-size: 16.5px; line-height: 1.65; color: var(--ink-600); max-width: 560px; text-wrap: pretty; }
.feature-tile .link-arrow { margin-top: 14px; }
.feature-tile-media { margin-top: auto; padding-left: 24px; }
.feature-tile-media img { width: min(100%, 610px); height: auto; display: block; }

/* Bloky text + snímek (kampaňová stránka AI) - rovnou na pozadí, bez karet. */
.feature-rows { display: grid; gap: 112px; }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.feature-row:nth-child(even) .feature-copy { order: 2; }
.feature-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
}
.feature-icon svg { width: 26px; height: 26px; color: var(--green-600); }
.feature-icon--blue svg { color: var(--navy-700); }
.feature-icon--blue { background: var(--navy-50); border-color: var(--navy-100); }
.feature-copy .lead { font-size: 17px; }
.feature-copy .link-arrow { margin-top: 22px; }
.feature-media {
  border-radius: var(--r-lg);
  padding: 28px;
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(52, 211, 153, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-50), #eef6f2);
  border: 1px solid var(--line);
}
.feature-media img {
  width: 100%;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  background: #fff;
}

/* ─────────────────────────────────────────────────────────────────────
   ČÍSLA
   ───────────────────────────────────────────────────────────────────── */
/* Čísla: bez karet a bez oddělovačů, tři sloupce na střed */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1040px;
  margin: 0 auto;
}
.stat { padding: 0 24px; text-align: center; }
.stat-icon {
  width: 48px; height: 48px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-num {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
}
.stat-plus { color: inherit; }
.stat-label { margin-top: 6px; font-size: 15px; color: var(--ink-500); }

/* ─────────────────────────────────────────────────────────────────────
   DOPLŇKY - karty
   ───────────────────────────────────────────────────────────────────── */
.addons-section { padding: 112px 0; }
.addon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.addon-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.addon-card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: var(--ink-900);
  transition: transform .25s var(--ease-out), box-shadow .25s ease;
}
.addon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.addon-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-100); }
.addon-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.addon-card:hover .addon-card-media img { transform: scale(1.04); }
.addon-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.addon-card { cursor: pointer; }
.addon-card :is(h2, h3) { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 8px; }
/* odkaz v nadpisu se roztáhne přes celou kartu (i přes tlačítko „Více informací“) */
.addon-card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.addon-card p { font-size: 15px; line-height: 1.55; color: var(--ink-600); flex: 1; }
/* „Více informací“ jako tlačítko: šedé, při najetí na kartu zelené */
.addon-card .link-arrow {
  align-self: flex-start;
  margin-top: 18px;
  height: 40px; padding: 0 16px;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--ink-900);
  font-size: 14px;
  transition: background .2s ease, color .2s ease;
}
.addon-card:hover .link-arrow { background: var(--green-400); color: var(--navy-950); }
.addon-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2; pointer-events: none;
  padding: 5px 10px; border-radius: 999px;
  background: var(--green-400); color: var(--navy-950);
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
/* karusel doplňků na úvodu: na šířku obsahu 3 karty, posun po jedné */
.carousel-head .lead { margin: 0; max-width: 780px; }
.addon-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px 0 10px; /* místo pro zvednutí karty při najetí */
}
.addon-track::-webkit-scrollbar { display: none; }
.addon-track > .addon-card { scroll-snap-align: start; }
.on-dark .slider-btn { background: rgba(255, 255, 255, 0.1); border-color: transparent; color: #fff; }
.on-dark .slider-btn:hover { background: rgba(255, 255, 255, 0.18); border-color: transparent; }
.addons-more { margin-top: 40px; text-align: center; }

/* ─────────────────────────────────────────────────────────────────────
   REFERENCE
   ───────────────────────────────────────────────────────────────────── */
.testimonials-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 40px;
}
.testimonials-head .h2 { margin: 0; }
/* hlavička karuselu doplňků: nadpis + popis (musí být až za pravidlem výše) */
.carousel-head .h2 { margin: 0 0 18px; }
.slider-nav { display: flex; gap: 8px; }
.slider-btn {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-900);
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.slider-btn:hover { background: var(--navy-50); border-color: var(--ink-300); }
.slider-btn:disabled { opacity: .35; cursor: default; }
.slider-btn svg { width: 20px; height: 20px; }

/* Reference: bento mřížka se zkrácenými citáty */
.tst-title { margin: 0 0 40px; }
.tst-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tst-tile {
  display: flex; flex-direction: column;
  margin: 0; padding: 28px 28px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.section-white .tst-tile { background: var(--bg); box-shadow: none; }
.tst-tile.is-wide {
  grid-column: span 2;
  padding: 36px 36px 28px;
}
.tst-quote { width: 30px; height: 30px; color: var(--green-500); margin-bottom: 16px; }
.tst-tile blockquote {
  margin: 0;
  font-size: 16.5px; line-height: 1.6;
  color: var(--ink-700);
  text-wrap: pretty;
}
.tst-tile.is-wide blockquote {
  font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55;
  font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink-900);
}
.tst-tile figcaption {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 22px;
}
.tst-avatar {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy-100); color: var(--navy-700);
  font-size: 13px; font-weight: 700;
}
.tst-tile figcaption strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink-900); line-height: 1.3; }
.tst-tile figcaption small { display: block; font-size: 13px; color: var(--ink-500); line-height: 1.4; }

/* ─────────────────────────────────────────────────────────────────────
   CTA
   ───────────────────────────────────────────────────────────────────── */
/* Závěrečná výzva po vzoru datify.cz: panel na celou šířku s odsazením.
   Nejdřív je vidět jen nadpis, při scrollu se pod ním rozbalí barevná
   plocha a nakonec dojede text s tlačítky. Průběh nastavuje script.js
   přes --cta-panel a --cta-content (0-1); bez JS je vše rovnou vidět.
   Podklad je světlý, takže tmavý text je čitelný po celou dobu přechodu. */
.cta-section {
  --cta-panel: 1;
  --cta-content: 1;
  padding: 32px;
}
.cta-panel { position: relative; }
.cta-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: 32px;
  background-color: #e9f6f2;
  background-image:
    radial-gradient(85% 140% at -6% 18%, rgba(52, 211, 153, 0.85) 0%, rgba(52, 211, 153, 0) 78%),
    radial-gradient(80% 135% at 34% 112%, rgba(73, 163, 215, 0.72) 0%, rgba(73, 163, 215, 0) 76%),
    radial-gradient(85% 140% at 106% 78%, rgba(125, 211, 252, 0.8) 0%, rgba(125, 211, 252, 0) 78%);
  opacity: var(--cta-panel);
  transform: scaleY(calc(0.5 + var(--cta-panel) * 0.5)) scaleX(calc(0.86 + var(--cta-panel) * 0.14));
  will-change: transform, opacity;
}
.cta-content {
  position: relative;
  padding: 80px 56px;
  text-align: center;
}
.cta-content .h2 { max-width: 860px; margin: 0 auto; color: var(--navy-950); }
.cta-reveal {
  max-width: 720px;
  margin: 18px auto 0;
  opacity: var(--cta-content);
  transform: translateY(calc((1 - var(--cta-content)) * 24px));
  will-change: transform, opacity;
}
.cta-reveal .lead { color: var(--ink-700); margin: 0 auto 28px; text-wrap: balance; }
.cta-reveal .btn-row { justify-content: center; }

/* ─────────────────────────────────────────────────────────────────────
   DOPLNĚK - detail
   ───────────────────────────────────────────────────────────────────── */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* Přínosy doplňku: jen ilustrace s popiskem na bílém pozadí, bez dlaždic. */
.benefits-section { padding: 80px 0; }
client-logos + .benefits-section { padding-top: 40px; }
.benefit { text-align: center; }
.benefit img { width: 132px; height: 132px; margin: 0 auto 14px; object-fit: contain; }
.benefit :is(h2, h3) { font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; font-weight: 600; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* Stejný styl jako dlaždice funkcí na úvodu (.feature-tile): modré nebo
   zelené pozadí podle barvy ikony, bez rámečku, ikona v bílém boxu. */
.detail-card {
  padding: 32px 34px 34px;
  border-radius: var(--r-lg);
  background: #f4f4f5 url("/assets/pozadi-zelene.svg") center / cover no-repeat;
}
.detail-card:has(.feature-icon--blue) { background-image: url("/assets/pozadi-modre.svg"); }
.detail-card .feature-icon {
  width: 48px; height: 48px; margin-bottom: 18px;
  border: 0; border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.detail-card .feature-icon svg { width: 24px; height: 24px; color: var(--green-600); }
.detail-card .feature-icon--blue svg { color: var(--navy-600); }
.detail-card h3 { font-size: 20px; line-height: 1.3; margin-bottom: 10px; letter-spacing: -0.02em; text-wrap: balance; }
.detail-card p, .detail-card li { font-size: 15.5px; color: var(--ink-600); line-height: 1.65; text-wrap: pretty; }
.detail-card ul { display: grid; gap: 8px; }
.detail-card li { position: relative; padding-left: 26px; }
.detail-card li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Interaktivní prototyp */
.prototype {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--navy-50);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
}
.prototype iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Než se prototyp načte, ukazuje se ztlumený snímek z aplikace a tlačítko. */
.prototype-start {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 24px;
  border: 0;
  background: var(--navy-50);
  cursor: pointer;
}
.prototype-shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: left top;
  filter: saturate(.7) blur(1.5px);
  transform: scale(1.02);
  transition: filter .4s ease;
}
.prototype-start::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(240, 249, 255, 0.82), rgba(240, 249, 255, 0.55));
  transition: opacity .4s ease;
}
.prototype-start:hover .prototype-shot { filter: saturate(.85) blur(.5px); }
.prototype-start:hover::after { opacity: .85; }
.prototype-start .btn { position: relative; z-index: 1; pointer-events: none; box-shadow: var(--shadow-lg); }
.rotate-note {
  display: none;
  align-items: center; gap: 14px;
  margin-top: 18px; padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--navy-50);
  font-size: 14px; color: var(--ink-700);
}
.rotate-note .icon-rotate { width: 30px; height: 30px; flex-shrink: 0; color: var(--navy-700); transform: rotate(90deg); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--green-300); box-shadow: var(--shadow-md); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  font-weight: 600; font-size: 16px; line-height: 1.45;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075985' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s ease, background-color .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--green-100); }
.faq-body { padding: 0 24px 24px; color: var(--ink-700); font-size: 15.5px; line-height: 1.7; }

/* Formátovaný text (FAQ, právní stránky) */
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: 24px; line-height: 1.3; letter-spacing: -0.015em; margin-top: 44px; }
.prose h3 { font-size: 19px; line-height: 1.35; margin-top: 30px; }
.prose a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(4, 120, 87, 0.35); }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul { padding-left: 22px; list-style: disc; }
.prose ol { padding-left: 22px; list-style: decimal; }
.prose ul ul { list-style: circle; margin-top: 6px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--green-500); }
.prose img {
  max-width: 100%;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.prose img.shot-portrait { max-width: 260px; }
.prose img.shot-small { max-width: 420px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--navy-50); font-weight: 600; }
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.table-wrap table { margin: 0; }

/* ─────────────────────────────────────────────────────────────────────
   FORMULÁŘ
   ───────────────────────────────────────────────────────────────────── */
.form-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
/* Stránka Poptávka: formulář vlevo, kontakty vpravo (na mobilu pod ním). */
.form-layout--form-first { grid-template-columns: 1.3fr 0.7fr; }
.form-aside .lead { margin-bottom: 28px; }
/* Kontakty vedle formuláře - rovnou na pozadí, bez dlaždic. */
.form-contacts { display: grid; gap: 24px; justify-items: start; }
.form-contact {
  display: flex; align-items: center; gap: 14px;
  font-weight: 600;
  transition: color .2s ease;
}
.form-contact:hover { color: var(--green-700); }
.form-contact svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--green-600); }
.form-contact small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-500); }

.form-card {
  padding: 40px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
/* Formulář z Formdesku (embed vkládá .fb-* prvky přímo do stránky a svoje
   výchozí styly do <head>). Tady je ladíme na vzhled webu - selektory jsou
   o třídu silnější, takže vyhrají i nad později vloženými styly embedu. */
.form-loading { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-500); }
.form-loading a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.form-card .fb-form { gap: 18px 16px; color: var(--ink-900); }
.form-card .fb-field { gap: 7px; }
.form-card .fb-form label { font-size: 14px; font-weight: 600; color: var(--ink-700); }
.form-card .fb-req { color: var(--green-600); opacity: 1; }
.form-card .fb-form input:not([type="checkbox"]),
.form-card .fb-form textarea,
.form-card .fb-form select {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: #fbfcfd;
  font: inherit; font-size: 15px;
  color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-card .fb-form textarea { min-height: 120px; }
.form-card .fb-form ::placeholder { color: var(--ink-400); opacity: 1; }
.form-card .fb-form input:hover,
.form-card .fb-form textarea:hover { border-color: var(--ink-300); }
.form-card .fb-form input:focus,
.form-card .fb-form textarea:focus,
.form-card .fb-form select:focus {
  outline: none;
  border-color: var(--green-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}
.form-card .fb-form [aria-invalid="true"] { border-color: #dc2626; }
.form-card .fb-form input[type="checkbox"] { accent-color: var(--green-600); }
.form-card .fb-form a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.form-card .fb-form button {
  justify-self: stretch;
  min-height: 54px;
  margin-top: 6px;
  border: 0; border-radius: 12px;
  background: var(--green-400);
  color: var(--navy-950);
  font-size: 16px; font-weight: 600;
  box-shadow: 0 8px 22px rgba(52, 211, 153, 0.28);
  transition: background .15s ease, opacity .15s ease;
}
.form-card .fb-form button:hover { background: var(--green-300); }
.form-card .fb-form button:focus-visible { outline: 2px solid var(--navy-700); outline-offset: 3px; }
.form-card .fb-error { font-size: 13px; color: #b91c1c; }
.form-card .fb-ok { color: var(--green-700); }

/* ─────────────────────────────────────────────────────────────────────
   SROVNÁNÍ
   ───────────────────────────────────────────────────────────────────── */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.compare-col {
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.compare-col--main { border: 2px solid var(--green-400); box-shadow: var(--shadow-lg); position: relative; }
.compare-head {
  display: grid; place-items: center;
  height: 96px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.compare-col--main .compare-head { background: var(--green-50); }
.compare-head img { height: 34px; width: auto; }
.compare-col ul { padding: 8px 0; }
.compare-col li {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 28px;
  font-size: 15.5px;
}
.compare-col li + li { border-top: 1px solid var(--line); }
.compare-col li.is-off { color: var(--ink-400); }
.ci {
  width: 26px; height: 26px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-100); color: var(--green-700);
}
.ci svg { width: 14px; height: 14px; }
.is-off .ci { background: #f1f3f6; color: var(--ink-400); }
.compare-ribbon {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--green-400); color: var(--navy-950);
  font-size: 12px; font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────────────
   VIDEOTUTORIÁLY, KONTAKT, PODPORA
   ───────────────────────────────────────────────────────────────────── */
/* Videotutoriály: obsah rovnou na bílém pozadí, bez dlaždic. Webináře se
   střídají - text a video, video a text. */
.video-rows { display: grid; gap: 96px; }
.video-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 64px;
  align-items: center;
}
.video-row:nth-child(even) { grid-template-columns: 1.35fr 1fr; }
.video-row:nth-child(even) > div { order: 2; }
.video-row .yt { border-radius: var(--r-lg); }
.video-row .h2 { margin-bottom: 24px; }
/* věta pod odrážkami - stejné písmo jako běžný text odrážek */
.video-note { font-size: 16.5px; line-height: 1.55; color: var(--ink-700); }
/* délka videa v rohu náhledu */
.yt-time {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(5, 28, 46, .82); color: #fff;
  font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.yt--card .yt-play { width: 58px; height: 58px; }
.yt--card .yt-play svg { width: 22px; height: 22px; }

/* krátká videa */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card { display: flex; flex-direction: column; }
.video-card .yt { border-radius: var(--r-lg); }
.video-card-body { padding: 18px 2px 0; }
.video-card h3 { font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 6px; }
.video-card p { font-size: 15px; line-height: 1.55; color: var(--ink-600); }
.video-card .link-arrow { margin-top: 12px; font-size: 14px; }
.check-list { display: grid; gap: 12px; margin-bottom: 18px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink-700); font-size: 16.5px; line-height: 1.55; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card {
  display: flex; align-items: center; gap: 20px;
  padding: 28px 30px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .2s ease;
}
.contact-card:hover { border-color: var(--green-300); transform: translateY(-2px); }
.contact-card-icon {
  width: 60px; height: 60px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--green-50);
}
.contact-card-icon svg { width: 28px; height: 28px; color: var(--green-600); }
.contact-card small { display: block; font-size: 14px; color: var(--ink-500); margin-bottom: 2px; }
.contact-card strong { font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.01em; word-break: break-word; }

/* Údaje o společnostech rovnou na pozadí, bez karet. */
.company-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 80px; }
/* Úvodní texty mají různou délku - údaje (IČO, DIČ…) se srovnají na
   stejnou výšku v obou sloupcích. */
.company-card { display: flex; flex-direction: column; }
.company-card > .company-facts { margin-top: auto; }
.company-card > p:has(+ .company-facts) { margin-bottom: 24px; }
.company-card .company-logo { align-self: flex-start; height: 30px; width: auto; margin-bottom: 24px; }
.company-card p { color: var(--ink-600); }
.company-card p + p { margin-top: 12px; }
.company-facts {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 18px;
  margin: 24px 0 0; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.company-facts dt { color: var(--ink-500); }
.company-facts dd { margin: 0; font-weight: 600; color: var(--ink-900); }
.company-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-500); }

.support-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}
.support-nav {
  position: sticky; top: calc(var(--header-h) + 16px);
  display: grid; gap: 4px;
  padding: 12px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.support-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--ink-700);
  transition: background .15s ease, color .15s ease;
}
.support-nav a:hover { background: var(--navy-50); }
.support-nav a.is-active { background: var(--green-50); color: var(--green-700); font-weight: 600; }
.support-nav a span { font-size: 12px; color: var(--ink-400); font-weight: 600; }
.support-group + .support-group { margin-top: 64px; }
.support-group > .h3 { margin-bottom: 8px; }
.support-group > p { color: var(--ink-600); margin-bottom: 22px; }
.cert-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 20px 0 12px;
}
.cert {
  display: flex; align-items: center; gap: 16px;
  margin: 0; padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.cert img { width: 84px; height: auto; flex-shrink: 0; }
.cert figcaption { font-size: 14px; line-height: 1.45; color: var(--ink-600); }
.cert figcaption strong { display: block; font-size: 15px; color: var(--ink-900); }
.support-group .faq { margin-top: 20px; }

.downloads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.download {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.download:hover { border-color: var(--green-300); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.download-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; background: var(--navy-50); color: var(--navy-700);
}
.download-icon svg { width: 22px; height: 22px; }
.download small { font-weight: 500; color: var(--ink-500); font-size: 13px; }

/* Právní dokumenty */
.doc {
  padding: 56px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-700);
}
.doc .prose h2:first-child { margin-top: 0; }
.doc-lang {
  display: flex; align-items: center; gap: 14px;
  margin: 64px 0 8px; padding-top: 40px;
  border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500);
}

/* Děkujeme a 404 - po vzoru DATIFY: světlá stránka s jemným přechodem barvy
   značky shora, fajfka v kruhu, štítek, nadpis a jedno tlačítko. */
.status-page {
  min-height: 80svh;
  display: flex; align-items: center;
  padding: 160px 0 112px;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(52, 211, 153, 0.12), rgba(73, 163, 215, 0.06) 40%, rgba(255, 255, 255, 0) 75%),
    var(--surface);
}
.status-icon {
  width: 96px; height: 96px; margin: 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.16);
  color: var(--green-600);
}
.status-icon svg { width: 48px; height: 48px; }
.status-label {
  margin: 32px 0 0;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green-700);
}
.status-page .h1 { max-width: 760px; margin: 16px auto 0; text-wrap: balance; }
.status-page .lead { max-width: 640px; margin: 24px auto 0; color: var(--ink-600); text-wrap: pretty; }
.status-page .btn-row { justify-content: center; margin-top: 40px; }

.status-icon--muted { background: var(--navy-100); color: var(--navy-700); }
.status-label--muted { color: var(--navy-600); }

/* ─────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────── */
/* Po vzoru DATIFY: patička stojí přilepená pod obsahem a <main> po ní
   při dojetí na konec odjede nahoru. Main proto potřebuje vlastní podklad
   a vyšší vrstvu. Stín pod hranou zakryje zlomek pixelu, o který může
   patička skončit dřív než dokument. */
main { position: relative; z-index: 1; background: var(--bg); }
.footer {
  position: sticky; bottom: 0; z-index: 0;
  overflow: hidden;
  /* Stejný podklad jako tmavé hero sekce (.dark-bg). */
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(52, 211, 153, 0.16), transparent 60%),
    radial-gradient(70% 80% at 0% 0%, rgba(73, 163, 215, 0.22), transparent 60%),
    linear-gradient(170deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  box-shadow: 0 3px 0 0 var(--navy-800);
}
/* Do doscrollování ke konci je patička průhledná a bez stuhy (viz reveal()
   v components.js) - jinak by ji prohlížeč počítal jako největší prvek
   (LCP) a do posunu rozložení. Bez JavaScriptu je vidět normálně. */
.js .footer:not(.is-near) { opacity: 0; }
.js .footer:not(.is-near) .footer-grid-bg { background-image: none; }
/* Jedna klidná stuha středem patičky (assets/vlna-paticka.svg). */
.footer-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/vlna-paticka.svg?v=3") center / max(100%, 1600px) auto no-repeat;
  opacity: .2;
}
/* Odstupy mezi bloky drží jednu míru, 60 px. */
.footer-inner { position: relative; padding-top: 60px; padding-bottom: 28px; }
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px 40px;
  font-size: 16px;
}
.footer-nav a, .footer-bottom a, .footer-bottom button { transition: color .2s ease; }
.footer-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.62);
}
/* Tečka najede zleva - značka se drží i v drobných odkazech. */
/* Zelený šikmý tvar z jedničky v logu (poměr 35,23 × 22,11) - sedí vpravo
   nahoře u textu, jako v logu nad jedničkou, a při najetí se vysune zleva.
   Je položený absolutně, takže text se neposouvá. */
.footer-nav a { position: relative; }
.footer-dot {
  position: absolute; right: -13px; top: calc(50% - 0.78em);
  width: 12px; height: 7.5px;
  background: var(--green-400);
  clip-path: polygon(0 19.8%, 100% 0, 100% 80.2%, 0 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.footer-nav a:hover { color: #fff; }
.footer-nav a:hover .footer-dot { transform: none; }
.footer-wordmark { display: block; width: min(38%, 480px); margin: 60px auto 0; }
.footer-wordmark svg { width: 100%; height: auto; overflow: hidden; }
/* Písmena vyjíždějí zpod horní hrany nápisu, každé o kus línější. */
.footer.wm-ready .wm-piece {
  transform-box: fill-box;
  transform: translateY(-115%);
  opacity: 0;
  transition-property: transform, opacity;
  transition-timing-function: cubic-bezier(.16, 1, .3, 1);
  transition-duration: calc(950ms + var(--i) * 130ms), calc((950ms + var(--i) * 130ms) * .6);
  transition-delay: calc(var(--i) * 140ms);
}
.footer.wm-in .wm-piece { transform: none; opacity: 1; }
.footer-bottom {
  display: grid; justify-items: center; gap: 10px;
  margin-top: 60px;
  font-size: 14px; color: rgba(255, 255, 255, 0.45);
  text-align: center;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; }
.footer-bottom nav a, .footer-bottom button { color: rgba(255, 255, 255, 0.62); }
.footer-bottom p { margin: 0; }
.footer-bottom p a { color: rgba(255, 255, 255, 0.75); font-weight: 600; }
.footer-bottom a:hover, .footer-bottom button:hover { color: #fff; }
.footer-bottom button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }

/* ─────────────────────────────────────────────────────────────────────
   ANIMACE PŘI SCROLLU
   ───────────────────────────────────────────────────────────────────── */
@media screen and (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  /* Úvodní sekce se animuje čistě v CSS hned od prvního vykreslení -
     čekání na skript by o vteřiny zdrželo největší prvek stránky (LCP). */
  .js :is(.hero, .page-intro, .status-page) [data-reveal] {
    opacity: 1; transform: none; transition: none;
    animation: intro-in .8s var(--ease-out) var(--d, 0ms) both;
  }
  @keyframes intro-in { from { opacity: 0; transform: translateY(26px); } }
}
@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .header, .footer { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-top: 140px; padding-bottom: 72px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; max-width: 680px; }
  .hero .btn-row { justify-content: center; }
  .showcase { margin-right: 0; }
  .showcase .browser { transform: none !important; }
  .addon-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .downloads { grid-template-columns: repeat(2, 1fr); }
  .feature-row { gap: 48px; }
  .nav-link { padding: 8px 10px; }
}

@media (max-width: 1040px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .addon-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .feature-tiles { grid-template-columns: 1fr; gap: 24px; }
  /* Mobilní menu */
  .header-bar { grid-template-columns: 1fr auto; }
  .nav-toggle { display: flex; }
  .header-right .btn-login, .header-right .btn-primary { display: none; }
  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(400px, 100%);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 96px 20px 28px;
    background: var(--surface);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s var(--ease-out), visibility .35s;
    z-index: -1;
  }
  .header[data-menu-open="true"] .nav { transform: none; visibility: visible; }
  /* backdrop-filter by z hlavičky udělal kontejner pro fixed menu a to by
     se po scrollu zmenšilo na výšku hlavičky - při otevřeném menu ho vypínáme */
  .header[data-menu-open="true"] { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .header[data-menu-open="true"] .brand-logo--light { display: none; }
  .header[data-menu-open="true"] .brand-logo--dark { display: block; }
  .nav-home, .nav-mobile-only { display: flex; }
  .nav .nav-link,
  .header[data-state="scrolled"] .nav .nav-link {
    justify-content: space-between;
    padding: 14px 14px;
    font-size: 17px; font-weight: 600;
    color: var(--ink-900);
  }
  .nav .nav-link.is-current { color: var(--green-700); }
  .nav-item { display: block; }
  .nav-dropdown {
    position: static;
    width: auto;
    padding: 0 0 8px 8px;
    border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { transform: none; }
  .nav-item[data-open="true"] .nav-dropdown { display: block; transform: none; }
  .nav-dropdown-grid { grid-template-columns: 1fr; }
  .nav-dropdown a.dd-link { align-items: center; gap: 12px; padding: 7px 14px; }
  .dd-icon { width: 32px; height: 32px; border-radius: 9px; }
  .dd-icon svg { width: 16px; height: 16px; }
  .dd-text > span { display: none; }
  .dd-link strong { font-weight: 500; color: var(--ink-700); margin: 0; }
  .nav-dropdown a.dd-all { display: block; padding: 10px 14px; font-weight: 600; color: var(--green-700); }
  .nav-mobile-actions { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  body.menu-open { overflow: hidden; }
  body.menu-open::after {
    content: ""; position: fixed; inset: 0; z-index: 40;
    background: rgba(5, 28, 46, 0.45);
  }

  .intro-split, .form-layout, .video-row, .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-copy { order: 0; }
  .intro-split { gap: 48px; }
  .form-layout { gap: 40px; }
  .video-row, .video-row:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .video-row:nth-child(even) > div { order: 0; }
  .video-rows { gap: 72px; }
  .support-layout { grid-template-columns: 1fr; gap: 32px; }
  .support-nav { position: static; grid-template-columns: repeat(2, 1fr); }
  .tst-bento { grid-template-columns: repeat(2, 1fr); }
  /* poslední široká by na dvou sloupcích nechala díru - je běžná */
  .tst-tile.is-wide:last-child { grid-column: auto; }
}
@media (min-width: 1041px) {
  .nav-mobile-actions { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .container { padding: 0 20px; }
  .header .container { padding: 0 14px 0 20px; }
  .header-bar { height: 64px; }
  .header[data-state="scrolled"] .header-bar { height: 58px; }
  .brand-logo { height: 22px; }
  .section, .addons-section { padding: 80px 0; }
  .logos { padding: 48px 0; }
  .logos--plain { padding: 32px 0; }
  .section-head { margin-bottom: 40px; }
  .hero-grid { padding-top: 116px; padding-bottom: 56px; gap: 36px; }
  .page-intro { padding: 124px 0 64px; }
  .browser { border-radius: 10px; }
  .browser-bar { height: 30px; }
  .browser-url { display: none; }
  .yt-play { width: 60px; height: 60px; }
  .stats { grid-template-columns: 1fr; gap: 36px; }
  .stat { padding: 0; }
  .video-grid,
  .addon-grid, .addon-grid--3, .benefits, .detail-grid,
  .compare, .contact-cards, .company-cards, .downloads { grid-template-columns: 1fr; }
  .benefits-section { padding: 56px 0; }
  client-logos + .benefits-section { padding-top: 24px; }
  .benefits { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .benefit img { width: 100px; height: 100px; }
  .benefit :is(h2, h3) { font-size: 15px; }
  .feature-rows { gap: 72px; }
  .feature-row { gap: 32px; }
  .status-page { padding: 120px 0 80px; }
  .status-icon { width: 80px; height: 80px; }
  .status-icon svg { width: 40px; height: 40px; }
  .feature-tile-copy { padding: 28px 24px 16px; }
  .feature-tile p { font-size: 16px; }
  .feature-tile-media { padding-left: 12px; }
  .feature-media { padding: 14px; }
  .tst-bento { grid-template-columns: 1fr; gap: 16px; }
  .tst-tile.is-wide { grid-column: auto; padding: 28px 24px 24px; }
  .tst-tile { padding: 24px 22px 22px; }
  .tst-title { margin-bottom: 28px; }
  .footer-inner { padding-top: 44px; }
  .cert-list { grid-template-columns: 1fr; }
  .footer-nav { gap: 0 24px; font-size: 15px; }
  .footer-wordmark { width: 72%; margin-top: 44px; }
  .footer-bottom { margin-top: 44px; }
  .addon-track { grid-auto-columns: 85%; gap: 16px; }
  .testimonials-head { flex-direction: column; align-items: flex-start; }
  .cta-section { padding: 16px; }
  .cta-content { padding: 56px 22px; }
  .form-card { padding: 24px; border-radius: var(--r-lg); }
  .form-card .fb-field { grid-column: 1 / -1; }
  .support-nav { grid-template-columns: 1fr; }
  .doc { padding: 28px 22px; }
  .prototype { aspect-ratio: 4 / 5; }
  .rotate-note { display: flex; }
  .compare-col li { padding: 14px 20px; }
  .contact-card { padding: 22px; }
}
