/* =========================================================
   Inovai - design system
   Plain CSS, žádný build. Upravuje se přímo v tomto souboru.
   ========================================================= */

:root {
  /* Barvy */
  --bg:            #FDFCFA;
  --bg-alt:        #F4F2ED;
  --bg-dark:       #0E1720;
  --surface:       #FFFFFF;
  --border:        #E6E3DC;
  --border-strong: #C9C5BB;
  --text:          #0E1720;
  --text-muted:    #5A5F66;
  --text-subtle:   #8A8F96;
  --accent:        #14554F;
  --accent-hover:  #0E3E3A;
  --accent-soft:   #E8F0EE;
  --warn:          #B8542A;
  --success:       #2D7A55;

  /* Typografie */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Rozměry */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --container: 1200px;
  --section-py: clamp(4rem, 8vw, 7rem);
  --section-py-sm: clamp(2.5rem, 5vw, 4rem);

  /* Easing */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);

  color-scheme: light;
}

/* Dark theme — aktivuje se nastavením [data-theme="dark"] na <html>.
   Toggle a persistence řeší js/main.js + inline FOUC script v <head>. */
[data-theme="dark"] {
  --bg:            #0E1720;
  --bg-alt:        #162231;
  --bg-dark:       #060B12;
  --surface:       #162231;
  --border:        #25344A;
  --border-strong: #3A4A63;
  --text:          #EEF1F4;
  --text-muted:    #B8BFC6;
  --text-subtle:   #8A93A0;
  --accent:        #5FB8AE;
  --accent-hover:  #7FC9C0;
  --accent-soft:   #1F2E2C;

  color-scheme: dark;
}

[data-theme="dark"] .card--profile,
[data-theme="dark"] .card--profile .card__photo {
  background: var(--bg-alt);
}

/* Dvě varianty fotek (světlá/tmavá) ve stejném <div class="card__photo">.
   Druhá se zapne přes [data-theme]. */
.card__photo .photo--dark { display: none; }
[data-theme="dark"] .card__photo .photo--light { display: none; }
[data-theme="dark"] .card__photo .photo--dark { display: block; }

[data-theme="dark"] .alert--error {
  background: #3A1A0E;
  border-color: #6B3520;
  color: #F5C9B0;
}
[data-theme="dark"] .alert--error a { color: #F5C9B0; }
[data-theme="dark"] .alert--success {
  background: #122E20;
  border-color: #2F6649;
  color: #B8E2C9;
}

/* Selection v dark mode — accent je světlejší, takže text musí být tmavý. */
[data-theme="dark"] ::selection { background: var(--accent); color: var(--bg-dark); }

/* Primary CTA v dark mode: světlý accent + bílý text by dal kontrast jen 2.3:1.
   Tmavý text na světlém accentu dá ~7:1 (WCAG AAA). Stejně řešíme brand mark. */
[data-theme="dark"] .btn--primary,
[data-theme="dark"] .btn--primary:hover {
  color: var(--bg-dark);
}
[data-theme="dark"] .brand__mark {
  color: var(--bg-dark);
}

/* Theme toggle button — dvě varianty (desktop v .nav za CTA, mobile v hlavičce před X).
   Obě se renderují, druhá se na daném breakpointu schová. */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color .15s var(--ease), color .15s var(--ease), background-color .15s var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .theme-toggle__sun { display: none; }
.theme-toggle .theme-toggle__moon { display: block; }
[data-theme="dark"] .theme-toggle .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle .theme-toggle__moon { display: none; }

/* Mobilní button skrytý na desktopu, desktopový skrytý na mobilu. */
.theme-toggle--mobile { display: none; }
@media (max-width: 860px) {
  .theme-toggle--mobile {
    display: inline-grid;
    position: relative;
    z-index: 3;
    /* Přitáhnout k hamburgeru — bez auto-marginu by space-between
       v .site-header__inner položil toggle doprostřed mezi brand a X. */
    margin-left: auto;
  }
  .theme-toggle--desktop { display: none; }

  /* Když je menu otevřené, header má nad ním z-index. Toggle--mobile by
     splýval s X v jednom hořením rohu — schováme ho a uvnitř .nav se
     ukáže "desktopová" varianta (jako další položka menu, vedle CTA). */
  .nav[data-open="true"] ~ .theme-toggle--mobile,
  .site-header__inner:has(.nav[data-open="true"]) .theme-toggle--mobile {
    display: none;
  }
  .nav[data-open="true"] .theme-toggle--desktop {
    display: inline-grid;
    align-self: stretch;
    width: 100%;
    height: 48px;
  }
}

/* Reset / Base
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease);
}

a:hover { color: var(--accent); }

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 62ch;
}

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

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
ul.clean { list-style: none; padding: 0; }
ul.check { list-style: none; padding: 0; }
ul.check li {
  position: relative;
  padding-left: 1.7em;
  margin-bottom: .55em;
}
ul.check li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 1rem; height: 1rem;
  background: no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><path d='M4 10.5l4 4 8-9' stroke='%2314554F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

code {
  font-family: var(--font-mono);
  font-size: .9em;
  background: var(--bg-alt);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
}

/* Layout
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 3vw, 2rem);
}

.section { padding: var(--section-py) 0; }
.section-sm { padding: var(--section-py-sm) 0; }

.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #EEF1F4; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #FFF; }
.section--dark .muted, .section--dark p.lead { color: #B8BFC6; }

.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 620px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }

.row-split {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) {
  .row-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .row-split--1-2 { grid-template-columns: 1fr 2fr; }
  .row-split--2-1 { grid-template-columns: 2fr 1fr; }

  /* Lead (přímo v row-split) zarovnáme s baseline H2 vedle.
     Levý sloupec má eyebrow + h2; bez tohoto paddingu by lead vpravo
     vypadal "nad" h2. Hodnota = eyebrow font-size × line-height + margin-bottom. */
  .row-split > p.lead { padding-top: 2.3rem; }
}

