:root {
  --ink: #18201f;
  --muted: #5e6b68;
  --line: #dce2de;
  --paper: #f8faf7;
  --white: #ffffff;
  --green: #285e4c;
  --green-dark: #173f35;
  --brass: #a67c38;
  --brass-dark: #7b5927;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 18px 32px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.site-header.solid {
  background: var(--green-dark);
  position: sticky;
}

.brand,
.nav-links {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand {
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--brass);
  border-radius: 6px;
  color: var(--ink);
  display: inline-flex;
  font-size: 13px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--white);
}

.hero {
  isolation: isolate;
  min-height: 82vh;
  overflow: hidden;
  position: relative;
}

.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: -2;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(14, 25, 23, 0.84), rgba(14, 25, 23, 0.46), rgba(14, 25, 23, 0.08));
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-content {
  color: var(--white);
  max-width: 720px;
  padding: 150px 32px 96px;
  width: min(100%, 1180px);
}

.eyebrow {
  color: var(--brass);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 20px;
}

h2 {
  font-size: 36px;
  line-height: 1.12;
  margin-bottom: 16px;
}

h3 {
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  max-width: 620px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--brass);
  color: var(--ink);
}

.button.primary:hover {
  background: #be9148;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.button.secondary.inline {
  margin-top: 20px;
}

.button.secondary:hover {
  border-color: var(--white);
}

.button.secondary.dark {
  border-color: #cfd7d4;
  color: var(--ink);
}

.button.secondary.dark:hover {
  border-color: var(--green);
}

.button.full {
  width: 100%;
}

.button.inline {
  width: auto;
}

.section {
  padding: 72px 32px;
}

.section.alt {
  background: var(--white);
}

.section-inner {
  margin: 0 auto;
  max-width: 1180px;
}

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

.section-heading.compact {
  max-width: 460px;
}

.section-heading p,
.item p,
.steps p,
.plain-content p,
.payment-note,
.form-note {
  color: var(--muted);
}

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

.item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.item h2 {
  font-size: 23px;
}

.text-link {
  color: var(--green);
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.offer-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-layout,
.contact-layout,
.intake-layout,
.split {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.steps {
  counter-reset: steps;
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 0 0 18px;
}

.steps span {
  color: var(--brass-dark);
  font-weight: 700;
}

.proof {
  background: var(--green-dark);
  color: var(--white);
}

.proof .eyebrow {
  color: #d5b16a;
}

.proof .text-link {
  color: #d5b16a;
}

.proof h2 {
  margin-bottom: 0;
}

.fit-list {
  columns: 2;
  gap: 28px;
  margin: 0;
  padding-left: 20px;
}

.fit-list li {
  margin-bottom: 12px;
}

.lead-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 24px;
}

label {
  color: var(--ink);
  display: grid;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
}

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

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(40, 94, 76, 0.16);
}

.full {
  grid-column: 1 / -1;
}

.consent {
  align-items: start;
  display: grid;
  font-weight: 400;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr);
}

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

.trap {
  display: none;
}

.form-note {
  font-size: 13px;
  margin: 0;
}

.intake-form {
  align-self: start;
}

.scope-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 28px;
  padding: 20px;
}

.scope-panel h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.scope-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.builder-intro {
  padding-bottom: 40px;
}

.builder-lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 760px;
}

.builder-section {
  padding-top: 40px;
}

.builder-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
}

.builder-controls,
.builder-result {
  display: grid;
  gap: 16px;
}

.builder-controls fieldset,
.result-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 22px;
}

.builder-controls fieldset {
  display: grid;
  gap: 16px;
}

.builder-controls legend {
  font-size: 18px;
  font-weight: 700;
  padding: 0 8px;
}

.check-option {
  align-items: start;
  display: grid;
  font-weight: 400;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr);
}

.check-option input {
  min-height: 18px;
  margin-top: 2px;
}

.builder-result {
  align-self: start;
  position: sticky;
  top: 88px;
}

.result-block h2 {
  font-size: 28px;
}

.result-block p {
  color: var(--muted);
}

#scope-summary {
  min-height: 260px;
}

.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 10px;
}

