:root {
  color-scheme: light;
  --paper: #f6f7f2;
  --ink: #17202a;
  --muted: #60707d;
  --card: #ffffff;
  --line: #d9e0df;
  --green: #16765a;
  --blue: #2454a6;
  --amber: #b26b14;
  --red: #a6382e;
  --dark: #111820;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Avenir, "Avenir Next", "Segoe UI", Arial, sans-serif;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.topbar a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 56px;
}

.hero,
.summary-grid article,
.path-map,
.panel,
.acceptance,
.limits {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 18px 46px rgba(23, 32, 42, 0.07);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 26px;
  align-items: stretch;
  padding: 48px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 4.2rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.75rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

p,
li,
.check-row span {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.lead {
  max-width: 680px;
  font-size: 1.15rem;
}

.proof-note {
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 84, 166, 0.24);
  border-radius: 8px;
  background: #eef3ff;
  color: #224579;
  font-weight: 800;
}

.rescue-card {
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--dark);
  color: white;
  align-self: stretch;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.browser-bar strong {
  margin-left: auto;
  font-size: 0.86rem;
}

.status-stack {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.status-row {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #1a2430;
}

.status-row span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-row strong {
  display: block;
  color: white;
  font-size: 1.35rem;
  line-height: 1.16;
}

.status-row.danger {
  border-left: 8px solid var(--red);
}

.status-row.warning {
  border-left: 8px solid var(--amber);
}

.status-row.ok {
  border-left: 8px solid var(--green);
}

.summary-grid,
.steps,
.before-after {
  display: grid;
  gap: 18px;
}

.summary-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.summary-grid article,
.path-map,
.panel,
.acceptance,
.limits {
  padding: 26px;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 9px;
  border-radius: 8px;
  color: white;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tag.danger {
  background: var(--red);
}

.tag.warning {
  background: var(--amber);
}

.tag.ok {
  background: var(--green);
}

.path-map,
.before-after,
.acceptance,
.limits {
  margin-top: 18px;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 22px;
}

.steps {
  grid-template-columns: repeat(4, 1fr);
}

.steps article {
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf9;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.before-after {
  grid-template-columns: 1fr 1fr;
}

.panel {
  min-height: 300px;
}

.panel.before {
  border-top: 8px solid var(--red);
}

.panel.after {
  border-top: 8px solid var(--green);
}

ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.acceptance {
  display: grid;
  grid-template-columns: 0.48fr 0.52fr;
  gap: 24px;
  align-items: start;
}

.check-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1.05fr;
  gap: 1px;
  background: var(--line);
}

.check-row span {
  padding: 13px;
  background: #fff;
}

.check-row.head span {
  background: var(--dark);
  color: #fff;
  font-weight: 900;
}

.limits {
  border-left: 8px solid var(--blue);
}

@media (max-width: 860px) {
  .topbar,
  .hero,
  .acceptance {
    display: block;
  }

  .topbar span {
    display: block;
    margin-top: 6px;
  }

  .hero,
  .summary-grid article,
  .path-map,
  .panel,
  .acceptance,
  .limits {
    padding: 22px;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .rescue-card,
  .summary-grid,
  .steps,
  .before-after {
    margin-top: 18px;
  }

  .summary-grid,
  .steps,
  .before-after {
    grid-template-columns: 1fr;
  }

  .check-table {
    margin-top: 18px;
  }

  .check-row {
    grid-template-columns: 1fr;
  }
}
