:root {
  color-scheme: light;
  --ink: #151412;
  --muted: #5f5b54;
  --paper: #f7f4ee;
  --white: #ffffff;
  --line: #ddd7cc;
  --green: #0f7f67;
  --green-dark: #075542;
  --amber: #d89232;
  --blue: #dcecf5;
  --clay: #b75f45;
  --shadow: 0 22px 60px rgba(28, 24, 18, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::selection {
  background: var(--amber);
  color: var(--ink);
}

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

img,
svg {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(221, 215, 204, 0.78);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand,
.nav-links,
.hero-actions,
.hero-proof,
.footer-inner,
.pilot-pricing {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 800;
  gap: 10px;
  min-width: max-content;
}

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

.nav-links {
  color: var(--muted);
  font-size: 0.95rem;
  gap: clamp(14px, 3vw, 30px);
}

.nav-links a,
.site-footer a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--green-dark);
  text-decoration-color: currentColor;
}

.header-cta {
  background: var(--green);
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  padding: 10px 16px;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.header-cta:hover,
.button.primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.hero {
  background:
    linear-gradient(90deg, rgba(16, 14, 11, 0.82) 0%, rgba(16, 14, 11, 0.68) 42%, rgba(16, 14, 11, 0.25) 100%),
    url("assets/renovation-tablet.jpg") center / cover;
  color: var(--white);
  display: grid;
  min-height: 78svh;
  overflow: hidden;
  padding: 104px clamp(18px, 5vw, 72px) 40px;
  position: relative;
}

.hero::after {
  background: linear-gradient(0deg, rgba(247, 244, 238, 1) 0%, rgba(247, 244, 238, 0) 100%);
  bottom: -1px;
  content: "";
  height: 78px;
  left: 0;
  position: absolute;
  right: 0;
}

.hero-content {
  align-self: center;
  max-width: 840px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-label {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  overflow-wrap: break-word;
}

.hero h1 {
  font-size: clamp(3rem, 7.4vw, 5.85rem);
  max-width: 980px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  margin: 22px 0 0;
  max-width: 720px;
}

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

.button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

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

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.button.ghost:hover {
  border-color: var(--green);
  color: var(--green-dark);
  transform: translateY(-1px);
}

.hero-proof {
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  flex-wrap: wrap;
  gap: 0;
  margin: 32px 0 0;
  max-width: 920px;
  padding-top: 18px;
}

.hero-proof div {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  min-width: 190px;
  padding: 0 28px 0 0;
}

.hero-proof div + div {
  padding-left: 28px;
}

.hero-proof div:last-child {
  border-right: 0;
}

.hero-proof dt {
  font-size: 1.35rem;
  font-weight: 900;
}

.hero-proof dd {
  color: rgba(255, 255, 255, 0.78);
  margin: 4px 0 0;
}

.section {
  padding: clamp(64px, 10vw, 116px) clamp(18px, 5vw, 72px);
}

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

.two-column,
.demo-layout,
.calculator-layout,
.contact-layout {
  display: grid;
  gap: clamp(34px, 7vw, 86px);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
}

.section h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.plain-copy {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.plain-copy p:first-child,
.lead-preview p {
  margin-top: 0;
}

.section-heading {
  margin-bottom: 34px;
  max-width: 820px;
}

.pain-section {
  background: var(--paper);
  padding-top: clamp(36px, 5vw, 48px);
}

.workflow-section,
.pilot-section {
  background: var(--white);
}

.workflow-grid,
.pilot-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.lead-preview,
.calculator,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(28, 24, 18, 0.06);
}

.workflow-section .feature-card,
.pilot-section .feature-card {
  background: #fbfaf6;
}

.feature-card {
  min-height: 205px;
  padding: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin: 20px 0 10px;
}

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

.step {
  color: var(--clay);
  font-weight: 900;
}

.demo-section {
  background: linear-gradient(180deg, var(--paper), #efe9df);
}

.lead-preview {
  align-self: start;
  box-shadow: var(--shadow);
  padding: 28px;
}

.lead-preview-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 16px;
}

.lead-preview-header span {
  color: var(--muted);
  font-weight: 800;
}

.lead-preview-header strong {
  background: rgba(15, 127, 103, 0.12);
  border-radius: 999px;
  color: var(--green-dark);
  padding: 7px 11px;
}

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

.lead-details div {
  background: #f8f4ed;
  border-radius: var(--radius);
  padding: 14px;
}

.lead-details dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.lead-details dd {
  font-weight: 900;
  margin: 5px 0 0;
}

.calculator-section {
  background: var(--blue);
}

.calculator,
.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.94rem;
  font-weight: 800;
  gap: 8px;
}

input,
select,
textarea {
  background: #fffdf8;
  border: 1px solid #cfc7bb;
  border-radius: 7px;
  color: var(--ink);
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 127, 103, 0.14);
  outline: 0;
}

.calculator-result {
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--white);
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 22px;
}

