/* ================================================================
   AbuseBL Theme — Main Stylesheet
   ================================================================ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --color-primary:       #E63946;
  --color-primary-dark:  #c1121f;
  --color-primary-light: #ff6b6b;

  --color-navy:          #0d1b2a;
  --color-navy-mid:      #1b2d42;
  --color-navy-light:    #243447;

  --color-text:          #1a1a2e;
  --color-text-muted:    #5a6a7a;
  --color-text-light:    #8899aa;

  --color-bg:            #ffffff;
  --color-bg-light:      #f4f7fb;
  --color-bg-muted:      #edf2f7;

  --color-border:        #dde4ee;
  --color-border-light:  #eef2f8;

  --color-success:       #2d9e5f;
  --color-warning:       #e07e2a;
  --color-info:          #2a6ec8;

  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'SFMono-Regular', 'Consolas', monospace;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);

  --header-height: 68px;
  --container:     1200px;
}

/* ── Reset / Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* ── Container ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .12s, box-shadow .18s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(230,57,70,.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

.btn--full { width: 100%; justify-content: center; }
.btn--submit { min-width: 180px; }

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 2px 16px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.logo-name { color: #fff; }
.logo-tld  { color: var(--color-primary); }

.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s, background .15s;
  text-decoration: none !important;
}
.nav-item a:hover,
.nav-item.active a {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.nav-item a.nav-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 8px 18px;
}
.nav-item a.nav-cta:hover {
  background: var(--color-primary-dark);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ── Hero Section ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 60%, #1e3a5f 100%);
  padding: 80px 0 64px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(230,57,70,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230,57,70,.15);
  border: 1px solid rgba(230,57,70,.3);
  color: var(--color-primary-light);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary-light);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.hero-title .highlight {
  color: var(--color-primary-light);
}

.hero-description {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.72);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.stat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  min-width: 150px;
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}

/* ── Generic Section ───────────────────────────────────────────── */
.section {
  padding: 72px 0;
}

.bg-light {
  background: var(--color-bg-light);
}

