:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #5b6965;
  --paper: #f6f8f5;
  --panel: #ffffff;
  --line: #dce5df;
  --brand: #155f52;
  --brand-dark: #0c4339;
  --mint: #dff3eb;
  --amber: #fff0c7;
  --blue: #e2ebfb;
  --shadow: 0 20px 60px rgba(25, 55, 47, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 0%, #dff3eb 0, transparent 30rem),
    radial-gradient(circle at 100% 20%, #e2ebfb 0, transparent 28rem), var(--paper);
}

button,
input,
select {
  font: inherit;
}

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

.hero {
  max-width: 850px;
  padding: 24px 0 34px;
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
}

.lede {
  max-width: 760px;
  color: #35433f;
  font-size: 1.22rem;
  line-height: 1.6;
}

.privacy-note {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid #b8d8cd;
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 700;
}

.panel {
  margin-bottom: 22px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.setup-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

label {
  display: grid;
  gap: 7px;
  color: #394743;
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c9d7d1;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}

input:focus,
select:focus,
button:focus-visible,
.context-link:focus-visible {
  outline: 3px solid rgba(21, 95, 82, 0.24);
  outline-offset: 2px;
}

.stage-cards,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.stage-card,
.summary-card {
  min-height: 112px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.stage-card:nth-child(1),
.summary-card:nth-child(1) {
  background: var(--mint);
}

.stage-card:nth-child(2),
.summary-card:nth-child(2) {
  background: var(--amber);
}

.stage-card:nth-child(3),
.summary-card:nth-child(3) {
  background: var(--blue);
}

.stage-card strong,
.summary-card strong {
  display: block;
  margin-bottom: 6px;
}

.stage-card span,
.summary-card span {
  color: #46534f;
  font-size: 0.9rem;
  line-height: 1.45;
}

.summary-card b {
  display: block;
  margin-top: 10px;
  font-size: 1.75rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.supporting {
  max-width: 820px;
  margin: 14px 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

td:first-child {
  min-width: 180px;
  font-weight: 750;
}

td:nth-child(2) {
  min-width: 180px;
}

td:nth-child(3) {
  min-width: 150px;
}

td:nth-child(4) {
  min-width: 260px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

button,
.context-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

button.primary {
  border: 1px solid var(--brand-dark);
  color: #fff;
  background: var(--brand);
}

button.secondary {
  border: 1px solid #bdcdc7;
  color: var(--brand-dark);
  background: #fff;
}

.agenda {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.agenda-section {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafcf9;
}

.agenda-section h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.agenda-section ul {
  margin: 0;
  padding-left: 21px;
}

.agenda-section li + li {
  margin-top: 8px;
}

.empty-state {
  padding: 20px;
  border: 1px dashed #b9c8c2;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.status {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
}

.context {
  display: grid;
  grid-template-columns: 1.5fr auto;
  align-items: center;
  gap: 28px;
  margin: 34px 0 18px;
  padding: 28px;
  border-radius: 22px;
  color: #edf9f4;
  background: var(--brand-dark);
}

.context .section-label {
  color: #8fd0bd;
}

.context p {
  margin: 12px 0 0;
  color: #d3e9e1;
  line-height: 1.6;
}

.context-link {
  color: var(--brand-dark);
  background: #fff;
}

footer {
  padding: 12px 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 820px) {
  .setup-grid,
  .stage-cards,
  .summary-grid,
  .context {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .context-link {
    width: fit-content;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 24px;
  }

  .panel {
    padding: 19px 15px;
    border-radius: 18px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .button-row,
  .button-row button {
    width: 100%;
  }
}
