:root {
  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --ink: #10233f;
  --ink-soft: #4b5d76;
  --card: #ffffff;
  --line: #d9e2ee;
  --brand: #116449;
  --brand-deep: #0d533c;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --warn: #a16207;
  --danger: #b42318;
  --ok: #166534;
  --shadow: 0 10px 30px rgba(16, 35, 63, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.5;
  background: var(--bg);
}

h1,
h2,
h3,
h4 {
  font-family: Outfit, "Segoe UI", sans-serif;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(16, 35, 63, 0.08);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  display: block;
  width: 36px;
  height: 36px;
}

.brand-text {
  font-family: Outfit, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

.hero {
  padding: 98px 0 72px;
}

.hero-grid {
  display: block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.9vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 14ch;
}

.subheadline {
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  max-width: 72ch;
}

.cta-row {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.trust-banner-wrap {
  margin-top: 28px;
  margin-bottom: 28px;
}

.mission-wrap {
  margin-bottom: 28px;
}

.mission-card {
  border: 1px solid #d3dde9;
  border-left: 5px solid #8ebba8;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
  box-shadow: 0 8px 24px rgba(16, 35, 63, 0.06);
  padding: 18px 20px;
}

.mission-card h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.48rem);
  margin-bottom: 10px;
}

.mission-card p {
  color: var(--ink-soft);
  max-width: 82ch;
}

.mission-card p + p {
  margin-top: 11px;
}

.mission-note {
  border-top: 1px solid #dbe5f0;
  padding-top: 11px;
  font-weight: 600;
  color: #224465;
}

.trust-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid #cfe2da;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fcf9 0%, #f1f8f4 100%);
  box-shadow: 0 8px 22px rgba(16, 35, 63, 0.06);
}

.trust-banner-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cfe2da;
}

.trust-banner h2 {
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  margin-bottom: 7px;
}

.trust-banner p {
  color: var(--ink-soft);
  max-width: 78ch;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  padding: 12px 20px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 100, 73, 0.28);
}

.btn-ghost {
  border-color: var(--line);
  background: #fff;
}

.btn-small {
  padding: 10px 16px;
  font-size: 0.95rem;
  border-color: var(--line);
  background: #fff;
}

.checks-wrap {
  margin-top: 44px;
}

.checks-wrap h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  margin-bottom: 16px;
}

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

.check-card,
.scam-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.check-card:hover,
.scam-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16, 35, 63, 0.1);
}

.check-card h3,
.scam-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.check-card p,
.scam-card p {
  color: var(--ink-soft);
}

.section {
  padding: 62px 0;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid #ebf0f7;
  border-bottom: 1px solid #ebf0f7;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--ink-soft);
}

.scanner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.scanner-form,
.results {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.results {
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.results-ready {
  border-color: #bdd0e7;
  box-shadow: 0 14px 34px rgba(16, 35, 63, 0.11);
  transform: translateY(-1px);
}

.results-ready .metric,
.results-ready .panel,
.results-ready .hint {
  animation: resultFadeIn 360ms ease both;
  animation-delay: var(--reveal-delay, 0ms);
}

.scanner-form {
  display: grid;
  row-gap: 10px;
}

.scanner-form label {
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 6px;
}

.scanner-form label:first-of-type {
  margin-top: 0;
}

.scanner-form input,
.scanner-form textarea {
  width: 100%;
  border: 1px solid #c7d4e4;
  border-radius: 10px;
  padding: 12px 13px;
  line-height: 1.45;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
}

.scanner-form input:focus,
.scanner-form textarea:focus {
  outline: 3px solid rgba(17, 100, 73, 0.18);
  border-color: #8ebba8;
}

.scanner-form textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.5;
}

.sample-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sample-actions .btn {
  min-height: 40px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.results h3 {
  margin-bottom: 8px;
}

.hint {
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fdfefe;
}

.metric-label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.metric strong {
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1.2rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 13px;
}

.panel + .panel {
  margin-top: 10px;
}

#brokerWarning {
  margin-bottom: 10px;
  font-weight: 600;
}

.warning-high {
  background: #fff4f4;
  border-color: #f2c5c3;
}

.warning-medium {
  background: #fff9ec;
  border-color: #f4dfaa;
}

.warning-low {
  background: #f0fbf3;
  border-color: #b9e7c8;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 32px;
  border-radius: 999px;
  font-size: 0.94rem;
  border: 1px solid transparent;
}

.risk-low {
  color: var(--ok);
  background: #ecfdf3;
  border-color: #b7ebca;
}

.risk-moderate {
  color: var(--warn);
  background: #fff8e6;
  border-color: #f4dfaa;
}

.risk-high {
  color: var(--danger);
  background: #fff1f1;
  border-color: #f5c4c1;
}

.panel h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
}

