:root {
  color-scheme: light;
  --paper: #f5f7fb;
  --ink: #16202a;
  --muted: #5d6875;
  --card: #ffffff;
  --line: #d8dee8;
  --blue: #2358a4;
  --green: #1f7a5c;
  --amber: #a86016;
  --red: #aa3f3f;
  --violet: #5d54a1;
  --dark: #111a24;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(35, 88, 164, 0.12), rgba(245, 247, 251, 0) 340px),
    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(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

.hero,
.summary-grid article,
.flow-section,
.board-section,
.input-section,
.acceptance,
.fit-limits article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 18px 46px rgba(17, 26, 36, 0.07);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.92fr);
  gap: 28px;
  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: 3.6rem;
  line-height: 1;
  letter-spacing: 0;
}

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

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

p,
li,
.check-row span,
.sheet-grid > div,
.kpi-row small,
dd {
  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(35, 88, 164, 0.24);
  border-radius: 8px;
  background: #edf3ff;
  color: #244d88;
  font-weight: 800;
}

.workbook {
  overflow: hidden;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
}

.workbook-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.workbook-top span,
.workbook-top b,
.status-strip span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workbook-top strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 1.16rem;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 18px 0;
}

.kpi-row article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.kpi-row span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kpi-row strong {
  display: block;
  margin: 8px 0 2px;
  color: #fff;
  font-size: 2rem;
}

.kpi-row small {
  color: rgba(255, 255, 255, 0.72);
}

.sheet-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.85fr 0.9fr;
  margin: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.sheet-grid > div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  overflow-wrap: anywhere;
}

.sheet-grid > div:nth-child(4n) {
  border-right: 0;
}

.sheet-grid > div:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.sheet-grid .head {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 900;
}

.sheet-grid .ok {
  color: #8ee2b5;
  font-weight: 900;
}

.sheet-grid .warn {
  color: #f0bc73;
  font-weight: 900;
}

.status-strip {
  margin: 0 18px 18px;
  padding: 14px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.status-strip strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  line-height: 1.42;
}

.summary-grid,
.board-grid,
.fit-limits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.summary-grid article,
.fit-limits article {
  padding: 24px;
}

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

.problem {
  background: #fff0ed;
  color: var(--red);
}

.pass {
  background: #eef5ff;
  color: var(--blue);
}

.proof {
  background: #edf8f2;
  color: var(--green);
}

.flow-section,
.board-section,
.input-section,
.acceptance {
  margin-top: 16px;
  padding: 32px;
}

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

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.flow-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.flow-grid span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-weight: 900;
}

.board-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0;
}

.ticket {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 8px;
  background: #fbfcfe;
}

.ticket.review {
  border-top-color: var(--amber);
}

.ticket.rounded {
  border-top-color: var(--violet);
}

.ticket.excluded {
  border-top-color: var(--red);
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.ticket-head span,
.ticket-head b {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

dl div {
  display: grid;
  gap: 2px;
}

dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0;
}

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

.input-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.input-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

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

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

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

.check-row {
  display: grid;
  grid-template-columns: 0.7fr 1.25fr 1.15fr;
}

.check-row + .check-row {
  border-top: 1px solid var(--line);
}

.check-row span {
  min-width: 0;
  padding: 14px 16px;
  overflow-wrap: anywhere;
}

.check-row span + span {
  border-left: 1px solid var(--line);
}

.check-row.head {
  background: #eef2f8;
}

.check-row.head span {
  color: var(--ink);
  font-weight: 900;
}

.fit-limits {
  grid-template-columns: repeat(2, 1fr);
}

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

  .summary-grid,
  .flow-grid,
  .board-grid,
  .fit-limits {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero,
  .flow-section,
  .board-section,
  .input-section,
  .acceptance {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .topbar {
    flex-direction: column;
  }

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

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

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

  .sheet-grid > div:nth-child(4n) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .sheet-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .sheet-grid > div:nth-last-child(-n + 4) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .sheet-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

  .check-row span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