/* Utility
   ========================================================= */

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section--dark .eyebrow { color: #7FC9C0; }

.text-center { text-align: center; }
.max-prose { max-width: 62ch; }
.max-prose-lg { max-width: 72ch; }
.mx-auto { margin-left: auto; margin-right: auto; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
  border: 0;
}

/* Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--text); color: var(--text); }

.section--dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.section--dark .btn--ghost:hover { border-color: #fff; }

.btn--link {
  padding: 0;
  color: var(--accent);
  background: transparent;
  font-weight: 500;
  gap: .4em;
  /* .btn nastavuje nowrap — pro inline odkaz s dlouhým textem (typicky uprostřed
     odstavce nebo užšího sloupce) ale potřebujeme zalomení. */
  white-space: normal;
  max-width: 100%;
}
.btn--link::after {
  content: "→";
  transition: transform .2s var(--ease);
}
.btn--link:hover::after { transform: translateX(3px); }
.section--dark .btn--link { color: #7FC9C0; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header__inner { position: relative; z-index: 2; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  color: var(--text);
}

.brand__mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav__list a {
  color: var(--text-muted);
  font-weight: 500;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav__cta { display: inline-flex; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--text);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Schovat clone brand v desktop layoutu */
.brand--in-nav { display: none; }

@media (max-width: 860px) {
  /* Site-header padding 20px po stranách na mobile */
  .site-header .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-toggle { display: block; position: relative; z-index: 3; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 1.2rem 20px 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform .25s var(--ease);
    overflow-y: auto;
    visibility: hidden;
  }
  .nav[data-open="true"] { visibility: visible; }
  .nav[data-open="true"] { transform: translateX(0); }

  /* Klonované logo nahoře v mobile menu */
  .brand--in-nav {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 0.5rem;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    font-size: 1.1rem;
  }
  .nav__list li { border-bottom: 1px solid var(--border); }
  .nav__list a {
    display: block;
    padding: 1rem 0;
    border: 0;
  }
  .nav__cta { width: 100%; justify-content: center; }
}

/* Hero
   ========================================================= */

.hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 70%; height: 140%;
  background: radial-gradient(circle at center, rgba(20, 85, 79, 0.06), transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }

.hero h1 {
  max-width: 18ch;
}

.hero p.lead {
  margin-top: 1.2rem;
  max-width: 58ch;
}

.hero__cta {
  margin-top: 2rem;
}

.hero__trust {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 75ch;
}

/* Cards / blocks
   ========================================================= */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.card:hover { border-color: var(--border-strong); }

.card--link {
  display: block;
  color: inherit;
}
.card--link:hover { transform: translateY(-2px); color: inherit; }

.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Profil karta — portrét vpravo, světlé pozadí, bez avatar kolečka */
.card--profile {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #F9F9F7;
}
.card--profile .card__photo {
  position: relative;
  height: 400px;
  width: 70%;
  margin-left: auto;
  overflow: hidden;
  background: #F9F9F7;
}
.card--profile .card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.card--profile .card__body {
  padding: clamp(1.4rem, 2.5vw, 2rem);
  flex: 1;
}

.card__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: .8rem;
  display: block;
}

