/* Dizajn systém fautor: farby, písmo a spoločné komponenty pre všetky stránky.
   Nová stránka: pripojiť tento súbor a assets/site.js, použiť .site-header, .dark.page-hero s .blob, .site-footer. */
:root {
  --navy-950: #0A1428;
  --navy-900: #0F1D38;
  --blue-600: #1F56D6;
  --blue-700: #1846B3;
  --blue-400: #4C8DFF;
  --cyan-400: #2EC4D6;

  --paper: #F6F8FB;
  --sheet: #FFFFFF;
  --ink: #16233A;
  --muted: #5B687D;
  --rule: #DCE3EE;
  --accent: #1F56D6;
  --accent-soft: #EAF1FE;
  --warn: #8A4B00;
  --warn-soft: #FFF1DC;
  --done: #2F6B3A;

  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B1222; --sheet: #121B2E; --ink: #E7ECF4; --muted: #9AA6BA; --rule: #263248;
    --accent: #86ABFF; --accent-soft: #18264A; --warn: #F2B766; --warn-soft: #2E2416; --done: #7FC28B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B1222; --sheet: #121B2E; --ink: #E7ECF4; --muted: #9AA6BA; --rule: #263248;
  --accent: #86ABFF; --accent-soft: #18264A; --warn: #F2B766; --warn-soft: #2E2416; --done: #7FC28B;
  color-scheme: dark;
}


/* Základ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; --header-h: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(860px, 100% - 32px); }

/* Hlavička: nad tmavým úvodom priehľadná, po zoscrollovaní biela s linkou. */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20; color: #fff;
  border-bottom: 1px solid rgb(255 255 255 / .14);
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.site-header a { color: inherit; }
.site-header .btn { color: #fff; }
.site-header.is-solid {
  background: color-mix(in srgb, var(--sheet) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--ink); border-color: var(--rule);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.logo { font-weight: 700; font-size: 24px; letter-spacing: -.012em; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--blue-400), var(--cyan-400)); display: grid; place-items: center; }
.logo-mark svg { width: 15px; height: 15px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a.link { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; opacity: .9; }
.nav a.link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 720px) { .nav a.link { display: none; } }

/* Tlačidlá a odkazy so šípkou */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--blue-600); color: #fff;
  transition: background .3s, transform .4s var(--ease-out), box-shadow .3s;
}
.btn:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 10px 24px rgb(31 86 214 / .35); }
.btn.light, .site-header:not(.is-solid) .btn { background: #fff; color: var(--navy-950); }
.btn.light:hover, .site-header:not(.is-solid) .btn:hover { background: #EAF1FE; box-shadow: 0 10px 24px rgb(0 0 0 / .25); }
.btn svg, .more svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.btn:hover svg, .more:hover svg { transform: translateX(4px); }
.more { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }

/* Tmavé sekcie s dýchajúcimi farebnými škvrnami (kruhové prechody). */
.dark { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-950); color: #fff; }
.blob { position: absolute; z-index: -1; width: 70vmax; aspect-ratio: 1; border-radius: 50%; pointer-events: none; opacity: .45; }
.blob.blue { background: radial-gradient(circle, var(--blue-400) 0%, transparent 62%); left: -25vmax; bottom: -38vmax; animation: breathe-a 8s ease-in-out infinite alternate; }
.blob.cyan { background: radial-gradient(circle, var(--cyan-400) 0%, transparent 62%); right: -30vmax; top: -40vmax; opacity: .3; animation: breathe-b 10.5s ease-in-out infinite alternate; }
@keyframes breathe-a { to { transform: scale(1.15) translate(4%, -4%); opacity: .7; } }
@keyframes breathe-b { to { transform: scale(1.2) translate(-4%, 5%); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

.eyebrow { font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.dark .eyebrow { color: #9FC0FF; }
.dark .eyebrow a { color: #fff; text-decoration: none; }
.dark .eyebrow a:hover { text-decoration: underline; }

/* Úvod podstránky */
.page-hero { padding: calc(var(--header-h) + 72px) 0 72px; }
.page-hero h1 { font-size: clamp(36px, 5.5vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.page-hero .lede { font-size: clamp(17px, 2vw, 19px); color: rgb(255 255 255 / .8); max-width: 40em; margin: 20px 0 0; }
@media (max-width: 720px) { .page-hero { padding: calc(var(--header-h) + 40px) 0 48px; } }

/* Päta */
.site-footer { background: var(--navy-950); color: rgb(255 255 255 / .6); font-size: 14px; padding: 32px 0 40px; border-top: 1px solid rgb(255 255 255 / .08); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer p { margin: 0; max-width: 60em; }
.site-footer strong { color: rgb(255 255 255 / .85); }
.site-footer a { color: inherit; }

/* Zbaliteľné časti kontrolného zoznamu (window.fautorSections v site.js) */
.collapsible[hidden] { display: none; }
.sec-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
.sec-count { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 4px; }
.sec-count.is-complete { color: var(--done); }
.sec-btn { font: inherit; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; background: var(--sheet); border: 1px solid var(--rule); color: var(--ink); border-radius: 999px; padding: 4px 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.sec-btn:hover { border-color: var(--accent); }
.sec-btn svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.collapsible.is-collapsed .sec-btn.toggle svg { transform: rotate(-90deg); }
.collapsible.is-collapsed > :not(.sec-head) { display: none; }
.collapsible.is-collapsed > .sec-head { border-bottom-width: 1px; border-bottom-color: var(--rule); }
.collapsible.is-collapsed.is-complete > .sec-head p { display: none; }
@media (prefers-reduced-motion: reduce) { .sec-btn svg { transition: none; } }

/* Plynulé vysunutie pri scrollovaní. Bez JS (trieda .js chýba) je obsah viditeľný hneď. */
.js .reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
