/* Landing: Z komunikace rovnou do systémů (/cs/landing/communication-to-system/).
   Tokens, .container/.section/.btn/.reveal a nav/footer styly přicházejí z home.css
   a z komponent — tenhle soubor přidává jen sekce specifické pro tuhle stránku. */

/* ===== HERO ===== */
.cts-hero {
  position: relative; overflow: hidden; text-align: center;
  /* na výšku obrazovky bez sticky navigace (68 px); dvh kvůli liště prohlížeče na mobilu */
  min-height: calc(100vh - 68px);
  min-height: calc(100dvh - 68px);
  display: flex; align-items: center; justify-content: center;
  padding: 100px 0;
}
.cts-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(124,58,237,0.10), transparent 60%),
    radial-gradient(50% 50% at 10% 30%, rgba(29,78,216,0.10), transparent 60%);
}
/* Fotka na pozadí — stejný postup jako .hero::after na homepage a .why-hero--photo na ROI.
   Horní zarážka překryvu je 0.68 místo 0.6, protože hero-laptop.jpg je znatelně tmavší
   (průměrný jas 79 vs. 137 u hero-bg.jpg); výsledná světlost hero pak sedí k ostatním stránkám. */
.cts-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.68) 0%, rgba(255,255,255,0.9) 60%, rgba(255,255,255,1) 100%),
    url('/landing/assets/hero-laptop.jpg') bottom / cover no-repeat fixed;
  filter: blur(4px);
  transform: scale(1.05);
}
.cts-hero > .container { position: relative; z-index: 1; width: 100%; }
.cts-hero-inner { max-width: 940px; margin: 0 auto; }
.cts-hero h1 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.05; letter-spacing: -0.035em; }
.cts-hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cts-hero-sub {
  margin: 26px auto 0; max-width: 760px;
  font-size: clamp(17px, 1.8vw, 21px); line-height: 1.55; color: var(--text);
}
.cts-hero-cta { margin-top: 38px; display: flex; justify-content: center; }

/* ===== PŘEPÍNAČ OBORU ===== */
/* mezera pod přepínačem = odstup nadpisu „Hovor skončí…“ */
.cts-picker { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 100px; }
.cts-picker-label {
  font-size: clamp(18px, 2vw, 22px); font-weight: 700; letter-spacing: -0.02em; color: var(--text);
}
.cts-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cts-tab {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 13px 26px; border-radius: 10px; /* jako .btn v navigaci */
  border: 1.5px solid var(--border); background: #fff; color: var(--text);
  font-size: 16px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25;
  box-shadow: var(--shadow-sm);
  transition: all .18s cubic-bezier(.2,.7,.3,1);
}
.cts-tab-emoji { font-size: 20px; line-height: 1; flex: none; }
.cts-tab:hover { border-color: #94a3b8; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cts-tab.is-active {
  color: #fff; background: var(--grad); border-color: transparent; transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 14px 30px -10px rgba(29,78,216,0.6);
}

/* Přepínané bloky. Uvnitř nesmí být .reveal — prvky ve skrytém bloku
   nikdy neprotnou viewport a po přepnutí by zůstaly neviditelné. */
.cts-swap[hidden] { display: none; }
.cts-swap { animation: ctsIn .24s cubic-bezier(.2,.7,.3,1) both; }
@keyframes ctsIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== SLOUČENÁ SEKCE: administrativa + kanály ===== */
.cts-merge-head { max-width: 800px; margin: 0 auto 48px; text-align: center; }
.cts-merge-head h2 { font-size: clamp(30px, 3.6vw, 46px); }

/* Rozsypaná hromada systémů. Chaos dělá rozházení a překryv karet,
   ne detaily uvnitř — karta nese jen ikonu, název systému a jednu řádku. */
.cts-stage { position: relative; max-width: 1060px; margin: 0 auto; min-height: 560px; }
.cts-syscard {
  position: absolute; width: 272px; padding: 26px;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 16px 34px -14px rgba(15,23,42,0.30);
  transition: transform .2s, box-shadow .2s;
}
.cts-syscard:hover {
  z-index: 20 !important; transform: rotate(0deg) scale(1.03) !important;
  box-shadow: 0 26px 50px -16px rgba(15,23,42,0.4);
}
.cts-syscard-e { display: block; font-size: 38px; line-height: 1; margin-bottom: 16px; }
.cts-syscard-n { font-size: 27px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; color: var(--text); }
.cts-syscard-a { margin-top: 11px; font-size: 16px; line-height: 1.45; color: var(--text-muted); }