.section--dark .card {
  background: #162231;
  border-color: #25344A;
  color: #D9DFE5;
}
.section--dark .card h3 { color: #FFF; }

/* Problem list (large styled list) */
.problem-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.problem {
  padding: 1.5rem;
  border-left: 2px solid var(--border);
  transition: border-color .2s var(--ease);
}
.problem:hover { border-left-color: var(--accent); }
.problem h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.problem p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* Steps
   ========================================================= */

.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.step {
  padding: 1.5rem;
  border-top: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
  counter-increment: step;
  position: relative;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.8rem;
}

.section--dark .step {
  background: #162231;
  border-top-color: #7FC9C0;
}

/* Case study callout
   ========================================================= */

.case {
  background: var(--bg-dark);
  color: #E6EAEF;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
  position: relative;
}
.case h2, .case h3 { color: #fff; }
.case .eyebrow { color: #7FC9C0; }

.case__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .case__grid { grid-template-columns: 1.4fr 1fr; gap: 3rem; }
}

.kpi-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.kpi {
  padding: 1.2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.kpi__num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: #7FC9C0;
  display: block;
  margin-bottom: .3rem;
  letter-spacing: -0.02em;
}
.kpi__label {
  font-size: 0.85rem;
  color: #B8BFC6;
  line-height: 1.35;
}

/* FAQ
   ========================================================= */

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--border); }

.faq summary {
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform .2s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }

.faq details > *:not(summary) {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 68ch;
}

/* CTA band
   ========================================================= */

