.home-page {
  max-width: 1348px;
}

.home-benefits .benefit-number {
  display: block;
  margin-bottom: 12px;
  color: #80d260;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.site-sections .home-hero {
  --hero-surface: #222224;
  --search-surface: #161618;
  --field-surface: #29292c;
  --field-ink: #f2f2f2;
  --field-line: #55555a;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(36px, 8vw, 120px);
  row-gap: 24px;
  padding: clamp(36px, 5.25vw, 76px);
  background: var(--hero-surface);
  border: 1px solid #555559;
  border-radius: 20px;
  box-shadow: none;
}

.home-intro h1 {
  max-width: 490px;
  color: #fff;
  font-size: clamp(36px, 4.2vw, 57px);
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: -.05em;
}

.home-intro p {
  max-width: 530px;
  margin-top: 26px;
  color: #f3f3f3;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.48;
}

.home-intro .home-disclosure {
  margin-top: 18px;
  color: #c6c6c6;
  font-size: 13px;
}

.editorial-sections .home-intro h1 {
  font-size: clamp(31px, 3.5vw, 45px);
  overflow-wrap: anywhere;
}

.editorial-sections .home-intro .article-lead {
  margin-top: 18px;
  font-size: 16px;
}

.home-intro .order-form-link {
  display: inline-block;
  margin-top: 18px;
}

.home-intro .article-links {
  gap: 8px 14px;
  margin-top: 14px;
}

.home-search {
  min-width: 0;
  display: grid;
  gap: 28px;
  padding: clamp(24px, 3vw, 40px);
  color: #fff;
  background: var(--search-surface);
  border: 1px solid #3d3d41;
  border-radius: 20px;
  scroll-margin-top: 24px;
}

.home-search h2 {
  max-width: 390px;
  font-size: clamp(26px, 2.65vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.home-field {
  min-width: 0;
  display: grid;
  gap: 8px;
  font-size: 16px;
}

.home-search #home-city-picker {
  min-width: 0;
  position: relative;
}

.home-search #home-city-picker summary,
.home-hero .home-search input[name=query] {
  height: 52px;
  padding: 0 16px;
  color: var(--field-ink);
  background: var(--field-surface);
  border: 1px solid var(--field-line);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 450;
}

.home-search #home-city-picker summary:after {
  border-color: #c0c0c5;
}

.home-search #city-count {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-hero .home-search input[name=query]::placeholder {
  color: #b4b4b9;
}

.home-hero .home-search input[name=query]:focus-visible {
  outline: 2px solid #add4a3;
}

.home-city-panel {
  position: absolute;
  z-index: 3;
  inset: calc(100% + 8px) 0 auto;
  padding: 14px;
  color: #eee;
  background: #222224;
  border: 1px solid #55555a;
  border-radius: 12px;
  box-shadow: 0 12px 36px #0009;
}

.home-search .country-filter select {
  min-width: 0;
  flex: 1;
}

.home-search .country-cities {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-search .city-list {
  max-height: min(230px, 35vh);
}

.home-search .city-option label {
  overflow-wrap: anywhere;
}

.home-search #accept-cities {
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
  background: #333;
  border: 1px solid #555;
  border-radius: 8px;
}

.home-search .suggestions {
  gap: 6px;
  margin-top: 1px;
}

.home-search .suggestions button {
  min-height: 32px;
  padding: 4px 12px;
  color: #d9d9de;
  border: 1px solid #55555a;
  border-radius: 100px;
  font-size: 14px;
}

.home-search .suggestions button:hover {
  background: #263229;
  border-color: #709472;
}

.home-submit {
  display: grid;
  gap: 14px;
}

.home-submit .form-error:empty {
  display: none;
}

.home-submit .form-error:not(:empty) {
  margin-top: 0;
}

.home-submit #estimate {
  min-height: 60px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: clamp(19px, 1.45vw, 21px);
  font-weight: 700;
}