/* ===== CO ZPRACUJEME — tři kanály, u každého jedna věta ===== */
.cts-do { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cts-do-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px;
  box-shadow: var(--shadow-md); transition: transform .2s, box-shadow .2s;
}
.cts-do-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cts-do-e { display: block; font-size: 40px; line-height: 1; margin-bottom: 18px; }
.cts-do-card h3 { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; }
.cts-do-card p { margin-top: 12px; font-size: 16.5px; line-height: 1.55; color: var(--text-muted); }


/* ===== JAK VZNIKNE NAPOJENÍ — střídavá osa ===== */
.cts-flow-head { max-width: 840px; margin: 0 auto 52px; text-align: center; }
.cts-flow-head h2 { font-size: clamp(30px, 3.6vw, 46px); }
.cts-flow-head p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--text); }

.cts-flow { position: relative; max-width: 940px; margin: 0 auto; }
.cts-flow::before {
  content: ''; position: absolute; left: 50%; top: 20px; bottom: 20px;
  width: 2px; background: var(--border); transform: translateX(-1px);
}
.cts-flow-row { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: center; margin-bottom: 20px; }
.cts-flow-row:last-child { margin-bottom: 0; }
.cts-flow-row--left .cts-flow-card { grid-column: 1; }
.cts-flow-row--right .cts-flow-card { grid-column: 3; }
.cts-flow-mid { grid-column: 2; display: grid; place-items: center; }
.cts-flow-dot {
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  border: 3px solid var(--border); position: relative; z-index: 1;
}
.cts-flow-row--ai .cts-flow-dot { border-color: #7c3aed; }
.cts-flow-row--clovek .cts-flow-dot { border-color: #1d4ed8; }
.cts-flow-row--vy .cts-flow-dot { border-color: #d97706; }

.cts-flow-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 26px; box-shadow: var(--shadow-md);
}
.cts-flow-e { display: block; font-size: 34px; line-height: 1; margin-bottom: 14px; }
.cts-flow-card h3 { margin-top: 13px; font-size: 22px; font-weight: 800; letter-spacing: -0.025em; }
.cts-flow-card p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--text-muted); }

