/* faisoft.net. Brand rules: design/brand/BRAND.md; the :root blocks are design/brand/tokens.css verbatim. */

/* Red Hat Display and Red Hat Text, self-hosted (no visitor data goes to Google). Latin + Latin Extended cover Czech. */
@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/red-hat-display-latin-500-normal.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: "Red Hat Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/red-hat-display-latin-ext-500-normal.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: "Red Hat Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/red-hat-display-latin-600-normal.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: "Red Hat Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/red-hat-display-latin-ext-600-normal.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: "Red Hat Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/red-hat-text-latin-400-normal.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: "Red Hat Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/red-hat-text-latin-ext-400-normal.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: "Red Hat Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/red-hat-text-latin-500-normal.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: "Red Hat Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/red-hat-text-latin-ext-500-normal.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: "Red Hat Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/red-hat-text-latin-600-normal.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: "Red Hat Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/red-hat-text-latin-ext-600-normal.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;
}

:root {
  /* Neutrals: cool, leaning slightly blue. Never warm (no cream, sand or beige). */
  --color-bg: #f6f7f9; /* page background */
  --color-surface: #ffffff; /* cards, forms, header */
  --color-text: #11141b; /* text and the logo */
  --color-muted: #596173; /* secondary text */
  --color-border: #e2e6ed; /* 1px hairlines, decorative only */
  --color-control: #7d8697; /* borders of inputs and secondary buttons (3:1 on bg and surface) */

  /* Accent: slate blue. Soft and quiet; it marks the one thing to do, never fills large areas. */
  --color-accent: #566a96; /* primary button, links, focus ring, active nav */
  --color-accent-strong: #44567d; /* hover and pressed */
  --color-accent-soft: #e9edf5; /* tinted ground: recommended price, selected row, badges */
  --color-on-accent: #ffffff; /* text and icons on accent fills */

  /* Status: audit findings and form errors only, always with a word. */
  --color-critical: #b42318;
  --color-critical-soft: #fdecea;
  --color-warning: #9a4d00;
  --color-warning-soft: #fdf1e3;
  --color-ok: #1f7a4d;
  --color-ok-soft: #e5f4ec;

  /* Type: Red Hat Display for headings and numbers (the logo is cut from it), Red Hat Text for reading. */
  --font-display: "Red Hat Display", "Red Hat Text", system-ui, sans-serif;
  --font-body: "Red Hat Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale, ratio 1.25 from a 17px body (unchanged from the current site). */
  --text-sm: 14px;
  --text-base: 17px;
  --text-lg: 21px;
  --text-xl: 27px;
  --text-2xl: 34px;
  --text-hero: clamp(40px, 5.6vw, 64px);

  /* Shape and layout. */
  --radius-sm: 6px; /* inputs, badges' inner elements */
  --radius: 10px; /* buttons, small cards */
  --radius-lg: 16px; /* cards, screenshots, panels */
  --radius-pill: 999px; /* badges */
  --shadow-float: 0 1px 2px rgb(17 20 27 / 0.06), 0 12px 32px rgb(17 20 27 / 0.08); /* menus, dialogs only */
  --focus-ring: 2px solid var(--color-accent);
  --page: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0f1218;
    --color-surface: #171b23;
    --color-text: #e9ecf2;
    --color-muted: #a2aab9;
    --color-border: #283040;
    --color-control: #687286;
    --color-accent: #9db0da;
    --color-accent-strong: #bbc8e6;
    --color-accent-soft: #1e2638;
    --color-on-accent: #0f1218; /* the dark-theme accent is light, so its text is dark */
    --color-critical: #ff8a80;
    --color-critical-soft: #3a1a19;
    --color-warning: #f5b35c;
    --color-warning-soft: #33240f;
    --color-ok: #6fd3a0;
    --color-ok-soft: #14302a;
    --shadow-float: 0 1px 2px rgb(0 0 0 / 0.5), 0 12px 32px rgb(0 0 0 / 0.45);
  }
}

