/* Triconform – veřejný web. Bez externích fontů a knihoven. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --surface: #ffffff;
  --text: #0f1b2d;
  --text-muted: #4a5568;
  --border: #d5dce6;
  --border-strong: #6b778a;
  --primary: #0b4f8a;
  --primary-hover: #083c6a;
  --primary-contrast: #ffffff;
  --accent-org: #1d5fa8;
  --accent-product: #0f7a5c;
  --accent-ai: #6b3fa0;
  --focus: #c2410c;
  --warn-bg: #fff7e6;
  --warn-border: #b45309;
  --error: #b42318;
  --ok: #0f7a5c;
  --hero-bg: linear-gradient(180deg, #eef4fb 0%, #ffffff 100%);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 6px;
  --container: 72rem;
  --measure: 44rem;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 4px 16px rgba(15, 27, 45, .06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1420;
    --bg-alt: #131c2b;
    --surface: #182335;
    --text: #e8edf4;
    --text-muted: #a9b4c4;
    --border: #2a3850;
    --border-strong: #71839f;
    --primary: #6cb2f0;
    --primary-hover: #94c7f5;
    --primary-contrast: #0d1420;
    --accent-org: #7ab4ee;
    --accent-product: #4fd1a5;
    --accent-ai: #c3a2ef;
    --focus: #fdba74;
    --warn-bg: #2b2210;
    --warn-border: #f59e0b;
    --error: #fca5a5;
    --ok: #4fd1a5;
    --hero-bg: linear-gradient(180deg, #111b2c 0%, #0d1420 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1420;
  --bg-alt: #131c2b;
  --surface: #182335;
  --text: #e8edf4;
  --text-muted: #a9b4c4;
  --border: #2a3850;
  --border-strong: #71839f;
  --primary: #6cb2f0;
  --primary-hover: #94c7f5;
  --primary-contrast: #0d1420;
  --accent-org: #7ab4ee;
  --accent-product: #4fd1a5;
  --accent-ai: #c3a2ef;
  --focus: #fdba74;
  --warn-bg: #2b2210;
  --warn-border: #f59e0b;
  --error: #fca5a5;
  --ok: #4fd1a5;
  --hero-bg: linear-gradient(180deg, #111b2c 0%, #0d1420 100%);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p, ul, ol, dl, table { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: .35rem; }

a { color: var(--primary); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--primary); color: var(--primary-contrast); padding: .75rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: var(--primary-contrast); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .container { padding: 0 1.5rem; } }
.measure { max-width: var(--measure); }

/* Hlavička */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; min-height: 44px; }
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small { font-weight: 500; color: var(--text-muted); font-size: .8rem; }
.header-tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav-toggle { display: none; }
.js .nav-toggle {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem;
  background: transparent; color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; cursor: pointer;
}
.site-nav { width: 100%; order: 3; }
.site-nav ul { list-style: none; margin: 0; padding: .25rem 0 .75rem; display: flex; flex-wrap: wrap; gap: .1rem .25rem; }
.site-nav li { margin: 0; }
.site-nav a {
  white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .65rem; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-size: .97rem;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -3px 0 var(--primary); border-radius: 0; }
.js .site-nav[data-open="false"] { display: none; }
.js .site-nav ul { flex-direction: column; }
.js .site-nav a { width: 100%; }
@media (min-width: 80rem) {
  .header-inner { flex-wrap: nowrap; }
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav[data-open="false"] { display: block; width: auto; margin-left: auto; order: 2; }
  .header-tools { order: 3; }
  .site-nav ul, .js .site-nav ul { flex-direction: row; padding: 0; flex-wrap: nowrap; }
  .js .site-nav a { width: auto; }
  .header-tools { margin-left: .5rem; }
}
.lang-switch { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.lang-switch li { margin: 0; }
.lang-switch a, .lang-switch span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .55rem; font-size: .9rem; border-radius: var(--radius-sm);
}
.lang-switch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-switch a { color: var(--text-muted); }
.theme-toggle { display: none; }
.js .theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: transparent; color: var(--text); cursor: pointer;
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.btn.header-cta { display: none; white-space: nowrap; }
@media (min-width: 48rem) { .btn.header-cta { display: inline-flex; } }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.25rem; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  line-height: 1.2; text-align: center;
}
.btn-primary { background: var(--primary); color: var(--primary-contrast); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-contrast); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--bg-alt); color: var(--primary-hover); }
.btn-sm { min-height: 44px; padding: .45rem .9rem; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }

