:root {
  color-scheme: light;
  --ink: #182124;
  --muted: #5a666b;
  --line: #d9e0df;
  --paper: #fbfaf6;
  --white: #ffffff;
  --navy: #1d3150;
  --green: #235b4e;
  --green-2: #e8f1ee;
  --gold: #c59a49;
  --gold-ink: #8c6515;
  --blue: #245c80;
  --red: #9f2c2c;
  --amber: #8c6515;
  --shadow: none;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
}

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

a { color: var(--green); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(173, 131, 52, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}

.nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0;
}

.brand-mark {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.nav-links a:hover { color: var(--gold); }

.section {
  padding: 64px 20px;
}

.section.tight { padding: 40px 20px; }
.section-contrast {
  background: #f2f6f4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-contrast .button.ghost {
  border-color: var(--navy);
  background: transparent;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
}

.hero {
  min-height: 530px;
  display: grid;
  align-items: center;
  padding: 56px 20px 40px;
  background:
    linear-gradient(90deg, rgba(18, 42, 73, 0.98) 0%, rgba(18, 42, 73, 0.92) 38%, rgba(18, 42, 73, 0.5) 64%, rgba(18, 42, 73, 0.14) 100%),
    url("/assets/hero/david-file-review.jpg") right 24% / cover no-repeat;
  border-bottom: 3px solid var(--gold);
  color: var(--white);
}

.hero-inner {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
}

.hero-inner > div {
  max-width: 620px;
}

.hero .eyebrow { color: var(--gold); }
.hero .lead { color: rgba(255, 255, 255, 0.88); }

.hero-credential {
  margin: 24px 0 0;
  color: var(--white);
  font-weight: 750;
  max-width: 720px;
}

.hero .button {
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
  color: var(--white);
}

.hero .button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.hero .button.ghost { color: var(--white); }

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

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
  max-width: 760px;
}

h2 { font-size: 30px; }
h3 { font-size: 20px; }

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 720px;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  background: var(--white);
  color: var(--navy);
}

.button.primary {
  background: var(--navy);
  color: var(--white);
}

.button.ghost {
  border-color: var(--line);
  color: var(--ink);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

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

.trust-strip div {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 20px 18px;
  min-height: 116px;
}

.trust-kicker,
.service-label {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-label {
  margin-bottom: 8px;
  border: 1px solid rgba(140, 101, 21, 0.32);
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff7e6;
}

.trust-strip strong {
  display: block;
  font-size: 16px;
}

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

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

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

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: none;
}

.card.compact {
  padding: 16px;
  box-shadow: none;
}

.contact-profile {
  overflow: hidden;
  padding: 0;
}

.contact-profile img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
}

.contact-profile-content {
  padding: 22px;
}

.contact-profile-content h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.price {
  display: inline-block;
  margin: 12px 0;
  color: var(--gold-ink);
  font-weight: 900;
}

.notice {
  border-left: 4px solid var(--gold);
  background: #fff7e6;
  padding: 16px;
  border-radius: 8px;
}

.notice.danger {
  border-color: var(--red);
  background: #fff0f0;
}

.page-title {
  padding: 54px 20px 30px;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  color: var(--white);
}

.page-title .container {
  display: grid;
  gap: 12px;
}

.page-title .eyebrow { color: var(--gold); }
.page-title .lead { color: rgba(255, 255, 255, 0.86); }
.page-title .button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}
.page-title .button:not(.primary) {
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
  color: var(--white);
}

.service-portfolio {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.service-row h2,
.service-row h3 {
  color: var(--navy);
  font-size: 22px;
}

.service-row p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 800px;
}

.service-row .price {
  margin: 2px 0 0;
  white-space: nowrap;
  font-size: 21px;
}

.price-block {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.price-note {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: right;
}

.service-footer,
.scope-strip {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  background: var(--white);
  padding: 18px 20px;
}

.service-footer p,
.scope-strip p { margin: 0; }

.service-footer strong,
.scope-strip strong { color: var(--navy); }

.service-footer-action {
  border-left-color: var(--green);
  background: var(--green-2);
}

.scope-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.scope-strip .actions { margin-top: 0; }

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--green);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.matcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.stepper {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.progress {
  margin-bottom: 18px;
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
}

.progress span {
  color: var(--gold-ink);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-subsection {
  margin: 26px 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.form-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.form-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-steps span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
}

.contact-profile + .card .notice { margin-top: 18px; }

.field {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

label, .label {
  font-weight: 800;
  font-size: 15px;
}

input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b9c4c3;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

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

.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.radio-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #b9c4c3;
  border-radius: 8px;
  cursor: pointer;
  background: var(--white);
}

.radio-card:has(input:checked) {
  border-color: var(--green);
  background: var(--green-2);
}

.radio-card input {
  width: auto;
  min-height: auto;
}

.error {
  color: var(--red);
  font-weight: 800;
  min-height: 24px;
}

.summary-box {
  position: sticky;
  top: 92px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
  background: var(--green-2);
  color: var(--green);
}

.badge.amber { background: #fff2c7; color: var(--amber); }
.badge.red { background: #ffe2e2; color: var(--red); }
.badge.blue { background: #e4f2fb; color: var(--blue); }

.lead-output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  background: #f4f6f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: var(--white);
  padding: 34px 20px;
}

.footer a { color: var(--white); }

.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.list-clean {
  padding-left: 18px;
}

.list-clean li { margin: 8px 0; }

@media (max-width: 860px) {
  .nav {
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
    font-size: 13px;
    text-align: center;
  }

  .hero {
    min-height: auto;
    align-items: end;
    padding-top: 48px;
    background:
      linear-gradient(rgba(18, 42, 73, 0.78), rgba(18, 42, 73, 0.9)),
      url("/assets/hero/david-file-review.jpg") 62% center / cover no-repeat;
  }

  .hero .lead {
    font-size: 17px;
    line-height: 1.45;
  }

  .hero .actions { margin-top: 18px; }

  .hero .button {
    min-height: 42px;
    padding: 9px 14px;
  }

  .hero-inner,
  .matcher,
  .grid,
  .grid.two,
  .trust-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-row .price { margin-top: 0; }

  .price-block { justify-items: start; }
  .price-note { text-align: left; }

  .scope-strip {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .summary-box {
    position: static;
  }
}
