* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #eef3f1;
  --surface: #f8fbfa;
  --surface-strong: #ffffff;
  --ink: #182126;
  --muted: #536068;
  --line: #c7d3cf;
  --accent: #0f8c6a;
  --accent-strong: #0d6e54;
  --secondary: #145f88;
  --warm: #df6f45;
  --shadow: 0 18px 50px rgba(24, 33, 38, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}

img {
  display: block;
  max-width: 100%;
}

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

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

.masthead {
  min-height: 78vh;
  padding: 0 3rem 7rem;
  background:
    linear-gradient(rgba(15, 31, 34, 0.56), rgba(15, 31, 34, 0.56)),
    url("hero-house.png")
      center/cover;
  color: #f4f7f6;
}

.nav-band {
  margin: 0 -3rem;
  padding: 0.51rem 3rem;
  background: rgba(248, 251, 250, 0.98);
  border-bottom: 1px solid rgba(199, 211, 207, 0.95);
}

.topbar,
.hero-copy,
.calculator-shell,
.section-head.wide,
.bullet-columns,
.faq-list,
.trust-grid,
.market-grid,
.leads-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 46px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand-logo {
  display: block;
  height: 137px;
  width: auto;
}

.toplinks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.hero-copy {
  padding-top: 4.25rem;
  max-width: 760px;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #8fe0c7;
}

.eyebrow.dark {
  color: var(--accent-strong);
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: 4.6rem;
  line-height: 0.98;
}

.leads-title {
  max-width: none;
  font-size: 3.3rem;
}

.lede,
.leads-copy {
  max-width: 58ch;
  font-size: 1.08rem;
  color: rgba(244, 247, 246, 0.92);
}

.leads-copy {
  color: var(--muted);
}

.button-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  background: var(--accent);
  color: #f7fbfa;
}

.button-link:hover,
button:hover {
  background: var(--accent-strong);
}

.button-link.muted {
  background: rgba(247, 251, 250, 0.12);
  border-color: rgba(247, 251, 250, 0.3);
  color: #f7fbfa;
}

.button-link.small {
  min-height: 40px;
  padding: 0.65rem 0.9rem;
}

.cta-row .button-link.small,
.cta-row button {
  flex: 0 0 auto;
}

.lead-form .cta-row {
  align-items: flex-start;
  margin-top: 0.35rem;
}

.lead-form .button-link.small {
  background: #ffffff;
  color: var(--accent-strong);
  border-color: var(--line);
}

.lead-form .button-link.small:hover {
  background: #edf6fb;
  color: var(--accent-strong);
}

.trust-strip,
.workflow-section,
.sample-section,
.calculator-section,
.markets-section,
.articles-section,
.materials-section,
.opportunity-section,
.faq-section {
  padding: 0 1rem 4rem;
}

.trust-strip {
  margin-top: -2.5rem;
}

.trust-grid,
.workflow-grid,
.market-grid,
.material-grid,
.article-grid,
.bullet-columns,
.price-band,
.result-grid,
.check-grid,
.lead-meta {
  display: grid;
  gap: 1rem;
}

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

.trust-grid > div,
.workflow-card,
.controls,
.results,
.material-card,
.market-card,
.faq-list details,
.lead-card,
.lead-list .empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 251, 250, 0.96);
  box-shadow: var(--shadow);
}

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

.article-card,
.page-panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 251, 250, 0.96);
  box-shadow: var(--shadow);
}

.article-card h3 {
  margin-bottom: 0.5rem;
}

.site-footer {
  padding: 0 1rem 2.5rem;
}

.footer-inner,
.page-shell,
.article-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}

.footer-copy {
  max-width: 42ch;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-content: flex-start;
}

.page-header {
  padding: 1.25rem 1rem 2rem;
  background: linear-gradient(180deg, rgba(238, 243, 241, 1), rgba(238, 243, 241, 0.84));
}

.page-shell,
.article-shell {
  padding: 0 1rem 4rem;
}

.page-intro,
.article-intro {
  max-width: 760px;
  padding-top: 3rem;
}

.page-title,
.article-title {
  max-width: 14ch;
  font-size: 3.8rem;
  line-height: 1;
}

.page-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: start;
}