/* ---- Base ---- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 var(--text-base) / 1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: var(--color-accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--color-accent-strong);
}
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}
h1 {
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
h2 {
  font-size: var(--text-2xl);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h3 {
  font-size: var(--text-lg);
  line-height: 1.3;
}
p {
  margin: 0;
  text-wrap: pretty;
}
b,
strong {
  font-weight: 600;
}
[hidden] {
  display: none !important;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: clamp(80px, 11vw, 152px) 0;
}
.band {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}
.section-head {
  max-width: 64ch;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.lead {
  margin-top: 16px;
  max-width: 58ch;
  color: var(--color-muted);
  font-size: var(--text-lg);
  line-height: 1.5;
}
.page-title {
  font-size: var(--text-2xl);
  line-height: 1.15;
}
.section-head p + p {
  margin-top: 16px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 500 var(--text-base) / 1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn-primary:hover {
  background: var(--color-accent-strong);
  color: var(--color-on-accent);
}
.btn-secondary {
  background: var(--color-surface);
  border-color: var(--color-control);
  color: var(--color-text);
}
.btn-secondary:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

/* ---- Header: logo, the two offers as tabs, this page's sections ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-surface);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--color-border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.wordmark {
  flex: none;
}
.site-header .wordmark img {
  width: auto;
  height: 28px;
}
.offers {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  font-size: var(--text-sm);
  font-weight: 500;
}
.offers a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
}
.offers a:hover {
  color: var(--color-text);
}
.offers a[aria-current="page"] {
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}
.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav a {
  color: var(--color-text);
  text-decoration: none;
}
.nav a:hover {
  color: var(--color-accent-strong);
  text-decoration: underline;
}
@media (max-width: 980px) {
  .nav {
    display: none;
  }
}
/* On a phone the header scrolls away instead of covering the page, with the logo and the tabs on one row. */
@media (max-width: 600px) {
  .site-header {
    position: static;
  }
  .site-header .wrap {
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
  }
  .site-header .wordmark img {
    height: 24px;
  }
  .offers a {
    padding: 7px 12px;
  }
  html {
    scroll-padding-top: 16px;
  }
}

/* ---- Hero ---- */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(56px, 9vw, 136px);
  padding-bottom: clamp(80px, 11vw, 152px);
}
.hero-sub {
  margin-top: 24px;
  max-width: 30ch;
  color: var(--color-muted);
  font: 500 clamp(23px, 2.4vw, 30px) / 1.3 var(--font-display);
  letter-spacing: -0.01em;
}
/* The home page's call to action, where the eye lands after the headline. */
.hero-cta {
  justify-self: end;
  max-width: 34ch;
}
.hero-cta .btn {
  min-height: 56px;
  padding: 0 32px;
  font-size: var(--text-lg);
}
/* The section after the hero shares its background, so the hero's own bottom padding is the gap. */
.hero + .section {
  padding-top: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 16px;
  color: var(--color-muted);
  font-size: var(--text-sm);
}
/* The offer's main promise, on the badge's tinted ground. */
.hero-note strong {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-size: var(--text-base);
}
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}
/* On a phone: the buttons full width, their note centred under them, and every section after the hero starting
   after a clear break, so the page reads as a sequence of screens rather than one long column. */
@media (max-width: 600px) {
  .hero .wrap {
    gap: 48px;
    padding-top: 40px;
    padding-bottom: 0;
  }
  .hero-sub {
    margin-top: 20px;
  }
  .hero-cta {
    justify-self: stretch;
    max-width: none;
  }
  .hero-cta .btn,
  .hero-actions .btn {
    width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .hero-note {
    margin-top: 14px;
    text-align: center;
  }
  .section,
  .hero + .section {
    padding: 128px 0;
  }
  .section-head {
    margin-bottom: 48px;
  }
}
/* Phone offer pages scroll like a stack of screens: a scroll that ends near a section settles with its content
   48px below the top (16px scroll padding + 32px margin). Proximity, not mandatory, so a section taller than
   the screen (price list, contact form) still scrolls freely. Only pages with a hero: the blog and legal pages
   are long reads. */
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  html:has(.hero) {
    scroll-snap-type: y proximity;
  }
  .site-header {
    scroll-snap-align: start;
  }
  .section > .wrap {
    scroll-snap-align: start;
    scroll-margin-top: 32px;
  }
  .site-footer {
    scroll-snap-align: end;
  }
}

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

