/* AI odpovědi – ukázka
   Paleta: pozadí #F3F4F8, plochy #FFFFFF, text #0F1222, přechod #5B2BFF → #2F6BFF
   Písma: Inter Tight (nadpisy), Inter (text), JetBrains Mono (AI log) */

:root {
  --bg: #F3F4F8;
  --bg-2: #EBEDF4;
  --surface: #FFFFFF;
  --ink: #0F1222;
  --ink-2: #2A2F45;
  --muted: #5D6377;
  --line: #E3E5EE;
  --g1: #5B2BFF;
  --g2: #2F6BFF;
  --grad: linear-gradient(120deg, var(--g1), var(--g2));
  --tint: #EFEBFF;
  --ok: #0E9F5E;
  --ok-bg: #E6F7EE;
  --no: #D93A40;
  --no-bg: #FDECEC;
  --wait: #B76E00;
  --wait-bg: #FFF4E0;
  --r: 20px;
  --shadow: 0 1px 2px rgba(20, 22, 50, .05), 0 12px 32px -12px rgba(40, 32, 110, .18);
  --shadow-lg: 0 2px 4px rgba(20, 22, 50, .05), 0 30px 60px -24px rgba(40, 32, 110, .32);
  --f-head: "Inter Tight", "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--f-head); letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(91, 43, 255, .45); outline-offset: 2px; border-radius: 8px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Štítky ---------- */
.flag {
  position: fixed; right: 14px; bottom: 14px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font: 600 13px/1 var(--f-body);
  box-shadow: 0 10px 30px -10px rgba(15, 18, 34, .5);
}
.flag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px rgba(91, 43, 255, .35); }
.flag--inline { position: static; box-shadow: none; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font: 600 12px/1.2 var(--f-body);
}
.pill--sim { background: var(--tint); color: #4520D6; border: 1px solid #DCD3FF; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--f-body); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--grad { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(76, 48, 255, .7); }
.btn--grad:hover { box-shadow: 0 14px 30px -10px rgba(76, 48, 255, .8); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost-light { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }

/* ---------- Horní lišta ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 244, 248, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(227, 229, 238, .7);
}
.top__in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(76, 48, 255, .7); }
.brand__mark svg { width: 24px; height: 24px; }
.brand__text { font: 700 16px/1.1 var(--f-head); }
.brand__text small { display: block; font: 500 12px/1.3 var(--f-body); color: var(--muted); }
.top__nav { display: none; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.top__nav a { text-decoration: none; }
.top__nav a:hover { color: var(--g1); }
.top .btn { margin-left: auto; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 30px; position: relative; overflow: hidden; }
.hero__in { display: grid; gap: 28px; }
.eyebrow { margin-bottom: 18px; }
.hero__title { font-size: clamp(44px, 11vw, 84px); font-weight: 800; letter-spacing: -0.035em; line-height: .98; }
.hero__title .line { display: block; }
.js .hero__title .line { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.js .hero__title .line:nth-child(2) { animation-delay: .15s; }
.hero__lead { margin-top: 20px; font-size: 18px; color: var(--ink-2); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.rule-chip {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 12px; background: var(--ok-bg); color: #0A6E42;
  font-weight: 600; font-size: 14px;
}
.rule-chip svg { width: 20px; height: 20px; color: var(--ok); flex: none; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero__visual { position: relative; height: 400px; }
.orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; }
.orb--a { width: 300px; height: 300px; background: #8B6BFF; top: -10px; right: -60px; }
.orb--b { width: 240px; height: 240px; background: #6FA0FF; bottom: 0; left: -40px; opacity: .4; }
.hstack { position: absolute; inset: 0; }
.hcard {
  position: absolute; left: 4%; right: 4%;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px; padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  opacity: 0; transform: translateX(70px) rotate(4deg);
}
.hcard[data-i="0"] { top: 8px; }
.hcard[data-i="1"] { top: 118px; left: 12%; right: 0; }
.hcard[data-i="2"] { top: 228px; right: 10%; }
.hcard.in { animation: cardIn .7s cubic-bezier(.2, .9, .25, 1.15) forwards; }
.hcard.out { animation: cardOut .6s ease forwards; }
@keyframes cardIn { to { opacity: 1; transform: none; } }
@keyframes cardOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-30px) scale(.96); } }
.hcard__src { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hcard__src::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--g1); }
.hcard__src--msg::before { background: var(--g2); }
.hcard__src--map::before { background: #F0A030; }
.hcard__msg { margin-top: 6px; font-weight: 600; font-size: 15px; }
.hcard__ai { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--tint); color: #4520D6; font: 500 12px/1 var(--f-mono); transition: background .3s, color .3s; }
.hcard.ready .hcard__ai { background: var(--ok-bg); color: #0A6E42; }
.hcard.ready .dots { display: none; }
.hcard.ready .hcard__ai::before { content: "✓"; font-weight: 700; }
.hphone {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink); color: #fff; border-radius: 18px; padding: 12px 14px;
  box-shadow: var(--shadow-lg); width: 250px;
}
.hphone__bar { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.hphone__bar b { min-width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--grad); font: 700 13px/1 var(--f-mono); }
.hphone__bar b.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }
.hphone__btns { display: flex; gap: 6px; margin-top: 10px; }
.mini { flex: 1; text-align: center; padding: 7px 0; border-radius: 9px; background: rgba(255, 255, 255, .1); font-size: 11px; font-weight: 600; }
.mini--ok { background: var(--ok); }
.mini--no { color: #FFB4B6; }

/* tečky „AI píše…“ */
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: dot 1.1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* ---------- Sekce obecně ---------- */
.sec-head { max-width: 760px; margin-bottom: 26px; }
.kicker { font: 600 13px/1 var(--f-mono); color: var(--g1); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.sec-head h2, .flow__copy h2 { font-size: clamp(32px, 7vw, 56px); font-weight: 800; }
.sec-lead { margin-top: 14px; color: var(--muted); font-size: 17px; }

.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Demo ---------- */
.demo { padding: 60px 0 70px; }
.controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.ctl-play {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px;
}
.ctl-play svg { width: 16px; height: 16px; fill: currentColor; }
.ctl-play .i-play { display: none; }
.ctl-play.is-paused { background: var(--grad); }
.ctl-play.is-paused .i-play { display: block; }
.ctl-play.is-paused .i-pause { display: none; }
.seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: var(--bg); flex-wrap: wrap; }
.seg__label { font: 500 11px/1 var(--f-mono); color: var(--muted); padding: 0 8px; text-transform: uppercase; letter-spacing: .05em; }
.seg button { border: 0; background: transparent; cursor: pointer; padding: 7px 11px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 22, 50, .12); }
.controls__sim { margin-left: auto; }

.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  border: 0; cursor: pointer; text-align: left;
  padding: 12px 12px; border-radius: 14px; background: var(--surface);
  font: 700 14px/1.1 var(--f-head); color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  position: relative; overflow: hidden;
  transition: box-shadow .2s, color .2s;
}
.tab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; margin-bottom: 4px; color: var(--muted); }
.tab small { font: 500 11px/1.2 var(--f-body); color: var(--muted); }
.tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 0 0 2px var(--g1), 0 10px 24px -14px rgba(76, 48, 255, .7); }
.tab[aria-selected="true"] svg { color: var(--g1); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); }

