/* ===== BRAND TOKENS ===== */
:root {
  --teal-deep:   #1a5f6e;
  --teal-mid:    #2a8599;
  --teal-light:  #4ab8cc;
  --sage:        #5c8a6f;
  --sand:        #e8dfd0;
  --mist:        #f0f7f9;
  --cloud:       #ffffff;
  --slate:       #1e3340;
  --steel:       #4a6474;
  --border:      #d6e8ed;

  --critical:    #c0392b;
  --warning:     #d4740a;
  --pass:        #2e7d52;

  --font-display: 'DM Serif Display', serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;
}

/* ===== BASE ===== */
html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--mist);
  color: var(--slate);
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
}

a {
  color: var(--teal-mid);
  text-decoration: none;
}

a:hover {
  color: var(--teal-deep);
  text-decoration: underline;
}

/* ===== PUBLIC HEADER ===== */
.pub-header {
  background: var(--cloud);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.pub-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--teal-deep);
  letter-spacing: -0.01em;
}
.pub-nav-logo:hover { color: var(--teal-mid); text-decoration: none; }

.pub-nav-icon {
  width: 28px; height: 28px;
  background: rgba(26,95,110,0.08);
  border: 1px solid rgba(26,95,110,0.15);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}

.pub-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pub-nav-link {
  font-size: 0.875rem;
  color: var(--steel);
  text-decoration: none;
  transition: color 0.15s;
}
.pub-nav-link:hover { color: var(--teal-deep); text-decoration: none; }

.pub-nav-btn {
  background: var(--teal-deep) !important;
  border: none !important;
  color: white !important;
  font-size: 0.82rem !important;
  padding: 6px 16px !important;
  border-radius: 6px !important;
}
.pub-nav-btn:hover {
  background: var(--teal-mid) !important;
  color: white !important;
}

/* ===== LEGACY PUBLIC HEADER / NAV (keep for fallback) ===== */
.site-header {
  background: var(--cloud);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .navbar {
  padding: 12px 0;
}

.navbar-brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--teal-deep);
}

.navbar-brand-link:hover {
  color: var(--teal-mid);
  text-decoration: none;
}

.logo-mark {
  width: 28px;
  height: 28px;
  color: var(--teal-deep);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--teal-deep);
  letter-spacing: -0.01em;
}

/* ===== AUTH SIDEBAR LAYOUT ===== */
:root {
  --sidebar-width: 220px;
}

/* Sidebar shell */
.auth-sidebar {
  width: var(--sidebar-width) !important;
  background: var(--slate);
  border-right: none;
  display: flex;
  flex-direction: column;
}

/* Desktop: fixed left panel — suppress offcanvas backdrop and body-overflow lock */
@media (min-width: 992px) {
  .auth-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh;
    transform: none !important;
    visibility: visible !important;
  }

  .auth-content {
    margin-left: var(--sidebar-width);
  }

  /* Bootstrap adds a backdrop + overflow:hidden to body when offcanvas opens.
     On desktop the sidebar is always visible so we suppress both. */
  .offcanvas-backdrop {
    display: none !important;
  }

  body.offcanvas-open {
    overflow: auto !important;
  }
}

/* Sidebar inner layout */
.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

/* Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 16px 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}

.sidebar-logo .brand-name,
.auth-sidebar .brand-name {
  color: var(--cloud);
  font-weight: 600;
  font-size: 1rem;
}

.auth-sidebar .logo-mark {
  color: var(--teal-light);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Nav links */
.sidebar-nav {
  flex: 1;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.sidebar-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.08);
  color: var(--cloud);
  text-decoration: none;
}

.sidebar-link:hover svg {
  opacity: 1;
}

.sidebar-link.active {
  background: rgba(74,184,204,0.18);
  color: var(--teal-light);
  font-weight: 500;
}

.sidebar-link.active svg {
  opacity: 1;
}

/* Footer: Account + Sign Out */
.sidebar-footer {
  padding: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-signout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}

.sidebar-signout:hover {
  background: rgba(255,255,255,0.08);
  color: var(--cloud);
}

