/* ============================================================================
   Advenia – produktový web: layout a komponenty.
   Bez frameworku, bez CDN, bez webfontov.
   ============================================================================ */

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--c-text); }
h1 { font-size: var(--fs-h1); letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.01em; }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-primary-hover); }

:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--c-primary); color: var(--c-on-primary);
  padding: .75rem 1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: var(--c-on-primary); }

/* --- Rozloženie -------------------------------------------------------- */

.wrap { width: min(100% - 2.5rem, var(--w-page)); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.section--surface { background: var(--c-surface); }
.section__intro { max-width: var(--w-narrow); }
.section__intro p { color: var(--c-muted); font-size: 1.125rem; }

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: bold;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 .75rem;
}

/* --- Hlavička ---------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 1.25rem; font-weight: bold; letter-spacing: -.02em;
  color: var(--c-text); text-decoration: none; margin-right: auto;
}
.brand:hover { color: var(--c-text); }
.brand__mark { width: 1.75rem; height: 1.75rem; flex: none; }

.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  color: var(--c-muted); text-decoration: none;
  padding: .5rem .75rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm);
}
.site-nav a:hover { color: var(--c-text); background: var(--c-surface); }

.header-tools { display: flex; align-items: center; gap: .5rem; }

.lang-switch {
  display: inline-flex; border: 1px solid var(--c-line);
  border-radius: var(--r-sm); overflow: hidden;
}
.lang-switch button {
  font: inherit; font-size: var(--fs-xs); font-weight: bold;
  padding: .375rem .625rem; border: 0; cursor: pointer;
  background: transparent; color: var(--c-muted);
}
.lang-switch button[aria-pressed="true"] { background: var(--c-primary); color: var(--c-on-primary); }

.nav-toggle { display: none; }

@media (max-width: 62rem) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; padding: 0;
    background: transparent; border: 1px solid var(--c-line);
    border-radius: var(--r-sm); color: var(--c-text); cursor: pointer;
  }
  .site-nav {
    display: none;
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1rem;
    background: var(--c-bg); border-bottom: 1px solid var(--c-line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .75rem .5rem; font-size: var(--fs-body); }
}

/* --- Tlačidlá ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-size: var(--fs-sm); font-weight: bold;
  padding: .6875rem 1.25rem; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn--primary:hover { background: var(--c-primary-hover); color: var(--c-on-primary); }
.btn--ghost { background: transparent; color: var(--c-text); border-color: var(--c-line); }
.btn--ghost:hover { background: var(--c-surface); color: var(--c-text); }
.btn--sm { padding: .5rem .875rem; font-size: var(--fs-xs); }

/* --- Hero -------------------------------------------------------------- */

.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--space-section); }
.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 56rem) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }

.hero__lead { font-size: 1.1875rem; color: var(--c-muted); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  margin: 2rem 0 0; padding: 0; list-style: none;
  font-size: var(--fs-sm); color: var(--c-muted);
}
.hero__facts li { display: flex; align-items: center; gap: .5rem; }
.hero__facts li::before {
  content: ""; width: .375rem; height: .375rem; border-radius: 50%;
  background: var(--c-success); flex: none;
}

/* --- Snímky obrazoviek ------------------------------------------------- */
/* PNG tému nesledujú, preto svetlý rámček v oboch témach – snímka tak číta
   ako vložené okno, nie ako svietiaca diera v tmavej stránke. */

.shot {
  background: var(--c-shot-bg);
  border: 1px solid var(--c-shot-line);
  border-radius: var(--r-md);
  box-shadow: var(--c-shot-shadow);
  overflow: hidden;
}
.shot img { width: 100%; }
.shot--phone { max-width: 17.5rem; margin-inline: auto; border-radius: var(--r-lg); }
figure { margin: 0; }
figcaption {
  margin-top: .75rem; font-size: var(--fs-sm); color: var(--c-muted);
  text-align: center;
}

.shots-pair {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  align-items: start;
}
.shots-trio {
  display: grid; gap: 1.5rem; margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

/* --- Nárok + zdôvodnenie (vzor z prezentácie) -------------------------- */

.claims { display: grid; gap: 1.5rem 2rem; margin: 0; padding: 0; }
@media (min-width: 40rem) { .claims { grid-template-columns: repeat(2, 1fr); } }
.claims > div { margin: 0; }
.claims dt { font-weight: bold; margin-bottom: .25rem; }
.claims dd { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); }

