.site-matcher-overlay,
.site-matcher-modal,
.site-matcher-shell,
.site-matcher-panel,
.site-matcher-card,
.site-matcher-option,
.site-matcher-card-actions a,
.site-matcher-card-actions button,
.site-matcher-open,
.site-matcher-secondary,
.site-matcher-launcher {
  box-sizing: border-box;
}

.site-matcher-overlay {
  --site-matcher-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --site-matcher-sans: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --site-matcher-navy: #0f172a;
  --site-matcher-blue: #2563eb;
  --site-matcher-amber: #f59e0b;
  --site-matcher-surface: #f8fafc;
  --site-matcher-line: #d7e3f4;
}

.site-matcher-teaser {
  margin: 24px 0 28px;
  padding: 22px 24px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 38%),
    linear-gradient(135deg, #eff6ff 0%, #f8fafc 48%, #fff7ed 100%);
  border: 1px solid #bfdbfe;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.10);
}

.site-matcher-teaser-eyebrow {
  margin-bottom: 8px;
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-matcher-teaser h2,
.site-matcher-teaser h3 {
  margin: 0 0 8px;
  color: #0f172a;
}

.site-matcher-teaser p {
  margin: 0;
  color: #334155;
}

.site-matcher-teaser-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 16px;
}

.site-matcher-teaser-bullets span {
  color: #0f172a;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-matcher-teaser-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.site-matcher-open,
.site-matcher-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.site-matcher-open {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.site-matcher-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.site-matcher-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.26);
  cursor: pointer;
}

.site-matcher-launcher span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
  font-size: 1.05rem;
}

.site-matcher-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
}

.site-matcher-overlay.is-open {
  display: grid;
  place-items: center;
}

body.site-matcher-open {
  overflow: hidden;
  touch-action: none;
}

body.site-matcher-open .site-matcher-launcher {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.site-matcher-modal {
  width: min(980px, 100%);
  max-height: min(92vh, 960px);
  overflow: auto;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.10), transparent 24%),
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.34);
  font-family: var(--site-matcher-sans);
}

.site-matcher-shell {
  display: block;
}

.site-matcher-panel {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.site-matcher-title {
  margin: 0 52px 14px 0;
  color: #0f172a;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-family: var(--site-matcher-serif);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.site-matcher-panel--intro {
  color: #e2e8f0;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.26), transparent 30%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.site-matcher-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fde68a;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-matcher-panel--intro h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.site-matcher-panel--intro p {
  margin: 0 0 14px;
  color: #cbd5e1;
  line-height: 1.7;
}

.site-matcher-points {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.site-matcher-points li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.site-matcher-disclaimer {
  margin-top: 18px;
  font-size: 0.92rem;
  color: #94a3b8;
}

.site-matcher-close {
  position: sticky;
  top: 12px;
  float: right;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.92);
  color: #0f172a;
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(10px);
}

.site-matcher-progress {
  margin-bottom: 22px;
}

.site-matcher-progress.is-hidden {
  display: none;
}

.site-matcher-progress strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 10px;
  padding: 0 12px;
  border-radius: 999px;
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(219, 234, 254, 0.78);
}

.site-matcher-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.10), rgba(148, 163, 184, 0.22));
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.site-matcher-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #f59e0b);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}

.site-matcher-question h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 1.52rem;
  font-family: var(--site-matcher-serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.site-matcher-question p {
  max-width: 34rem;
  margin: 0 0 20px;
  color: #475569;
  font-weight: 400;
  line-height: 1.62;
}

.site-matcher-options {
  display: grid;
  gap: 14px;
}

.site-matcher-option {
  width: 100%;
  padding: 18px 18px 18px 20px;
  border: 1px solid var(--site-matcher-line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.site-matcher-option:hover,
.site-matcher-option:focus-visible {
  transform: translateY(-2px);
  border-color: #93c5fd;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 251, 235, 0.96) 100%);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.10);
  outline: none;
}

.site-matcher-option strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.03rem;
  letter-spacing: -0.015em;
}

.site-matcher-option span {
  color: #475569;
  font-weight: 400;
  line-height: 1.58;
}

.site-matcher-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.site-matcher-back,
.site-matcher-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-matcher-results h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 1.5rem;
  font-family: var(--site-matcher-serif);
  font-weight: 700;
}

.site-matcher-results > p {
  margin: 0 0 18px;
  color: #475569;
  font-weight: 400;
}

.site-matcher-result-list {
  display: grid;
  gap: 12px;
}

.site-matcher-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.site-matcher-card--best {
  border-color: #93c5fd;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.10);
}

.site-matcher-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.site-matcher-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 44px;
  padding: 0 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 800;
}

