:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #5c6863;
  --line: #d7ded9;
  --paper: #f7f4ee;
  --white: #fffdf8;
  --teal: #17746a;
  --teal-dark: #0d544e;
  --amber: #b16922;
  --sage: #dbe9df;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 6vw;
  position: sticky;
  top: 0;
  z-index: 3;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--teal);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

.hero {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  min-height: calc(100vh - 64px);
  padding: 7vh 6vw 6vh;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 22px;
  max-width: 760px;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 16px;
}

h3 {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.lede,
.section-copy p,
.match-card p,
.steps p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--teal);
  color: var(--white);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--teal-dark);
}

.metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  max-width: 520px;
}

.metrics div {
  border-left: 3px solid var(--teal);
  padding-left: 12px;
}

.metrics dt {
  font-size: 20px;
  font-weight: 900;
}

.metrics dd {
  color: var(--muted);
  margin: 0;
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(24, 33, 31, 0.22);
  display: block;
  object-fit: cover;
  width: 100%;
}

.section {
  border-top: 1px solid var(--line);
  padding: 76px 6vw;
}

.section-copy {
  max-width: 760px;
}

.sample-section {
  align-items: start;
  background: var(--white);
  display: grid;
  gap: 36px;
  grid-template-columns: 0.85fr 1.15fr;
}

.sample-list {
  display: grid;
  gap: 14px;
}

.match-card {
  align-items: start;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 18px;
  grid-template-columns: 58px 1fr;
  padding: 18px;
}

.score {
  align-items: center;
  background: var(--sage);
  border-radius: 6px;
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  width: 52px;
}

.steps-section {
  background: #ece7dc;
}

.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 210px;
  padding: 22px;
}

.steps span {
  align-items: center;
  background: var(--amber);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-bottom: 28px;
  width: 34px;
}

.pricing-section {
  align-items: center;
  background: var(--teal-dark);
  color: var(--white);
  display: flex;
  gap: 32px;
  justify-content: space-between;
}

.pricing-section .section-copy p,
.pricing-section .eyebrow {
  color: #dce7df;
}

.pricing-section .button.primary {
  background: var(--white);
  color: var(--teal-dark);
  flex: 0 0 auto;
}

.plan-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 42px 6vw 80px;
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  padding: 24px;
}

.plan-card h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.plan-price {
  color: var(--muted);
  margin-bottom: 0;
}

.plan-price span {
  color: var(--teal-dark);
  font-size: 34px;
  font-weight: 900;
}

.plan-features {
  color: var(--muted);
  display: grid;
  gap: 10px;
  line-height: 1.5;
  margin: 0;
  padding-left: 20px;
}

.plan-card .button {
  margin-top: auto;
  width: fit-content;
}

.report-hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 82px 6vw 54px;
}

.report-hero h1 {
  max-width: 820px;
}

.report-section {
  display: grid;
  gap: 22px;
  padding: 42px 6vw 80px;
}

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

.report-summary div,
.report-match {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.report-summary div {
  padding: 18px;
}

.summary-number,
.summary-label {
  display: block;
}

.summary-number {
  color: var(--teal-dark);
  font-size: 24px;
  font-weight: 900;
}

.summary-label {
  color: var(--muted);
  margin-top: 4px;
}

.table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}

.data-table {
  border-collapse: collapse;
  min-width: 920px;
  width: 100%;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--teal-dark);
  font-size: 13px;
  text-transform: uppercase;
}

.data-table td {
  color: var(--muted);
  line-height: 1.45;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  white-space: nowrap;
}

.status-pill.ready {
  background: var(--sage);
  color: var(--teal-dark);
}

.status-pill.blocked {
  background: #f6ded7;
  color: #8f3527;
}

.status-pill.manual_gate {
  background: #f4e5c8;
  color: #7a4d16;
}

.status-pill.watch {
  background: #e7e4dc;
  color: var(--muted);
}

.opportunity-list {
  display: grid;
  gap: 18px;
  padding: 0 6vw 80px;
}

.opportunity-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 22px;
  grid-template-columns: 76px 1fr;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  padding: 24px;
}

.opportunity-score {
  align-content: center;
  background: var(--sage);
  border-radius: 6px;
  color: var(--teal-dark);
  display: grid;
  height: 70px;
  justify-items: center;
  width: 70px;
}

