/* ===== JamesApp.cz — produktové styly =====
   Vrstva nad cfg-base.css (tokeny + reset) a james-brand.css (barvy).
   Vlastní produktový design SaaS — nekopíruje layout cfg.cz. */

:root {
  --container: 1200px;
  --gap: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-white);
  color: var(--text-body);
  font-family: var(--f-body);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--james-accent-2);
  color: #fff;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 32px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-head);
  color: var(--james-ink);
  line-height: 1.12;
}

section {
  scroll-margin-top: 88px;
}

/* ---- Utility ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.eyebrow--on-dark {
  color: var(--james-accent-2);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 16px 0 0;
}

.section-head p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--text-muted);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.muted {
  color: var(--text-muted);
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section--violet {
  background: var(--james-violet-50);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, opacity .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--brand-accent);
  color: #fff;
}

.btn--primary:hover {
  background: #6d28d9;
}

.btn--light {
  background: #fff;
  color: var(--james-ink);
  border-color: var(--james-violet-200);
}

.btn--light:hover {
  border-color: var(--brand-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--james-ink);
  border-color: rgba(28, 20, 48, .15);
}

.btn--ghost-on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
}

.btn--ghost-on-dark:hover {
  border-color: #fff;
}

.btn--lg {
  padding: 17px 32px;
  font-size: 17px;
}

.btn--block {
  width: 100%;
}

/* ===== HEADER / NAV ===== */
.jnav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 72px;
  background: rgba(21, 8, 46, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.jnav__inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding-inline: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.jnav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.jnav__logo {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  color: #fff;
}

.jnav__logo span {
  color: var(--james-accent-2);
}

.jnav__logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.jfooter__brand .jnav__logo-img {
  height: 52px;
}

/* CFG trust badge v headeru — decentní */
.jnav__cfg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding-left: 16px;
  margin-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, .18);
  font-family: var(--f-ui);
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, .55);
  transition: opacity .2s;
}

.jnav__cfg:hover {
  opacity: .7;
}

.jnav__cfg img {
  width: 44px;
  height: auto;
  opacity: .85;
}

.jnav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.jnav__link {
  font-family: var(--f-head);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  transition: color .2s;
}

.jnav__link:hover {
  color: #fff;
}

.jnav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.jnav__actions .btn {
  padding: 9px 18px;
  font-size: 14px;
}

.jnav__login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 16px;
  margin-right: 4px;
  border-right: 1px solid rgba(255, 255, 255, .18);
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--james-accent-2);
  transition: color .2s;
}

.jnav__login:hover {
  color: #fff;
}

.jnav__login svg {
  width: 15px;
  height: 15px;
  opacity: 1;
}

.jnav__burger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.jnav__burger span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: #fff;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

.jnav--open .jnav__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.jnav--open .jnav__burger span:nth-child(2) {
  opacity: 0;
}

.jnav--open .jnav__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.jnav__drawer {
  /* .jnav má backdrop-filter → je containing blockem fixed potomků;
     proto výšku držíme přes viewport, ne přes inset bottom. */
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  height: calc(100dvh - 72px);
  background: #15082e;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 101;
  visibility: hidden;
  overflow-y: auto;
}

.jnav--open .jnav__drawer {
  transform: translateX(0);
  visibility: visible;
}

.jnav__drawer a {
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.jnav__drawer .btn {
  margin-top: 20px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(168, 85, 247, .32), transparent 60%),
    radial-gradient(760px 460px at 8% 12%, rgba(124, 58, 237, .22), transparent 55%),
    var(--brand-bg);
  color: var(--brand-text-on-dark);
  padding: calc(72px + 84px) 0 96px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px 64px;
  align-items: center;
}

.hero__rank {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.hero__rank::before {
  content: "★";
  color: var(--james-accent-2);
}

.hero h1 {
  color: #fff;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 24px 0 0;
}

.hero h1 em {
  font-style: normal;
  color: var(--james-accent-2);
}

.hero__sub {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255, 255, 255, .78);
  max-width: 520px;
  margin-top: 22px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, .62);
}

