/*
 * AI poradce – XART
 * Vizuální jazyk podle xart.cz: Funnel Sans, navy plochy, tyrkysová akce, fialový akcent,
 * šikmé tvary. Záměrně bez zaoblených rohů (obrázky, karty, tlačítka, pole).
 */

@font-face {
  font-family: "Funnel Sans";
  src: url(../fonts/funnel-sans-latin.woff2) format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Funnel Sans";
  src: url(../fonts/funnel-sans-latin-ext.woff2) format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --c-page: #003c64;
  --c-sunken: #002c51;
  --c-subtle: #064b70;
  --c-border: #064b70;
  --c-border-strong: #075d88;
  --c-teal: #58f0e6;
  --c-teal-200: #95faf0;
  --c-teal-50: #cafdf7;
  --c-purple: #826aed;
  --c-text: #f7f8fa;
  --c-text-2: #d3d9df;
  --c-muted: #93a5b0;
  --c-ink: #002c51;
  --c-white: #fff;

  --font: "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-hover: .3s;
  --t-reveal: .5s;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --container: 1408px;
  --gutter: 16px;
  --section-y: 88px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 120px; }
}
@media (min-width: 1200px) {
  :root { --section-y: 160px; }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--c-sunken);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  padding: 10px 18px; background: var(--c-teal); color: var(--c-ink); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 3px; }

/* ---------- Tlačítka (šikmý přejezd jako na xart.cz) ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  min-height: 52px; padding: 12px 28px;
  font: 600 16px/1.4 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 0; transition: background-color var(--t-hover), color var(--t-hover);
}
.btn::before {
  content: ""; position: absolute; top: 0; left: -155px; width: 155px; height: 100%;
  background: no-repeat 0 0 / 100% 100%; transition: transform var(--t-hover) var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(calc(155px + 100%)); }
.btn__label { position: relative; display: inline-flex; align-items: center; gap: 14px; }
.btn__arrow { width: 22px; height: 22px; flex: none; transition: transform var(--t-hover) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--c-teal); color: var(--c-ink); }
.btn--primary::before { background-image: url(../img/btn-hover-primary.svg); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--c-teal-50); }

.btn--outline { border: 1px solid var(--c-white); color: var(--c-text-2); background: transparent; }
.btn--outline::before { background-image: url(../img/btn-hover-outline.svg); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--c-white); color: var(--c-page); }

.btn--dark { background: var(--c-ink); color: var(--c-white); }
.btn--dark::before { background-image: url(../img/btn-hover-dark.svg); }
.btn--dark:hover, .btn--dark:focus-visible { background: var(--c-page); }

.btn--sm { min-height: 44px; padding: 8px 20px; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .btn::before, .btn__arrow { transition: none; }
}

/* ---------- Hlavička ---------- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 44, 81, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-hover);
}
.header.is-scrolled { border-bottom-color: var(--c-border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.header__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.header__logo { width: 92px; }
.header__product {
  padding-left: 14px; border-left: 1px solid var(--c-border-strong);
  font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--c-text-2); white-space: nowrap;
}
.nav { display: none; }
.nav__list { display: flex; gap: 28px; }
.nav__link { position: relative; font-size: 15px; text-decoration: none; color: var(--c-text-2); transition: color var(--t-hover); }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--c-teal); transform: scaleX(0); transform-origin: left; transition: transform var(--t-hover) var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--c-teal); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.header__cta { display: none; }

.header__toggle {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--c-border-strong); background: none; cursor: pointer;
}
.header__toggle span { width: 22px; height: 2px; background: var(--c-text); transition: transform var(--t-hover), opacity var(--t-hover); }
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; border-top: 1px solid var(--c-border); background: var(--c-sunken);
  padding: 8px var(--gutter) 24px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--c-border); text-decoration: none; font-size: 18px; }
.mobile-nav .btn { margin-top: 20px; width: 100%; }

@media (min-width: 1100px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .header__toggle, .mobile-nav, .mobile-nav.is-open { display: none; }
}
@media (max-width: 400px) {
  .header__product { display: none; }
}

/* ---------- Společné prvky sekcí ---------- */

