:root {
  --bg: #fbfcf8;
  --bg-2: #f1f6ef;
  --card: #ffffff;
  --card-2: #f1f6ef;
  --text: #18211d;
  --muted: #657067;
  --sah-paper: #fbfcf8;
  --sah-ink: #18211d;
  --sah-muted: #657067;
  --sah-line: #d8dfd6;
  --line: #d8dfd6;
  --blue: #2964d9;
  --sky: #19a7ce;
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --teal: #0f766e;
  --max: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--sah-paper);
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(88, 199, 255, 0.08), transparent 28%),
    linear-gradient(225deg, rgba(255, 154, 106, 0.08), transparent 30%),
    linear-gradient(315deg, rgba(139, 124, 246, 0.06), transparent 36%),
    var(--sah-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(16, 32, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 28, 0.035) 1px, transparent 1px),
    linear-gradient(125deg, rgba(86, 214, 163, 0.08), transparent 26%),
    linear-gradient(245deg, rgba(139, 124, 246, 0.07), transparent 30%);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black, transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 16%, rgba(88, 199, 255, 0.1) 16% 22%, transparent 22% 100%),
    linear-gradient(62deg, transparent 0 58%, rgba(244, 201, 74, 0.12) 58% 63%, transparent 63% 100%),
    linear-gradient(152deg, transparent 0 70%, rgba(233, 95, 122, 0.08) 70% 76%, transparent 76% 100%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(16, 32, 28, 0.025) 31px 32px);
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateY(-140%);
  z-index: 5;
  border-radius: 10px;
  padding: 8px 12px;
  color: #07101d;
  background: var(--text);
}

.skip-link:focus { transform: translateY(0); }

.hero,
.section,
.footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.hero { padding: 14px 0 20px; }

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar {
  min-height: 58px;
  border-bottom: 1px solid rgba(184, 196, 184, 0.72);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--sah-ink);
  font-weight: 850;
  text-decoration: none;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 15px;
}

.brand-copy small {
  color: #2964d9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-logo::after {
  content: "";
  position: absolute;
  inset: -40% -65%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.72) 50%, transparent 60%);
  transform: translateX(-58%) rotate(8deg);
  pointer-events: none;
}

.controls {
  display: flex;
  align-items: end;
  gap: 10px;
}

.controls label span {
  color: var(--sah-muted);
}

label span,
.summary-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

select,
input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(22, 32, 29, 0.06);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.88fr);
  gap: 20px;
  align-items: stretch;
  padding: 26px 0 0;
}

.hero-copy,
.score-card,
.info-card,
.result-card,
details,
.bait-zone > div,
#dynamic-ad-bait {
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) padding-box,
    linear-gradient(145deg, rgba(15, 118, 110, 0.26), rgba(41, 100, 217, 0.2), rgba(215, 95, 69, 0.22)) border-box;
  box-shadow: 0 8px 20px rgba(22, 32, 29, 0.09);
}

.hero-copy {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: 22px;
  padding: 24px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 8% 20%, rgba(86, 214, 163, 0.18), transparent 28%),
    radial-gradient(ellipse at 45% 8%, rgba(139, 124, 246, 0.13), transparent 28%),
    radial-gradient(ellipse at 82% 56%, rgba(255, 154, 106, 0.16), transparent 30%);
  pointer-events: none;
}

.hero-copy > * {
  position: relative;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sky);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: 0; }
h1 { max-width: 13ch; margin-bottom: 14px; font-size: clamp(36px, 5vw, 56px); }
h2 { margin-bottom: 0; font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 19px; }

.lead {
  max-width: 64ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.scan-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.scan-path article {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(184, 196, 184, 0.9);
  border-radius: 16px;
  padding: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(246, 253, 249, 0.7)),
    radial-gradient(ellipse at 10% 0%, rgba(86, 214, 163, 0.18), transparent 52%);
}

.scan-path article::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.scan-path span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 12px;
  font-weight: 950;
}

.scan-path strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 14px;
}

.scan-path p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section-heading h2,
.section-head h2 {
  color: var(--sah-ink);
}

.section-heading p,
.section-head p,
.search span {
  color: var(--sah-muted);
}

