:root {
  --cream: #eddecc;
  --charcoal: #424547;
  --black: #000000;
  --olive: #6b764c;
  --blue: #3a5f85;
  --navy: #0a1f44;
  --pink: #f8dbd5;
  --white: #ffffff;
  --line: rgba(66, 69, 71, 0.18);
  --shadow: 0 18px 50px rgba(10, 31, 68, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fbf8f3;
  color: var(--charcoal);
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(18px, 5vw, 64px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.brand img {
  display: block;
  width: min(260px, 50vw);
  height: auto;
}

.contact-link,
.phone {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding: clamp(48px, 8vw, 86px) 0 34px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.intro {
  max-width: 670px;
  margin: 22px 0 0;
  font-size: clamp(1.03rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--olive);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checker,
.status-panel,
.selector-panel,
.summary-grid article,
.detail-grid article,
.improvements,
.cta {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.checker {
  padding: clamp(20px, 4vw, 30px);
}

label {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
select,
button {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(66, 69, 71, 0.35);
  border-radius: 6px;
  font: inherit;
}

input,
select {
  padding: 0 14px;
  color: var(--charcoal);
  background: var(--white);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.fineprint {
  margin: 12px 0 0;
  color: rgba(66, 69, 71, 0.78);
  font-size: 0.88rem;
  line-height: 1.45;
}

.workspace {
  padding: 18px 0 28px;
}

.status-panel,
.selector-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}

.status-panel h2,
.selector-panel h2,
article h2,
.improvements h2,
.cta h2 {
  margin: 0;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: 0;
}

.status-panel p:last-child {
  max-width: 470px;
  margin: 0;
  line-height: 1.5;
}

.hidden {
  display: none;
}

.results {
  display: grid;
  gap: 18px;
}

.selector-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
}

#selection-note {
  grid-column: 2;
}

.summary-grid,
.detail-grid {
  display: grid;
  gap: 18px;
}

.summary-grid {
  grid-template-columns: 1.25fr 1fr 0.9fr 0.9fr;
}

.detail-grid {
  grid-template-columns: 0.85fr 1.15fr;
}

.summary-grid article,
.detail-grid article {
  min-width: 0;
  padding: 24px;
}

article p {
  line-height: 1.48;
}

.rating-card {
  background: linear-gradient(140deg, #ffffff 0%, #f8dbd5 140%);
}

.rating-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.band {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  color: var(--white);
  background: var(--olive);
  font-size: 3rem;
  font-weight: 900;
}

.rating-lockup p {
  margin: 8px 0 0;
}

.meter {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 26px;
  overflow: hidden;
  border-radius: 5px;
  min-height: 28px;
}

.meter span {
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}

.meter span:nth-child(1) { background: #008a4b; }
.meter span:nth-child(2) { background: #18a85b; }
.meter span:nth-child(3) { background: #8cc63f; }
.meter span:nth-child(4) { background: #f2c94c; color: var(--black); }
.meter span:nth-child(5) { background: #f2994a; color: var(--black); }
.meter span:nth-child(6) { background: #eb5757; }
.meter span:nth-child(7) { background: #9b1c31; }

.meter i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--black);
  transform: translateX(-1px);
}

.verdict-card.pass {
  border-color: rgba(107, 118, 76, 0.45);
  background: #fbfff4;
}

.verdict-card.fail,
.verdict-card.expired {
  border-color: rgba(155, 28, 49, 0.35);
  background: #fff7f7;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 18px 0 0;
}

.facts div {
  min-width: 0;
}

dt {
  color: rgba(66, 69, 71, 0.7);
  font-size: 0.8rem;
  font-weight: 800;
}

dd {
  margin: 4px 0 0;
  color: var(--navy);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.improvements {
  padding: 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
}

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

.improvement {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f3;
}

.improvement strong {
  display: block;
  color: var(--navy);
  line-height: 1.25;
}

.improvement dl {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.improvement dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(66, 69, 71, 0.12);
  padding-top: 8px;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px auto;
  align-items: center;
  gap: clamp(18px, 4vw, 34px);
  margin: 20px 0 44px;
  padding: clamp(22px, 5vw, 34px);
  background: var(--navy);
  color: var(--white);
}

.cta h2,
.cta .eyebrow {
  color: var(--white);
}

.cta p {
  margin-bottom: 0;
  line-height: 1.5;
}

.cta img {
  width: 94px;
  height: 94px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
}

.cta-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.cta .button {
  background: var(--pink);
  color: var(--navy);
}

.cta .phone {
  color: var(--white);
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: rgba(66, 69, 71, 0.7);
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .hero,
  .summary-grid,
  .detail-grid,
  .improvement-list,
  .cta {
    grid-template-columns: 1fr;
  }

  .selector-panel {
    grid-template-columns: 1fr;
  }

  #selection-note {
    grid-column: auto;
  }

  .cta-actions {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-row,
  .facts {
    grid-template-columns: 1fr;
  }

  .status-panel {
    display: block;
  }

  .status-panel p:last-child {
    margin-top: 12px;
  }

  .rating-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading {
    display: block;
  }
}
