:root {
  color-scheme: light;
  --ink: #0f1d18;
  --muted: #63716a;
  --line: #d9e0dc;
  --soft: #eef3ef;
  --paper: #fbfcfa;
  --green: #08271a;
  --green-2: #174432;
  --mint: #dcebd5;
  --gold: #dca645;
  --gold-soft: #f4e4c5;
  --blue: #7fb7d9;
  --danger: #b14c3a;
  --shadow: 0 24px 80px rgba(8, 39, 26, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(160deg, rgba(220, 235, 213, 0.9), rgba(251, 252, 250, 0.94) 35%, rgba(244, 228, 197, 0.45)),
    var(--paper);
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}

.brand img {
  width: 156px;
  max-width: 42vw;
  display: block;
}

.topbar__meta {
  display: grid;
  gap: 2px;
  text-align: right;
  color: var(--muted);
}

.topbar__meta strong {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #916111;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero__copy > p:last-child {
  max-width: 740px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.status-card,
.form-card,
.result-card,
.limits {
  border: 1px solid rgba(15, 29, 24, 0.1);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.status-card {
  position: relative;
  padding: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.status-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--blue));
}

.pulse {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 999px;
  margin-right: 8px;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(220, 166, 69, 0.65);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(220, 166, 69, 0);
  }
}

.status-card strong {
  display: inline;
}

.status-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.progress__item {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.progress__item:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 39, 26, 0.28);
}

.progress__item.is-active,
.progress__item.is-complete {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.form-card,
.result-card {
  min-height: 640px;
  border-radius: 8px;
}

.form-card {
  padding: 30px;
}

.step {
  display: none;
  animation: enter 240ms ease both;
}

.step.is-active {
  display: block;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.step__head {
  margin-bottom: 24px;
}

.step__head p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.step__head h2,
.result-card h2,
.limits h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label,
fieldset {
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8d2cc;
  border-radius: 8px;
  padding: 15px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 4px rgba(23, 68, 50, 0.12);
  background: #fff;
}

textarea {
  resize: vertical;
}

.upload-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  border: 1px dashed rgba(8, 39, 26, 0.28);
  border-radius: 8px;
  padding: 18px;
  background: rgba(220, 235, 213, 0.38);
}

.upload-card span {
  display: grid;
  gap: 5px;
}

.upload-card small,
.muted {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.upload-card input {
  max-width: 320px;
  background: #fff;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(248, 250, 247, 0.76);
}

legend {
  padding: 0 6px;
  font-weight: 900;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: var(--muted);
  font-weight: 750;
}

fieldset input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.consent input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--green);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 0 20px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--green-2);
  box-shadow: 0 12px 30px rgba(8, 39, 26, 0.22);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button--ghost {
  color: var(--green);
  background: transparent;
}

.button--ghost:hover {
  color: #fff;
}

.result-card {
  position: sticky;
  top: 24px;
  padding: 28px;
  overflow: hidden;
}

.result-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--line);
}

.result-card--nizsie::before {
  background: #69a36f;
}

.result-card--stredne::before {
  background: var(--gold);
}

.result-card--vysoke::before {
  background: var(--danger);
}

.result-card > p {
  color: var(--muted);
  line-height: 1.65;
}

.score {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.score strong {
  flex: 0 0 auto;
  min-width: 86px;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  color: #fff;
  background: var(--green);
}

.result-lead {
  margin: 18px 0 22px;
  font-size: 1.05rem;
}

.result-block {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.result-block h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.result-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.result-block li + li {
  margin-top: 8px;
}

.ai-status {
  margin: 18px 0 8px;
  border-radius: 8px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-2));
}

.ai-status p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.findings {
  display: grid;
  gap: 10px;
}

.finding {
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.72);
}

.finding--known {
  border-left-color: #69a36f;
}

.finding--risk {
  border-left-color: var(--danger);
}

.finding--missing,
.finding--needs_check {
  border-left-color: var(--gold);
}

.finding span {
  display: inline-flex;
  margin-bottom: 6px;
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--green);
  background: var(--mint);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finding strong {
  display: block;
}

.finding p {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.5;
}

.finding small {
  color: #7a867f;
  font-weight: 800;
}

.recommendation {
  margin-top: 6px;
  border-radius: 8px;
  padding: 18px;
  background: var(--mint);
}

.recommendation p {
  margin: 8px 0 16px;
  line-height: 1.55;
}

.disclaimer {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--muted);
}

.limits {
  margin-top: 28px;
  border-radius: 8px;
  padding: 28px;
}

.limits p {
  max-width: 900px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 920px) {
  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .result-card {
    position: static;
  }
}

@media (max-width: 700px) {
  .app-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .topbar {
    align-items: start;
  }

  .topbar__meta {
    font-size: 0.9rem;
  }

  .hero {
    gap: 22px;
    margin-bottom: 20px;
  }

  h1 {
    font-size: clamp(2.4rem, 14vw, 4.4rem);
  }

  .progress,
  .grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .progress {
    gap: 6px;
  }

  .progress__item {
    min-height: 42px;
  }

  .form-card,
  .result-card,
  .limits {
    padding: 20px;
    min-height: auto;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .upload-card {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-card input {
    max-width: none;
  }

  .button {
    width: 100%;
  }
}