/* --- Striedavé pásy text/obrázok --------------------------------------- */

.split {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr; align-items: center;
}
/* Bez min-width:0 určuje šírku stĺpca min-content potomka – <pre> v sekcii
   Integrácie tak roztiahne celú stránku nad šírku telefónu. */
.split > *, .hero__grid > *, .cards > *, .shots-pair > *, .shots-trio > * { min-width: 0; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: -1; }
}
.split + .split { margin-top: var(--space-section); }

/* --- Karty ------------------------------------------------------------- */

.cards {
  display: grid; gap: 1.5rem; margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.card {
  background: var(--c-bg); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 1.5rem;
}
.section--surface .card { background: var(--c-bg); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--c-muted); font-size: var(--fs-sm); margin-bottom: 0; }
.card__icon { width: 2rem; height: 2rem; color: var(--c-primary); margin-bottom: 1rem; }

/* --- Kroky ------------------------------------------------------------- */

.steps {
  display: grid; gap: 2rem; margin-top: 2.5rem; padding: 0; list-style: none;
  counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; margin-bottom: .875rem;
  border-radius: 50%; background: var(--c-primary); color: var(--c-on-primary);
  font-weight: bold; font-size: var(--fs-sm);
}
.steps h3 { margin-bottom: .25rem; }
.steps p { color: var(--c-muted); font-size: var(--fs-sm); margin: 0; }

/* --- KPI pásik (vykreslený, nie snímka) -------------------------------- */

.kpi {
  display: grid; gap: .75rem; margin: 2rem 0 1rem; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
}
.kpi li {
  background: var(--c-bg); border: 1px solid var(--c-line);
  border-radius: var(--r-sm); padding: .875rem 1rem; text-align: center;
}
.kpi dt, .kpi__label { font-size: var(--fs-xs); color: var(--c-muted); }
.kpi__value { font-size: 1.5rem; font-weight: bold; letter-spacing: -.01em; }
.kpi__value--plus { color: var(--c-success); }
.kpi__note { font-size: var(--fs-sm); color: var(--c-muted); }

/* --- Zoznam kontrol prítomnosti ---------------------------------------- */

.badge {
  display: inline-block; font-size: var(--fs-xs); font-weight: bold;
  padding: .1875rem .5rem; border-radius: 999px; line-height: 1.4;
}
.badge--gps  { background: var(--c-success); color: #fff; }
.badge--ip   { background: var(--c-primary); color: #fff; }
.badge--qr   { background: var(--c-text);    color: var(--c-bg); }
.badge--tier {
  background: transparent; color: var(--c-link);
  border: 1px solid currentColor; text-transform: lowercase;
}

/* --- Kód --------------------------------------------------------------- */

.code {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 1.25rem;
  font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1.7;
  overflow-x: auto; margin: 0; max-width: 100%;
}
.section--surface .code { background: var(--c-bg); }
.code b { color: var(--c-link); font-weight: bold; }
.code i { color: var(--c-muted); font-style: normal; }

/* --- Cenník ------------------------------------------------------------ */

.pricing {
  display: grid; gap: 1.5rem; margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  align-items: start;
}
.plan {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--c-bg); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 1.75rem;
}
.plan--featured { border: 2px solid var(--c-primary); }
.plan__flag {
  position: absolute; top: -.75rem; left: 1.5rem;
  background: var(--c-primary); color: var(--c-on-primary);
  font-size: var(--fs-xs); font-weight: bold;
  padding: .1875rem .625rem; border-radius: 999px;
}
.plan__name { font-size: 1.375rem; margin-bottom: .25rem; }
.plan__for { color: var(--c-muted); font-size: var(--fs-sm); margin-bottom: 1.25rem; }
.plan__price { display: flex; align-items: baseline; gap: .375rem; }
.plan__amount { font-size: 2.25rem; font-weight: bold; letter-spacing: -.02em; }
.plan__per { color: var(--c-muted); font-size: var(--fs-sm); }
.plan__seat {
  margin: .375rem 0 1.25rem; padding-top: .75rem;
  border-top: 1px solid var(--c-line);
  color: var(--c-muted); font-size: var(--fs-sm);
}
.plan__seat b { color: var(--c-text); }
.plan ul { margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: var(--fs-sm); }
.plan li { position: relative; padding-left: 1.625rem; margin-bottom: .5rem; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: .875rem; height: .5rem;
  border-left: 2px solid var(--c-success); border-bottom: 2px solid var(--c-success);
  transform: rotate(-45deg);
}
.plan li.is-inherited { color: var(--c-muted); }
.plan .btn { margin-top: auto; }

.table-scroll { overflow-x: auto; margin-top: 3rem; }
.compare { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: var(--fs-sm); }
.compare th, .compare td {
  padding: .75rem 1rem; text-align: left;
  border-bottom: 1px solid var(--c-line);
}
.compare thead th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 7rem; }
.compare tbody th { font-weight: normal; }
.compare .yes { color: var(--c-success); font-weight: bold; }
.compare .no  { color: var(--c-muted); }
.pricing-note { margin-top: 1.25rem; color: var(--c-muted); font-size: var(--fs-sm); }

