:root {
  --navy: #073763;
  --navy-soft: #0f4f86;
  --teal: #16b7a3;
  --teal-dark: #0f8f83;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --mint-soft: #edfdfa;
  --text: #101828;
  --muted: #667085;
  --border: #e4e7ec;
  --cream: #fffef8;
  --white: #ffffff;
  --shadow: 0 22px 65px rgba(7, 55, 99, 0.12);
  --soft-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% -10%, rgba(22, 183, 163, 0.12), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

button {
  font: inherit;
}

.site-topbar {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(228, 231, 236, 0.85);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.topbar-inner {
  width: min(980px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
}

.brand span {
  font-size: 18px;
}

.page-shell {
  min-height: calc(100vh - 73px);
}

.screen {
  display: none;
  padding: 38px 16px 54px;
}

.screen.active {
  display: block;
}

.screen-inner {
  width: min(760px, 100%);
  margin: 0 auto;
}

.loading-headline,
.result-copy {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 auto 14px;
  max-width: 780px;
  color: #0a0f1f;
  font-size: clamp(34px, 5.4vw, 52px);
  line-height: 1.08;
  font-weight: 820;
  letter-spacing: -0.05em;
}

.subtext {
  margin: 0 auto;
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.55;
}

.search-progress-card {
  margin: 30px auto 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(228, 231, 236, 0.95);
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.progress-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 16px;
  color: var(--navy);
  font-weight: 800;
}

.pulse-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(22, 183, 163, 0.45);
  animation: pulseRing 1.4s infinite;
}

.skeleton-list {
  display: grid;
  gap: 14px;
}

.skeleton-card {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 18px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
}

.skeleton-logo,
.skeleton-line {
  background: linear-gradient(90deg, #eef1f6 25%, #f8fafc 38%, #eef1f6 65%);
  background-size: 400% 100%;
  animation: shimmer 1.25s ease-in-out infinite;
}

.skeleton-logo {
  height: 82px;
  border-radius: 14px;
}

.skeleton-content {
  display: grid;
  gap: 12px;
}

.skeleton-line {
  height: 14px;
  border-radius: 999px;
}

.skeleton-line.wide {
  height: 18px;
}

.skeleton-line.short {
  width: 64%;
}

.result-layout {
  width: min(790px, 100%);
}

.result-copy {
  margin-bottom: 26px;
}

.result-copy h1 {
  max-width: 680px;
  font-size: clamp(29px, 3.8vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 760;
}

.result-copy .subtext {
  max-width: 680px;
  font-size: clamp(16px, 2.2vw, 19px);
  color: #5f6678;
}

.offer-card {
  position: relative;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  padding: 34px 32px 28px;
  border-radius: 28px;
  border: 1px solid rgba(228, 231, 236, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 254, 248, 0.98)),
    var(--cream);
  box-shadow: var(--shadow);
}

.offer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(22, 183, 163, 0.10), transparent 35%),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.45) 100%);
}

.match-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, #20e3c2, #18a6d8);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 1;
}

.match-ribbon span {
  position: absolute;
  top: 9px;
  left: 10px;
  color: #fff;
  font-size: 25px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

.offer-logo-box {
  position: relative;
  z-index: 2;
  width: min(245px, 72%);
  min-height: 178px;
  margin: 0 auto 24px;
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.015);
  padding: 12px;
}

.real-offer-logo {
  max-width: 100%;
  max-height: 152px;
  object-fit: contain;
}

.offer-card h2 {
  position: relative;
  z-index: 2;
  margin: 0 0 20px;
  color: #080b13;
  font-size: clamp(23px, 4.4vw, 33px);
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.045em;
}

.details-toggle {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  border-top: 0;
  border-radius: 999px;
  background: rgba(237, 253, 250, 0.95);
  border: 1px solid rgba(22, 183, 163, 0.18);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.055);
  padding: 10px 14px 10px 18px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.details-toggle > span:first-child {
  padding-top: 0;
  font-size: 15px;
  font-weight: 820;
  white-space: nowrap;
}

