/* AIOS Audit — clean cyan / black / white
   Vlastní design, nesleduje oranžový webinar landing template.
*/

:root {
  --bg: #000000;
  --bg-2: #0A0F12;
  --bg-3: #10171C;
  --line: #1C262E;
  --line-2: #2A3742;
  --text: #FFFFFF;
  --muted: #8A95A1;
  --accent: #2DE2D5;       /* primary cyan */
  --accent-2: #5EF0E5;     /* lighter cyan */
  --accent-ink: #00231F;   /* dark text on cyan */
  --good: #2DE2D5;
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html, body { height: 100%; }
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.audit-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding-top: 16px;
  padding-bottom: 16px;
}
.audit-footer { flex: 0 0 auto; }
.audit-topbar {
  background: #000;
  border-bottom: 1px solid var(--line);
}

.font-display { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.02em; }
.text-accent { color: var(--accent); }
.bg-accent { background: var(--accent); }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: 12px;
  transition: background .15s ease, transform .12s ease;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-2);
}
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.chip { border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
}

/* ===== PROGRESS BAR ===== */
.progress-wrap {
  background: transparent;
  margin-bottom: 14px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px 8px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.progress-meta strong { color: var(--text); font-weight: 600; }
.progress-bar {
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width .4s cubic-bezier(.2,.9,.3,1);
}

/* ===== QUESTION CARD ===== */
.question-card {
  animation: cardSlide .35s cubic-bezier(.2,.9,.3,1.1);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
@media (max-width: 640px) {
  .question-card { padding: 20px 18px; border-radius: 14px; }
}
@keyframes cardSlide {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.q-step {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.q-label {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: .35rem;
  color: #fff;
}
.q-sublabel {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1rem;
  line-height: 1.45;
}

/* ===== ANSWER BUTTONS ===== */
.answer-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.answer-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-size: .95rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
}
.answer-btn:hover {
  border-color: var(--line-2);
  background: rgba(255,255,255,0.02);
}
.answer-btn.selected {
  border-color: var(--accent);
  background: rgba(45,226,213,0.06);
}
.answer-btn .check-mark {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  position: relative;
  flex: none;
  transition: border-color .15s, background .15s;
}
.answer-btn.multi .check-mark {
  border-radius: 5px;
}
.answer-btn.selected .check-mark {
  background: var(--accent);
  border-color: var(--accent);
}
.answer-btn.selected .check-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}
.answer-btn-row {
  display: flex;
  align-items: center;
}

/* OTHER inline input */
.other-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: .95rem;
  margin-top: 8px;
  outline: none;
  font-family: inherit;
}
.other-input:focus { box-shadow: 0 0 0 3px rgba(45,226,213,0.18); }

/* ===== TEXTAREA ===== */
.textarea-wrap textarea {
  width: 100%;
  min-height: 130px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  resize: vertical;
  outline: none;
  transition: border-color .15s;
}
.textarea-wrap textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,226,213,0.18);
}
.textarea-counter {
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

/* ===== COMBO (Q8) ===== */
.combo-part { margin-bottom: 18px; }
.combo-part:last-child { margin-bottom: 0; }
.combo-part-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: .98rem;
  margin-bottom: 8px;
  color: var(--text);
}
.combo-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.combo-options .answer-btn {
  width: auto;
  flex: 0 1 auto;
  padding: 9px 14px;
  font-size: .9rem;
}

/* ===== NAV ===== */
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 10px;
}
.btn-back {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: .9rem;
  transition: all .15s;
}
.btn-back:hover { color: var(--text); border-color: var(--line-2); }
.btn-next {
  padding: 11px 22px;
  border-radius: 10px;
  font-size: .95rem;
  border: none;
  cursor: pointer;
}

/* ===== ENCOURAGEMENT ===== */
.encouragement {
  text-align: left;
  color: var(--muted);
  font-size: .85rem;
  padding: 10px 14px;
  background: transparent;
  border-left: 2px solid var(--accent);
  border-radius: 0;
  margin-bottom: 12px;
  animation: cardSlide .35s ease;
  line-height: 1.45;
}

