:root {
  --text: #171717;
  --muted: #6d6d6d;
  --faint: #969696;
  --bg: #fbfaf7;
  --panel: #ffffff;
  --line: #e6e1dc;
  --line-strong: #d8d0c8;
  --red: #e24b4a;
  --red-soft: #fcebeb;
  --red-text: #791f1f;
  --amber: #ba7517;
  --amber-soft: #faeeda;
  --green: #3b6d11;
  --green-soft: #eaf3de;
  --blue: #185fa5;
  --blue-soft: #e6f1fb;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(16px);
}

.brand,
nav,
.trust-strip,
.score-footer,
footer {
  display: flex;
  align-items: center;
}

.brand {
  font-size: 18px;
  font-weight: 700;
}

.brand-alert {
  color: var(--red);
}

nav {
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.header-cta,
.search-row button,
.score-footer button,
.footer-cta {
  border: 0;
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.header-cta {
  padding: 8px 16px;
  font-size: 13px;
}

.hero {
  padding: 52px 24px 26px;
  text-align: center;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 650px;
  margin: 0 auto 12px;
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 em {
  color: var(--red);
  font-style: normal;
}

.hero-copy {
  max-width: 650px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.search-panel {
  max-width: 560px;
  margin: 0 auto;
}

.search-row {
  display: flex;
  gap: 8px;
}

input,
button {
  min-height: 46px;
}

input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.search-row button {
  padding: 0 20px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.trust-strip {
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}

.trust-strip span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 650;
}

.score-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 46px;
}

.score-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(23, 23, 23, 0.06);
}

.score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.score-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.score-header p {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 12px;
}

.grade {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius);
  background: var(--red-soft);
  color: var(--red);
  font-size: 24px;
  line-height: 1;
}

.red-flag-bar {
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  background: var(--red-soft);
}

.red-flag-bar span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(226, 75, 74, 0.45);
  border-radius: 50%;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.red-flag-bar p {
  margin: 0;
  color: var(--red-text);
  font-size: 13px;
  line-height: 1.55;
}

.layers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 20px;
}

.layer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.layer-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.danger-icon {
  background: var(--red-soft);
  color: var(--red);
}

.amber-icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.green-icon {
  background: var(--green-soft);
  color: var(--green);
}

.blue-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.layer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.layer strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.score-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.score-footer span {
  color: var(--faint);
  font-size: 12px;
}

.score-footer button {
  flex: 0 0 auto;
  padding: 8px 16px;
  font-size: 13px;
}

.score-footer button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.problem-band,
.report-preview,
.signals,
.sources,
.pricing,
.audience,
.faq {
  padding: 66px 24px;
}

.problem-band,
.section-heading,
.revenue {
  max-width: 1060px;
  margin: 0 auto;
}

.problem-band {
  display: grid;
  grid-template-columns: 0.95fr 0.8fr;
  gap: 44px;
  border-top: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: 0;
}

.problem-band > p,
.revenue-copy p:last-child {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.section-heading {
  margin-bottom: 28px;
}

.report-grid,
.signal-list,
.source-grid,
.tier-grid,
.audience-grid {
  display: grid;
  max-width: 1060px;
  margin: 0 auto;
  gap: 12px;
}

.report-grid {
  grid-template-columns: 1.2fr repeat(3, 1fr);
}

.report-card,
.source-grid article,
.tier-card,
.audience article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.report-card {
  min-height: 210px;
}

.primary-card {
  background: var(--text);
  color: #fff;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 750;
}

.card-topline strong {
  color: #fff;
  font-size: 42px;
  line-height: 1;
}

.report-card h3,
.audience h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  line-height: 1.2;
}

.report-card p,
.audience p,
.source-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.primary-card p {
  color: rgba(255, 255, 255, 0.72);
}

.meter {
  height: 8px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.risk-tag,
.audience span,
.source-grid span,
.tier-name {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 0;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.danger {
  background: var(--red-soft);
  color: var(--red);
}

.calm {
  background: var(--blue-soft);
  color: var(--blue);
}

.signals {
  max-width: none;
  background: #191919;
  color: #fff;
}

.signals .section-heading,
.signals .signal-list {
  max-width: 1060px;
}

.signals .section-kicker {
  color: #ff7a78;
}

.signal-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.13);
}

.signal-list div {
  display: grid;
  gap: 26px;
  min-height: 145px;
  padding: 18px;
  background: #191919;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 700;
}

.signal-list span {
  color: #ff7a78;
  font-size: 12px;
}

.source-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.source-grid article {
  min-height: 132px;
  border: 0;
  border-radius: 0;
}

.source-grid article span {
  margin-bottom: 14px;
}

.pricing {
  background: #f4f1ed;
}

.tier-grid {
  grid-template-columns: repeat(4, 1fr);
}

.tier-card {
  min-height: 340px;
}

.featured-tier {
  border-color: rgba(226, 75, 74, 0.5);
  box-shadow: 0 18px 34px rgba(226, 75, 74, 0.12);
}

.tier-card strong {
  display: block;
  margin: 18px 0 4px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.tier-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tier-card ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tier-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.tier-card li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.prose h1 {
  max-width: none;
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.prose-meta {
  margin: 0 0 40px;
  color: var(--faint);
  font-size: 13px;
}

.prose h2 {
  max-width: none;
  margin: 40px 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.prose h3 {
  margin: 24px 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.prose p,
.prose li {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.prose ul {
  padding-left: 20px;
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
}

@media (max-width: 680px) {
  .prose {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.faq {
  background: #f4f1ed;
}

.faq .section-heading,
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-list {
  display: grid;
  gap: 2px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.faq-list > div {
  padding: 22px 24px;
  background: var(--panel);
}

.faq-list dt {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.faq-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.audience-grid {
  grid-template-columns: repeat(3, 1fr);
}

footer {
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

footer nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

footer nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.footer-cta {
  padding: 9px 14px;
  font-size: 13px;
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .problem-band,
  .report-grid,
  .signal-list,
  .source-grid,
  .tier-grid,
  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .problem-band {
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 16px;
  }

  .hero {
    padding: 44px 16px 22px;
  }

  .search-row,
  .score-footer {
    flex-direction: column;
  }

  .search-row button,
  .score-footer button {
    width: 100%;
  }

  .score-section,
  .problem-band,
  .report-preview,
  .signals,
  .sources,
  .pricing,
  .audience,
  .faq {
    padding-left: 16px;
    padding-right: 16px;
  }

  .problem-band,
  .report-grid,
  .signal-list,
  .source-grid,
  .tier-grid,
  .audience-grid,
  .layers {
    grid-template-columns: 1fr;
  }

  .score-footer {
    align-items: stretch;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