.hero__note::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(82, 199, 110, .18);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

/* Hero — přesvědčivá čísla */
.hero__stats {
  grid-column: 1 / -1;
  /* plná šířka hero — pod textem i videem */
  display: flex;
  flex-wrap: wrap;
  gap: 26px 44px;
  margin-top: 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  list-style: none;
}

.hero__stat {
  flex: 1 1 140px;
  /* rovnoměrně roztažené přes celou šířku */
  display: flex;
  flex-direction: column;
}

.hero__stat-pre {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .55);
}

.hero__stat-num {
  font-family: var(--f-head);
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  /* číslice nepoposkakují při počítání */
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__stat-num {
    background: linear-gradient(135deg, #fff 35%, var(--james-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.hero__stat-label {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .6);
  max-width: 18ch;
}

/* Hero media */
.hero__media {
  position: relative;
  border-radius: var(--james-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
  background: #1d1038;
  /* přetéká doprava, ale ~24px od kraje obrazovky (ne nalepené) + přesah max ~500 px */
  margin-right: max(calc((min(100vw, var(--container)) - 100vw) / 2 - 32px + 24px), -500px);
}

/* video v původním poměru stran — nic se neořezává */
.hero__media video {
  width: 100%;
  height: auto;
  display: block;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .92);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
  transition: transform .2s, background .2s;
}

.hero__play:hover {
  transform: scale(1.06);
  background: #fff;
}

.hero__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 20px solid var(--brand-bg);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

/* ===== HERO — animace ============================================
   Pět vrstev v různém rytmu → „živá" sekce:
   1) Kaskádový nástup obsahu (pill → h1 → sub → CTA → note) při loadu
   2) Příjezd video karty + plynulý přechod do nekonečného plování
   3) Plovoucí/„dýchající" fialové glow blobs v pozadí
   4) Přejíždějící lesk v gradientu zvýrazněného textu „100+ hodin"
   5) Světelný přejezd (glint) přes video kartu
   Vše pod prefers-reduced-motion: no-preference — statika zůstává. */

/* Obsah nad glow blobs */
.hero__grid {
  position: relative;
  z-index: 1;
}

/* 3) Glow blobs (svítí i bez animace) */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.hero::before {
  width: 460px;
  height: 460px;
  top: -130px;
  right: -70px;
  background: radial-gradient(circle, rgba(168, 85, 247, .30), transparent 70%);
}

.hero::after {
  width: 420px;
  height: 420px;
  bottom: -150px;
  left: -90px;
  background: radial-gradient(circle, rgba(124, 58, 247, .26), transparent 70%);
}

/* Světelný pruh přes kartu (ořezává overflow:hidden na .hero__media) */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(115deg,
      transparent 32%, rgba(255, 255, 255, .16) 48%, transparent 64%);
  transform: translateX(-130%);
}

/* 4) Animovaný gradient ve zvýrazněném textu (fallback = plná fialová) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 em {
    background: linear-gradient(100deg,
        var(--james-accent-2) 20%, #efe2ff 50%, var(--james-accent-2) 80%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

@media (prefers-reduced-motion: no-preference) {

  /* 1) Kaskádový nástup obsahu při načtení */
  .hero__rank {
    animation: heroUp .7s cubic-bezier(.22, 1, .36, 1) .10s both;
  }

  .hero h1 {
    animation: heroUp .7s cubic-bezier(.22, 1, .36, 1) .20s both;
  }

  .hero__sub {
    animation: heroUp .7s cubic-bezier(.22, 1, .36, 1) .32s both;
  }

  .hero__cta {
    animation: heroUp .7s cubic-bezier(.22, 1, .36, 1) .44s both;
  }

  .hero__note {
    animation: heroUp .7s cubic-bezier(.22, 1, .36, 1) .54s both;
  }

  .hero__stats {
    animation: heroUp .7s cubic-bezier(.22, 1, .36, 1) .64s both;
  }

  /* 2) Příjezd karty → nekonečné plování (poslední animace má při
        kolizi transformu přednost, takže navazují bez skoku) */
  .hero__media {
    animation:
      heroMediaIn .9s cubic-bezier(.22, 1, .36, 1) .35s both,
      heroFloat 7s ease-in-out 1.35s infinite;
  }

  /* 3) Pomalý drift / dýchání blobs */
  .hero::before {
    animation: heroBlobA 16s ease-in-out infinite;
  }

  .hero::after {
    animation: heroBlobB 21s ease-in-out infinite;
  }

  /* 4) Přejíždějící lesk v textovém gradientu */
  .hero h1 em {
    animation: heroShimmer 5s linear 1s infinite;
  }

  /* 5) Světelný přejezd (glint) přes video kartu */
  .hero__media::after {
    animation: heroShine 7s ease-in-out 2.2s infinite;
  }
}