.toggle-circle {
  width: 24px;
  height: 24px;
  margin: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal-dark);
  font-size: 17px;
  line-height: 1;
  box-shadow: none;
  border: 1px solid rgba(22, 183, 163, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offer-details {
  position: relative;
  z-index: 2;
  display: none;
  margin: 0 0 20px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(237, 253, 250, 0.82);
  border: 1px solid rgba(22, 183, 163, 0.14);
}

.offer-details.open {
  display: block;
}

.offer-details ul {
  margin: 0;
  padding-left: 20px;
  color: #344054;
  line-height: 1.55;
}

.offer-details li + li {
  margin-top: 10px;
}

.offer-details strong {
  color: var(--navy);
}

.main-cta {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 74px;
  border-radius: 18px;
  background: linear-gradient(135deg, #18b7a5, #155ee8);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(22, 183, 163, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(25px, 5.2vw, 36px);
  font-weight: 900;
  letter-spacing: -0.045em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.main-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(22, 183, 163, 0.28);
}

.micro-disclaimer {
  position: relative;
  z-index: 2;
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.reassurance-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 700px;
  margin: 16px auto 0;
}

.reassurance-strip div {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(228, 231, 236, 0.95);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.055);
  border-radius: 18px;
  padding: 16px;
}

.reassurance-strip strong {
  display: block;
  color: var(--navy);
  margin-bottom: 5px;
}

.reassurance-strip span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.site-footer {
  background: transparent;
  padding: 20px 16px 32px;
}

.footer-inner {
  width: min(760px, 100%);
  margin: 0 auto;
}

.site-footer p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.footer-nav {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
}

.legal-page {
  padding: 42px 16px 58px;
}

.legal-page .screen-inner {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  padding: 28px;
}

.legal-page h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.04em;
}

.legal-page h2 {
  margin-top: 28px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.7;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(22, 183, 163, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(22, 183, 163, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 183, 163, 0); }
}

@media (max-width: 640px) {
  .topbar-inner {
    min-height: 64px;
  }

  .brand img {
    width: 35px;
    height: 35px;
  }

  .brand span {
    font-size: 16px;
  }

  .screen {
    padding: 30px 14px 44px;
  }

  h1 {
    font-size: 33px;
  }

  .skeleton-card {
    grid-template-columns: 1fr;
  }

  .skeleton-logo {
    height: 82px;
  }

  .offer-card {
    padding: 30px 22px 24px;
    border-radius: 24px;
  }

  .offer-logo-box {
    width: 74%;
    min-height: 160px;
  }

  .real-offer-logo {
    max-height: 134px;
  }

  .details-toggle {
    width: 100%;
    padding: 11px 14px;
    flex-direction: row;
  }

  .details-toggle > span:first-child {
    white-space: normal;
    font-size: 14px;
  }

  .toggle-circle {
    width: 23px;
    height: 23px;
    font-size: 16px;
    margin: 0;
  }

  .main-cta {
    min-height: 72px;
  }

  .reassurance-strip {
    grid-template-columns: 1fr;
  }
}


/* Version 2 emotional connection section */
.comfort-card {
  max-width: 700px;
  margin: -8px auto 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(22, 183, 163, 0.16);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.055);
}

.comfort-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16b7a3, #2563eb);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.comfort-card strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.comfort-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .comfort-card {
    margin-top: -4px;
    padding: 15px;
  }
}


/* National Debt Relief offer logo update */
.national-logo-box {
  width: min(320px, 80%);
  min-height: 152px;
  background: #ffffff;
  border-radius: 18px;
  border-color: rgba(31, 42, 82, 0.14);
  padding: 20px 22px;
}

.national-debt-logo {
  max-width: 100%;
  max-height: 124px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .national-logo-box {
    width: 82%;
    min-height: 132px;
    padding: 16px 18px;
  }

  .national-debt-logo {
    max-height: 108px;
  }
}