.opportunity-score span {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.opportunity-score small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.opportunity-body h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 18px;
}

.report-match {
  display: grid;
  gap: 20px;
  grid-template-columns: 64px 1fr;
  padding: 24px;
}

.report-match h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 18px;
}

.report-details {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 22px;
}

.report-details dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-details dd {
  margin: 4px 0 0;
}

.intake-section {
  padding: 42px 6vw 80px;
}

.intake-form {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.intake-form label {
  color: var(--ink);
  display: grid;
  font-weight: 800;
  gap: 8px;
}

.intake-form input,
.intake-form textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 12px;
  width: 100%;
}

.intake-form textarea {
  resize: vertical;
}

.intake-form .button {
  border: 0;
  cursor: pointer;
  max-width: 240px;
}

.digest-page {
  padding: 52px 6vw 80px;
}

.digest-document {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 980px;
  overflow-wrap: anywhere;
  padding: 34px;
}

.digest-document h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.digest-document h2 {
  border-top: 1px solid var(--line);
  font-size: clamp(24px, 3vw, 34px);
  margin-top: 34px;
  padding-top: 28px;
}

.digest-document h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  margin-top: 30px;
}

.digest-document p,
.digest-document li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.digest-document ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.campaign-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 42px 6vw 80px;
}

.campaign-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  padding: 22px;
}

.campaign-card h2 {
  font-size: clamp(26px, 3vw, 36px);
}

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

.campaign-metrics div {
  border-left: 3px solid var(--teal);
  padding-left: 10px;
}

.campaign-metrics dt {
  color: var(--teal-dark);
  font-size: 26px;
  font-weight: 900;
}

.campaign-metrics dd {
  color: var(--muted);
  margin: 0;
}

.queue-path {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.approval-list {
  display: grid;
  gap: 18px;
  padding: 42px 6vw 80px;
}

.approval-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-wrap: anywhere;
  padding: 22px;
}

.approval-head {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.approval-card pre {
  background: #f1eee7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  overflow-x: auto;
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  nav {
    gap: 16px;
    overflow-x: auto;
    width: 100%;
  }

  .hero,
  .sample-section,
  .pricing-section {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 56px 28px 48px;
  }

  .hero-copy {
    max-width: 100%;
    min-width: 0;
  }

  .lede {
    font-size: 16px;
    max-width: 31ch;
  }

  .eyebrow {
    font-size: 12px;
    line-height: 1.35;
    max-width: 28ch;
  }

  h1 {
    font-size: clamp(34px, 9vw, 40px);
    line-height: 1.04;
    max-width: 13ch;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 280px;
  }

  .button {
    justify-content: center;
    width: 100%;
  }

  .metrics,
  .steps,
  .report-summary,
  .report-details {
    grid-template-columns: 1fr;
  }

  .report-hero {
    padding: 58px 28px 42px;
  }

  .report-hero h1 {
    max-width: 11ch;
  }

  .report-section {
    padding: 32px 28px 58px;
  }

  .intake-section {
    padding: 32px 28px 58px;
  }

  .digest-page {
    padding: 32px 20px 58px;
  }

  .campaign-grid {
    grid-template-columns: 1fr;
    padding: 32px 20px 58px;
  }

  .plan-grid {
    grid-template-columns: 1fr;
    padding: 32px 20px 58px;
  }

  .plan-card .button {
    width: 100%;
  }

  .campaign-card h2 {
    font-size: 24px;
    max-width: 13ch;
  }

  .approval-list {
    padding: 32px 20px 58px;
  }

  .approval-head {
    display: grid;
  }

  .approval-card h2 {
    font-size: 28px;
  }

  .digest-document {
    max-width: 320px;
    overflow: hidden;
    padding: 22px;
    word-break: break-word;
  }

  .report-match {
    grid-template-columns: 1fr;
  }

  .opportunity-list {
    padding: 0 20px 58px;
  }

  .opportunity-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .opportunity-score {
    height: 64px;
    width: 64px;
  }

  .hero-visual {
    margin-top: 34px;
  }

  .sample-list,
  .pricing-section .button {
    margin-top: 24px;
  }
}
