/* ──────────────────────────────────────────────────────────────────────────
   Verejná (marketingová) časť webu — landing page a právne stránky.
   Načítava sa až za app.css, takže preberá jeho premenné aj .btn štýly.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --ink: #0b1220;
  --ink-soft: #1c2942;
  --page-max: 1160px;
  --narrow-max: 780px;
}

body {
  background: var(--surface);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* ── Navigácia ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand img { display: block; border-radius: 11px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.brand-claim {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.site-nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 0.9375rem;
  font-weight: 500;
}
.site-nav-links a { color: var(--muted); }
.site-nav-links a:hover { color: var(--accent); text-decoration: none; }

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Spoločné prvky sekcií ── */
.btn-lg { padding: 13px 24px; font-size: 1rem; }
.btn-on-dark { background: #fff; color: var(--ink); }
.btn-on-dark:hover { background: #e8eefb; color: var(--ink); }
.btn-ghost-on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost-on-dark:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
}

.section { padding: 88px 0; }
.section--alt {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
}
.section-inner--narrow { max-width: var(--narrow-max); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}
.section-lead {
  margin-top: 16px;
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.6;
}
.section-foot { margin-top: 28px; }

/* ── Hero ── */
.hero {
  background:
    radial-gradient(1000px 420px at 12% -8%, #dbe7fe 0%, rgba(219, 231, 254, 0) 65%),
    radial-gradient(760px 360px at 96% 4%, #e7f0ff 0%, rgba(231, 240, 255, 0) 70%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 76px 24px 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero .lead {
  margin-top: 22px;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34em;
}
.hero .lead strong { font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--muted);
}
.hero-notes li { display: flex; align-items: center; gap: 8px; }
.hero-notes li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}

/* ── Ukázka karty v hero ── */
.hero-visual { position: relative; }

.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
  padding: 22px 24px 18px;
}

.mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--muted);
}
.mock-airline {
  background: #f1c933;
  color: #073590;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mock-route { font-weight: 600; color: var(--text); }

.mock-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.mock-now {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.mock-was {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 1.0625rem;
}
.mock-drop {
  background: var(--success-soft);
  color: var(--success);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 3px 9px;
  border-radius: 6px;
}

.mock-chart {
  display: block;
  width: 100%;
  height: 92px;
  margin: 14px 0 10px;
}

.mock-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}
.mock-family { font-weight: 600; color: var(--text); }

.mock-toast {
  position: absolute;
  left: -26px;
  bottom: -54px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 330px;
  padding: 13px 17px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(11, 18, 32, 0.32);
}
.mock-toast img { border-radius: 9px; flex-shrink: 0; }
.mock-toast div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.mock-toast strong { font-size: 0.9375rem; }
.mock-toast span {
  font-size: 0.8125rem;
  color: #b9c6dd;
}

/* ── Pás s číslami ── */
.stats-band {
  background: var(--ink);
  color: #fff;
}
.stats-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 34px 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.875rem;
  color: #a9b8d2;
}

/* ── Kroky ── */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  counter-reset: none;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--ink);
}
.step p { color: var(--muted); line-height: 1.62; font-size: 0.9375rem; }

