:root {
  color-scheme: light;
  --bg: #f7f9f6;
  --surface: #ffffff;
  --surface-alt: #eef3ef;
  --text: #15201b;
  --muted: #5a675f;
  --border: #d9e1db;
  --green: #1c7c54;
  --green-strong: #0f5f40;
  --blue: #275c9d;
  --amber: #9a6700;
  --rose: #a33c55;
  --shadow: 0 18px 50px rgba(31, 54, 43, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(28, 124, 84, 0.08), rgba(247, 249, 246, 0) 420px),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  min-height: 430px;
}

.hero-copy,
.matrix-preview,
.table-panel,
.gate-panel,
.control-bar {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.95;
  font-weight: 780;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 720;
}

.lede {
  margin-top: 24px;
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--green);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--green-strong);
}

.button.secondary,
.button.text {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text);
}

.button.text {
  min-height: 38px;
}

.status-text {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.matrix-preview {
  padding: 24px;
  display: flex;
  align-items: center;
}

.preview-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 0.76fr 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.cell {
  min-height: 58px;
  padding: 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.35;
}

.cell:nth-child(3n) {
  border-right: 0;
}

.cell:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.cell.header {
  min-height: 44px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lane {
  color: #ffffff;
  font-weight: 800;
}

.lane.direct {
  background: var(--green);
}

.lane.network {
  background: var(--blue);
}

.lane.baseline {
  background: var(--amber);
}

.control-bar {
  margin-top: 24px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: none;
}

.control-bar label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

select {
  min-height: 38px;
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
}

.workspace {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.table-panel {
  overflow: hidden;
}

.section-heading {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.section-heading p {
  color: var(--muted);
  font-size: 14px;
}

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

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

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

td {
  font-size: 14px;
  line-height: 1.5;
}

td.product {
  font-weight: 800;
}

.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

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

.tag.partner_marketplace {
  background: var(--rose);
}

.tag.affiliate_network_asp {
  background: var(--blue);
}

.tag.sponsorship_or_referral {
  background: #7057a8;
}

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

.source-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gate-panel {
  padding: 22px;
  display: grid;
  gap: 24px;
}

.gate-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.gate-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.gate-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.disclosure-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 18px;
}

.disclosure-box p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

  .hero-copy {
    padding: 32px;
  }

  .gate-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding: 18px 0 34px;
  }

  .hero-copy {
    padding: 24px;
  }

  h1 {
    font-size: 43px;
  }

  .lede {
    font-size: 16px;
  }

  .control-bar {
    align-items: stretch;
    flex-direction: column;
  }

  select,
  .button {
    width: 100%;
  }

  .section-heading {
    display: grid;
  }
}