.calculator-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calculator-metrics div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.calculator-metrics span {
  color: var(--green-dark);
  display: block;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.calculator-metrics p {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
}

.site-footer {
  align-items: center;
  background: #101514;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  font-size: 14px;
  gap: 18px;
  justify-content: space-between;
  padding: 24px 32px;
}

.plain-page {
  background: var(--white);
}

.plain-content {
  margin: 0 auto;
  max-width: 760px;
  padding: 80px 32px;
}

.plain-content.wide {
  max-width: 920px;
}

.plain-content h1 {
  color: var(--ink);
  font-size: 44px;
}

.service-hero {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 460px;
}

.service-hero img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.service-hero > div {
  align-self: center;
  padding: 64px;
}

.service-hero h1 {
  color: var(--ink);
  font-size: 48px;
}

.service-hero p {
  color: var(--muted);
  max-width: 620px;
}

.service-copy {
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.case-list {
  display: grid;
  gap: 24px;
}

.case-study {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.case-study h2 {
  font-size: 30px;
}

.check-section {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 28px;
}

.demo-intro {
  padding-bottom: 32px;
}

.demo-section {
  padding-top: 0;
}

.demo-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.demo-toolbar {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  padding: 28px;
}

.demo-toolbar h2 {
  margin-bottom: 0;
}

.search-label {
  font-size: 13px;
}

.filter-row {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 28px;
}

.filter-button,
.status-actions button {
  background: #fbfcfb;
  border: 1px solid #cfd7d4;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  min-height: 38px;
  padding: 8px 12px;
}

.filter-button.active,
.filter-button:hover,
.status-actions button:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.metric-grid {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
  border-right: 1px solid var(--line);
  padding: 22px 28px;
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  color: var(--green-dark);
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.metric p {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  min-height: 520px;
}

.lead-column {
  border-right: 1px solid var(--line);
  padding: 24px;
}

.column-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.column-heading h3 {
  margin-bottom: 0;
}

.column-heading span {
  color: var(--muted);
  font-size: 13px;
}

.lead-list {
  display: grid;
  gap: 12px;
}

.lead-card {
  background: #fbfcfb;
  border: 1px solid #cfd7d4;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 8px;
  padding: 16px;
  text-align: left;
  width: 100%;
}

.lead-card[data-active="true"],
.lead-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(40, 94, 76, 0.12);
}

.lead-card-top {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.lead-card-top strong {
  line-height: 1.25;
}

.status-pill {
  background: rgba(166, 124, 56, 0.14);
  border-radius: 999px;
  color: var(--brass-dark);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.lead-meta,
.lead-problem,
.empty-state {
  color: var(--muted);
  font-size: 13px;
}

.detail-panel {
  padding: 28px;
}

.detail-panel h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

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

.detail-grid div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.detail-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-grid dd {
  margin: 4px 0 0;
}

.next-box,
.reply-preview {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 18px;
}

.next-box h4,
.reply-preview h4 {
  font-size: 15px;
  margin: 0 0 8px;
}

.next-box p,
.reply-preview p {
  color: var(--muted);
  margin: 0;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

@media (max-width: 900px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-links {
    gap: 10px;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    padding: 128px 22px 72px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 30px;
  }

  .offer-grid,
  .process-layout,
  .contact-layout,
  .intake-layout,
  .builder-layout,
  .split,
  .offer-grid.three,
  .service-hero,
  .service-copy,
  .demo-toolbar,
  .board-layout {
    grid-template-columns: 1fr;
  }

  .offer-grid {
    gap: 14px;
  }

  .section {
    padding: 56px 22px;
  }

  .lead-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .service-hero {
    min-height: auto;
  }

  .service-hero img {
    aspect-ratio: 16 / 9;
  }

  .service-hero > div {
    padding: 40px 22px;
  }

  .service-hero h1 {
    font-size: 36px;
  }

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

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .lead-column {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero-content {
    padding-top: 154px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-copy {
    font-size: 18px;
  }

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

  .fit-list {
    columns: 1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-toolbar,
  .filter-row,
  .lead-column,
  .detail-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .metric-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:nth-child(2) {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .lead-card-top {
    display: grid;
  }

  .builder-result {
    position: static;
  }

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

  .calculator-metrics {
    grid-template-columns: 1fr;
  }
}
