:root {
  color-scheme: light;
  --ink: #201b16;
  --muted: #665e55;
  --line: #d9c9b8;
  --paper: #f5efe6;
  --panel: #fffaf2;
  --walnut: #493225;
  --brick: #9b5742;
  --olive: #586247;
  --stone: #e8ddcf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

main {
  overflow: hidden;
}

section {
  padding: clamp(46px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(125deg, rgba(155, 87, 66, 0.12), rgba(88, 98, 71, 0.12)),
    var(--panel);
  border-bottom: 1px solid var(--line);
}

nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--walnut);
  font-size: 14px;
}

nav span {
  color: var(--muted);
  text-align: right;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  align-items: center;
  gap: clamp(32px, 7vw, 84px);
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

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

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

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(42px, 8vw, 94px);
  line-height: 0.94;
  font-weight: 850;
}

h2 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
}

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

.intro,
.crm-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  color: var(--walnut);
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--line);
}

.button.primary {
  background: var(--walnut);
  color: #fffaf2;
  border-color: var(--walnut);
}

.button.secondary {
  background: rgba(255, 250, 242, 0.72);
}

.phone {
  border: 1px solid rgba(73, 50, 37, 0.22);
  border-radius: 28px;
  padding: 18px;
  background: #15110d;
  box-shadow: 0 28px 70px rgba(73, 50, 37, 0.2);
}

.phone-top {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 18px;
}

.phone-top span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #796d5c;
}

.step {
  margin-bottom: 12px;
  border: 1px solid rgba(245, 239, 230, 0.12);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.06);
  color: #fffaf2;
}

.step.active {
  background: #fffaf2;
  color: var(--ink);
}

.step small {
  display: block;
  margin-bottom: 8px;
  color: var(--brick);
  font-weight: 850;
  text-transform: uppercase;
}

.step p {
  margin: 8px 0 0;
  color: inherit;
  opacity: 0.72;
  line-height: 1.45;
}

.service-band {
  display: grid;
  grid-template-columns: minmax(160px, 280px) 1fr;
  align-items: start;
  gap: 24px;
  background: var(--walnut);
  color: #fffaf2;
}

.service-band p {
  margin: 0;
  color: #d7cabc;
  font-weight: 800;
}

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

.chips span {
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 250, 242, 0.07);
  font-weight: 750;
}

.flow,
.faq {
  background: var(--paper);
}

.flow-grid,
.qa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

article {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
}

article span {
  display: block;
  margin-bottom: 44px;
  color: var(--brick);
  font-weight: 900;
}

article p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.crm {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  background: var(--stone);
}

.pipeline {
  display: grid;
  gap: 12px;
}

.pipeline div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-left: 5px solid var(--brick);
  padding: 20px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(73, 50, 37, 0.08);
}

.pipeline strong {
  font-size: 22px;
}

.pipeline small {
  color: var(--muted);
  font-weight: 750;
  text-align: right;
}

.close {
  min-height: 58vh;
  display: grid;
  align-content: center;
  justify-items: start;
  background: var(--walnut);
  color: #fffaf2;
}

.close h2 {
  max-width: 920px;
}

.close .button.primary {
  background: #fffaf2;
  color: var(--walnut);
  border-color: #fffaf2;
}

@media (max-width: 840px) {
  .hero {
    min-height: auto;
  }

  nav,
  .service-band,
  .crm {
    grid-template-columns: 1fr;
  }

  nav {
    align-items: flex-start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .phone {
    border-radius: 22px;
  }

  .flow-grid,
  .qa-grid {
    grid-template-columns: 1fr;
  }

  article {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .step,
  article,
  .pipeline div {
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }

  .button:hover,
  article:hover,
  .pipeline div:hover {
    transform: translateY(-2px);
  }
}