/* Mobile top bar */
.auth-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--slate);
  padding: 10px 16px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.auth-topbar .navbar-brand-link {
  color: var(--cloud);
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-topbar .logo-mark {
  color: var(--teal-light);
  width: 20px;
  height: 20px;
}

.auth-topbar .brand-name {
  color: var(--cloud);
  font-weight: 600;
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.sidebar-toggle-btn:hover {
  color: var(--cloud);
}

/* offcanvas close button area */
.auth-sidebar .offcanvas-header {
  padding: 12px 16px 0;
}

/* Main content */
.auth-main {
  padding: 32px 0 64px;
  min-height: calc(100vh - 120px);
}

/* ===== LEADS TABLE — MOBILE STACKING ===== */
@media (max-width: 767px) {
  .leads-table thead {
    display: none;
  }

  .leads-table tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--cloud);
  }

  .leads-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
  }

  .leads-table td:last-child {
    border-bottom: none;
  }

  .leads-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--steel);
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
  }

  .leads-table .table-card {
    border: none;
    box-shadow: none;
    background: transparent;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--slate);
  color: rgba(255,255,255,0.6);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--teal-light);
  text-decoration: none;
}

.footer-sep {
  margin: 0 10px;
  opacity: 0.4;
}

.footer-copy {
  margin: 0;
  opacity: 0.5;
  font-size: 0.8rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background-color: var(--teal-deep);
  border-color: var(--teal-deep);
  color: var(--cloud);
  font-weight: 500;
  border-radius: 6px;
  padding: 10px 24px;
  transition: all 0.2s;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--teal-mid);
  border-color: var(--teal-mid);
  color: var(--cloud);
}

.btn-outline-primary {
  border-color: var(--teal-deep);
  color: var(--teal-deep);
}

.btn-outline-primary:hover {
  background-color: var(--teal-deep);
  border-color: var(--teal-deep);
  color: var(--cloud);
}

/* ===== FORM CONTROLS ===== */
.form-control,
.form-control-lg {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--cloud);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-control-lg:focus {
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(42, 133, 153, 0.15);
  outline: none;
}

.form-label {
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-check-label {
  font-size: 0.875rem;
  color: var(--steel);
  line-height: 1.5;
}

.form-check-label a {
  color: var(--teal-mid);
}

.form-check-input:checked {
  background-color: var(--teal-deep);
  border-color: var(--teal-deep);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(42, 133, 153, 0.15);
}

/* ===== CARDS ===== */
.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cloud);
  box-shadow: 0 1px 4px rgba(30, 51, 64, 0.06);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--slate);
}

/* ===== SEVERITY BADGES ===== */
.badge-critical {
  background-color: var(--critical);
  color: white;
}

.badge-warning {
  background-color: var(--warning);
  color: white;
}

.badge-pass {
  background-color: var(--pass);
  color: white;
}

.badge-info {
  background-color: var(--teal-mid);
  color: white;
}

/* ===== SCORE DISPLAY ===== */
.score-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  border: 6px solid;
}

.score-ring.score-red   { color: var(--critical); border-color: var(--critical); background: rgba(192,57,43,0.06); }
.score-ring.score-amber { color: var(--warning);  border-color: var(--warning);  background: rgba(212,116,10,0.06); }
.score-ring.score-green { color: var(--pass);     border-color: var(--pass);     background: rgba(46,125,82,0.06); }

/* ===== MODULE BADGES ===== */
.module-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.module-badge.pass  { background: rgba(46,125,82,0.1);  color: var(--pass); }
.module-badge.fail  { background: rgba(192,57,43,0.1);  color: var(--critical); }
.module-badge.skip  { background: rgba(74,100,116,0.1); color: var(--steel); }