.home-submit > p:last-child {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 9px;
  color: #dedede;
  font-size: 15px;
  text-align: center;
}

.home-submit strong {
  color: #fff;
}

.home-builder-notices {
  grid-column: 1 / -1;
}

.home-builder-notices:not(:has(> .demo-banner:not([hidden]), > .error-banner:not([hidden]), > noscript > .error-banner)) {
  display: none;
}

.home-builder-notices p,
.home-builder-notices .error-banner {
  margin-bottom: 0;
}

.home-page .collection-date {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 950px) {
  .site-sections .home-hero {
    gap: 32px;
  }

  .home-search {
    padding: 24px;
  }
}

@media (max-width: 760px) {
  .site-sections .home-hero {
    grid-template-columns: 1fr;
    padding: 28px clamp(14px, 4vw, 30px);
    border-radius: 16px;
  }

  .home-intro h1 {
    max-width: 520px;
    font-size: clamp(32px, 6.8vw, 48px);
  }

  .home-intro p {
    margin-top: 16px;
  }

  .home-intro .home-disclosure {
    margin-top: 10px;
  }

  .home-search {
    padding: clamp(17px, 4vw, 24px);
    border-radius: 18px;
    gap: 22px;
  }

  .home-city-panel {
    position: static;
    margin-top: 8px;
    box-shadow: none;
  }
}

@media (max-width: 460px) {
  .home-search .country-cities {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-submit #estimate {
    transition: none;
  }
}

@media (max-width: 640px) {
  .header.home-header {
    min-height: 0;
    gap: 12px;
    padding: 14px;
    align-items: stretch;
  }

  .home-header nav {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
    white-space: nowrap;
  }

  .home-header nav > .order-guide-nav {
    display: none;
  }

  .home-header nav > a:first-child {
    display: inline-flex;
    align-items: center;
  }

  .home-header .nav-button {
    gap: 5px;
    padding: 8px;
  }

  .site-sections .home-hero {
    gap: 20px;
  }

  .home-intro h1 {
    font-size: clamp(30px, 7vw, 40px);
    text-wrap: balance;
  }

  .home-intro p {
    font-size: 15px;
  }

  .home-intro .home-disclosure {
    font-size: 12px;
  }

  .home-search {
    gap: 17px;
  }

  .home-search h2 {
    font-size: 24px;
  }

  .home-search #home-city-picker summary,
  .home-hero .home-search input[name=query] {
    height: 48px;
  }

  .home-search .suggestions button {
    padding-inline: 8px;
    font-size: 13px;
  }

  .home-submit #estimate {
    min-height: 52px;
  }
}

