:root {
  --navy: #102c46;
  --blue: #1d6fa5;
  --sky: #eaf4fa;
  --ink: #17232d;
  --muted: #667684;
  --line: #d9e2e8;
  --cream: #f7f7f3;
  --white: #fff;
  --green: #23866b;
}
* {
  box-sizing: border-box;
}

/* Always honor the hidden attribute, even on elements with display rules below. */
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  background: white;
  line-height: 1.55;
}
header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.05;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 5px;
}
.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--navy);
  color: white;
  font-size: 12px;
  letter-spacing: 0.5px;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a,
footer a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.navcta {
  background: var(--navy);
  color: white !important;
  padding: 11px 16px;
  border-radius: 9px;
}
.menu {
  display: none;
  border: 0;
  background: none;
  font-size: 24px;
}
.hero {
  min-height: 670px;
  padding: 92px max(6vw, 28px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
  background: linear-gradient(120deg, #f8fbfd 0%, #fff 60%);
}
.eyebrow,
.kicker {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 1.7px;
  color: var(--blue);
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 0.98;
  letter-spacing: -3px;
  margin: 18px 0 26px;
  color: var(--navy);
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.lead {
  font-size: 20px;
  max-width: 760px;
  color: #445663;
}
.actions {
  display: flex;
  gap: 12px;
  margin: 32px 0;
}
.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 14px 20px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
}
.primary {
  background: var(--navy);
  color: white;
}
.secondary {
  border: 1px solid var(--line);
  color: var(--navy);
  background: white;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}
.report-card,
.dashboard {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(16, 44, 70, 0.12);
  border-radius: 18px;
  padding: 28px;
}
.report-top {
  display: flex;
  justify-content: space-between;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}
.report-card h3 {
  font-size: 28px;
  margin: 18px 0;
}
.metric {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.metric strong {
  font-size: 27px;
}
.meter,
.progress {
  height: 7px;
  background: #e7edf1;
  border-radius: 10px;
  overflow: hidden;
}
.meter i,
.progress i {
  height: 100%;
  display: block;
  background: var(--blue);
}
.report-card li {
  margin: 8px 0;
}
.report-foot {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--blue);
  font-weight: 800;
}
.problem {
  text-align: center;
  padding: 85px max(8vw, 30px);
  background: var(--navy);
  color: white;
}
.problem h2,
.section h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.7px;
  margin: 10px 0 20px;
}
.problem p:not(.kicker) {
  max-width: 850px;
  margin: auto;
  color: #dbe8f1;
  font-size: 19px;
}
.section {
  padding: 95px max(6vw, 28px);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 42px;
}
.cards article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  min-height: 230px;
}
.cards article > span {
  font-weight: 900;
  color: #9ab3c4;
}
.cards h3 {
  font-size: 21px;
}
.cards p {
  color: var(--muted);
}
.cards b {
  color: var(--blue);
}
.dark {
  background: #0b2235;
  color: white;
}
.dark .kicker {
  color: #75b8df;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.steps > div {
  border-top: 1px solid #365064;
  padding-top: 25px;
}
.steps b {
  font-size: 34px;
  color: #75b8df;
}
.steps p {
  color: #b9c9d4;
}
.compare,
.protection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.compare > div > p:not(.kicker),
.protection > div > p:not(.kicker),
.about > p {
  font-size: 18px;
  color: var(--muted);
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  background: white;
  box-shadow: 0 18px 55px rgba(16, 44, 70, 0.08);
}
th,
td {
  padding: 15px;
  border: 1px solid var(--line);
  text-align: center;
}
th:first-child,
td:first-child {
  text-align: left;
}
.protection {
  background: var(--sky);
}
.dashboard small {
  font-weight: 900;
  color: var(--blue);
}
.dashboard h3 {
  font-size: 28px;
}
.numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.numbers div {
  background: var(--cream);
  padding: 14px;
  border-radius: 9px;
}
.numbers span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.numbers b {
  font-size: 20px;
}
.dashboard p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.pricing > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 27px;
  position: relative;
}
.pricing .featured {
  border: 2px solid var(--blue);
  transform: translateY(-8px);
}
.pricing label {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--blue);
  color: white;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
}
.pricing strong {
  font-size: 36px;
  color: var(--navy);
}
.pricing strong small {
  font-size: 13px;
}
.pricing p {
  min-height: 75px;
  color: var(--muted);
}
.pricing a {
  font-weight: 850;
  color: var(--blue);
}
.intake {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  background: var(--cream);
}
form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 28px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 17px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 13px;
  border: 1px solid #cdd9e0;
  border-radius: 8px;
  font: inherit;
  background: white;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.upload {
  border: 1px dashed #aebec8;
  padding: 15px;
  border-radius: 8px;
}
.upload input {
  border: 0;
  padding: 5px 0;
}
.upload small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}
.formmsg {
  color: var(--green);
  font-weight: 700;
}
.about {
  max-width: 1050px;
}
.notice {
  margin-top: 30px;
  padding: 22px;
  border-left: 4px solid var(--blue);
  background: var(--sky);
}
footer {
  padding: 45px max(6vw, 28px);
  background: #071925;
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
footer .brand {
  color: white;
}
footer a {
  color: #dbe8f1;
  margin-right: 20px;
}
footer p {
  grid-column: 1/-1;
  color: #8298a8;
  font-size: 12px;
  border-top: 1px solid #29404f;
  padding-top: 20px;
}
.payment {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  background: var(--sky);
  align-items: start;
}
.payment > div > p:not(.kicker) {
  font-size: 18px;
  color: var(--muted);
}
.payment-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 55px rgba(16, 44, 70, 0.09);
}
.payment-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.pay-button {
  border: 0;
  border-radius: 9px;
  padding: 14px 18px;
  font-weight: 850;
  font-size: 15px;
  cursor: pointer;
}
.pay-button.square {
  background: #111;
  color: white;
}
.payment-msg {
  font-weight: 750;
  color: var(--navy);
}
.payment-msg.error {
  color: #a22c2c;
}
.payment-note {
  font-size: 12px;
  color: var(--muted);
}
.custom-review-contact {
  padding: 20px;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--sky);
}
.custom-review-contact h3 {
  margin-top: 0;
  color: var(--navy);
}
.custom-review-contact p:last-child {
  margin-bottom: 0;
}
.custom-review-contact a {
  color: var(--blue);
  font-weight: 800;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
  }
  nav.open {
    display: flex;
  }
  .menu {
    display: block;
  }
  .hero,
  .compare,
  .protection,
  .payment,
  .intake {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 60px;
    gap: 35px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .steps,
  .pricing {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    letter-spacing: -2px;
  }
}
@media (max-width: 600px) {
  .cards,
  .steps,
  .pricing,
  .grid2,
  .payment-buttons {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 70px 22px;
  }
  .hero {
    padding: 55px 22px;
  }
  .actions {
    flex-direction: column;
  }
  .btn {
    text-align: center;
  }
  .pricing .featured {
    transform: none;
  }
  footer {
    grid-template-columns: 1fr;
  }
}
/* Selected HomeProject Advocate Option 2 brand */
.brand-logo {
  display: block;
  width: min(360px, 42vw);
  height: auto;
  object-fit: contain;
}
@media (max-width: 760px) {
  .brand-logo {
    width: min(250px, 68vw);
  }
}

/* Final approved compact header logo */
.brand-logo {
  width: 300px !important;
  max-width: 30vw;
  height: auto;
  object-fit: contain;
}
@media (max-width: 900px) {
  .brand-logo {
    width: 230px !important;
    max-width: 58vw;
  }
}
@media (max-width: 560px) {
  .brand-logo {
    width: 190px !important;
    max-width: 62vw;
  }
}
