:root {
  --navy: #111a6c;
  --navy-dark: #0c145c;
  --ink: #171a22;
  --muted: #5d6473;
  --pale-blue: #e9eefc;
  --badge: #e5ecfd;
  --coral: #ff6258;
  --line: #d8dfed;
  --off-white: #f8f8fa;
  --white: #ffffff;
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #fff;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  height: 72px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 2px 7px rgb(0 0 0 / 13%);
}

.header-inner {
  width: min(1300px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 37px;
  line-height: 1;
  font-style: italic;
  font-weight: 300;
  letter-spacing: -1.6px;
}

.brand strong {
  font-weight: 750;
}

.brand-mark {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
}

.header-search-link {
  min-width: 260px;
  padding: 13px 16px;
  color: var(--ink);
  background: #fff;
  border-radius: 7px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 0 rgb(0 0 0 / 8%);
}

.sign-in-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hero-shell {
  width: min(1362px, calc(100% - 48px));
  min-height: 575px;
  margin: 24px auto 0;
  padding: 40px 32px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(470px, 625px);
  align-items: start;
  gap: 58px;
  background: var(--off-white);
  border-radius: 52px;
}

.hero-copy {
  min-width: 0;
}

.trust-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-badges span {
  padding: 7px 21px 8px;
  color: #071c6e;
  background: var(--badge);
  border-radius: 999px;
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 570px;
  margin: 25px 0 10px;
  color: #15171d;
  font-size: clamp(42px, 3.05vw, 50px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -1.8px;
}

.hero-intro {
  max-width: 610px;
  margin-bottom: 29px;
  font-size: 16px;
  line-height: 1.45;
}

.lookup {
  max-width: 612px;
}

.lookup-tabs {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid transparent;
}

.lookup-tab {
  position: relative;
  min-width: 84px;
  padding: 7px 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #697080;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 16px;
}

.lookup-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
}

.lookup-tab.active {
  color: #171a22;
}

.lookup-tab.active::after {
  background: var(--coral);
}

.lookup-tab svg,
.option-grid svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lookup-title {
  margin-bottom: 13px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.4px;
}

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

.dynamic-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.dynamic-fields.two-columns {
  grid-template-columns: 1fr 1fr;
}

.dynamic-fields.three-columns {
  grid-template-columns: 1.5fr 1fr 90px;
}

.lookup-row input,
.lookup-row select {
  width: 100%;
  height: 49px;
  padding: 0 14px;
  color: #272b35;
  background: #fff;
  border: 1px solid #c9d6f0;
  border-radius: 8px;
  outline: none;
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.lookup-row input:focus,
.lookup-row select:focus {
  border-color: #6d81c5;
  box-shadow: 0 0 0 3px rgb(17 26 108 / 10%);
}

.lookup-row input::placeholder {
  color: #727887;
}

.search-button {
  min-width: 132px;
  height: 49px;
  padding: 0 16px;
  color: #fff;
  background: var(--coral);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  transition: transform 160ms ease, background 160ms ease;
}

.search-button:hover {
  background: #f6534a;
  transform: translateY(-1px);
}

.privacy-note {
  margin: 15px 0 0 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #777e8b;
  font-size: 15px;
}

.privacy-note svg {
  width: 19px;
  height: 19px;
  fill: var(--coral);
  stroke: var(--coral);
  stroke-width: 1.8;
}

.privacy-note span {
  color: #6f7583;
}

.form-status {
  min-height: 18px;
  margin: 5px 0 0;
  color: #c54139;
  font-size: 13px;
}

.form-status:empty {
  display: none;
}

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 625 / 434;
  overflow: hidden;
  background: linear-gradient(140deg, #f0c08f, #8b725d 52%, #d7753f);
  border-radius: 22px;
}

.reference-photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: transparent;
}

.reference-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.visual-fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgb(255 226 188 / 75%), transparent 42%),
    linear-gradient(140deg, #c5a278, #6f6257 54%, #d96c35);
}

