:root {
  color-scheme: light;
  --ink: #1e2522;
  --muted: #68736f;
  --line: #d9dfdc;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --green: #12734d;
  --green-dark: #0b5138;
  --amber: #b96b1a;
  --blue: #285c8f;
  --red: #b13e31;
  --shadow: 0 18px 50px rgba(31, 45, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--paper);
  color: var(--ink);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(30, 37, 34, 0.08);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: white;
}

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 74vh;
  overflow: hidden;
  padding: 92px 32px 72px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.88) 45%, rgba(251, 250, 247, 0.56) 100%),
    linear-gradient(135deg, #f6efe3 0%, #e8f0ea 46%, #d7e7ef 100%);
}

.radar-board {
  position: absolute;
  top: 78px;
  right: 32px;
  bottom: 56px;
  z-index: -1;
  width: min(720px, 58vw);
  padding: 28px;
  border: 1px solid rgba(30, 37, 34, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.74)),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(18, 115, 77, 0.09) 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(40, 92, 143, 0.08) 48px);
  box-shadow: var(--shadow);
}

.board-row {
  display: grid;
  grid-template-columns: 1fr 120px 90px;
  align-items: center;
  min-height: 62px;
  margin-bottom: 14px;
  padding: 0 18px;
  border: 1px solid rgba(30, 37, 34, 0.1);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.board-row.active {
  border-left-color: var(--green);
}

.board-row.alert {
  border-left-color: var(--amber);
}

.board-row span,
.board-row small,
.board-grid span {
  color: var(--muted);
}

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

.board-grid div {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(30, 37, 34, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.board-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 1.15rem;
}

.hero-copy {
  max-width: 760px;
  align-self: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 3.8rem;
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 2.1rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.hero-copy p {
  max-width: 660px;
  color: #3f4945;
  font-size: 1.18rem;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

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

.button.secondary {
  border-color: rgba(30, 37, 34, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button.secondary:hover {
  background: white;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.proof-strip div {
  min-height: 124px;
  padding: 28px 32px;
  background: var(--surface);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip span {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.section,
.workflow,
.capture-section {
  padding: 84px 32px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

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

.section-heading.compact {
  margin-bottom: 26px;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.opportunity-card,
.price-card,
.steps div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.opportunity-card {
  min-height: 270px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(31, 45, 38, 0.08);
}

.opportunity-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #edf5ef;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 750;
}

.pill.warn {
  background: #fff2df;
  color: var(--amber);
}

.pill.blue {
  background: #eaf2f9;
  color: var(--blue);
}

.opportunity-card p {
  color: var(--muted);
  line-height: 1.55;
}

.opportunity-card dl {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px 12px;
  margin: 18px 0 0;
  font-size: 0.92rem;
}

.opportunity-card dt {
  color: var(--muted);
}

.opportunity-card dd {
  margin: 0;
  font-weight: 700;
}

.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, #eef1ee, #f9faf8, #eef1ee);
}

.skeleton.title {
  width: 80%;
  height: 28px;
  margin-bottom: 22px;
}

.skeleton.line {
  height: 16px;
  margin-bottom: 12px;
}

.skeleton.short {
  width: 58%;
}

.workflow {
  background: #eef3ef;
}

.segment-section {
  background: var(--surface);
}

.segment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}

.segment-chip {
  display: grid;
  min-width: 210px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.segment-chip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.segment-chip strong {
  color: var(--green-dark);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}

.steps div {
  min-height: 210px;
  padding: 24px;
}

.steps span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 900;
}

.steps p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-section {
  background: var(--paper);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}

.price-card {
  min-height: 210px;
  padding: 26px;
}

.price-card.featured {
  border-color: rgba(18, 115, 77, 0.45);
  box-shadow: var(--shadow);
}

.price {
  margin-bottom: 16px;
  color: var(--green-dark);
  font-size: 2.4rem;
  font-weight: 900;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.price-card p:not(.price) {
  color: var(--muted);
  line-height: 1.6;
}

.plan-button {
  width: 100%;
  margin-top: 12px;
}

.capture-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 42px;
  max-width: 1180px;
  margin: 0 auto;
}

.capture-copy {
  align-self: start;
  position: sticky;
  top: 94px;
}

.capture-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  padding-left: 20px;
  position: relative;
  color: #3f4945;
}

.checklist li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #37423d;
  font-size: 0.92rem;
  font-weight: 750;
}

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

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(18, 115, 77, 0.14);
}

.consent {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.consent input {
  min-height: 18px;
  margin-top: 3px;
}

.submit-button {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
}

.form-status.ok {
  color: var(--green-dark);
}

.form-status.error {
  color: var(--red);
}

.legal-note,
.muted {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.admin-page {
  background: var(--paper);
}

.admin-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
}

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

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-heading h1 {
  margin: 0;
  font-size: 2.3rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.metric-grid div,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric-grid div {
  min-height: 96px;
  padding: 18px;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.admin-panel {
  margin: 28px 0;
  padding: 22px;
}

.admin-panel h2 {
  font-size: 1.4rem;
}

.code-block {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6f3;
  color: #22302a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  min-width: 130px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef3ef;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.inline-admin-form,
.opportunity-form {
  display: grid;
  gap: 10px;
  min-width: 320px;
}

.inline-admin-form label,
.opportunity-form label {
  font-size: 0.84rem;
}

.premium-fields {
  display: grid;
  gap: 10px;
  margin: 6px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.premium-fields h3 {
  margin: 0;
  font-size: 1rem;
}

.compact-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

.compact-check input {
  width: 16px;
  min-height: 16px;
}

.audit-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin-top: 8px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef1ee;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.audit-badge.ready {
  background: #e4f4ea;
  color: var(--green-dark);
}

.audit-badge.warn {
  background: #fff2df;
  color: var(--amber);
}

.audit-badge.blocked {
  background: #fdebe8;
  color: var(--red);
}

.audit-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #3f4945;
}

.button.small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.88rem;
}

.button.danger {
  border-color: rgba(177, 62, 49, 0.3);
  color: var(--red);
}

.newsletter-box {
  width: 100%;
  min-height: 620px;
  margin-top: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  line-height: 1.5;
}

.legal-shell {
  max-width: 840px;
  margin: 0 auto;
  padding: 54px 24px;
}

.legal-shell h1 {
  margin-top: 42px;
  font-size: 2.6rem;
}

.legal-content {
  color: #3f4945;
  font-size: 1.05rem;
  line-height: 1.75;
}

.legal-content p {
  margin-bottom: 18px;
}

.opportunity-page {
  max-width: 960px;
}

.opportunity-page .legal-content h1 {
  max-width: 860px;
  margin-top: 8px;
  font-size: 3rem;
}

.opportunity-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 34px;
}

.opportunity-detail-grid div,
.inline-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.opportunity-detail-grid div {
  min-height: 104px;
  padding: 18px;
}

.opportunity-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.opportunity-detail-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--green-dark);
  font-size: 1.25rem;
}

.premium-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 30px;
}

.premium-detail-grid section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.premium-detail-grid h3 {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 1rem;
}

.inline-cta {
  margin: 34px 0 18px;
  padding: 24px;
}

.inline-cta h2 {
  font-size: 1.45rem;
}

.segment-grid {
  display: grid;
  gap: 16px;
  margin: 30px 0;
}

.segment-opportunity {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.segment-opportunity h2 {
  font-size: 1.45rem;
}

.segment-opportunity dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px 12px;
  margin: 18px 0;
}

.segment-opportunity dt {
  color: var(--muted);
}

.segment-opportunity dd {
  margin: 0;
  font-weight: 800;
}

@media (max-width: 940px) {
  .topbar {
    align-items: flex-start;
    min-height: auto;
    padding: 16px 20px;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 70px 20px 58px;
  }

  .radar-board {
    right: -100px;
    width: 720px;
    opacity: 0.42;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-copy p {
    font-size: 1.03rem;
  }

  .proof-strip,
  .opportunity-grid,
  .steps,
  .pricing-grid,
  .capture-section,
  .metric-grid,
  .opportunity-detail-grid,
  .premium-detail-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .workflow,
  .capture-section {
    padding: 60px 20px;
  }

  .capture-copy {
    position: static;
  }

  .admin-heading,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .field-pair {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .board-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
  }

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

  .capture-section {
    gap: 26px;
  }

  .segment-chip {
    width: 100%;
  }
}