/* ── Funkcie ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
}
.feature p { color: var(--muted); line-height: 1.62; font-size: 0.9375rem; }

/* ── Dvojstĺpec „čím sa to líši" ── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: start;
}
.split-copy h2 {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 16px;
}
.split-copy > p { color: var(--muted); line-height: 1.65; }

.check-list, .x-list { list-style: none; margin-top: 24px; }
.check-list li, .x-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9375rem;
}
.check-list li strong, .x-list li strong { color: var(--text); font-weight: 600; }
.check-list li::before, .x-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
}
.check-list li::before {
  background: var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.x-list li::before {
  background: #e2e8f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
}

.split-aside {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
}
.split-aside h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.split-aside > p { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.split-aside .x-list li { margin-bottom: 14px; }
.split-aside .x-list li:last-child { margin-bottom: 0; }

/* ── Aerolinky ── */
.airline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.airline-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px 24px;
  box-shadow: var(--shadow);
}
/* Logá aeroliniek si nesú vlastné farebné pozadie, tak im ho tu nepridávame. */
.airline-logo {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.airline-logo img {
  width: 100%;
  max-width: 174px;
  height: auto;
  border-radius: 8px;
}
.airline-tile h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.airline-tile p { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

/* ── FAQ ── */
.faq {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  list-style: none;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -5px;
  border-right: 2.4px solid var(--muted);
  border-bottom: 2.4px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -8px; }
.faq summary:hover { background: var(--surface-hover); }
.faq details > p {
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 62em;
}

/* ── Záverečná výzva ── */
.cta {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 60%, #14265c 100%);
  color: #fff;
}
.cta-inner {
  max-width: var(--narrow-max);
  margin: 0 auto;
  padding: 84px 24px;
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
}
.cta p {
  margin-top: 16px;
  font-size: 1.0625rem;
  color: #d3e0fb;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.cta-note { font-size: 0.9375rem; }
.cta-note a, .cta p a { color: #fff; text-decoration: underline; }

/* ── Právne stránky ── */
.legal {
  max-width: var(--narrow-max);
  margin: 0 auto;
  padding: 64px 24px 88px;
}
.legal h1 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.legal .legal-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 38px 0 12px;
  letter-spacing: -0.015em;
}
.legal h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}
.legal p, .legal li {
  color: var(--ink-soft);
  line-height: 1.7;
}
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 8px; }
.legal .legal-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
}
.legal .legal-box p:last-child { margin-bottom: 0; }
.legal dl { margin-bottom: 16px; }
.legal dt { font-weight: 600; color: var(--text); margin-top: 14px; }
.legal dd { margin-left: 0; color: var(--ink-soft); line-height: 1.7; }

/* ── Pätička ── */
.site-footer {
  background: var(--ink);
  color: #c3d0e6;
}
.site-footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 58px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.site-footer-brand p {
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 34em;
  color: #9fb0cc;
}
.brand--footer { color: #fff; }
.brand--footer .brand-name { font-size: 1rem; }

.site-footer-col { display: flex; flex-direction: column; gap: 10px; }
.site-footer-col h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7f93b4;
  margin-bottom: 4px;
}
.site-footer-col a { color: #c3d0e6; font-size: 0.9375rem; }
.site-footer-col a:hover { color: #fff; }

.site-footer-bottom {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 18px 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.875rem;
  color: #8398b8;
}

/* ── Prihlasovacie stránky s verejnou hlavičkou ── */
.auth-shell {
  min-height: 62vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 24px 72px;
  background:
    radial-gradient(760px 320px at 50% -10%, #dbe7fe 0%, rgba(219, 231, 254, 0) 70%),
    var(--surface);
}
.auth-shell .card {
  width: 100%;
  max-width: 430px;
  margin-bottom: 0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}
/* Nadpis karty nemá byť verzálkový ako sekčné nadpisy v aplikácii. */
.auth-shell .card h2.auth-title {
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 1.375rem;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ── Responzivita ── */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 64px; padding-top: 56px; }
  .hero .lead { max-width: none; }
  .mock-toast { position: static; margin-top: 18px; max-width: none; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .steps, .feature-grid, .airline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .site-nav-links { display: none; }
}

@media (max-width: 620px) {
  .site-nav-inner { padding: 10px 16px; gap: 12px; }
  .site-nav-actions { margin-left: auto; }
  .nav-cta { display: none; }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .brand-name { font-size: 0.9375rem; }

  .section { padding: 62px 0; }
  .steps, .feature-grid, .airline-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; gap: 18px; }
  .site-footer-inner { grid-template-columns: 1fr; }
  .brand-claim { display: none; }
  .hero-actions .btn { width: 100%; }
  .cta-actions .btn { width: 100%; }
  .mock-now { font-size: 2rem; }
}