.section-header {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ── Feature Grid ──────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(230,57,70,.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: .9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ── Steps ─────────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.step-number {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(230,57,70,.2);
  line-height: 1;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.step-content p {
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--color-border);
  align-self: center;
  flex-shrink: 0;
  margin-top: 0;
}

/* ── CTA Box ───────────────────────────────────────────────────── */
.section-cta {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 100%);
}

.cta-box {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.cta-box h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.cta-box p {
  color: rgba(255,255,255,.7);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── Page Hero ─────────────────────────────────────────────────── */
.page-hero {
  background: var(--color-navy);
  padding: 48px 0 44px;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.page-hero p {
  color: rgba(255,255,255,.68);
  font-size: 1.0625rem;
  max-width: 600px;
  line-height: 1.7;
}

.page-hero p a {
  color: var(--color-primary-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; }
.breadcrumb a:hover { color: rgba(255,255,255,.85); }

/* ── In-page Nav ───────────────────────────────────────────────── */
.inpage-nav-wrap {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: var(--header-height);
  z-index: 80;
}

.inpage-nav {
  overflow-x: auto;
  scrollbar-width: none;
}
.inpage-nav::-webkit-scrollbar { display: none; }

.inpage-nav ul {
  display: flex;
  gap: 0;
  white-space: nowrap;
  padding: 0;
}

.inpage-nav li a {
  display: block;
  padding: 14px 20px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  text-decoration: none;
}

.inpage-nav li a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ── Content Page Layout ───────────────────────────────────────── */
.content-page {
  padding: 56px 0 80px;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.content-main { min-width: 0; }

.content-section {
  margin-bottom: 72px;
}

.content-section:last-child { margin-bottom: 0; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-primary);
  background: rgba(230,57,70,.08);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.content-section h2 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.content-section h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 28px 0 12px;
}

.content-section p {
  font-size: .9375rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* ── Listing Source Cards ──────────────────────────────────────── */
.listing-sources {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.listing-source-card {
  display: flex;
  gap: 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-height) + 60px);
}

.source-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.source-icon--honeypot { background: rgba(230,57,70,.08); color: var(--color-primary); }
.source-icon--direct   { background: rgba(42,110,200,.08); color: var(--color-info); }
.source-icon--reports  { background: rgba(45,158,95,.08); color: var(--color-success); }

.source-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 10px;
}

.source-body p {
  font-size: .9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.source-body p:last-child { margin-bottom: 0; }

/* ── Callouts ──────────────────────────────────────────────────── */
.callout {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: .875rem;
  line-height: 1.6;
  margin-top: 16px;
}

.callout strong { display: inline; }

.callout--info    { background: rgba(42,110,200,.07); border-left: 3px solid var(--color-info); color: #1e4d99; }
.callout--warning { background: rgba(224,126,42,.07); border-left: 3px solid var(--color-warning); color: #7a4a10; }
.callout--neutral { background: var(--color-bg-muted); border-left: 3px solid var(--color-border); color: var(--color-text-muted); }
.callout--danger  { background: rgba(230,57,70,.07); border-left: 3px solid var(--color-primary); color: #7a1020; }
.callout--danger a { color: var(--color-primary-dark); font-weight: 600; }

/* ── Highlight Box ─────────────────────────────────────────────── */
.highlight-box {
  display: flex;
  gap: 16px;
  background: rgba(45,158,95,.06);
  border: 1px solid rgba(45,158,95,.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  align-items: flex-start;
  color: var(--color-success);
}

.highlight-box svg { flex-shrink: 0; margin-top: 2px; }

.highlight-box strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.highlight-box p {
  margin: 0;
  font-size: .9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.highlight-box--strict {
  background: rgba(42,110,200,.05);
  border-color: rgba(42,110,200,.2);
  color: var(--color-info);
}

/* ── Escalation Table ──────────────────────────────────────────── */
.escalation-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.escalation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}

.escalation-table th {
  background: var(--color-bg-muted);
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  color: var(--color-navy);
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--color-border);
}

.escalation-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.escalation-table tr:last-child td { border-bottom: none; }
.escalation-table tr:hover td { background: var(--color-bg-light); }

.badge { padding: 4px 10px; border-radius: 100px; font-size: .8rem; font-weight: 700; }
.badge--first  { background: rgba(45,158,95,.1);  color: var(--color-success); }
.badge--second { background: rgba(42,110,200,.1); color: var(--color-info); }
.badge--third  { background: rgba(224,126,42,.1); color: var(--color-warning); }
.badge--fourth { background: rgba(230,57,70,.1);  color: var(--color-primary-dark); }
.badge--perm   { background: #1a0a0b; color: #ff4d4d; border: 1px solid rgba(255,77,77,.35); }

/* ── Steps List ────────────────────────────────────────────────── */
.steps-list {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  margin: 20px 0;
}

.steps-list li {
  counter-increment: steps;
  position: relative;
  padding: 16px 20px 16px 56px;
  margin-bottom: 12px;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  font-size: .9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: .8125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.steps-list li strong { color: var(--color-navy); }

/* ── Policy List ───────────────────────────────────────────────── */
.policy-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.policy-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: .9375rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-light);
}
.policy-list li:last-child { border-bottom: none; }
.policy-list li svg { flex-shrink: 0; color: var(--color-success); margin-top: 3px; }
.policy-list li strong { color: var(--color-navy); }

/* ── Sidebar ───────────────────────────────────────────────────── */
.content-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 60px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget--highlight {
  background: var(--color-navy);
  border-color: var(--color-navy-light);
}

.sidebar-widget h3 {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 14px;
}

.sidebar-widget--highlight h3 { color: #fff; }

.quick-links {
  list-style: none;
  padding: 0;
}

.quick-links li { border-bottom: 1px solid var(--color-border-light); }
.quick-links li:last-child { border-bottom: none; }
.quick-links a {
  display: block;
  padding: 9px 0;
  font-size: .875rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color .15s;
}
.quick-links a:hover { color: var(--color-primary); }

.mini-escalation { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.mini-esc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9375rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

.mini-badge {
  min-width: 44px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 800;
}
.mini-badge--1    { background: rgba(45,158,95,.25); color: #7fffc4; }
.mini-badge--2    { background: rgba(42,110,200,.25); color: #93c4ff; }
.mini-badge--3    { background: rgba(224,126,42,.25); color: #ffd08a; }
.mini-badge--4    { background: rgba(230,57,70,.25);  color: #ffb3b3; }
.mini-badge--perm { background: rgba(255,77,77,.15); color: #ff4d4d; border: 1px solid rgba(255,77,77,.3); }

.widget-note {
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
  margin-top: 4px;
}
.widget-note strong { color: rgba(255,255,255,.8); }

.sidebar-widget p {
  font-size: .875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ── Contact Page ──────────────────────────────────────────────── */
.contact-section { padding: 64px 0 80px; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* ── Form ──────────────────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form { display: flex; flex-direction: column; gap: 24px; }

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-navy);
}

.required {
  color: var(--color-primary);
  margin-left: 2px;
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-text-light); }

.form-group textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

.form-hint {
  font-size: .8125rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  padding-right: 40px;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.form-group--captcha { align-items: flex-start; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border-light);
}

.form-policy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .8125rem;
  color: var(--color-text-light);
  line-height: 1.5;
  max-width: 360px;
}

.form-policy-note svg { flex-shrink: 0; margin-top: 2px; color: var(--color-text-light); }

/* ── Form Success ──────────────────────────────────────────────── */
.form-success {
  text-align: center;
  padding: 48px 24px;
}
.form-success svg {
  color: var(--color-success);
  margin: 0 auto 20px;
}
.form-success h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}
.form-success p {
  color: var(--color-text-muted);
  font-size: .9375rem;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto 28px;
}

/* ── Contact Info Cards ────────────────────────────────────────── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.info-card h3 {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.info-card p {
  font-size: .875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.info-card a {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-navy);
  padding: 48px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.4);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.footer-nav a {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .15s;
}
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom p {
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
}

.footer-disclaimer {
  margin-top: 6px;
}

/* ── Code Blocks ───────────────────────────────────────────────── */
.code-block-wrap {
  position: relative;
  margin: 16px 0 24px;
}

pre.code-block {
  background: #0d1b2a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 0;
}

pre.code-block code {
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.75;
  color: #cdd6f4;
  white-space: pre;
}

/* Syntax highlight helpers */
pre.code-block .cm  { color: #6c7a96; font-style: italic; }  /* comment */
pre.code-block .hl  { color: #a6e3a1; }                       /* highlight / key line */
pre.code-block .str { color: #f9e2af; }                       /* string */
pre.code-block .kw  { color: #89dceb; }                       /* keyword / bool */
pre.code-block .num { color: #fab387; }                       /* number */

/* ── Config Notes ──────────────────────────────────────────────── */
.config-notes {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 20px 0 24px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.config-note {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 18px;
  font-size: .875rem;
  line-height: 1.55;
  border-bottom: 1px solid var(--color-border-light);
}
.config-note:last-child { border-bottom: none; }
.config-note:nth-child(even) { background: var(--color-bg-light); }

.config-note code {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: .8rem;
  background: rgba(230,57,70,.07);
  color: var(--color-primary-dark);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.config-note span { color: var(--color-text-muted); }

/* ── DNSBL Overview Cards ──────────────────────────────────────── */
.dnsbl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0 20px;
}

.dnsbl-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid;
}

.dnsbl-card--ip {
  background: rgba(42,110,200,.04);
  border-color: rgba(42,110,200,.2);
}

.dnsbl-card--url {
  background: rgba(45,158,95,.04);
  border-color: rgba(45,158,95,.2);
}

.dnsbl-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.dnsbl-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dnsbl-card--ip  .dnsbl-icon { background: rgba(42,110,200,.12); color: var(--color-info); }
.dnsbl-card--url .dnsbl-icon { background: rgba(45,158,95,.12);  color: var(--color-success); }

.dnsbl-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.dnsbl-hostname {
  font-family: var(--font-mono);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--color-navy);
}

.dnsbl-card p {
  font-size: .875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.dnsbl-return {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: var(--color-text-muted);
  background: var(--color-bg-muted);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.return-label { font-weight: 600; }

.dnsbl-return code {
  font-family: var(--font-mono);
  font-size: .8rem;
  background: rgba(230,57,70,.08);
  color: var(--color-primary-dark);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

/* ── Hostname list (sidebar) ───────────────────────────────────── */
.hostname-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

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

.hostname-item code {
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--color-navy);
}

.hostname-tag {
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 100px;
}

.hostname-tag--ip  { background: rgba(42,110,200,.1); color: var(--color-info); }
.hostname-tag--url { background: rgba(45,158,95,.1);  color: var(--color-success); }

/* ── Inline code in prose ──────────────────────────────────────── */
.content-section code,
.content-main p code,
.content-main li code {
  font-family: var(--font-mono);
  font-size: .8rem;
  background: rgba(230,57,70,.07);
  color: var(--color-primary-dark);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* ── Prose (default template) ──────────────────────────────────── */
.prose { max-width: 720px; }
.prose h1, .prose h2, .prose h3 { color: var(--color-navy); margin: 1.5em 0 .75em; }
.prose p  { color: var(--color-text-muted); line-height: 1.75; margin-bottom: 1em; }
.prose a  { color: var(--color-primary); }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1em; }
.prose li { color: var(--color-text-muted); margin-bottom: .4em; }

/* ── Scroll margin for anchors ─────────────────────────────────── */
[id] {
  scroll-margin-top: calc(var(--header-height) + 64px);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  .content-sidebar {
    position: static;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-info {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .info-card { flex: 1; min-width: 240px; }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-navy);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 12px 16px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }

  .site-nav.is-open { display: block; }

  .site-header { position: relative; }

  .nav-list { flex-direction: column; gap: 4px; }
  .nav-item a { padding: 12px 16px; border-radius: var(--radius-md); }

  .hero { padding: 56px 0 48px; }
  .hero-stats { gap: 12px; }
  .stat-card { min-width: 130px; padding: 16px 20px; }

  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; }

  .listing-source-card { flex-direction: column; }

  .contact-form-wrap { padding: 24px; }

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

  .footer-inner { gap: 24px; }
  .footer-nav ul { gap: 4px 16px; }

  .inpage-nav-wrap { position: static; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .hero-title { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
