/* ============================================================
   Lucidor landing — landing.css
   Consumes tokens.css only — no hardcoded colors/spacing/fonts.
   Sections follow sapiform-landing-system.md §1 order.
   ============================================================ */

/* ------------------------------------------------------------
   Self-hosted fonts (system §4: "self-contained, no CDN requests")
   Caveat, Cormorant Garamond, JetBrains Mono, Plus Jakarta Sans —
   latin + latin-ext subsets only (latin-ext required for Czech
   diacritics). Files live in /assets/fonts/. font-display: swap
   per subset so text renders immediately with a fallback.
   ------------------------------------------------------------ */
/* latin-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Wnz6HAc5bAfYB2Q7aDYYmg8.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Wnz6HAc5bAfYB2Q7ZjYY.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Wnz6HAc5bAfYB2Q7aDYYmg8.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Wnz6HAc5bAfYB2Q7ZjYY.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/co3smX5slCNuHLi8bLeY9MK7whWMhyjYrGFEsdtdc62E6zd5wDD-htM8Efs.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/co3smX5slCNuHLi8bLeY9MK7whWMhyjYrGFEsdtdc62E6zd5wDD-iNM8.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYp3tKgS4.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYqXtK.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYp3tKgS4.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYqXtK.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYp3tKgS4.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYqXtK.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPx7cwhsk.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxDcwg.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPx7cwhsk.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxDcwg.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko40yyygA.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yw.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko40yyygA.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yw.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko40yyygA.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yw.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko40yyygA.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yw.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-black);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; }

a { color: inherit; text-decoration: none; }

/* Numbers — tabular-nums system-wide (landing = same rigor as app) */
.num {
  font-family: var(--font-code);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-navy);
  color: var(--c-cream);
  padding: var(--sp-sm) var(--sp-md);
  z-index: 200;
}
.skip-link:focus { left: 0; }

.content { max-width: var(--content-width); margin: 0 auto; padding: 0 var(--sp-lg); }
.wide    { max-width: var(--wide-width); }

section { padding: 96px 0; }
@media (max-width: 767px) { section { padding: 64px 0; } }

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 48px;
  text-align: center;
}

/* ------------------------------------------------------------
   Background families (§6.2)
   ------------------------------------------------------------ */
.section--navy {
  background: var(--c-navy);
  color: var(--c-cream);
  position: relative;
  isolation: isolate;
}
.section--navy-tint {
  background: color-mix(in srgb, var(--c-navy) 92%, var(--c-cream) 8%);
  color: var(--c-cream);
}
.section--cream { background: var(--c-cream); color: var(--c-black); }

/* Section seams: flat cut + 1px accent line (default per system §6.3) */
.section--navy + .section--cream,
.section--cream + .section--navy,
.section--cream + .section--navy-tint,
.section--navy-tint + .section--cream {
  border-top: 1px solid var(--accent);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--sp-xl);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition: filter var(--duration-micro) ease, transform var(--duration-micro) ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--c-cream);
}
.btn--primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn--primary:active { transform: scale(0.98); }
.btn--ghost {
  border: 1px solid color-mix(in srgb, var(--c-cream) 40%, transparent);
  color: inherit;
}
.section--cream .btn--ghost { border-color: color-mix(in srgb, var(--c-navy) 40%, transparent); }
.btn--ghost:hover { background: color-mix(in srgb, var(--c-cream) 6%, transparent); }
.btn--full { width: 100%; }
.btn--lg { height: 56px; padding: 0 var(--sp-2xl); font-size: 17px; }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* ------------------------------------------------------------
   Nav
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 64px;
  transition: height var(--duration-micro) ease, background var(--duration-micro) ease;
}
html[data-scrolled] .nav {
  height: 56px;
  background: color-mix(in srgb, var(--c-navy) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  padding: 0 var(--sp-lg);
}
.nav__word { font-family: var(--font-display); font-size: 22px; color: var(--c-cream); }
.nav__links { display: flex; gap: var(--sp-lg); margin-left: var(--sp-xl); flex: 1; }
.nav__links a { color: var(--c-cream); font-size: 15px; font-weight: 500; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--accent-bright); transform: scaleX(0); transform-origin: left;
  transition: transform var(--duration-micro) ease;
}
@media (hover: hover) { .nav__links a:hover::after { transform: scaleX(1); } }
.nav__actions { display: flex; align-items: center; gap: var(--sp-lg); }
.nav__sapiform { font-family: var(--font-code); font-size: 12px; opacity: 0.7; color: var(--c-cream); }
.nav__toggle { display: none; }