/* ===== EMAIL GATE ===== */
.gate-wrap input[type="text"],
.gate-wrap input[type="email"] {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: .95rem;
  outline: none;
  font-family: inherit;
  transition: border-color .15s;
}
.gate-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,226,213,0.18);
}
.gate-wrap label.field {
  display: block;
  margin-bottom: 12px;
}
.gate-wrap label.field span.lbl {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.gate-wrap label.field span.lbl em { color: var(--accent); font-style: normal; }
.gdpr-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: var(--muted);
  margin: 14px 0 18px;
}
.gdpr-row input { margin-top: 3px; flex: none; accent-color: var(--accent); }
.gdpr-row a { color: var(--accent); text-decoration: underline; }

/* ===== LOADING ===== */
.loading-wrap {
  text-align: center;
  padding: 50px 20px;
}
.loading-spinner {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(45,226,213,0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 22px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  color: var(--text);
  min-height: 1.6em;
  transition: opacity .25s;
}
.loading-dots::after {
  content: '';
  display: inline-block;
  animation: dots 1.4s steps(4, end) infinite;
}
@keyframes dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

/* ===== RESULT ===== */
.result-wrap { animation: resultReveal .5s ease; }
@keyframes resultReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.result-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.2;
  text-align: center;
  margin-bottom: 24px;
  color: #fff;
}
.result-headline .accent { color: var(--accent); }

.state-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 14px;
}
.state-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 12px;
}
.state-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.state-row:last-child { border-bottom: none; }
.state-row .lbl { color: var(--muted); }
.state-row .val { font-weight: 600; color: var(--text); }

.impact-card {
  background: var(--bg-2);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 26px;
  margin: 18px 0 28px;
}
.impact-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
  text-align: center;
}
.impact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: .95rem;
}
.impact-row .icon { font-size: 1.2rem; margin-right: 10px; }
.impact-total {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}
.impact-total .num {
  color: var(--accent);
  font-size: 1.5rem;
}
.impact-annual {
  text-align: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  color: var(--text);
}
.impact-annual strong { color: var(--accent); font-size: 1.25rem; }

.usecase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
@media (min-width: 900px) { .usecase-grid { grid-template-columns: repeat(3, 1fr); } }

.usecase-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: cardSlide .45s ease both;
  transition: border-color .15s;
}
.usecase-card:hover { border-color: var(--line-2); }
.usecase-card:nth-child(2) { animation-delay: .1s; }
.usecase-card:nth-child(3) { animation-delay: .2s; }
.usecase-tag {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  width: max-content;
}
.usecase-tag.time {
  background: rgba(45,226,213,0.1);
  color: var(--accent);
  border: 1px solid rgba(45,226,213,0.3);
}
.usecase-tag.revenue {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}
.usecase-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
}
.usecase-desc {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
  flex: 1;
}
.usecase-impact {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: .82rem;
}
.usecase-impact .row { display: flex; justify-content: space-between; }
.usecase-impact .lbl { color: var(--muted); }
.usecase-impact .val { color: var(--text); font-weight: 600; }

.cta-block {
  text-align: center;
  padding: 32px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 22px;
}
.cta-block h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cta-block p { color: var(--muted); margin-bottom: 20px; }
.cta-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta-secondary {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all .15s;
}
.cta-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ===== ERROR ===== */
.error-box {
  background: rgba(45,226,213,0.05);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text);
  margin-bottom: 14px;
  font-size: .92rem;
}
.field-error { color: var(--accent); font-size: .82rem; margin-top: 6px; }

/* ===== TIGHTER ON SHORT VIEWPORTS ===== */
@media (max-height: 760px) {
  .question-card { padding: 18px 18px; }
  .answer-btn { padding: 9px 13px; font-size: .92rem; }
  .answer-list { gap: 6px; }
  .q-label { font-size: clamp(1.05rem, 2vw, 1.35rem); }
  .q-sublabel { margin-bottom: .75rem; font-size: .85rem; }
  .encouragement { padding: 8px 12px; margin-bottom: 10px; font-size: .8rem; }
  .nav-row { margin-top: 14px; }
}