.test-note {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(246, 253, 249, 0.7)),
    radial-gradient(ellipse at 12% 50%, rgba(86, 214, 163, 0.14), transparent 28%);
}

.note-intro {
  display: grid;
  gap: 6px;
}

.note-kicker {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: #084c46;
  background: rgba(86, 214, 163, 0.18);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.test-note p,
.note-callout p,
.note-rules p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.test-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.test-chips span {
  border: 1px solid rgba(184, 196, 184, 0.9);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--sah-ink);
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 850;
}

.note-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.82fr);
  gap: 12px;
  align-items: stretch;
}

.note-callout,
.note-rules {
  min-width: 0;
  border: 1px solid rgba(184, 196, 184, 0.9);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.note-callout {
  border-color: rgba(41, 100, 217, 0.28);
  background:
    linear-gradient(135deg, rgba(41, 100, 217, 0.10), transparent 58%),
    rgba(255, 255, 255, 0.82);
}

.note-rules {
  display: grid;
  gap: 10px;
}

.note-rules div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.note-rules span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  color: #084c46;
  background: rgba(86, 214, 163, 0.18);
  font-size: 11px;
  font-weight: 950;
}

.test-note strong,
.note-callout strong,
.note-rules strong {
  color: var(--text);
  font-size: 14px;
}

.test-note strong,
.note-callout strong {
  display: block;
  margin-bottom: 5px;
}

.note-rules strong {
  font-weight: 950;
}

.test-note a {
  width: fit-content;
  display: inline-flex;
  margin-top: 10px;
  color: var(--sky);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.test-note a:hover { color: var(--sah-ink); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 15px;
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 14px 26px rgba(41, 100, 217, 0.18);
}
.button.ghost,
.button.subtle {
  color: var(--sah-ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  box-shadow: 0 8px 20px rgba(22, 32, 29, 0.06);
}
.button:disabled { cursor: not-allowed; opacity: 0.62; }

.privacy-note,
.muted,
.section-heading p,
.info-card p,
details p,
.result-title span,
.result-detail {
  color: var(--muted);
}

.privacy-note { margin: 14px 0 0; }

.score-card {
  display: grid;
  gap: 14px;
  border-radius: 22px;
  padding: 18px;
}

.score-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 22px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 253, 249, 0.72)),
    radial-gradient(ellipse at 18% 50%, rgba(233, 95, 122, 0.10), transparent 32%);
}

.score-logo {
  position: relative;
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #f1f6ef);
  padding: 3px;
  box-shadow:
    0 0 0 6px rgba(239, 68, 68, 0.08),
    0 0 44px rgba(59, 130, 246, 0.34);
}

.score-logo img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
}

.score-brand strong,
.score-brand small {
  display: block;
}

.score-brand strong {
  font-size: 22px;
  line-height: 1.05;
}

.score-brand small {
  margin-top: 3px;
  color: var(--sky);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-row {
  display: grid;
  grid-template-columns: 134px 1fr;
  gap: 16px;
  align-items: center;
}

.score-ring {
  width: 126px;
  height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--card) 55%, transparent 57%),
    conic-gradient(var(--blue) calc(var(--score) * 1%), rgba(184, 196, 184, 0.58) 0);
}

.score-ring span { font-size: 36px; font-weight: 950; line-height: 1; }
.score-ring small { color: var(--muted); font-weight: 850; line-height: 1; }
.score-card strong { display: block; font-size: 22px; line-height: 1.15; }

.progress-box div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

progress {
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #e9efe7;
}

progress::-webkit-progress-bar { background: #e9efe7; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--teal), var(--blue)); }

.score-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.score-guide span {
  min-width: 0;
  border: 1px solid rgba(184, 196, 184, 0.9);
  border-radius: 13px;
  padding: 9px 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.score-guide strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 13px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.summary-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.summary-grid strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.section { padding: 24px 0; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading.compact {
  align-items: center;
}

.section-heading.compact p {
  max-width: 420px;
  margin: 0;
}

.search input { width: min(340px, 100%); }

.results-section { padding-top: 18px; }

.result-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}

.result-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(184, 196, 184, 0.9);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
}

.dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--muted);
}

