/* Infožiadosť AI – vizuálna identita.
 *
 * Paleta vychádza z ikony aplikácie: krémový dokument (podklad), tmavomodré
 * riadky textu (navy = typografia a plochy) a petrolejovo-zelený uzlový graf
 * s fajkou (teal = akcent, potvrdenie, stav "v poriadku").
 *
 * Premenná --gold zostáva ako ALIAS na --teal, aby staršie pravidlá a triedy
 * (.btn-gold, .brand-mark, ...) fungovali bez zmeny.
 */
:root {
  --navy: #1e3a5f;
  --navy-deep: #142a46;
  --navy-soft: #2c5480;

  --teal: #2f7e76;
  --teal-light: #4aa79c;
  --teal-dark: #1f5e57;
  --teal-bg: rgba(47,126,118,0.12);

  /* spätná kompatibilita so staršími pravidlami */
  --gold: var(--teal);
  --gold-light: var(--teal-light);
  --gold-bg: var(--teal-bg);

  --bg: #f7f3e9;
  --bg-alt: #efe9db;
  --panel: #ffffff;
  --panel-2: #f5f1e6;
  --border: #e3dcc9;
  --text: #1c2433;
  --muted: #6b7280;
  --ok: #2f7e76;
  --risk: #b8432f;
  --unknown: #b3781b;
  --shadow: 0 2px 10px rgba(30,58,95,0.07);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3 { font-family: "Georgia", "Iowan Old Style", "Times New Roman", serif; color: var(--navy); }
a { color: var(--navy); text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-secondary { background: var(--panel-2); color: var(--navy); border-color: var(--border); }
.btn-danger { background: rgba(184,67,47,0.1); color: var(--risk); border-color: rgba(184,67,47,0.3); }
button:disabled { opacity: 0.5; cursor: default; }

/* ---------- public landing page ---------- */
.public-site { max-width: 100%; background: var(--bg); }
.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 5vw;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.brand { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; font-family: "Georgia", serif; color: var(--navy); letter-spacing: 0.01em; }
.brand-mark { color: var(--gold); font-size: 20px; }
.brand-ko { color: var(--gold); }
.nav-links { display: flex; gap: 26px; font-size: 14px; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--navy); }
.nav-actions { display: flex; gap: 10px; }

.public-hero {
  background: var(--panel);
  padding-bottom: 0;
}
.hero-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 5vw 70px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.hero-content { max-width: 560px; }
.kicker {
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kicker::before { content: "→"; }
.hero-content h1 { font-size: 40px; line-height: 1.22; margin: 0 0 18px; font-weight: 500; }
.lead { font-size: 16.5px; color: var(--muted); margin: 0 0 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 16px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-visual svg { width: 78%; height: auto; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }

.proof-points {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5vw 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.proof-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.proof-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold-bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.proof-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; }
.proof-card h3 { font-size: 15.5px; margin: 0 0 8px; font-weight: 700; }
.proof-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

.public-main { max-width: 1180px; margin: 0 auto; padding: 0 5vw 40px; }
.public-section { padding: 64px 0; }
.public-section.alt { background: var(--bg-alt); }
.public-section h2 { font-size: 28px; margin: 0 0 8px; text-align: center; font-weight: 500; }
.section-lead { text-align: center; color: var(--muted); margin: 0 0 36px; }
.section-divider { width: 60px; height: 2px; background: var(--gold); margin: 14px auto 0; }

.workflow-grid, .audience-grid { display: grid; gap: 22px; margin-top: 40px; }
.workflow-grid { grid-template-columns: repeat(3, 1fr); }
.audience-grid { grid-template-columns: repeat(2, 1fr); }
.workflow-card { text-align: center; }
.audience-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 26px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--gold);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin: 0 auto 16px; font-family: "Georgia", serif; font-size: 16px;
}
.step-connector { display: none; }
.workflow-card h3, .audience-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 500; }
.workflow-card p, .audience-card p { color: var(--muted); margin: 0; font-size: 14px; }

.outcomes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.outcome-num { font-size: 32px; font-weight: 700; color: var(--navy); font-family: "Georgia", serif; }
.outcome div:last-child { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 20px; }
.pricing-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow);
}
.pricing-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.pricing-card h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); font-family: inherit; }
.pricing-price { font-size: 26px; font-weight: 700; color: var(--navy); font-family: "Georgia", serif; }
.pricing-price span { font-size: 13px; color: var(--muted); font-weight: 400; font-family: inherit; }
.pricing-card p { color: var(--muted); font-size: 13.5px; margin: 0; flex-grow: 1; }

.public-cta-band {
  text-align: center; padding: 64px 0; display: flex; flex-direction: column; gap: 22px; align-items: center;
  background: var(--navy); border-radius: 18px; margin: 20px 0 50px; color: #fff;
}
.public-cta-band h2 { margin: 0; font-size: 25px; max-width: 640px; color: #fff; padding: 0 20px; }

.public-footer {
  max-width: 1180px; margin: 0 auto; padding: 34px 5vw 50px; font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--navy); }

