:root {
  color-scheme: light;
  --paper: #f5f6f0;
  --ink: #17202a;
  --muted: #5f6d78;
  --card: #ffffff;
  --line: #d9ded8;
  --green: #15785b;
  --blue: #25519a;
  --amber: #a76516;
  --red: #a43831;
  --dark: #101923;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(21, 120, 91, 0.09), rgba(245, 246, 240, 0) 300px),
    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,
.flow-section,
.issue-board,
.input-section,
.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.05fr) minmax(320px, 0.95fr);
  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: 4rem;
  line-height: 0.99;
  letter-spacing: 0;
}

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

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

p,
li,
.check-row span,
.path-step small {
  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(37, 81, 154, 0.24);
  border-radius: 8px;
  background: #edf2ff;
  color: #24477d;
  font-weight: 800;
}

.checkout-map {
  overflow: hidden;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  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.68);
}

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

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

.path-line {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.path-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left-width: 8px;
  border-radius: 8px;
  background: #182434;
}

.path-step span {
  display: grid;
  width: 36px;
  height: 36px;
  grid-row: span 2;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  font-weight: 900;
}

.path-step strong {
  color: #fff;
  font-size: 1.1rem;
}

.path-step small {
  color: rgba(255, 255, 255, 0.68);
}

.path-step.ok {
  border-left-color: var(--green);
}

.path-step.warn {
  border-left-color: var(--amber);
}

.path-step.risk {
  border-left-color: var(--red);
}

.evidence-chip {
  margin: 0 22px 22px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
}

.summary-grid,
.flow-grid,
.issue-grid {
  display: grid;
  gap: 18px;
}

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

.summary-grid article,
.flow-section,
.issue-board,
.input-section,
.acceptance,
.limits {
  padding: 26px;
}

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

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

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

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

.flow-section,
.issue-board,
.input-section,
.acceptance,
.limits {
  margin-top: 18px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.flow-grid {
  grid-template-columns: repeat(5, 1fr);
}

.flow-grid article,
.issue-card,
.input-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9faf6;
}

.flow-grid article {
  min-height: 190px;
  padding: 20px;
}

.flow-grid span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-weight: 900;
}

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

.issue-card {
  min-height: 190px;
  padding: 20px;
  border-top-width: 8px;
}

.issue-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.issue-card.high {
  border-top-color: var(--red);
}

.issue-card.medium {
  border-top-color: var(--amber);
}

.input-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.input-card {
  padding: 20px;
}

.input-card strong {
  display: block;
  margin-bottom: 12px;
}

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

li + li {
  margin-top: 10px;
}

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

.check-row {
  display: grid;
  grid-template-columns: 0.85fr 1.45fr 1.4fr;
  border-top: 1px solid var(--line);
}

.check-row:first-child {
  border-top: 0;
}

.check-row span {
  min-width: 0;
  padding: 14px 16px;
  border-left: 1px solid var(--line);
}

.check-row span:first-child {
  border-left: 0;
  font-weight: 900;
  color: var(--ink);
}

.check-row.head {
  background: var(--dark);
}

.check-row.head span {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 34px;
  }

  h1 {
    font-size: 3rem;
  }

  .summary-grid,
  .flow-grid,
  .issue-grid,
  .input-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  main,
  .topbar {
    width: min(100% - 24px, 1160px);
  }

  .hero,
  .summary-grid article,
  .flow-section,
  .issue-board,
  .input-section,
  .acceptance,
  .limits {
    padding: 20px;
  }

  h1 {
    font-size: 2.34rem;
  }

  h2 {
    font-size: 1.42rem;
  }

  .checkout-map {
    min-height: auto;
  }

  .check-table {
    overflow-x: auto;
  }

  .check-row {
    min-width: 690px;
  }
}
