:root {
  --bg: #f6f7f8;
  --ink: #1f2933;
  --muted: #637083;
  --line: #dde3ea;
  --brand: #1c7c72;
  --brand-dark: #12645c;
  --gold: #b45309;
  --danger: #b42318;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
}

.brand,
.topbar nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 850;
  font-size: 20px;
}

.topbar nav {
  color: var(--muted);
  font-weight: 700;
}

.site-lang {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #e9eef2;
  border-radius: 8px;
}

.site-lang button {
  min-width: 42px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.site-lang button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(21, 35, 52, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 44px;
  align-items: start;
  max-width: 1120px;
  min-height: clamp(620px, calc(100vh - 92px), 760px);
  margin: 0 auto;
  padding: 46px 24px 72px;
}

.eyebrow {
  color: var(--brand-dark);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: 0;
}

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

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

.hero-risk-preview {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  max-width: 500px;
  margin-top: 22px;
  padding: 13px;
  background: #fff1f0;
  border: 1px solid rgba(180, 35, 24, 0.32);
  border-radius: 8px;
}

.hero-risk-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.hero-risk-copy strong {
  color: var(--danger);
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 7px;
  font-weight: 850;
}

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.secondary {
  background: #fff;
  border: 1px solid var(--line);
}

.product-shot {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(21, 35, 52, 0.18);
}

.browser-bar {
  display: flex;
  gap: 8px;
  padding: 14px;
  background: #eef2f4;
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 11px;
  height: 11px;
  border-radius: 99px;
  background: #94a3b8;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 430px;
}

.listing-preview {
  padding: 22px;
}

.photo-block {
  height: 220px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(28, 124, 114, 0.8), rgba(244, 182, 66, 0.35)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='360'%3E%3Crect width='600' height='360' fill='%23d9e4e1'/%3E%3Cpath d='M80 230 300 80l220 150v90H80Z' fill='%23fff'/%3E%3Cpath d='M170 320V200h120v120' fill='%23b6d7d1'/%3E%3Cpath d='M360 320V205h90v115' fill='%23f4b642'/%3E%3C/svg%3E");
  background-size: cover;
}

.listing-preview h2 {
  margin: 18px 0 4px;
  font-size: 34px;
}

.listing-preview p {
  color: var(--muted);
}

.mini-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-facts span,
.pill-row span {
  padding: 7px 10px;
  border-radius: 99px;
  background: #edf4f3;
  color: var(--brand-dark);
  font-weight: 800;
}

.side-preview {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  background: #f8fafb;
  border-left: 1px solid var(--line);
}

.side-preview strong {
  font-size: 22px;
}

.fit-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.fit-preview-mode {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.fit-preview div {
  min-width: 0;
  padding: 9px;
  background: #f8fafb;
  border-radius: 6px;
}

.fit-preview span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.fit-preview b {
  display: block;
  margin-top: 4px;
  color: var(--brand-dark);
  font-size: 24px;
}

.fit-preview div:nth-child(2) b {
  color: var(--danger);
}

.fit-preview p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.score-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.score-row span {
  color: var(--muted);
}

.mini-env-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fff1f0;
  border: 1px solid rgba(180, 35, 24, 0.32);
  border-radius: 7px;
}

.mini-gauge {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 51%, transparent 52%),
    conic-gradient(var(--danger) 99%, #e6ebef 0);
}

.mini-gauge span {
  color: var(--danger);
  font-size: 22px;
  font-weight: 900;
}

.mini-env-bars {
  display: grid;
  gap: 7px;
}

.mini-env-bars div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 22px;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  font-weight: 850;
}

.mini-env-bars span {
  color: var(--ink);
}

.mini-env-bars i {
  height: 8px;
  border-radius: 99px;
  background:
    linear-gradient(90deg, var(--danger) var(--w), #e6ebef 0);
}

.mini-env-bars b {
  color: var(--danger);
  text-align: right;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.band,
.neighborhood-section,
.pricing,
.install,
footer,
.policy {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-head {
  max-width: 700px;
  margin-bottom: 24px;
}

.section-head h2,
.install h2,
.policy h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: 0;
}

.section-head p,
.install p,
.policy p {
  color: var(--muted);
}

.feature-grid,
.price-grid,
.neighborhood-grid {
  display: grid;
  gap: 14px;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

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

.neighborhood-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.feature-grid article,
.price-grid article,
.neighborhood-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.signal-card {
  background: #e7f2f0;
  border-color: rgba(28, 124, 114, 0.4);
}

.signal-card span {
  display: block;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.1;
}

.price-grid .featured {
  border-color: var(--brand);
  box-shadow: 0 16px 40px rgba(28, 124, 114, 0.14);
}

.plan-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf4f3;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 850;
}

.price {
  margin: 10px 0;
  font-size: 30px;
  font-weight: 900;
}

.plan-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.plan-list li {
  position: relative;
  padding-left: 18px;
  margin-top: 8px;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.plan-action {
  width: 100%;
  margin-top: 18px;
  text-align: center;
}

.plan-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.install {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.policy {
  max-width: 800px;
}

.policy h2 {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand lang"
      "nav nav";
    align-items: center;
    gap: 12px;
  }

  .topbar .brand {
    grid-area: brand;
  }

  .topbar nav {
    grid-area: nav;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
  }

  .site-lang {
    grid-area: lang;
    justify-self: end;
  }

  .hero,
  .preview-grid,
  .feature-grid,
  .neighborhood-grid,
  .price-grid,
  .install {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 38px;
    line-height: 1.12;
  }

  .side-preview {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 16px 24px;
  }

  .hero {
    gap: 36px;
    padding-top: 30px;
  }

  h1 {
    font-size: 36px;
  }

  .lede {
    font-size: 17px;
  }

  .hero-risk-preview,
  .mini-env-card {
    grid-template-columns: 1fr;
  }

  .hero-risk-preview .mini-gauge,
  .mini-env-card .mini-gauge {
    width: 64px;
    height: 64px;
  }

  .mini-env-bars div {
    grid-template-columns: minmax(58px, 0.7fr) minmax(72px, 1fr) 26px;
  }

  .product-shot {
    width: 100%;
  }
}