.fallback-person {
  position: absolute;
  right: 3%;
  bottom: -5%;
  width: 58%;
  height: 90%;
}

.fallback-head {
  position: absolute;
  top: 12%;
  left: 37%;
  width: 25%;
  aspect-ratio: 0.78;
  background: #b87553;
  border-radius: 45% 45% 50% 50%;
  transform: rotate(8deg);
}

.fallback-hair {
  position: absolute;
  top: 6%;
  left: 27%;
  width: 43%;
  height: 46%;
  background: #17181d;
  border-radius: 48% 52% 52% 45%;
  transform: rotate(7deg);
}

.fallback-body {
  position: absolute;
  right: -5%;
  bottom: 0;
  width: 75%;
  height: 61%;
  background: #d95e26;
  border-radius: 46% 20% 10% 10%;
  transform: rotate(-7deg);
}

.fallback-phone {
  position: absolute;
  bottom: 8%;
  left: 17%;
  width: 18%;
  height: 34%;
  background: #c5a278;
  border: 5px solid #36383e;
  border-radius: 8px;
  transform: rotate(-25deg);
}

.sample-card {
  position: absolute;
  z-index: 4;
  top: 18.5%;
  left: 21.5%;
  width: 36%;
  min-height: 240px;
  min-width: 205px;
  padding: 14px;
  color: #0e1e6d;
  background: rgb(255 255 255 / 95%);
  border: 3px solid rgb(93 89 87 / 50%);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgb(0 0 0 / 20%);
  font-size: 11px;
}

.call-pill {
  position: absolute;
  z-index: 4;
  top: 3.7%;
  left: 23.2%;
  width: 37%;
  min-width: 215px;
  padding: 10px 10px;
  display: grid;
  grid-template-columns: 32px 1fr 32px 32px;
  align-items: center;
  gap: 7px;
  color: #14161c;
  background: rgb(57 57 60 / 76%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 18px;
  box-shadow: 0 5px 13px rgb(0 0 0 / 18%);
  font-size: 10px;
}

.caller-avatar {
  width: 32px;
  height: 32px;
  background:
    radial-gradient(circle at 50% 34%, #fff 0 24%, transparent 26%),
    radial-gradient(ellipse at 50% 94%, #fff 0 38%, transparent 40%),
    #c6c8ce;
  border-radius: 50%;
}

.call-pill span:nth-child(2) {
  display: grid;
  gap: 1px;
}

.call-pill small {
  font-size: 9px;
}

.call-pill > b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  font-size: 0;
}

.call-pill > b::after {
  content: "";
  width: 14px;
  height: 7px;
  border: 3px solid #fff;
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
  transform: rotate(0deg);
}

.call-pill .decline {
  background: #ff514d;
}

.call-pill .answer {
  background: #24d768;
}

.call-pill .answer::after {
  transform: rotate(90deg);
}

.sample-card strong,
.sample-card small,
.sample-card b {
  display: block;
}

.sample-card small {
  margin: 3px 0 8px;
  color: #34343b;
}

.sample-card .card-subline {
  margin: 2px 0 5px;
  padding-left: 15px;
  color: #242631;
  font-size: 9px;
}

.sample-card p {
  margin: 7px 0 3px;
  color: #252833;
}

.sample-card button {
  width: 100%;
  margin-top: 11px;
  padding: 7px;
  color: var(--navy);
  background: var(--pale-blue);
  border: 0;
  border-radius: 4px;
  font-size: 9px;
}

.section-inner {
  width: min(1096px, calc(100% - 48px));
  margin: 0 auto;
}

.benefits {
  margin-top: 24px;
  padding: 58px 0 64px;
  background: var(--pale-blue);
}

.benefits h2,
.how-it-works h2,
.search-options h2,
.faq h2 {
  margin-bottom: 9px;
  text-align: center;
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -1.3px;
}

.section-lead {
  margin-bottom: 30px;
  text-align: center;
  font-size: 16px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.benefit-card {
  min-height: 329px;
  padding: 28px 30px;
  background: #fff;
  border: 1px solid #d5d9e1;
  border-radius: 18px;
  box-shadow: 0 1px 1px rgb(17 26 108 / 5%);
}

.benefit-card > svg {
  width: 45px;
  height: 45px;
  margin-bottom: 13px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card h3 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.4px;
}

.benefit-card p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.5;
}

.how-it-works {
  padding: 84px 0;
  background: #fff;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--coral);
  text-align: center;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.steps-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}

.steps-grid article {
  position: relative;
  text-align: center;
}

.steps-grid article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  left: calc(50% + 42px);
  width: calc(100% - 42px);
  border-top: 1px dashed #b9c5e9;
}

.steps-grid span {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  margin: 0 auto 19px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 0 0 8px #edf1fc;
}

.steps-grid h3 {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 600;
}

.steps-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.search-options {
  padding: 74px 0 82px;
  background: #f7f8fb;
}

.option-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.option-grid a {
  min-height: 116px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border: 1px solid #dfe3ec;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.option-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgb(17 26 108 / 9%);
}

.option-grid svg {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: var(--navy);
}

.option-grid span {
  display: grid;
  gap: 4px;
}

.option-grid strong {
  font-size: 18px;
}

.option-grid small {
  color: var(--muted);
  font-size: 13px;
}

.option-grid b {
  margin-left: auto;
  color: var(--coral);
  font-size: 24px;
}

.faq {
  padding: 82px 0 92px;
}

.section-inner.narrow {
  width: min(800px, calc(100% - 48px));
}

.faq h2 {
  margin-bottom: 31px;
}

.faq details {
  border-top: 1px solid #dfe3ec;
}

.faq details:last-child {
  border-bottom: 1px solid #dfe3ec;
}

.faq summary {
  padding: 20px 38px 20px 4px;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 14px;
  right: 5px;
  color: var(--navy);
  font-size: 28px;
  font-weight: 300;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: -5px 0 21px;
  padding-right: 42px;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  padding: 47px 0 36px;
  color: #fff;
  background: var(--navy);
}

.footer-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 25px;
  text-align: center;
}

