:root {
  --bone: #f2efe8;
  --paper: #fbf8f1;
  --asphalt: #171916;
  --clay: #a34632;
  --clay-dark: #843523;
  --route: #315c74;
  --field: #65705a;
  --muted: #62685f;
  --line: #d8d1c5;
  --max: 1240px;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--asphalt);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 72% 14%, rgb(163 70 50 / 9%), transparent 28rem),
    var(--paper);
  color: var(--asphalt);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgb(49 92 116 / 42%);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 36px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 28px;
  background: rgb(242 239 232 / 92%);
  border-bottom: 1px solid rgb(216 209 197 / 85%);
  backdrop-filter: blur(18px);
}

.wordmark {
  display: inline-flex;
  width: fit-content;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}

.wordmark span,
.eyebrow,
.section-label,
.article-number {
  color: var(--clay);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wordmark strong {
  font-family: "Arial Narrow", "Avenir Next Condensed", Impact, sans-serif;
  font-size: 1.85rem;
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.96;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.9rem;
  font-weight: 700;
}

nav a,
.text-button {
  border: 0;
  background: transparent;
  color: var(--asphalt);
  cursor: pointer;
  text-decoration: none;
}

nav a:hover,
.text-button:hover {
  color: var(--clay);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--clay);
  border-radius: 10px;
  background: var(--clay);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

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

.button-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.button-secondary {
  border-color: var(--asphalt);
  background: transparent;
  color: var(--asphalt);
}

.button-secondary:hover {
  border-color: var(--asphalt);
  background: var(--asphalt);
  color: var(--paper);
}

main > section,
footer {
  width: min(calc(100% - 56px), var(--max));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(42px, 7vw, 104px);
  min-height: 720px;
  padding: 76px 0 88px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 20px;
}

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

h1,
h2 {
  font-family: "Arial Narrow", "Avenir Next Condensed", Impact, sans-serif;
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.038em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3.65rem, 6.1vw, 6.9rem);
  line-height: 0.88;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 4.2vw, 4.7rem);
  line-height: 0.94;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  line-height: 1.18;
}

.lede {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  line-height: 1.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pilot-note,
.fine-print {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.pilot-note {
  max-width: 560px;
  margin: 20px 0 0;
}

.hero-image {
  position: relative;
  margin: 0;
}

.hero-image img {
  display: block;
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.82) contrast(1.04);
}

.hero-image figcaption {
  position: absolute;
  right: -16px;
  bottom: 22px;
  max-width: 260px;
  padding: 13px 16px;
  background: var(--paper);
  border-left: 4px solid var(--clay);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.route-section,
.how-section,
.split-section,
.app-section,
.closing-section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: 0.6fr 1.05fr 0.8fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}

.section-intro h2 {
  margin: 0;
}

.section-intro > p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.route-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 4vw 28px;
}

.route-card::before {
  position: absolute;
  top: 12px;
  right: 16.6%;
  left: 16.6%;
  height: 2px;
  background: var(--route);
  content: "";
}