@keyframes heroUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroMediaIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes heroBlobA {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-44px, 30px) scale(1.12);
  }
}

@keyframes heroBlobB {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(52px, -26px) scale(1.1);
  }
}

@keyframes heroShimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes heroShine {
  0% {
    transform: translateX(-130%);
  }

  18%,
  100% {
    transform: translateX(130%);
  }
}

/* ===== LOGO STRIP ===== */
.logos {
  background: var(--brand-bg);
  padding: 10px 0 64px;
}

.logos__label {
  text-align: center;
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 28px;
}

.logos__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px 48px;
}

.logos__item {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 19px;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .01em;
}

.logos__item img {
  height: 46px;
  width: auto;
  opacity: .85;
  filter: brightness(0) invert(1);
}

/* ===== FEATURES GRID ===== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.feature {
  background: #fff;
  border: 1px solid var(--james-violet-100);
  border-radius: var(--james-radius);
  padding: 32px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(124, 58, 237, .4);
  border-color: var(--james-violet-200);
}

.feature__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--james-violet-100);
  color: var(--brand-accent);
  margin-bottom: 20px;
}

.feature__icon svg {
  width: 26px;
  height: 26px;
}

.feature h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ===== FEATURES — vstupní animace (kaskáda karet + „kreslení" ikon) =====
   Trojvrstvý reveal: karty přijíždějí v kaskádě → ikona vyskočí pružinou
   s glow pulsem → tahy ikony se postupně „nakreslí". Délky tahů měří JS
   (main.js přidá .js-draw a per-prvek --len). Bez JS i u reduced-motion
   zůstává sekce plně čitelná. */

/* Hover mikrointerakce — barevný přechod ikony (běží vždy) */
.feature__icon {
  transition: background .35s ease, color .35s ease, box-shadow .35s ease;
}

.feature:hover .feature__icon {
  background: linear-gradient(145deg, var(--brand-accent), var(--james-accent-2));
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(124, 58, 237, .55);
}

@media (prefers-reduced-motion: no-preference) {

  /* 1) Karty v kaskádě — stagger podle pořadí (--i nastaví JS) */
  .feature.reveal {
    transform: translateY(30px) scale(.97);
    transition: opacity .6s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
    transition-delay: calc(var(--i, 0) * 80ms);
  }

  .feature.reveal.is-visible {
    transform: none;
  }

  /* 2) Ikona vyskočí pružinou + jednorázový glow puls (jen s JS) */
  .features__grid.js-draw .feature__icon {
    opacity: 0;
    transform: scale(.5);
    transition-property: transform, opacity, background, color, box-shadow;
    transition-duration: .6s, .5s, .35s, .35s, .35s;
    transition-timing-function: cubic-bezier(.34, 1.56, .64, 1), ease, ease, ease, ease;
  }

  .features__grid.js-draw .feature.is-visible .feature__icon {
    opacity: 1;
    transform: scale(1);
    transition-delay: calc(var(--i, 0) * 80ms + .14s), calc(var(--i, 0) * 80ms + .14s), 0s, 0s, 0s;
    animation: featGlow 1.1s ease calc(var(--i, 0) * 80ms + .14s) both;
  }

  /* 3) Tahy ikony se „nakreslí" (délky --len měří JS přes getTotalLength) */
  .features__grid.js-draw .feature__icon svg>* {
    stroke-dasharray: var(--len);
    stroke-dashoffset: var(--len);
    transition: stroke-dashoffset .85s ease;
    transition-delay: calc(var(--i, 0) * 80ms + .34s);
  }

  .features__grid.js-draw .feature.is-visible .feature__icon svg>* {
    stroke-dashoffset: 0;
  }

  /* 4) Jemné naklonění/zvětšení ikony při hoveru */
  .feature__icon svg {
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
  }

  .feature:hover .feature__icon svg {
    transform: scale(1.1) rotate(-4deg);
  }
}