.calculator-result span {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.calculator-result strong {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.pilot-pricing {
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--white);
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  margin-top: 20px;
  padding: 24px;
}

.pilot-pricing span {
  color: rgba(255, 255, 255, 0.75);
}

.pilot-pricing strong {
  color: var(--amber);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

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

.contact-form {
  box-shadow: var(--shadow);
}

.form-submit {
  margin-top: 6px;
  width: 100%;
}

.form-status {
  color: var(--green-dark);
  font-weight: 800;
  margin: 0;
  min-height: 1.5em;
}

.site-footer {
  background: #1e1a15;
  color: rgba(255, 255, 255, 0.75);
  padding: 24px clamp(18px, 5vw, 72px);
}

.footer-inner {
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1160px;
}

.footer-inner span:first-child {
  color: var(--white);
  font-weight: 900;
}

.demo-page {
  background: #f1ebe1;
}

.demo-hero {
  padding: 116px clamp(18px, 5vw, 72px) clamp(58px, 8vw, 88px);
}

.demo-top {
  display: grid;
  gap: 34px;
}

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

.demo-intro h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.7rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0;
  max-width: 900px;
  overflow-wrap: break-word;
}

.demo-intro p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  margin: 20px 0 0;
  max-width: 680px;
}

.demo-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.demo-metrics span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  font-weight: 900;
  padding: 9px 13px;
}

.demo-grid {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.72fr);
}

.intake-card,
.summary-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intake-card {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 3vw, 30px);
}

.intake-card-head,
.summary-card-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.intake-card-head span,
.summary-card-head span {
  color: var(--muted);
  font-weight: 900;
}

.progress-track {
  background: #ece5d9;
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
  width: min(220px, 46%);
}

.progress-track span {
  background: var(--green);
  display: block;
  height: 100%;
  transition: width 180ms ease;
  width: 25%;
}

.intake-step {
  border: 0;
  display: none;
  margin: 0;
  min-inline-size: 0;
  padding: 0;
}

.intake-step.is-active {
  display: grid;
  gap: 18px;
}

.intake-step legend {
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 900;
  margin-bottom: 18px;
}

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

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

.option-card {
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  min-height: 72px;
  padding: 14px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.option-card input {
  accent-color: var(--green);
  height: 18px;
  min-height: 18px;
  width: 18px;
}

.option-card span {
  font-size: 1rem;
}

.option-card:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 127, 103, 0.12);
}

.option-card:hover {
  transform: translateY(-1px);
}

.intake-actions,
.summary-actions,
.step-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intake-actions,
.summary-actions {
  justify-content: space-between;
}

.step-actions {
  justify-content: flex-end;
}

.summary-card {
  align-self: start;
  display: grid;
  gap: 20px;
  padding: clamp(20px, 3vw, 28px);
  position: sticky;
  top: 92px;
}

.summary-card-head strong {
  background: #ebe4d7;
  border-radius: 999px;
  color: var(--muted);
  padding: 7px 11px;
}

.summary-card-head strong.is-good {
  background: rgba(15, 127, 103, 0.13);
  color: var(--green-dark);
}

.summary-card-head strong.is-medium {
  background: rgba(216, 146, 50, 0.18);
  color: #83500c;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.summary-list div {
  background: #f8f4ed;
  border-radius: var(--radius);
  padding: 13px;
}

.summary-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.summary-list dd {
  font-weight: 900;
  margin: 4px 0 0;
}

.generated-summary {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 18px;
}

.generated-summary h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.generated-summary p,
.generated-summary ul {
  color: var(--muted);
  margin: 0;
}

.generated-summary ul {
  display: grid;
  gap: 6px;
  padding-left: 20px;
}

.summary-mail.button.secondary {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

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

.summary-mail.is-disabled {
  background: #d8d1c5;
  border-color: #d8d1c5;
  color: #746d62;
  pointer-events: none;
}

.summary-fallback.is-disabled {
  opacity: 0.48;
  pointer-events: none;
}

.is-hidden {
  display: none;
}

.demo-after {
  background: var(--white);
}

.inline-cta {
  margin-top: 14px;
}

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

.legal-section {
  padding: 122px clamp(18px, 5vw, 72px) clamp(64px, 10vw, 116px);
}

.legal-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 860px;
  padding: clamp(24px, 5vw, 56px);
}

.legal-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 24px;
}

.legal-content h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0;
  line-height: 1.1;
  margin: 34px 0 10px;
}

.legal-content p {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0;
}

.legal-content a {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 940px) {
  .site-header {
    gap: 14px;
  }

  .nav-links {
    display: none;
  }

  .two-column,
  .demo-layout,
  .calculator-layout,
  .contact-layout,
  .demo-grid {
    grid-template-columns: 1fr;
  }

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

  .summary-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand span:last-child {
    max-width: 150px;
  }

  .header-cta {
    padding: 9px 12px;
  }

  .hero {
    background-position: 58% center;
    min-height: 78svh;
    padding: 96px 16px 34px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.8rem);
  }

  .hero-proof {
    display: none;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section h2 {
    font-size: clamp(2.05rem, 11vw, 3.1rem);
  }

  .workflow-grid,
  .pilot-grid,
  .lead-details,
  .form-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .demo-hero {
    padding: 96px 16px 44px;
  }

  .demo-intro h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .progress-track {
    width: 100%;
  }

  .intake-card-head,
  .summary-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .intake-actions .button,
  .summary-actions .button,
  .step-actions,
  .step-actions .button {
    width: 100%;
  }
}