@media (max-width: 767px) {
  .nav__links, .nav__actions .btn, .nav__sapiform { display: none; }
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: none; border: 0; margin-left: auto;
  }
  .nav__toggle span { display: block; width: 22px; height: 2px; background: var(--c-cream); transition: transform var(--duration-micro) ease; }
}

.nav-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: color-mix(in srgb, var(--c-navy) 96%, transparent);
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; justify-content: center; gap: var(--sp-xl);
  padding: var(--sp-2xl);
  opacity: 0; pointer-events: none;
  clip-path: circle(0% at 100% 0%);
  transition: clip-path 400ms var(--ease-out-expo), opacity 200ms ease;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; clip-path: circle(150% at 100% 0%); }
@media (prefers-reduced-motion: reduce) {
  .nav-overlay { transition: opacity 150ms ease; clip-path: none; }
}
.nav-overlay nav { display: flex; flex-direction: column; gap: var(--sp-lg); }
.nav-overlay nav a { font-family: var(--font-display); font-size: 32px; color: var(--c-cream); }
.nav-overlay__close { position: absolute; top: var(--sp-lg); right: var(--sp-lg); background: none; border: 0; color: var(--c-cream); font-size: 32px; width: 44px; height: 44px; }
.nav-overlay__footer a { font-family: var(--font-code); font-size: 12px; opacity: 0.7; color: var(--c-cream); }
body.nav-lock { overflow: hidden; }

/* ------------------------------------------------------------
   Reveal / stagger contract (reveal.js)
   ------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-reveal) var(--ease-out-expo),
              transform var(--duration-reveal) var(--ease-out-expo);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transform: none; transition: opacity var(--duration-reveal-reduced) ease; transition-delay: 0ms; }
}

/* ------------------------------------------------------------
   1. Hero
   ------------------------------------------------------------ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 96px;
  background: radial-gradient(120% 100% at 85% 0%, color-mix(in srgb, var(--c-navy) 96%, white 4%) 0%, var(--c-navy) 60%);
  overflow: hidden;
}
.hero__texture { position: absolute; inset: 0; z-index: 0; }
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 0.9fr 1.4fr; align-items: center; }
}
.hero__title { font-size: clamp(40px, 6vw, 64px); line-height: 1.08; color: var(--c-cream); }
.hero__sub { font-size: 18px; color: color-mix(in srgb, var(--c-cream) 85%, transparent); margin-top: var(--sp-lg); max-width: 480px; }
.hero__cta { display: flex; gap: var(--sp-md); margin-top: var(--sp-xl); flex-wrap: wrap; }
.hero__chart-wrap { width: 100%; }
.hero-chart { width: 100%; height: auto; overflow: visible; }
.hero-point { opacity: 0; transform: scale(0.6); transform-origin: var(--px) var(--py); transition: opacity 300ms ease, transform 300ms var(--ease-out-expo); }
.hero-point.is-visible { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .hero-point { opacity: 1; transform: scale(1); } }
.hero__scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); animation: cue-bounce 2s ease-in-out infinite; }
@keyframes cue-bounce { 0%, 100% { transform: translate(-50%, 0); opacity: 0.6; } 50% { transform: translate(-50%, 6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__scroll-cue { animation: none; } }

/* ------------------------------------------------------------
   2. Social proof
   ------------------------------------------------------------ */
.social-proof__stats { display: flex; justify-content: center; gap: var(--sp-2xl); flex-wrap: wrap; text-align: center; }
.stat__value { display: block; font-size: 40px; color: var(--accent); }
.stat__label { display: block; font-size: 14px; color: var(--c-muted); margin-top: var(--sp-xs); }

