:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #627067;
  --line: #d9ded8;
  --paper: #f7f5ee;
  --paper-deep: #ebe7dc;
  --white: #ffffff;
  --green: #12664f;
  --green-dark: #0a4436;
  --teal-soft: #e5f3ec;
  --blue: #255f8f;
  --amber: #b96c1c;
  --red: #a43c34;
  --shadow: 0 18px 55px rgba(34, 42, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbfaf6 0, var(--paper) 520px),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: rgba(247, 245, 238, 0.93);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 6px;
  color: var(--white);
  display: inline-flex;
  font-size: 12px;
  height: 34px;
  justify-content: center;
  letter-spacing: 0;
  width: 34px;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  padding: 9px 12px;
  text-decoration: none;
}

.nav a:hover {
  background: #ece9df;
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero,
.band,
.workspace,
.pilot,
.cta-strip,
.risk-section {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: 32px;
  padding-right: 32px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.84fr);
  min-height: calc(100vh - 118px);
  padding-bottom: 34px;
  padding-top: 66px;
}

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

.eyebrow,
.panel-kicker {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(42px, 5.1vw, 66px);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(28px, 3.7vw, 46px);
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 14px;
}

h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.hero-text {
  color: var(--muted);
  font-size: 20px;
  max-width: 690px;
}

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

.signal-row span {
  background: #ebe8dc;
  border: 1px solid #d7d0bf;
  border-radius: 999px;
  color: #46534b;
  font-size: 13px;
  font-weight: 720;
  padding: 7px 10px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 760;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
}

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

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

.button.secondary {
  background: transparent;
  border-color: #b9c0ba;
  color: var(--ink);
}

.button.secondary:hover {
  background: #ece9df;
}

.button.full {
  width: 100%;
}

.snapshot-panel,
.report,
.price-card,
.lead-form,
.results,
fieldset,
.question-panel,
.deliverables {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.snapshot-panel,
.report,
.price-card {
  box-shadow: var(--shadow);
}

.snapshot-panel {
  background: #fcfcf8;
  padding: 26px;
}

.snapshot-panel h2 {
  font-size: 31px;
  margin-bottom: 0;
}

.snapshot-panel p {
  color: var(--muted);
  margin: 18px 0 0;
}

.mini-report {
  display: grid;
  gap: 10px;
}

.mini-report div {
  background: #f3f6f1;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}

.mini-report span {
  color: var(--muted);
}

.mini-report strong {
  color: var(--green);
  text-align: right;
}

.report-header {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.score-badge {
  background: var(--green);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  flex: 0 0 118px;
  gap: 2px;
  min-height: 94px;
  padding: 12px;
  text-align: center;
}

.score-badge span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.15;
}

.score-badge strong {
  font-size: 42px;
  line-height: 0.95;
}

.score-badge small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 760;
}

.score-bar {
  background: #dfe6dd;
  border-radius: 999px;
  height: 10px;
  margin: 0 0 18px;
  overflow: hidden;
}

.score-bar span {
  background: linear-gradient(90deg, var(--amber), var(--green));
  display: block;
  height: 100%;
  width: 64%;
}

.cta-strip {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 28px;
  padding-top: 0;
}

.path-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 8px;
  padding: 22px;
  text-decoration: none;
}

.path-card:hover {
  background: var(--white);
  box-shadow: 0 14px 40px rgba(34, 42, 36, 0.1);
}

.path-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.path-card strong {
  font-size: 24px;
  line-height: 1.1;
}

.path-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.path-card.emphasized {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.path-card.emphasized span,
.path-card.emphasized p {
  color: rgba(255, 255, 255, 0.82);
}

.band,
.workspace,
.pilot,
.risk-section {
  padding-bottom: 72px;
  padding-top: 72px;
  scroll-margin-top: 88px;
}

.band {
  background: linear-gradient(180deg, rgba(235, 231, 220, 0.42), rgba(247, 245, 238, 0));
  max-width: none;
}

.band > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1116px;
}

.section-heading {
  max-width: 790px;
}

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

.risk-section {
  max-width: none;
  background: #14211c;
  color: var(--white);
}

.risk-section > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1116px;
}

.risk-intro {
  max-width: 860px;
}

.risk-intro .eyebrow {
  color: #9bd8bc;
}

.risk-intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.risk-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 30px;
}

.risk-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 20px;
}

.risk-card.severe {
  background: rgba(185, 108, 28, 0.18);
  border-color: rgba(255, 202, 130, 0.34);
}

.risk-card span {
  color: #9bd8bc;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.risk-card h3 {
  color: var(--white);
  font-size: 19px;
}

.risk-card p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0;
}

.risk-proof {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
}

.risk-proof strong {
  color: #9bd8bc;
  flex: 0 0 auto;
}

.risk-proof span {
  color: rgba(255, 255, 255, 0.78);
}

.fit-grid,
.pilot-grid,
.two-column,
.split,
.form-row {
  display: grid;
  gap: 18px;
}