/* ===== LANDING PAGE — HERO ===== */
.lp-hero {
  background: linear-gradient(165deg, #e9f4f6 0%, #f4fafb 52%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px 96px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.lp-hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -5%;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,184,204,0.22) 0%, transparent 68%);
  pointer-events: none;
}
.lp-hero::after {
  content: '';
  position: absolute;
  bottom: -15%; left: 8%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92,138,111,0.16) 0%, transparent 68%);
  pointer-events: none;
}
/* Two-column hero: copy left, illustration right (collapses to centered stack on mobile) */
.lp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  text-align: left;
}
.lp-hero-content {
  max-width: 560px;
}
.lp-hero-inner .lp-hero-sub { margin-left: 0; margin-right: 0; }
.lp-hero-inner .lp-hero-ctas,
.lp-hero-inner .lp-trust-row { justify-content: flex-start; }
.lp-hero-visual {
  position: relative;
  z-index: 1;
}
.lp-hero-visual img {
  display: block;
  width: 100%;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(26,95,110,0.16);
}
.lp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74,184,204,0.18);
  border: 1px solid rgba(74,184,204,0.35);
  border-radius: 999px;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 20px;
}
.lp-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--slate);
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 400;
}
.lp-hero h1 em {
  font-style: italic;
  color: var(--teal-mid);
}
.lp-hero-sub {
  font-size: 1.05rem;
  color: var(--steel);
  max-width: 500px;
  margin: 0 auto 32px;
  font-weight: 300;
  line-height: 1.65;
}
.lp-hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.lp-btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border: 1.5px solid rgba(26,95,110,0.3);
}
.lp-btn-ghost:hover {
  background: rgba(26,95,110,0.06);
  color: var(--teal-deep);
}
.lp-trust-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.lp-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--steel);
}
.lp-trust-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-mid);
  flex-shrink: 0;
}

/* ===== LANDING PAGE — MODULES ===== */
.lp-modules {
  background: var(--mist);
  padding: 72px 0;
}
.lp-modules h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--slate);
  text-align: center;
  margin-bottom: 8px;
  font-weight: 400;
}
.lp-modules-sub {
  text-align: center;
  font-size: 0.95rem;
  color: var(--steel);
  margin-bottom: 48px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.lp-module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lp-module-card {
  background: var(--cloud);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(26,95,110,0.07);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.lp-module-card:hover {
  box-shadow: 0 4px 16px rgba(26,95,110,0.12);
  transform: translateY(-2px);
}
.lp-mod-icon {
  width: 40px; height: 40px;
  background: rgba(26,95,110,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.lp-mod-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate);
  margin-bottom: 6px;
}
.lp-mod-desc {
  font-size: 0.8rem;
  color: var(--steel);
  line-height: 1.55;
  margin-bottom: 12px;
}
.lp-mod-chip {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
}
.lp-mod-chip.core     { background: rgba(26,95,110,0.1);  color: var(--teal-deep); }
.lp-mod-chip.optional { background: rgba(92,138,111,0.1); color: var(--sage); }

/* ===== LANDING PAGE — SCAN FORM ===== */
.lp-scan-section {
  background: var(--cloud);
  padding: 72px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.lp-scan-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--slate);
  margin-bottom: 8px;
  font-weight: 400;
}
.lp-scan-sub {
  font-size: 0.95rem;
  color: var(--steel);
  margin-bottom: 32px;
}
.lp-scan-form {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.lp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.lp-consent-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  background: var(--mist);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.lp-consent-box label {
  font-size: 0.8rem;
  color: var(--steel);
  line-height: 1.55;
}
.lp-consent-box a { color: var(--teal-mid); }
.lp-scan-btn {
  align-self: flex-start;
  padding: 12px 28px !important;
  font-size: 0.95rem;
}

/* ===== LEGACY HERO (keep for fallback) ===== */
.hero {
  background: linear-gradient(135deg, var(--teal-deep) 0%, #0f3d48 100%);
  color: var(--cloud);
  padding: 80px 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subheadline {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 300;
}

.hero-trust-signal {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 32px;
}

.hero-illustration {
  width: 100%;
  max-width: 340px;
  height: auto;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* Section layout */
.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--slate);
  text-align: center;
  margin-bottom: 48px;
}

.how-it-works {
  padding: 64px 0;
  background: var(--cloud);
}

.step-number {
  width: 52px;
  height: 52px;
  background: var(--teal-deep);
  color: var(--cloud);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 auto 16px;
  font-family: var(--font-display);
}

.how-it-works h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 8px;
}

.how-it-works p {
  font-size: 0.95rem;
  color: var(--steel);
}

.what-we-check {
  padding: 64px 0;
  background: var(--mist);
}

.module-card {
  background: var(--cloud);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 24px;
  transition: all 0.2s ease;
  height: 100%;
}

.module-card:hover {
  border-color: var(--teal-mid);
  box-shadow: 0 4px 16px rgba(42, 133, 153, 0.12);
  transform: translateY(-2px);
}

.module-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.module-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 8px;
}

.module-card p {
  font-size: 0.85rem;
  color: var(--steel);
  margin-bottom: 14px;
  line-height: 1.55;
}

.badge-always  { background: var(--teal-deep); color: white; font-size: 0.7rem; padding: 4px 10px; border-radius: 12px; }
.badge-detect  { background: var(--sand); color: var(--slate); font-size: 0.7rem; padding: 4px 10px; border-radius: 12px; }

.free-vs-paid {
  padding: 64px 0;
  background: var(--cloud);
}

.comparison-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 36px;
  background: var(--cloud);
}