/* ------------------------------------------------------------
   3. Pain
   ------------------------------------------------------------ */
.pain__grid { display: grid; gap: var(--sp-lg); grid-template-columns: 1fr; }
@media (min-width: 768px) { .pain__grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-micro) ease, box-shadow var(--duration-micro) ease;
}
@media (hover: hover) { .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); } }
.card--pain h3 { font-size: 18px; margin: var(--sp-md) 0 var(--sp-sm); font-family: var(--font-body); font-weight: 600; }
.card--pain p { font-size: 15px; color: var(--c-muted); margin: 0; }

/* ------------------------------------------------------------
   4. Scrollytelling
   ------------------------------------------------------------ */
.scrollytelling { padding: 0; }
.scrollytelling__sticky { position: relative; height: 400vh; }
.scrollytelling__progress {
  position: sticky; top: 0; height: 2px; width: 100%;
  background: color-mix(in srgb, var(--c-cream) 15%, transparent);
  z-index: 5;
}
.scrollytelling__progress::after {
  content: ""; display: block; height: 100%; width: 100%;
  background: var(--accent-bright);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}
[data-scrollytelling] .scrollytelling__progress { position: sticky; }

@media (min-width: 1024px) {
  .scrollytelling__sticky { display: grid; grid-template-columns: 1fr; }
  .scrollytelling__steps {
    position: sticky; top: 96px; align-self: start;
    max-width: var(--content-width); margin: 0 auto; padding: 0 var(--sp-lg);
    height: 0; /* steps rendered as overlay text column via visual grid below */
  }
}

/* Desktop layout: steps left, sticky visual right */
@media (min-width: 1024px) {
  .scrollytelling__sticky {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--sp-2xl);
    padding: 0 var(--sp-lg);
    max-width: var(--wide-width);
    margin: 0 auto;
  }
  .scrollytelling__progress { grid-column: 1 / -1; }
  .scrollytelling__steps { position: sticky; top: 120px; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: var(--sp-xl); padding: 0; }
  .scrollytelling__visual { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
}

.step-text {
  border-left: 2px solid color-mix(in srgb, var(--c-cream) 20%, transparent);
  padding-left: var(--sp-lg);
  opacity: 0.4;
  transition: opacity var(--duration-phase) ease, border-color var(--duration-phase) ease;
  margin: var(--sp-lg) var(--sp-lg);
}
.step-text.is-active { opacity: 1; border-color: var(--accent-bright); }
.step-text__index { font-family: var(--font-code); font-size: 12px; opacity: 0.6; display: block; }
.step-text__title { font-family: var(--font-display); font-size: 24px; display: block; margin: var(--sp-xs) 0; }
.step-text__body { font-size: 15px; color: color-mix(in srgb, var(--c-cream) 75%, transparent); }

@media (max-width: 1023px) {
  .scrollytelling__sticky { height: auto; display: flex; flex-direction: column; gap: var(--sp-2xl); padding: var(--sp-xl) var(--sp-lg); }
  .scrollytelling__progress { display: none; }
  .step-text { opacity: 1; }
  .scrollytelling__visual { position: static; height: auto; }
  .dash-mock { position: static !important; }
  .scene { display: block !important; position: static !important; }
}

.dash-mock {
  width: 100%; max-width: 560px; margin: 0 auto;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  color: var(--c-black);
}
.dash-mock__bar { display: flex; align-items: center; gap: var(--sp-sm); padding: var(--sp-sm) var(--sp-md); background: var(--c-tint); }
.dash-mock__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.dash-mock__url { margin-left: var(--sp-md); font-size: 12px; color: var(--c-muted); }
.dash-mock__body { position: relative; height: 380px; padding: var(--sp-lg); }

.scene { position: absolute; inset: 0; padding: var(--sp-lg); opacity: 0; transition: opacity var(--duration-phase) ease; pointer-events: none; }
[data-scrollytelling].is-step-0 .scene--chaos,
[data-scrollytelling].is-step-1 .scene--connect,
[data-scrollytelling].is-step-2 .scene--consolidate,
[data-scrollytelling].is-step-3 .scene--story { opacity: 1; pointer-events: auto; }