.section { position: relative; padding-block: var(--section-y); }
.section--page { background: var(--c-page); }
.section--sunken { background: var(--c-sunken); }

.overline {
  display: block; margin-bottom: 16px;
  font-size: 13px; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; color: var(--c-muted);
}
.section-head { display: grid; gap: 24px; margin-bottom: 56px; }
.section-head__title { font-size: clamp(36px, 5.2vw, 64px); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; max-width: 680px; }
.accent { color: var(--c-purple); font-weight: 700; }
.accent--teal { color: var(--c-teal); }
.section-head__arrow { display: none; width: 56px; height: 80px; }
.section-head__text { color: var(--c-text-2); font-size: 18px; line-height: 1.65; max-width: 560px; }

@media (min-width: 1024px) {
  .section-head { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 48px; margin-bottom: 80px; }
  .section-head__arrow { display: block; }
  .section-head__text { font-size: 19px; }
}

.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.6; color: var(--c-text-2); }
.note { font-size: 14px; line-height: 1.5; color: var(--c-muted); }
.note a { color: var(--c-teal); }

.bullets { display: grid; gap: 12px; }
.bullets li { position: relative; padding-left: 36px; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px;
  background: url(../img/hero-bullet.svg) no-repeat center / contain;
}
.bullets--muted li::before { opacity: .5; filter: grayscale(1); }

/* Odhalení při scrollu – skrytý stav jen pokud běží JS (třída .js na <html>) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-reveal) ease, transform var(--t-reveal) ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }
.js .reveal[data-delay="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; background: var(--c-page); }
.hero__shape {
  position: absolute; pointer-events: none; z-index: 0;
  width: 613px; left: -120px; top: 40px; opacity: .9;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 48px; padding-block: 56px 72px; }
.hero__title { font-size: clamp(42px, 6.4vw, 80px); line-height: 1.04; letter-spacing: -.02em; }
.hero__title .accent { display: block; }
.hero__title .overline { font-weight: 400; }
.hero__claim { display: block; }
.hero__lead { margin-top: 28px; max-width: 600px; }
.hero__bullets { margin-top: 32px; color: var(--c-text-2); }
.hero__bullets strong { color: var(--c-teal); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.hero__media { position: relative; min-height: 460px; }
.hero__photo { position: absolute; inset: 0 0 0 18%; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; filter: saturate(.85); }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-page) 0%, rgba(0, 60, 100, .35) 45%, rgba(0, 60, 100, 0) 100%); }

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; padding-block: 88px 120px; min-height: min(860px, calc(100vh - 72px)); }
  .hero__media { min-height: 600px; }
  .hero__shape { left: 30%; top: 20px; }
}

/* Ukázka konverzace */
.demo {
  position: relative; z-index: 2; width: min(100%, 520px); margin-top: 120px;
  background: var(--c-sunken); border: 1px solid var(--c-border-strong);
  box-shadow: 0 30px 80px rgba(0, 20, 40, .55);
}
.demo::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  background: linear-gradient(90deg, var(--c-teal), var(--c-purple));
}
.demo__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--c-border); }
.demo__title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.demo__dot { width: 8px; height: 8px; background: var(--c-teal); box-shadow: 0 0 0 4px rgba(88, 240, 230, .18); animation: pulse 2s ease-in-out infinite; }
.demo__tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.demo__search { display: flex; align-items: center; gap: 12px; margin: 20px; padding: 14px 16px; background: var(--c-white); color: var(--c-ink); font-size: 16px; min-height: 52px; }
.demo__search svg { width: 20px; height: 20px; flex: none; color: var(--c-page); }
.demo__query { flex: 1; min-width: 0; }
.demo__caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.15em; background: var(--c-ink); animation: blink 1s steps(1) infinite; }
.demo__body { min-height: 230px; padding: 0 20px 22px; }
.demo__label { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-teal); }
.demo__answer { font-size: 15px; line-height: 1.6; color: var(--c-text-2); }
.demo__typing { display: inline-flex; gap: 5px; padding: 8px 0; }
.demo__typing i { width: 6px; height: 6px; background: var(--c-muted); animation: typing 1s ease-in-out infinite; }
.demo__typing i:nth-child(2) { animation-delay: .15s; }
.demo__typing i:nth-child(3) { animation-delay: .3s; }
.demo__results { display: grid; gap: 8px; margin-top: 16px; }
.demo__result {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; background: var(--c-page); border-left: 3px solid var(--c-purple); font-size: 14px;
}
.demo__result span:last-child { color: var(--c-teal); font-size: 13px; white-space: nowrap; }
.demo [data-step] { transition: opacity .35s ease, transform .35s ease; }
.demo [data-step].is-hidden { opacity: 0; transform: translateY(8px); }
.demo__note { padding: 12px 20px; border-top: 1px solid var(--c-border); font-size: 12px; color: var(--c-muted); }

