:root {
  --ink: #1d2528;
  --muted: #5a666b;
  --line: #d8e0df;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --accent: #176b63;
  --accent-2: #a4462f;
  --ok: #157a4f;
  --warn: #9b5a12;
  --stop: #a02d2d;
  --shadow: 0 18px 50px rgba(29, 37, 40, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f4f6f4 0%, var(--paper) 42%, #ffffff 100%);
}

button,
input,
textarea {
  font: inherit;
}

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

.hero {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: end;
  overflow: hidden;
  margin: 0 0 30px;
  padding: 48px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(10, 31, 31, 0.9) 0%, rgba(10, 31, 31, 0.74) 42%, rgba(10, 31, 31, 0.28) 72%, rgba(10, 31, 31, 0.12) 100%),
    url("images/hook.png") center right / cover no-repeat;
  box-shadow: var(--shadow);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 72%, rgba(247, 245, 239, 0.16) 100%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: #f3c7aa;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(36px, 6vw, 74px);
}

h2 {
  font-size: 28px;
}

.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.55;
}

.status-card,
.panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-card {
  min-height: 130px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 22px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(12, 40, 39, 0.72);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.status-card strong {
  color: #fff;
  font-size: 20px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ok);
}

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

.workspace > .panel {
  grid-column: 2;
}

.steps {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
  grid-column: 1;
  grid-row: 1 / span 3;
  z-index: 2;
}

.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.step span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #e8eeec;
  color: var(--ink);
  font-weight: 700;
}

.step p {
  margin: 0;
  font-weight: 700;
}

.step.active {
  border-color: rgba(23, 107, 99, 0.38);
  color: var(--ink);
}

.step.active span {
  background: var(--accent);
  color: #fff;
}

.panel {
  padding: 26px;
}

.panel-heading {
  margin-bottom: 22px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
legend {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c7d2d0;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 107, 99, 0.12);
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
}

.primary {
  margin-top: 16px;
  background: var(--accent);
  color: #fff;
}

.secondary {
  background: #e7efed;
  color: var(--accent);
}

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

.result {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  line-height: 1.5;
}

.result.ok {
  border-color: rgba(21, 122, 79, 0.3);
  background: #eef8f2;
}

.result.warn {
  border-color: rgba(155, 90, 18, 0.35);
  background: #fff6e6;
}

.result.stop {
  border-color: rgba(160, 45, 45, 0.32);
  background: #fff0ef;
}

.result h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.result p {
  margin: 0 0 8px;
}

.capacity {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

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

.wide {
  grid-column: 1 / -1;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checklist legend {
  padding: 0 6px;
}

.checklist label {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--ink);
}

.checklist input {
  width: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.preview {
  max-height: 620px;
  overflow: auto;
  white-space: pre-wrap;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  line-height: 1.55;
}

.hidden {
  display: none !important;
}

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

  .hero {
    min-height: 520px;
    padding: 28px;
    background:
      linear-gradient(180deg, rgba(10, 31, 31, 0.92) 0%, rgba(10, 31, 31, 0.72) 58%, rgba(10, 31, 31, 0.34) 100%),
      url("images/hook.png") center / cover no-repeat;
  }

  .workspace > .panel,
  .steps {
    grid-column: auto;
    grid-row: auto;
  }

  .steps {
    position: static;
    grid-template-columns: 1fr;
  }

  .checklist {
    grid-template-columns: 1fr;
  }
}