.comparison-card.featured {
  border-color: var(--teal-deep);
  background: linear-gradient(135deg, rgba(26,95,110,0.04) 0%, rgba(26,95,110,0.01) 100%);
}

.comparison-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 20px;
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.comparison-list li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--steel);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.comparison-list li::before {
  content: '✓';
  color: var(--pass);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.comparison-list li.locked::before {
  content: '🔒';
  font-weight: normal;
}

/* Scan form section on landing */
.scan-form-section {
  padding: 64px 0;
  background: var(--mist);
}

.scan-form-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--slate);
  text-align: center;
  margin-bottom: 36px;
}

/* ===== SCAN PAGE ===== */
.scan-page {
  min-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  background: var(--mist);
}

.scan-card {
  background: var(--cloud);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 48px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 2px 12px rgba(30,51,64,0.07);
}

.scan-card h1 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--slate);
  margin-bottom: 10px;
  line-height: 1.2;
}

.scan-card .scan-subhead {
  font-size: 0.95rem;
  color: var(--steel);
  margin-bottom: 28px;
  line-height: 1.5;
}

.scan-trust {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: center;
}

.scan-trust span {
  font-size: 0.8rem;
  color: var(--steel);
}

.scan-trust span::before {
  content: '✓ ';
  color: var(--pass);
  font-weight: 700;
}

/* Post-submit status */
.scan-status-block {
  text-align: center;
  padding: 24px 0;
}

.scan-status-block .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--teal-mid);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.scan-status-block h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 8px;
}

.scan-status-block p {
  font-size: 0.9rem;
  color: var(--steel);
}

/* ===== RESULTS PAGE ===== */
.results-hero {
  background: var(--cloud);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 32px;
}

.results-domain-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel);
  margin-bottom: 4px;
}

.results-domain {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--slate);
  margin-bottom: 20px;
}

.results-scan-date {
  font-size: 0.85rem;
  color: var(--steel);
  margin-top: 8px;
}

.module-badges-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.results-body {
  padding: 40px 0;
  background: var(--mist);
}

.results-findings-card {
  background: var(--cloud);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.findings-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.findings-item:last-child {
  border-bottom: none;
}

.findings-lock-icon {
  color: var(--steel);
  opacity: 0.4;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.findings-count {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--critical);
}

.findings-count.warning {
  color: var(--warning);
}

.findings-count.neutral {
  color: var(--steel);
}

.findings-label {
  font-size: 0.9rem;
  color: var(--steel);
}

.results-score-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px;
  background: var(--cloud);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  width: 100%;
}

.results-cta-card {
  background: var(--cloud);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  width: 100%;
}

.what-unlocks {
  background: var(--cloud);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.what-unlocks h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 16px;
}

.unlock-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.unlock-list li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--steel);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.unlock-list li::before {
  content: '✓';
  color: var(--pass);
  font-weight: 700;
  flex-shrink: 0;
}

/* Scanning in-progress */
.scanning-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.scan-arc {
  width: 80px;
  height: 80px;
  border: 5px solid var(--border);
  border-top-color: var(--teal-mid);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 28px;
}

.scanning-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--slate);
  margin-bottom: 8px;
}

.scanning-steps {
  font-size: 0.9rem;
  color: var(--steel);
  margin-bottom: 4px;
}