@keyframes featGlow {
  0% {
    filter: drop-shadow(0 0 0 rgba(124, 58, 237, 0));
  }

  45% {
    filter: drop-shadow(0 0 16px rgba(124, 58, 237, .6));
  }

  100% {
    filter: drop-shadow(0 0 0 rgba(124, 58, 237, 0));
  }
}

/* ===== HOW IT WORKS — centrovaná timeline (světlá, střídavá) ==========
   Čára vede středem; obsah se střídá vlevo/vpravo, odznaky sedí na čáře.
   Pozn.: .steps__track je 1. potomek .steps, takže .step:nth-child(even)
   = 1. a 3. krok (vlevo), :nth-child(odd) = 2. a 4. krok (vpravo).
   Bez JS / reduced-motion je vše „dosvícené" a čára plná; s JS (.js-steps)
   skript řídí výšku .steps__progress a přepíná .step--on. */
.steps {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
}

.steps__track {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 34px;
  bottom: 0;
  width: 2px;
  /* tenká = lehčí */
  background: var(--james-violet-200);
  border-radius: 2px;
  overflow: hidden;
}

.steps__progress {
  display: block;
  width: 100%;
  height: 100%;
  /* plná = fallback bez JS */
  background: linear-gradient(180deg, var(--brand-accent), var(--james-accent-2));
  border-radius: 2px;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
  column-gap: 40px;
  padding-bottom: 130px;
  /* větší rozestup = sekcí se scrolluje pomaleji */
}

.step:last-child {
  padding-bottom: 0;
}

/* obsah střídavě vlevo / vpravo (grid-row:1 drží odznak i text v jedné řadě) */
.step__content {
  grid-row: 1;
}

.step:nth-child(even) .step__content {
  grid-column: 1;
  text-align: right;
}

.step:nth-child(odd) .step__content {
  grid-column: 3;
  text-align: left;
}

.step__badge {
  grid-column: 2;
  grid-row: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  background: var(--james-violet-100);
  /* světlá výplň */
  border: 1.5px solid var(--brand-accent);
  color: var(--brand-accent);
  box-shadow: 0 6px 18px -8px rgba(124, 58, 237, .3);
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1),
    background .45s ease, border-color .45s ease, color .45s ease, box-shadow .45s ease;
}

.step__badge svg {
  width: 28px;
  height: 28px;
}

.step__kicker {
  display: inline-block;
  margin: 0 0 6px;
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.step__content h3 {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--james-ink);
}

.step__content p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

/* ---- JS scroll režim: čáru řídí JS; krok uprostřed obrazovky se zvětší,
        ostatní ustoupí do pozadí (--prom 0..1 počítá JS každý frame) ---- */
.js-steps .steps__progress {
  height: 0;
}

.js-steps .step__badge {
  transition: transform .15s ease-out, border-color .15s ease-out;
  transform: scale(calc(.86 + var(--prom, 0) * .26));
  /* výplň zůstává neprůhledná, aby čára neprosvítala pod odznakem;
     „ustoupení do pozadí" děláme zesvětlením obrysu a vyblednutím ikony */
  border-color: color-mix(in srgb, var(--brand-accent) calc(20% + var(--prom, 0) * 80%), var(--james-violet-200));
}

.js-steps .step__badge svg {
  opacity: calc(.4 + var(--prom, 0) * .6);
}