.route-stop {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.route-dot {
  display: block;
  width: 25px;
  height: 25px;
  margin-bottom: 20px;
  border: 3px solid var(--route);
  border-radius: 50%;
  background: var(--paper);
}

.route-stop-active .route-dot {
  background: var(--route);
}

.route-stop strong {
  font-size: 1rem;
}

.route-stop small {
  margin-top: 7px;
  color: var(--muted);
}

.fine-print {
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.steps li {
  min-height: 250px;
  padding: 32px;
  border-right: 1px solid var(--line);
}

.steps li:last-child {
  border-right: 0;
}

.steps span {
  display: block;
  margin-bottom: 42px;
  color: var(--clay);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
}

.steps p,
.split-grid p,
.app-copy > p,
.app-copy li {
  color: var(--muted);
  line-height: 1.65;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
}

.split-grid article {
  min-height: 360px;
  padding: clamp(36px, 5vw, 70px);
}

.split-grid article + article {
  border-left: 1px solid var(--line);
}

.split-grid h3 {
  max-width: 430px;
  font-family: "Arial Narrow", "Avenir Next Condensed", Impact, sans-serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
}

.text-link {
  margin-top: 20px;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 2px solid var(--clay);
  background: transparent;
  color: var(--clay);
  cursor: pointer;
  font-weight: 800;
}

.app-section {
  display: grid;
  grid-template-columns: 0.82fr 0.58fr;
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
}

.app-copy ul {
  margin: 26px 0 34px;
  padding-left: 20px;
}

.phone-preview {
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
  border: 10px solid var(--asphalt);
  border-radius: 50px;
  background: var(--asphalt);
  box-shadow: 0 32px 70px rgb(23 25 22 / 18%);
}

.phone-preview img {
  display: block;
  width: 100%;
  border-radius: 38px;
}

.closing-section {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  padding-bottom: 120px;
  text-align: right;
}

.closing-section h2 {
  max-width: 970px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 42px 0 60px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  border-radius: 11px;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  text-transform: uppercase;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.73rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

footer > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

dialog {
  width: min(760px, calc(100% - 28px));
  max-height: min(880px, calc(100dvh - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--asphalt);
  box-shadow: 0 34px 100px rgb(0 0 0 / 28%);
}

dialog::backdrop {
  background: rgb(20 21 18 / 65%);
  backdrop-filter: blur(5px);
}

.intake-form {
  padding: clamp(24px, 5vw, 48px);
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.dialog-heading h2 {
  font-size: clamp(2.3rem, 7vw, 4rem);
}

.dialog-close {
  align-self: flex-start;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--asphalt);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.intake-form > p {
  color: var(--muted);
  line-height: 1.55;
}

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

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.form-grid label span {
  color: var(--muted);
  font-weight: 500;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #bbb4a8;
  border-radius: 6px;
  background: #fffdf8;
  color: var(--asphalt);
}

.form-grid textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.45;
}

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

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--clay);
}

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

.form-status {
  min-height: 1.4em;
  margin: 14px 0 0 !important;
  font-weight: 700;
}

.form-status[data-state="success"] {
  color: #41652b;
}

.form-status[data-state="error"] {
  color: #9e2f25;
}

.legal-page {
  min-height: 100vh;
}

.legal-page .site-header {
  grid-template-columns: 1fr auto;
}

.legal {
  width: min(calc(100% - 44px), 820px);
  margin: 0 auto;
  padding: 90px 0 120px;
}

.legal h1 {
  font-size: clamp(3.3rem, 9vw, 6.5rem);
}

.legal h2 {
  margin-top: 54px;
  font-family: inherit;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: none;
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.7;
}

.legal .effective-date {
  color: var(--clay);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding-inline: 20px;
  }

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 58px;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    min-height: 360px;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .steps li {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .steps li:last-child {
    border-bottom: 0;
  }

  .steps span {
    margin-bottom: 24px;
  }

  .app-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
  }

  .wordmark strong {
    font-size: 1.55rem;
  }

  .wordmark span {
    font-size: 0.58rem;
  }

  .site-header .button {
    min-height: 40px;
    padding-inline: 13px;
  }

  main > section,
  footer {
    width: min(calc(100% - 36px), var(--max));
  }

  .hero {
    gap: 34px;
    padding: 28px 0 70px;
  }

  .hero-image img {
    min-height: 285px;
    border-radius: 0;
  }

  .hero-image figcaption {
    right: 10px;
    bottom: 12px;
    max-width: 220px;
  }

  h1 {
    font-size: clamp(3.45rem, 17vw, 5rem);
  }

  .button-row {
    flex-direction: column;
  }

  .route-section,
  .how-section,
  .split-section,
  .app-section,
  .closing-section {
    padding: 72px 0;
  }

  .route-card {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0 0 26px;
  }

  .route-card::before {
    top: 12px;
    bottom: 74px;
    left: 12px;
    width: 2px;
    height: auto;
  }

  .route-stop {
    display: grid;
    grid-template-columns: 25px 1fr;
    align-items: start;
    gap: 0 18px;
    margin-bottom: 30px;
    text-align: left;
  }

  .route-stop strong,
  .route-stop small {
    grid-column: 2;
  }

  .route-dot {
    grid-row: 1 / 3;
    grid-column: 1;
  }

  .fine-print {
    text-align: left;
  }

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

  .split-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .phone-preview {
    max-width: 320px;
    border-width: 8px;
    border-radius: 39px;
  }

  .closing-section {
    align-items: flex-start;
    text-align: left;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

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

  .full-width {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