.footer-brand {
  font-size: 31px;
}

.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px 27px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-inner > p {
  margin-bottom: 0;
  color: rgb(255 255 255 / 63%);
  font-size: 13px;
}

.cookie-banner {
  position: fixed;
  z-index: 20;
  right: 50%;
  bottom: 150px;
  width: min(725px, calc(100% - 32px));
  padding: 22px 16px 14px;
  transform: translateX(50%);
  color: #4e5b85;
  background: rgb(255 255 255 / 97%);
  border: 1px solid #dfe3ed;
  border-radius: 31px;
  box-shadow: 0 4px 19px rgb(31 41 84 / 18%);
  font-size: 14px;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner > p {
  margin: 0 0 11px;
  padding: 0 1px;
  line-height: 1.35;
}

.cookie-banner a {
  text-decoration: none;
}

.cookie-close {
  position: absolute;
  top: -10px;
  right: -3px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #64708c;
  background: #fff;
  border: 1px solid #d9deea;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgb(0 0 0 / 9%);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.cookie-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-controls > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-button {
  width: 29px;
  height: 29px;
  color: #7480a1;
  background: #fff;
  border: 1px solid #dce1eb;
  border-radius: 50%;
  cursor: pointer;
}

.accessibility-button {
  padding: 6px 10px;
  color: #4b5576;
  background: #fff;
  border: 1px solid #dfe3ed;
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
}

.accept-button {
  min-width: 100px;
  padding: 11px 19px;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.search-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  padding: 22px;
  display: grid;
  place-items: center;
  background: rgb(7 11 48 / 58%);
  backdrop-filter: blur(3px);
}

.search-modal[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(430px, 100%);
  padding: 39px 34px 31px;
  text-align: center;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 22px 60px rgb(0 0 0 / 24%);
}

.modal-card > svg {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.modal-card h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 11px;
  right: 13px;
  color: #616776;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 27px;
}

.modal-done {
  min-width: 115px;
  padding: 11px 20px;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .hero-shell {
    grid-template-columns: 1fr 43%;
    gap: 35px;
  }

  .trust-badges {
    gap: 9px;
  }

  .trust-badges span {
    padding-inline: 11px;
    font-size: 14px;
  }

  h1 {
    font-size: 42px;
  }

  .lookup-row {
    grid-template-columns: 1fr;
  }

  .search-button {
    width: 100%;
  }

  .sample-card {
    left: 10%;
    width: 50%;
    min-width: 0;
  }

  .call-pill {
    left: 11%;
    width: 50%;
    min-width: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 66px;
  }

  .header-inner {
    width: min(100% - 30px, 720px);
  }

  .brand {
    font-size: 28px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .header-search-link {
    min-width: auto;
    padding: 10px 13px;
    font-size: 12px;
  }

  .header-actions {
    gap: 15px;
  }

  .hero-shell {
    width: min(100% - 24px, 720px);
    padding: 32px 24px 25px;
    grid-template-columns: 1fr;
    gap: 30px;
    border-radius: 34px;
  }

  .hero-copy,
  .lookup,
  h1,
  .hero-intro {
    max-width: none;
  }

  .hero-visual {
    width: 100%;
  }

  .benefit-grid,
  .steps-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: 0;
  }

  .steps-grid {
    gap: 38px;
  }

  .steps-grid article::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-search-link {
    display: none;
  }

  .trust-badges {
    gap: 7px;
  }

  .trust-badges span {
    padding-inline: 12px;
    font-size: 12px;
  }

  h1 {
    margin-top: 21px;
    font-size: 37px;
    line-height: 1.1;
  }

  .hero-intro {
    font-size: 15px;
  }

  .lookup-tabs {
    justify-content: space-between;
    gap: 0;
  }

  .lookup-tab {
    min-width: auto;
    padding-inline: 7px;
    font-size: 14px;
  }

  .dynamic-fields.two-columns,
  .dynamic-fields.three-columns {
    grid-template-columns: 1fr;
  }

  .privacy-note {
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: 13px;
  }

  .sample-card {
    min-height: 0;
    padding: 9px;
    font-size: 8px;
  }

  .sample-card .card-subline,
  .sample-card small,
  .sample-card button {
    font-size: 7px;
  }

  .call-pill {
    padding: 7px;
    grid-template-columns: 25px 1fr 25px 25px;
    gap: 4px;
    font-size: 8px;
  }

  .caller-avatar,
  .call-pill > b {
    width: 25px;
    height: 25px;
  }

  .benefits,
  .how-it-works,
  .search-options,
  .faq {
    padding-block: 57px;
  }

  .section-inner,
  .section-inner.narrow {
    width: min(100% - 32px, 500px);
  }

  .benefits h2,
  .how-it-works h2,
  .search-options h2,
  .faq h2 {
    font-size: 30px;
  }

  .benefit-card {
    padding: 25px;
  }

  .cookie-banner {
    bottom: 13px;
    padding: 18px 14px 13px;
    border-radius: 20px;
  }

  .cookie-controls {
    align-items: flex-end;
  }

  .cookie-controls > div {
    align-items: flex-start;
  }

  .accessibility-button {
    display: none;
  }
}

@media (max-height: 900px) and (min-width: 561px) {
  .cookie-banner {
    bottom: 22px;
  }
}

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

  * {
    transition: none !important;
  }
}