.article-body {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 1rem;
  align-items: start;
}

.article-meta {
  position: sticky;
  top: 1rem;
}

.prose,
.article-prose {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 251, 250, 0.96);
  box-shadow: var(--shadow);
}

.prose p,
.article-prose p,
.prose li,
.article-prose li {
  color: var(--muted);
}

.prose h2,
.article-prose h2,
.prose h3,
.article-prose h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.55rem;
}

.prose h2:first-child,
.article-prose h2:first-child {
  margin-top: 0;
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.workflow-card,
.sample-card {
  padding: 1.25rem;
}

.step-chip {
  display: inline-flex;
  min-height: 30px;
  padding: 0.35rem 0.6rem;
  align-items: center;
  border-radius: 8px;
  background: #edf6fb;
  color: var(--secondary);
  font-size: 0.88rem;
  font-weight: 800;
}

.sample-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.sample-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 251, 250, 0.96);
  box-shadow: var(--shadow);
  align-self: start;
}

.sample-card.accent {
  background: linear-gradient(135deg, #dff4ec, #edf6fb);
  height: fit-content;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.sample-copy {
  margin-bottom: 0;
}

.trust-grid > div {
  padding: 1rem;
}

.trust-label,
.label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.calculator-section {
  padding-top: 1rem;
}

.calculator-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 1.2rem;
  align-items: start;
}

.controls,
.results {
  padding: 1.4rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2,
.section-head h3,
.market-card h3,
.lead-card h2 {
  margin-bottom: 0.35rem;
}

.section-head p,
.scope-block p,
.lead-panel p,
.material-card p,
.faq-list p,
.market-card p,
.lead-card p {
  color: var(--muted);
}

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

.controls .section-head,
.check-grid {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

input,
select,
textarea {
  min-height: 48px;
  width: 100%;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

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

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkbox input {
  min-height: 18px;
  width: 18px;
  margin: 0;
}

.results {
  display: grid;
  gap: 1rem;
}

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

.price-band > div,
.result-grid > div,
.market-metrics > div {
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.featured {
  background: linear-gradient(135deg, #dff4ec, #edf6fb);
}

strong {
  font-size: 1.4rem;
  line-height: 1.1;
}

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

.scope-block,
.lead-panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.partner-card {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.scope-head,
.leads-header,
.lead-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.market-card,
.material-card {
  overflow: hidden;
}

.market-card,
.lead-card {
  padding: 1rem;
}

.market-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.market-state {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--secondary);
}

.market-metrics {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0;
}

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

.material-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.material-card div {
  padding: 1rem;
}

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

.bullet-columns > div {
  padding: 1.2rem;
  border-top: 4px solid var(--secondary);
  background: rgba(255, 255, 255, 0.68);
}

ul {
  padding-left: 1.15rem;
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-list details {
  padding: 1rem 1rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.form-message {
  min-height: 1.4rem;
  margin-bottom: 0;
  color: var(--accent-strong);
}

.leads-body {
  padding: 2rem 1rem 4rem;
}

.leads-shell {
  display: grid;
  gap: 1.5rem;
}

.lead-list {
  display: grid;
  gap: 1rem;
}

.lead-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1rem 0;
}

.lead-detail {
  padding-top: 0.4rem;
}

@media (max-width: 960px) {
  h1 {
    font-size: 3.6rem;
  }

  .trust-grid,
  .workflow-grid,
  .sample-shell,
  .calculator-shell,
  .market-grid,
  .material-grid,
  .article-grid,
  .page-grid,
  .article-body,
  .bullet-columns,
  .lead-meta {
    grid-template-columns: 1fr;
  }

  .masthead {
    min-height: auto;
    padding-top: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 6rem;
  }

  .nav-band {
    margin: 0 -1.5rem;
    padding: 0.42rem 1.5rem;
  }
}

@media (max-width: 720px) {
  h1,
  .leads-title {
    font-size: 2.6rem;
  }

  .controls,
  .price-band,
  .result-grid,
  .check-grid,
  .market-metrics,
  .sample-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .scope-head,
  .leads-header,
  .lead-card-top,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .toplinks {
    gap: 0.75rem;
  }

  .page-title,
  .article-title {
    font-size: 2.6rem;
  }
}