/* Sekce */
.hero { background: var(--hero-bg); padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--border); }
@media (min-width: 48rem) { .hero { padding: 4.5rem 0 3.5rem; } }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); margin-bottom: .75rem; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--text); max-width: 46rem; }
.cta-note { color: var(--text-muted); font-size: .95rem; max-width: 46rem; }
.trust { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--text-muted); font-size: .95rem; }
.trust li { margin: 0; display: inline-flex; align-items: center; gap: .4rem; }
.trust li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent-product); flex: none; }

.section { padding: 3rem 0; }
@media (min-width: 48rem) { .section { padding: 4.5rem 0; } }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-intro { color: var(--text-muted); font-size: 1.1rem; max-width: 46rem; margin-bottom: 2rem; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); }
.card ul { color: var(--text-muted); }
.card .more { margin-top: auto; padding-top: .75rem; font-weight: 600; }
.plane { border-top: 4px solid var(--plane, var(--primary)); }
.plane-org { --plane: var(--accent-org); }
.plane-product { --plane: var(--accent-product); }
.plane-ai { --plane: var(--accent-ai); }
.plane-label { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--plane, var(--primary)); margin-bottom: .4rem; }
.plane-label svg { width: 22px; height: 22px; }

.tags { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { margin: 0; border: 1px solid var(--border-strong); border-radius: 999px; padding: .15rem .7rem; font-size: .88rem; color: var(--text); background: var(--surface); }

.status { display: inline-block; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: .1rem .6rem; border: 1px solid currentColor; margin-bottom: .6rem; align-self: flex-start; }
.status-now { color: var(--ok); }
.status-planned { color: var(--primary); }
.status-later { color: var(--text-muted); }

/* Kroky a časová osa */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; }
@media (min-width: 64rem) { .steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 40rem) and (max-width: 63.99rem) { .steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps > li {
  counter-increment: step; margin: 0; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem;
}
.steps > li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: var(--primary-contrast); font-weight: 700; margin-bottom: .6rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.steps p { color: var(--text-muted); margin: 0; font-size: .97rem; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--border-strong); }
.timeline > li { margin: 0 0 1.5rem; padding-left: 1.5rem; position: relative; }
.timeline > li::before { content: ""; position: absolute; left: -.6rem; top: .35rem; width: .9rem; height: .9rem; border-radius: 50%; background: var(--bg); border: 3px solid var(--primary); }
.timeline time, .timeline .when { font-weight: 700; color: var(--primary); display: block; }
.timeline h3 { margin: .2rem 0 .4rem; }
.timeline p { color: var(--text-muted); }

/* Poznámky */
.note { border: 1px solid var(--warn-border); border-left-width: 5px; background: var(--warn-bg); border-radius: var(--radius-sm); padding: 1rem 1.25rem; max-width: 52rem; }
.note > :last-child { margin-bottom: 0; }
.note-title { font-weight: 700; display: block; margin-bottom: .25rem; }
.legal-state { font-size: .9rem; color: var(--text-muted); margin-top: 1.5rem; }

.check-list, .x-list { list-style: none; padding: 0; }
.check-list li, .x-list li { padding-left: 1.8rem; position: relative; }
.check-list li::before, .x-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.check-list li::before { content: "✓"; color: var(--ok); }
.x-list li::before { content: "–"; color: var(--text-muted); }

/* Tabulky */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 1rem; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; }
caption { text-align: left; font-weight: 700; padding: 1rem 1rem .5rem; }
th, td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-top: 1px solid var(--border); }
thead th { border-top: 0; background: var(--bg-alt); font-size: .95rem; }
tbody th { font-weight: 600; }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: .75rem; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; min-height: 44px; list-style-position: outside; margin-left: 1rem; }
.faq details > div { padding: 0 1.25rem 1rem; color: var(--text-muted); }
.faq details > div > :last-child { margin-bottom: 0; }