/* Returning visitor banner on landing */
.returning-banner {
  background: var(--teal-light);
  color: var(--slate);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.returning-banner a {
  font-weight: 600;
  color: var(--teal-deep);
  white-space: nowrap;
}

/* ===== RTBF PAGE ===== */
.legal-page {
  padding: 64px 0;
  min-height: calc(100vh - 130px);
  background: var(--mist);
}

.legal-card {
  background: var(--cloud);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 48px;
  max-width: 640px;
  margin: 0 auto;
}

.legal-card h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--slate);
  margin-bottom: 16px;
}

.legal-card .lead {
  font-size: 1rem;
  color: var(--steel);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ===== ALERTS ===== */
.alert-success-custom {
  background: rgba(46,125,82,0.08);
  border: 1px solid rgba(46,125,82,0.3);
  color: var(--pass);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.95rem;
}

.alert-error-custom {
  background: rgba(192,57,43,0.07);
  border: 1px solid rgba(192,57,43,0.25);
  color: var(--critical);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.95rem;
}

/* ===== DASHBOARD — SHARED ===== */
.page-header { margin-bottom: 0; }
.page-title  { font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; color: var(--slate); margin-bottom: 2px; }
.page-subtitle { font-size: 0.9rem; color: var(--steel); margin: 0; }

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.font-mono { font-family: var(--font-mono); font-size: 0.85em; }

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-requested     { background: rgba(212,116,10,0.12); color: var(--warning); font-style: italic; }
.badge-draft         { background: rgba(74,100,116,0.12); color: var(--steel); }
.badge-sent          { background: rgba(42,133,153,0.12); color: var(--teal-deep); }
.badge-authorised    { background: rgba(42,133,153,0.18); color: var(--teal-deep); }
.badge-scanning      { background: rgba(212,116,10,0.12); color: var(--warning); }
.badge-scan-complete { background: rgba(46,125,82,0.12);  color: var(--pass); }
.badge-payment-sent  { background: rgba(42,133,153,0.12); color: var(--teal-mid); }
.badge-paid          { background: rgba(46,125,82,0.18);  color: var(--pass); }
.badge-delivered     { background: rgba(26,95,110,0.18);  color: var(--teal-deep); }
.badge-failed        { background: rgba(192,57,43,0.12);  color: var(--critical); }

/* ===== SCORE PILLS / CHIPS ===== */
.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
}
.score-pill.score-red    { background: rgba(192,57,43,0.1);  color: var(--critical); }
.score-pill.score-orange { background: rgba(212,116,10,0.1); color: var(--warning); }
.score-pill.score-green  { background: rgba(46,125,82,0.1);  color: var(--pass); }
.score-pill.score-none   { background: rgba(74,100,116,0.1); color: var(--steel); }

/* ===== SCORE CIRCLE (engagement detail header) ===== */
.score-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  border: 4px solid;
  flex-shrink: 0;
}
.score-circle.score-red    { color: var(--critical); border-color: var(--critical); background: rgba(192,57,43,0.06); }
.score-circle.score-orange { color: var(--warning);  border-color: var(--warning);  background: rgba(212,116,10,0.06); }
.score-circle.score-green  { color: var(--pass);     border-color: var(--pass);     background: rgba(46,125,82,0.06); }

/* ===== TIER BADGE ===== */
.tier-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(26,95,110,0.1);
  color: var(--teal-deep);
  letter-spacing: 0.01em;
}

/* ===== SORT LINK ===== */
.sort-link { color: var(--slate); text-decoration: none; font-weight: 600; }
.sort-link:hover { color: var(--teal-mid); }

/* ===== TABLE CARD ===== */
.table-card { overflow: hidden; }
.table-card .table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  padding: 10px 16px;
  background: var(--mist);
}
.table-card .table td {
  padding: 12px 16px;
  vertical-align: middle;
  border-color: var(--border);
}
.table-hover tbody tr:hover { background-color: var(--mist); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--steel);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { color: var(--slate); margin-bottom: 8px; }
.empty-state p  { max-width: 340px; margin: 0 auto 24px; font-size: 0.95rem; }