/* =========================================================================
   USAPhonesBooks enhancements: navigation, inner pages, forms, a11y fixes
   ========================================================================= */

:root {
  --cta: #c62f24;        /* accessible coral for small text / buttons (>=4.5:1 on white) */
  --cta-hover: #a8261d;
  --ink-2: #2b3040;
}

/* ---- Skip link (keyboard a11y) ---- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 60;
  padding: 10px 16px;
  color: #fff;
  background: var(--navy);
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 140ms ease;
}

.skip-link:focus {
  top: 0;
}

/* ---- Visible focus ring for keyboard users ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #ffd24a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Contrast fixes (WCAG AA) ---- */
.search-button {
  background: var(--cta);
}

.search-button:hover {
  background: var(--cta-hover);
}

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

.option-grid b {
  color: var(--cta);
}

.privacy-note,
.privacy-note span {
  color: #5a606e;
}

.lookup-row input::placeholder {
  color: #5a606e;
}

.lookup-tab {
  color: #5a606e;
}

.form-status {
  color: #b21f17;
}

/* ---- Header navigation ---- */
.header-inner {
  gap: 20px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.primary-nav a {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.92;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.primary-nav .sign-in-link {
  padding: 9px 18px;
  background: var(--cta);
  border-radius: 7px;
  opacity: 1;
}

.primary-nav .sign-in-link:hover {
  background: var(--cta-hover);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: #fff;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  width: min(1096px, calc(100% - 48px));
  margin: 18px auto 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb a {
  color: var(--navy);
  text-decoration: none;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: #aab2c4;
}

/* ---- Inner-page hero ---- */
.page-hero {
  padding: 46px 0 34px;
  background: linear-gradient(180deg, var(--pale-blue), #fff);
}

.page-hero .section-inner {
  text-align: center;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0 auto 14px;
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -1.2px;
}

.page-hero .lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
}

.page-hero .hero-cta {
  margin-top: 24px;
}

/* ---- Buttons (shared) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.btn-primary {
  color: #fff;
  background: var(--cta);
}

.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  color: #fff;
  background: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

/* ---- Prose / article body ---- */
.prose {
  padding: 52px 0 16px;
}

.prose .section-inner {
  width: min(820px, calc(100% - 48px));
}

.content-section {
  margin-bottom: 38px;
}

.content-section h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.6px;
}

.content-section h3 {
  margin: 22px 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.content-section p {
  margin-bottom: 14px;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-2);
}

.content-section ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.content-section li {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}

.content-section a {
  color: var(--navy);
  font-weight: 600;
}

/* ---- Six-up feature grid (homepage parity) ---- */
.feature-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 24px;
  background: #fff;
  border: 1px solid #d5d9e1;
  border-radius: 16px;
  box-shadow: 0 1px 1px rgb(17 26 108 / 5%);
}

.feature-card h3 {
  margin: 4px 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.feature-card .ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  color: #fff;
  background: var(--navy);
  border-radius: 11px;
  font-size: 20px;
}

/* ---- Use-case / info cards ---- */
.usecase-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.usecase-card {
  padding: 22px;
  background: #f7f8fb;
  border: 1px solid #e2e6ef;
  border-radius: 14px;
}

.usecase-card h3 {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 600;
}

.usecase-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---- CTA band ---- */
.cta-band {
  margin: 16px 0 0;
  padding: 58px 0;
  text-align: center;
  color: #fff;
  background: var(--navy);
}

.cta-band h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -1px;
}