@keyframes blink { 50% { opacity: 0; } }
@keyframes typing { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(88, 240, 230, 0); } }
@media (prefers-reduced-motion: reduce) {
  .demo__dot, .demo__caret, .demo__typing i { animation: none; }
}

/* ---------- Problém ---------- */

.problem { display: grid; gap: 56px; }
.problem__stat { display: grid; gap: 4px; }
.kpi__value { font-size: clamp(64px, 9vw, 120px); font-weight: 700; line-height: 1; color: var(--c-purple); letter-spacing: -.02em; }
.kpi__value--teal { color: var(--c-teal); }
.kpi__label { font-size: 18px; color: var(--c-text-2); }

.segments { display: grid; gap: 22px; }
.segment { display: grid; gap: 8px; }
.segment__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.segment__name { font-weight: 600; font-size: 17px; }
.segment__value { font-weight: 700; font-size: 22px; color: var(--c-teal); }
.segment__value--risk { color: var(--c-purple); }
.segment__bar { position: relative; height: 10px; background: var(--c-subtle); overflow: hidden; }
.segment__fill {
  position: absolute; inset: 0 auto 0 0; width: var(--w);
  background: linear-gradient(90deg, var(--c-teal), var(--c-teal-200));
  transform-origin: left; transition: transform 1.1s var(--ease);
}
.segment__fill--risk { background: linear-gradient(90deg, var(--c-purple), #a796f3); }
.js .segment__fill { transform: scaleX(0); }
.js .is-visible .segment__fill { transform: scaleX(1); }
.segment__meta { font-size: 14px; color: var(--c-muted); }
.segment--unknown .segment__bar { background: repeating-linear-gradient(-55deg, var(--c-subtle) 0 8px, transparent 8px 14px); }
@media (prefers-reduced-motion: reduce) { .js .segment__fill { transform: none; transition: none; } }

.callout {
  position: relative; padding: 28px 28px 28px 32px; background: var(--c-subtle);
  border-left: 3px solid var(--c-purple); font-size: 18px; line-height: 1.6;
}
.callout strong { color: var(--c-white); }

@media (min-width: 1024px) {
  .problem { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 96px; align-items: start; }
}

/* ---------- Mřížka karet ---------- */

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  padding: 32px; background: var(--c-sunken); border: 1px solid var(--c-border);
  transition: border-color var(--t-hover), transform var(--t-hover) var(--ease);
}
.section--sunken .card { background: var(--c-page); }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(45deg, transparent 55%, rgba(88, 240, 230, .16) 100%);
  transition: opacity var(--t-hover);
}
.card:hover { border-color: var(--c-border-strong); transform: translateY(-4px); }
.card:hover::after { opacity: 1; }
.card__num { font-size: 14px; font-weight: 600; letter-spacing: .14em; color: var(--c-purple); }
.card__icon { width: 44px; height: 44px; color: var(--c-teal); }
.card__title { font-size: 22px; line-height: 1.25; }
.card__text { color: var(--c-text-2); font-size: 16px; line-height: 1.6; }
.card__quote { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--c-border); font-size: 15px; color: var(--c-teal); font-style: italic; }
.card--accent { background: var(--c-purple) !important; border-color: var(--c-purple); }
.card--accent .card__text { color: #fff; }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }

/* ---------- Datová vrstva ---------- */

.data { display: grid; gap: 48px; align-items: center; }
.data__sources { display: grid; gap: 1px; background: var(--c-border); border: 1px solid var(--c-border); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.data__source { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--c-page); transition: background-color var(--t-hover); }
.data__source:hover { background: var(--c-subtle); }
.data__source svg { width: 28px; height: 28px; color: var(--c-teal); }
.data__source strong { font-size: 17px; }
.data__source span { font-size: 14px; color: var(--c-muted); line-height: 1.5; }

.data__core { position: relative; display: grid; place-items: center; padding: 24px 0; }
.data__core-shape { width: min(200px, 60%); }
@media (min-width: 1024px) { .data__core-shape { width: min(320px, 80%); } }
.data__core-label {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 4px;
  font-size: 15px; color: var(--c-ink); font-weight: 600;
}
.data__core-label b { font-size: 26px; }
.data__flow { position: absolute; inset: 0; pointer-events: none; overflow: visible; }

.data__out { display: grid; gap: 16px; }
.data__out li { padding: 20px 24px; background: var(--c-page); border-left: 3px solid var(--c-teal); }
.data__out strong { display: block; font-size: 18px; margin-bottom: 4px; }
.data__out span { color: var(--c-text-2); font-size: 15px; }

@media (min-width: 1024px) {
  .data { grid-template-columns: minmax(0, 1.1fr) minmax(0, .7fr) minmax(0, .9fr); gap: 32px; }
}

.rules { display: grid; gap: 16px; margin-top: 64px; }
.rule { display: flex; gap: 20px; padding: 24px; border: 1px solid var(--c-border); }
.rule__n {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px;
  background: var(--c-teal); color: var(--c-ink); font-weight: 700; font-size: 20px;
}
.rule h3 { font-size: 19px; margin-bottom: 4px; }
.rule p { color: var(--c-text-2); font-size: 15px; }
@media (min-width: 768px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Pro koho (přepínač) ---------- */

.tabs { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 40px; border-bottom: 1px solid var(--c-border); }
.tabs__btn {
  position: relative; padding: 16px 24px; background: none; border: 0; color: var(--c-muted);
  font: 600 18px/1.3 var(--font); cursor: pointer; transition: color var(--t-hover);
}
.tabs__btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--c-teal); transform: scaleX(0); transition: transform var(--t-hover) var(--ease); }
.tabs__btn[aria-selected="true"] { color: var(--c-white); }
.tabs__btn[aria-selected="true"]::after { transform: scaleX(1); }
.tabs__btn:hover { color: var(--c-text); }