.site-matcher-brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.site-matcher-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-accent, #1d4ed8);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.site-matcher-brand-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-matcher-brand-logo-fallback {
  padding: 0 6px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.site-matcher-brand-copy {
  min-width: 0;
}

.site-matcher-card h4 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 1.2rem;
  font-family: var(--site-matcher-serif);
  font-weight: 700;
}

.site-matcher-card-kicker {
  display: inline-block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-matcher-card p {
  margin: 0;
  color: #475569;
  font-weight: 400;
}

.site-matcher-value-grid {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.site-matcher-value-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: #eff6ff;
}

.site-matcher-value-label {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-matcher-value-card strong {
  display: block;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
}

.site-matcher-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 10px;
}

.site-matcher-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-matcher-card-copy {
  margin-bottom: 10px;
}

.site-matcher-watchout {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.9rem;
  font-weight: 400;
}

.site-matcher-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.site-matcher-card-actions a,
.site-matcher-card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.site-matcher-card-actions .site-matcher-primary-link {
  background: #16a34a;
  color: #ffffff;
  flex: 1 0 auto;
  min-width: 220px;
}

.site-matcher-card-actions .site-matcher-secondary-link {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  flex: 0 0 auto;
}

.site-matcher-empty {
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  color: #475569;
}

.site-matcher-footer {
  margin-top: 16px;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.site-matcher-footer a {
  color: #1d4ed8;
}

@media (max-width: 900px) {
  .site-matcher-panel {
    padding: 22px;
  }
}

@media (max-width: 720px) {
  .site-matcher-teaser {
    padding: 18px;
    border-radius: 16px;
  }

  .site-matcher-launcher {
    right: 12px;
    bottom: 12px;
    padding: 0.78rem 0.9rem;
  }

  .site-matcher-launcher strong {
    max-width: 140px;
    line-height: 1.1;
  }

  .site-matcher-overlay {
    padding: 0;
    display: none;
    place-items: stretch;
    align-items: stretch;
    justify-items: stretch;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: none;
  }

  .site-matcher-overlay.is-open {
    display: block;
  }

  .site-matcher-modal {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    height: 100svh;
    max-height: 100svh;
    border-radius: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background:
      radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 28%),
      linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  }

  .site-matcher-panel {
    min-height: 100svh;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 24px);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  }

  .site-matcher-title {
    margin-right: 44px;
    margin-bottom: 16px;
    font-size: 1.48rem;
    line-height: 1;
  }

  .site-matcher-option span,
  .site-matcher-card p,
  .site-matcher-watchout,
  .site-matcher-value-card strong {
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .site-matcher-points li,
  .site-matcher-option,
  .site-matcher-value-card,
  .site-matcher-watchout,
  .site-matcher-card {
    border-radius: 12px;
  }

  .site-matcher-question h3,
  .site-matcher-results h3 {
    font-size: 1.34rem;
  }

  .site-matcher-question p {
    margin-bottom: 18px;
    font-size: 0.98rem;
  }

  .site-matcher-card-head {
    margin-bottom: 10px;
  }

  .site-matcher-brand-logo {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .site-matcher-card h4 {
    font-size: 1.06rem;
  }

  .site-matcher-card-actions a,
  .site-matcher-card-actions button,
  .site-matcher-back,
  .site-matcher-reset {
    width: 100%;
  }

  .site-matcher-card-actions .site-matcher-primary-link,
  .site-matcher-card-actions .site-matcher-secondary-link {
    flex: none;
    min-width: 0;
  }

  .site-matcher-actions,
  .site-matcher-card-actions {
    flex-direction: column;
  }

  .site-matcher-close {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    margin-bottom: 8px;
    z-index: 2;
    width: 44px;
    height: 44px;
  }

  .site-matcher-value-card {
    padding: 10px 12px;
  }

  .site-matcher-chip-row {
    gap: 6px;
  }

  .site-matcher-option {
    padding: 18px 16px;
  }
}
