:root {
  color-scheme: light;
  --ink: #171614;
  --muted: #5c625d;
  --paper: #f7f3e9;
  --panel: #fffaf0;
  --line: #ded4bf;
  --green: #133d2f;
  --green-soft: #dce9d5;
  --blue: #153f77;
  --amber: #c57b25;
  --red: #a94129;
  --shadow: 0 24px 70px rgb(23 22 20 / 14%);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgb(23 22 20 / 5%) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(0deg, rgb(23 22 20 / 4%) 1px, transparent 1px) 0 0 / 54px 54px,
    radial-gradient(circle at 12% 10%, #fff7d6 0, transparent 28rem),
    var(--paper);
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  padding: 20px clamp(18px, 4vw, 56px);
  width: min(1220px, 100%);
}

.brand,
nav {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

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

nav {
  gap: 6px;
}

nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 10px 13px;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  background: rgb(19 61 47 / 10%);
  color: var(--green);
}

.nav-cta {
  border: 1px solid var(--line);
  color: var(--ink);
}

main {
  margin: 0 auto;
  width: min(1220px, calc(100% - 36px));
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  min-height: calc(100vh - 120px);
  padding: clamp(34px, 6vw, 80px) 0 42px;
}

.hero-copy {
  max-width: 690px;
  min-width: 0;
}

.eyebrow {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.45rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 24px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.35rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 0;
}

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

p {
  color: var(--muted);
  line-height: 1.62;
}

.lede {
  font-size: 1.16rem;
  max-width: 660px;
}

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

.button,
.lead-form button {
  align-items: center;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
}

.button.primary,
.lead-form button {
  background: var(--green);
  color: #fffdf8;
}

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

.planner-visual {
  background: linear-gradient(145deg, #fffdf8, #efe4cf);
  border: 1px solid #d2c5aa;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
  padding: 18px;
}

.planner-topline,
.time-grid,
.lane,
.solver-stats {
  display: grid;
}

.planner-topline {
  align-items: center;
  color: var(--muted);
  grid-template-columns: 1fr auto;
  margin-bottom: 18px;
}

.planner-topline strong {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  font-weight: 600;
}

.time-grid {
  color: #777064;
  font-size: 0.72rem;
  grid-template-columns: repeat(6, 1fr);
  padding: 0 0 8px 108px;
}

.solver-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.lane {
  align-items: center;
  background:
    linear-gradient(90deg, transparent 0 108px, rgb(23 22 20 / 7%) 108px 109px, transparent 109px),
    repeating-linear-gradient(90deg, transparent 0 16.4%, rgb(23 22 20 / 7%) 16.4% 16.7%);
  grid-template-columns: 108px repeat(6, 1fr);
  min-height: 76px;
  padding: 10px;
}

.lane + .lane {
  border-top: 1px solid var(--line);
}

.lane > span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
  padding-right: 14px;
}

.block {
  align-items: center;
  border-radius: 6px;
  color: #fff;
  display: flex;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  min-width: 0;
  padding: 0 8px;
  white-space: nowrap;
}

.install { background: var(--green); grid-column: 2 / 5; }
.inspect { background: var(--blue); grid-column: 5 / 7; }
.intake { background: var(--amber); grid-column: 2 / 4; }
.hold { background: #70614a; grid-column: 4 / 5; }
.review { background: #2f5b4a; grid-column: 3 / 5; }
.urgent { background: var(--red); grid-column: 5 / 7; }

.solver-stats {
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin: 14px 0 0;
}

.solver-stats div,
.steps article,
.case-grid article {
  background: rgb(255 250 240 / 72%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.solver-stats div {
  padding: 14px;
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
}

dd {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  margin: 4px 0 0;
}

.proof-strip {
  border-block: 1px solid var(--line);
  margin-bottom: 92px;
  padding: 20px 0;
}

.proof-strip p {
  color: var(--ink);
  font-weight: 750;
  margin: 0;
}

.section-grid {
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  margin-bottom: 96px;
}

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

.steps article,
.case-grid article {
  padding: 22px;
}

.steps span {
  color: var(--amber);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  margin-bottom: 10px;
}

.section-heading {
  margin-bottom: 28px;
  max-width: 740px;
}

.use-cases {
  margin-bottom: 96px;
}

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

.cta-band {
  align-items: start;
  background: var(--ink);
  border-radius: 8px 8px 0 0;
  color: #fffdf8;
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
  padding: clamp(26px, 5vw, 54px);
}

.cta-band p {
  color: rgb(255 253 248 / 70%);
}

.cta-band .eyebrow {
  color: #efb064;
}

.lead-form {
  background: #fffdf8;
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.lead-form label {
  display: grid;
  gap: 7px;
}

.lead-form span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.lead-form input,
.lead-form textarea {
  background: #fbf5e9;
  border: 1px solid #d7c9af;
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 11px 12px;
  width: 100%;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(19 61 47 / 16%);
  outline: 0;
}

.form-success,
.form-error {
  border-radius: 7px;
  font-weight: 750;
  margin: 0;
  padding: 12px;
}

.form-success {
  background: var(--green-soft);
  color: var(--green);
}

.form-error {
  background: #f8ded6;
  color: var(--red);
}

@media (max-width: 900px) {
  .hero,
  .section-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 4.3rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    max-width: 100vw;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    max-width: 100vw;
    overflow: hidden;
  }

  nav {
    flex-wrap: wrap;
  }

  main {
    max-width: 100vw;
    overflow: hidden;
    padding-inline: 14px;
    width: 100%;
  }

  .hero {
    display: block;
  }

  .hero-copy,
  .planner-visual {
    max-width: calc(100vw - 28px);
    width: calc(100vw - 28px);
  }

  h1 {
    font-size: 2rem;
    max-width: 11ch;
  }

  h2 {
    font-size: 2.2rem;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  .lede {
    font-size: 1rem;
    max-width: 32ch;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 100%;
    width: min(348px, calc(100vw - 40px));
  }

  .button {
    width: 100%;
  }

  .planner-visual {
    margin-top: 28px;
    padding: 12px;
  }

  .planner-topline strong {
    font-size: 1.7rem;
  }

  .planner-topline {
    grid-template-columns: 1fr;
  }

  .time-grid,
  .solver-board {
    display: none;
  }

  .time-grid {
    padding-left: 72px;
  }

  .lane {
    grid-template-columns: 72px repeat(6, minmax(0, 1fr));
  }

  .lane > span {
    font-size: 0.62rem;
    padding-right: 6px;
  }

  .block {
    font-size: 0.58rem;
    padding: 0 5px;
  }

  .solver-stats {
    grid-template-columns: 1fr;
  }

  .proof-strip,
  .section-grid,
  .use-cases {
    margin-bottom: 62px;
  }
}