.usecase { display: grid; gap: 40px; }
.usecase[hidden] { display: none; }
.usecase__media { position: relative; overflow: hidden; min-height: 360px; }
.usecase__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.usecase:hover .usecase__media img { transform: scale(1.04); }
.usecase__media::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 38%; aspect-ratio: 283 / 110;
  background: url(../img/card-shape.svg) no-repeat right bottom / contain;
}
.usecase__title { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
.usecase__lead { color: var(--c-text-2); font-size: 18px; margin-bottom: 28px; }
.usecase__queries { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 8px 14px; border: 1px solid var(--c-border-strong); font-size: 15px; color: var(--c-text-2); }
.chip::before { content: "„"; color: var(--c-teal); }
.chip::after { content: "“"; color: var(--c-teal); }
.usecase__cols { display: grid; gap: 28px; }
.usecase__cols h4 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; margin-bottom: 14px; }
@media (min-width: 640px) { .usecase__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .usecase { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; }
  .usecase__media { min-height: 100%; }
}
@media (prefers-reduced-motion: reduce) { .usecase__media img { transition: none; } .usecase:hover .usecase__media img { transform: none; } }

/* ---------- Formy nasazení ---------- */

.deploy { display: grid; gap: 48px; }
.deploy__list { display: grid; gap: 0; counter-reset: deploy; }
.deploy__item { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--c-border); }
.deploy__item:first-child { border-top: 1px solid var(--c-border); }
.deploy__n { display: grid; place-items: center; width: 56px; height: 56px; background: var(--c-subtle); color: var(--c-teal); font-weight: 700; font-size: 20px; transition: background-color var(--t-hover), color var(--t-hover); }
.deploy__item:hover .deploy__n { background: var(--c-teal); color: var(--c-ink); }
.deploy__item h3 { font-size: 20px; margin-bottom: 6px; }
.deploy__item p { color: var(--c-text-2); font-size: 16px; }