/* ---------- auth modal ---------- */
.auth-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; }
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(15,24,40,0.55); }
.auth-modal-card {
  position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 30px; width: 380px; max-width: 90vw; box-shadow: 0 12px 40px rgba(15,34,64,0.2);
}
.auth-modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 22px; background: var(--panel-2); border-radius: 8px; padding: 4px; }
.auth-tab { flex: 1; background: none; border: none; color: var(--muted); padding: 8px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.auth-tab.active { background: var(--navy); color: #fff; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.auth-form input, .auth-form select, .auth-form textarea {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 9px 10px;
  color: var(--text); font-size: 14px; font-family: inherit; font-weight: 400;
}
.auth-error { color: var(--risk); font-size: 13px; min-height: 1px; }

/* ---------- authenticated app shell ---------- */
.app-shell { display: flex; min-height: 100vh; background: var(--bg); }
.app-sidebar {
  width: 230px; flex-shrink: 0; background: var(--navy); color: #f0ece0;
  padding: 22px 14px; display: flex; flex-direction: column; gap: 4px;
}
.app-sidebar .brand { color: #fff; padding: 0 10px 4px; }
.app-sidebar .brand-mark, .app-sidebar .brand-ko { color: var(--gold-light); }
.app-version { font-size: 11px; padding: 0 10px 20px; letter-spacing: 0; word-break: break-all; line-height: 1.3; }
.app-sidebar .app-version { color: rgba(255,255,255,0.5); }
.footer-version { font-size: 11px; opacity: 0.65; white-space: nowrap; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  color: #c7cedb; cursor: pointer; font-size: 14px; font-weight: 600;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active { background: var(--gold); color: #1c2433; }
.sidebar-spacer { flex: 1; }
.account-pill { font-size: 12px; color: #c7cedb; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 8px; }
.account-pill strong { color: #fff; }

.app-main { flex: 1; min-width: 0; padding: 28px 36px 70px; max-width: 1100px; }
.app-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.app-topbar h1 { font-size: 23px; margin: 0; font-weight: 500; }
.status-strip { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); }
.status-strip.ok { color: var(--ok); }
.status-strip.warn { color: var(--unknown); }

.section { display: none; }
.section.active { display: block; }

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 14px; font-size: 17px; font-weight: 500; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
select, textarea, input[type=text], input[type=file], input[type=email], input[type=password] {
  width: 100%; background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px; font-size: 14px; font-family: inherit;
}
textarea { min-height: 200px; resize: vertical; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 240px; }
.legal-basis { font-size: 12px; color: var(--muted); margin-top: 4px; }
.status-msg { font-size: 13px; padding: 10px 0; color: var(--muted); }
.status-msg.error { color: var(--risk); }

.criteria-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.criteria-item { display: flex; align-items: flex-start; gap: 10px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.criteria-item input[type=checkbox] { margin-top: 3px; accent-color: var(--navy); }
.criteria-item .ci-label { font-weight: 600; font-size: 13.5px; }
.criteria-item .ci-meta { font-size: 12px; color: var(--muted); }
.criteria-item.disabled { opacity: 0.5; }
.custom-criteria-row { display: flex; gap: 8px; margin-top: 10px; }
.custom-criteria-row input { flex: 1; }

.attachments-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.attachment-item { display: flex; align-items: center; gap: 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; flex-wrap: wrap; }
.attachment-item .at-label { flex: 1; min-width: 220px; font-size: 13.5px; }
.attachment-item .at-controls { display: flex; gap: 8px; align-items: center; }

table.results { width: 100%; border-collapse: collapse; margin-top: 10px; }
table.results th, table.results td { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; vertical-align: top; font-size: 13px; }
table.results th { color: var(--muted); font-weight: 600; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.splna { background: rgba(31,138,77,0.12); color: var(--ok); }
.pill.nesplna { background: rgba(184,67,47,0.12); color: var(--risk); }
.pill.disabled { background: rgba(107,114,128,0.12); color: var(--muted); }
.pill.posudit { background: rgba(179,120,27,0.14); color: #b3781b; }
.summary-bar { display: flex; gap: 16px; margin-top: 10px; }
.summary-bar div { flex: 1; background: var(--panel-2); border-radius: 8px; padding: 12px; text-align: center; }
.summary-bar .num { font-size: 22px; font-weight: 700; font-family: "Georgia", serif; }
.verdict { font-size: 16px; font-weight: 700; padding: 14px 16px; border-radius: 8px; margin-top: 10px; }
.verdict.ok { background: rgba(31,138,77,0.1); color: var(--ok); }
.verdict.risk { background: rgba(184,67,47,0.1); color: var(--risk); }

.history-table { width: 100%; border-collapse: collapse; }
.history-table th, .history-table td { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; font-size: 13.5px; }
.history-table tr:hover { background: var(--panel-2); cursor: pointer; }

.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.account-stat { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 16px; min-width: 0; }
.account-stat .num { font-size: 22px; font-weight: 700; color: var(--navy); font-family: "Georgia", serif; overflow-wrap: anywhere; line-height: 1.25; }
.account-stat .num.account-value-compact { font-size: 15px; font-weight: 600; font-family: inherit; }
.account-stat .label { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

@media (max-width: 980px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-visual { min-height: 240px; }
  .proof-points { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .workflow-grid, .audience-grid, .outcomes-grid, .proof-points { grid-template-columns: 1fr; }
  .app-shell { flex-direction: column; }
  .app-sidebar { width: 100%; flex-direction: row; overflow-x: auto; }
  .app-main { padding: 20px; }
  .nav-links { display: none; }
}


/* ---------- logo (ikona dokumentu s fajkou) ---------- */
.brand-logo { width: 26px; height: 26px; flex: 0 0 auto; display: block; }
.app-sidebar .brand-logo { width: 24px; height: 24px; }
.brand-ai { color: var(--teal); }

/* ---------- doplnky pre posúdenie infožiadosti ---------- */
.pill.posudit { background: rgba(179,120,27,0.14); color: var(--unknown); }
.info-note {
  margin-top: 10px; padding: 10px 12px; border-radius: 8px;
  background: var(--teal-bg); border: 1px solid rgba(47,126,118,0.35);
  font-size: 13px; color: var(--teal-dark);
}
.info-warn {
  margin-top: 10px; padding: 10px 12px; border-radius: 8px;
  background: rgba(179,120,27,0.12); border: 1px solid rgba(179,120,27,0.5);
  font-size: 13px;
}