/* fáze 1: chaos */
.scrap {
  position: absolute; left: var(--x); top: var(--y);
  transform: rotate(var(--rot));
  background: var(--c-tint); border: 1px solid var(--c-border);
  padding: var(--sp-xs) var(--sp-sm); border-radius: var(--radius-sm);
  font-size: 13px; white-space: nowrap;
}
.scrap--conflict { color: var(--data-negative); border-color: var(--data-negative); animation: conflict-blink 2.4s ease-in-out infinite; }
@keyframes conflict-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .scrap--conflict { animation: none; } }

/* fáze 2: napojení */
.source-list { position: absolute; left: 0; top: 20px; list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--c-muted); display: flex; flex-direction: column; gap: 40px; }
.connect-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.connect-lines path { stroke-dasharray: 200; stroke-dashoffset: 200; }
[data-scrollytelling].is-step-1 .connect-lines path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--duration-draw) var(--ease-out-expo); }
.rows-preview { position: absolute; right: var(--sp-lg); top: 20px; display: flex; flex-direction: column; gap: var(--sp-sm); }
.rows-preview .row { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: var(--sp-xs) var(--sp-md); font-size: 13px; display: flex; justify-content: space-between; gap: var(--sp-md); min-width: 160px; }

/* fáze 3: konsolidace */
.consolidated-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.consolidated-table th, .consolidated-table td { padding: var(--sp-xs) var(--sp-sm); text-align: right; }
.consolidated-table th:first-child, .consolidated-table td:first-child { text-align: left; }
.consolidated-table thead th { color: var(--c-muted); font-weight: 500; border-bottom: 1px solid var(--c-border); }
.consolidated-table tbody tr { border-bottom: 1px solid color-mix(in srgb, var(--c-border) 60%, transparent); }
.consolidated-table .is-subtotal { font-weight: 700; border-top: 2px solid var(--accent); }
.consolidated-table--mini { max-width: 260px; }

/* fáze 4: příběh */
.scene--story { display: flex; flex-direction: column; gap: var(--sp-md); }
.story-chart { width: 100%; height: 100px; }
.driver-card { display: flex; align-items: center; gap: var(--sp-sm); background: var(--c-tint); border-radius: var(--radius-sm); padding: var(--sp-sm) var(--sp-md); font-size: 13px; }
.driver-card__delta { font-weight: 700; }
.ai-bubble {
  display: flex; align-items: center; gap: var(--sp-sm);
  background: color-mix(in srgb, var(--data-ai) 10%, var(--c-white));
  border: 1px solid color-mix(in srgb, var(--data-ai) 30%, transparent);
  border-radius: var(--radius-md);
  padding: var(--sp-sm) var(--sp-md);
  font-size: 13px;
}
.ai-bubble__badge {
  font-family: var(--font-code); font-size: 10px; font-weight: 700;
  color: var(--c-white); background: var(--data-ai);
  border-radius: var(--radius-sm); padding: 2px 6px;
}

/* data-fade prvky MIMO mini-chart SVG: chart.js zvedá jen [data-fade] uvnitř
   [data-mini-chart], tyhle jsou plain prvky → řídíme fade čistě CSS.
   scene--story: fade při fázi 4 (is-step-3); ai-writer: při vstupu feature-blocku. */
.scene--story [data-fade],
.ai-writer__text [data-fade] { opacity: 0; transition: opacity 450ms ease; }
[data-scrollytelling].is-step-3 .scene--story [data-fade] { opacity: 1; }
.scene--story [data-fade]:nth-of-type(2) { transition-delay: 140ms; }
.feature-block.is-visible .ai-writer__text [data-fade] { opacity: 1; }
.ai-writer__text [data-fade]:nth-child(2) { transition-delay: 90ms; }
.ai-writer__text [data-fade]:nth-child(3) { transition-delay: 180ms; }
.ai-writer__text [data-fade]:nth-child(4) { transition-delay: 270ms; }
.ai-writer__text [data-fade]:nth-child(5) { transition-delay: 360ms; }
@media (prefers-reduced-motion: reduce) {
  .scene--story [data-fade],
  .ai-writer__text [data-fade] { transition: none; }
}
@media (max-width: 1023px) {
  .scene--story [data-fade] { opacity: 1; }
}