.cta-band p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: rgb(255 255 255 / 86%);
  font-size: 17px;
  line-height: 1.5;
}

.cta-band .btn-primary {
  background: var(--cta);
}

.cta-band .btn-primary:hover {
  background: var(--cta-hover);
}

/* ---- Forms (contact / opt-out) ---- */
.form-card {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto 40px;
  padding: 30px;
  background: #fff;
  border: 1px solid #dfe3ec;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgb(17 26 108 / 6%);
}

.field {
  margin-bottom: 16px;
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  color: #272b35;
  background: #fff;
  border: 1px solid #c9d6f0;
  border-radius: 8px;
  outline: none;
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #6d81c5;
  box-shadow: 0 0 0 3px rgb(17 26 108 / 10%);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-feedback {
  margin-top: 6px;
  min-height: 20px;
  font-size: 14px;
}

.form-feedback.ok {
  color: #1c7c46;
}

.form-feedback.err {
  color: #b21f17;
}

/* ---- Contact details list ---- */
.contact-grid {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact-grid .contact-item {
  padding: 20px;
  background: #f7f8fb;
  border: 1px solid #e2e6ef;
  border-radius: 14px;
}

.contact-grid h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.contact-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.contact-grid a {
  color: var(--navy);
  font-weight: 600;
}

/* ---- FCRA / legal notice band ---- */
.legal-note {
  width: min(1096px, calc(100% - 48px));
  margin: 0 auto 8px;
  padding: 16px 18px;
  background: #fbfbfd;
  border: 1px solid #e6e9f1;
  border-radius: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---- Footer columns ---- */
.footer-cols {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  text-align: left;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.8;
}

.footer-col a {
  display: block;
  margin-bottom: 9px;
  color: rgb(255 255 255 / 86%);
  text-decoration: none;
  font-size: 14px;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-col p {
  margin: 0 0 10px;
  color: rgb(255 255 255 / 72%);
  font-size: 14px;
  line-height: 1.55;
}

.footer-disclaimer {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto 18px;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 16%);
  color: rgb(255 255 255 / 64%);
  font-size: 12.5px;
  line-height: 1.55;
}

.footer-bottom {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: rgb(255 255 255 / 64%);
  font-size: 13px;
}

.footer-bottom a {
  color: rgb(255 255 255 / 82%);
  text-decoration: none;
}

/* ---- Cookie banner: keep it out of the content flow at the bottom ---- */
.cookie-banner {
  bottom: 20px;
}

/* ---- High-contrast mode (driven by the Accessibility button) ---- */
html.high-contrast {
  --muted: #1a1c22;
  --ink-2: #000;
  --cta: #b00000;
  --cta-hover: #8a0000;
}

html.high-contrast body {
  background: #fff;
  color: #000;
}

html.high-contrast .hero-shell,
html.high-contrast .benefits,
html.high-contrast .search-options,
html.high-contrast .page-hero,
html.high-contrast .usecase-card,
html.high-contrast .feature-card,
html.high-contrast .form-card {
  background: #fff;
}

html.high-contrast a,
html.high-contrast .breadcrumb a,
html.high-contrast .content-section a {
  color: #00339c;
  text-decoration: underline;
}

html.high-contrast .content-section p,
html.high-contrast .content-section li,
html.high-contrast .page-hero .lead,
html.high-contrast .section-lead,
html.high-contrast .steps-grid p,
html.high-contrast .feature-card p,
html.high-contrast .usecase-card p,
html.high-contrast .privacy-note,
html.high-contrast .privacy-note span {
  color: #000;
}

html.high-contrast .benefit-card,
html.high-contrast .option-grid a,
html.high-contrast .usecase-card,
html.high-contrast .feature-card,
html.high-contrast .form-card,
html.high-contrast .lookup-row input,
html.high-contrast .field input,
html.high-contrast .field textarea,
html.high-contrast .field select {
  border-color: #000;
}

html.high-contrast .search-button,
html.high-contrast .btn-primary {
  background: var(--cta);
}

html.high-contrast .eyebrow,
html.high-contrast .option-grid b {
  color: var(--cta);
}

.accessibility-button[aria-pressed="true"] {
  color: #fff;
  background: var(--navy);
}

/* ---- Responsive: navigation + new layouts ---- */
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--navy);
    box-shadow: 0 8px 16px rgb(0 0 0 / 18%);
  }

  .primary-nav:not(.open) {
    display: none;
  }

  .primary-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }

  .primary-nav .sign-in-link {
    margin-top: 12px;
    text-align: center;
    border-bottom: 0;
  }

  .site-header {
    position: relative;
  }

  .feature-grid,
  .usecase-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .feature-grid,
  .usecase-grid,
  .contact-grid,
  .field-row,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    gap: 22px;
    text-align: left;
  }

  .page-hero .lead {
    font-size: 16px;
  }

  .content-section p,
  .content-section li {
    font-size: 16px;
  }
}