/* What customers expect: four equal tiles, not a sequence, so not numbered. */
.needs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* A tile (here and on the AI page's slider): the icon beside the title, on its first line when it wraps, and
   the rest full width under them. */
.needs li,
.tile {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: start;
  align-items: start;
  column-gap: 14px;
  padding: clamp(22px, 2.5vw, 30px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.needs li > :not(svg, h3),
.tile > :not(svg, h3) {
  grid-column: 1 / -1;
}
.needs svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}
.needs p {
  margin-top: 10px;
  color: var(--color-muted);
}
@media (max-width: 1000px) {
  .needs {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .needs {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ---- Price list, set like the price board in a salon or café ---- */
.pricing .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.always {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.always li {
  display: flex;
  gap: 10px;
}
.always svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--color-accent);
}
.board {
  padding: clamp(6px, 1.5vw, 12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.board ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.board li {
  padding: clamp(16px, 2.5vw, 24px);
  border-radius: var(--radius);
}
.board li + li {
  border-top: 1px solid var(--color-border);
}
.board li.featured,
.board li.featured + li {
  border-top-color: transparent;
}
.board li.featured {
  background: var(--color-accent-soft);
}
.item {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.item h3 {
  flex: none;
}
.leader {
  flex: 1;
  min-width: 16px;
  border-bottom: 2px dotted var(--color-control);
  transform: translateY(-5px);
}
/* The price, with "včetně DPH" under it. */
.amount {
  display: inline-grid;
  flex: none;
  justify-items: end;
  font: 500 var(--text-xl) / 1.2 var(--font-display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.amount small {
  color: var(--color-muted);
  font: 400 var(--text-sm) / 1.4 var(--font-body);
}
.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font: 600 13px / 1.5 var(--font-body);
}
.featured .badge {
  background: var(--color-surface);
}
.item-desc {
  margin-top: 8px;
  max-width: 52ch;
}
.care {
  margin: 8px clamp(10px, 1vw, 12px) clamp(10px, 1vw, 12px);
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--color-bg);
  font-size: var(--text-sm);
}
/* A price, so set like the board's other prices and names. */
.care strong {
  font-family: var(--font-display);
  font-size: 15px;
}
@media (max-width: 900px) {
  .pricing .wrap {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 460px) {
  .item {
    flex-wrap: wrap;
    gap: 4px;
  }
  .leader {
    display: none;
  }
  .amount {
    width: 100%;
    justify-items: start;
  }
}

/* ---- Steps: a real sequence, so numbered ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font: 600 var(--text-base) / 1 var(--font-display);
}
.steps p {
  margin-top: 8px;
  color: var(--color-muted);
}
.steps-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .steps-4 {
    grid-template-columns: 1fr 1fr;
  }
}
/* In one column the number sits beside its title, so each step reads as one unit. */
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .steps li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 16px;
  }
  .steps li::before {
    grid-row: span 2;
    margin-bottom: 0;
  }
  .steps h3 {
    display: flex;
    align-items: center;
    min-height: 40px;
  }
  .steps p {
    margin-top: 4px;
  }
}

/* ---- FAQ ---- */
.faq {
  max-width: 820px;
  border-top: 1px solid var(--color-border);
}
.faq details {
  border-bottom: 1px solid var(--color-border);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font: 600 var(--text-lg) / 1.35 var(--font-display);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--color-muted);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  max-width: 64ch;
  padding-bottom: 20px;
  color: var(--color-muted);
}

/* ---- Contact: the page's closing call to action, the one slate band the brand allows ---- */
.contact {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact .lead {
  color: var(--color-on-accent);
}
.direct {
  display: grid;
  gap: 6px;
  margin-top: 32px;
  font-size: var(--text-lg);
}
.direct span {
  font-size: var(--text-sm);
}
.direct a {
  color: var(--color-on-accent);
  font-weight: 500;
  text-decoration-thickness: 1px;
}
.direct a:hover {
  color: var(--color-on-accent);
  text-decoration-thickness: 2px;
}
.direct a:focus-visible {
  outline-color: var(--color-on-accent);
}
.form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}
.field label span {
  color: var(--color-muted);
  font-weight: 400;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--color-control);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
}
.field textarea {
  min-height: 112px;
  resize: vertical;
}
.field ::placeholder {
  color: var(--color-muted);
  opacity: 1;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form .btn {
  width: 100%;
}
.form .btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.fine {
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.form-error {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-critical-soft);
  color: var(--color-critical);
  font-weight: 500;
}
.form-done {
  display: none;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  font-weight: 500;
}
.form.sent .form-done {
  display: block;
}
.form.sent .field,
.form.sent .btn,
.form.sent .fine,
.form.sent .form-error {
  display: none;
}
@media (max-width: 860px) {
  .contact .wrap {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .contact .wrap {
    gap: 40px;
  }
  .direct {
    margin-top: 28px;
  }
}

/* ---- AI page: an assistant answering from the company's own documents, with its source ---- */
.chat {
  width: min(100%, 420px);
  margin: 0;
  justify-self: center;
}
.chat-window {
  padding: 0 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  font-size: 15px;
  line-height: 1.5;
}
.chat-head {
  margin: 0 -18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}
.msg {
  max-width: 88%;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
}
.msg-user {
  margin-left: auto;
  border-bottom-right-radius: 4px;
  background: var(--color-accent-soft);
}
.msg-bot {
  border-bottom-left-radius: 4px;
  background: var(--color-bg);
}
.typing {
  display: flex;
  gap: 4px;
  max-height: 20px;
  padding: 6px 0;
  overflow: hidden;
}
.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-muted);
}
.answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}
.source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font: 600 13px / 1.6 var(--font-body);
}
.source svg {
  width: 14px;
  height: 14px;
}
@media (prefers-reduced-motion: no-preference) {
  .typing span {
    animation: blink 1s infinite;
  }
  .typing span:nth-child(2) {
    animation-delay: 0.15s;
  }
  .typing span:nth-child(3) {
    animation-delay: 0.3s;
  }
  .typing {
    animation: hide 0.01s linear 2.2s forwards;
  }
  .answer {
    animation: show 0.5s ease-out 2.2s forwards;
  }
}
@media (prefers-reduced-motion: reduce) {
  .typing {
    display: none;
  }
  .answer {
    max-height: none;
    opacity: 1;
  }
}
@keyframes blink {
  50% {
    opacity: 0.3;
  }
}
@keyframes hide {
  to {
    max-height: 0;
    padding: 0;
    opacity: 0;
  }
}
@keyframes show {
  to {
    max-height: 400px;
    opacity: 1;
  }
}

/* Tiles on a horizontal slider: scroll-snapped, arrows added by site.js. Three tiles per view on a desktop,
   two on a tablet, and on a phone one with the next one peeking in, so it is clear the row continues. */
.slider-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.slider-controls {
  display: flex;
  flex: none;
  gap: 8px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.slider-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-control);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}
.slider-btn:hover {
  border-color: var(--color-text);
}
.slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.slider-btn svg {
  width: 20px;
  height: 20px;
}
.slider-track {
  display: grid;
  grid-auto-columns: calc((100% - 2 * 20px) / 3);
  grid-auto-flow: column;
  gap: 20px;
  margin: 0;
  padding: 0 0 12px;
  overflow-x: auto;
  list-style: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}
/* With the arrows working, the scrollbar is only noise; without JavaScript it stays for mouse users. */
.slider-enhanced .slider-track {
  scrollbar-width: none;
}
.slider-enhanced .slider-track::-webkit-scrollbar {
  display: none;
}
/* The slider stretches its tiles to the tallest one; the last row takes the slack, so the examples sit at the foot. */
.tile {
  grid-template-rows: auto auto 1fr;
  scroll-snap-align: start;
}
.tile > svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}
.tile > p {
  margin-top: 10px;
  color: var(--color-muted);
}
.tile-examples {
  align-self: end;
  padding-top: 24px;
}
.tile-examples span {
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.tile-examples ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.tile-examples li {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font: 600 13px / 1.6 var(--font-body);
}
@media (max-width: 900px) {
  .slider-track {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
}
@media (max-width: 600px) {
  .slider-track {
    grid-auto-columns: 85%;
    gap: 12px;
  }
  .slider-controls {
    display: none;
  }
}
.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  max-width: 980px;
}
.principles p {
  margin-top: 8px;
  color: var(--color-muted);
}
@media (max-width: 700px) {
  .principles {
    grid-template-columns: 1fr;
  }
}

/* ---- Legal pages: one readable column ---- */
.legal .wrap > * {
  max-width: 68ch;
}
.legal .page-title {
  font-size: var(--text-2xl);
}
.legal section {
  margin-top: clamp(40px, 5vw, 56px);
}
.legal h2 {
  font-size: var(--text-xl);
}
.legal section p,
.legal .facts {
  margin-top: 14px;
}
.facts {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}
.summary {
  margin-top: 32px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.summary h2 {
  font-size: var(--text-lg);
}
.summary ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
}
.effective {
  margin-top: 48px;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* ---- Blog: the index is a quiet list (hairlines, not cards), an article one reading column ---- */
.nav a[aria-current="page"] {
  color: var(--color-text);
}
.blog-head {
  max-width: 64ch;
}
.posts {
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
}
.posts li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px 48px;
  padding: clamp(28px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--color-border);
}
.posts h2 {
  max-width: 32ch;
  font-size: var(--text-xl);
  line-height: 1.2;
}
.posts h2 a {
  color: var(--color-text);
  text-decoration: none;
}
.posts h2 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.posts p {
  max-width: 62ch;
  margin-top: 12px;
  color: var(--color-muted);
}
.posts-empty {
  margin-top: 40px;
  color: var(--color-muted);
}
.post-meta {
  padding-top: 6px;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.posts .post-meta {
  margin: 0;
}
.posts .post-meta span {
  display: block;
}
/* Date and reading time: stacked beside a list entry, one line ("…, 6 minut čtení") everywhere else. */
.article .post-meta span + span::before {
  content: ", ";
}
@media (max-width: 640px) {
  .posts li {
    grid-template-columns: 1fr;
  }
  .posts .post-meta {
    padding-top: 0;
  }
  .posts .post-meta span {
    display: inline;
  }
  .posts .post-meta span + span::before {
    content: ", ";
  }
}

.article {
  padding-top: clamp(48px, 7vw, 104px);
}
.article > .wrap > * {
  max-width: 46rem;
}
.crumb {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.article h1 {
  max-width: 20ch;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
}
.article .post-meta {
  margin-top: 20px;
  padding: 0;
}
.article .lead {
  margin-top: 24px;
}
.toc {
  margin-top: 40px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.toc h2 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0;
}
.toc ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.prose {
  margin-top: clamp(40px, 5vw, 56px);
  font-size: 18px;
  line-height: 1.7;
}
.prose > * + * {
  margin-top: 18px;
}
.prose h2 {
  margin-top: clamp(48px, 6vw, 72px);
  font-size: var(--text-xl);
  line-height: 1.2;
  scroll-margin-top: 96px;
}
.prose h3 {
  margin-top: 40px;
  font-size: var(--text-lg);
}
.prose h2 + *,
.prose h3 + * {
  margin-top: 14px;
}
.prose ul,
.prose ol {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
  padding-left: 22px;
}
.prose blockquote {
  margin: 22px 0 0;
  padding: 18px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.4;
}
.prose .checklist {
  gap: 14px;
  padding: 0;
  list-style: none;
}
.prose .checklist li {
  position: relative;
  padding-left: 36px;
}
.prose .checklist li::before {
  content: "";
  position: absolute;
  top: 0.28em;
  left: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--color-control);
  border-radius: var(--radius-sm);
}

/* The article's closing call to action: the page's one slate band, as on the home page. */
.closing {
  margin-top: clamp(80px, 11vw, 152px);
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.closing .wrap > * {
  max-width: 56ch;
}
.closing .lead {
  color: var(--color-on-accent);
}
.closing .btn {
  margin-top: 32px;
  background: var(--color-surface);
  color: var(--color-text);
}
.closing .btn:hover {
  background: var(--color-accent-soft);
  color: var(--color-text);
}
.closing .btn:focus-visible {
  outline-color: var(--color-on-accent);
}
@media (max-width: 600px) {
  .article {
    padding-top: 64px;
  }
  .closing {
    margin-top: 128px;
  }
  .closing .btn {
    width: 100%;
  }
}

/* ---- Footer ---- */
.site-footer {
  padding: 40px 0 56px;
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.site-footer .wordmark img {
  width: auto;
  height: 24px;
}
.site-footer address {
  margin-top: 14px;
  font-style: normal;
  line-height: 1.6;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-self: end;
  gap: 8px 22px;
}
.site-footer a {
  color: var(--color-muted);
}
.site-footer a:hover {
  color: var(--color-text);
}
/* On a phone the links stack into one tappable column instead of a ragged wrap. */
@media (max-width: 600px) {
  .site-footer {
    padding-top: 48px;
  }
  .site-footer .wrap {
    flex-direction: column;
    gap: 28px;
  }
  .site-footer nav {
    flex-direction: column;
    align-self: stretch;
    gap: 0;
    border-top: 1px solid var(--color-border);
  }
  .site-footer nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-base);
    text-decoration: none;
  }
}
