/* =========================================================================
   Para — design tokens odvozené z brand-manuálu (brand/Design.pdf)
   Paleta: brand/colors.txt · Font: Plus Jakarta Sans
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap");

:root {
  /* Primární a neutrální barvy (manuál str. 4) */
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --green: #22c55e;
  --sky: #0ea5e9;
  --navy: #0f172a;
  --slate: #334155;
  --mist: #f1f5f9;
  --white: #ffffff;

  /* Sémantická barva chyby/upozornění — manuál uvádí jen tečku bez hex kódu,
     dosazeno z stejné tonální rodiny (red-500); ověřit u zadavatele, pokud
     má být přesná shoda s jiným systémem. */
  --danger: #ef4444;
  --danger-soft: #fef2f2;

  --green-soft: #f0fdf4;
  --sky-soft: #f0f9ff;
  --indigo-soft: #eef2ff;
  --violet-soft: #f5f3ff;

  --amber: #f59e0b;
  --amber-soft: #fffbeb;

  /* Gradient akcent — z maskota a hero karty v manuálu (violet → indigo) */
  --gradient-brand: linear-gradient(135deg, var(--violet), var(--indigo));

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Typová škála (manuál str. 5) */
  --h1-size: 40px;
  --h1-weight: 800;
  --h2-size: 28px;
  --h2-weight: 700;
  --h3-size: 20px;
  --h3-weight: 600;
  --body-size: 16px;
  --body-weight: 400;
  --caption-size: 13px;
  --caption-weight: 500;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-float: 0 20px 60px rgba(99, 102, 241, 0.18);

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, p { margin: 0; }

h1 { font-size: var(--h1-size); font-weight: var(--h1-weight); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--h2-size); font-weight: var(--h2-weight); line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: var(--h3-size); font-weight: var(--h3-weight); line-height: 1.3; }
p { font-size: var(--body-size); font-weight: var(--body-weight); color: var(--slate); }
.caption { font-size: var(--caption-size); font-weight: var(--caption-weight); color: var(--slate); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
}

/* --- Tlačítka (manuál str. 8) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--indigo);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.28);
}
.btn-primary:hover { background: #5254e0; box-shadow: 0 10px 24px rgba(99, 102, 241, 0.36); }

.btn-secondary {
  background: var(--mist);
  color: var(--navy);
}
.btn-secondary:hover { background: #e2e8f0; }

.btn-ghost {
  background: var(--white);
  color: var(--indigo);
  border-color: #c7d2fe;
}
.btn-ghost:hover { background: var(--indigo-soft); }

.btn-lg { padding: 16px 30px; font-size: 16px; border-radius: var(--radius-md); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* --- Chip / stav --- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}
.chip-green { background: var(--green-soft); color: #15803d; }
.chip-amber { background: var(--amber-soft); color: #b45309; }
.chip-indigo { background: var(--indigo-soft); color: #4338ca; }
.chip-sky { background: var(--sky-soft); color: #0369a1; }

/* --- Karty --- */
.card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* --- Ikony (liniové, 24px, 1.5px, zaoblené) --- */
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Maskot: čistý transparentní cutout (viz web/assets/img/mascot) ---
   Jemný drop-shadow filtr maskota opticky "nadzvedne" nad plochu, ať už
   je pod ním světlé, nebo tmavé pozadí — bez rámečku/karty. */
.mascot-img {
  filter: drop-shadow(0 14px 20px rgba(15, 23, 42, 0.22));
}

/* --- Skip link (přístupnost) --- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #eef1f6;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 36px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--slate);
}
.nav-links a:hover { color: var(--indigo); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
  background:
    /* Fadeuje radiály hladce do bílé nahoře i dole, ať sekce nezačíná/nekončí
       ostrou hranou — radiály samy o sobě mají střed těsně nad/na okraji
       sekce, takže bez týhle vrstvy jsou tam plnou silou hned od hrany.
       Barevná zóna (8–78 %) je schválně široká, ať fialová pokryje většinu
       sekce, ne jen tenký proužek u okrajů. */
    linear-gradient(to bottom, var(--white) 0%, transparent 8%, transparent 78%, var(--white) 100%),
    radial-gradient(950px 600px at 85% -5%, rgba(139, 92, 246, 0.18), transparent 68%),
    radial-gradient(750px 460px at 5% 20%, rgba(99, 102, 241, 0.13), transparent 68%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}
