/* AI recepční – styl B „Noční směna“
   Barvy: pozadí #0B0B1F, text #F5F5FA, přechod #5B2BFF→#2F6BFF, akcent #5ED8D4
   Písmo: Space Grotesk + JetBrains Mono */
:root {
  --bg: #0B0B1F;
  --bg2: #11112A;
  --bg3: #171735;
  --card: rgba(255, 255, 255, 0.035);
  --card2: rgba(255, 255, 255, 0.06);
  --line: rgba(245, 245, 250, 0.11);
  --line2: rgba(245, 245, 250, 0.2);
  --text: #F5F5FA;
  --muted: #B4B4C8;
  --dim: #7D7D97;
  --g1: #5B2BFF;
  --g2: #2F6BFF;
  --acc: #5ED8D4;
  --grad: linear-gradient(120deg, var(--g1), var(--g2));
  --grad-text: linear-gradient(100deg, #8F6BFF 0%, #5C8DFF 55%, var(--acc) 110%);
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --r: 20px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 10px 30px -10px rgba(47, 107, 255, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  /* jemné zrno + mřížka pro hloubku */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
main, .topbar, .foot { position: relative; z-index: 1; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
a { color: var(--acc); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 18px; }
.mono { font-family: var(--mono); }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.demo, .how { scroll-margin-top: 56px; }
.skip { position: absolute; left: 10px; top: -60px; z-index: 50; background: var(--acc); color: var(--bg); padding: 8px 14px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 10px; }

/* ---------- Topbar ---------- */
.topbar { border-bottom: 1px solid var(--line); background: rgba(11, 11, 31, 0.72); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.wrap.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.logo { font-weight: 700; letter-spacing: 0.01em; display: inline-flex; align-items: center; gap: 9px; }
.logo__sub { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.12em; display: none; }
.logo__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px rgba(94, 216, 212, 0.15), 0 0 16px var(--acc); }
.topnav { display: none; gap: 26px; font-size: 14px; }
.topnav a { color: var(--muted); text-decoration: none; }
.topnav a:hover { color: var(--text); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-block; font-family: var(--mono); font-size: 11px; line-height: 1; padding: 6px 9px;
  border: 1px solid var(--line2); border-radius: 999px; color: var(--text); background: rgba(255, 255, 255, 0.05); white-space: nowrap;
}
.badge--sim { border-color: rgba(94, 216, 212, 0.5); color: var(--acc); background: rgba(94, 216, 212, 0.06); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 30px 0 56px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(520px 420px at 78% 38%, rgba(91, 43, 255, 0.42), transparent 70%),
    radial-gradient(420px 360px at 92% 70%, rgba(47, 107, 255, 0.3), transparent 70%),
    radial-gradient(360px 300px at 60% 20%, rgba(94, 216, 212, 0.12), transparent 70%),
    radial-gradient(600px 400px at 0% 10%, rgba(47, 107, 255, 0.14), transparent 70%);
}
.hero__grid { position: relative; display: grid; }
.hero__text { min-width: 0; display: contents; }
.hero__grid > *, .hero__text > * { min-width: 0; }
.hero__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
.clock { justify-self: start; }
.hero .stage { order: 6; margin: 26px 0 0; }
.hero__cta { order: 7; }

.clock {
  position: relative; display: inline-flex; flex-direction: column; gap: 2px; padding: 12px 18px 12px 16px;
  border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 22px;
  background: linear-gradient(160deg, rgba(94, 216, 212, 0.08), rgba(255, 255, 255, 0.02) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.clock__label { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; display: inline-flex; align-items: center; gap: 8px; }
.clock__moon { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset -4px -1px 0 0 var(--acc); transform: rotate(-20deg); }
.clock__time { font-family: var(--mono); font-size: 46px; font-weight: 600; line-height: 1; color: var(--acc); text-shadow: 0 0 28px rgba(94, 216, 212, 0.45); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.clock__sec { font-size: 20px; color: var(--muted); text-shadow: none; margin-left: 2px; }
.clock__note { font-size: 13px; color: var(--muted); }

h1 { font-size: clamp(34px, 9vw, 72px); font-weight: 700; letter-spacing: -0.035em; max-width: 15ch; line-height: 1.02; }
h1 .grad { display: block; }
.lead { color: var(--muted); max-width: 52ch; margin: 18px 0 0; font-size: 17px; }

.tabs__label { margin: 26px 0 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); }
.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.04); width: 100%; max-width: 440px; }
.tab {
  flex: 1; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); background: transparent; border: 0; border-radius: 999px;
  padding: 10px 6px; cursor: pointer; min-height: 44px; transition: color .2s, background .2s, box-shadow .2s;
}
.tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.tab[aria-selected="true"] { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(91, 43, 255, 0.8); }

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.replay {
  position: relative; display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 700; font-size: 16px; color: #fff; background: var(--grad); border: 0; border-radius: 999px;
  padding: 14px 24px; min-height: 52px; cursor: pointer; isolation: isolate; box-shadow: 0 14px 34px -12px rgba(91, 43, 255, 0.9);
}
.replay__pulse { position: absolute; inset: 0; border-radius: inherit; z-index: -1; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(91, 43, 255, 0.7); } 100% { box-shadow: 0 0 0 18px rgba(47, 107, 255, 0); } }
.replay:hover { filter: brightness(1.12); }
.ghost { color: var(--text); text-decoration: none; font-weight: 500; padding: 12px 2px; border-bottom: 1px solid var(--line2); }
.ghost:hover { border-color: var(--acc); color: var(--acc); }

/* ---------- Telefon ---------- */
.stage { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.stage__ring {
  position: absolute; left: 50%; top: 46%; width: 440px; height: 440px; max-width: 120vw; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(91, 43, 255, 0.35), rgba(47, 107, 255, 0.12) 45%, transparent 68%);
}
.stage__ring::before, .stage__ring::after {
  content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 1px solid rgba(94, 216, 212, 0.14);
}
.stage__ring::after { inset: -6%; border-color: rgba(91, 43, 255, 0.16); }

.phone {
  position: relative; width: min(300px, 80vw); aspect-ratio: 9 / 18.6;
  padding: 11px; border-radius: 48px;
  background: linear-gradient(145deg, #2A2A44 0%, #14142A 40%, #0A0A18 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    inset 0 0 0 6px #07070F,
    0 50px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 80px -10px rgba(91, 43, 255, 0.45);
}
.phone__btn { position: absolute; width: 3px; border-radius: 2px; background: #2A2A44; }
.phone__btn--a { left: -2px; top: 22%; height: 34px; }
.phone__btn--b { left: -2px; top: 31%; height: 54px; }
.phone__btn--c { right: -2px; top: 27%; height: 72px; }
.phone__screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden; display: flex; flex-direction: column;
  padding: 12px 18px 12px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(91, 43, 255, 0.55), transparent 65%),
    radial-gradient(90% 50% at 50% 110%, rgba(47, 107, 255, 0.35), transparent 70%),
    linear-gradient(180deg, #15123A 0%, #0D0D24 55%, #0A0A1C 100%);
}
.sbar { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 2px 6px 0; height: 24px; }
.sbar__cam { width: 76px; height: 22px; border-radius: 12px; background: #05050C; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.sbar__ic { display: inline-flex; gap: 5px; align-items: center; color: var(--text); }
.sbar__ic svg { fill: currentColor; }

.call__top { text-align: center; padding-top: 14px; }
.call__status { margin: 0; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; }
.is-live .live { background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.avatar { position: relative; width: 74px; height: 74px; margin: 14px auto 10px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 10px 30px -8px rgba(91, 43, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.avatar__ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--acc); opacity: 0; }
.is-live .avatar__ring { animation: ring 2.2s ease-out infinite; }
.is-live .avatar__ring--2 { animation-delay: 1.1s; }
@keyframes ring { 0% { transform: scale(0.9); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }
.call__firm { font-size: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.call__who { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.call__timer { margin: 6px 0 0; font-family: var(--mono); font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; opacity: 0.9; }

/* Zvuková vlna podle toho, kdo mluví */
.voice { margin-top: 14px; text-align: center; }
.voice__bars { display: flex; align-items: center; justify-content: center; gap: 3px; height: 52px; }
.voice__bars i {
  display: block; width: 3px; height: 100%; border-radius: 3px; flex: none;
  background: rgba(245, 245, 250, 0.35);
  transform: scaleY(0.08); transform-origin: center; transition: background .35s;
}
.voice[data-speaker="ai"] .voice__bars i { background: linear-gradient(180deg, #8F6BFF, var(--g2)); box-shadow: 0 0 8px rgba(91, 43, 255, 0.5); }
.voice[data-speaker="caller"] .voice__bars i { background: var(--acc); box-shadow: 0 0 8px rgba(94, 216, 212, 0.45); }
.voice__who { margin: 6px 0 0; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); transition: color .3s; }
.voice[data-speaker="ai"] .voice__who { color: #A890FF; }
.voice[data-speaker="caller"] .voice__who { color: var(--acc); }

.caption {
  flex: 1; min-height: 0; margin: 12px 0 10px; padding: 12px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: flex-end; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px);
  mask-image: linear-gradient(180deg, transparent 0, #000 22px);
}
.caption__in { display: block; }
.caption__who { display: block; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 4px; }
.caption__who.is-ai { color: #A890FF; }
.caption__who.is-caller { color: var(--acc); }
.caption__txt { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.caption__dots { display: inline-flex; gap: 5px; padding: 6px 0; }
.caption__dots .dot { width: 6px; height: 6px; }
.caption__in.is-new { animation: capIn .45s ease-out both; }
@keyframes capIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 6px; justify-items: center; }
.key { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9.5px; color: var(--muted); }
.key svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.key--end { grid-column: 1 / -1; }
.key--end svg { width: 52px; height: 52px; padding: 13px; background: #E5484D; color: #fff; box-shadow: 0 8px 20px -6px rgba(229, 72, 77, 0.8); }
.phone__home { display: block; width: 36%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.5); margin: 10px auto 0; }

.call.is-ended .avatar { background: linear-gradient(120deg, #3A3A5A, #2A2A44); box-shadow: none; }
.call.is-ended .key--end svg { background: #3A3A5A; box-shadow: none; }

/* Plovoucí karty u telefonu */
.float {
  position: absolute; z-index: 3; display: none; align-items: center; gap: 10px; max-width: 250px;
  padding: 10px 14px 10px 10px; border-radius: 16px; font-size: 13px; line-height: 1.3;
  background: rgba(23, 23, 53, 0.78); border: 1px solid var(--line2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
}
.float__ic { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid rgba(94, 216, 212, 0.25); border-top-color: var(--acc); animation: spin .8s linear infinite; position: relative; }
.float.is-done .float__ic { animation: none; border-color: var(--acc); background: var(--acc); }
.float.is-done .float__ic::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.float.is-swap { animation: floatIn .5s ease-out both; }
@keyframes floatIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.float__tool { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--acc); }

.stage__audio { display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 0; font-size: 13px; color: var(--muted); padding: 7px 14px; border: 1px dashed rgba(94, 216, 212, 0.45); border-radius: 999px; background: rgba(94, 216, 212, 0.05); }
.stage__audio .mono { color: var(--acc); font-size: 12px; }
.audio__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }

/* ---------- Sekce: hlavička ---------- */
.sec-head { margin-bottom: 26px; }
.eyebrow { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.eyebrow .mono { color: var(--acc); padding: 3px 7px; border: 1px solid rgba(94, 216, 212, 0.4); border-radius: 6px; font-size: 11px; }
.sec-head h2, .night h2 { font-size: clamp(30px, 7.5vw, 52px); font-weight: 700; letter-spacing: -0.03em; }

/* ---------- Přepis a události ---------- */
.demo { padding: 56px 0 72px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(91, 43, 255, 0.05), transparent 40%); }
.grid { display: grid; gap: 16px; }
.panel {
  position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.panel__title { font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; letter-spacing: 0.1em; line-height: 1.4; }
.panel__title span:not(.pulse-dot) { color: var(--text); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 rgba(94, 216, 212, 0.6); animation: dot 1.8s ease-out infinite; flex: none; }
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgba(94, 216, 212, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(94, 216, 212, 0); } }

.transcript-card { background: linear-gradient(180deg, rgba(91, 43, 255, 0.12), rgba(11, 11, 31, 0.4) 35%), var(--bg2); box-shadow: var(--shadow); }
.tc__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.tc__head .panel__title { margin: 0; }
.call__labels { display: flex; gap: 6px; flex-wrap: wrap; }

.audio { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed rgba(94, 216, 212, 0.45); border-radius: 12px; background: rgba(94, 216, 212, 0.05); margin-bottom: 14px; }
.audio__btn { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; flex: 1; min-width: 0; overflow: hidden; }
.wave i { display: block; width: 3px; height: 30%; background: var(--acc); opacity: 0.55; border-radius: 2px; flex: none; }
.wave i:nth-child(3n) { height: 70%; }
.wave i:nth-child(4n+1) { height: 50%; }
.wave i:nth-child(5n+2) { height: 90%; }
.is-live .wave i { animation: wave 1s ease-in-out infinite alternate; }
.is-live .wave i:nth-child(2n) { animation-delay: -0.3s; }
.is-live .wave i:nth-child(3n) { animation-delay: -0.6s; }
@keyframes wave { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.audio__ph { font-family: var(--mono); font-size: 12px; color: var(--acc); white-space: nowrap; }

.transcript {
  list-style: none; margin: 0; padding: 4px 4px 4px 0; display: flex; flex-direction: column; gap: 12px;
  height: 440px; overflow-y: auto; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.msg { max-width: 88%; display: flex; flex-direction: column; gap: 4px; animation: pop .35s ease-out both; }
.msg__who { font-family: var(--mono); font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }
.msg__txt { padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.msg--ai { align-self: flex-start; }
.msg--ai .msg__txt { background: var(--grad); color: #fff; border-bottom-left-radius: 5px; box-shadow: 0 10px 24px -14px rgba(91, 43, 255, 0.9); }
.msg--caller { align-self: flex-end; text-align: right; }
.msg--caller .msg__txt { background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); border-bottom-right-radius: 5px; text-align: left; }
.msg--typing .msg__txt { display: inline-flex; gap: 5px; padding: 14px 15px; width: max-content; }
.msg--caller.msg--typing .msg__txt { align-self: flex-end; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.4; animation: blink 1s infinite; }
.dot:nth-child(2) { animation-delay: .15s; }
.dot:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.results { display: grid; gap: 8px; margin-top: 16px; }
.result { display: flex; align-items: center; gap: 12px; margin: 0; padding: 11px 14px; border-radius: 14px; border: 1px solid rgba(94, 216, 212, 0.45); background: linear-gradient(90deg, rgba(94, 216, 212, 0.14), rgba(94, 216, 212, 0.04)); opacity: 0.25; transform: translateY(4px); transition: opacity .45s, transform .45s; }
.result strong { display: block; font-size: 15px; }
.result small { display: block; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.result__ic { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(94, 216, 212, 0.25); color: var(--bg); font-weight: 700; transition: background .4s; }
.result.is-on { opacity: 1; transform: none; }
.result.is-on .result__ic { background: var(--acc); box-shadow: 0 0 18px rgba(94, 216, 212, 0.6); }
.result:nth-child(2) { transition-delay: .25s; }

.side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-height: 330px; position: relative; }
.events::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, rgba(94, 216, 212, 0.4), transparent); }
.ev { position: relative; display: flex; align-items: flex-start; gap: 12px; font-size: 14px; animation: pop .3s ease-out both; }
.ev__ic { width: 21px; height: 21px; flex: none; margin-top: 1px; border-radius: 50%; border: 2px solid rgba(94, 216, 212, 0.25); border-top-color: var(--acc); animation: spin .8s linear infinite; position: relative; background: var(--bg2); }
.ev.is-done .ev__ic { animation: none; border-color: var(--acc); background: var(--acc); }
.ev.is-done .ev__ic::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ev__txt { min-width: 0; }
.ev__tool { display: inline-block; margin-top: 3px; font-family: var(--mono); font-size: 11px; color: var(--acc); padding: 1px 6px; border-radius: 5px; background: rgba(94, 216, 212, 0.08); }
.ev__tool { display: table; }
.ev:not(.is-done) .ev__txt { color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }

.summary { min-height: 300px; opacity: 0.55; transition: opacity .5s, border-color .5s; }
.summary.is-on { opacity: 1; border-color: rgba(94, 216, 212, 0.45); }
.sum { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: 14px; }
.sum dt { color: var(--dim); font-family: var(--mono); font-size: 11.5px; padding-top: 2px; text-transform: uppercase; letter-spacing: 0.04em; }
.sum dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.sum__note { font-size: 12px; color: var(--dim); margin: 14px 0 0; }

/* ---------- Scroll scéna: Noc ve firmě ---------- */
.night {
  position: relative; height: 520vh; border-top: 1px solid var(--line);
  --a1: 1; --a2: 1; --w: 1; --a3: 1; --b3: 1; --dawn: 1; --a4: 1; --n4: 1; --dim: 1;
}
.night__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; padding: 66px 0 18px; }
.night__sky { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(800px 500px at 70% 30%, rgba(91, 43, 255, 0.22), transparent 70%), linear-gradient(180deg, #0B0B1F, #0E0E28); }
.night__dawn {
  position: absolute; inset: 0; opacity: var(--dawn);
  background:
    radial-gradient(900px 420px at 70% 115%, rgba(94, 216, 212, 0.38), transparent 70%),
    radial-gradient(700px 380px at 30% 120%, rgba(47, 107, 255, 0.4), transparent 70%),
    linear-gradient(180deg, rgba(11, 11, 31, 0) 30%, rgba(47, 107, 255, 0.16));
}
.night__stars {
  position: absolute; inset: 0; opacity: calc(1 - var(--dawn) * 0.85);
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 36%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 46% 12%, #fff, transparent),
    radial-gradient(1px 1px at 63% 26%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 82% 14%, #fff, transparent),
    radial-gradient(1px 1px at 92% 40%, #fff, transparent),
    radial-gradient(1px 1px at 8% 58%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 38% 66%, #fff, transparent),
    radial-gradient(1px 1px at 74% 62%, #fff, transparent),
    radial-gradient(1px 1px at 55% 48%, #fff, transparent);
  opacity: calc(0.7 - var(--dawn) * 0.6);
}
.night__grid { position: relative; display: grid; gap: 14px; width: 100%; }
.night__text { min-width: 0; }
.night h2 { font-size: clamp(26px, 7vw, 52px); }
.night__clock { margin: 10px 0 8px; font-family: var(--mono); font-weight: 600; font-size: clamp(38px, 11vw, 92px); line-height: 1; color: var(--acc); text-shadow: 0 0 34px rgba(94, 216, 212, 0.45); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.nsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nsteps li { display: none; gap: 12px; align-items: baseline; font-size: 15px; color: var(--muted); padding: 6px 0; }
.nsteps li.is-active { display: flex; color: var(--text); }
.nsteps li .mono { color: var(--dim); font-size: 12px; min-width: 42px; }
.nsteps li.is-active .mono, .nsteps li.is-done .mono { color: var(--acc); }
.night__hint { display: none; margin: 18px 0 0; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); }

.nscene {
  position: relative; width: 100%; aspect-ratio: 0.74; container-type: inline-size; margin: 0 auto;
}
.nl { position: absolute; transition: none; }
.nl--call {
  left: 0; top: 0; width: 100%; display: flex; align-items: center; gap: 3cqw; padding: 2.6cqw 3.4cqw;
  border-radius: 4cqw; background: rgba(23, 23, 53, 0.85); border: 1px solid var(--line2);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  opacity: var(--a1); transform: translateY(calc((1 - var(--a1)) * 30px)) scale(calc(1 - var(--dim) * 0.03));
  filter: saturate(calc(1 - var(--dim) * 0.5));
}
.nl__ic { width: 10cqw; height: 10cqw; flex: none; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 1.4cqw rgba(91, 43, 255, 0.2); }
.nl__ic svg { width: 50%; height: 50%; }
.nl__body { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.nl__k { font-size: max(10px, 2.8cqw); color: var(--acc); }
.nl__firm { font-size: max(13px, 4cqw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl__state { font-size: max(11px, 3cqw); color: var(--muted); }
.nl__wave { display: flex; align-items: center; gap: 0.7cqw; height: 8cqw; }
.nl__wave i { width: 0.8cqw; min-width: 2px; height: 100%; border-radius: 2px; background: var(--acc); transform: scaleY(0.3); animation: wave 0.9s ease-in-out infinite alternate; }
.nl__wave i:nth-child(2n) { animation-delay: -0.3s; }
.nl__wave i:nth-child(3n) { animation-delay: -0.6s; }

.nl--cal {
  left: 0; top: 14.5%; width: 100%; height: 38%; display: flex; flex-direction: column;
  border-radius: 4cqw; padding: 3cqw; background: linear-gradient(180deg, #17173A, #121230); border: 1px solid var(--line2);
  box-shadow: var(--shadow);
  opacity: var(--a2); transform: translateY(calc((1 - var(--a2)) * 40px)) scale(calc(0.96 + var(--a2) * 0.04 - var(--dim) * 0.03));
}
.cal__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2cqw; }
.cal__title { font-weight: 600; font-size: max(12px, 3.4cqw); }
.cal__week { font-size: max(10px, 2.6cqw); color: var(--dim); }
.cal__grid {
  flex: 1; min-height: 0; display: grid; grid-template-columns: 9cqw repeat(5, 1fr); grid-template-rows: auto repeat(10, 1fr);
  gap: 0.6cqw;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 20%;
}
.cal__corner { grid-column: 1; grid-row: 1; }
.cal__day { grid-row: 1; text-align: center; font-size: max(10px, 2.6cqw); color: var(--muted); font-family: var(--mono); padding-bottom: 0.8cqw; }
.cal__day:nth-of-type(2) { grid-column: 2; }
.cal__day:nth-of-type(3) { grid-column: 3; }
.cal__day:nth-of-type(4) { grid-column: 4; }
.cal__day:nth-of-type(5) { grid-column: 5; }
.cal__day:nth-of-type(6) { grid-column: 6; }
.cal__hour { grid-column: 1; font-size: max(9px, 2.2cqw); color: var(--dim); align-self: start; }
.cal__busy {
  border-radius: 1.4cqw; padding: 0.6cqw 1cqw; font-size: max(8px, 2.1cqw); line-height: 1.2; color: var(--muted); overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 6px, rgba(255, 255, 255, 0.035) 6px 12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: transparent;
}
.cal__new {
  position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 0.2cqw;
  border-radius: 1.6cqw; padding: 0.8cqw 1.2cqw; overflow: hidden; line-height: 1.15;
  background: var(--grad); color: #fff; box-shadow: 0 0 0 1px rgba(94, 216, 212, 0.7), 0 0 24px rgba(91, 43, 255, 0.7);
  clip-path: inset(0 calc((1 - var(--w)) * 100%) 0 0 round 1.6cqw);
}
.cal__new b { font-size: max(9px, 2.4cqw); }
.cal__new span { font-size: max(8px, 2.1cqw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal__new em { font-style: normal; font-family: var(--mono); font-size: max(7px, 1.7cqw); color: var(--acc); }

.nl--sms, .nl--owner { display: flex; flex-direction: column; align-items: center; gap: 1.6cqw; }
.nl--sms {
  left: 0; top: 55%; width: 48%; height: 45%;
  opacity: var(--a3); transform: translateY(calc((1 - var(--a3)) * 50px)) scale(calc(1 - var(--dim) * 0.04));
}
.nl--owner {
  left: 52%; top: 55%; width: 48%; height: 45%; z-index: 2;
  opacity: var(--a4); transform: translateY(calc((1 - var(--a4)) * 70px));
}
.nl__cap { font-family: var(--mono); font-size: max(10px, 2.4cqw); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.mini-phone {
  position: relative; width: 100%; flex: 1; min-height: 0; border-radius: 6cqw; padding: 3cqw 2.6cqw; overflow: hidden;
  background: linear-gradient(180deg, #1A1A3C, #0F0F26); border: 2px solid #2A2A48;
  box-shadow: 0 0 0 4px #07070F, 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}
.mini-phone__bar { display: flex; justify-content: space-between; font-size: max(8px, 2cqw); color: var(--muted); margin-bottom: 2cqw; }
.mini-phone__from { margin: 0 0 2cqw; font-size: max(9px, 2.3cqw); color: var(--muted); text-align: center; }
.sms {
  margin: 0; padding: 2cqw 2.6cqw; border-radius: 3.4cqw 3.4cqw 3.4cqw 1cqw; background: rgba(255, 255, 255, 0.1);
  font-size: max(10px, 2.6cqw); line-height: 1.35;
  opacity: var(--b3); transform: translateY(calc((1 - var(--b3)) * 14px)) scale(calc(0.94 + var(--b3) * 0.06)); transform-origin: left bottom;
}
.sms__meta { margin: 1cqw 0 0; font-size: max(8px, 1.9cqw); color: var(--acc); opacity: var(--b3); }
.mini-phone--lock {
  text-align: center;
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(94, 216, 212, 0.45), transparent 60%),
    radial-gradient(120% 70% at 20% 0%, rgba(91, 43, 255, 0.55), transparent 60%),
    linear-gradient(180deg, #1B1850, #2F6BFF 140%);
}
.lock__time { margin: 1cqw 0 0; font-size: max(26px, 9cqw); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.lock__date { margin: 0.6cqw 0 2.4cqw; font-size: max(9px, 2.3cqw); color: rgba(255, 255, 255, 0.8); }
.notif {
  text-align: left; padding: 2cqw 2.4cqw; border-radius: 3cqw; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: var(--n4); transform: translateY(calc((1 - var(--n4)) * -16px)) scale(calc(0.95 + var(--n4) * 0.05));
}
.notif__head { margin: 0; display: flex; align-items: center; gap: 1.2cqw; font-size: max(8px, 1.9cqw); color: rgba(255, 255, 255, 0.8); }
.notif__head .mono { margin-left: auto; }
.notif__app { width: 2.6cqw; height: 2.6cqw; min-width: 8px; min-height: 8px; border-radius: 0.8cqw; background: var(--acc); }
.notif__title { margin: 0.6cqw 0 0.4cqw; font-weight: 600; font-size: max(10px, 2.5cqw); }
.notif__body { margin: 0; font-size: max(9px, 2.2cqw); line-height: 1.35; color: rgba(255, 255, 255, 0.92); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mini-phone__input { display: none; position: absolute; left: 8%; right: 8%; bottom: 5%; padding: 1.4cqw 2.4cqw; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); font-size: max(8px, 2cqw); color: var(--dim); }

/* ---------- Co je za ukázkou ---------- */
.how { padding: 72px 0 64px; border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.steps li { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)); overflow: hidden; }
.steps li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); opacity: 0.8; }
.steps__n { color: var(--acc); font-weight: 600; font-size: 12px; }
.steps h3 { font-size: 20px; font-weight: 600; margin: 10px 0 6px; }
.steps p { margin: 0; color: var(--muted); }

.docs { display: grid; gap: 14px; }
.doc {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 22px; text-decoration: none; color: var(--text);
  background: linear-gradient(160deg, rgba(91, 43, 255, 0.22), rgba(47, 107, 255, 0.08) 45%, rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(143, 107, 255, 0.35); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.doc::before { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(94, 216, 212, 0.25), transparent 70%); pointer-events: none; }
.doc:hover { transform: translateY(-3px); border-color: var(--acc); }
.doc__ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 8px; box-shadow: 0 10px 24px -10px rgba(91, 43, 255, 0.9); }
.doc__ic svg { width: 22px; height: 22px; }
.doc__k { font-size: 12px; color: var(--acc); }
.doc__t { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.doc__d { color: var(--muted); font-size: 15px; }
.doc__go { margin-top: 8px; font-weight: 600; color: var(--acc); }
.doc--small { background: rgba(255, 255, 255, 0.03); border-color: var(--line); box-shadow: none; }
.doc--small::before { display: none; }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.wrap.foot__in { padding-top: 22px; padding-bottom: 34px; display: grid; gap: 8px; }
.foot p { margin: 0; }

/* ---------- Větší displeje ---------- */
@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .logo__sub { display: inline; }
  .clock__time { font-size: 56px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .docs { grid-template-columns: 1fr 1fr; }
  .doc--small { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
  .doc--small .doc__go { margin: 0 0 0 auto; }
  .float { display: flex; }
  .float--a { left: 0; top: 14%; }
  .float--b { right: 0; top: 30%; }
  .transcript { height: 500px; }
  .nsteps li { display: flex; }
  .night__hint { display: block; }
  .night__grid { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); align-items: center; gap: 48px; }
  .nscene { aspect-ratio: 1.06; max-height: none; }
  .nl--call { width: 56%; }
  .nl--cal { top: 17%; width: 58%; height: 80%; }
  .nl--sms { left: 60.5%; top: 0; width: 25%; height: 60%; }
  .nl--sms .nl__cap { order: -1; }
  .nl--owner { left: 73%; top: 34%; width: 27%; height: 66%; }
  .nl--call { padding: 1.6cqw 2.2cqw; gap: 2cqw; border-radius: 2.6cqw; }
  .nl__ic { width: 6cqw; height: 6cqw; box-shadow: 0 0 0 0.9cqw rgba(91, 43, 255, 0.2); }
  .nl__k { font-size: max(10px, 1.6cqw); }
  .nl__firm { font-size: max(13px, 2.3cqw); }
  .nl__state { font-size: max(11px, 1.7cqw); }
  .nl__wave { height: 4.4cqw; gap: 0.45cqw; }
  .nl__wave i { width: 0.5cqw; }
  .nl--cal { padding: 2cqw; border-radius: 2.6cqw; }
  .cal__head { margin-bottom: 1.2cqw; }
  .cal__title { font-size: max(12px, 2.1cqw); }
  .cal__week { font-size: max(10px, 1.5cqw); }
  .cal__grid { grid-template-columns: 6cqw repeat(5, 1fr); gap: 0.4cqw; }
  .cal__day { font-size: max(10px, 1.5cqw); }
  .cal__hour { font-size: max(9px, 1.3cqw); }
  .cal__busy { font-size: max(8px, 1.25cqw); border-radius: 0.9cqw; padding: 0.4cqw 0.6cqw; }
  .cal__new { border-radius: 1cqw; padding: 0.5cqw 0.8cqw; clip-path: inset(0 calc((1 - var(--w)) * 100%) 0 0 round 1cqw); }
  .cal__new b { font-size: max(10px, 1.45cqw); }
  .cal__new span { font-size: max(9px, 1.25cqw); }
  .cal__new em { font-size: max(8px, 1.05cqw); }
  .nl--sms, .nl--owner { gap: 1cqw; }
  .nl__cap { font-size: max(10px, 1.3cqw); }
  .mini-phone { border-radius: 3.4cqw; padding: 1.8cqw 1.5cqw; }
  .mini-phone__bar { font-size: max(8px, 1.15cqw); margin-bottom: 1.2cqw; }
  .mini-phone__from { font-size: max(9px, 1.3cqw); margin-bottom: 1.2cqw; }
  .sms { font-size: max(10px, 1.45cqw); padding: 1.2cqw 1.5cqw; border-radius: 2cqw 2cqw 2cqw 0.6cqw; }
  .sms__meta { font-size: max(8px, 1.1cqw); margin-top: 0.6cqw; }
  .lock__time { font-size: max(26px, 5.4cqw); margin-top: 1.4cqw; }
  .lock__date { font-size: max(9px, 1.3cqw); margin: 0.4cqw 0 1.6cqw; }
  .notif { padding: 1.2cqw 1.4cqw; border-radius: 1.8cqw; }
  .mini-phone__input { display: block; font-size: max(8px, 1.1cqw); padding: 0.7cqw 1.4cqw; }
  .cal__busy { color: var(--muted); }
  .notif__head { font-size: max(8px, 1.1cqw); gap: 0.7cqw; }
  .notif__app { width: 1.5cqw; height: 1.5cqw; border-radius: 0.5cqw; }
  .notif__title { font-size: max(10px, 1.45cqw); }
  .notif__body { font-size: max(9px, 1.3cqw); }
}
@media (min-width: 980px) {
  .topnav { display: flex; }
  .hero { padding: 56px 0 90px; }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 40px; }
  .hero__text { display: block; }
  .hero .stage { margin: 0; }
  .phone { width: 312px; }
  .grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
  .transcript-card { padding: 22px; }
  .side { position: sticky; top: 76px; }
  .docs { grid-template-columns: 1fr 1fr 0.8fr; }
  .doc--small { grid-column: auto; flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .doc--small .doc__go { margin: 8px 0 0; }
  .demo { padding: 80px 0 96px; }
}
@media (min-width: 980px) and (max-width: 1199px) {
  .float { display: none; }
}
@media (min-width: 1200px) {
  .float { max-width: 215px; }
  .float--a { left: -24px; top: 15%; }
  .float--b { right: -24px; top: 33%; }
}

/* ---------- Omezení pohybu: rovnou konečné stavy ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .replay__pulse { display: none; }
  .night { height: auto; }
  .night__sticky { position: relative; height: auto; padding: 64px 0; }
  .nsteps li { display: flex; color: var(--text); }
  .nsteps li .mono { color: var(--acc); }
  .night__hint { display: none !important; }
  .voice__bars i { transform: scaleY(0.35); }
  .nl__wave i { transform: scaleY(0.6); }
}