@media (max-width: 380px) {
  .home-header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

.home-query {
  position: relative;
}

.topic-options {
  position: absolute;
  z-index: 2;
  inset: calc(100% + 6px) 0 auto;
  max-height: 252px;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  background: #222224;
  border: 1px solid #55555a;
  border-radius: 10px;
  box-shadow: 0 12px 24px #0008;
}

.topic-options [role=option] {
  padding: 9px 12px;
  border-radius: 6px;
  color: #f0f0f2;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.topic-options [role=option]:hover,
.topic-options [aria-selected=true] {
  color: #fff;
  background: #2e3b2f;
}


.direction-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.direction-card {
  position: relative;
  display: grid;
  align-content: end;
  aspect-ratio: 1;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(12px, 1.4vw, 18px);
  background: #222224;
  border: 1px solid #3d3d41;
  border-radius: 14px;
}

.direction-card img,
.direction-card::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.direction-card img {
  z-index: -2;
  object-fit: cover;
  transition: transform .2s ease-out;
}

.direction-card::after {
  z-index: -1;
  content: '';
  background: linear-gradient(to top, #000f, #0009 33%, #0000 75%);
}

.direction-card:hover {
  border-color: #709472;
}

.direction-card:hover img {
  transform: scale(1.035);
}

.direction-card span {
  color: #fff;
  font-size: clamp(14px, 1.26vw, 18px);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.direction-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.direction-actions a {
  min-width: 190px;
}

@media (max-width: 1000px) {
  .direction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .direction-card img {
    transition: none;
  }

  .direction-card:hover img {
    transform: none;
  }
}


.collection-dialog {
  position: fixed;
  width: min(980px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: #f2f2f2;
  background: #18181a;
  border: 1px solid #4b4b50;
  border-radius: 20px;
}

.collection-dialog > .close-dialog {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  outline-offset: 2px;
  z-index: 2;
}

.collection-dialog > .close-dialog::before,
.collection-dialog > .close-dialog::after {
  content: '';
  grid-area: 1 / 1;
  width: 13px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
}

.collection-dialog > .close-dialog::after {
  transform: rotate(-45deg);
}

.collection-dialog > .error-banner {
  margin: 56px 22px 0;
}

.collection-dialog::backdrop {
  background: #000b;
}

.collection-dialog #estimate-content {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
}

.collection-progress,
.collection-details {
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
}

.collection-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #121314;
  border-right: 1px solid #3a3a3e;
  text-align: center;
}

.collection-progress h2 {
  margin: 0;
  font-size: clamp(25px, 3.2vw, 37px);
  line-height: 1.12;
  text-wrap: balance;
}

.collection-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(148px, 20vw, 202px);
  aspect-ratio: 1;
  margin: 26px auto 23px;
  border-radius: 50%;
  isolation: isolate;
}

.collection-ring::before,
.collection-ring::after {
  position: absolute;
  border-radius: 50%;
  content: '';
}

.collection-ring::before {
  inset: 0;
  z-index: -2;
  background: conic-gradient(#69cf55 var(--collection-progress, 0%), #303632 0);
}

.collection-ring::after {
  inset: 9px;
  z-index: -1;
  background: #121314;
}

.collection-ring.is-spinning::before {
  background: conic-gradient(#303632 18%, #69cf55 37%, #303632 56%);
  animation: collection-spin 1.8s linear infinite;
}

@keyframes collection-spin {
  to { transform: rotate(1turn); }
}

.collection-ring strong {
  color: #fff;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.collection-stage {
  color: #f3f4f3;
  font-size: 17px;
  font-weight: 650;
}

.collection-saved {
  margin-top: 7px;
  color: #9cd68d;
  font-size: 14px;
}

.collection-progress .result-note {
  margin-top: 13px;
}

.collection-details {
  padding-top: 54px;
}

.collection-details-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px;
}

.collection-details .result-query {
  max-width: 100%;
  color: #fff;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.collection-parameters {
  display: grid;
  gap: 11px;
  margin: 22px 0;
}

.collection-parameters > div {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 12px;
}

.collection-parameters dt {
  color: #a9a9ae;
  font-size: 13px;
}

.collection-parameters dd {
  margin: 0;
  color: #f4f4f4;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.collection-actions {
  display: grid;
  gap: 10px;
}

.collection-actions .primary,
.collection-actions .secondary {
  width: 100%;
  min-height: 50px;
  padding-inline: 16px;
  font-size: 15px;
  font-weight: 650;
}

.collection-actions .text-button {
  justify-self: start;
  min-height: 34px;
}

.collection-actions .form-error:empty {
  display: none;
}

.collection-details > .result-note,
.collection-details > .result-error {
  margin-top: 13px;
}

.collection-dialog .collection-demo {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px clamp(20px, 4vw, 42px) 30px;
  border-top: 1px solid #3a3a3e;
}

.collection-demo .report-table-wrap {
  margin-bottom: 18px;
}

@media (max-width: 700px) {
  .collection-dialog #estimate-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-progress {
    padding-top: 44px;
    border-right: 0;
    border-bottom: 1px solid #3a3a3e;
  }

  .collection-details {
    padding-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collection-ring.is-spinning::before {
    animation: none;
  }
}