/* kdo krok dělá — fialová AI, modrá člověk, jantarová vy */
.cts-actor {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
}
.cts-actor--ai { color: #7c3aed; background: rgba(124,58,237,0.1); }
.cts-actor--clovek { color: #1d4ed8; background: rgba(29,78,216,0.09); }
.cts-actor--vy { color: #d97706; background: rgba(217,119,6,0.1); }

/* ===== VÝSLEDEK — uklizená hromada (zrcadlo rozsypaných karet výše) ===== */
.cts-res-lead {
  max-width: 700px; margin: -18px auto 36px; text-align: center;
  font-size: 18px; line-height: 1.6; color: var(--text);
}
/* pět karet: tři nahoře, dvě vycentrované pod nimi — stejná sada jako v rozsypané hromadě */
.cts-res { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; max-width: 900px; margin: 0 auto; }
.cts-res-card {
  width: 272px; position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: 18px; padding: 26px; box-shadow: 0 16px 34px -14px rgba(15,23,42,0.18);
}
.cts-res-badge {
  position: absolute; top: -12px; right: -12px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: #0f766e; color: #fff;
  box-shadow: 0 6px 16px -4px rgba(13,148,136,0.6);
}
.cts-res-e { display: block; font-size: 38px; line-height: 1; margin-bottom: 16px; }
/* dva řádky napevno, ať seznamy pod názvy začínají ve stejné výšce */
.cts-res-n { min-height: 2.16em; font-size: 27px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; color: var(--text); }
.cts-res-card ul { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.cts-res-card li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; font-size: 15.5px; line-height: 1.5; color: var(--text-muted);
}
.cts-res-card li svg { flex: none; margin-top: 3px; color: #0f766e; }
.cts-res-note {
  margin: 40px auto 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 16px; color: var(--text-muted);
}
.cts-res-note svg { flex: none; color: #059669; }

/* ===== ZAKLADATEL ===== */
.cts-founder {
  display: grid; grid-template-columns: 260px 1fr; gap: 44px;
  align-items: start; max-width: 980px; margin: 0 auto;
}
.cts-founder-photo {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 20px; box-shadow: var(--shadow-lg);
  background: #0b1228 url('/landing/assets/founder.jpg') top center / cover no-repeat;
}
.cts-founder-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.cts-founder-role {
  margin-top: 6px; font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; color: var(--text-muted);
}
.cts-founder-body { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.cts-founder-body p { font-size: 16.5px; line-height: 1.65; color: var(--text); }

/* ===== FORMULÁŘ ===== */
.cts-form { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cts-form h2 { font-size: clamp(30px, 3.4vw, 44px); }
.cts-form-body { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.cts-form-body p { font-size: 17px; line-height: 1.6; color: var(--text); }
/* odpověď na cenu — poslední námitka před formulářem */
.cts-price {
  margin-top: 30px; padding: 26px 28px; border-radius: 16px;
  background: var(--grad-soft); border: 1px solid rgba(29,78,216,0.16);
}
.cts-price h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.025em; }
.cts-price p { margin-top: 12px; font-size: 16.5px; line-height: 1.6; color: var(--text); }
/* selektor s elementem, aby přebil .cts-price p výše */
.cts-price p.cts-price-hi {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(29,78,216,0.16);
  font-weight: 700; color: var(--primary);
}
/* mantinely nabídky — vědomě drobnějším písmem, ať to nezní jako podmínky ve smlouvě */
.cts-price p.cts-price-fine { margin-top: 10px; font-size: 15px; color: var(--text-muted); }

.cts-form-note {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 14.5px; line-height: 1.6; color: var(--text-muted);
}
.cts-form-embed {
  display: flex; background: #fff; border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
}
/* Výšku vnořeného formuláře nelze změřit (jiná doména), takže se odhaduje.
   Když formulář pošle svoji výšku přes postMessage, skript ji přepíše na přesnou. */
.cts-form-embed iframe { flex: 1; width: 100%; min-height: clamp(680px, 82vh, 920px); border: 0; display: block; }

/* ===== RESPONSIVE ===== */
/* ===== CENA: dvě karty (setup zdarma / na míru) ===== */
.cts-pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 980px; margin: 0 auto; }
.cts-pricing-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; box-shadow: var(--shadow-md);
}
.cts-pricing-card--free { border-color: rgba(13,148,136,0.45); box-shadow: 0 16px 34px -14px rgba(13,148,136,0.28); }
.cts-pricing-tag {
  display: inline-flex; align-self: flex-start; padding: 5px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
}
.cts-pricing-card--free .cts-pricing-tag { color: #0f766e; background: rgba(13,148,136,0.1); }
.cts-pricing-card--custom .cts-pricing-tag { color: #7c3aed; background: rgba(124,58,237,0.1); }
.cts-pricing-card h3 { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.cts-pricing-card h3 + .cts-pricing-tag { margin-top: 14px; }
.cts-pricing-price { margin-top: 14px; font-size: 34px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; color: var(--text); }
.cts-pricing-card--free .cts-pricing-price {
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cts-pricing-pnote { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.cts-pricing-desc { margin-top: 18px; font-size: 16.5px; line-height: 1.6; color: var(--text); }
.cts-pricing-ex-label {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted);
}
.cts-pricing-card ul { margin-top: 8px; }
.cts-pricing-card li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 15.5px; line-height: 1.5; color: var(--text-muted);
}
.cts-pricing-card li svg { flex: none; margin-top: 3px; color: #0f766e; }
.cts-pricing-card--custom li svg { color: #7c3aed; }
.cts-pricing-foot { margin-top: auto; padding-top: 18px; font-size: 14.5px; line-height: 1.5; color: var(--text-muted); }
.cts-pricing + .cts-res-note { margin-top: 36px; }

@media (max-width: 1080px) {
  .cts-flow::before { left: 19px; }
  .cts-flow-row { grid-template-columns: 40px 1fr; }
  .cts-flow-row--left .cts-flow-card, .cts-flow-row--right .cts-flow-card { grid-column: 2; }
  .cts-flow-mid { grid-column: 1; }
  /* Na užší obrazovce karty jdou pod sebe, ale zůstávají rozházené: mírné natočení
     a posun do stran. Výchylky drží pod 32px odsazením .container, takže nikde nepřetečou.
     Nutné !important, protože rotaci na širokém plátně nastavuje inline style. */
  .cts-stage {
    min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 16px;
    padding: 6px 0;
  }
  .cts-syscard { position: static !important; }
  .cts-syscard:nth-child(1) { transform: rotate(-2.6deg) translateX(-9px) !important; }
  .cts-syscard:nth-child(2) { transform: rotate(2.2deg) translateX(11px) !important; }
  .cts-syscard:nth-child(3) { transform: rotate(-1.4deg) translateX(5px) !important; }
  .cts-syscard:nth-child(4) { transform: rotate(3deg) translateX(-11px) !important; }
  .cts-syscard:nth-child(5) { transform: rotate(-2deg) translateX(7px) !important; }
  .cts-syscard:hover { transform: rotate(0deg) translateX(0) scale(1.02) !important; }
}
@media (max-width: 1000px) {
  .cts-do { grid-template-columns: 1fr; }
  .cts-pricing { grid-template-columns: 1fr; max-width: 560px; }
  .cts-form { grid-template-columns: 1fr; gap: 36px; }
  .cts-founder { grid-template-columns: 200px 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .cts-hero { padding: 70px 0; }
  /* background-attachment: fixed se na iOS chová nespolehlivě */
  .cts-hero::after { background-attachment: scroll; }
  .cts-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; align-items: stretch; }
  .cts-tab { width: 100%; justify-content: center; gap: 8px; padding: 12px 12px; font-size: 14px; }
  .cts-tab-emoji { font-size: 17px; }
  .cts-picker { margin-bottom: 64px; }
  .cts-founder { grid-template-columns: 1fr; }
  .cts-founder-photo { max-width: 200px; }
  .cts-do-card, .cts-res-card, .cts-pricing-card { padding: 22px; }
  .cts-syscard, .cts-res-card { width: 100%; max-width: 340px; padding: 22px; }
  .cts-res-n { min-height: 0; }
  .cts-form-embed iframe { min-height: clamp(560px, 88vh, 780px); }
}

/* ===== HERO S UKÁZKOU PRODUKTU + KVÍZ (E05, 2026-08-23) ===== */
.cts-hero--demo { text-align: left; padding: 80px 0 60px; min-height: 0; }
.cts-hero-grid { max-width: 1180px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cts-hero-grid .cts-hero-sub { margin-left: 0; }
.cts-hero-grid .cts-hero-cta { justify-content: flex-start; }
.cts-hero-demo { margin: 0; }
.cts-hero-demo-frame {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #0b1220; box-shadow: 0 24px 60px rgba(15,23,42,0.22), 0 0 0 1px rgba(15,23,42,0.06);
  aspect-ratio: 4 / 5; max-height: 660px; margin: 0 auto;
}
.cts-hero-demo-frame video, .cts-hero-demo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cts-hero-demo figcaption { margin-top: 10px; font-size: 13px; color: var(--muted, #64748b); text-align: center; }

/* Kvíz (E05) v modalu */
.cts-quiz-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cts-quiz-modal[hidden] { display: none; }
.cts-quiz-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(2px); }
.cts-quiz-dialog {
  position: relative; width: min(560px, 100%); max-height: 92vh;
  display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
}
.cts-quiz-close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: rgba(15, 23, 42, 0.06); color: var(--text, #0f172a);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.cts-quiz-close:hover { background: rgba(15, 23, 42, 0.12); }
.cts-quiz-embed { flex: 1; min-height: 0; overflow-y: auto; }
.cts-quiz-embed iframe { display: block; width: 100%; border: 0; min-height: min(760px, 80vh); max-height: 84vh; }
.cts-quiz-note { margin: 0; padding: 10px 18px 14px; text-align: center; font-size: 13px; color: var(--muted, #64748b); }

@media (max-width: 900px) {
  .cts-hero-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .cts-hero-grid .cts-hero-sub { margin-left: auto; margin-right: auto; }
  .cts-hero-grid .cts-hero-cta { justify-content: center; }
  .cts-hero-demo-frame { max-width: 420px; max-height: 525px; }
}
@media (max-width: 640px) {
  .cts-hero--demo { padding: 48px 0 32px; }
  .cts-hero--demo h1 { font-size: clamp(30px, 8vw, 38px); }
  .cts-hero--demo .cts-hero-sub { margin-top: 16px; font-size: 16px; }
  .cts-hero--demo .cts-hero-cta { margin-top: 22px; }
  .cts-hero-demo-frame { max-width: 340px; max-height: 425px; }
  .cts-quiz-modal { padding: 10px; }
  .cts-quiz-dialog { max-height: 96vh; }
  .cts-quiz-embed iframe { min-height: min(680px, 84vh); }
}