/* CTA pás */
.cta-band { background: var(--primary); color: var(--primary-contrast); padding: 3rem 0; }
.cta-band h2 { color: inherit; }
.cta-band p { max-width: 46rem; }
.cta-band .btn-primary { background: var(--primary-contrast); color: var(--primary); }
.cta-band .btn-primary:hover { background: var(--bg-alt); color: var(--primary-hover); }
.cta-band .btn-secondary { color: var(--primary-contrast); border-color: var(--primary-contrast); }
.cta-band .btn-secondary:hover { background: transparent; color: var(--primary-contrast); text-decoration: underline; }
.cta-band a:not(.btn) { color: inherit; }
.cta-band :focus-visible { outline-color: var(--primary-contrast); }

/* Prose (právní stránky) */
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.45rem; margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; }
dl.facts dt { font-weight: 600; }
dl.facts dd { margin: 0; }
@media (max-width: 30rem) { dl.facts { grid-template-columns: 1fr; } dl.facts dd { margin-bottom: .5rem; } }

/* Formulář */
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); max-width: 44rem; }
.field { margin-bottom: 1.1rem; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .3rem; }
.req { font-weight: 400; color: var(--text-muted); font-size: .9rem; }
.hint { display: block; color: var(--text-muted); font-size: .92rem; margin-bottom: .35rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: .6rem .75rem; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
textarea { min-height: 7rem; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.choice { display: flex; align-items: flex-start; gap: .6rem; min-height: 44px; padding: .35rem 0; }
.choice input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; flex: none; accent-color: var(--primary); }
.choice label { font-weight: 400; margin: 0; }
.field-error { display: block; color: var(--error); font-weight: 600; font-size: .95rem; margin-top: .3rem; }
.field-error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--error) !important; border-width: 2px !important; }
.error-summary { border: 2px solid var(--error); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.error-summary h2 { font-size: 1.1rem; color: var(--error); margin-bottom: .4rem; }
.error-summary ul { margin: 0; }
.form-status { margin-top: 1rem; }
.form-status:empty { display: none; }
.form-status .note { margin: 0; }
.privacy-note { font-size: .93rem; color: var(--text-muted); }
.copy-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.mail { font-weight: 700; }

/* Patička */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 2.5rem 0 2rem; font-size: .95rem; color: var(--text-muted); margin-top: 0; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: var(--text); margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.footer-disclaimer { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.25rem; }
.footer-disclaimer strong { color: var(--text); }

/* Logo vrstvy */
.logo-org { fill: var(--accent-org); }
.logo-product { fill: var(--accent-product); }
.logo-ai { fill: var(--accent-ai); }

/* 404 */
.notfound { padding: 4rem 0; }
.notfound section + section { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .card, .steps > li, .note, .form, input, select, textarea { border: 1px solid CanvasText; }
  .plane { border-top: 4px solid CanvasText; }
  :focus-visible { outline: 3px solid Highlight; }
  .trust li::before, .timeline > li::before { forced-color-adjust: auto; }
}
@media print {
  .site-header, .site-footer nav, .cta-band, .actions, .skip-link { display: none !important; }
  body { font-size: 11pt; }
  a { color: inherit; }
}
.mt { margin-top: 1.5rem; }
@media (max-width: 30rem) {
  .header-inner { gap: .5rem; }
  .brand small, .lang-switch span { display: none; }
  .header-tools { gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
}

/* SaaS úpravy (2. 11. 2026): čtyři kroky, rovina Software, ukázka „Tento týden“, ceník, přihlášení v menu */
@media (min-width: 40rem) { .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plane-sw { --plane: var(--primary); }
.status-alert { color: var(--error); }
.demo-caption { font-size: .9rem; color: var(--text-muted); margin: 0 0 .75rem; }
.week { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.week li { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; margin: 0; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.week .status { margin: 0; flex: none; }
.plans .plan { display: flex; flex-direction: column; }
.plan h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; }
.plan-size { font-size: .95rem; font-weight: 400; color: var(--text-muted); }
.plan-big { font-size: 1.15rem; margin: .25rem 0 .75rem; }
.plan-big strong { font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.price-list { display: grid; grid-template-columns: 1fr max-content; gap: .45rem 1rem; margin: .5rem 0 .75rem; }
.price-list dt { margin: 0; }
.price-list dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-list dt, .price-list dd { padding-bottom: .45rem; border-bottom: 1px solid var(--border); }
.plan-note { font-size: .9rem; color: var(--text-muted); }
.plan .btn { margin-top: auto; align-self: flex-start; }
@media (min-width: 80rem) { .site-nav .nav-login { margin-left: .5rem; padding-left: .5rem; border-left: 1px solid var(--border); } }
