:root {
  --background: #ffffff;
  --foreground: #172033;
  --card: #ffffff;
  --primary: #19386e;
  --primary-2: #244b8f;
  --primary-fg: #ffffff;
  --muted: #f4f6f9;
  --muted-fg: #657084;
  --border: #dfe5ee;
  --accent: #e6a11a;
  --accent-dark: #bb7d08;
  --danger: #b42318;
  --success: #18794e;
  --shadow: 0 16px 40px rgba(15, 29, 54, .18);
  --radius: 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--foreground);
  background: var(--background)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  min-width: 320px
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit
}

button,
input,
select {
  font: inherit
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--primary);
  color: var(--primary-fg);
  border-bottom: 1px solid rgba(255, 255, 255, .18)
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 16px
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0
}

.brand-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center
}

.brand-icon svg {
  width: 100%;
  height: 100%
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px
}

.hero-logo .brand {
  color: #fff;
  font-size: 22px
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: #fff
}

.hero>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.hero.home>img {
  opacity: .16
}

.hero.category>img {
  opacity: 1
}

.hero-inner {
  position: relative;
  max-width: 1152px;
  margin: 0 auto;
  padding: 28px 16px 58px
}

.home .hero-inner {
  display: grid;
  gap: 10px
}

.hero-copy {
  text-align: center;
  max-width: 860px;
  margin: 0 auto
}

.hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.03;
  margin: 0;
  font-weight: 950;
  letter-spacing: 0
}

.accent-text {
  color: var(--accent)
}

.rule {
  display: block;
  width: 96px;
  height: 4px;
  background: var(--accent);
  border-radius: 99px;
  margin: 18px auto 0
}

.hero p {
  max-width: 690px;
  margin: 22px auto 0;
  font-size: clamp(17px, 2.5vw, 21px);
  line-height: 1.5;
  color: rgba(255, 255, 255, .88)
}

.project-picker {
  max-width: 580px;
  width: 100%;
  margin: 20px auto 0;
  padding-bottom: 8vh
}

.select-wrap {
  border-radius: 18px;
  background: rgba(230, 161, 26, .24);
  padding: 6px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .22);
  border: 1px solid rgba(230, 161, 26, .55)
}

select,
input {
  width: 100%;
  min-height: 54px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--foreground);
  padding: 0 14px;
  outline: none
}

select:focus,
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(230, 161, 26, .18)
}

.category-card {
  max-width: 670px;
  margin: 22px auto 0;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
  text-align: center
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 850;
  letter-spacing: .08em
}

.category-card h1 {
  font-size: clamp(32px, 5vw, 54px)
}

.category-card p {
  font-size: 18px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  padding: 0 24px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: transform .15s ease, background .15s ease, opacity .15s ease
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--primary-2)
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none
}

.btn.accent {
  background: var(--accent);
  color: #fff
}

.btn.accent:hover {
  background: var(--accent-dark)
}

.btn.full {
  width: 100%
}

.btn.large {
  min-height: 56px;
  font-size: 18px;
  margin-top: 28px
}

.btn.secondary {
  background: var(--muted);
  color: var(--foreground)
}

.section {
  padding: 58px 16px
}

.section.muted {
  background: var(--muted)
}

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

.narrow {
  max-width: 760px
}

.section h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  margin: 0 0 32px;
  font-weight: 950
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px
}

.project-tile {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease
}

.project-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary)
}

.project-tile .media {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden
}

.project-tile img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform .25s ease
}

.project-tile:hover img {
  transform: scale(1.05)
}

.project-tile span {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .72);
  color: #fff;
  text-align: center;
  padding: 12px 8px;
  font-weight: 850;
  font-size: 18px
}

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

.step-card,
.help-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(15, 29, 54, .06)
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(25, 56, 110, .1);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto 14px
}

.step-num {
  color: var(--accent);
  font-size: 14px;
  font-weight: 850
}

.step-card h3 {
  margin: 6px 0 8px;
  font-size: 19px
}

.step-card p,
.help-card p,
.faq-body,
.muted-text {
  color: var(--muted-fg);
  line-height: 1.5
}

.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--muted);
  padding: 34px 16px
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1152px;
  margin: 0 auto
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800
}