#flagsList {
  list-style: none;
  padding-left: 0;
}

.panel li + li {
  margin-top: 6px;
}

.flag-item {
  border-left: 4px solid transparent;
  border-radius: 6px;
  padding: 7px 10px;
  background: #f8fbff;
  margin-bottom: 8px;
}

.flag-item strong {
  color: #123351;
}

.flag-high {
  border-left-color: #d94f4a;
  background: #fff5f5;
}

.flag-moderate {
  border-left-color: #c08a14;
  background: #fffaf0;
}

.recommendation-text {
  color: var(--ink-soft);
  line-height: 1.6;
}

@keyframes resultFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.waitlist {
  padding-top: 40px;
}

.waitlist-wrap {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.waitlist-wrap h2 {
  margin-bottom: 8px;
}

.waitlist-wrap p {
  color: var(--ink-soft);
}

.tally-embed-wrap {
  width: 100%;
}

.tally-embed-wrap iframe {
  display: block;
  width: 100%;
  border: none;
}

.site-footer {
  padding: 34px 0 44px;
  background: #f8fafc;
  border-top: 1px solid #e4ebf4;
}

.footer-wrap {
  display: grid;
  gap: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: #365a7a;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.site-footer p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 90ch;
}

.guide-quicknav {
  margin: 8px 0 24px;
}

.copyright {
  font-size: 0.86rem;
  color: #66788f;
}

.analytics-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(16, 35, 63, 0.18);
}

.analytics-consent p {
  color: var(--ink-soft);
}

.analytics-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.analytics-consent-actions .btn {
  padding: 9px 13px;
}

.legal-page {
  padding: 84px 0 64px;
}

.legal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  font-size: clamp(2rem, 4.8vw, 3rem);
  margin-bottom: 12px;
}

.legal-card .legal-intro {
  color: var(--ink-soft);
  font-size: 1.04rem;
  margin-bottom: 22px;
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  border: 1px solid #cfe2da;
  border-radius: 999px;
  padding: 6px 12px;
  background: #f2faf6;
  color: #0d533c;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-card h2 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.legal-card p,
.legal-card li {
  color: var(--ink-soft);
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
}

.legal-card li + li {
  margin-top: 6px;
}

.legal-note {
  border-left: 4px solid #c08a14;
  background: #fffaf0;
  border-radius: 8px;
  padding: 10px 12px;
}

.thanks-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
}

.thanks-page {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 64px 0;
}

.thanks-wrap {
  display: flex;
  justify-content: center;
}

.thanks-card {
  width: min(100%, 720px);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.thanks-mark {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid #cfe2da;
  border-radius: 999px;
  background: #f2faf6;
}

.thanks-mark img {
  display: block;
}

.thanks-card h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
}

.thanks-copy {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
}

.thanks-contact {
  margin: 20px 0 30px;
  color: var(--ink-soft);
}

.thanks-contact a {
  color: var(--brand-deep);
  font-weight: 700;
}

.status-high {
  color: var(--danger);
}

.status-medium {
  color: var(--warn);
}

.status-low {
  color: var(--ok);
}

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

@media (max-width: 960px) {
  .checks-grid,
  .scam-grid,
  .scanner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 70px;
    padding-bottom: 58px;
  }

  .scanner-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .checks-grid,
  .scam-grid {
    grid-template-columns: 1fr;
  }

  .sample-actions .btn {
    width: 100%;
  }

  .legal-page {
    padding-top: 74px;
  }

  .thanks-page {
    place-items: start center;
    padding: 40px 0;
  }

  .footer-links {
    gap: 8px 12px;
  }

  .trust-banner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mission-card {
    padding: 16px;
  }

  .trust-banner-icon {
    width: 28px;
    height: 28px;
  }

  .hero h1 {
    max-width: none;
  }

  .nav-wrap {
    min-height: 66px;
  }

  .tally-embed-wrap {
    max-width: 100%;
  }

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