/* ===== STATUS TIMELINE ===== */
.status-timeline { list-style: none; padding: 0; margin: 0; }
.timeline-step {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 0.875rem;
  color: var(--steel);
}
.timeline-step::before {
  content: '○';
  position: absolute;
  left: 0;
  color: var(--border);
}
.step-done    { color: var(--steel); }
.step-done::before    { content: '●'; color: var(--pass); }
.step-current { font-weight: 600; color: var(--slate); }
.step-current::before { content: '●'; color: var(--teal-mid); }
.step-future  { color: rgba(74,100,116,0.4); }
.step-failed  { color: var(--critical); font-weight: 600; }
.step-failed::before { content: '✗'; color: var(--critical); }

/* ===== CARD SECTION TITLE ===== */
.card-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--steel);
  font-weight: 600;
  margin-bottom: 12px;
  font-family: var(--font-body);
}

/* ===== DETAIL DL ===== */
.detail-dl { display: grid; grid-template-columns: 80px 1fr; gap: 4px 12px; }
.detail-dl dt { font-size: 0.8rem; color: var(--steel); font-weight: 500; align-self: start; padding-top: 2px; }
.detail-dl dd { font-size: 0.875rem; color: var(--slate); margin: 0; word-break: break-all; }

/* ===== REPORT ROW ===== */
.report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.report-row:last-child { border-bottom: none; }

/* ===== MODULE BADGES (engagement detail) ===== */
.module-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.module-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 600;
}
.module-red    { background: rgba(192,57,43,0.1);  color: var(--critical); }
.module-orange { background: rgba(212,116,10,0.1); color: var(--warning); }
.module-green  { background: rgba(46,125,82,0.1);  color: var(--pass); }
.module-na     { background: rgba(74,100,116,0.1); color: var(--steel); }

/* ===== SCAN DETAIL — MODULE SCORE BAR ===== */
.module-score-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.module-score-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
  opacity: 0.75;
}
.module-score-chip:hover,
.module-score-chip.active { opacity: 1; text-decoration: none; }
.module-score-chip.module-red    { background: rgba(192,57,43,0.1);  color: var(--critical); }
.module-score-chip.module-orange { background: rgba(212,116,10,0.1); color: var(--warning); }
.module-score-chip.module-green  { background: rgba(46,125,82,0.1);  color: var(--pass); }
.module-score-chip.module-na     { background: rgba(74,100,116,0.1); color: var(--steel); }
.module-score-chip .chip-label   { }
.module-score-chip .chip-score   { font-family: var(--font-mono); font-size: 0.85em; }

/* ===== SCAN DETAIL — TABS ===== */
.scan-tabs {
  border-bottom: 2px solid var(--border);
  gap: 2px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 0;
}
.scan-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -2px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--steel);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.scan-tabs .nav-link:hover { color: var(--slate); }
.scan-tabs .nav-link.active {
  color: var(--teal-deep);
  border-bottom-color: var(--teal-deep);
  font-weight: 600;
  background: transparent;
}
.tab-badge-critical {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--critical);
  color: white;
}
.tab-badge-warn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(212,116,10,0.15);
  color: var(--warning);
}
.tab-body { min-height: 200px; }

/* ===== FINDINGS ===== */
.findings-list { display: flex; flex-direction: column; gap: 12px; }
.finding-card {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.finding-card.severity-critical { border-left: 4px solid var(--critical); }
.finding-card.severity-warning  { border-left: 4px solid var(--warning); }
.finding-card.severity-pass     { border-left: 4px solid var(--pass); }
.finding-card.severity-info     { border-left: 4px solid var(--teal-light); }

.finding-header {
  padding: 14px 16px;
  background: var(--mist);
  border-bottom: 1px solid var(--border);
}
.finding-severity {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-top: 2px;
}
.finding-severity.severity-critical { background: rgba(192,57,43,0.1); color: var(--critical); }
.finding-severity.severity-warning  { background: rgba(212,116,10,0.1); color: var(--warning); }
.finding-severity.severity-pass     { background: rgba(46,125,82,0.1);  color: var(--pass); }
.finding-severity.severity-info     { background: rgba(42,133,153,0.1); color: var(--teal-mid); }

.finding-title    { font-weight: 600; font-size: 0.95rem; color: var(--slate); }
.finding-check-id { font-size: 0.78rem; }

.hours-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(42,133,153,0.1);
  color: var(--teal-deep);
  font-family: var(--font-mono);
}
.scope-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.scope-rowena         { background: rgba(26,95,110,0.1); color: var(--teal-deep); }
.scope-developer      { background: rgba(74,100,116,0.12); color: var(--steel); }
.scope-infrastructure { background: rgba(212,116,10,0.1); color: var(--warning); }

