.value-explorer-page {
  background: #f6f4ef;
  color: #171717;
}

.value-explorer-shell {
  padding: 56px clamp(20px, 5vw, 72px) 72px;
}

.value-hero {
  max-width: 980px;
  margin: 0 auto 34px;
}

.value-hero h1 {
  margin: 10px 0 14px;
  font-family: "Barlow", Arial, sans-serif;
  font-size: clamp(36px, 7vw, 74px);
  line-height: 0.95;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.value-hero p {
  max-width: 760px;
  color: #45413b;
  font-size: 18px;
  line-height: 1.7;
}

.explorer-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

.explorer-panel {
  border: 1px solid #d9d3c9;
  background: #fffdfa;
  padding: clamp(20px, 3vw, 32px);
}

.explorer-panel h2,
.explorer-panel h3 {
  margin: 0 0 18px;
  font-family: "Barlow", Arial, sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.field-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.radio-group legend {
  font-family: "Barlow", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 12px;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bfb7ab;
  background: #ffffff;
  padding: 0 12px;
  color: #171717;
  font: inherit;
}

.field input[type="range"] {
  min-height: 32px;
  padding: 0;
  accent-color: #4f6f45;
}

.field input:focus,
.field select:focus,
.radio-pill input:focus + span,
.lead-actions button:focus,
.value-cta button:focus,
summary:focus {
  outline: 3px solid #6f8f5d;
  outline-offset: 3px;
}

.radio-group {
  border: 0;
  padding: 0;
  margin: 0;
}

.radio-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
}

.radio-pill span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfb7ab;
  background: #f7f4ee;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.radio-pill input:checked + span {
  background: #171717;
  color: #ffffff;
  border-color: #171717;
}

.validation-box {
  border-left: 4px solid #9a5d35;
  background: #fff4ec;
  padding: 12px 14px;
  color: #382111;
}

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

.result-card {
  border: 1px solid #e0dad1;
  background: #ffffff;
  padding: 16px;
}

.result-card span {
  display: block;
  color: #5d574f;
  font-size: 12px;
}

.result-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 18px;
}

.result-card.wide {
  grid-column: 1 / -1;
}

.bar-visual {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-weight: 700;
}

.stacked-bar {
  display: flex;
  height: 28px;
  overflow: hidden;
  border: 1px solid #171717;
  background: #ece7de;
}

.bar-mortgage {
  background: #2b2b2b;
}

.bar-equity {
  background: #6f8f5d;
}

.bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid #171717;
}

.legend-mortgage {
  background: #2b2b2b;
}

.legend-equity {
  background: #6f8f5d;
}

.source-box,
.disclaimer,
.methodology {
  margin-top: 20px;
  border-top: 1px solid #d9d3c9;
  padding-top: 18px;
  color: #45413b;
  line-height: 1.65;
}

.methodology summary {
  cursor: pointer;
  color: #171717;
  font-family: "Barlow", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.value-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.value-cta button,
.lead-actions button {
  min-height: 46px;
  border: 1px solid #171717;
  background: #171717;
  color: #ffffff;
  padding: 0 18px;
  font-family: "Barlow", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.value-cta button.secondary,
.lead-actions button.secondary {
  background: #ffffff;
  color: #171717;
}

.lead-dialog {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
}

.lead-dialog[hidden] {
  display: none;
}

.lead-card {
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fffdfa;
  padding: 26px;
  border: 1px solid #d9d3c9;
}

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

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  line-height: 1.5;
}

.sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

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

@media (max-width: 560px) {
  .value-explorer-shell {
    padding-inline: 16px;
  }

  .radio-row,
  .value-cta {
    grid-template-columns: 1fr;
  }

  .value-cta button,
  .lead-actions button {
    width: 100%;
  }

  .bar-label {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}

