:root {
  --deep: #202326;
  --ink: #202326;
  --muted: #607179;
  --amber: #e7bf78;
  --line: #dadde1;
  --shadow: 0 14px 40px rgba(32, 35, 38, 0.11);
  --display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(32, 35, 38, 0.05);
}

.header-inner {
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 198px;
  height: auto;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-links a {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.header-links a:hover {
  text-decoration: underline;
}

.header-links .phone {
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  padding: 10px 14px;
}

.step-heading h1 {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.three-part h2 {
  font-weight: 700;
  font-size: 1.08rem;
}

legend {
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.step-actions button[data-continue],
.step-actions button[data-preview-submit] {
  background: var(--teal);
  color: #fff;
  margin-left: auto;
}

.step-actions button[data-continue]:hover,
.step-actions button[data-preview-submit]:hover {
  background: var(--teal-deep);
}

footer {
  background: var(--navy);
  color: #e7eef2;
  padding: 32px 0;
}

footer .shell {
  display: grid;
  gap: 10px;
}

footer p {
  max-width: 1050px;
}

footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .intake-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .progress-panel,
  .step-content,
  .intake-step,
  .guide-video,
  .three-part,
  .step-form {
    min-width: 0;
    max-width: 100%;
  }

  .step-heading h1 {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 70px;
  }

  .brand img {
    width: 170px;
  }

  .header-links > a:not(.phone) {
    display: none;
  }
}