/* --- Zoznam dôvodov ---------------------------------------------------- */

.reasons { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.reasons li { position: relative; padding-left: 2rem; }
.reasons li::before {
  content: ""; position: absolute; left: .25rem; top: .5em;
  width: .875rem; height: .5rem;
  border-left: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary);
  transform: rotate(-45deg);
}

/* --- Časté otázky ------------------------------------------------------ */

.faq { display: grid; gap: 1.75rem 2.5rem; margin-top: 2.5rem; }
@media (min-width: 52rem) { .faq { grid-template-columns: repeat(2, 1fr); } }
.faq__item h3 { font-size: 1.0625rem; margin-bottom: .375rem; }
.faq__item p { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); }

/* --- Kontakt ----------------------------------------------------------- */

.contact-grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); margin-top: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 1.2fr .8fr; } }

.field { margin-bottom: 1.125rem; }
.field label { display: block; font-size: var(--fs-sm); font-weight: bold; margin-bottom: .375rem; }
.field .hint { font-weight: normal; color: var(--c-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--fs-sm);
  padding: .625rem .75rem; color: var(--c-text);
  background: var(--c-bg); border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 34rem) { .field-row { grid-template-columns: 1fr 1fr; } }

.consent { display: flex; flex-wrap: wrap; gap: .625rem; align-items: flex-start; font-size: var(--fs-sm); }
/* Súhlas je veta, nie menovka poľa – tučné by ju robilo nečitateľnou. */
.consent label { font-weight: normal; margin-bottom: 0; }
.consent input { width: 1rem; height: 1rem; margin-top: .3rem; flex: none; }

/* Hlásenie pri neplatnom poli. `width: 100%` je kvôli .consent — ten je flex
   riadok a bez toho by hlásenie skončilo vedľa zaškrtávacieho poľa. */
.field-error {
  width: 100%;
  margin: .375rem 0 0;
  font-size: var(--fs-sm);
  color: var(--c-danger);
}
.field [aria-invalid="true"] { border-color: var(--c-danger); }

.honeypot {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}

.form-status { margin-top: 1rem; font-size: var(--fs-sm); min-height: 1.5rem; }
.form-status[data-state="ok"]    { color: var(--c-success); font-weight: bold; }
.form-status[data-state="error"] { color: var(--c-danger);  font-weight: bold; }

.contact-facts { list-style: none; margin: 0; padding: 0; }
.contact-facts li { margin-bottom: 1.25rem; }
.contact-facts dt, .contact-facts .label {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-muted); margin-bottom: .125rem;
}

/* --- Pätička ----------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--c-line);
  padding-block: 2.5rem;
  font-size: var(--fs-sm); color: var(--c-muted);
}
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.site-footer nav { display: flex; gap: 1.25rem; margin-left: auto; }
.site-footer__note { margin: 1.5rem 0 0; font-size: var(--fs-xs); }

/* --- Podstránka -------------------------------------------------------- */

.doc { max-width: var(--w-narrow); }
.doc h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: .5rem; }

/* --- Pomocné ----------------------------------------------------------- */

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