.js-steps .step__content {
  transition: transform .15s ease-out, opacity .15s ease-out;
  transform: scale(calc(.96 + var(--prom, 0) * .06));
  opacity: calc(.3 + var(--prom, 0) * .7);
}

.js-steps .step:nth-child(even) .step__content {
  transform-origin: right center;
}

.js-steps .step:nth-child(odd) .step__content {
  transform-origin: left center;
}

@media (prefers-reduced-motion: reduce) {
  .step__badge {
    transition: none;
  }
}

/* ===== SECURITY ===== */
.security {
  background: var(--brand-bg);
  color: var(--brand-text-on-dark);
}

.security__layout {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.security h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -.02em;
}

.security p {
  color: rgba(255, 255, 255, .75);
  font-size: 17px;
  margin-top: 18px;
}

.security__badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cert {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--james-radius);
  padding: 20px 22px;
}

.cert__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(168, 85, 247, .18);
  color: var(--james-accent-2);
}

.cert__mark svg {
  width: 22px;
  height: 22px;
}

.cert strong {
  display: block;
  font-family: var(--f-head);
  font-size: 16px;
  color: #fff;
}

.cert span {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}

/* ===== PRICING ===== */
.pricing__cards {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  align-items: start;
}

.pricing__card {
  background: #fff;
  border: 1px solid var(--james-violet-100);
  border-radius: var(--james-radius-lg);
  padding: 32px;
}

.pricing__card--pro {
  position: relative;
  background: linear-gradient(180deg, #2a1052, var(--brand-bg));
  border-color: transparent;
  color: #fff;
}

.pricing__plan {
  font-family: var(--f-head);
  font-size: 24px;
  font-weight: 800;
}

.pricing__price {
  font-family: var(--f-head);
  font-size: 32px;
  font-weight: 800;
  margin-top: 8px;
  letter-spacing: -.02em;
}

.pricing__price small {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing__card--pro .pricing__price small {
  color: rgba(255, 255, 255, .65);
}

.pricing__tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin: 8px 0 22px;
}

.pricing__card--pro .pricing__tagline {
  color: rgba(255, 255, 255, .72);
}

.pricing__badge {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--james-accent-2);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.pricing__list-head {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 28px 0 14px;
  color: rgba(255, 255, 255, .7);
}

.pricing__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px 28px;
}

.pricing__list--cols {
  grid-template-columns: 1fr 1fr;
  margin-top: 0;
}

.pricing__list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.45;
}

.pricing__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--green);
}

.pricing__card--pro .pricing__list li::before {
  color: var(--james-accent-2);
}

.tick {
  color: var(--green);
  font-weight: 800;
}

.pricing__note {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== TESTIMONIALS / REFERENCE ===== */
/* Stats strip */
.testi-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.testi-stat {
  background: #fff;
  border: 1px solid var(--james-violet-100);
  border-radius: var(--james-radius);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.testi-stat__num {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--brand-accent), var(--james-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.testi-stat__label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Layout: featured + grid */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  align-items: stretch;
}

.testi {
  position: relative;
  background: #fff;
  border: 1px solid var(--james-violet-100);
  border-radius: var(--james-radius);
  padding: 34px 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.testi:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(124, 58, 237, .4);
  border-color: var(--james-violet-200);
}

.testi::before {
  content: "\201C";
  position: absolute;
  top: 14px;
  right: 26px;
  font-family: Georgia, serif;
  font-size: 96px;
  line-height: 1;
  color: var(--james-violet-200);
  pointer-events: none;
}

/* Featured card — tmavá fialová, bílý text */
.testi--feature {
  background: linear-gradient(150deg, #2a1052, var(--brand-bg));
  border-color: transparent;
  padding: 44px 42px 38px;
  box-shadow: 0 30px 70px -30px rgba(124, 58, 237, .6);
}

.testi--feature::before {
  color: rgba(168, 85, 247, .35);
  font-size: 130px;
  top: 20px;
}

.testi--feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 80px -28px rgba(124, 58, 237, .7);
}

.testi--feature .testi__quote {
  color: #fff;
  font-size: clamp(20px, 2vw, 24px);
}

.testi--feature .testi__name {
  color: #fff;
}

.testi--feature .testi__role {
  color: rgba(255, 255, 255, .7);
}

.testi__stars {
  color: #f5a623;
  font-size: 16px;
  letter-spacing: 2px;
}

.testi__quote {
  position: relative;
  z-index: 1;
  font-size: 16px;
  color: var(--james-ink);
  line-height: 1.6;
}

.testi__quote .hl {
  color: var(--brand-accent);
  font-weight: 700;
}

.testi--feature .testi__quote .hl {
  color: var(--james-accent-2);
}

.testi__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.testi__who {
  display: flex;
  flex-direction: column;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand-accent), var(--james-accent-2));
  color: #fff;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 16px;
}