.dot.blocked { background: var(--green); }
.dot.open { background: var(--red); }
.dot.warning { background: var(--amber); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result-card {
  position: relative;
  min-height: 128px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border-radius: 16px;
  padding: 14px;
}

.result-card::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--muted);
}

.result-card[data-status="blocked"]::before { background: var(--green); }
.result-card[data-status="open"]::before { background: var(--red); }
.result-card[data-status="warning"]::before { background: var(--amber); }

.result-card[data-status="blocked"] {
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.08), transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)) padding-box,
    linear-gradient(145deg, rgba(15, 118, 110, 0.22), rgba(41, 100, 217, 0.16), rgba(215, 95, 69, 0.16)) border-box;
}

.result-card[data-status="open"] {
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.08), transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)) padding-box,
    linear-gradient(145deg, rgba(15, 118, 110, 0.22), rgba(41, 100, 217, 0.16), rgba(215, 95, 69, 0.16)) border-box;
}

.badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--bg);
  background: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.badge.blocked { background: var(--green); }
.badge.open { background: var(--red); color: white; }
.badge.warning { background: var(--amber); }
.badge.pending { background: var(--line); color: var(--text); }

.result-title strong {
  display: block;
  margin: 8px 0 3px;
  font-size: 17px;
  line-height: 1.2;
}

.result-title span {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.result-detail {
  margin: 8px 0 0;
  font-size: 14px;
}

.weight {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

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

.info-card {
  border-radius: 16px;
  padding: 16px;
}

.info-card span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 10px;
  color: var(--sky);
  background: rgba(96, 165, 250, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.info-card h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.info-card p { margin-bottom: 0; }

.lab {
  border-block: 1px solid rgba(36, 54, 83, 0.72);
}

.bait-zone {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.bait-zone > div,
#dynamic-ad-bait {
  min-height: 54px;
  display: grid;
  place-items: center;
  border-style: dashed;
  border-radius: 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.dynamic-ad-host { padding: 0; }

#dynamic-ad-bait {
  width: 100%;
  min-height: 100%;
  border: 0;
  border-radius: inherit;
}

.faq {
  display: grid;
  gap: 10px;
}

details {
  border-radius: 14px;
  padding: 14px 16px;
}

summary { cursor: pointer; font-weight: 850; }
details p { margin: 10px 0 0; }

.footer {
  min-height: 78px;
  color: var(--sah-muted);
  border-top: 1px solid rgba(184, 196, 184, 0.72);
}

.footer a { color: #2964d9; }

:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.75);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .score-logo img {
    animation: logo-breathe 5.2s ease-in-out infinite;
  }

  .score-logo::after {
    animation: logo-sweep 4.8s ease-in-out infinite;
  }
}

@keyframes logo-breathe {
  0%,
  100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes logo-sweep {
  0%,
  36% { transform: translateX(-58%) rotate(8deg); opacity: 0; }
  48% { opacity: 0.9; }
  66%,
  100% { transform: translateX(58%) rotate(8deg); opacity: 0; }
}

@media (max-width: 980px) {
  .hero-grid,
  .results-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .score-card { max-width: none; }
  .bait-zone { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .hero, .section, .footer { width: min(calc(100% - 28px), var(--max)); }
  .topbar, .footer { align-items: stretch; flex-direction: column; }
  .controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }
  .hero-grid { padding-top: 16px; }
  .hero-copy, .score-card { padding: 16px; border-radius: 18px; }
  .score-brand { padding: 12px; }
  .score-logo { width: 74px; height: 74px; border-radius: 20px; }
  .score-brand strong { font-size: 19px; }
  .scan-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .scan-path article {
    border-radius: 14px;
    padding: 10px 8px 12px;
  }
  .scan-path span {
    width: 24px;
    height: 24px;
    margin-bottom: 7px;
    border-radius: 9px;
  }
  .scan-path strong {
    font-size: 12px;
  }
  .scan-path p {
    font-size: 11px;
    line-height: 1.25;
  }
  .note-split { grid-template-columns: 1fr; }
  .score-row { grid-template-columns: 112px 1fr; }
  .score-ring { width: 106px; height: 106px; }
  .score-ring span { font-size: 31px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: stretch; flex-direction: column; }
  .bait-zone { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: 34px; }
  .lead { font-size: 16px; }
  .button, select, input { width: 100%; }
}