/* ------------------------------------------------------------
   5. Feature blocks
   ------------------------------------------------------------ */
.feature-block {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-xl);
  align-items: center;
  padding: var(--sp-2xl) 0;
}
.feature-block + .feature-block { border-top: 1px solid var(--c-border); }
@media (min-width: 1024px) {
  .feature-block { grid-template-columns: 1fr 1fr; gap: var(--sp-2xl); }
  .feature-block--reverse { direction: rtl; }
  .feature-block--reverse > * { direction: ltr; }
}
.feature-block__eyebrow { font-family: var(--font-code); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.feature-block__text h3 { font-size: 24px; margin: var(--sp-sm) 0; }
.feature-block__text p { color: var(--c-muted); font-size: 16px; margin: 0; }
.feature-block__visual svg { width: 100%; height: auto; }
.feature-block__visual [data-fade] { transition: opacity 500ms ease; }

.ai-writer { background: var(--c-white); border-radius: var(--radius-lg); padding: var(--sp-xl); box-shadow: var(--shadow-sm); }
.ai-writer__badge { font-family: var(--font-code); font-size: 10px; font-weight: 700; color: var(--c-white); background: var(--data-ai); border-radius: var(--radius-sm); padding: 2px 6px; }
.ai-writer__text { margin-top: var(--sp-md); font-size: 17px; line-height: 1.6; }
.ai-writer__text span { transition: opacity 400ms ease; }

/* ------------------------------------------------------------
   6. Trust
   ------------------------------------------------------------ */
.trust__grid { display: grid; gap: var(--sp-xl); grid-template-columns: 1fr; }
@media (min-width: 768px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }
.trust__item {
  background: color-mix(in srgb, var(--c-cream) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-cream) 12%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
}
.trust__item h3 { font-size: 17px; font-family: var(--font-body); font-weight: 600; margin: var(--sp-md) 0 var(--sp-xs); }
.trust__item p { font-size: 14px; color: color-mix(in srgb, var(--c-cream) 65%, transparent); margin: 0; }

/* ------------------------------------------------------------
   7. Pricing
   ------------------------------------------------------------ */
.pricing__grid { display: grid; gap: var(--sp-lg); grid-template-columns: 1fr; }
@media (min-width: 768px) { .pricing__grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { background: var(--c-white); border-radius: var(--radius-lg); padding: var(--sp-xl); box-shadow: var(--shadow-sm); position: relative; }
.price-card--featured { border: 2px solid var(--accent); transform: translateY(-8px); }
.price-card__badge { position: absolute; top: -14px; left: var(--sp-xl); background: var(--accent); color: var(--c-cream); font-size: 12px; padding: 2px 10px; border-radius: var(--radius-sm); }
.price-card__price { font-size: 28px; margin: var(--sp-md) 0; }
.price-card ul { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--c-muted); display: flex; flex-direction: column; gap: var(--sp-xs); }

/* ------------------------------------------------------------
   8. Final CTA
   ------------------------------------------------------------ */
.final-cta { text-align: center; border-top: 1px solid var(--c-gold); position: relative; }
.final-cta::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--accent); }
.final-cta__title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); margin-bottom: var(--sp-xl); }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer { padding: 64px 0; }
.footer__inner { display: grid; gap: var(--sp-2xl); grid-template-columns: 1fr; }
@media (min-width: 1024px) { .footer__inner { grid-template-columns: 1fr 1fr 1fr; } }
.footer__word { font-family: var(--font-display); font-size: 24px; margin: 0; }
.footer__tag { font-size: 14px; color: color-mix(in srgb, var(--c-cream) 65%, transparent); margin-top: var(--sp-xs); }
.footer__links { display: flex; flex-direction: column; gap: var(--sp-sm); }
.footer__sapiform-label { font-family: var(--font-code); font-size: 12px; opacity: 0.7; margin-bottom: var(--sp-sm); }
.footer__sapiform-logos { display: flex; gap: var(--sp-md); flex-wrap: wrap; font-size: 13px; }