.avatar--img {
  object-fit: cover;
  object-position: center top;
}

.testi__name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--james-ink);
}

.testi__role {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== TEAM ===== */
.team__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.team__people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.person {
  text-align: center;
}

.person .avatar {
  width: 88px;
  height: 88px;
  font-size: 30px;
  margin: 0 auto 14px;
}

.person h4 {
  font-size: 17px;
  font-weight: 700;
}

.person span {
  font-size: 13px;
  color: var(--brand-accent);
  font-weight: 600;
}

.team__company {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  background: var(--james-violet-50);
  border: 1px solid var(--james-violet-100);
  border-radius: var(--james-radius-lg);
  padding: 48px 40px;
}

.team__company-logo {
  width: auto;
  max-width: 280px;
  height: auto;
}

.team__company p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ===== CFG GROUP ===== */
.group {
  background: var(--james-violet-50);
}

.group__card {
  background: #fff;
  border: 1px solid var(--james-violet-100);
  border-radius: var(--james-radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.group__logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.group__logos img {
  height: 34px;
  width: auto;
  opacity: .8;
}

/* ===== FAQ ===== */
.faq__list {
  max-width: 860px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--james-violet-100);
}

.faq__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 24px 48px 24px 0;
  position: relative;
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--james-ink);
}

.faq__q::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--brand-accent);
  border-bottom: 2px solid var(--brand-accent);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .25s;
}

.faq__item--open .faq__q::after {
  transform: translateY(-35%) rotate(-135deg);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}

.faq__item--open .faq__a {
  grid-template-rows: 1fr;
}

.faq__a p {
  min-height: 0;
  overflow: hidden;
  padding: 0 48px 24px 0;
  color: var(--text-muted);
  font-size: 16px;
}

.faq__more {
  text-align: center;
  margin-top: 36px;
}

/* ===== CONTACT / DEMO ===== */
.contact {
  background: var(--brand-bg);
  color: var(--brand-text-on-dark);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -.02em;
}

.contact__lead {
  color: rgba(255, 255, 255, .78);
  font-size: 17px;
  margin-top: 18px;
}

.contact__personal {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--james-radius);
  padding: 20px;
  margin-top: 28px;
}

.contact__personal .avatar {
  width: 56px;
  height: 56px;
}

.contact__personal p {
  font-size: 15px;
  color: rgba(255, 255, 255, .85);
}

.contact__phone {
  margin-top: 28px;
}

.contact__phone a {
  font-family: var(--f-head);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.contact__legal {
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.6;
}

.contact__legal a {
  color: rgba(255, 255, 255, .8);
  text-decoration: underline;
}

/* Form card */
.lead-card {
  background: var(--brand-darker);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--james-radius-lg);
  padding: 36px;
}

.lead-card h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
}

.field input {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-family: var(--f-body);
  font-size: 16px;
  transition: border-color .2s;
}

.field input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.field input:focus {
  outline: none;
  border-color: var(--james-accent-2);
}

.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.gdpr {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 22px;
}

.gdpr input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-accent);
  flex-shrink: 0;
}

.gdpr label {
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.5;
}

.gdpr a {
  color: #fff;
  text-decoration: underline;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  min-height: 20px;
}