.demo-grid { display: grid; gap: 16px; }
.stage {
  position: relative; height: 640px; border-radius: 26px;
  background: linear-gradient(180deg, #E9EBF3, #E2E5EF);
  padding: 12px; box-shadow: inset 0 0 0 1px var(--line);
}
.panel { height: 100%; }
.panel.enter { animation: panelIn .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
.panel-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #C9CCDA transparent; }

/* avatary */
.av {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font: 700 13px/1 var(--f-head);
  background: #8A90A8;
}
.av--sm { width: 30px; height: 30px; font-size: 11px; }
.av--brand { background: linear-gradient(135deg, #C2803C, #8A4A1C); }
.av--c1 { background: #E26D8F; }
.av--c2 { background: #3BA3A0; }
.av--c3 { background: #E09B2D; }
.av--c4 { background: #9AA0B4; }
.av--you { background: var(--grad); }

/* příspěvek */
.post { height: 100%; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.post__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; flex-wrap: wrap; }
.post__head strong { display: block; font: 700 15px/1.2 var(--f-head); }
.post__head small, .place__info small { color: var(--muted); font-size: 12px; }
.post__net { margin-left: auto; font: 500 10.5px/1 var(--f-mono); color: var(--muted); background: var(--bg); padding: 5px 8px; border-radius: 6px; }
.post__text { padding: 2px 16px 12px; font-size: 15px; }
.post__img { margin: 0 12px; border-radius: 14px; overflow: hidden; height: 170px; background: #F3E3CB; }
.post__img svg { width: 100%; height: 100%; display: block; }
.post__actions { display: flex; justify-content: space-around; padding: 10px 12px; margin: 8px 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.clist { list-style: none; margin: 0; padding: 14px 14px 24px; display: grid; gap: 14px; }

.cm { display: flex; gap: 10px; align-items: flex-start; }
.cm__body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.cm__bubble { background: var(--bg); border-radius: 4px 16px 16px 16px; padding: 9px 13px; justify-self: start; max-width: 100%; position: relative; }
.cm__bubble b { font: 700 13px/1.3 var(--f-head); }
.cm__bubble p { font-size: 14px; }
.cm--you .cm__bubble { background: #EEF0FF; box-shadow: inset 0 0 0 1px #D9DCFF; }
.cm.is-suspect .cm__bubble { box-shadow: inset 0 0 0 1.5px #F2B8BA; }
.cm.is-hidden .cm__bubble p, .cm.is-hidden .cm__bubble b { opacity: .35; text-decoration: line-through; }
.cm__flag { display: inline-block; margin-top: 6px; font: 500 11px/1 var(--f-mono); color: var(--no); background: var(--no-bg); padding: 5px 8px; border-radius: 6px; }

.aitype { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 8px 12px; border-radius: 12px; background: var(--tint); color: #4520D6; font: 500 12px/1 var(--f-mono); }

.draft {
  position: relative; border-radius: 16px; padding: 12px 14px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  border: 1.5px dashed transparent;
  box-shadow: 0 12px 30px -18px rgba(76, 48, 255, .6);
}
.draft::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: 16px; padding: 1.5px;
  background: var(--grad); opacity: .9;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.draft__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.draft__tag { font: 600 11px/1.5 var(--f-mono); padding-top: 2px; text-transform: uppercase; letter-spacing: .05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.draft__tone { font: 500 10.5px/1 var(--f-mono); color: var(--muted); }
.draft__text { font-size: 14px; color: var(--ink); min-height: 1.5em; white-space: pre-line; outline: none; }
.draft.editing .draft__text[contenteditable="true"] { background: #FFFBEA; border-radius: 8px; padding: 6px 8px; box-shadow: inset 0 0 0 1px #F2D27A; }
.draft__note { margin-top: 6px; font-size: 13px; color: var(--muted); }
.draft.is-rejected { opacity: .8; }
.draft.is-rejected::before { background: #C8CBD8; }
.draft.is-rejected .draft__tag { background: none; color: var(--no); }
.draft.is-rejected .draft__text { text-decoration: line-through; color: var(--muted); }
.owner-edit { background: #FFF1C2; border-radius: 4px; padding: 0 2px; }
.typing::after {
  content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em;
  background: var(--g1); animation: caret .8s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.fly-in { animation: flyIn .55s cubic-bezier(.2, .9, .25, 1.1) both; }
@keyframes flyIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.fly-out { animation: flyOut .35s ease forwards; }
@keyframes flyOut { to { opacity: 0; transform: translateY(-8px) scale(.98); } }

.approve { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.approve__who { font: 500 11px/1.2 var(--f-mono); color: var(--wait); display: inline-flex; align-items: center; gap: 6px; }
.approve__who::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
.approve.done .approve__who::before { animation: none; }
@keyframes pulse { 50% { opacity: .3; } }
.approve__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.abtn { border: 0; cursor: pointer; padding: 8px 13px; border-radius: 10px; font-size: 13px; font-weight: 600; transition: transform .15s, background .2s, box-shadow .2s; }
.abtn--approve { background: var(--ok); color: #fff; }
.abtn--edit { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.abtn--reject { background: var(--surface); color: var(--no); box-shadow: inset 0 0 0 1px #F3C3C5; }
.abtn:hover:not(:disabled) { transform: translateY(-1px); }
.abtn.press { transform: scale(.92); box-shadow: 0 0 0 6px rgba(91, 43, 255, .18); }
.abtn:disabled { cursor: default; opacity: .45; }
.abtn.chosen { opacity: 1; box-shadow: 0 0 0 3px rgba(15, 18, 34, .12); }

.reply { display: flex; gap: 8px; align-items: flex-start; margin-left: 6px; }
.reply__bubble { background: #F4F1FF; border-radius: 4px 16px 16px 16px; padding: 9px 13px; box-shadow: inset 0 0 0 1px #E2DAFF; }
.reply__head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.reply__head b { font: 700 13px/1.3 var(--f-head); }
.reply__badge { font: 500 10px/1 var(--f-mono); color: #0A6E42; background: var(--ok-bg); padding: 4px 6px; border-radius: 5px; }
.reply__text { font-size: 14px; margin-top: 2px; white-space: pre-line; }
.flash { animation: flash .9s ease; }
@keyframes flash { 0% { background: rgba(91, 43, 255, .18); } 100% { background: transparent; } }

/* zprávy */
.inbox { height: 100%; display: grid; grid-template-columns: 1fr; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.inbox__list { display: none; border-right: 1px solid var(--line); padding: 14px 10px; background: #FAFAFD; }
.inbox__title { font: 700 18px/1 var(--f-head); padding: 4px 8px 14px; }
.ithread { display: flex; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 12px; }
.ithread b { display: block; font-size: 13px; }
.ithread small { font-size: 12px; color: var(--muted); }
.ithread.is-on { background: var(--tint); }
.ithread--muted { opacity: .5; }
.chat { display: flex; flex-direction: column; min-height: 0; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat__head strong { display: block; font: 700 15px/1.2 var(--f-head); }
.chat__head small { font-size: 12px; color: var(--muted); }
.chat__body { flex: 1; min-height: 0; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat__sep { align-self: center; font: 500 11px/1 var(--f-mono); color: var(--muted); padding: 10px 0 2px; }
.msg { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: 14px; }
.msg--in { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 4px; }
.msg--ai { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.msg__who { display: block; font: 500 10.5px/1.3 var(--f-mono); opacity: .75; margin-bottom: 2px; }
.msg__sent { display: block; text-align: right; font: 500 10px/1 var(--f-mono); opacity: .8; margin-top: 4px; }
.msg--typing { display: inline-flex; gap: 8px; align-items: center; font: 500 12px/1 var(--f-mono); background: var(--tint); color: #4520D6; }
.msg.draft { background: linear-gradient(var(--surface), var(--surface)) padding-box; color: var(--ink); border-radius: 16px 16px 4px 16px; }
.order { margin: 0 12px 12px; padding: 12px 14px; border-radius: 14px; background: #FAFAFD; box-shadow: inset 0 0 0 1px var(--line); animation: flyIn .5s both; }
.order__title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font: 700 14px/1.2 var(--f-head); margin-bottom: 8px; }
.order__state { font: 500 11px/1 var(--f-mono); padding: 5px 8px; border-radius: 6px; background: var(--tint); color: #4520D6; }
.order__state.is-ok { background: var(--ok-bg); color: #0A6E42; }
.order__state.is-wait { background: var(--wait-bg); color: var(--wait); }
.order dl { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.order dt { font: 500 10px/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.order dd { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: #B4B8C8; overflow-wrap: anywhere; }
.order dd.filled { color: var(--ink); animation: flash .8s; border-radius: 4px; }

/* recenze */
.place { height: 100%; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.place__map { height: 130px; border-radius: 18px 18px 0 0; overflow: hidden; }
.place__map svg { width: 100%; height: 100%; display: block; }
.place__info { display: flex; gap: 10px; align-items: center; padding: 12px 16px 6px; flex-wrap: wrap; }
.place__info strong { display: block; font: 700 17px/1.2 var(--f-head); }
.place__note { margin: 6px 16px 0; padding: 8px 10px; border-radius: 10px; background: var(--wait-bg); color: #7A4A00; font-size: 12.5px; font-weight: 500; }
.rlist { list-style: none; margin: 0; padding: 14px 14px 24px; display: grid; gap: 14px; }
.rv { padding: 12px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; }
.rv--neg { box-shadow: inset 0 0 0 1px #F3C9CB; background: #FFFBFB; }
.rv__head { display: flex; align-items: center; gap: 10px; }
.rv__head b { display: block; font: 700 14px/1.2 var(--f-head); }
.rv__demo { margin-left: auto; font: 500 10px/1 var(--f-mono); color: var(--wait); background: var(--wait-bg); padding: 4px 7px; border-radius: 5px; }
.rv__text { font-size: 14px; }
.stars { display: inline-flex; gap: 2px; margin-top: 3px; }
.stars i { width: 12px; height: 12px; background: #D9DBE5; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars i.on { background: #F0A030; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.checks li { font: 500 11.5px/1.3 var(--f-mono); color: #0A6E42; }
.checks li::before { content: "✓ "; font-weight: 700; }

/* kurzor majitele */
.cursor { position: absolute; left: 0; top: 0; z-index: 10; pointer-events: none; opacity: 0; transition: transform .7s cubic-bezier(.45, .05, .25, 1), opacity .3s; }
.cursor.on { opacity: 1; }
.cursor svg { width: 26px; height: 26px; filter: drop-shadow(0 4px 6px rgba(15, 18, 34, .3)); }
.cursor span { position: absolute; left: 20px; top: 22px; font: 600 11px/1 var(--f-body); background: var(--ink); color: #fff; padding: 5px 8px; border-radius: 8px; white-space: nowrap; }

.stage.is-paused::after {
  content: "Pozastaveno"; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  font: 600 12px/1 var(--f-mono); color: #fff; background: rgba(15, 18, 34, .82); padding: 7px 12px; border-radius: 999px; z-index: 11;
}

/* boční panel */
.side { display: grid; gap: 16px; align-content: start; }
.card { background: var(--surface); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.card__head p { font: 700 16px/1.2 var(--f-head); }
.card__head small { font: 500 11px/1 var(--f-mono); color: var(--muted); }
.log { background: #0F1222; color: #D8DBF0; }
.log .card__head p { color: #fff; }
.live { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--f-mono); color: #9FA6C8; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 3px rgba(61, 220, 151, .2); animation: pulse 1.6s infinite; }
.log__list { list-style: none; margin: 0; padding: 0; height: 210px; overflow-y: auto; font: 400 12px/1.55 var(--f-mono); scrollbar-width: thin; scrollbar-color: #2C3150 transparent; }
.log__list li { display: grid; grid-template-columns: 62px 1fr; gap: 8px; animation: logIn .35s ease both; }
.log__t { color: #5E6589; }
.log__list .is-head .log__m { color: #fff; font-weight: 500; }
.log__list .is-dim .log__m { color: #A0A7CC; }
.log__list .is-ok .log__m { color: #3DDC97; }
.log__list .is-no .log__m { color: #FF8A8E; }
.log__list .is-wait .log__m { color: #FFC35C; }
@keyframes logIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.try__form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.try__form textarea {
  width: 100%; resize: none; border: 0; border-radius: 12px; padding: 10px 12px;
  font: 400 14px/1.4 var(--f-body); background: var(--bg); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.try__form textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--g1); }
.try__form.busy { opacity: .5; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips button { border: 0; cursor: pointer; padding: 6px 10px; border-radius: 999px; background: var(--tint); color: #4520D6; font-size: 12.5px; font-weight: 500; }
.chips button:hover { background: #E2DAFF; }
.try__note { margin-top: 10px; font-size: 12px; color: var(--muted); }

.kb__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kb__list li { padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 12.5px; transition: background .3s, box-shadow .3s; }
.kb__list b { display: block; font: 600 12.5px/1.3 var(--f-head); }
.kb__list span { color: var(--muted); }
.kb__list li.hit { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--g1); animation: kbHit .5s ease; }
@keyframes kbHit { 40% { transform: scale(1.02); } }

/* ---------- Schéma naostro (scroll scrub) ---------- */
.flow { padding-top: 30px; }
.flow__track { height: 420vh; position: relative; }
.flow__sticky { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; align-items: center; overflow: hidden; }
.flow__in { display: grid; gap: 14px; align-items: center; height: 100%; padding: 18px 0; grid-template-rows: auto 1fr; }
.flow__copy h2 { font-size: clamp(28px, 7vw, 56px); }
.flow__steps { list-style: none; margin: 14px 0 0; padding: 0; display: none; gap: 6px; counter-reset: s; }
.flow__steps li { counter-increment: s; position: relative; padding: 10px 12px 10px 46px; border-radius: 14px; color: var(--muted); font-size: 14.5px; opacity: .45; transition: opacity .35s, background .35s, color .35s; }
.flow__steps li::before { content: "0" counter(s); position: absolute; left: 12px; top: 11px; font: 600 12px/1.4 var(--f-mono); color: var(--muted); }
.flow__steps li b { color: var(--ink); font-weight: 600; }
.flow__steps li.on { opacity: 1; }
.flow__steps li.now { background: var(--surface); box-shadow: var(--shadow); }
.flow__steps li.now::before { color: var(--g1); }
.flow__scene { min-height: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.flow__scene svg { width: 100%; height: 100%; max-height: 100%; display: block; }
.fnode__in { transform-box: fill-box; transform-origin: center; }
.fnode__ring { transition: opacity .4s; }
.fnode__n { font: 600 11px/1 var(--f-mono); fill: var(--g1); }
.fnode__t { font: 800 19px/1 var(--f-head); fill: var(--ink); letter-spacing: -0.01em; }
.fnode__s { font: 500 11.5px/1 var(--f-body); fill: var(--muted); }
.fdot { filter: drop-shadow(0 0 8px rgba(91, 43, 255, .7)); transition: opacity .2s; }

.apis { display: grid; gap: 14px; padding: 40px 0 20px; }
.api { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.api__tag { font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--g1); }
.api h3 { margin: 10px 0 8px; font-size: 22px; font-weight: 700; }
.api p { color: var(--muted); font-size: 15px; }

/* ---------- Pravidla ---------- */
.rules { padding: 70px 0; }
.rules__grid { display: grid; gap: 12px; }
.rule { position: relative; background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); overflow: hidden; }
.rule::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--grad); opacity: .07; }
.rule__n { font: 600 12px/1 var(--f-mono); color: var(--g1); }
.rule h3 { margin: 10px 0 6px; font-size: 20px; font-weight: 700; }
.rule p { color: var(--muted); font-size: 15px; }

/* ---------- CTA + patička ---------- */
.cta { padding: 10px 0 80px; }
.cta__box {
  display: grid; gap: 22px; padding: 30px 24px; border-radius: 28px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0, #2F6BFF 0, transparent 55%), radial-gradient(120% 140% at 0 100%, #5B2BFF 0, transparent 60%), #14123A;
  box-shadow: var(--shadow-lg);
}
.cta__box h2 { font-size: clamp(28px, 6vw, 46px); font-weight: 800; }
.cta__box p { margin-top: 12px; color: #D2D5F2; }
.cta__ref { font: 500 13px/1.4 var(--f-mono); }
.cta__contact { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.foot { padding: 26px 0 80px; border-top: 1px solid var(--line); }
.foot__in { display: grid; gap: 12px; justify-items: start; }
.foot p { color: var(--muted); font-size: 13.5px; }

/* ---------- Mobil – úpravy ---------- */
@media (max-width: 599px) {
  /* fixní štítek menší, aby nepřekrýval obsah; dole místo, aby nezakryl konec stránky */
  body { padding-bottom: 46px; }
  .flag:not(.flag--inline) { right: 8px; bottom: 8px; padding: 6px 10px; gap: 6px; font-size: 11px; }
  .flag:not(.flag--inline) .flag__dot { width: 6px; height: 6px; }
  .controls { gap: 8px; }
  .controls__sim { margin-left: 0; }
  .seg { width: 100%; }
  .seg__label { width: 100%; padding: 6px 8px 4px; }
  .seg button { flex: 1; }
  .order dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__visual { height: 380px; }
  .post__net { margin-left: 0; }
}

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  .wrap { width: min(1240px, 100% - 64px); }
  .tab { flex-direction: row; align-items: center; gap: 10px; padding: 14px 16px; font-size: 15px; }
  .tab svg { margin: 0; }
  .tab small { margin-left: auto; }
  .apis { grid-template-columns: repeat(2, 1fr); }
  .rules__grid { grid-template-columns: repeat(2, 1fr); }
  .hcard { left: 14%; right: 14%; }
  .hcard[data-i="1"] { left: 22%; right: 6%; }
  .hcard[data-i="2"] { right: 22%; left: 8%; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .top__nav { display: flex; }
  .top .btn { margin-left: 8px; }
  .hero { padding: 70px 0 60px; }
  .hero__in { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
  .hero__visual { height: 470px; }
  .hcard { left: 6%; right: 6%; padding: 18px 20px; }
  .hcard[data-i="0"] { top: 20px; }
  .hcard[data-i="1"] { top: 150px; left: 18%; right: -2%; }
  .hcard[data-i="2"] { top: 280px; left: 0; right: 16%; }
  .hcard__msg { font-size: 17px; }
  .hphone { left: auto; right: 0; bottom: -6px; }
  .demo { padding: 90px 0 100px; }
  .demo-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .stage { height: 700px; padding: 16px; }
  .inbox { grid-template-columns: 220px 1fr; }
  .inbox__list { display: block; }
  .flow__in { grid-template-columns: 380px 1fr; grid-template-rows: 1fr; gap: 40px; padding: 30px 0; }
  .flow__steps { display: grid; }
  .apis { grid-template-columns: repeat(4, 1fr); }
  .rules__grid { grid-template-columns: repeat(3, 1fr); }
  .cta__box { grid-template-columns: 1fr auto; align-items: center; padding: 48px; }
  .foot__in { grid-template-columns: auto 1fr; align-items: center; gap: 20px; }
}
@media (min-width: 1200px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .log__list { height: 240px; }
}

/* ---------- Omezený pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hcard { opacity: 1; transform: none; }
  .flow__track { height: auto; }
  .flow__sticky { position: static; height: auto; overflow: visible; }
  .flow__scene { height: auto; }
  .flow__scene svg { height: auto; max-height: none; }
  .flow__steps { display: grid; }
}
