/* Slyším to – web. Zelený svět aplikace: tmavý les, světlé ráno, limetkový hlas. */

@font-face { font-family: 'AHN'; src: url('/fonts/ahn-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'AHN'; src: url('/fonts/ahn-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'AHN'; src: url('/fonts/ahn-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'AHN'; src: url('/fonts/ahn-800.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --ink: #0a2a1d;
  --muted: #4b6b5c;
  --paper: #f1faf3;
  --paper-2: #dff3e6;
  --stage: #02110b;
  --stage-2: #0a2c1f;
  --green: #12a150;
  --green-light: #42dd8a;
  --green-deep: #07662f;
  --teal: #2cb8a4;
  --lime: #c9f26b;
  --red: #f0484e;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 34px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'AHN', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--stage);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
h1 { font-size: clamp(3rem, 9vw, 7.2rem); }
h2 { font-size: clamp(2.5rem, 7vw, 5.4rem); margin-bottom: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; position: relative; }
.narrow { width: min(760px, 100% - 40px); }
section { position: relative; padding: clamp(5rem, 11vw, 9.5rem) 0; overflow: hidden; }
.dark { background: linear-gradient(180deg, var(--stage), var(--stage-2)); color: #fff; }
.light { background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.light + .light { padding-top: 0; background: var(--paper-2); }

.grad { background: linear-gradient(100deg, var(--green-light), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-dark { background: linear-gradient(100deg, var(--green), var(--green-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 64px; padding: 0 2em; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 1.1rem; color: #fff;
  background: linear-gradient(135deg, #149e54, var(--green-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 34px rgba(18, 161, 80, 0.45);
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--ease), filter 0.2s;
}
.btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 20px 44px rgba(66, 221, 138, 0.5); }
.btn:active { transform: scale(0.96); transition-duration: 0.1s; }
.btn-small { min-height: 46px; padding: 0 1.3em; font-size: 0.95rem; }
.btn-ghost { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.btn[disabled] { filter: saturate(0.4) brightness(0.8); pointer-events: none; }

/* ---------- Plovoucí skleněné menu ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1100px, 100% - 24px); padding: 8px 8px 8px 20px;
  display: flex; align-items: center; gap: 24px;
  border-radius: 999px; color: #fff;
  background: rgba(8, 36, 24, 0.5);
  backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 14px 40px rgba(0, 0, 0, 0.25);
  transition: background 0.4s var(--ease), width 0.5s var(--ease);
}
.nav.scrolled { background: rgba(8, 36, 24, 0.82); width: min(860px, 100% - 24px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.mark { display: inline-flex; align-items: center; justify-content: center; gap: 2.5px; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #1bb866, var(--green-deep)); }
.mark i { width: 3px; border-radius: 2px; background: #fff; animation: bar 1.1s ease-in-out infinite alternate; }
.mark i:nth-child(1) { height: 8px; animation-delay: -0.2s; }
.mark i:nth-child(2) { height: 16px; animation-delay: -0.6s; }
.mark i:nth-child(3) { height: 11px; animation-delay: -0.1s; }
.mark i:nth-child(4) { height: 18px; animation-delay: -0.8s; }
.mark i:nth-child(5) { height: 9px; animation-delay: -0.4s; }
@keyframes bar { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 700; font-size: 0.98rem; }
.nav-links a { opacity: 0.78; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }

/* ---------- Živé pozadí ---------- */
.aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.aurora b { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.6; will-change: transform; }
.aurora b:nth-child(1) { width: 62vmax; height: 62vmax; left: -22vmax; top: -24vmax; background: radial-gradient(circle, rgba(18, 161, 80, 0.85), transparent 65%); animation: drift-a 18s ease-in-out infinite alternate; }
.aurora b:nth-child(2) { width: 50vmax; height: 50vmax; right: -18vmax; top: 18%; background: radial-gradient(circle, rgba(44, 184, 164, 0.6), transparent 65%); animation: drift-b 22s ease-in-out infinite alternate; }
.aurora b:nth-child(3) { width: 56vmax; height: 56vmax; left: 8%; bottom: -34vmax; background: radial-gradient(circle, rgba(66, 221, 138, 0.42), transparent 65%); animation: drift-c 26s ease-in-out infinite alternate; }
.aurora-soft b { opacity: 0.38; }
@keyframes drift-a { to { transform: translate(14vmax, 9vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-12vmax, -7vmax) scale(1.1); } }
@keyframes drift-c { to { transform: translate(10vmax, -10vmax) scale(1.2); } }

/* ---------- Úvod ---------- */
.hero { padding: clamp(8rem, 14vw, 11rem) 0 0; min-height: 100svh; display: flex; flex-direction: column; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); flex: 1; }
.lead { font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 500; color: rgba(255, 255, 255, 0.78); margin-top: 1.6rem; max-width: 22em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.4rem; }

/* Nadpis naskakuje po slovech jako titulky v hovoru. */
.words .line { display: block; }
.words .w { display: inline-block; opacity: 0; transform: translateY(0.5em) scale(0.92); filter: blur(8px); animation: word 0.8s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
.words .grad .w { background: linear-gradient(100deg, var(--green-light), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes word { to { opacity: 1; transform: none; filter: blur(0); } }

.hero-phone { position: relative; justify-self: center; perspective: 1200px; padding-bottom: 2rem; will-change: transform; }
/* ---------- iPhone ----------
   Rámeček podle iPhonu 15/16 Pro: titanový okraj, tenký černý rámeček, zaoblený displej,
   Dynamic Island, stavový řádek (9:41, signál, wifi, baterie) a boční tlačítka.
   Rozměry jsou v cqw (procenta šířky telefonu), takže drží poměry v každé velikosti. */
.iphone {
  --ti: #8d8a83;
  position: relative; display: flow-root; isolation: isolate; container-type: inline-size;
  width: min(300px, 72vw);
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
/* Titanový okraj s odlesky kovu. */
.iphone::before {
  content: ''; position: absolute; inset: 0; z-index: 0; border-radius: 16.8cqw;
  background: conic-gradient(from 200deg, #6d6a64, #d9d6cf 10%, #8f8c85 22%, #55534e 38%, #a3a09a 52%, #e4e1da 63%, #7e7b75 76%, #5c5a55 90%, #6d6a64);
  box-shadow:
    inset 0 0 0 0.28cqw rgba(255, 255, 255, 0.32), inset 0 0 0.7cqw 0.3cqw rgba(0, 0, 0, 0.45),
    0 50px 100px rgba(0, 0, 0, 0.55), 0 0 90px rgba(66, 221, 138, 0.2);
}
/* Boční tlačítka: vlevo akční a hlasitost, vpravo boční. Vykukují zpoza okraje. */
.iphone::after {
  content: ''; position: absolute; inset: 0 -0.55cqw; z-index: -1;
  background:
    linear-gradient(to bottom, transparent 19%, var(--ti) 19% 24%, transparent 24% 27.5%, var(--ti) 27.5% 36.5%, transparent 36.5% 38.5%, var(--ti) 38.5% 47.5%, transparent 47.5%) left / 2cqw 100% no-repeat,
    linear-gradient(to bottom, transparent 29%, var(--ti) 29% 43.5%, transparent 43.5%) right / 2cqw 100% no-repeat;
}
/* Displej. Černý rámeček kolem něj kreslí stín. */
.iphone-screen {
  position: relative; z-index: 1; isolation: isolate; overflow: hidden;
  margin: 3.9cqw; border-radius: 12.9cqw;
  background: var(--sb, #02110b);
  box-shadow: 0 0 0 2.8cqw #000;
}
/* Stavový řádek: čas uprostřed levé části, ikony uprostřed pravé. */
.iphone-screen::before {
  content: '9:41'; position: absolute; z-index: 3; top: 2.58cqw; left: 0; right: 0; height: 8.68cqw;
  display: grid; grid-template-columns: 31.3cqw; justify-items: center; align-items: center;
  font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif; font-size: 4cqw; font-weight: 600; letter-spacing: -0.01em; color: #fff;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 69 12'%3E%3Cg fill='white'%3E%3Crect x='0' y='8' width='3' height='4' rx='1'/%3E%3Crect x='4.5' y='5.6' width='3' height='6.4' rx='1'/%3E%3Crect x='9' y='3.2' width='3' height='8.8' rx='1'/%3E%3Crect x='13.5' y='0.6' width='3' height='11.4' rx='1'/%3E%3Ccircle cx='31' cy='10.4' r='1.5'/%3E%3C/g%3E%3Cg fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M24.5 4.9A9.2 9.2 0 0 1 37.5 4.9'/%3E%3Cpath d='M27.4 7.8A5.1 5.1 0 0 1 34.6 7.8'/%3E%3C/g%3E%3Crect x='42.5' y='1' width='23' height='10.5' rx='3.2' fill='none' stroke='white' stroke-opacity='0.45'/%3E%3Crect x='44.5' y='3' width='19' height='6.5' rx='1.6' fill='white'/%3E%3Crect x='67' y='4.3' width='1.7' height='4' rx='0.85' fill='white' fill-opacity='0.5'/%3E%3C/svg%3E") right 7.6cqw center / 16.2cqw 2.82cqw no-repeat;
  pointer-events: none;
}
.iphone--light .iphone-screen::before { color: #000; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 69 12'%3E%3Cg fill='black'%3E%3Crect x='0' y='8' width='3' height='4' rx='1'/%3E%3Crect x='4.5' y='5.6' width='3' height='6.4' rx='1'/%3E%3Crect x='9' y='3.2' width='3' height='8.8' rx='1'/%3E%3Crect x='13.5' y='0.6' width='3' height='11.4' rx='1'/%3E%3Ccircle cx='31' cy='10.4' r='1.5'/%3E%3C/g%3E%3Cg fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M24.5 4.9A9.2 9.2 0 0 1 37.5 4.9'/%3E%3Cpath d='M27.4 7.8A5.1 5.1 0 0 1 34.6 7.8'/%3E%3C/g%3E%3Crect x='42.5' y='1' width='23' height='10.5' rx='3.2' fill='none' stroke='black' stroke-opacity='0.45'/%3E%3Crect x='44.5' y='3' width='19' height='6.5' rx='1.6' fill='black'/%3E%3Crect x='67' y='4.3' width='1.7' height='4' rx='0.85' fill='black' fill-opacity='0.5'/%3E%3C/svg%3E"); }
/* Dynamic Island. */
.iphone-screen::after {
  content: ''; position: absolute; z-index: 3; top: 2.58cqw; left: 50%; translate: -50% 0;
  width: 29.56cqw; height: 8.68cqw; border-radius: 99px; background: #000;
  pointer-events: none;
}
/* Telefon s videem: nahoře místo pro stavový řádek v barvě obrazovky, video do něj plynule přejde.
   Rozměr dává samo video (720 × 1558), nic se neořízne ani nezdeformuje. */
.iphone-screen:has(> video) { padding-top: 10cqw; }
.iphone-screen > video {
  display: block; width: 100%; height: auto; aspect-ratio: 720 / 1558;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 5cqw); mask-image: linear-gradient(to bottom, transparent, #000 5cqw);
}

.hero-phone .iphone { animation: float 7s ease-in-out infinite alternate; scale: calc(1 - var(--hs, 0) * 0.16); transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); }
/* Na počítači se úvodní telefon vejde celý do okna i na nižší obrazovce notebooku (výška telefonu ÷ 2,173 = šířka). */
@media (min-width: 981px) {
  .hero-phone .iphone { width: calc(clamp(420px, 100svh - 240px, 700px) / 2.173); }
}
.hero-phone { transform: translateY(calc(var(--hs, 0) * 70px)); }
.hero-text { opacity: calc(1 - var(--hs, 0) * 1.5); transform: translateY(calc(var(--hs, 0) * -90px)); }
@keyframes float { from { translate: 0 -8px; } to { translate: 0 10px; } }

.marquee { margin-top: clamp(2.5rem, 6vw, 4.5rem); padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 3.2rem; animation: slide 30s linear infinite; }
.marquee span { font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.42); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Karty „Co umí“ ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 28px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 20px 50px rgba(10, 60, 38, 0.1);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 #fff, 0 34px 70px rgba(10, 60, 38, 0.18); }
.card p { color: var(--muted); font-weight: 500; margin-top: 6px; }
.card-captions, .card-typing { grid-column: span 2; min-height: 430px; display: flex; flex-direction: column; justify-content: flex-end; }
.card-captions { background: linear-gradient(160deg, #06281a, #0c3b28); color: #fff; }
.card-captions p { color: rgba(255, 255, 255, 0.72); }
.card-typing { background: linear-gradient(160deg, #e9fbbd, #c9f26b); }
.card-typing p { color: #3a5210; }
.card-small { min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.demo { flex: 1; display: flex; align-items: center; justify-content: center; }

.demo-captions { flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.15rem); line-height: 1.22; letter-spacing: -0.02em; }
.card-captions .demo-captions p { margin: 0; color: #fff; }
.card-captions .demo-captions .past { color: rgba(255, 255, 255, 0.38); }
.demo-captions .now span { display: inline-block; opacity: 0; transform: translateY(0.4em) scale(0.92); animation: caption 7s var(--ease) infinite; animation-delay: calc(var(--i) * 0.33s); }
@keyframes caption { 0% { opacity: 0; transform: translateY(0.4em) scale(0.92); } 6%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }

.demo-typing { flex-direction: column; align-items: flex-end; justify-content: center; gap: 22px; }
.bubble { align-self: flex-end; max-width: 100%; padding: 16px 22px; border-radius: 26px 26px 8px 26px; background: #13290a; color: var(--lime); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.7rem); box-shadow: 0 18px 40px rgba(19, 41, 10, 0.3); }
.typed { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; max-width: 0; border-right: 3px solid var(--lime); animation: type 7s steps(28) infinite, caret 0.7s step-end infinite; }
@keyframes type { 0% { max-width: 0; } 38%, 88% { max-width: 28ch; } 96%, 100% { max-width: 0; } }
@keyframes caret { 50% { border-color: transparent; } }
.wave { display: flex; align-items: center; gap: 6px; height: 56px; align-self: flex-start; }
.wave i { width: 7px; height: 100%; border-radius: 4px; background: #13290a; transform: scaleY(0.15); animation: speak 7s ease-in-out infinite; animation-delay: calc(var(--i) * 0.08s); }
@keyframes speak { 0%, 40% { transform: scaleY(0.15); } 46% { transform: scaleY(0.9); } 52% { transform: scaleY(0.35); } 58% { transform: scaleY(1); } 64% { transform: scaleY(0.4); } 70% { transform: scaleY(0.85); } 76% { transform: scaleY(0.3); } 84%, 100% { transform: scaleY(0.15); } }

.demo-ring span, .demo-glow span { position: relative; z-index: 1; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; font-size: 2.2rem; background: linear-gradient(135deg, #34d17f, #0e9449); color: #fff; font-weight: 800; box-shadow: 0 14px 30px rgba(14, 148, 73, 0.4); }
.demo-ring, .demo-glow { position: relative; }
.demo-ring b { position: absolute; width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--green); opacity: 0; animation: ring 2.6s var(--ease) infinite; }
.demo-ring b:nth-child(2) { animation-delay: 0.85s; }
.demo-ring b:nth-child(3) { animation-delay: 1.7s; }
@keyframes ring { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.5); opacity: 0; } }
.demo-glow span { background: linear-gradient(135deg, #e76aa0, #c2437c); animation: glow 1.5s ease-in-out infinite alternate; }
@keyframes glow { from { box-shadow: 0 0 0 0 rgba(66, 221, 138, 0), 0 0 0 0 rgba(66, 221, 138, 0.5); } to { box-shadow: 0 0 0 16px rgba(66, 221, 138, 0.28), 0 0 60px 26px rgba(66, 221, 138, 0.45); } }

.demo-clock { position: relative; width: 96px; height: 96px; flex: none; margin: auto; border-radius: 50%; border: 6px solid var(--green); }
.demo-clock .hand { position: absolute; left: 50%; bottom: 50%; width: 6px; height: 30px; margin-left: -3px; border-radius: 3px; background: var(--ink); transform-origin: 50% 100%; animation: spin 6s linear infinite; }
.demo-clock .hand-min { height: 22px; background: var(--green); animation-duration: 72s; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-lock { color: var(--green); }
/* Zámek: oblouk vyjede nahoru (pravá nožička zůstává v těle), chvíli počká a cvakne zpátky; tělo cvaknutí lehce „pohltí“. */
.demo-lock .shackle { animation: shackle 4.8s infinite; }
.demo-lock .keyhole { fill: var(--paper); }
.demo-lock .lock-body { transform-box: fill-box; transform-origin: 50% 100%; animation: thunk 4.8s infinite; }
@keyframes shackle {
  0%, 48% { transform: none; animation-timing-function: cubic-bezier(0.3, 0.7, 0.4, 1); }
  60%, 72% { transform: translateY(-10px); animation-timing-function: cubic-bezier(0.7, 0, 0.9, 0.5); }
  79%, 100% { transform: none; }
}
@keyframes thunk { 0%, 78% { transform: none; } 82% { transform: translateY(1.5px) scaleY(0.95); } 90%, 100% { transform: none; } }

/* ---------- Ukázky ---------- */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3.4vw, 46px); max-width: 980px; margin-inline: auto; }
.phones figure { margin: 0; }
.phones .iphone { width: 100%; }
.phones figure:nth-child(even) { margin-top: clamp(0px, 5vw, 70px); }
.phones figcaption { margin-top: 20px; font-size: 1.05rem; color: rgba(255, 255, 255, 0.68); font-weight: 500; }
.phones figcaption b { display: block; font-size: 1.45rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }

/* ---------- Pro koho + kroky ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.who { border-radius: var(--radius); padding: 12px 12px 30px; background: rgba(255, 255, 255, 0.62); box-shadow: inset 0 1px 0 #fff, 0 20px 50px rgba(10, 60, 38, 0.1); transition: transform 0.45s var(--ease); }
.who:hover { transform: translateY(-6px) rotate(-1deg); }
.who h3, .who p { padding-inline: 16px; }
.who p { color: var(--muted); font-weight: 500; margin-top: 8px; }
/* Skutečná fotka v rámečku karty; jemný zelený závoj ji sladí s webem, při najetí se pomalu přiblíží. */
.who-photo { position: relative; aspect-ratio: 4 / 3; margin-bottom: 24px; border-radius: calc(var(--radius) - 10px); overflow: hidden; background: var(--paper-2); }
.who-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(1.02); transition: transform 1.1s var(--ease); }
.who-photo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(7, 102, 47, 0) 55%, rgba(7, 102, 47, 0.2)); box-shadow: inset 0 0 0 1px rgba(10, 42, 29, 0.06); pointer-events: none; }
.who:hover .who-photo img { transform: scale(1.08); }
.steps { list-style: none; margin: clamp(3rem, 7vw, 6rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li { padding: 0 6px; }
.num { display: block; font-weight: 800; font-size: clamp(5rem, 11vw, 9rem); line-height: 0.85; letter-spacing: -0.06em; background: linear-gradient(160deg, var(--green-light), var(--green-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px; }
.steps p { color: var(--muted); font-weight: 500; margin-top: 6px; }

/* ---------- Cena ---------- */
.price-section { padding-top: clamp(4rem, 9vw, 7rem) !important; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: end; }
.price { position: relative; border-radius: var(--radius); padding: 34px 28px; background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 1px 0 #fff, 0 20px 50px rgba(10, 60, 38, 0.1); transition: transform 0.45s var(--ease); }
.price:hover { transform: translateY(-6px); }
.price p { color: var(--muted); font-weight: 500; }
.price .amount { font-size: clamp(2.8rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.04em; color: var(--ink); line-height: 1.1; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.price-main { background: linear-gradient(160deg, #06281a, #0c3b28); color: #fff; padding-top: 56px; padding-bottom: 46px; box-shadow: 0 34px 80px rgba(6, 40, 26, 0.4); }
.price-main .amount { color: var(--lime); }
.price-main p { color: rgba(255, 255, 255, 0.72); }
.tag { position: absolute; top: 20px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--lime); color: #13290a; font-weight: 800; font-size: 0.85rem; }
.small { margin-top: 26px; color: var(--muted); font-size: 1rem; font-weight: 500; }

/* ---------- Předregistrace ---------- */
.final { padding-bottom: 0; text-align: center; }
.final h2 { margin-bottom: 2.4rem; }
.signup { display: grid; gap: 18px; }
.kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.kinds input { position: absolute; opacity: 0; pointer-events: none; }
.kinds span { display: block; padding: 0.7em 1.3em; border-radius: 999px; font-weight: 700; cursor: pointer; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); transition: background 0.25s, color 0.25s, transform 0.3s var(--spring); }
.kinds span:hover { transform: scale(1.05); }
.kinds input:checked + span { background: var(--lime); color: #13290a; box-shadow: 0 10px 26px rgba(201, 242, 107, 0.3); }
.kinds input:focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }
.field { display: flex; gap: 10px; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.14); transition: box-shadow 0.3s; }
.field:focus-within { box-shadow: inset 0 0 0 2px var(--green-light), 0 0 50px rgba(66, 221, 138, 0.25); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: 1.3rem; padding: 0 1.1em; }
.field input::placeholder { color: rgba(255, 255, 255, 0.45); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 12px; text-align: left; font-size: 1rem; color: rgba(255, 255, 255, 0.72); cursor: pointer; align-items: flex-start; }
.consent input { appearance: none; -webkit-appearance: none; flex: none; width: 28px; height: 28px; margin: 0; border-radius: 9px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); cursor: pointer; transition: background 0.2s, transform 0.3s var(--spring); }
.consent input:checked { background: var(--green-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2302110b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow: none; transform: scale(1.08); }
.consent input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.form-msg { min-height: 1.5em; font-weight: 700; color: #ffb4b6; }
.done { display: grid; justify-items: center; gap: 14px; padding: 2rem 0 1rem; }
.done[hidden] { display: none; }
.done p { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
.done circle { fill: none; stroke: var(--green-light); stroke-width: 5; stroke-dasharray: 227; stroke-dashoffset: 227; animation: draw 0.7s var(--ease) forwards; }
.done path { fill: none; stroke: var(--lime); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.45s var(--ease) 0.45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: clamp(4rem, 9vw, 7rem); padding: 26px 0 34px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.95rem; color: rgba(255, 255, 255, 0.5); }


/* ---------- Ukazatel čtení ---------- */
.read-bar { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.read-bar i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--read, 0)); background: linear-gradient(90deg, var(--green-light), var(--lime)); }

/* ---------- Hovor, který se odehrává podle rolování ---------- */
/* Hovor a Ukázky leží na jednom pozadí: záře stojí v okně, obsah obou sekcí jede přes ni, mezi nimi žádný šev. */
.dark-run { position: relative; overflow: clip; background: linear-gradient(180deg, var(--stage), var(--stage-2)); }
.dark-run > .dark { background: none; }
.run-bg { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; pointer-events: none; }

.story { padding: 0; overflow: visible; } /* bez ořezu (ani hidden, to by zrušilo lepení): záře telefonu plynule dobíhá do Ukázek, ořez do stran hlídá .dark-run */
.story-track { height: 440vh; }
.story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: 76px; /* místo pro plovoucí lištu, telefon se centruje až pod ní */ }
.story-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.eyebrow { font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.95rem; color: var(--lime); margin-bottom: 1.4rem; }
.story-steps { position: relative; height: clamp(7.5rem, 17vw, 12.5rem); }
.story-steps h2 { position: absolute; left: 0; top: 0; margin: 0; opacity: 0; transform: translateY(46px); filter: blur(12px); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease), filter 0.6s var(--ease); }
.story-steps h2.on { opacity: 1; transform: none; filter: none; }
.story-steps h2.past { transform: translateY(-46px); }
.story-bar { width: min(320px, 70%); height: 6px; border-radius: 3px; margin-top: 2.2rem; overflow: hidden; background: rgba(255, 255, 255, 0.14); }
.story-bar i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--green-light), var(--lime)); }

.story-phone { width: calc(min(100svh - 140px, 740px) / 2.077); transform: scale(calc(0.94 + var(--p, 0) * 0.06)); transition: none; }
.story-sticky { perspective: 1400px; }

/* Obrazovka hovoru postavená v HTML: ostrá v každém rozlišení a jde „přetáčet“ rolováním. */
.call {
  container-type: size; position: relative; width: 100%; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; color: #fff;
  background:
    radial-gradient(120% 60% at 8% 0%, rgba(18, 161, 80, calc(0.4 + var(--e, 0) * 0.3)), transparent 62%),
    radial-gradient(95% 55% at 100% 58%, rgba(44, 184, 164, calc(0.22 + var(--e, 0) * 0.22)), transparent 66%),
    linear-gradient(180deg, #02110b, #0a2c1f);
}
/* Displej hovoru má poměr skutečného iPhonu; nahoře místo pro stavový řádek, dole proužek Domů. */
.story-phone .iphone-screen { aspect-ratio: 393 / 852; }
.call::after { content: ''; position: absolute; bottom: 2.1cqw; left: 50%; translate: -50% 0; width: 34cqw; height: 1.3cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.78); }
.call-head { display: flex; align-items: center; gap: 3cqw; padding: 15cqw 5cqw 2cqw; }
.call-avatar { display: grid; place-items: center; width: 13cqw; height: 13cqw; border-radius: 50%; background: linear-gradient(135deg, #5b8cff, #2f5fd0); color: #fff; font-size: 6cqw; font-weight: 800; line-height: 1; box-shadow: inset 0 0 0 0.6cqw rgba(255, 255, 255, 0.5); }
.call-who b { display: block; font-size: 5.4cqw; font-weight: 800; }
.call-who em { font-style: normal; font-size: 4.3cqw; color: rgba(255, 255, 255, 0.64); font-variant-numeric: tabular-nums; }
.call-dial { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5cqw; opacity: var(--dial, 1); transform: scale(calc(0.88 + 0.12 * var(--dial, 1))); pointer-events: none; }
.dial-rings { position: relative; display: grid; place-items: center; width: 40cqw; height: 40cqw; margin-bottom: 9cqw; }
.dial-rings span { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, #5b8cff, #2f5fd0); color: #fff; font-size: 18cqw; font-weight: 800; line-height: 1; letter-spacing: -0.02em; box-shadow: inset 0 0 0 1cqw rgba(255, 255, 255, 0.5); }
.dial-rings b { position: absolute; inset: 0; border-radius: 50%; opacity: 0; box-shadow: 0 0 0 1cqw rgba(66, 221, 138, 0.55), 0 0 12cqw 4cqw rgba(66, 221, 138, 0.4); animation: ring 2.6s var(--ease) infinite; }
.dial-rings b:nth-child(2) { animation-delay: 0.85s; }
.dial-rings b:nth-child(3) { animation-delay: 1.7s; }
.call-dial strong { font-size: 8cqw; font-weight: 800; letter-spacing: -0.02em; }
.call-dial small { font-size: 5cqw; color: rgba(255, 255, 255, 0.64); }
.call-lines { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 5cqw; padding: 0 6cqw 5cqw; min-height: 0; }
.call-lines p { margin: 0; display: none; }
.call-lines p.started { display: block; }
.call-lines .theirs { font-size: 7.4cqw; line-height: 1.28; font-weight: 500; letter-spacing: -0.01em; transition: opacity 0.5s var(--ease); }
.call-lines .theirs.old { opacity: 0.4; }
.call-lines .w { display: inline-block; opacity: 0; transform: translateY(0.4em) scale(0.9); transition: opacity 0.3s var(--ease), transform 0.45s var(--spring); }
.call-lines .w.on { opacity: 1; transform: none; }
.call-lines .mine { align-self: flex-end; }
.call-lines .mine > span { display: inline-block; padding: 3cqw 4.6cqw; border-radius: 6cqw 6cqw 2cqw 6cqw; background: linear-gradient(135deg, #ddf98f, #b9e94f); color: #13290a; font-weight: 800; font-size: 5.6cqw; opacity: var(--b, 0); transform: translateY(calc((1 - var(--b, 0)) * 8cqw)) scale(calc(0.9 + 0.1 * var(--b, 0))); box-shadow: 0 2cqw 6cqw rgba(201, 242, 107, 0.25); }
.call-lines .mine .w { opacity: 0.38; transform: none; }
.call-lines .mine .w.on { opacity: 1; }
.call-foot { display: grid; gap: 3cqw; margin: 0 3cqw 7.5cqw; padding: 4cqw; border-radius: 9cqw; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.12); opacity: calc(1 - var(--dial, 1)); }
.call-wave { display: flex; align-items: center; gap: 1cqw; height: 7cqw; padding-left: 2cqw; color: rgba(255, 255, 255, 0.35); transition: color 0.3s; }
.call-wave i { width: 1.1cqw; height: 100%; border-radius: 1cqw; background: currentColor; transform: scaleY(0.18); }
.call-wave.them { color: #fff; }
.call-wave.voice { color: var(--lime); }
.call-wave.them i, .call-wave.voice i { animation: bar 0.45s ease-in-out infinite alternate; }
.call-wave i:nth-child(2) { animation-delay: -0.3s; } .call-wave i:nth-child(3) { animation-delay: -0.1s; } .call-wave i:nth-child(4) { animation-delay: -0.4s; }
.call-wave i:nth-child(5) { animation-delay: -0.2s; } .call-wave i:nth-child(6) { animation-delay: -0.35s; } .call-wave i:nth-child(7) { animation-delay: -0.05s; }
.call-input { display: flex; align-items: center; min-height: 13cqw; padding: 0 5cqw; border-radius: 7cqw; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); font-size: 5cqw; font-weight: 500; white-space: nowrap; overflow: hidden; }
.call-input .caret { flex: none; width: 0.7cqw; height: 6cqw; margin-left: 0.6cqw; background: var(--lime); animation: blink 0.9s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.call-buttons { display: flex; gap: 2.5cqw; }
.call-buttons span { display: grid; place-items: center; width: 15cqw; height: 15cqw; border-radius: 8cqw; background: rgba(255, 255, 255, 0.13); font-weight: 800; font-size: 4.6cqw; }
.call-buttons .wide { flex: 1; width: auto; }
.call-buttons .hang { width: 18cqw; background: linear-gradient(135deg, #ff6b6f, #e2363c); }
.call-buttons svg { width: 6.4cqw; height: 6.4cqw; }
.call-buttons .hang svg { width: 7.4cqw; height: 7.4cqw; transform: rotate(135deg); }

/* Telefony v ukázkách se při rolování lehce míjejí. */
@media (min-width: 981px) {
  .phones figure:nth-child(odd) { transform: translateY(calc(var(--g, 0) * -46px)); }
  .phones figure:nth-child(even) { transform: translateY(calc(var(--g, 0) * 46px)); }
  .phones figure.reveal { transition: opacity 0.9s var(--ease); }
}

@media (max-width: 980px) {
  .story-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.2rem; }
  .story-steps { width: 100%; height: clamp(5.6rem, 22vw, 8rem); }
  .story-steps h2 { left: 0; right: 0; font-size: clamp(2rem, 8vw, 3.2rem); }
  .story-bar { margin: 0.6rem auto 0; }
  .eyebrow { margin-bottom: 0.6rem; font-size: 0.8rem; }
  .story-phone { width: calc(min(58svh, 560px) / 2.077); }
  .story-sticky { padding-top: 70px; }
  .hero-phone { transform: none; }
}

/* ---------- Objevení při rolování ---------- */
.reveal { opacity: 0; transform: translateY(34px) scale(0.97); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Menší obrazovky ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-captions, .card-typing { min-height: 380px; }
  .phones { grid-auto-flow: column; grid-auto-columns: min(64vw, 280px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding: 90px 20px 90px; margin: -90px -20px -70px; scrollbar-width: none; } /* místo pro záři a stín telefonů, ať je posuvník neusekne */
  .phones::-webkit-scrollbar { display: none; }
  .phones figure { scroll-snap-align: center; margin-top: 0 !important; }
  .trio, .steps, .prices { grid-template-columns: 1fr; }
  .who-photo { aspect-ratio: 16 / 10; max-height: 320px; }
  .price-main { padding-top: 56px; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .nav { padding-left: 14px; gap: 10px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .bento { grid-template-columns: 1fr; }
  .card-captions, .card-typing { grid-column: auto; min-height: 340px; }
  .card-small { min-height: 250px; }
  .field { flex-direction: column; border-radius: 34px; padding: 10px; }
  .field input { min-height: 60px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .words .w, .reveal, .demo-captions .now span { opacity: 1; transform: none; filter: none; }
  .typed { max-width: 28ch; }
  .story-track { height: auto; }
  .story-sticky { position: static; height: auto; padding: 6rem 0; }
}