.hero-copy h1 { margin-bottom: 18px; }
.hero-copy h1 .accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p.lead {
  font-size: 18px;
  color: var(--slate);
  max-width: 480px;
  margin-bottom: 30px;
}
.hero-eyebrow { margin-bottom: 16px; }
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-cta-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--slate);
}
.hero-cta-note .icon { width: 16px; height: 16px; color: var(--green); }
.hero-trust {
  display: flex;
  gap: 22px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--slate); font-weight: 500; }
.hero-trust-item .icon { width: 18px; height: 18px; color: var(--indigo); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual-frame {
  position: relative;
  max-width: 400px;
  width: 100%;
}
.hero-visual-frame img { position: relative; z-index: 2; }
.hero-visual-glow {
  position: absolute;
  inset: -20%;
  background: var(--gradient-brand);
  opacity: 0.22;
  filter: blur(60px);
  border-radius: 50%;
  z-index: 1;
}
.hero-floating-card {
  position: absolute;
  z-index: 3;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  padding: 10px 14px;
  font-size: 12.5px;
}
.hero-floating-card .fc-label { color: var(--slate); font-weight: 500; }
.hero-floating-card .fc-value { font-size: 16px; font-weight: 700; color: var(--navy); }
.hero-floating-card .fc-value.pos { color: #15803d; }
.card-1 { top: 6%; left: -8%; }
.card-2 { bottom: 10%; right: -10%; background: var(--navy); color: var(--white); border-color: var(--navy); }
.card-2 .fc-label { color: #94a3b8; }
.card-2 .fc-value { color: var(--white); }

/* =========================================================================
   Obecné sekce
   ========================================================================= */
section { padding: 84px 0; }
.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left { margin: 0 0 40px; text-align: left; }
.section-head .eyebrow { display: flex; justify-content: center; margin-bottom: 12px; }
.section-head.left .eyebrow { justify-content: flex-start; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 16.5px; }

.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy p { color: #cbd5e1; }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

/* =========================================================================
   PROBLÉM → ŘEŠENÍ
   ========================================================================= */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.compare-card {
  border-radius: var(--radius-lg);
  padding: 32px;
}
.compare-before {
  background: var(--white);
  border: 1px solid #e2e8f0;
}
.compare-after {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.compare-after::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 90% 0%, rgba(139, 92, 246, 0.35), transparent 60%);
}
.compare-card h3 { margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.compare-before h3 { color: var(--danger); }
.compare-after h3 { color: #a5b4fc; position: relative; }
.compare-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; position: relative; }
.compare-list li { display: flex; gap: 10px; font-size: 15px; }
.compare-before .compare-list li { color: var(--slate); }
.compare-after .compare-list li { color: #e2e8f0; }
.compare-list .icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.compare-before .icon { color: var(--danger); }
.compare-after .icon { color: var(--green); }

/* =========================================================================
   ŽIVÁ UKÁZKA / TRIAL CHAT
   ========================================================================= */
.demo-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid #e2e8f0;
}
.demo-side {
  background: var(--navy);
  color: var(--white);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.demo-side img { width: 96px; }
.demo-side h3 { color: var(--white); }
.demo-side p { color: #94a3b8; font-size: 14.5px; }
.demo-example-q {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13.5px;
  color: #cbd5e1;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.demo-example-q:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.demo-quota { margin-top: auto; font-size: 12.5px; color: #64748b; }
.demo-quota strong { color: #cbd5e1; }

.demo-main {
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  min-height: 460px;
}
.demo-thread {
  flex: 1;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  max-height: 460px;
}
.demo-msg { display: flex; gap: 10px; max-width: 92%; }
.demo-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.demo-msg .avatar { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; overflow: hidden; background: var(--indigo-soft); }
.demo-msg .avatar img { width: 100%; height: 100%; object-fit: cover; }
.demo-msg .avatar.user-avatar { background: var(--navy); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 12px; font-weight: 700; }
.demo-bubble {
  padding: 12px 15px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.demo-msg.assistant .demo-bubble { background: var(--white); border: 1px solid #e2e8f0; border-top-left-radius: 4px; }
.demo-msg.user .demo-bubble { background: var(--indigo); color: var(--white); border-top-right-radius: 4px; }
.demo-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; margin-left: 42px; }
.demo-source-tag {
  font-size: 11.5px;
  font-weight: 600;
  background: var(--indigo-soft);
  color: #4338ca;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
}
.demo-source-tag:hover { background: #e0e3ff; }
.demo-empty { margin: auto; text-align: center; color: #94a3b8; font-size: 13.5px; max-width: 260px; }
.demo-typing { display: flex; gap: 4px; padding: 4px 0; }
.demo-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #a5b4fc;
  animation: typingBounce 1.1s infinite ease-in-out;
}
.demo-typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.demo-composer {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
  background: var(--white);
}
.demo-composer textarea {
  flex: 1;
  resize: none;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 14.5px;
  min-height: 44px;
  max-height: 120px;
  color: var(--navy);
}
.demo-composer textarea:focus { outline: 2px solid var(--indigo); outline-offset: -1px; }
.demo-composer textarea:disabled { background: var(--mist); color: #94a3b8; }
.demo-send-btn {
  border: none;
  background: var(--indigo);
  color: var(--white);
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-send-btn:disabled { background: #c7d2fe; cursor: not-allowed; }
.demo-send-btn svg { width: 20px; height: 20px; }

.demo-locked {
  margin: 26px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--indigo-soft);
  border: 1px solid #c7d2fe;
  text-align: center;
}
.demo-locked h3 { margin-bottom: 6px; }
.demo-locked p { margin-bottom: 16px; font-size: 14px; }
.demo-error {
  margin: 16px 26px 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: #b91c1c;
  font-size: 13.5px;
}
.hidden { display: none !important; }

/* =========================================================================
   PRO KOHO
   ========================================================================= */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.audience-card {
  padding: 34px;
  position: relative;
}
.audience-card .icon-circle { background: var(--indigo-soft); color: var(--indigo); margin-bottom: 18px; }
.audience-card h3 { margin-bottom: 10px; font-size: 22px; }
.audience-card p.desc { margin-bottom: 22px; }
.audience-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.audience-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--slate); align-items: flex-start; }
.audience-list .icon { width: 18px; height: 18px; color: var(--green); margin-top: 2px; }
.audience-card.highlight { border: 1.5px solid var(--indigo); }
.audience-badge {
  position: absolute;
  top: -12px;
  right: 28px;
}

/* =========================================================================
   KALKULAČKY
   ========================================================================= */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.calc-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.calc-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.calc-card .icon-circle { background: var(--violet-soft); color: var(--violet); }
.calc-preview {
  background: var(--mist);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc-preview-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.calc-preview-row .label { color: var(--slate); }
.calc-preview-row .value { font-weight: 700; color: var(--navy); }
.calc-preview-row .value.accent { color: #15803d; }
.calc-bar { height: 8px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
.calc-bar-fill { height: 100%; background: var(--gradient-brand); border-radius: 4px; }

/* =========================================================================
   CENÍK
   ========================================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.price-card {
  padding: 34px;
  display: flex;
  flex-direction: column;
}
.price-card.pro {
  background: var(--navy);
  color: var(--white);
  border: none;
  position: relative;
}
.price-card.pro::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.price-card h3 { margin-bottom: 4px; }
.price-card.pro h3 { color: var(--white); }
.price-plan-desc { font-size: 14px; margin-bottom: 22px; }
.price-card.pro .price-plan-desc { color: #94a3b8; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.price-amount .num { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.price-amount .period { font-size: 14px; color: var(--slate); }
.price-card.pro .price-amount .period { color: #94a3b8; }
.price-features { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.price-features li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.price-features .icon { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; color: var(--green); }
.price-card.pro .price-features li { color: #e2e8f0; }
.price-badge { position: absolute; top: -13px; left: 34px; }

/* =========================================================================
   DISCLAIMER
   ========================================================================= */
.disclaimer-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--amber-soft);
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 22px 26px;
}
.disclaimer-banner .icon-circle { background: #fef3c7; color: #b45309; }
.disclaimer-banner h3 { color: #92400e; margin-bottom: 6px; font-size: 16px; }
.disclaimer-banner p { color: #92400e; font-size: 14px; margin: 0; }

/* =========================================================================
   FINAL CTA
   ========================================================================= */
.final-cta {
  border-radius: var(--radius-lg);
  background: var(--navy);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 260px at 85% 20%, rgba(139, 92, 246, 0.4), transparent 65%);
}
.final-cta-copy { position: relative; max-width: 460px; }
.final-cta-copy h2 { color: var(--white); margin-bottom: 12px; }
.final-cta-copy p { color: #cbd5e1; margin-bottom: 0; }
.final-cta-actions { position: relative; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; flex-shrink: 0; }
.final-cta img { width: 110px; position: relative; }
.final-cta-visual { display: flex; align-items: flex-end; gap: 24px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
footer { padding: 48px 0 32px; border-top: 1px solid #eef1f6; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo img { height: 26px; }
.footer-links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: var(--slate); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--indigo); }
.footer-copy { font-size: 12.5px; color: #94a3b8; width: 100%; margin-top: 8px; }

/* =========================================================================
   CO VŠECHNO PARA UMÍ (feature grid)
   ========================================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card .icon-circle { background: var(--indigo-soft); color: var(--indigo); margin-bottom: 14px; }
.feature-card h3 { font-size: 18px; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.feature-card p { font-size: 14px; color: var(--slate); flex: 1; }
.feature-card .feature-link {
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--indigo);
  display: flex;
  align-items: center;
  gap: 5px;
}
.feature-card .feature-link svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(99, 102, 241, 0.16);
  border-color: #c7d2fe;
}
.feature-card:hover .feature-link svg { transform: translateX(3px); }
.feature-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--violet-soft);
  color: #6d28d9;
}

/* =========================================================================
   JEMNÉ ANIMACE — plovoucí maskot, pulzující glow, odhalení při scrollu.
   Vše vypnuto pro prefers-reduced-motion (viz media query úplně dole).
   ========================================================================= */
@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1.2deg); }
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.18; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.06); }
}
.hero-visual-frame img { animation: mascotFloat 6s ease-in-out infinite; }
.hero-visual-glow { animation: glowPulse 5s ease-in-out infinite; }
.hero-floating-card { animation: cardFloat 4.5s ease-in-out infinite; }
.hero-floating-card.card-2 { animation-delay: 1.4s; }

/* Rollout — nadpisy se "vysouvají" zpod masky (clip-path), místo aby jen
   naskočily. Funguje bez extra HTML wrapperu, clip-path se dá animovat
   přímo na h1/h2. Hero h1 hraje hned při načtení (vždy viditelný nad
   ohybem), section h2 čeká na stejný .is-visible signál jako zbytek
   .reveal bloku, ve kterém sedí. */
@keyframes rollUp {
  from { clip-path: inset(100% 0 0 0); transform: translateY(14px); }
  to { clip-path: inset(0 0 0 0); transform: translateY(0); }
}
@keyframes fadeRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy h1 { animation: rollUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero-eyebrow { animation: fadeRise 0.7s ease 0s both; }
.hero-copy p.lead { animation: fadeRise 0.7s ease 0.28s both; }
.hero-cta-row { animation: fadeRise 0.7s ease 0.42s both; }
.hero-cta-note { animation: fadeRise 0.7s ease 0.52s both; }
.hero-trust { animation: fadeRise 0.7s ease 0.6s both; }

.js-ready .section-head h2 {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}
.section-head.is-visible h2 { clip-path: inset(0 0 0 0); }

/* .reveal je viditelný VŽDY, dokud main.js nepotvrdí, že běží (třída
   .js-ready na <html>) — bez JS (nebo dokud se nenačte) je tak obsah vidět
   normálně, žádné riziko "navždy neviditelné sekce". Teprve pak se schová
   a čeká na .is-visible od IntersectionObserveru (s vlastní pojistkou —
   viz main.js). */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { transition-delay: calc(var(--stagger-i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  .hero-visual-frame img,
  .hero-visual-glow,
  .hero-floating-card,
  .hero-copy h1,
  .hero-eyebrow,
  .hero-copy p.lead,
  .hero-cta-row,
  .hero-cta-note,
  .hero-trust {
    animation: none;
  }
  .reveal,
  .js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .section-head h2,
  .js-ready .section-head h2 {
    clip-path: none;
    transition: none;
  }
  .feature-card,
  .calc-card,
  .audience-card,
  .price-card {
    transition: none;
  }
}

/* Lehký hover-lift na kartách, kam se dá kliknout — mimo .feature-card
   definované výše, protože .card se používá i pro nekliknutelné panely
   napříč appkou. */
.calc-card,
.audience-card,
.price-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.calc-card:hover,
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(99, 102, 241, 0.14);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual-frame { max-width: 260px; }
  .compare { grid-template-columns: 1fr; }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 24px; }
  .demo-side img { width: 60px; }
  .demo-quota { margin-top: 0; }
  .audience-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .final-cta { flex-direction: column; text-align: left; padding: 40px 28px; }
  .final-cta-visual { display: none; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-ghost { display: none; }
  section { padding: 60px 0; }
  :root { --h1-size: 32px; --h2-size: 24px; }
  .hero { padding: 44px 0 40px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { width: 100%; }
  .hero-trust { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .card-1, .card-2 { display: none; }
}

/* =========================================================================
   WAITLIST MODAL
   ========================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.modal-backdrop.hidden { display: none; }
.modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
}
.modal-mascot { width: 72px; margin: 0 auto 14px; }
.modal h3 { margin-bottom: 10px; }
.modal p { font-size: 14.5px; margin-bottom: 18px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate);
  padding: 6px;
}
.modal-close svg { width: 20px; height: 20px; }
#waitlist-form { display: flex; flex-direction: column; gap: 10px; }
#waitlist-email {
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  color: var(--navy);
}
#waitlist-email:focus { outline: 2px solid var(--indigo); outline-offset: -1px; }
.modal-note { margin-top: 14px; margin-bottom: 0; }
.modal-form-error {
  font-size: 13px;
  color: var(--danger);
  margin: 0;
  text-align: left;
}

/* =========================================================================
   AUTH / ONBOARDING STRÁNKY (prihlaseni.html, onboarding.html)
   ========================================================================= */
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; }
.auth-topbar { padding: 20px 24px; }
.auth-topbar img { height: 28px; }
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(700px 400px at 85% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(500px 300px at 5% 10%, rgba(99, 102, 241, 0.10), transparent 60%);
}
.auth-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.auth-card.wide { max-width: 560px; text-align: left; }
.auth-card .mascot-img { width: 88px; margin: 0 auto 18px; }
.auth-card.wide .mascot-img { margin: 0 auto 18px; }
.auth-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.auth-card > p { margin-bottom: 22px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }

.text-input {
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  color: var(--navy);
  width: 100%;
}
.text-input:focus { outline: 2px solid var(--indigo); outline-offset: -1px; }
textarea.text-input { resize: vertical; min-height: 70px; font-family: var(--font); }

.form-error {
  font-size: 13px;
  color: var(--danger);
  margin: 0;
  text-align: left;
}
.form-hint { font-size: 12.5px; color: var(--slate); margin-top: 4px; }

.auth-footer-link { margin-top: 20px; font-size: 13.5px; }
.auth-footer-link a { color: var(--indigo); font-weight: 600; text-decoration: none; }

/* --- Speech bubble pro Parou provázený onboarding --- */
.para-intro {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.para-intro .mascot-img { width: 76px; margin: 0; flex-shrink: 0; }
.para-bubble {
  background: var(--mist);
  border-radius: var(--radius-md);
  border-top-left-radius: 4px;
  padding: 14px 16px;
  font-size: 14.5px;
  color: var(--navy);
}

/* --- Volitelné karty (typ subjektu, DPH ano/ne) --- */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate);
  margin-bottom: 10px;
}
.choice-grid { display: grid; gap: 10px; margin-bottom: 24px; }
.choice-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.choice-card {
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  background: var(--white);
  display: block;
}
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card h4 { font-size: 14.5px; font-weight: 700; margin: 0 0 3px; color: var(--navy); }
.choice-card p { font-size: 13px; margin: 0; color: var(--slate); }
.choice-card:hover { border-color: #c7d2fe; }
.choice-card.selected { border-color: var(--indigo); background: var(--indigo-soft); }
.choice-card.selected h4 { color: #4338ca; }

.app-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: var(--slate);
  font-size: 14px;
}
.app-loading img { width: 64px; animation: floatY 2.4s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* =========================================================================
   APP.HTML — autentizovaný chat s historií
   ========================================================================= */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--mist);
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}
.app-sidebar-header { padding: 18px; border-bottom: 1px solid #e2e8f0; }
.app-sidebar-header img { height: 26px; }
.app-new-btn { margin-top: 14px; }
.app-history-list { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.app-history-empty { padding: 16px 10px; font-size: 13px; color: var(--slate); }
.app-history-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--font);
  display: block;
  width: 100%;
}
.app-history-item:hover, .app-history-item.active { background: #e2e8f0; }
.app-history-item .hi-question {
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-history-item .hi-date { font-size: 11px; color: var(--slate); margin-top: 2px; }
.app-sidebar-footer { padding: 14px 18px; border-top: 1px solid #e2e8f0; }
.app-user-email { font-size: 12.5px; color: var(--slate); margin-bottom: 8px; word-break: break-all; }
.app-signout-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.app-signout-btn:hover { color: var(--danger); }

.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  border-bottom: 1px solid #e2e8f0;
  gap: 12px;
  flex-wrap: wrap;
}
.app-topbar h1 { font-size: 18px; font-weight: 700; }
.app-profile-chip { display: flex; gap: 8px; }

.app-thread-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.app-empty {
  margin: auto;
  text-align: center;
  max-width: 340px;
  color: var(--slate);
}
.app-empty img { width: 90px; margin: 0 auto 16px; }
.app-empty h3 { margin-bottom: 8px; }
.app-composer-wrap { border-top: 1px solid #e2e8f0; padding: 16px 28px 22px; background: var(--white); }
.app-composer-wrap .demo-composer { border-top: none; padding: 0; }
.app-composer-hint { font-size: 12px; color: #94a3b8; text-align: center; margin-top: 10px; }

@media (max-width: 860px) {
  .app-shell { flex-direction: column; }
  .app-sidebar { width: 100%; max-height: 220px; border-right: none; border-bottom: 1px solid #e2e8f0; }
}

/* =========================================================================
   KALKULACKY.HTML
   ========================================================================= */
.calc-page-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 8px;
}
.calc-page-header .mascot-img { width: 84px; margin: 0 auto 14px; }

.calc-tool-card {
  padding: 36px;
  margin-bottom: 40px;
}
.calc-tool-head { margin-bottom: 26px; }
.calc-tool-head h2 { margin-bottom: 6px; }

.calc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}
.calc-field { display: flex; flex-direction: column; gap: 8px; }
.calc-field.full { grid-column: 1 / -1; }
.calc-field label { font-size: 13px; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: 0.03em; }
.calc-radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.calc-radio-chip {
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--slate);
  background: var(--white);
}
.calc-radio-chip input { position: absolute; opacity: 0; pointer-events: none; }
.calc-radio-chip.selected { border-color: var(--indigo); background: var(--indigo-soft); color: #4338ca; }

.calc-results {
  background: var(--mist);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14.5px;
}
.calc-row:last-child { border-bottom: none; }
.calc-row .rlabel { color: var(--slate); }
.calc-row .rvalue { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.calc-row.negative .rvalue { color: var(--danger); }
.calc-row.total {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 2px solid var(--navy);
  border-bottom: none;
}
.calc-row.total .rlabel { font-size: 16px; font-weight: 700; color: var(--navy); }
.calc-row.total .rvalue { font-size: 24px; font-weight: 800; color: #15803d; }

.calc-note {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 16px;
  line-height: 1.5;
}

/* --- Srovnávací tabulka --- */
.compare-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.compare-col {
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
}
.compare-col.winner { border-color: var(--green); background: var(--green-soft); }
.compare-col-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.compare-col-title h4 { font-size: 15px; font-weight: 700; }
.compare-col .calc-row { font-size: 13px; padding: 6px 0; }
.compare-col .calc-row.total { padding-top: 12px; }
.compare-col .calc-row.total .rvalue { font-size: 19px; }
.winner-badge {
  position: absolute;
  top: -11px;
  right: 16px;
}

@media (max-width: 720px) {
  .calc-form-grid { grid-template-columns: 1fr; }
  .compare-cols { grid-template-columns: 1fr; }
}

/* =========================================================================
   TERMINY.HTML — timeline povinností
   ========================================================================= */
.terminy-shell { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.terminy-head { text-align: center; margin-bottom: 8px; }
.terminy-head .mascot-img { width: 80px; margin: 0 auto 14px; }
.terminy-head p { max-width: 480px; margin: 8px auto 0; }

.terminy-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--slate);
}
.terminy-empty img { width: 80px; margin: 0 auto 16px; }

.timeline-month-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
  margin: 30px 0 12px;
}
.timeline-month-label:first-of-type { margin-top: 8px; }

.timeline-item {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  background: var(--white);
  margin-bottom: 10px;
  align-items: flex-start;
}
.timeline-item.urgent { border-color: #fca5a5; background: var(--danger-soft); }
.timeline-item.soon { border-color: #fde68a; background: var(--amber-soft); }

.timeline-date {
  flex-shrink: 0;
  width: 54px;
  text-align: center;
}
.timeline-date .day { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.timeline-date .mon { font-size: 11.5px; color: var(--slate); text-transform: uppercase; font-weight: 600; }

.timeline-body { flex: 1; min-width: 0; }
.timeline-body-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.timeline-title { font-size: 14.5px; font-weight: 700; color: var(--navy); }
.timeline-desc { font-size: 13px; color: var(--slate); margin: 0; }
.timeline-source { font-size: 11.5px; color: #94a3b8; margin-top: 6px; }

.timeline-countdown {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.timeline-countdown.urgent { background: var(--danger); color: var(--white); }
.timeline-countdown.soon { background: var(--amber); color: var(--white); }
.timeline-countdown.later { background: var(--mist); color: var(--slate); }

/* --- Export odpovědi jako PDF (app.html) --- */
.pdf-export-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -6px 0 4px 42px;
  padding: 6px 12px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate);
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.pdf-export-btn svg { width: 14px; height: 14px; }
.pdf-export-btn:hover { border-color: var(--indigo); color: var(--indigo); }
.pdf-export-btn:disabled { opacity: 0.6; cursor: default; }

/* =========================================================================
   KONTROLA-DOKLADU.HTML
   ========================================================================= */
.kd-shell { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
.kd-head { text-align: center; margin-bottom: 28px; }
.kd-head .mascot-img { width: 80px; margin: 0 auto 14px; }
.kd-head p { max-width: 480px; margin: 8px auto 0; }

.kd-dropzone {
  border: 2px dashed #c7d2fe;
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  background: var(--indigo-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.kd-dropzone:hover, .kd-dropzone.dragover { border-color: var(--indigo); background: #e0e3ff; }
.kd-dropzone svg { width: 36px; height: 36px; color: var(--indigo); margin: 0 auto 12px; }
.kd-dropzone p { margin: 0; font-weight: 600; color: var(--navy); }
.kd-dropzone .hint { font-size: 12.5px; color: var(--slate); font-weight: 400; margin-top: 4px; }
.kd-dropzone input { display: none; }

.kd-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  margin-top: 16px;
}
.kd-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid #e2e8f0; }
.kd-preview .kd-file-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--mist);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.kd-preview .kd-file-icon svg { width: 24px; height: 24px; color: var(--slate); }
.kd-preview-name { font-size: 13.5px; font-weight: 600; color: var(--navy); word-break: break-all; }
.kd-preview-remove {
  margin-left: auto; background: none; border: none; color: var(--slate); cursor: pointer; padding: 6px; flex-shrink: 0;
}
.kd-preview-remove svg { width: 18px; height: 18px; }

.kd-submit-row { margin-top: 18px; }

.kd-results { margin-top: 32px; }
.kd-result-summary {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.kd-result-summary.ok { background: var(--green-soft); }
.kd-result-summary.issues { background: var(--amber-soft); }
.kd-result-summary p { margin: 0; font-size: 14.5px; color: var(--navy); }
.kd-result-summary .kd-doc-type { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--slate); margin-bottom: 4px; }

.kd-checklist { display: flex; flex-direction: column; gap: 8px; }
.kd-check-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  align-items: flex-start;
}
.kd-check-icon { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.kd-check-icon svg { width: 13px; height: 13px; }
.kd-check-item.ano .kd-check-icon { background: var(--green-soft); color: #15803d; }
.kd-check-item.chybi .kd-check-icon, .kd-check-item.nesedi .kd-check-icon { background: var(--danger-soft); color: var(--danger); }
.kd-check-item.nejiste .kd-check-icon { background: var(--amber-soft); color: #b45309; }
.kd-check-body { flex: 1; }
.kd-check-title { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.kd-check-note { font-size: 12.5px; color: var(--slate); margin-top: 2px; }
.kd-check-para { font-size: 11.5px; color: #94a3b8; margin-top: 4px; }

.kd-error {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--danger-soft);
  color: #b91c1c;
  font-size: 13.5px;
}

/* --- ARES rychlé vyplnění (onboarding.html) --- */
.ares-box {
  background: var(--mist);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 26px;
}
.ares-row { display: flex; gap: 10px; }
.ares-row .text-input { flex: 1; }
.ares-row .btn { flex-shrink: 0; }
.ares-result {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  font-size: 13.5px;
  color: #15803d;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ares-result strong { color: #15803d; }
.ares-result .icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.ares-error {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: #b91c1c;
  font-size: 13.5px;
}

/* Menu mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 150;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.hidden { display: none; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-menu-top img { height: 30px; }
.mobile-menu-close { background: none; border: none; cursor: pointer; padding: 6px; }
.mobile-menu-close svg { width: 26px; height: 26px; }
.mobile-menu a {
  padding: 16px 4px;
  border-bottom: 1px solid var(--mist);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}
.mobile-menu .btn { margin-top: 24px; }

/* =========================================================================
   GENERATOR-DOKUMENTU.HTML
   ========================================================================= */
.gen-shell { max-width: 820px; margin: 0 auto; padding: 40px 24px 80px; }
.gen-head { text-align: center; margin-bottom: 28px; }
.gen-head .mascot-img { width: 80px; margin: 0 auto 14px; }
.gen-head p { max-width: 480px; margin: 8px auto 0; }

.doctype-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.doctype-tab {
  flex: 1 1 160px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  background: var(--white);
  cursor: pointer;
  text-align: left;
}
.doctype-tab svg { width: 18px; height: 18px; flex-shrink: 0; }
.doctype-tab:hover { border-color: #c7d2fe; }
.doctype-tab.active { border-color: var(--indigo); background: var(--indigo-soft); color: #4338ca; }

.doctype-panel { padding: 36px; margin-bottom: 24px; }
.doctype-panel .gen-subheading {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--indigo);
  margin: 26px 0 14px;
}
.doctype-panel .gen-subheading:first-child { margin-top: 0; }

.item-row-header, .item-row {
  display: grid;
  grid-template-columns: 1fr 64px 104px 74px 32px;
  gap: 8px;
  align-items: center;
}
.item-row-header.no-vat, .item-row.no-vat { grid-template-columns: 1fr 64px 104px 32px; }
.item-row-header {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
  padding: 0 2px 6px;
}
.item-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.item-row .text-input, .item-row select.text-input { padding: 9px 10px; font-size: 13.5px; }
.item-row-remove {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  background: var(--white);
  color: var(--danger);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-row-remove:hover { background: var(--danger-soft); border-color: #fecaca; }
.item-row-remove svg { width: 15px; height: 15px; }
.item-row-add { margin-bottom: 4px; }

.gen-checkbox-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--slate); margin-bottom: 22px; }
.gen-checkbox-row input { width: 16px; height: 16px; accent-color: var(--indigo); }

.gen-submit-row { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 10px; }
.gen-submit-status { font-size: 13px; color: var(--slate); }
.gen-submit-status.error { color: var(--danger); }

@media (max-width: 640px) {
  .item-row-header { display: none; }
  .item-row { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .item-row .item-desc { grid-column: 1 / -1; }
  .item-row-remove { justify-self: end; }
}

/* =========================================================================
   DAP-GENERATOR.HTML — krokový průvodce daňovým přiznáním
   ========================================================================= */
.wiz-progress { display: flex; gap: 6px; margin-bottom: 20px; }
.wiz-progress-step { flex: 1; height: 5px; border-radius: 3px; background: #e2e8f0; }
.wiz-progress-step.done { background: var(--indigo); }
.wiz-progress-step.current { background: #c7d2fe; }

.wiz-card { padding: 32px; }
.wiz-card .para-intro .mascot-img { width: 56px; }
.wiz-card .para-bubble { flex: 1; font-size: 15.5px; font-weight: 600; color: var(--navy); }

.wiz-field { margin-bottom: 18px; }
.wiz-field label { display: block; font-size: 13px; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; }
.wiz-field .form-hint { margin-top: 6px; }
.wiz-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wiz-row3 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }

.wiz-yesno { display: flex; gap: 10px; margin-bottom: 4px; }
.wiz-yesno .calc-radio-chip { flex: 1; text-align: center; }

.wiz-computed {
  background: var(--indigo-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  color: #4338ca;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.wiz-computed strong { font-size: 17px; font-variant-numeric: tabular-nums; }

.wiz-nav { display: flex; justify-content: space-between; margin-top: 26px; }
.wiz-nav .btn:only-child { margin-left: auto; }

.wiz-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}
.wiz-summary-row .rlabel { color: var(--slate); }
.wiz-summary-row .rvalue { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.wiz-summary-row.total .rlabel { font-weight: 700; color: var(--navy); font-size: 15.5px; }
.wiz-summary-row.total .rvalue { font-size: 20px; font-weight: 800; color: #4338ca; }

@media (max-width: 560px) {
  .wiz-row2, .wiz-row3 { grid-template-columns: 1fr; }
}