.cta-band {
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.cta-band h2 { color: #fff; max-width: 24ch; margin: 0 auto 1rem; }
.cta-band p { color: #B8BFC6; max-width: 60ch; margin: 0 auto 2rem; }
.cta-band .btn-group { justify-content: center; }
.cta-band .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.cta-band .btn--ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Alert
   ========================================================= */

.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 0.95rem;
  line-height: 1.5;
}
.alert a { text-decoration: underline; }
.alert--error {
  background: #FDF2EE;
  border-color: #E7B59A;
  color: #7A2E0B;
}
.alert--error a { color: #7A2E0B; }
.alert--success {
  background: #EAF4EE;
  border-color: #9FC7AE;
  color: #1F5A3A;
}

/* Form
   ========================================================= */

.form { display: grid; gap: 1.1rem; max-width: 620px; }
.form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.form__label {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.form__required,
.form__optional {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form__required { color: var(--accent); }
.form__optional { color: var(--text-muted); }
.form input,
.form textarea,
.form select {
  font: inherit;
  padding: 0.85em 1em;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  width: 100%;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 85, 79, 0.15);
}
.form textarea { min-height: 140px; resize: vertical; }
.form__hint { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.form__privacy { font-size: 0.85rem; color: var(--text-muted); }
.form__privacy a { color: var(--accent); text-decoration: underline; }

/* Footer
   ========================================================= */

.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  margin-bottom: 3rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-grid ul { padding: 0; list-style: none; margin: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a { color: var(--text); }
.footer-grid a:hover { color: var(--accent); }

.footer-legal {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 32ch;
}

.footer-company {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* Process diagram
   Vizuální znázornění procesu / toku dat mezi kroky.
   ========================================================= */

.flow {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  counter-reset: flowstep;
}
@media (min-width: 780px) {
  .flow {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
  }
  .flow__node { flex: 1 1 0; min-width: 0; }
  .flow__arrow { flex: 0 0 auto; }
}

.flow__node {
  counter-increment: flowstep;
  position: relative;
  padding: 1.2rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
  line-height: 1.4;
}
.flow__node::before {
  content: counter(flowstep, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.45rem;
  letter-spacing: 0.08em;
}
.flow__node small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Konektor mezi kroky */
.flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0;
  line-height: 0;
  opacity: 0.55;
  padding: 0 0.3rem;
}
.flow__arrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.flow__arrow::after {
  content: "";
  width: 0; height: 0;
  border-left: 7px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: -1px;
}

@media (max-width: 779px) {
  .flow__arrow {
    flex-direction: column;
    padding: 0.3rem 0;
  }
  .flow__arrow::before { width: 2px; height: 16px; }
  .flow__arrow::after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid currentColor;
    border-bottom: 0;
    margin-left: 0; margin-top: -1px;
  }
}

/* Varianty na tmavém pozadí */
.section--dark .flow__node,
.case .flow__node {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: #E6EAEF;
}
.section--dark .flow__node::before,
.case .flow__node::before {
  color: #7FC9C0;
}
.section--dark .flow__node small,
.case .flow__node small {
  color: rgba(255, 255, 255, 0.45);
}
.section--dark .flow__arrow,
.case .flow__arrow {
  color: #7FC9C0;
  opacity: 0.7;
}

/* App screenshot frame (mock browser/app window)
   ========================================================= */

.app-frame {
  background: #0A1118;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.app-frame__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.app-frame__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.app-frame__title {
  margin-left: .8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

.app-frame__body {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.015) 0 12px,
      transparent 12px 24px
    );
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.app-frame__body img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Light varianta - pro screenshoty nasazené v sekci s bílým pozadím */
.app-frame--light {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px -22px rgba(14, 23, 32, 0.18);
}
.app-frame--light .app-frame__bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.app-frame--light .app-frame__dot {
  background: var(--border-strong);
}
.app-frame--light .app-frame__title {
  color: var(--text-muted);
}
.app-frame--light .app-frame__body {
  background: #f6f8fb;
  color: var(--text-muted);
}

/* Helpers & small
   ========================================================= */

.pill {
  display: inline-block;
  padding: 0.35em 0.75em;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-mono);
}

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

.quote {
  border-left: 3px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1.2rem;
  font-style: italic;
  color: var(--text-muted);
}

/* Blog - listing
   ========================================================= */

.post-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
}

.post-card {
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: inherit;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.post-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  color: inherit;
}
.post-card__meta {
  display: flex;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}
.post-card__meta .pill {
  font-size: 0.72rem;
  padding: 0.2em 0.55em;
}
.post-card h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0 0 0.8rem;
}
.post-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.2rem;
  flex: 1;
}
.post-card__read {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.92rem;
}
.post-card__read::after {
  content: " →";
  transition: margin-left .2s var(--ease);
}
.post-card:hover .post-card__read::after {
  margin-left: 0.3em;
}

/* Blog - article
   ========================================================= */

.post {
  max-width: 720px;
  margin: 0 auto;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.post__author { text-transform: none; letter-spacing: 0; }
.post__author a { color: var(--accent); border-bottom: 1px solid transparent; }
.post__author a:hover { border-bottom-color: var(--accent); }

.post h1 {
  margin-bottom: 1.2rem;
}

.post__lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.prose {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  margin: 2.5em 0 0.6em;
  letter-spacing: -0.02em;
}
.prose h3 {
  font-size: 1.18rem;
  margin: 2em 0 0.4em;
}
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.5em;
}
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(20, 85, 79, 0.35);
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-color: var(--accent);
}
.prose strong { color: var(--text); }
.prose blockquote {
  margin: 2em 0;
  padding: 0.3em 0 0.3em 1.4em;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
}
.prose .callout {
  margin: 2em 0;
  padding: 1.3rem 1.5rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose .callout p:last-child { margin-bottom: 0; }

.post__footer-cta {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  text-align: center;
}
.post__footer-cta h3 { margin-bottom: 0.5rem; }
.post__footer-cta p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 50ch; margin-left: auto; margin-right: auto; }

.post__related {
  max-width: 720px;
  margin: 0 auto;
}

/* Print / reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* Cookie banner
   ========================================================= */

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  background: var(--bg-dark);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
  padding: 1.25rem 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  animation: cookieIn .35s var(--ease);
}

@keyframes cookieIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1 1 420px;
  color: rgba(255, 255, 255, 0.88);
}

.cookie-banner__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__text a:hover { color: var(--accent-soft); }

.cookie-banner__actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.cookie-banner .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.cookie-banner .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

@media (max-width: 700px) {
  .cookie-banner { padding: 1rem; font-size: 0.88rem; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1 1 0; justify-content: center; }
}

