/* ==========================================================================
   OMNICORE VISION: design prototype v4 (Vercel / Linear direction), base = v3 commit 0dde41c
   Dark, flat and quiet: near-black ground, hairline borders, generous whitespace, one restrained periwinkle accent
   (links, focus, data, live dots), state colours only for real states, white primary CTA once per view.
   Scroll reveals, a faint parallax grid and the cursor glow live in fx.js; this file styles them (section "V4 LAYER"
   at the end). All of them switch off for prefers-reduced-motion; the glow also for touch screens.
   ========================================================================== */

/* Self-hosted fonts (SIL OFL 1.1, licences in assets/fonts/): no request to Google Fonts, so a visitor's IP address
   never leaves our server just to load the page. Variable fonts, latin + latin-ext (Czech diacritics).
   v3 (2026-10-13): Inter Variable (rsms/inter 4.1, weight and optical-size axes, subset to latin + latin-ext with
   fontTools) for everything; Urbanist stays on disk for the PWA until it moves too. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-variable-latin.woff') format('woff');
}
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/urbanist-latin-ext.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;
}
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/urbanist-latin.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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin-ext.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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin.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;
}

:root {
  /* Palette v3 (Láďa, 2026-10-13; docs/BRAND_IDENTITY.md 2.3). The token names are kept from v1/v2 so the 2 000 lines
     below stay readable in git history: --bg-navy is the page ground, --bg-surface the card surface, --accent-pink the
     primary CTA (white), --accent-cyan the one accent (the logo's green). The *-rgb triplets feed rgba() tints. */
  --bg-navy: #0A0A0B;
  --bg-surface: #111113;
  --navy-rgb: 10, 10, 11;
  --surface-rgb: 17, 17, 19;

  /* Panels: a touch lighter than the page, hairline border, deep soft shadow, a faint top highlight. */
  --glass-bg: #111113;
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hover: rgba(255, 255, 255, 0.16);
  --glass-blur: none;
  --glass-shadow: none;

  /* Accents: the primary CTA is white with black text, once per view; periwinkle is the one accent for links, data,
     focus and live dots (5.0:1 on the page ground). No gradients on buttons or headings. */
  --accent-pink: #FFFFFF;
  --pink-rgb: 255, 255, 255;
  --on-cta: #0A0A0B;
  --accent-cyan: #6F7CEA;
  --cyan-rgb: 111, 124, 234;

  /* States only */
  --accent-emerald: #3DD68C;
  --accent-amber: #F5C518;
  --accent-rose: #F0655B;
  --emerald-rgb: 61, 214, 140;
  --amber-rgb: 245, 197, 24;
  --rose-rgb: 240, 101, 91;

  /* Typography v3 (Láďa, 2026-10-13, reference Linear): Inter for the whole web, the optical-size axis gives headings
     the Display cut on its own; JetBrains Mono only for labels and data. */
  --font-display: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Text Colors: contrast on page / surface 17.0 / 15.6, 8.2 / 7.5, 5.0 / 4.6 (WCAG AA for body text) */
  --text-primary: #EDEDED;
  --text-secondary: #A1A1AA;
  --text-muted: #8A8A93;
  --muted-rgb: 138, 138, 147;

  /* Dimensions & Spacing */
  --container-max: 1120px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Anchors (#analyzer, #radar, #cenik …) land below the sticky header (about 65px), not under it. */
  scroll-padding-top: 84px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-navy);
  color: var(--text-primary);
  font-family: var(--font-body);
  /* 1rem, not 16px: follows the reader's browser / Android font-size setting like every other rem size here. */
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* AMBIENT GLOWS */
/* The orbs reach past the right edge. body { overflow-x: hidden } is propagated to the viewport, and phones still
   zoom out to the orbs' full width (the page and the fixed audit modal then become ~720px wide), so they are
   clipped here instead. overflow on html/body is avoided: it would break the sticky header. */
.ambient-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  /* v3 (2026-10-13): no coloured orbs; the layer stays so the markup and smoke:ui do not change. */
  opacity: 0;
}

.glow-top {
  top: -150px;
  left: 20%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(var(--pink-rgb), 0.14) 0%, rgba(var(--pink-rgb), 0.05) 60%, transparent 80%);
}

.glow-middle {
  top: 1400px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.1) 0%, rgba(var(--cyan-rgb), 0.04) 60%, transparent 80%);
}

.glow-bottom {
  bottom: 200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--pink-rgb), 0.1) 0%, rgba(var(--pink-rgb), 0.04) 60%, transparent 80%);
}

/* LAYOUT CONTAINER */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

/* TYPOGRAPHY HELPERS */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}

/* v3: large headings in Medium 500 with tight tracking, the Linear cut; the Light 300 of v1/v2 is gone. */
h1, h2 {
  font-weight: 500;
  letter-spacing: -0.028em;
}

/* Emphasis inside a heading by weight, not colour: the accent stays reserved for links and data. */
.text-strong {
  font-weight: 650;
}

.text-cyan { color: var(--accent-cyan) !important; }
.text-amber { color: var(--accent-amber) !important; }
.mono { font-family: var(--font-mono); }
.mono-dim { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }

/* GLASS PANEL UTILITY */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--glass-border-hover);
}

.glass-panel-inner {
  background: rgba(var(--navy-rgb), 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 24px;
}

/* BADGES & PILLS */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(var(--cyan-rgb), 0.08);
  border: 1px solid rgba(var(--cyan-rgb), 0.25);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.badge-pill.danger-badge {
  background: rgba(var(--rose-rgb), 0.08);
  border-color: rgba(var(--rose-rgb), 0.25);
  color: var(--accent-rose);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseCyan 2s infinite ease-in-out;
}

@keyframes pulseCyan {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

/* Keyboard focus: the brand's cyan ring (.btn sets outline: none for the mouse). */
.btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: var(--accent-pink);
  color: var(--on-cta);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  filter: brightness(0.92);
}

.btn-glow {
  position: relative;
}

/* v3: no blurred halo behind the CTA; the class stays in the markup. */
.btn-glow::after {
  content: none;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(var(--cyan-rgb), 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-block {
  width: 100%;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header-nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(var(--navy-rgb), 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Transparent neon radar symbol (navbar + footer) */
.nav-logo img.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  /* v3: the mark PNG (docs/brand/make-mark.py) carries its own light; no filter. */
  filter: none;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-logo-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(var(--cyan-rgb), 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(var(--cyan-rgb), 0.3);
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language switch (CS ⇄ EN): links to the same page in the other language; 44×44px tap target on every width. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-cyan);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.lang-switch:hover {
  color: var(--text-primary);
}

.lang-switch:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: -2px;
}

/* 44×44px tap target (was 34×28). Shown below 960px; open, the three lines turn into an X. */
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-menu-btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: -2px;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 80px 0 90px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
}

/* Grid items may shrink below their content width (default min-width: auto lets one wide line widen the page). */
.hero-grid > *,
.module-feature-row > * {
  min-width: 0;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-metrics-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metric-item {
  display: flex;
  flex-direction: column;
}

.hero-metric-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--text-primary);
  line-height: 1.1;
}

.hero-metric-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-metric-divider {
  width: 1px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   TERMINAL MOCKUP / DASHBOARD
   ========================================================================== */
.terminal-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(var(--navy-rgb), 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}






/* "Ilustrační ukázka" / "Illustrative example": every sample card says plainly that its data are invented (Láďa 2026-10-20). */
.sample-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.terminal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}



.terminal-tabs {
  display: flex;
  background: rgba(var(--surface-rgb), 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}

.terminal-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-tab.active {
  color: var(--accent-cyan);
  background: rgba(var(--cyan-rgb), 0.05);
  border-bottom-color: var(--accent-cyan);
}

/* Keyboard: one tab stop for the tab row (arrow keys move inside it), one for the shown panel (ARIA tabs pattern). */
.terminal-tab:focus-visible,
.terminal-body:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: -2px;
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: none;
  min-height: 380px;
}

.terminal-body.active {
  display: block;
}







.alert-box-terminal {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 0.82rem;
}

.alert-box-terminal.warning {
  background: rgba(var(--amber-rgb), 0.08);
  border: 1px solid rgba(var(--amber-rgb), 0.3);
  color: var(--accent-amber);
}

.alert-box-terminal.danger {
  background: rgba(var(--rose-rgb), 0.08);
  border: 1px solid rgba(var(--rose-rgb), 0.3);
  color: var(--accent-rose);
}

.alert-terminal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 700;
}

.alert-terminal-desc {
  font-family: var(--font-body);
  color: var(--text-secondary);
  line-height: 1.5;
}

.pulse-warning {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
}

.pulse-danger {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-rose);
  box-shadow: 0 0 8px var(--accent-rose);
}