.fit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.fit-grid article {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.fit-grid p,
.deliverables li,
.price-card p {
  color: var(--muted);
}

.two-column {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  margin-top: 30px;
}

.checker {
  display: grid;
  gap: 16px;
}

.question-panel {
  box-shadow: 0 10px 32px rgba(34, 42, 36, 0.05);
  padding: 24px;
}

.question-panel h3 {
  align-items: center;
  display: flex;
  font-size: 17px;
  gap: 10px;
  margin: 0 0 16px;
}

.question-panel h3::before {
  background: var(--green);
  border-radius: 4px;
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  height: 18px;
  width: 5px;
}

fieldset {
  margin: 0;
  padding: 18px;
}

legend {
  font-size: 16px;
  font-weight: 780;
  padding: 0 6px;
}

label {
  color: #344039;
  display: grid;
  font-size: 15px;
  font-weight: 680;
  gap: 8px;
  margin-top: 14px;
}

fieldset label,
.compact-fieldset label,
.question-panel label {
  align-items: flex-start;
  display: flex;
  font-weight: 500;
  gap: 10px;
}

.question-panel label {
  margin-top: 12px;
}

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

input[type="checkbox"] {
  accent-color: var(--green);
  height: 18px;
  margin-top: 2px;
  min-height: 18px;
  padding: 0;
  width: 18px;
}

textarea {
  resize: vertical;
}

.report {
  align-self: start;
  overflow: hidden;
  padding: 0;
  position: sticky;
  top: 92px;
}

.score-card {
  background: linear-gradient(135deg, var(--green), #174c60);
  color: var(--white);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 24px;
}

.score-card > div {
  display: grid;
  gap: 8px;
}

.report-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.score-card strong {
  align-items: baseline;
  display: flex;
  gap: 6px;
}

#score {
  color: var(--white);
  font-size: 76px;
  line-height: 1;
}

.score-card small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
  font-weight: 800;
}

.status-pill {
  align-self: start;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 10px;
}

.status-pill[data-status="strong"] {
  background: rgba(229, 243, 236, 0.22);
}

.status-pill[data-status="moderate"] {
  background: rgba(255, 240, 215, 0.2);
}

.status-pill[data-status="high-risk"] {
  background: rgba(255, 226, 223, 0.2);
}

.readiness-meter {
  background: #dfe6dd;
  height: 12px;
  overflow: hidden;
}

.readiness-meter span {
  background: linear-gradient(90deg, var(--red), var(--amber), var(--green));
  display: block;
  height: 100%;
  transition: width 160ms ease;
  width: 42%;
}

#summary {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
  padding: 22px 24px 0;
}

.next-step-heading {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  margin: 20px 24px 10px;
  text-transform: uppercase;
}

#recommendations {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0 24px 22px;
  padding: 0;
}

#recommendations li {
  background: #f2f6f1;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  padding: 10px 12px;
}

.report .button {
  border-radius: 0;
  min-height: 58px;
}

.pilot-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  margin-top: 28px;
}

.deliverables,
.price-card,
.lead-form {
  padding: 24px;
}

.deliverables ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 20px;
}

.output-preview {
  background: var(--teal-soft);
  border: 1px solid #c8dfd4;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  margin-top: 22px;
  padding: 16px;
}

.output-preview span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.output-preview strong {
  font-size: 18px;
}

.price-card {
  align-self: start;
  display: grid;
  gap: 14px;
}

.price-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-card strong {
  font-size: 58px;
  line-height: 1;
}

.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  max-width: 860px;
}

.form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-fieldset {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-fieldset legend {
  grid-column: 1 / -1;
}

.form-note {
  color: var(--green);
  font-weight: 700;
  margin: 0;
}

.split {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  margin-top: 28px;
}

.textarea-label {
  display: block;
  font-weight: 760;
  margin: 0 0 10px;
}

#csvInput {
  background: #101815;
  border: 1px solid #0f211a;
  color: #eaf3ed;
  font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  min-height: 252px;
}

code {
  background: #e8ece7;
  border-radius: 4px;
  color: #26302a;
  font-size: 0.92em;
  padding: 2px 5px;
}

.results {
  min-height: 340px;
  overflow-x: auto;
  padding: 0;
}

.empty-state {
  align-items: center;
  color: var(--muted);
  display: flex;
  min-height: 300px;
  text-align: center;
}

.result-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px 18px 8px;
}

.result-summary div {
  background: #f4f5ef;
  border-radius: 8px;
  padding: 12px;
}

.result-summary span {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.result-summary strong {
  font-size: 22px;
}

table {
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
  width: 100%;
}

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

th:first-child,
td:first-child {
  padding-left: 18px;
}

th:last-child,
td:last-child {
  padding-right: 18px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 760;
  margin: 2px 3px 2px 0;
  padding: 3px 8px;
}

.pill.warn {
  background: #fff0d7;
  color: #814c10;
}

.pill.danger {
  background: #ffe2df;
  color: var(--red);
}

.pill.good {
  background: #e2f2e9;
  color: var(--green);
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 26px 32px 38px;
  text-align: center;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
    position: static;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero,
  .fit-grid,
  .risk-grid,
  .two-column,
  .pilot-grid,
  .split,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero,
  .band,
  .workspace,
  .pilot,
  .risk-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .band,
  .workspace,
  .pilot,
  .risk-section {
    padding-bottom: 48px;
    padding-top: 48px;
  }

  .report {
    position: static;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 40px;
  }

  .button,
  .hero-actions .button {
    width: 100%;
  }

  .mini-report div,
  .score-card {
    align-items: flex-start;
    flex-direction: column;
  }

  #score {
    font-size: 62px;
  }

  .compact-fieldset,
  .result-summary {
    grid-template-columns: 1fr;
  }

  .risk-proof {
    display: grid;
  }
}