.shots { display: grid; gap: 16px; }
.shot { margin: 0; }
.shot__frame { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--c-border-strong); }
.shot__frame img { width: 100%; }
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--c-muted); }
@media (min-width: 1024px) {
  .deploy { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
  .shots { position: sticky; top: 104px; }
}

/* ---------- Výsledky ---------- */

.results { position: relative; overflow: hidden; background: var(--c-page); }
.results__glow { position: absolute; width: 2400px; max-width: none; right: -900px; top: -500px; opacity: .22; pointer-events: none; }
.kpis { position: relative; display: grid; gap: 40px; }
.kpi { display: grid; gap: 10px; align-content: start; }
.kpi__title { font-size: 20px; }
.kpi__text { color: var(--c-text-2); font-size: 16px; max-width: 340px; }
.kpis__divider { display: none; }
@media (min-width: 900px) {
  .kpis { grid-template-columns: 1fr auto 1fr auto 1fr; gap: 40px; align-items: center; }
  .kpis__divider { display: block; width: 56px; height: 80px; }
}
.results__foot { position: relative; display: grid; gap: 32px; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--c-border-strong); }
.results__logos { display: flex; align-items: center; gap: 40px; }
.results__logos img { width: 150px; opacity: .85; }
@media (min-width: 900px) { .results__foot { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Proces ---------- */

.process { display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 0 40px 72px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--c-purple); color: var(--c-purple); font-weight: 700; font-size: 16px;
  transition: background-color var(--t-hover), color var(--t-hover);
}
.step::after { content: ""; position: absolute; left: 24px; top: 56px; bottom: 8px; width: 1px; background: var(--c-border-strong); }
.step:last-child::after { display: none; }
.step.is-visible::before { background: var(--c-purple); color: #fff; }
.step h3 { font-size: 21px; margin-bottom: 6px; padding-top: 10px; }
.step p { color: var(--c-text-2); font-size: 16px; }
@media (min-width: 1024px) {
  .process { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .step { padding: 72px 0 0; }
  .step::after { left: 56px; right: -24px; top: 24px; bottom: auto; width: auto; height: 1px; }
  .step:last-child::after { display: block; right: 0; background: linear-gradient(90deg, var(--c-border-strong), transparent); }
  .step h3 { padding-top: 0; }
}

.control { display: grid; gap: 40px; margin-top: 88px; padding: 40px 32px; background: var(--c-sunken); border: 1px solid var(--c-border); }
.control__title { font-size: clamp(26px, 3vw, 34px); font-weight: 300; }
.control .bullets { color: var(--c-text-2); }
@media (min-width: 1024px) { .control { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); padding: 56px; gap: 72px; } }

/* ---------- Varianty ---------- */

.plans { display: grid; gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 24px; padding: 40px 32px; border: 1px solid var(--c-border-strong); background: var(--c-page); }
.plan--featured { background: var(--c-purple); border-color: var(--c-purple); }
.plan__tag { align-self: flex-start; padding: 4px 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: var(--c-sunken); color: var(--c-text-2); }
.plan--featured .plan__tag { background: #fff; color: var(--c-purple); }
.plan__title { font-size: 30px; }
.plan__lead { color: var(--c-text-2); }
.plan--featured .plan__lead { color: #fff; }
.plan .bullets { flex: 1; }
.plan--featured .bullets li::before { filter: brightness(0) invert(1); }
.plan__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .18); }
.plan__fact { padding: 14px 16px; background: var(--c-sunken); }
.plan--featured .plan__fact { background: #6f56e0; }
.plan__fact span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.plan--featured .plan__fact span { color: #e4defc; }
.plan__fact strong { font-size: 20px; }
.plan__fit { font-size: 15px; font-style: italic; color: var(--c-muted); }
.plan--featured .plan__fit { color: #ece8fd; }
.plans__note { margin-top: 32px; max-width: 760px; color: var(--c-text-2); }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan { padding: 48px; } }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 48px; }
.faq__list { border-top: 1px solid var(--c-border-strong); }
.faq__item { border-bottom: 1px solid var(--c-border-strong); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0;
  font-size: 20px; font-weight: 600; cursor: pointer; list-style: none; transition: color var(--t-hover);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--c-teal); }
.faq__plus { position: relative; flex: none; width: 28px; height: 28px; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--c-teal); transition: transform var(--t-hover) var(--ease); }
.faq__plus::after { transform: rotate(90deg); }
.faq__item[open] .faq__plus::after { transform: rotate(0); }
.faq__a { padding: 0 48px 28px 0; color: var(--c-text-2); }
.faq__a p + p { margin-top: 12px; }
@media (min-width: 1024px) { .faq { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 96px; } }

/* ---------- CTA ---------- */

.cta { position: relative; overflow: hidden; background: var(--c-teal-50); color: var(--c-ink); padding-block: var(--section-y); }
.cta__symbol { position: absolute; right: -180px; top: 50%; width: 640px; max-width: none; transform: translateY(-50%); pointer-events: none; }
.cta__inner { position: relative; z-index: 1; max-width: 720px; }
.cta .overline { color: #5f6c78; }
.cta__title { font-size: clamp(42px, 6.4vw, 80px); line-height: 1.04; letter-spacing: -.02em; }
.cta__title .accent { display: block; }
.cta__text { margin-top: 28px; font-size: clamp(18px, 2vw, 22px); line-height: 1.6; color: #164466; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.cta__contact { display: grid; gap: 4px; margin-top: 40px; font-size: 16px; color: #164466; }
.cta__contact a { color: var(--c-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.cta__contact a:hover { color: #6f56e0; }
@media (max-width: 899px) { .cta__symbol { width: 380px; right: -300px; opacity: .35; } }

/* ---------- Patička ---------- */

.footer { position: relative; overflow: hidden; background: var(--c-page); padding-block: 72px 32px; }
.footer__symbol { position: absolute; left: -180px; top: -120px; width: 620px; max-width: none; opacity: .7; pointer-events: none; }
.footer__grid { position: relative; display: grid; gap: 40px; }
.footer__logo { width: 120px; margin-bottom: 20px; }
.footer__claim { font-size: 18px; color: var(--c-text-2); max-width: 340px; }
.footer h3 { font-size: 15px; margin-bottom: 14px; }
.footer li { margin-bottom: 8px; color: var(--c-text-2); font-size: 15px; }
.footer a { text-decoration: none; transition: color var(--t-hover); }
.footer a:hover { color: var(--c-teal); }
.footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--c-border-strong); font-size: 13px; color: var(--c-muted); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- 404 ---------- */

.error-page { position: relative; overflow: hidden; min-height: calc(100vh - 72px); display: grid; align-items: center; background: var(--c-page); }
.error-page__shape { position: absolute; right: -120px; top: 50%; width: 760px; max-width: none; transform: translateY(-50%); opacity: .9; pointer-events: none; }
.error-page__inner { position: relative; z-index: 1; padding-block: 96px; }
.error-page__code { font-size: clamp(110px, 20vw, 240px); font-weight: 800; line-height: .9; letter-spacing: -.04em; color: var(--c-purple); }
.error-page__title { margin-top: 24px; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.1; }
.error-page__text { margin-top: 20px; max-width: 560px; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
@media (max-width: 899px) { .error-page__shape { width: 460px; right: -300px; opacity: .5; } }
.demo__typing.is-hidden { display: none; }