.code-output-card {
  background: rgba(var(--navy-rgb), 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 14px;
}

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.badge-priority {
  padding: 2px 8px;
  background: rgba(var(--rose-rgb), 0.1);
  color: var(--accent-rose);
  border: 1px solid rgba(var(--rose-rgb), 0.35);
  border-radius: 4px;
  font-size: 0.7rem;
}

.badge-tag {
  padding: 2px 8px;
  background: rgba(var(--cyan-rgb), 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(var(--cyan-rgb), 0.25);
  border-radius: 4px;
  font-size: 0.7rem;
}

.output-body {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.55;
}

.output-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
}

.output-metric { color: var(--text-muted); }
.output-link { color: var(--accent-cyan); }

.benchmark-table-wrapper {
  overflow-x: auto;
  margin-bottom: 12px;
}

.benchmark-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.benchmark-mini-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.benchmark-mini-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.highlight-row {
  background: rgba(var(--cyan-rgb), 0.06);
  color: var(--text-primary);
}

.badge-comp {
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  font-size: 0.75rem;
}

.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(var(--navy-rgb), 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* A real <button> (keyboard, screen readers) that keeps the look of the text link it replaced. */
.terminal-run-btn {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  cursor: pointer;
  transition: 0.2s;
}

.terminal-run-btn:hover {
  text-decoration: underline;
}

.terminal-run-btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.trust-strip {
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(var(--navy-rgb), 0.5);
}

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

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.trust-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.trust-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   PROBLEM SECTION
   ========================================================================== */
.problem-section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-header.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.problem-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.problem-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem-card-icon.red { background: rgba(var(--rose-rgb), 0.12); color: var(--accent-rose); }
.problem-card-icon.amber { background: rgba(var(--amber-rgb), 0.12); color: var(--accent-amber); }
.problem-card-icon.cyan { background: rgba(var(--cyan-rgb), 0.12); color: var(--accent-cyan); }

.problem-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.problem-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.problem-consequence {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--accent-rose);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.problem-consequence strong {
  color: var(--text-primary);
}

/* ==========================================================================
   MODULES SECTION (3 PILLARS)
   ========================================================================== */
.modules-section {
  padding: 100px 0;
}

.module-feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 90px;
}

.module-feature-row.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.module-feature-row.reverse .module-feature-text {
  order: 2;
}

.module-feature-row.reverse .module-feature-visual {
  order: 1;
}

.module-badge-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.module-feature-title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.module-feature-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 18px;
  line-height: 1.4;
}

.module-feature-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.65;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.feature-bullets li svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-bullets li strong {
  color: var(--text-primary);
}

.preview-panel {
  padding: 24px;
  position: relative;
}

.preview-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

/* Radar Cards Inside Feature */
.radar-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(var(--navy-rgb), 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}

.radar-card-item.active {
  border-color: rgba(var(--cyan-rgb), 0.35);
  background: rgba(var(--cyan-rgb), 0.04);
}

.radar-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.radar-status-dot.pulse {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseCyan 2s infinite ease-in-out;
}

.radar-card-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.radar-buyer {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.radar-doc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.radar-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.radar-badge-exp {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 8px;
  background: rgba(var(--amber-rgb), 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(var(--amber-rgb), 0.25);
  border-radius: 4px;
  white-space: nowrap;
}

/* Risk Score Box */
.risk-score-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: rgba(var(--navy-rgb), 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.risk-score-dial {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 4.375rem;
  height: 4.375rem;
  border-radius: 50%;
  border: 3px solid var(--accent-cyan);
}

.risk-score-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.risk-score-sub {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-align: center;
}

.risk-summary strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.risk-summary p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.risk-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.risk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: rgba(var(--navy-rgb), 0.6);
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.risk-item.warning-border { border-left: 3px solid var(--accent-amber); }
.risk-item.ok-border { border-left: 3px solid var(--accent-emerald); }

.risk-pill-warn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(var(--amber-rgb), 0.15);
  color: var(--accent-amber);
  border-radius: 4px;
}

.risk-pill-ok {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(var(--emerald-rgb), 0.15);
  color: var(--accent-emerald);
  border-radius: 4px;
}

.risk-item-text { color: var(--text-secondary); }

/* Pricing Matrix Chart */
.pricing-matrix-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.matrix-legend {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.legend-dot.comp { background: var(--text-muted); }
.legend-dot.target { background: var(--accent-cyan); }

.matrix-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.matrix-bar-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Grows with its label (min-height in rem, the fill stretches): a fixed 28px cut off the label at larger font sizes. */
.bar-track {
  display: flex;
  min-height: 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.bar-fill.comp {
  background: rgba(var(--muted-rgb), 0.35);
  color: var(--text-primary);
}

.bar-fill.target {
  background: var(--accent-cyan);
  color: var(--on-cta);
  font-weight: 700;
}

.matrix-summary-pill {
  padding: 10px 14px;
  background: rgba(var(--cyan-rgb), 0.08);
  border: 1px solid rgba(var(--cyan-rgb), 0.2);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--accent-cyan);
  text-align: center;
}

/* ==========================================================================
   ROI CALCULATOR SECTION
   ========================================================================== */
.roi-section {
  padding: 80px 0;
}

.roi-card {
  padding: 56px 48px;
}

.roi-header {
  margin-bottom: 48px;
}

.roi-calculator-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.slider-group {
  margin-bottom: 28px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.slider-label-row label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.slider-val-display {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: 0.2s;
}

/* The slider has no outline of its own (outline: none above): keyboard focus must still be visible. */
.custom-slider:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 6px;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-cyan);
  transition: transform 0.1s;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.roi-results-col .roi-result-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-item {
  display: flex;
  flex-direction: column;
}

.result-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.result-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
}

.result-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.result-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.mt-4 { margin-top: 16px; }

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-section {
  padding: 100px 0;
}

/* "Jak platíte" / "How payment works" under the price cards: the payment rules of the terms in four lines
   (values from docs/offer.json, checked by npm run smoke:ui). */
.pricing-terms {
  max-width: 820px;
  margin: 32px auto 0;
  padding: 24px 28px;
}

.pricing-terms-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.pricing-terms-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-terms-list strong {
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .pricing-terms { padding: 20px 18px; }
}

/* Three packages side by side (Základ / Standard / Komplex), one column up to 1024px. */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.popular-tier {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(var(--surface-rgb), 0.85);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
}

.pricing-card-header {
  margin-bottom: 28px;
  /* Query container for .tier-price below. */
  container-type: inline-size;
}

.tier-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.tier-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  min-height: 48px;
}

.tier-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
  margin-bottom: 4px;
}

/* Sized to the card: "20 000–70 000 Kč" is 8.31em wide and "/ zakázka" plus the gap about 4.4rem, so price and unit
   share one line in every card from 320px phones to desktop (at 2.2rem the range broke into "20 000–" / "70 000 Kč"
   with the unit floating beside it). If the reader's font is larger still, the range breaks only after the dash
   (non-breaking spaces inside each amount) and the unit wraps under it. */
.tier-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-size: clamp(1.35rem, (100cqi - 4.4rem) / 8.4, 2.2rem);
  line-height: 1.15;
  font-weight: 600;
  color: var(--text-primary);
}

.tier-period {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tier-vat,
.tier-vat-total {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: block;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.check-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 1px;
}

/* The note under the price cards sat directly on their bottom edge. */
.pricing-grid + .section-subtitle {
  margin-top: 40px;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-section {
  padding: 90px 0;
}

.faq-container {
  max-width: 860px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent-cyan);
}

.faq-arrow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

/* Opens to the answer's real height (grid row 0fr -> 1fr): the old max-height: 400px cut off long answers on narrow
   phones with a larger font setting. A collapsed answer is hidden from the keyboard and screen readers too (its link
   was a tab stop); visibility switches only after the 0.35s collapse, so the text stays visible while it closes. */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.35s;
  padding: 0 24px;
}