.form-status--ok {
  color: var(--green);
}

.form-status--err {
  color: #ff8a8a;
}

/* ===== FOOTER (incl. CFG group block) ===== */
.jfooter {
  background: var(--brand-bg);
  color: var(--brand-text-on-dark);
  padding: 80px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.jfooter__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.jfooter__brand .jnav__logo {
  font-size: 26px;
}

.jfooter__tag {
  margin-top: 16px;
  color: rgba(255, 255, 255, .6);
  font-size: 15px;
  max-width: 280px;
}

.jfooter__col h4 {
  font-family: var(--f-head);
  font-size: 14px;
  color: #fff;
  margin-bottom: 18px;
}

.jfooter__col a,
.jfooter__col address {
  display: block;
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  font-style: normal;
  margin-bottom: 12px;
  transition: color .2s;
}

.jfooter__col a:hover {
  color: #fff;
}

.jfooter__cfg {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--f-ui);
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}

.jfooter__cfg img {
  height: 18px;
  width: auto;
  opacity: .85;
}

.jfooter__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

.jfooter__legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.jfooter__legal a:hover {
  color: #fff;
}

/* ===== TYPEFORM MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.modal[aria-hidden="false"] {
  display: block;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 4, 32, .7);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  max-width: 720px;
  width: calc(100% - 32px);
  height: min(80vh, 760px);
  margin: 8vh auto 0;
  background: #fff;
  border-radius: var(--james-radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .6);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .06);
  color: var(--james-ink);
  font-size: 22px;
  line-height: 1;
}

.modal__close:hover {
  background: rgba(0, 0, 0, .12);
}

.modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.modal__video {
  background: #000;
}

.modal__video .modal__dialog {
  background: #000;
  height: auto;
  aspect-ratio: 16/9;
}

.modal__video video {
  width: 100%;
  height: 100%;
  display: block;
}

/* Modal s kontaktním formulářem — tmavá karta, výška dle obsahu */
.modal--form .modal__dialog {
  height: auto;
  max-height: 92vh;
  max-width: 520px;
  margin-top: 5vh;
  overflow-y: auto;
  background: var(--brand-darker);
}

.modal--form .lead-card {
  border: 0;
  background: transparent;
  padding: 40px 36px;
}

.modal--form .lead-card h3 {
  padding-right: 40px;
  margin-bottom: 8px;
}

.modal--form .modal__close {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.modal--form .modal__close:hover {
  background: rgba(255, 255, 255, .22);
}

/* Lightbox — velký náhled obrázku */
.modal--image .modal__dialog {
  height: auto;
  max-height: 92vh;
  max-width: min(1040px, 96vw);
  width: auto;
  margin: 5vh auto 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  display: flex;
}

.modal--image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 92vh;
  margin: auto;
  border-radius: var(--james-radius-lg);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .6);
}

.modal--image .modal__close {
  top: -6px;
  right: -6px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

.modal--image .modal__close:hover {
  background: #fff;
}

.lead-card__sub {
  color: rgba(255, 255, 255, .68);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 24px;
}

/* CTA karta v sekci kontakt (otevírá modal) */
.contact__cta {
  display: flex;
  flex-direction: column;
}

.contact__cta p {
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  line-height: 1.6;
  margin: -8px 0 24px;
}

/* ===== COOKIE BAR (lokální fallback, sjednoceno se skupinou) ===== */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 150;
  width: min(860px, calc(100% - 32px));
  background: var(--brand-darker);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--james-radius);
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
}

.cookie[hidden] {
  display: none;
}

.cookie p {
  flex: 1;
  min-width: 240px;
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
}

.cookie a {
  color: #fff;
  text-decoration: underline;
}

.cookie__actions {
  display: flex;
  gap: 10px;
}

.cookie .btn {
  padding: 10px 18px;
  font-size: 14px;
}

/* ===== Reveal-on-scroll (progressive enhancement) ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===== Funkce page hero ===== */
.subhero {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(168, 85, 247, .3), transparent 60%),
    var(--brand-bg);
  color: #fff;
  padding: calc(72px + 72px) 0 72px;
  text-align: center;
}