.trust-item svg {
  width: 24px;
  height: 24px;
  color: var(--primary)
}

.help-grid {
  display: grid;
  gap: 26px
}

.help-list {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.help-card {
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px
}

.check {
  color: var(--primary);
  font-weight: 900;
  line-height: 1
}

.help-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px
}

.help-image {
  border-radius: 16px;
  object-fit: cover;
  width: 100%;
  height: 330px;
  box-shadow: 0 8px 26px rgba(15, 29, 54, .15)
}

.faq-item {
  border-bottom: 1px solid var(--border)
}

.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 20px 0;
  font-weight: 850;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer
}

.faq-body {
  display: none;
  padding: 0 0 20px
}

.faq-item.open .faq-body {
  display: block
}

.footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: var(--muted);
  color: var(--muted-fg)
}

.footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 38px 16px;
  font-size: 14px;
  line-height: 1.55
}

.footer strong {
  color: var(--foreground)
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 22px 0;
  color: var(--foreground)
}

.legal-page main {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 16px
}

.legal-page h1 {
  font-size: 38px;
  margin: 0 0 18px
}

.legal-page p {
  line-height: 1.65;
  color: var(--muted-fg)
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 24, 38, .68)
}

.modal.open {
  display: flex
}

.modal-panel {
  position: relative;
  width: min(100%, 540px);
  max-height: 92vh;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .34)
}

.modal-scroll {
  max-height: 92vh;
  overflow: auto;
  padding: 24px
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--muted);
  font-size: 24px;
  cursor: pointer
}

.quiz-top {
  padding-right: 42px
}

.back-btn {
  border: 0;
  background: none;
  color: var(--muted-fg);
  font-weight: 800;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  padding: 0 0 14px
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted-fg);
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 8px
}

.progress-track {
  height: 8px;
  background: var(--muted);
  border-radius: 99px;
  overflow: hidden
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width .2s ease
}

.microcopy {
  text-align: center;
  color: var(--muted-fg);
  font-weight: 750;
  margin: 18px 0 8px
}

.quiz h2 {
  font-size: 25px;
  line-height: 1.16;
  text-align: center;
  margin: 0 0 20px
}

.option-list {
  display: grid;
  gap: 12px
}

.option-btn {
  min-height: 58px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--foreground);
  border-radius: 12px;
  padding: 16px 18px;
  text-align: left;
  font-weight: 750;
  cursor: pointer
}

.option-btn:hover,
.option-btn.selected {
  border-color: var(--primary);
  background: rgba(25, 56, 110, .06)
}

.zip-row,
.name-row,
.city-state-row {
  display: grid;
  gap: 12px
}

.field {
  margin-bottom: 14px
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 850;
  margin-bottom: 7px
}

.error-msg {
  display: none;
  margin-top: 6px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 750
}

.field.error input {
  border-color: var(--danger)
}

.field.error .error-msg {
  display: block
}

.submit-error {
  display: none;
  margin: 12px 0;
  padding: 10px 12px;
  background: #fff1f0;
  border: 1px solid #ffccc7;
  color: var(--danger);
  border-radius: 10px;
  font-weight: 750
}

.submit-error.show {
  display: block
}

.consent {
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted-fg);
  margin: 10px 0
}

.badges {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 16px;
  color: var(--muted-fg);
  font-size: 12px;
  font-weight: 850
}

.badge {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--muted)
}

.loading {
  text-align: center;
  padding: 52px 0
}

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  animation: spin .75s linear infinite;
  margin: 0 auto 14px
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@media (min-width:700px) {
  .category-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px
  }

  .steps {
    grid-template-columns: repeat(3, 1fr)
  }

  .help-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch
  }

  .help-image {
    height: 100%
  }

  .name-row,
  .city-state-row {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:560px) {
  .trust-grid {
    grid-template-columns: 1fr
  }

  .category-card {
    padding: 22px 18px
  }

  .modal {
    padding: 8px
  }

  .modal-panel {
    border-radius: 14px
  }

  .modal-scroll {
    padding: 18px
  }

  .hero-inner {
    padding-top: 22px
  }

  .section {
    padding: 46px 16px
  }
}