.faq-answer > * {
  min-height: 0;
  overflow: hidden;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
  padding-bottom: 22px;
  visibility: visible;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ==========================================================================
   FINAL CTA STRIP
   ========================================================================== */
.final-cta-section {
  padding: 80px 0 100px;
}

.final-cta-card {
  padding: 64px 48px;
  background: linear-gradient(135deg, rgba(var(--navy-rgb), 0.8) 0%, rgba(var(--surface-rgb), 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.final-cta-title {
  font-size: 2.5rem;
  margin-bottom: 18px;
}

.final-cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
  line-height: 1.65;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.final-cta-guarantee {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(var(--navy-rgb), 0.95);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 14px;
  margin-bottom: 20px;
  max-width: 360px;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col h4 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.footer-links-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links-col a:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(var(--navy-rgb), 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* A form taller than the screen (small phones, open keyboard, short laptop windows) scrolls inside the backdrop. */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  /* Closed means gone for the keyboard and for screen readers too: its fields stay out of the tab order. */
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

/* The dialog takes focus programmatically when it opens (app.js); it is not a control, so no ring. */
.modal-dialog:focus { outline: none; }

.modal-dialog {
  max-width: 540px;
  width: 100%;
  min-width: 0;
  /* Auto margins centre the dialog while it fits and fall back to the top edge when it does not, so the top of a
     tall dialog is never cut off above the scroll area (align-items: center alone would do that). */
  margin: auto;
  /* Tighter than the original 36px (also the header and field gaps below): with the real web fonts, the note-field
     hint and the privacy note, the whole form must still fit a 1280×800 window without scrolling. */
  padding: 20px 32px;
  position: relative;
  background: rgba(var(--surface-rgb), 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0);
}

/* A quiet rail-coloured beam travels around the rounded form edge, never over its controls.
   Unsupported masking keeps the existing plain border; hidden dialogs do no animation work. */
@property --form-beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@supports (mask-composite: exclude) {
  .modal-dialog::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 2px;
    pointer-events: none;
    background: conic-gradient(from var(--form-beam-angle), transparent 0deg 290deg,
      rgba(var(--cyan-rgb), 0.08) 310deg, var(--accent-cyan) 346deg, #C9CEFA 354deg, transparent 360deg);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.7;
  }
  .modal-backdrop.active .modal-dialog::before { animation: form-edge-beam 18s linear infinite; }
}
@keyframes form-edge-beam { to { --form-beam-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop.active .modal-dialog::before { animation: none; opacity: 0.35; }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-header {
  margin-bottom: 16px;
}

.modal-header h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.modal-header p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.form-group {
  margin-bottom: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: rgba(var(--navy-rgb), 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

/* Brand muted instead of the browser's grey placeholder (~4.0:1 on the field). */
.form-control::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.2);
}

.form-privacy-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: left;
  line-height: 1.5;
  margin-top: 8px;
}
.form-privacy-note p { margin: 0 0 4px; }
.form-privacy-note .form-privacy-objection {
  padding-top: 6px;
  border-top: 1px solid var(--glass-border);
  margin-bottom: 0;
}

/* Inline error banner of the audit form (filled by app.js) */
.form-error {
  margin: 4px 0 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(var(--rose-rgb), 0.12);
  border: 1px solid rgba(var(--rose-rgb), 0.45);
  color: var(--text-primary);
  font-size: 0.85rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.form-error[hidden] {
  display: none;
}

.modal-success {
  text-align: center;
  padding: 24px 12px;
}

.success-icon-wrap {
  margin-bottom: 16px;
  color: var(--accent-cyan);
}

.modal-success h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.modal-success p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ==========================================================================
   LEGAL PAGE (ochrana-osobnich-udaju.html) + form privacy link
   ========================================================================== */
.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.form-privacy-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-privacy-note a:hover {
  color: var(--accent-cyan);
}

.faq-answer a {
  color: var(--accent-cyan);
  text-underline-offset: 2px;
}

.footer-operator {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
  max-width: 420px;
}

.btn-back {
  white-space: nowrap;
}

.legal-main {
  padding: 56px 0 88px;
}

.legal-container {
  max-width: 880px;
}

.legal-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.legal-lead {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 14px;
}

.legal-card {
  padding: 28px;
  margin-top: 32px;
}

.legal-card h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.4em;
  columns: 2;
  column-gap: 32px;
}

.legal-toc li {
  margin-bottom: 6px;
  break-inside: avoid;
}

.legal-doc h2 {
  font-size: 1.35rem;
  margin: 48px 0 14px;
  scroll-margin-top: 90px;
}

.legal-doc h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 24px 0 8px;
}

.legal-doc p,
.legal-doc li,
.legal-toc li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-doc p {
  margin-bottom: 12px;
}

.legal-doc ul {
  padding-left: 1.3em;
  margin: 6px 0 14px;
}

.legal-doc li {
  margin-bottom: 4px;
}

.legal-doc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-doc a,
.legal-toc a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 18px;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  line-height: 1.55;
}

.legal-table th {
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

/* Art. 21(4) GDPR: the right to object has to stand apart from the other information. */
.legal-callout {
  margin: 16px 0 20px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--cyan-rgb), 0.35);
  background: rgba(var(--cyan-rgb), 0.06);
}

.legal-callout h3 {
  margin-top: 0;
  color: var(--accent-cyan);
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .legal-main { padding: 28px 0 56px; }
  .legal-hero h1 { font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); }
  .legal-lead { font-size: 1rem; line-height: 1.6; }
  .legal-card { padding: 20px 16px; margin-top: 24px; }
  .legal-toc ol { columns: 1; }
  .legal-doc h2 { font-size: 1.2rem; margin-top: 36px; }
  .legal-doc p, .legal-doc li, .legal-toc li { font-size: 1rem; line-height: 1.6; }

  /* Tables become one card per row: nothing wider than the screen. */
  .legal-table thead { display: none; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .legal-table td { border: none; padding: 4px 0; }
  .legal-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.6rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-content { max-width: 650px; }
  .module-feature-row, .module-feature-row.reverse { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .module-feature-row.reverse .module-feature-text { order: 1; }
  .module-feature-row.reverse .module-feature-visual { order: 2; }
  .roi-calculator-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); max-width: 500px; margin: 0 auto; }
  .pricing-card.popular-tier { transform: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Hamburger menu up to 960px: the full link row does not fit next to the logo and CTA below ~850px (tablets in
   portrait), and a header wider than the screen widens the whole page and shifts the audit modal off-centre. */
@media (max-width: 960px) {
  .header-nav { padding: 10px 0; }

  /* The menu hangs from the bottom edge of the sticky header (its containing block), whatever the header's height. */
  .header-nav .nav-container { position: static; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 80vh;
    max-height: 80dvh;
    overflow-y: auto;
    /* Solid: a 0.98 navy with its own backdrop blur inside the blurred header let the hero text show through. */
    background: var(--bg-navy);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
  }

  /* Full-width rows of 48px: easy to hit with a thumb. */
  .nav-links .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 8px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links .nav-link:last-child { border-bottom: none; }

  .nav-links.open { display: flex; }
  .mobile-menu-btn { display: flex; }
}

@media (max-width: 768px) {
  .btn-nav-cta { display: none; }

  /* Phone typography: the old 2.1rem hero and 1.9rem section titles read like a film poster on a 412px phone
     (Láďa, 2026-10-08). The hero sizes itself to its own column (cqi): width / 16.4 keeps the slogan (58 characters
     since 2026-10-09) at two lines at any phone width, which smoke:ui measures at 320, 360, 390, 412 and 768 px with
     the real font; the rem floor and cap follow the reader's font-size setting. Browsers without container units take
     the 1.4rem line. A new headline needs a new divisor if that check fails. */
  body { line-height: 1.55; }
  .hero-section { padding: 40px 0 64px; }
  .hero-content { container-type: inline-size; }
  .hero-title { font-size: 1.4rem; font-size: clamp(1.25rem, 100cqi / 16.4, 2.2rem); line-height: 1.15; margin-bottom: 16px; }
  .hero-subtitle { font-size: 1rem; line-height: 1.55; margin-bottom: 24px; }
  .hero-actions { margin-bottom: 28px; }
  .section-title { font-size: clamp(1.2rem, 0.95rem + 1.2vw, 1.9rem); line-height: 1.25; }
  .section-subtitle { font-size: 1rem; line-height: 1.55; }
  .section-header { margin-bottom: 32px; }
  .module-feature-title { font-size: clamp(1.15rem, 0.95rem + 1vw, 2rem); }
  .module-feature-subtitle { font-size: 1rem; margin-bottom: 12px; }
  .module-feature-text p { font-size: 1rem; line-height: 1.55; margin-bottom: 18px; }
  .problem-card h3 { font-size: 1.125rem; }
  .final-cta-title { font-size: clamp(1.2rem, 0.95rem + 1.2vw, 2.5rem); }
  .final-cta-subtitle { font-size: 1rem; margin-bottom: 24px; }
  .trust-strip { padding: 24px 0; }
  .trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .problem-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .final-cta-guarantee { flex-direction: column; gap: 8px; }

  /* Compact sections and cards: less padding and fewer empty gaps, text inside cards 14-15px. */
  .problem-section, .modules-section, .pricing-section, .faq-section { padding: 56px 0; }
  .roi-section { padding: 40px 0; }
  .final-cta-section { padding: 40px 0 64px; }
  .problem-grid { gap: 16px; }
  .problem-card { padding: 20px 18px; }
  .problem-card-icon { width: 40px; height: 40px; margin-bottom: 14px; }
  .problem-card h3 { margin-bottom: 8px; }
  .problem-card p { font-size: 0.9375rem; line-height: 1.55; margin-bottom: 14px; }
  .module-feature-row, .module-feature-row.reverse { gap: 24px; margin-bottom: 56px; }
  .preview-panel { padding: 16px; }
  .feature-bullets { gap: 10px; }
  .feature-bullets li { font-size: 0.9375rem; line-height: 1.5; }
  .roi-card { padding: 24px 16px; }
  .roi-header { margin-bottom: 28px; }
  .glass-panel-inner { padding: 16px; }
  .slider-group { margin-bottom: 20px; }
  .pricing-grid { gap: 16px; }
  .pricing-card { padding: 22px 18px; }
  .pricing-card-header { margin-bottom: 16px; }
  .tier-name { font-size: 0.8rem; margin-bottom: 6px; }
  .tier-desc { font-size: 0.875rem; min-height: 0; margin-bottom: 12px; }
  .tier-vat, .tier-vat-total { font-size: 0.875rem; }
  .tier-features { gap: 8px; margin-bottom: 20px; }
  .tier-features li { font-size: 0.875rem; }
  .pricing-grid + .section-subtitle { margin-top: 24px; }
  .faq-accordion { gap: 10px; }
  .faq-question { padding: 16px; font-size: 1rem; }
  .faq-answer { padding: 0 16px; }
  .faq-answer p { font-size: 0.9375rem; line-height: 1.55; }
  .final-cta-card { padding: 28px 18px; }
}

@media (max-width: 640px) {
  /* Audit modal: full-width card from the top, scrolls vertically, single-column form. */
  .modal-backdrop { padding: 12px; align-items: flex-start; }
  .modal-dialog { padding: 24px 16px; margin: 20px auto; max-width: 100%; width: 100%; box-sizing: border-box; }
  .modal-header h3 { font-size: 1.25rem; padding-right: 32px; }
  .modal-close-btn { top: 14px; right: 14px; padding: 8px; font-size: 1.4rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group { min-width: 0; width: 100%; }
  .form-control { max-width: 100%; min-width: 0; box-sizing: border-box; font-size: 16px; }
  select.form-control { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
  .btn-block { width: 100%; box-sizing: border-box; }

  /* Hero terminal and radar cards: wrap instead of widening the page on narrow phones. */
  .terminal-tabs { flex-wrap: wrap; }
  .radar-card-item { flex-wrap: wrap; }
}

/* Phones below 480px: the real web fonts are wider than the fallback fonts, and logo + INTELLIGENCE badge +
   hamburger (or the back button on the policy page) overflowed 320-390px screens by up to 80px. */
@media (max-width: 480px) {
  .nav-logo-badge { display: none; }
  .hide-narrow { display: none; }

  /* 16px side margins on phones (24px before) give the text and the cards 16px more width. */
  .container { padding-left: 16px; padding-right: 16px; }

  /* Compact hero: the review price used to start at y≈960 on a 375×812 phone, below the first screen. */
  .hero-section { padding: 24px 0 48px; }
  .hero-content .badge-pill { font-size: 0.65rem; padding: 4px 10px; margin-bottom: 12px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 24px; }
  .hero-metrics-row { flex-wrap: wrap; gap: 12px 24px; padding-top: 16px; }
  .hero-metric-divider { display: none; }
  .hero-metric-num { font-size: 1.35rem; }
  .hero-metric-label { font-size: 0.875rem; }
  .hero-grid { gap: 32px; }

  /* Terminal mock-up: smaller chrome, the log text on its own line under time and tag. */
  .terminal-header { flex-wrap: wrap; gap: 6px 10px; padding: 10px 12px; }

  .terminal-title { font-size: 0.68rem; gap: 6px; }
  .terminal-body { padding: 14px; }


  .output-footer { flex-wrap: wrap; gap: 4px 12px; }

  /* Long Czech words in narrow cards: hyphenate the running text (lang="cs"). Never prices, amounts or headings. */
  .problem-card p, .problem-consequence, .feature-bullets li, .tier-desc, .tier-features li, .faq-answer p,
  .alert-terminal-desc, .output-body, .risk-item-text, .risk-summary p, .trust-item p {
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  .slider-label-row { flex-wrap: wrap; gap: 4px 12px; }
  /* "160 000–560 000 Kč" (up to "600 000–2 100 000 Kč") on one line from 375px; at 320px it breaks after the dash. */
  .result-value { font-size: 1.4rem; }
  .btn-block { padding-left: 16px; padding-right: 16px; }
  .final-cta-title { overflow-wrap: break-word; }
}

/* Touch screens of any width (phones in landscape, tablets): iOS Safari zooms into, and pans across, every focused
   field below 16px. */
@media (pointer: coarse) {
  .form-control { font-size: 16px; }

  /* Calculator sliders: 28px handle (was 20px) on a 44px tall hit area; the 6px track is drawn inside it. */
  .custom-slider { height: 44px; background: transparent; }
  .custom-slider::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
  .custom-slider::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -11px; }
  .custom-slider::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
  .custom-slider::-moz-range-thumb { width: 28px; height: 28px; border: none; border-radius: 50%; background: var(--accent-cyan); box-shadow: 0 0 12px var(--accent-cyan); }
  .slider-bounds { margin-top: 0; }
}

/* Touch targets of at least 44×44px on phones and on any touch screen (footer links were 22px, the terminal link and
   buttons 42px). */
@media (max-width: 768px), (pointer: coarse) {
  .nav-link { display: inline-flex; align-items: center; min-height: 44px; }
  .btn { min-height: 44px; }
  .nav-logo { min-height: 44px; }
  .terminal-tab { min-height: 44px; }
  .terminal-footer { flex-wrap: wrap; gap: 0 12px; padding-top: 4px; padding-bottom: 4px; }
  .terminal-run-btn { min-height: 44px; }
  .footer-links-col { gap: 0; }
  .footer-links-col h4 { margin-bottom: 4px; }
  .footer-links-col a { display: flex; align-items: center; min-height: 44px; }
  .modal-close-btn { min-width: 44px; min-height: 44px; }
  .form-control { min-height: 44px; }
  .legal-toc li { margin-bottom: 0; }
  .legal-toc a { display: inline-block; padding: 10px 0; }
}

/* No sliding or spinning for readers who switched animations off in their system. */
@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;
  }
}

/* ==========================================================================
   V4 LAYER (2026-10-15): quiet, flat, spacious. Overrides the v3 rules above.
   ========================================================================== */

/* ---- Base: no glow, no blur, no shadows ---- */
body { line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(var(--cyan-rgb), 0.35); color: #fff; }
.ambient-glow { filter: none; }
.glass-panel, .glass-panel:hover, .btn-primary, .btn-primary:hover, .terminal-card, .pricing-card.popular-tier,
.final-cta-card, .modal-dialog, .btn-glass, .btn-outline { box-shadow: none; }
.glass-panel { -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: var(--radius-lg); }
.glass-panel-inner { background: #0D0D0F; border-color: rgba(255, 255, 255, 0.07); border-radius: var(--radius-md); }
.modal-dialog { box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); }
.modal-backdrop { background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---- Typography: large, tight, strong hierarchy ---- */
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; }
h1, h2 { letter-spacing: -0.04em; line-height: 1.08; }
.text-strong { font-weight: 500; color: var(--text-primary); }
.hero-title { font-size: 3.5rem; line-height: 1.06; letter-spacing: -0.045em; margin-bottom: 28px; }
.hero-title .text-strong { color: var(--text-muted); }
.hero-subtitle { font-size: 1.125rem; line-height: 1.75; margin-bottom: 40px; max-width: 540px; }
.hero-subtitle strong { color: var(--text-primary); font-weight: 500; }
.section-title { font-size: 2.75rem; line-height: 1.08; letter-spacing: -0.04em; margin-bottom: 20px; }
.section-subtitle { font-size: 1.1rem; line-height: 1.75; }
.final-cta-title { font-size: 2.75rem; letter-spacing: -0.04em; }
.module-feature-title { font-size: 2rem; letter-spacing: -0.035em; margin-bottom: 10px; }
.problem-card h3 { font-size: 1.2rem; letter-spacing: -0.02em; }

/* ---- Buttons: white primary, hairline outline, no lift ---- */
.btn { border-radius: var(--radius-md); font-weight: 500; letter-spacing: -0.005em; transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s; }
.btn-primary { background: #FFFFFF; color: #0A0A0B; font-weight: 500; }
.btn-primary:hover { transform: none; filter: none; background: #D9D9DD; }
.btn-glass, .btn-outline { background: transparent; color: var(--text-primary); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn-glass:hover, .btn-outline:hover { transform: none; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.28); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.pulse-dot, .badge-dot, .radar-status-dot.pulse, .pulse-warning, .pulse-danger { box-shadow: none; }

/* ---- Header: flat, hairline, no blur ---- */
.header-nav { background: rgba(10, 10, 11, 0.94); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 12px 0; }
.nav-logo-text { font-weight: 600; letter-spacing: -0.02em; }
.nav-logo-badge { background: transparent; color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.12); font-weight: 500; letter-spacing: 0.06em; }
.nav-link { font-weight: 400; }
.nav-link:hover { color: var(--text-primary); }

/* ---- Badges: neutral hairline chips, accent only on the live dot ---- */
.badge-pill, .badge-pill.danger-badge { background: transparent; border: 1px solid rgba(255, 255, 255, 0.12); color: var(--text-secondary); font-weight: 500; letter-spacing: 0.08em; margin-bottom: 24px; }
.badge-pill.danger-badge { color: var(--text-secondary); }

/* ---- Colour only where it means something: icons, labels and tabs go neutral ---- */
.trust-icon, .feature-bullets li svg, .check-icon { color: var(--text-secondary); }
.trust-icon { width: 24px; height: 24px; stroke-width: 1.6; }
.problem-card-icon.red, .problem-card-icon.amber, .problem-card-icon.cyan { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-primary); }
.module-badge-id, .tier-name { color: var(--text-muted); font-weight: 500; }
.module-feature-subtitle { color: var(--text-primary); font-weight: 500; letter-spacing: -0.01em; }
.terminal-tab.active { color: var(--text-primary); background: transparent; border-bottom-color: var(--text-primary); }
.popular-badge { background: #0A0A0B; border-color: rgba(255, 255, 255, 0.16); color: var(--text-secondary); font-weight: 500; }
.pricing-card.popular-tier { transform: none; background: var(--glass-bg); border-color: rgba(255, 255, 255, 0.16); }
.radar-card-item.active { background: rgba(255, 255, 255, 0.025); border-color: rgba(var(--cyan-rgb), 0.4); }
.problem-consequence { background: rgba(255, 255, 255, 0.03); border-left-width: 2px; border-radius: var(--radius-sm); }
.faq-item.active .faq-arrow, .faq-question:hover { color: var(--text-primary); }
.matrix-summary-pill { background: transparent; border-color: rgba(255, 255, 255, 0.1); }

/* ---- Terminal mock (single product moment) and data cards: hairline, flat ---- */
.terminal-card { border-color: rgba(255, 255, 255, 0.1); }
.terminal-header, .terminal-footer { background: #0D0D0F; }
.terminal-tabs { background: #0D0D0F; }
.terminal-body { min-height: 380px; }

.bar-track { background: rgba(255, 255, 255, 0.05); }
.custom-slider::-webkit-slider-thumb { box-shadow: none; border: 3px solid #0A0A0B; outline: 1px solid var(--accent-cyan); }
.form-control:focus { box-shadow: 0 0 0 3px rgba(var(--cyan-rgb), 0.22); }
.final-cta-card { background: var(--glass-bg); border-color: rgba(255, 255, 255, 0.1); }
.trust-strip, .footer { background: transparent; }

/* ---- Spacing: generous vertical rhythm on desktop, wide gutters ---- */
@media (min-width: 1025px) {
  .container { padding-left: 32px; padding-right: 32px; }
  .hero-section { padding: 136px 0 128px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 72px; align-items: center; }
  .hero-actions { margin-bottom: 64px; }
  .hero-metrics-row { padding-top: 32px; gap: 32px; }
  .trust-strip { padding: 56px 0; }
  .trust-grid { gap: 48px; }
  .problem-section, .modules-section, .pricing-section, .faq-section { padding: 144px 0; }
  .roi-section { padding: 0 0 144px; }
  .final-cta-section { padding: 0 0 144px; }
  .section-header { margin-bottom: 80px; }
  .problem-grid { gap: 24px; }
  .problem-card { padding: 36px 32px; }
  .module-feature-row { gap: 80px; margin-bottom: 144px; }
  .module-feature-row:last-child { margin-bottom: 0; }
  .roi-card { padding: 72px 64px; }
  .roi-header { margin-bottom: 64px; }
  .roi-calculator-grid { gap: 72px; }
  .pricing-grid { max-width: none; gap: 24px; }
  .pricing-card { padding: 40px 32px; }
  .faq-container { max-width: 800px; margin-left: auto; margin-right: auto; }
  .faq-accordion { gap: 12px; }
  .final-cta-card { padding: 104px 48px; }
  .footer { padding: 88px 0 56px; }
}
/* Section headings left-aligned, like the Vercel / Linear pages: the hairline rhythm does the structuring. */
.section-header.text-center, .roi-header.text-center { text-align: left; }
.section-header.text-center .section-subtitle, .roi-header.text-center .section-subtitle { margin-left: 0; margin-right: 0; max-width: 640px; }
@media (min-width: 769px) {
  .problem-section, .modules-section, .pricing-section, .faq-section { border-top: 1px solid rgba(255, 255, 255, 0.06); }
  .modules-section { border-top: 0; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-section { padding: 96px 0 96px; }
  .problem-section, .modules-section, .pricing-section, .faq-section { padding: 104px 0; }
  .roi-section { padding: 0 0 104px; }
  .final-cta-section { padding: 0 0 104px; }
  .section-header { margin-bottom: 56px; }
  .module-feature-row { margin-bottom: 96px; }
  .roi-card { padding: 48px 40px; }
  .pricing-grid { max-width: none; }
  .hero-title { font-size: 3rem; }
}
@media (max-width: 768px) {
  .problem-section, .modules-section, .pricing-section, .faq-section { padding: 80px 0; }
  .roi-section { padding: 0 0 80px; }
  .final-cta-section { padding: 0 0 80px; }
  .section-header { margin-bottom: 40px; }
  .badge-pill { margin-bottom: 18px; }
  .hero-section { padding: 48px 0 72px; }
  .module-feature-row, .module-feature-row.reverse { margin-bottom: 72px; }
}
@media (max-width: 480px) {
  .hero-section { padding: 24px 0 64px; }
}

/* ---- Parallax layer: a faint dot grid and a neutral top light, fixed behind the page (fx.js moves them) ---- */
.ambient-layer { position: fixed; inset: 0; z-index: 0; }
.ambient-layer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: -32px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1.3px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 0%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 0%, transparent 85%);
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.ambient-glow.glow-top {
  opacity: 1;
  top: -240px; left: 50%; width: 1100px; height: 640px; margin-left: -550px;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 45%, transparent 70%);
  border-radius: 0;
  transform: translate3d(0, var(--gy2, 0px), 0);
  will-change: transform;
}
.ambient-glow.glow-middle, .ambient-glow.glow-bottom { display: none; }

/* ---- Hover light (Láďa 2026-10-16: no cursor "flashlight", no glow box around the box): a card lights up softly
   along its own edges, as if lit from behind. Nothing follows the pointer; the glow reaches a few pixels only. ---- */
.ambient-layer::after { content: none; }
@media (hover: hover) and (pointer: fine) {
  .glass-panel:not(.modal-dialog) { transition: border-color 0.3s ease, box-shadow 0.3s ease; }
  .glass-panel:not(.modal-dialog):hover {
    border-color: rgba(var(--cyan-rgb), 0.34);
    box-shadow: 0 0 0 1px rgba(var(--cyan-rgb), 0.08), 0 0 14px rgba(var(--cyan-rgb), 0.14), 0 0 36px rgba(var(--cyan-rgb), 0.07);
  }
  .hero-visual .terminal-card:hover {
    border-color: rgba(var(--cyan-rgb), 0.42);
    box-shadow: 0 0 0 1px rgba(var(--cyan-rgb), 0.10), 0 0 18px rgba(var(--cyan-rgb), 0.18), 0 0 44px rgba(var(--cyan-rgb), 0.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  .glass-panel:not(.modal-dialog) { transition: none; }
}

/* ---- Scroll reveals (classes only exist when fx.js runs and motion is allowed: no JS, no hidden content) ---- */
.fx-ready .fx-reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--fx-d, 0s), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--fx-d, 0s);
}
.fx-ready .fx-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ambient-layer::before, .ambient-glow.glow-top { transform: none; will-change: auto; }
}

/* ---- V4 refinements (after first visual review) ---- */
.tab-icon { display: inline-flex; color: var(--text-muted); } /* own glyphs (OmniCore glyphs sprite in index.html), no emoji */
.terminal-tab.active .tab-icon { color: var(--text-primary); }
.tab-icon .oc-i { width: 15px; height: 15px; }
.final-cta-card { text-align: center; }
.final-cta-subtitle { margin-left: auto; margin-right: auto; }
.pricing-grid + .section-subtitle { margin-left: 0; margin-right: 0; text-align: left; max-width: 640px; }
.hero-metrics-row { display: grid; grid-template-columns: auto auto auto; justify-content: space-between; align-items: start; }
.hero-metric-divider { display: none; }
.hero-metric-item + .hero-metric-divider + .hero-metric-item { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.09); }
.hero-metric-num { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.hero-metric-label { font-size: 0.85rem; line-height: 1.5; margin-top: 4px; }
.hero-metric-item:first-child .hero-metric-label { max-width: 220px; }
@media (min-width: 1025px) {
  .hero-section { padding: 104px 0 112px; }
  .faq-container { max-width: var(--container-max); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; margin-left: auto; margin-right: auto; }
  .faq-container .section-header { margin-bottom: 0; position: sticky; top: 120px; }
  .faq-container .section-title { font-size: 2.5rem; }
}
@media (max-width: 1024px) {
  .hero-metrics-row { grid-template-columns: auto auto auto; }
}
@media (max-width: 480px) {
  .hero-metrics-row { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .hero-metric-item:first-child { grid-column: 1 / -1; }
  .hero-metric-item:first-child .hero-metric-label { max-width: none; }
  .hero-metric-item + .hero-metric-divider + .hero-metric-item { padding-left: 16px; }
}
.header-nav { background: #0A0A0B; }
.hero-metrics-row { grid-template-columns: max-content max-content max-content; gap: 0 24px; justify-content: start; }
.hero-metric-num { font-size: 1.25rem; }
.hero-metric-item:first-child .hero-metric-label { max-width: 190px; }
.hero-metric-item + .hero-metric-divider + .hero-metric-item { padding-left: 24px; }
@media (max-width: 480px) {
  .hero-metrics-row { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .hero-metric-item + .hero-metric-divider + .hero-metric-item { padding-left: 16px; }
  .hero-metric-item:first-child .hero-metric-label { max-width: none; }
}
@media (min-width: 481px) {
  .hero-metrics-row { gap: 0 20px; }
  .hero-metric-num { font-size: 1.2rem; }
  .hero-metric-item:first-child .hero-metric-label { max-width: 180px; }
  .hero-metric-item:not(:first-child) .hero-metric-label { max-width: 130px; }
  .hero-metric-item + .hero-metric-divider + .hero-metric-item { padding-left: 20px; }
}
@media (max-width: 768px) {
  .hero-title { font-size: clamp(1.5rem, 7.8vw, 2.5rem); line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 20px; }
  .section-title, .final-cta-title { font-size: clamp(1.6rem, 6.8vw, 2.2rem); line-height: 1.12; }
  .module-feature-title { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
  .problem-card h3 { font-size: 1.125rem; }
}

/* ==========================================================================
   MOBILE BOTTOM BAR (2026-10-15): sticky bottom navigation, visible only up to 480px.
   Dark, hairline top border, a subtle glass layer (blur is allowed for this bar only), accent for the active section.
   Markup: <nav class="bottom-bar"> before the scripts in index.html; the active state is set by fx.js (aria-current).
   ========================================================================== */
.bottom-bar { display: none; }

@media (max-width: 480px) {
  :root { --bb-h: 58px; }
  .bottom-bar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90; /* above the content, below the sticky header (100) and the audit modal (1000) */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(10, 10, 11, 0.86);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .bottom-bar { background: #0A0A0B; }
  }
  .bottom-bar-list {
    list-style: none;
    margin: 0 auto; padding: 0 4px;
    max-width: 480px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .bottom-bar-list > li { display: flex; min-width: 0; }
  .bottom-bar-link {
    position: relative;
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    min-height: var(--bb-h); min-width: 44px;
    padding: 8px 2px 7px;
    color: #A8A8B0; /* >= 4.5:1 on the bar even over a bright element underneath */
    font-size: 0.6875rem; font-weight: 500; line-height: 1; letter-spacing: 0.005em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
  }
  .bottom-bar-icon { display: block; flex: none; }
  .bottom-bar-label { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* 2px indicator on the top edge of the bar */
  .bottom-bar-link::after {
    content: "";
    position: absolute; top: -1px; left: 24%; right: 24%;
    height: 2px; border-radius: 0 0 2px 2px;
    background: var(--accent-cyan);
    transform: scaleX(0); transform-origin: 50% 50%;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .bottom-bar-link:active { color: var(--text-primary); }
  .bottom-bar-link[aria-current] { color: var(--accent-cyan); font-weight: 600; }
  .bottom-bar-link[aria-current]::after { transform: scaleX(1); }
  .bottom-bar-link:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: -4px; border-radius: 8px; }

  /* Room for the bar: the footer is never covered. Anchors land below the sticky header (scroll-padding) with a small extra gap. */
  body { padding-bottom: calc(var(--bb-h) + 1px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-top: 76px; }
  #analyzer, #radar, #roi, #cenik, #faq { scroll-margin-top: 8px; }
}

/* ==========================================================================
   V4.1 (Karel, 2026-10-16): OmniCore glyphs, the twelve-month mark, the section rail
   ========================================================================== */

/* ---- OmniCore glyphs: own line icons from the sprite in index.html. One stroke per icon is "lit" in the accent,
   like the lit month edge of the mark; the rest follows the text colour. ---- */
.oc-i {
  width: 1em; height: 1em; flex: none; vertical-align: -0.15em;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  --oc-lit: var(--accent-cyan);
}
.final-cta-guarantee span { display: inline-flex; align-items: center; gap: 8px; }
.form-privacy-note .oc-i { margin-right: 6px; }
.modal-close-btn .oc-i { display: block; width: 20px; height: 20px; }

/* ---- Phones: the v4 hero lead (18px, line-height 1.75) pushed the price range below the fold at 360 x 740; back to
   the v3 phone size so the offer stays visible without scrolling (smoke:ui, UX audit 14d). ---- */
@media (max-width: 480px) {
  .hero-subtitle { font-size: 1rem; line-height: 1.6; margin-bottom: 20px; }
  .hero-actions { margin-bottom: 20px; }
}

/* ---- Twelve months: the dodecagon mark as a year (illustration). The lit arc runs once around in 12 s, the month
   labels light up as it passes; static Říjen–Prosinec for prefers-reduced-motion. ---- */
.mark-section { position: relative; z-index: 1; padding: 112px 0; }
.mark-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.mark-figure { margin: 0; text-align: center; }
.mark-svg { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
.mark-core { fill: url(#mkFill); stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.mark-ring { fill: none; stroke: #3A3A42; stroke-width: 2; stroke-linejoin: round; }
.mark-trace {
  fill: none; stroke: #9AA3F2; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 3 9; stroke-dashoffset: -9;
  animation: mark-run 12s linear infinite;
}
.mark-trace-glow { stroke: #6F7CEA; stroke-width: 10; opacity: 0.55; }
.mark-month {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.1em;
  text-anchor: middle; dominant-baseline: middle; fill: #7E7E86;
  animation: mark-lit 12s linear infinite; animation-delay: calc((var(--k) - 3) * 1s);
}
.mark-num { font-family: 'Inter', sans-serif; font-weight: 300; font-size: 64px; letter-spacing: -0.04em; text-anchor: middle; dominant-baseline: middle; fill: #EDEDEF; }
.mark-text .section-title { text-align: left; }
.mark-text .section-subtitle { margin-left: 0; text-align: left; }
@keyframes mark-run { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -12; } }
@keyframes mark-lit { 0%, 30% { fill: #EDEDEF; } 36%, 100% { fill: #7E7E86; } }
@media (prefers-reduced-motion: reduce) {
  .mark-trace, .mark-month { animation: none; }
  .mark-month.is-lit { fill: #EDEDEF; }
}
@media (max-width: 860px) {
  .mark-section { padding: 72px 0; }
  .mark-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mark-text { order: -1; }
}

/* ---- Section rail (fx.js): from 1440px (the right gutter then holds the names) and only with motion allowed. A hairline ruler on the right edge (12 major
   ticks, minor every 8px) with a thin accent light for the scroll position; the section names (letters placed by
   fx.js) lie on it turned 90° and straighten up into the top right corner. pointer-events: none, aria-hidden. ---- */
.sx { display: none; }
@media (min-width: 1440px) {
  .fx-rail-on .sx { display: block; position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; contain: strict; }
}
.sx-ruler {
  position: absolute; right: 0; top: var(--sx-top, 64px); bottom: 0; width: 64px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.42) 0 1px, transparent 1px calc(100% / 12)) right top / 16px 100% no-repeat,
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 8px) right top / 7px 100% no-repeat;
}
/* Month numbers 01–12 at the major ticks: the ruler is the year of the mark. */
.sx-ruler span {
  position: absolute; right: 20px; transform: translateY(-50%);
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; line-height: 1; letter-spacing: 0.04em;
  color: #8A8A93;
}
/* Track and scroll light: a visible hairline axis, the passed part lit in the accent with a soft glow and a bright head. */
.sx-track {
  position: absolute; right: 63px; top: var(--sx-top, 64px); bottom: 0; width: 1px;
  background: rgba(255, 255, 255, 0.10);
}
.sx-progress {
  position: absolute; right: 62px; top: var(--sx-top, 64px); bottom: 0; width: 3px;
  background: linear-gradient(to bottom, rgba(var(--cyan-rgb), 0.35), var(--accent-cyan) 85%, #C9CEFA);
  box-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.75), 0 0 24px rgba(var(--cyan-rgb), 0.35);
  border-radius: 2px;
  transform-origin: 50% 0; transform: scaleY(0);
}
.sx-title {
  position: absolute; left: 0; top: 0;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 16px; line-height: 1; letter-spacing: 0.06em;
  color: #EDEDEF;
  text-shadow: 0 0 6px var(--bg-navy), 0 0 14px var(--bg-navy), 0 0 22px var(--bg-navy);
}

/* ==========================================================================
   PAGES (Karel, 2026-10-16): the one-page #anchors became real pages (/rozbor-zd/, /ve-vyvoji/, /kalkulacka/,
   /cenik/, /faq/). Each page opens with a page head (badge, H1, lead); the home page links them with five cards.
   ========================================================================== */
.page-head { position: relative; z-index: 1; padding: 112px 0 0; }
.page-head .section-header { margin-bottom: 0; }
.page-head + .modules-section { padding-top: 64px; }
.nav-link[aria-current="page"] { color: var(--text-primary); box-shadow: inset 0 -1px 0 var(--accent-cyan); }

.next-section { position: relative; z-index: 1; padding: 96px 0; }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.next-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px;
  color: inherit; text-decoration: none; border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.next-card:hover { border-color: var(--glass-border-hover); transform: translateY(-2px); }
.next-card:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; }
.next-icon { width: 24px; height: 24px; color: var(--text-primary); }
.next-title { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; color: var(--text-primary); }
.next-text { font-size: 0.9375rem; line-height: 1.55; color: var(--text-secondary); }
.next-arrow { margin-top: auto; color: var(--accent-cyan); transition: transform 0.2s ease; }
.next-card:hover .next-arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .next-card, .next-arrow { transition: none; }
  .next-card:hover, .next-card:hover .next-arrow { transform: none; }
}
@media (max-width: 768px) {
  .page-head { padding: 48px 0 0; }
  .page-head + .modules-section { padding-top: 40px; }
  .next-section { padding: 64px 0; }
}

/* ---- Form messages (Láďa 2026-10-16: no system messages): the browser's validation bubbles are off (novalidate);
   a calm hint appears under the field, one line above the button for sending problems. ---- */
.form-error {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(var(--rose-rgb), 0.28);
  border-left: 2px solid rgba(var(--rose-rgb), 0.75);
}
.form-control.is-invalid { border-color: rgba(var(--rose-rgb), 0.55); box-shadow: 0 0 0 3px rgba(var(--rose-rgb), 0.10); }
.field-error { margin: 6px 0 0; font-size: 0.8125rem; line-height: 1.45; color: #F4A8A1; animation: field-in 0.2s ease-out; }
@keyframes field-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .field-error { animation: none; } }

/* ---- Product card in the hero (Láďa 2026-10-16: no system messages): no window chrome, no clock, no machine tags;
   each fact is a quiet line with a small label, the headings in sentence case. ---- */
.terminal-title { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; color: var(--text-primary); }
.report-line { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; margin: 0 0 12px; font-family: var(--font-body); font-size: 0.875rem; line-height: 1.5; color: var(--text-secondary); }
.report-k { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); padding-top: 3px; }
.alert-terminal-title { font-weight: 600; letter-spacing: 0; }
@media (max-width: 480px) {
  .report-line { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---- Sending: no status text, the button stays as it is and a thin light runs along its bottom edge ---- */
.btn.is-sending { position: relative; overflow: hidden; cursor: progress; opacity: 1; }
.btn.is-sending > * { opacity: 0.55; }
.btn.is-sending::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  animation: btn-send 1.1s ease-in-out infinite;
}
@keyframes btn-send { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .btn.is-sending::after { animation: none; width: 100%; opacity: 0.6; } }
.alert-terminal-title, .output-header > span:first-child { font-family: var(--font-body); font-size: 0.875rem; letter-spacing: 0; }


/* Congress readiness: reuse the current palette, type and components. */
.radar-export{padding:clamp(18px,3vw,30px)}
.radar-export h3{font-size:clamp(1.25rem,2vw,1.7rem);font-weight:500;margin:14px 0}
.radar-export p{color:var(--text-secondary);font-size:.92rem;line-height:1.65}
.radar-table-wrap{overflow-x:auto;max-width:100%;margin:20px 0}
.radar-table-wrap table{width:100%;border-collapse:collapse}
.radar-table-wrap caption{text-align:left;color:var(--text-muted);font-size:.75rem;padding:0 0 12px;line-height:1.5}
.redacted{display:inline-block;letter-spacing:2px;color:var(--text-muted);background:var(--bg-surface);border:1px solid var(--glass-border, #37373e);border-radius:4px;padding:3px 6px;white-space:nowrap}
.econ-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:32px;margin-top:32px}
.econ-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-content:start}
.econ-field{min-width:0}.econ-field label{display:block;min-height:3em;font-size:.87rem;line-height:1.45;color:var(--text-secondary);margin-bottom:7px}
.econ-field input{width:100%;min-width:0;box-sizing:border-box;background:var(--bg-surface);border:1px solid #51515b;border-radius:8px;color:var(--text-primary);font:inherit;font-size:16px;min-height:46px;padding:10px 12px}
.econ-field input:focus-visible{outline:2px solid var(--accent-cyan);outline-offset:3px}
.econ-field input:invalid{border-color:var(--accent-rose)}
.econ-inputs>.result-sub,.econ-inputs>button{grid-column:1/-1}
.econ-results{border:1px solid #37373e;border-radius:14px;padding:22px;background:var(--bg-surface);min-width:0}
.econ-results .result-item{padding:14px 0;border-bottom:1px solid #37373e}
.econ-results .result-item:last-of-type{border-bottom:0}
.econ-results .result-value{font-size:clamp(1.25rem,2.4vw,1.9rem);overflow-wrap:anywhere}
.econ-scenarios,.econ-method{margin:32px 0}.econ-scenarios h2{font-size:1.4rem;font-weight:400}
.econ-method{border-top:1px solid #37373e;padding-top:20px}.econ-method summary{cursor:pointer;min-height:44px;font-size:1.1rem}
.econ-formula{display:grid;grid-template-columns:minmax(160px,.7fr) minmax(0,1.3fr);gap:20px;border-bottom:1px solid #37373e;padding:16px 0}
.econ-formula code{white-space:normal;overflow-wrap:anywhere;color:var(--accent-cyan);font-size:.85rem;align-self:center}
.econ-formula p,.econ-method>p{font-size:.88rem;line-height:1.65;color:var(--text-secondary);margin:0}
@media(max-width:800px){.econ-layout{grid-template-columns:1fr}.econ-formula{grid-template-columns:1fr;gap:8px}.econ-results{padding:16px}}
@media(max-width:420px){.econ-inputs{grid-template-columns:1fr}.econ-field label{min-height:0}.radar-export{padding:16px}.benchmark-mini-table th,.benchmark-mini-table td{padding:8px;font-size:.76rem}}
@media print{header,footer,.bottom-bar,.modal-backdrop,.ambient-layer,.final-cta-section,.final-cta-actions,button{display:none!important}body{background:white!important;color:black!important}.econ-layout{display:block}.econ-inputs{grid-template-columns:repeat(3,1fr)}.econ-results{margin-top:20px}.econ-results,.roi-card{background:white!important;color:black!important;box-shadow:none!important}*{color:black!important;text-shadow:none!important}.econ-method{display:block}.econ-field input{color:black;background:white}}
.nav-logo-vision{font-size:.58em;letter-spacing:.1em;font-weight:400;color:var(--text-secondary)}
.hero-title .text-strong{display:block}
.hero-title,.hero-title .text-strong,.section-title{text-wrap:balance}
@media(max-width:1280px){.hero-grid{grid-template-columns:minmax(0,1fr);gap:40px}.hero-content{max-width:none}.hero-subtitle{max-width:72ch}}

/* Customer orientation: preserve the accepted radar scrolling and existing calculator model. */
.delivery-steps{padding-left:1.4rem;color:var(--text-secondary);font-size:.9rem;line-height:1.65}
.delivery-steps li+li{margin-top:12px}
.delivery-steps strong{color:var(--text-primary)}
.econ-jump{grid-column:1/-1;align-self:start;z-index:5;background:var(--bg-surface);padding:8px 0}
.econ-jump .btn,.econ-back{min-height:44px;white-space:normal;text-align:center}
.econ-results h2{font-size:1.3rem;margin:0 0 12px}
#economicsResults,.econ-field input{scroll-margin-top:90px;scroll-margin-bottom:90px}
@media(max-width:800px){.econ-jump{position:sticky;top:72px}.econ-jump .btn{width:100%}}
@media print{.econ-jump,.econ-back{display:none!important}}

/* Selected real contracts: readable detail without publishing identifying fields. */
.preview-panel > .radar-export{padding:0}
.radar-contract-sample{min-width:380px;font-size:.875rem}
.radar-contract-sample th,.radar-contract-sample td{padding:11px 10px;font-size:.875rem;line-height:1.45;vertical-align:top}
.radar-contract-sample th:first-child{width:48%}
.radar-contract-sample th:nth-child(2){width:28%}
.radar-contract-sample td strong{display:block;font-weight:500}
.radar-sample-sector{display:block;margin-bottom:4px;font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}
.radar-table-wrap:focus-visible{outline:2px solid var(--accent-cyan);outline-offset:4px;border-radius:4px}

/* Header radar (Web 5, Láďa 2026-10-23): the Radar nav link is a small tilted radar instrument over a fixed caption,
   about as wide as the old text link (so enlarged text does not widen the header). Decorative only (aria-hidden SVG, no
   live-data status). The face stays still; only the sweep turns, in the face's own plane (it is drawn before the
   vertical squash). Hover changes nothing but the cursor; keyboard focus keeps a visible ring. On arrival the sweep
   turns three quarters of a turn at 6 s a turn, the last second slowing to rest: 5 s in all, so it needs no pause
   control (WCAG 2.2.2) and never loops. Static for prefers-reduced-motion; paused while the page is hidden (fx.js).
   SVG attributes keep it a quiet dark ellipse if the CSS fails. In the mobile menu the caption sits beside the
   instrument, in the menu's type. */
.nav-link-radar { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex: none; gap: 2px; min-width: 44px; min-height: 44px; cursor: pointer; transition: none; }
.nav-link-radar, .nav-link-radar:hover { color: var(--text-secondary); }
.nav-link-radar[aria-current="page"], .nav-link-radar[aria-current="page"]:hover { color: var(--text-primary); }
.nav-link-radar:focus:not(:focus-visible) { outline: none; }
.nav-link-radar:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 2px; border-radius: var(--radius-sm); }
.nav-radar { display: block; flex: none; width: 40px; height: 24px; overflow: visible; }
.nav-radar-label { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; line-height: 1.15; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.nav-radar-body { fill: #0B1410; }
.nav-radar-base { fill: none; stroke: rgba(var(--emerald-rgb), 0.3); stroke-width: 0.75; }
.nav-radar-lip { fill: none; stroke-width: 0.9; }
.nav-radar-rim { fill: none; stroke: rgba(var(--emerald-rgb), 0.55); stroke-width: 0.8; }
.nav-radar-grid { fill: none; stroke: rgba(var(--emerald-rgb), 0.26); stroke-width: 0.6; }
.nav-radar-grid *, .nav-radar-arm { vector-effect: non-scaling-stroke; }
.nav-radar-trail { fill: var(--accent-emerald); fill-opacity: 0.05; }
.nav-radar-arm { fill: none; stroke: var(--accent-emerald); stroke-opacity: 0.9; stroke-width: 1; stroke-linecap: round; }
.nav-radar-sweep { transform-box: view-box; transform-origin: 0 0; animation: nav-radar-sweep 5s linear 1; }
.page-hidden .nav-radar-sweep { animation-play-state: paused; }
@keyframes nav-radar-sweep {
  0% { transform: rotate(-270deg); animation-timing-function: linear; }
  80% { transform: rotate(-30deg); animation-timing-function: cubic-bezier(0.25, 0.5, 0.5, 1); }
  100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) { .nav-radar-sweep { animation: none; } }
@media (max-width: 960px) {
  .nav-links .nav-link-radar { flex-direction: row; justify-content: flex-start; gap: 10px; }
  .nav-links .nav-radar-label { font: inherit; letter-spacing: inherit; text-transform: none; }
  .nav-link-radar:focus-visible { outline-offset: -2px; }
}
