:root {
  --ink: #17212b;
  --muted: #5d6977;
  --line: #d9e1e8;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --teal: #0f766e;
  --coral: #be4d3f;
  --amber: #b76b16;
  --navy: #233447;
}

* { box-sizing: border-box; }

html {
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
}

a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 5vw, 58px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

nav a,
.pill,
.status-row span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(20px, 5vw, 54px);
  align-items: end;
  padding: clamp(36px, 6vw, 82px) clamp(18px, 5vw, 58px) 30px;
  background:
    linear-gradient(120deg, rgba(15,118,110,.13), rgba(190,77,63,.08)),
    #eef4f7;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-weight: 860;
  font-size: 12px;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  font-size: clamp(34px, 6vw, 66px);
}

h2 { font-size: clamp(22px, 3.2vw, 34px); }

.lead {
  max-width: 860px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  word-break: keep-all;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.bid-signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.bid-signal-row article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, .22);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
}

.bid-signal-row strong {
  color: var(--navy);
  font-size: 16px;
}

.bid-signal-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  word-break: keep-all;
}

.process-flow {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.process-flow span {
  display: grid;
  min-height: 48px;
  align-items: center;
  padding: 0 14px;
  border-left: 5px solid var(--teal);
  border-radius: 6px;
  background: #f9fbfc;
  font-weight: 820;
}

.process-flow span:nth-child(3),
.process-flow span:nth-child(4) { border-color: var(--coral); }

.process-flow span:nth-child(5),
.process-flow span:nth-child(6) { border-color: var(--amber); }

.tool-band,
.table-band,
.insight-band,
.closing-band,
.deliverable-band,
.assumption-band,
.materials-band {
  padding: 30px clamp(18px, 5vw, 58px);
}

.tool-band {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 18px;
  align-items: start;
}

.drawing-panel,
.review-panel,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.pill {
  white-space: nowrap;
  color: var(--teal);
}

.pill.warn { color: var(--coral); }

.canvas-wrap {
  padding: 12px;
  background:
    repeating-linear-gradient(0deg, rgba(23,33,43,.055) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(23,33,43,.055) 0 1px, transparent 1px 28px),
    #fafdff;
}

canvas {
  display: block;
  width: 100%;
  aspect-ratio: 940 / 520;
  border: 1px solid #cbd6df;
  border-radius: 8px;
  background: #fff;
}

.mini-map {
  display: block;
  width: 100%;
  height: auto;
  padding: 10px 18px 18px;
}

.pipe-line {
  fill: none;
  stroke: #334155;
  stroke-width: 16;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.branch-point { fill: #0f766e; }
.cut-point { fill: #be4d3f; }
.result-arrow {
  fill: none;
  stroke: #0f766e;
  stroke-width: 6;
  stroke-linecap: round;
}

svg text {
  fill: #405061;
  font-size: 17px;
  font-weight: 760;
}

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

.metrics div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.metrics dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.metrics dd {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 880;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 18px 18px 36px;
  color: #405061;
  line-height: 1.58;
}

.section-title {
  max-width: 880px;
  margin-bottom: 14px;
}

.section-title p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

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

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

.closing-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.closing-grid article {
  display: grid;
  gap: 9px;
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.closing-grid strong {
  color: var(--navy);
  font-size: 18px;
}

.closing-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  word-break: keep-all;
}

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

.insight-grid article,
.assumption-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.insight-grid article {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 18px;
}

.insight-grid strong {
  color: var(--navy);
  font-size: 18px;
}

.insight-grid p,
.assumption-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  word-break: keep-all;
}

.deliverable-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.deliverable-list span {
  display: grid;
  min-height: 82px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  background: #fff;
  font-weight: 820;
  color: var(--navy);
}

.assumption-panel {
  max-width: 1060px;
  padding: 22px;
  border-left: 6px solid var(--teal);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: #fff;
  background: var(--navy);
  font-size: 13px;
}

tbody tr:nth-child(even) { background: #f8fafc; }

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

.materials-grid a {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.materials-grid strong {
  font-size: 18px;
}

.materials-grid span {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 980px) {
  .hero-band,
  .tool-band,
  .bid-signal-row,
  .closing-grid,
  .closing-grid.three,
  .insight-grid,
  .deliverable-list,
  .materials-grid {
    grid-template-columns: 1fr;
  }
}

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

  nav {
    justify-content: flex-start;
  }

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