.subhero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -.02em;
}

.subhero p {
  color: rgba(255, 255, 255, .75);
  font-size: 18px;
  max-width: 620px;
  margin: 18px auto 0;
}

.fnc {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 96px);
}

.fnc__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.fnc__row:nth-child(even) .fnc__media {
  order: -1;
}

.fnc__num {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--brand-accent);
  background: var(--james-violet-100);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  display: inline-block;
}

.fnc__row h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin: 18px 0 20px;
}

.fnc__row ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fnc__row li {
  position: relative;
  padding-left: 32px;
  color: var(--text-body);
  font-size: 16px;
}

.fnc__row li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--james-violet-100);
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 800;
}

.fnc__media {
  aspect-ratio: 4/3;
  border-radius: var(--james-radius-lg);
  background: linear-gradient(145deg, var(--james-violet-100), var(--james-violet-50));
  border: 1px solid var(--james-violet-200);
  display: grid;
  place-items: center;
  color: var(--brand-accent);
  overflow: hidden;
}

.fnc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.fnc__media:hover img {
  transform: scale(1.08);
}

.fnc__media svg {
  width: 72px;
  height: 72px;
  opacity: .5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  .container {
    padding-inline: 40px;
  }
}

@media (max-width: 1024px) {
  .container {
    padding-inline: 28px;
  }

  /* pricing: karty pod sebe, ať Pro seznam dýchá */
  .pricing__cards {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-inline: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__media {
    max-width: 560px;
    margin-right: 0;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .security__layout,
  .team__layout,
  .contact__layout,
  .group__card {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .fnc__row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .fnc__row:nth-child(even) .fnc__media {
    order: 0;
  }

  .jnav__links,
  .jnav__login,
  .jnav__cfg {
    display: none;
  }

  /* logo vlevo, akce + burger zarovnané doprava */
  .jnav__brand {
    margin-right: auto;
  }

  .jnav__burger {
    display: flex;
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  .testi-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .jfooter__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 20px;
  }

  .features__grid,
  .security__badges {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 52px 1fr;
    column-gap: 16px;
    padding-bottom: 80px;
  }

  .steps__track {
    left: 26px;
    transform: none;
  }

  .step__badge {
    grid-column: 1;
    width: 52px;
    height: 52px;
  }

  .step__badge svg {
    width: 24px;
    height: 24px;
  }

  .step:nth-child(even) .step__content,
  .step:nth-child(odd) .step__content {
    grid-column: 2;
    text-align: left;
  }

  .step__content h3 {
    font-size: 19px;
  }

  .team__people {
    grid-template-columns: 1fr 1fr;
  }

  /* pricing: karty pod sebe na úzkých displejích */
  .pricing__cards {
    grid-template-columns: 1fr;
  }

  .pricing__list--cols {
    grid-template-columns: 1fr;
  }

  .field--row {
    grid-template-columns: 1fr;
  }

  .jfooter__top {
    grid-template-columns: 1fr;
  }

  .cookie {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie__actions .btn {
    flex: 1;
  }

  /* úzký mobil: CTA „Vyzkoušet zdarma" zůstává v liště vedle burgeru */
  .jnav__inner {
    gap: 10px;
    padding-inline: 18px;
  }

  .jnav__logo-img {
    height: 38px;
  }

  .jnav__actions .btn {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* Honeypot: display:none na inputu brání autofillu prohlížeče (off-screen ho nezastaví),
   ale HTTP boti pole stejně vyplní → past zůstává funkční. */
input[name="website"] {
  display: none !important
}
/* Touch: ruší hover transformy, aby "hover" stav nezůstal zaseknutý po tapu */
@media (hover: none) {
  .btn:hover,
  .hero__play:hover,
  .feature:hover,
  .feature:hover .feature__icon svg,
  .testi:hover,
  .testi--feature:hover,
  .fnc__media:hover img {
    transform: none;
  }
}