.finding-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.finding-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel);
  font-weight: 600;
  margin-bottom: 4px;
}
.finding-section p { font-size: 0.9rem; color: var(--slate); margin: 0; line-height: 1.55; }
.legal-risk-text { font-style: italic; color: var(--steel) !important; }
.remediation-steps { padding-left: 20px; margin: 0; }
.remediation-steps li { font-size: 0.875rem; color: var(--slate); margin-bottom: 4px; line-height: 1.5; }

.findings-summary { font-size: 0.82rem; }

/* ===== PORTAL ===== */
.portal-header {
  background: var(--cloud);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.portal-score-section {
  background: var(--mist);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.portal-domain { font-family: var(--font-display); font-size: 1.4rem; color: var(--slate); margin-bottom: 4px; }
.portal-risk   { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.portal-risk.critical { color: var(--critical); }
.portal-risk.high     { color: var(--warning); }
.portal-risk.medium   { color: #e67e22; }
.portal-risk.low      { color: var(--pass); }
.portal-section-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--slate); margin-bottom: 16px; }
.portal-watermark {
  text-align: center;
  font-size: 0.78rem;
  color: var(--steel);
  opacity: 0.6;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ===== LANDING — CREDIBILITY ===== */
.lp-credibility {
  background: var(--cloud);
  padding: 72px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.lp-cred-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 12px;
}
.lp-cred-lead {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  color: var(--steel);
  line-height: 1.75;
}
.lp-cred-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.lp-cred-point {
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lp-cred-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--teal-deep);
}
.lp-cred-num span { font-size: 1.4rem; color: var(--teal-mid); }
.lp-cred-label {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.5;
}

/* ===== LANDING — CONTACT ===== */
.lp-contact {
  background: var(--mist);
  padding: 72px 24px;
  border-top: 1px solid var(--border);
}
.lp-contact-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
  align-items: start;
}
.lp-contact-copy .section-title { text-align: left; }
.lp-contact-copy p {
  color: var(--steel);
  line-height: 1.75;
  font-size: 0.98rem;
}
.lp-contact-form {
  background: var(--cloud);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(26,95,110,0.07);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp-contact-form textarea.form-control { resize: vertical; min-height: 110px; }
.lp-optional { color: var(--steel); font-weight: 400; font-size: 0.8rem; }
.lp-contact-form .lp-scan-btn { width: 100%; margin-top: 4px; }
/* Honeypot — visually hidden, kept in the layout for bots to find */
.lp-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-headline  { font-size: 2rem; }
  .section-title  { font-size: 1.75rem; margin-bottom: 32px; }
  .hero           { padding: 56px 0; }
  .scan-card      { padding: 32px 24px; }
  .legal-card     { padding: 32px 24px; }
  .results-domain { font-size: 1.4rem; }
  .module-badges-row { gap: 8px; }
  .lp-module-grid { grid-template-columns: 1fr 1fr; }
  .lp-form-row    { grid-template-columns: 1fr; }
  .lp-trust-row   { gap: 16px; }
  .lp-cred-points { grid-template-columns: 1fr; }
  .lp-contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .lp-contact-copy .section-title { text-align: center; }
  .lp-hero-inner  { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .lp-hero-content { max-width: 680px; margin: 0 auto; }
  .lp-hero-inner .lp-hero-sub { margin-left: auto; margin-right: auto; }
  .lp-hero-inner .lp-hero-ctas,
  .lp-hero-inner .lp-trust-row { justify-content: center; }
  .lp-hero-visual { max-width: 560px; margin: 36px auto 0; }
  .pub-nav-links  { gap: 14px; }
  .pub-nav-link   { display: none; }
}
@media (max-width: 480px) {
  .lp-module-grid { grid-template-columns: 1fr; }
  .lp-hero        { padding: 56px 16px 72px; }
}
