/* ============================================================
   CoreScanWP : design system
   Dovetail-inspired · true-black · cobalt accent · editorial display
   ============================================================ */

:root {
  /* Surfaces : true black, editorial dark */
  --bg: #000000;
  --bg-elevated: #0a0a0c;
  --bg-card: #101013;
  --bg-card-2: #17171b;
  --bg-hover: #1d1d22;

  /* Lines */
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);

  /* Text */
  --text: #ffffff;
  --text-2: #d4d4d8;
  --muted: #8e8e92;
  --faint: #5a5a60;

  /* Accent : electric cobalt */
  --accent: #2a4fff;
  --accent-2: #4f6dff;
  --accent-soft: rgba(42, 79, 255, 0.14);
  --accent-line: rgba(42, 79, 255, 0.38);
  --accent-glow: rgba(42, 79, 255, 0.45);

  --positive: #4ade80;
  --warning: #fbbf24;
  --negative: #fb7185;
  --info: #93c5fd;
  --purple: #c4b5fd;

  /* Radii : tighter, more enterprise */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;

  /* Shadows */
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 20px 40px -20px rgba(0, 0, 0, 0.6);

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Geist", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv11";
  letter-spacing: -0.005em;
  position: relative;
  overflow-x: hidden;
}

/* Premium dark backdrop : single deliberate spotlight + film grain + vignette */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--bg);
}

/* Layer 1 : soft cobalt glow at top-center on true black. No pattern — the
   Ferrofluid canvas supplies the hero texture; below it the page stays a clean
   editorial black. */
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      ellipse 1200px 480px at 50% -160px,
      rgba(42, 79, 255, 0.22) 0%,
      rgba(42, 79, 255, 0.07) 25%,
      rgba(42, 79, 255, 0.02) 45%,
      transparent 65%
    );
  background-position: center top;
}

/* Layer 2 : soft corner-fade vignette for depth. */
.grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 70% at 50% 30%,
    transparent 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.55) 75%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 88px 28px 88px;
}

/* ─── Topbar ─── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Keep the brand and language switcher from being squeezed by the nav; let the
   nav itself absorb any tight space (it degrades gracefully via smaller pills
   below, and collapses on mobile). */
.brand,
.lang-switcher {
  flex-shrink: 0;
}
.topnav {
  flex-shrink: 1;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  padding: 4px 0;
}

.brand-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex-shrink: 0;
  position: relative;
}

.brand-name {
  font-weight: 600;
}

.brand-version {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 11px;
  color: var(--faint);
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-left: 4px;
  letter-spacing: 0;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.topnav-link {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.topnav-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.topnav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.topnav-link:hover {
  color: var(--text);
}

.topnav-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.topnav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  position: relative;
}

/* ─── Hero head ─── */

.head {
  text-align: center;
  margin-bottom: 44px;
  position: relative;
}

/* Ferrofluid stage : full-bleed WebGL canvas anchored to the top of the page,
   spanning the hero + scan form down to the first seo-section. Sits at z-index
   0 (behind .wrap content at z-index 1, above the black .grid-bg) so the copy
   stays readable. Height is set by JS to reach the features section; the mask
   fades the bottom third to transparent so it dissolves into the page instead
   of ending on a hard rectangle edge. Pointer-events off so clicks pass
   through; mouseInteraction still tracks via the canvas's own pointer listener. */
.hero-fx {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1100px; /* JS overrides to the features-section offset */
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.55) 80%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.55) 80%,
    transparent 100%
  );
}

.hero-fx canvas {
  filter: blur(0.4px);
}

/* Readability scrim : a dark radial tint painted OVER the fluid (but still
   behind the .wrap copy at z-index 1). Heaviest down the center column where
   the headline, sub, and credibility line sit; transparent toward the edges so
   the fluid stays vivid where there is no text. Inherits the parent mask, so it
   fades out with the fluid at the bottom. */
.hero-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Lighter tint : just enough darkening directly behind the text to hold
     contrast; the fluid stays clearly visible everywhere else. */
  background:
    radial-gradient(
      ellipse 68% 64% at 50% 40%,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.54) 40%,
      rgba(0, 0, 0, 0.28) 68%,
      rgba(0, 0, 0, 0.08) 88%,
      transparent 100%
    );
  pointer-events: none;
}

/* Dovetail-style credibility line: small mono caps sitting above the display h1.
   Wide letter-spacing, muted color, dot separators. Purely decorative — real
   copy stays in the h1 and sub. */
.hero-cred {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-cred-sep {
  color: var(--faint);
  opacity: 0.7;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}

/* Retool-style decorative chip eyebrow only in the hero head */
.head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  letter-spacing: 0.12em;
  margin: 0 0 26px;
}

.head .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

h1 {
  font-size: clamp(52px, 9vw, 116px);
  font-weight: 700;
  margin: 0 0 22px;
  letter-spacing: -0.045em;
  line-height: 0.96;
  color: var(--text);
}

h1 em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

.sub {
  color: var(--muted);
  margin: 0 auto;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.55;
}

/* ─── Search ─── */

.search {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.search-field {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 6px 6px 6px 18px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
  box-shadow: var(--shadow-card);
}

.search-field:focus-within {
  border-color: var(--accent-line);
  background: var(--bg-card-2);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-card);
}

.search-prefix {
  display: flex;
  align-items: center;
  font-family: "Geist", system-ui, sans-serif;
  font-size: 14.5px;
  color: var(--faint);
  user-select: none;
  padding-right: 4px;
}

#url-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 17px;
  font-family: inherit;
  /* Right padding stands in for the gap the '/' hint chip used to provide. */
  padding: 16px 12px 16px 4px;
  letter-spacing: -0.01em;
}

#url-input::placeholder {
  color: var(--faint);
}

#scan-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 0 22px;
  cursor: pointer;
  transition: transform 0.06s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  box-shadow: 0 0 0 0 var(--accent-soft);
}

#scan-btn:hover {
  background: var(--accent-2);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

#scan-btn:active {
  transform: translateY(1px);
}

#scan-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-arrow {
  transition: transform 0.2s var(--ease);
}

#scan-btn:hover .btn-arrow {
  transform: translateX(2px);
}

/* Toggle */

.deep-toggle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.deep-toggle:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
}

.deep-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  flex-shrink: 0;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  transition: background 0.2s var(--ease);
  margin-top: 1px;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.deep-toggle input:checked + .toggle-track {
  background: var(--accent);
}

.deep-toggle input:checked + .toggle-track .toggle-thumb {
  transform: translateX(14px);
  background: #0a0b0d;
}

.toggle-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.4;
}

.toggle-label strong {
  font-weight: 600;
  color: var(--text);
}

.toggle-hint {
  color: var(--muted);
  font-size: 13px;
}

/* ─── Status : scan stepper ─── */

.status {
  margin-top: 8px;
  padding: 28px 0;
}

.scan-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.scan-step {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: opacity 0.35s var(--ease), color 0.35s var(--ease);
}

.scan-step[data-state="pending"] {
  opacity: 0.3;
  color: var(--muted);
}

.scan-step[data-state="active"] {
  opacity: 1;
  color: var(--text);
}

.scan-step[data-state="done"] {
  opacity: 0.7;
  color: var(--muted);
}

.scan-step-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.scan-step[data-state="pending"] .scan-step-mark {
  border: 1.5px solid var(--line-strong);
}

.scan-step[data-state="active"] .scan-step-mark {
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}

.scan-step[data-state="done"] .scan-step-mark {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  animation: none;
}

.scan-step[data-state="done"] .scan-step-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ff5c35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3,7.5 6,10.5 11,4.5'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

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

/* ─── Results ─── */

.results {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results > * {
  animation: fade-up 0.5s var(--ease) both;
}

.results > *:nth-child(1) { animation-delay: 0ms; }
.results > *:nth-child(2) { animation-delay: 60ms; }
.results > *:nth-child(3) { animation-delay: 120ms; }
.results > *:nth-child(4) { animation-delay: 180ms; }
.results > *:nth-child(5) { animation-delay: 240ms; }
.results > *:nth-child(6) { animation-delay: 300ms; }

/* Verdict hero */

.verdict {
  position: relative;
  background:
    radial-gradient(
      circle 600px at 0% 0%,
      var(--accent-soft) 0%,
      transparent 60%
    ),
    var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 32px 32px 28px;
  overflow: hidden;
}

.verdict.no {
  background:
    radial-gradient(
      circle 600px at 0% 0%,
      rgba(251, 113, 133, 0.08) 0%,
      transparent 60%
    ),
    var(--bg-card);
}

.verdict-status {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.verdict.no .verdict-status {
  color: var(--negative);
}

.verdict-headline {
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 600;
  font-family: "Geist", system-ui, sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
  color: var(--text);
  font-feature-settings: "tnum";
}

.verdict-headline.text {
  font-family: "Geist", system-ui, sans-serif;
}

.verdict-target {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--text-2);
  font-family: "Geist", system-ui, sans-serif;
  letter-spacing: -0.005em;
  word-break: break-all;
}

.verdict-note {
  margin-top: 14px;
  padding: 10px 14px 10px 36px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 6px;
  color: #fcd34d;
  font-size: 13.5px;
  line-height: 1.5;
  position: relative;
}

.verdict-note::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
}

.verdict-meta {
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 16px;
}

.verdict-meta dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 4px;
}

.verdict-meta dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  font-feature-settings: "tnum";
  word-break: break-word;
}

.verdict-meta dd.mono {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

/* Cards */

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 26px 16px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.card-count {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
  font-feature-settings: "tnum";
}

.card-body {
  padding: 0 0 6px;
}

/* Two-column key-value list for facts */

.kv {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
}

.kv > div {
  display: contents;
}

.kv dt,
.kv dd {
  padding: 13px 26px;
  margin: 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.4;
}

.kv dt {
  color: var(--muted);
  font-weight: 400;
}

.kv dd {
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.kv dd.mono {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 13.5px;
  color: var(--text-2);
  letter-spacing: -0.005em;
}

.kv dd .accent {
  color: var(--accent);
}

.kv dd .muted {
  color: var(--muted);
}

/* Rows (themes / plugins) */

.list {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  transition: background 0.15s var(--ease);
}

.row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.row-main {
  min-width: 0;
  flex: 1;
}

.row .name {
  font-weight: 500;
  font-size: 15.5px;
  color: var(--text);
  letter-spacing: -0.005em;
}

.row .name-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

.row .name-link:hover {
  color: var(--accent);
}

.row .name-link .ext {
  font-size: 11px;
  color: var(--faint);
  transform: translateY(-2px);
  transition: color 0.15s var(--ease), transform 0.2s var(--ease);
}

.row .name-link:hover .ext {
  color: var(--accent);
  transform: translate(2px, -3px);
}

.row .slug {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: -0.005em;
}

.row .right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Row CTA button */

.row-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Geist", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 6px 12px 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.005em;
  transition: background 0.15s var(--ease), color 0.15s var(--ease),
    transform 0.06s var(--ease), box-shadow 0.2s var(--ease);
  margin-left: 4px;
}

.row-cta:hover {
  background: var(--accent);
  color: #08111a;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.row-cta:active {
  transform: translateY(1px);
}

.row-cta-arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.row-cta:hover .row-cta-arrow {
  transform: translateX(2px);
}

.row-cta.inline {
  margin-left: 8px;
  font-size: 12px;
  padding: 4px 10px 4px 12px;
}

/* Pills */

.pill {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: -0.005em;
  background: rgba(255, 255, 255, 0.015);
  font-feature-settings: "tnum";
}

.pill.ver {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.pill.active {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  padding: 4px 8px;
}

.pill.mu {
  color: var(--warning);
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}

.pill.via {
  color: var(--purple);
  border-color: rgba(196, 181, 253, 0.3);
  background: rgba(196, 181, 253, 0.08);
}

.pill.behind {
  color: var(--warning);
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
  font-size: 11px;
}

/* Signals list */

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

.signals li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 26px;
  font-size: 14px;
  color: var(--text-2);
  border-top: 1px solid var(--line);
}

.signals .check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.signals .check svg {
  width: 10px;
  height: 10px;
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty {
  padding: 18px 26px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  line-height: 1.55;
}

.empty-body {
  padding: 20px 26px 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Error */

.error-box {
  background: rgba(251, 113, 133, 0.05);
  border: 1px solid rgba(251, 113, 133, 0.25);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  color: var(--negative);
  font-size: 15px;
}

/* ─── SEO sections ─── */

.seo-section {
  margin-top: 96px;
  scroll-margin-top: 80px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head .eyebrow {
  margin: 0 0 14px;
}

.section-head h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--text);
}

.section-head h2 em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

.section-head .lede {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px 26px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.feature-num {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.feature-num::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent-line);
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

.feature-card > p {
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.feature-card code {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: -0.005em;
}

.feature-points {
  list-style: none;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-points li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

/* How it works steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 28px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  align-items: start;
  transition: border-color 0.2s var(--ease);
}

.step:hover {
  border-color: var(--line-strong);
}

.step-num {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--accent-line);
  display: inline-block;
  width: fit-content;
}

.step-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

.step-body p {
  margin: 0;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.step-body code {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Trust strip */

.trust-strip {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.trust-item {
  background: var(--bg-card);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trust-num {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}

.trust-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* Vulnerability scanner */

.vuln-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vuln-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 26px 20px;
  position: relative;
  transition: border-color 0.2s var(--ease);
}

.vuln-card.vuln-crit {
  border-color: rgba(251, 113, 133, 0.28);
  background:
    linear-gradient(180deg, rgba(251, 113, 133, 0.05), transparent 40%),
    var(--bg-card);
}

.vuln-card.vuln-high {
  border-color: rgba(251, 146, 60, 0.28);
  background:
    linear-gradient(180deg, rgba(251, 146, 60, 0.045), transparent 40%),
    var(--bg-card);
}

.vuln-card.vuln-med {
  border-color: rgba(251, 191, 36, 0.22);
  background:
    linear-gradient(180deg, rgba(251, 191, 36, 0.035), transparent 40%),
    var(--bg-card);
}

.vuln-card:hover {
  border-color: var(--line-strong);
}

.vuln-card.vuln-crit:hover {
  border-color: rgba(251, 113, 133, 0.45);
}

.vuln-card.vuln-high:hover {
  border-color: rgba(251, 146, 60, 0.42);
}

.vuln-card.vuln-med:hover {
  border-color: rgba(251, 191, 36, 0.38);
}

.vuln-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.vuln-sev {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sev-crit {
  color: var(--negative);
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.34);
}

.sev-high {
  color: #fdba74;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.34);
}

.sev-med {
  color: var(--warning);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.32);
}

.vuln-target {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vuln-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.012em;
}

.vuln-ver {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: -0.005em;
}

.vuln-desc {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

.vuln-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.vuln-meta > span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 12.5px;
}

.vm-label {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.vuln-meta code {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12.5px;
  color: var(--text-2);
  letter-spacing: -0.005em;
}

.vuln-foot {
  margin: 22px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.vuln-foot a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 1px;
}

.vuln-foot a:hover {
  border-bottom-color: var(--accent);
}

/* Live scan vuln result : empty state */

.card.vuln-empty {
  border-color: rgba(74, 222, 128, 0.22);
  background:
    radial-gradient(circle 480px at 0% 0%, rgba(74, 222, 128, 0.06), transparent 70%),
    var(--bg-card);
}

.vuln-empty-body {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px 24px;
}

.vuln-empty-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.4);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.vuln-empty-mark svg {
  width: 18px;
  height: 18px;
  stroke: #4ade80;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.vuln-empty-body h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
}

.vuln-empty-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* Live scan vuln result : found state */

.card.vuln-found {
  border-color: rgba(255, 255, 255, 0.1);
}

.card.vuln-found .card-count {
  color: var(--negative);
  font-weight: 600;
}

.card.vuln-found-high .card-count {
  color: #fdba74;
}

.card.vuln-found-med .card-count {
  color: var(--warning);
}

.card.vuln-found .vuln-stack {
  padding: 10px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vuln-meta a {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 1px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.vuln-meta a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Severity reference grid (standalone vuln page) */

.sev-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.sev-row {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
}

.sev-crit-row {
  border-color: rgba(251, 113, 133, 0.24);
  background:
    linear-gradient(180deg, rgba(251, 113, 133, 0.05), transparent 50%),
    var(--bg-card);
}

.sev-high-row {
  border-color: rgba(251, 146, 60, 0.22);
  background:
    linear-gradient(180deg, rgba(251, 146, 60, 0.04), transparent 50%),
    var(--bg-card);
}

.sev-med-row {
  border-color: rgba(251, 191, 36, 0.2);
  background:
    linear-gradient(180deg, rgba(251, 191, 36, 0.03), transparent 50%),
    var(--bg-card);
}

.sev-low-row {
  border-color: var(--line-strong);
}

.sev-row-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sev-range {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: -0.005em;
}

.sev-row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

.sev-low {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
}

/* Sources grid */

.src-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.src-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.src-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text);
}

.src-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.src-card .row-cta {
  align-self: flex-start;
  margin-top: 4px;
  margin-left: 0;
}

/* Active topnav state */

.topnav-link.active {
  color: var(--text);
  position: relative;
}

@media (max-width: 720px) {
  .sev-grid,
  .src-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .vuln-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .vuln-card {
    padding: 18px 20px 16px;
  }
  .vuln-meta {
    gap: 8px 16px;
  }
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  transition: border-color 0.2s var(--ease);
}

.faq-item:hover {
  border-color: var(--line-strong);
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-item h3::before {
  content: "?";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  font-family: "Geist", system-ui, sans-serif;
  margin-top: 2px;
}

.faq-item p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  padding-left: 32px;
}

.faq-item code {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ─── Footer ─── */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.012) 100%
    ),
    var(--bg);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 28px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
}

.footer-tag {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-endpoint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  align-self: flex-start;
  margin-top: 4px;
}

.footer-endpoint-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-endpoint code {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: -0.01em;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col li {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
}

.footer-col li a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

.footer-col li a:hover {
  color: var(--text);
}

.footer-brand-col .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.footer-brand-col .badge-soc {
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
  letter-spacing: -0.005em;
}

.footer-col li code {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12.5px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: -0.005em;
  margin-right: 2px;
}

.footer-bottom {
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 28px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--faint);
}

.footer-bottom .mono {
  font-family: "Geist", system-ui, sans-serif;
  letter-spacing: -0.005em;
}

.footer-bottom a {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.footer-bottom a:hover {
  color: var(--text);
  border-bottom-color: var(--muted);
}

.foot-dot {
  color: var(--line-strong);
}

/* Responsive */

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 48px 24px 28px;
  }
  .feature-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .seo-section {
    margin-top: 72px;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 64px 18px 64px;
  }
  .topbar-inner {
    padding: 12px 18px;
  }
  .brand-version {
    display: none;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 44px 20px 24px;
  }
  .footer-bottom {
    padding: 22px 20px 28px;
    font-size: 12px;
  }
  .seo-section {
    margin-top: 56px;
  }
  .step {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 22px;
  }
  .step-num {
    font-size: 26px;
  }
  .feature-card {
    padding: 24px 22px 22px;
  }
  .faq-item {
    padding: 20px 22px;
  }
  .faq-item p {
    padding-left: 0;
  }
  .trust-strip {
    grid-template-columns: 1fr;
  }
  .trust-num {
    font-size: 28px;
  }
  h1 {
    font-size: 36px;
  }
  .verdict {
    padding: 26px 22px 22px;
  }
  .verdict-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 16px;
  }
  .card-head,
  .row {
    padding-left: 20px;
    padding-right: 20px;
  }
  .kv {
    grid-template-columns: 1fr;
  }
  .kv dt {
    padding-bottom: 0;
    color: var(--faint);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .kv dd {
    padding-top: 4px;
    border-top: none;
  }
  .kv > div {
    display: block;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
  }
  .kv > div dt,
  .kv > div dd {
    padding: 0;
    border: 0;
  }
  .row .right {
    gap: 5px;
  }
  .pill {
    font-size: 10.5px;
    padding: 3px 7px;
  }
  .signals li {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ─── Cookie consent banner ─── */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 18px 20px 16px;
  z-index: 100;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: cookie-in 0.4s var(--ease) both;
}

@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner-out {
  animation: cookie-out 0.3s var(--ease) both;
}

@keyframes cookie-out {
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.cookie-banner-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
  letter-spacing: -0.005em;
}

.cookie-banner-text strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 4px;
}

.cookie-banner-text a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 1px;
  transition: border-color 0.15s var(--ease);
}

.cookie-banner-text a:hover {
  border-bottom-color: var(--accent);
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-banner-actions button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease),
    border-color 0.15s var(--ease);
  letter-spacing: -0.005em;
}

.cookie-accept {
  background: var(--accent);
  color: #08111a;
  border: 1px solid var(--accent);
}

.cookie-accept:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.cookie-decline {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-strong);
}

.cookie-decline:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 560px) {
  .cookie-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
    padding: 16px 18px 14px;
  }
}

/* ─── Legal pages ─── */

.legal-wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 28px 96px;
}

.legal-content .legal-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 12px;
  color: var(--text);
}

.legal-meta {
  margin: 0 0 36px;
  font-size: 13px;
  color: var(--muted);
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 44px 0 14px;
  color: var(--text);
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-2);
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 1px;
  transition: border-color 0.15s var(--ease);
}

.legal-content a:hover {
  border-bottom-color: var(--accent);
}

.legal-content code {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 13.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 7px;
  border-radius: 4px;
  letter-spacing: -0.005em;
}

/* ─── Comprehensive responsive sweep ─── */

@media (max-width: 900px) {
  .topnav {
    display: none;
  }
  .topbar-inner {
    padding: 12px 20px;
  }
  .wrap {
    padding: 48px 20px 64px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
    padding: 48px 24px 28px;
  }
  .legal-wrap {
    padding: 48px 20px 72px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 36px 16px 56px;
  }
  .head {
    margin-bottom: 32px;
  }
  h1 {
    font-size: clamp(34px, 9vw, 52px);
    line-height: 1.05;
  }
  .sub {
    font-size: 15px;
  }
  .search-field {
    flex-direction: column;
    padding: 6px;
    border-radius: 14px;
  }
  .search-prefix {
    display: none;
  }
  #url-input {
    padding: 14px 14px;
    font-size: 16px;
  }
  #scan-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
    font-size: 15px;
  }
  .deep-toggle {
    padding: 12px 14px;
  }
  .toggle-label {
    font-size: 13.5px;
  }
  .toggle-hint {
    font-size: 12.5px;
  }
  .verdict {
    padding: 24px 22px;
  }
  .verdict-headline {
    font-size: clamp(40px, 11vw, 56px);
  }
  .verdict-meta {
    grid-template-columns: 1fr 1fr;
    gap: 18px 14px;
  }
  .card-head {
    padding: 18px 20px 12px;
    flex-wrap: wrap;
  }
  .row {
    padding: 14px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .row .right {
    width: 100%;
    justify-content: flex-start;
  }
  .row-cta {
    margin-left: 0;
  }
  .signals li {
    padding: 10px 20px;
  }
  .scan-steps {
    padding: 4px 6px;
    gap: 14px;
    max-width: none;
  }
  .scan-step {
    font-size: 14px;
    gap: 12px;
  }
  .vuln-card {
    padding: 18px 18px 16px;
  }
  .vuln-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .vuln-target {
    flex-basis: 100%;
    order: 2;
  }
  .vuln-sev {
    order: 1;
  }
  .vuln-row .row-cta {
    order: 3;
    margin-left: auto;
  }
  .vuln-meta {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .feature-grid,
  .pillars,
  .why-grid,
  .faq-grid,
  .sev-grid,
  .src-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }
  .seo-section {
    margin-top: 56px;
  }
  .section-head {
    margin-bottom: 32px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px 24px;
  }
  .footer-bottom {
    padding: 22px 20px 28px;
    font-size: 12px;
    flex-direction: column;
    gap: 8px;
  }
  .legal-wrap {
    padding: 36px 18px 64px;
  }
  .legal-content h2 {
    font-size: 20px;
    margin: 36px 0 12px;
  }
  .legal-content p,
  .legal-content ul,
  .legal-content ol {
    font-size: 15px;
  }
  .kv {
    grid-template-columns: 1fr;
  }
  .kv > div {
    display: block;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
  }
  .kv dt {
    padding: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--faint);
    border: 0;
    margin-bottom: 4px;
  }
  .kv dd {
    padding: 0;
    border: 0;
  }
  .brand-version {
    display: none;
  }
}

@media (max-width: 420px) {
  .topbar-inner {
    padding: 10px 14px;
  }
  .verdict-headline {
    font-size: 36px;
  }
  .verdict-meta {
    grid-template-columns: 1fr;
  }
  .trust-strip {
    grid-template-columns: 1fr;
  }
  .vuln-meta {
    font-size: 12px;
  }
  .signals .check {
    width: 16px;
    height: 16px;
  }
  .pill {
    font-size: 11px;
  }
}

/* ─── Geist Mono : reserved for actual code-shaped data ───
   CVE ids, version numbers, IP addresses, plugin slugs, ASN ids.
   Never decorative. Mono carries semantic weight, not styling. */

.row .slug,
.pill.ver,
.kv dd.mono,
.kpi-value,
.verdict-headline,
.verdict-meta dd.mono,
.vuln-meta code,
.vuln-meta a code,
.vm-label,
.legal-content code,
.cookie-banner-text code {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-feature-settings: "tnum";
  letter-spacing: -0.01em;
}

/* ─── Example chips (cold-start affordance under search) ─── */

.search-examples {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.search-examples-label {
  color: var(--faint);
  margin-right: 2px;
}

.search-example {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font: inherit;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease),
    background 0.15s var(--ease);
}

.search-example:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.search-example:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Sticky search bar when results are visible ─── */

.search.is-sticky {
  position: sticky;
  top: 60px;
  z-index: 30;
  margin: 0 0 24px;
  padding: 10px 0;
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.search.is-sticky .deep-toggle,
.search.is-sticky .search-examples {
  display: none;
}

/* ─── Compact verdict bar (security headline first) ─── */

.verdict-headline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 22px;
  margin: 0 0 6px;
}

.verdict-lede {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
  margin: 0;
}

.verdict-lede.is-vuln {
  color: var(--negative);
}

.verdict-lede.is-high {
  color: #fdba74;
}

.verdict-lede.is-med {
  color: var(--warning);
}

.verdict-lede.is-clean {
  color: #4ade80;
}

.verdict-lede-detail {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.005em;
}

.verdict-headline.is-secondary {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.015em;
}

/* ============================================================
   Language switcher
   ============================================================ */
.lang-switcher {
  position: relative;
  margin-left: 4px;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font: 500 13px/1 "Geist", system-ui, sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.lang-current:hover,
.lang-current[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-line);
}

.lang-current .lang-chevron {
  color: var(--muted);
  transition: transform 0.15s var(--ease);
}

.lang-current[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: 0 24px 48px -14px rgba(0, 0, 0, 0.75),
    0 0 0 1px var(--accent-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease),
    visibility 0.16s;
  z-index: 60;
}

.lang-switcher.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu li {
  margin: 0;
  padding: 0;
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  text-decoration: none;
  font: 500 14px/1.2 "Geist", system-ui, sans-serif;
  letter-spacing: -0.005em;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}

.lang-menu a:hover,
.lang-menu a:focus-visible {
  background: var(--bg-hover);
  color: var(--text);
  outline: none;
}

.lang-menu a[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.lang-menu .lang-name {
  flex: 1;
}

.lang-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font: 600 10.5px/1 "Geist Mono", ui-monospace, SFMono-Regular, Menlo,
    monospace;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  flex-shrink: 0;
  transition: color 0.12s var(--ease), border-color 0.12s var(--ease),
    background 0.12s var(--ease);
}

.lang-menu a:hover .lang-code,
.lang-menu a:focus-visible .lang-code {
  color: var(--text);
  border-color: var(--line-strong);
}

.lang-menu a[aria-current="true"] .lang-code {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

@media (max-width: 640px) {
  .lang-menu {
    right: 0;
    min-width: 180px;
  }
}

/* ============================================================
   i18n layout hardening
   Longer localized labels (DE, VI compound words; ES/FR/PT
   expanded phrases) must never break the topbar or the CTA.
   ============================================================ */

/* Topbar — brand + switcher never shrink; nav absorbs pressure first */
.topbar-inner {
  gap: 20px;
  flex-wrap: nowrap;
}

.brand,
.lang-switcher {
  flex-shrink: 0;
}

.topnav {
  gap: 20px;
  flex: 0 1 auto;
  min-width: 0;
}

.topnav-link {
  white-space: nowrap;
}

/* Progressive collapse of the primary nav.
   Localized labels (esp. ES/FR/PT) run 20–40% longer than English,
   so we drop anchor-only helpers early to keep the four tool routes visible.
   1. tighten spacing + drop anchor-only helpers (#features/#how/#faq) under 1180px
   2. shrink label size further under 980px
   3. drop the whole nav under 780px (brand + switcher stay) */
@media (max-width: 1180px) {
  .topnav { gap: 14px; }
  .topnav-link { font-size: 13.5px; }
  .topnav-link[href$="#features"],
  .topnav-link[href$="#how"],
  .topnav-link[href$="#faq"] {
    display: none;
  }
}
@media (max-width: 980px) {
  .topnav { gap: 12px; }
  .topnav-link { font-size: 13px; }
}
@media (max-width: 780px) {
  .topbar-inner { gap: 12px; padding: 12px 20px; }
}

/* ─── Mobile navigation ───
   Below 980px the inline nav is replaced by a hamburger that drops the full
   set of links (including the anchor helpers hidden on the desktop collapse)
   as a panel under the sticky topbar. Placed last so it wins the cascade over
   the progressive-collapse rules above. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: auto; /* group with the language switcher on the right (mobile) */
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { border-color: var(--accent-line); }
/* Icon swap: hamburger when closed, X when open. Compound selectors keep these
   more specific than any generic svg rule. */
.nav-toggle .nav-toggle-open { display: block; }
.nav-toggle .nav-toggle-close { display: none; }
.topbar.nav-open .nav-toggle .nav-toggle-open { display: none; }
.topbar.nav-open .nav-toggle .nav-toggle-close { display: block; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .topnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch; /* full-width rows, not centered pills */
    gap: 0;
    padding: 8px 0 12px;
    background: var(--bg, #000); /* solid so page content never bleeds through */
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  }
  .topbar.nav-open .topnav { display: flex; }

  /* Show every link in the panel, overriding the desktop anchor-drop rules. */
  .topbar.nav-open .topnav-link {
    display: block;
    padding: 13px 28px;
    font-size: 16px;
    text-align: left;
    white-space: normal;
  }
  .topbar.nav-open .topnav-link:hover {
    background: rgba(255, 255, 255, 0.04);
  }
}

/* ============================================================
   Heading hardening across every layout.
   Long translated headings — especially German compound words
   like "Datenschutzerklärung" or "WordPress-Schwachstellen-Finder"
   and Vietnamese multi-syllable phrases — must never overflow
   or clip. Rules apply to hero, section, card, FAQ, feature,
   footer, and legal headings alike.
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6,
.legal-title,
.section-head h2,
.card-title,
.feature-card h3,
.step-body h3,
.faq-item h3,
.vuln-empty-body h4,
.footer-col h4 {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 8 4 4;
}

/* Hero H1 gets a slightly softer line-height so wrapped multi-line
   translations don't collide, and a smaller max clamp so very long
   compound words don't push past the container edge on big screens. */
h1 {
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.06;
}

/* Section H2 (Features / How / FAQ headers) — same softening. */
.section-head h2 {
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.08;
}

/* Legal title (Privacy / Terms / Responsible Use) — allow wrap. */
.legal-content .legal-title {
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.08;
}

/* Feature card / step / source h3: mid-weight headings.
   Vietnamese phrases like "Trình phát hiện lỗ hổng WordPress" can wrap
   to three lines in a narrow card; line-height 1.3 keeps it readable. */
.feature-card h3,
.step-body h3,
.src-card h3 {
  line-height: 1.3;
}

/* Narrow viewports: drop hero + section H2 further so long words fit
   inside phone-width containers. */
@media (max-width: 640px) {
  h1 {
    font-size: clamp(30px, 8vw, 46px);
    letter-spacing: -0.03em;
  }
  .section-head h2 {
    font-size: clamp(24px, 6.4vw, 34px);
  }
  .legal-content .legal-title {
    font-size: clamp(26px, 7.2vw, 38px);
  }
}

/* Search field — the CTA button must never crush the input. Reflow to
   two rows on narrow viewports so long localized button labels always fit. */
#scan-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .search-field {
    flex-wrap: wrap;
    padding: 12px;
    gap: 10px;
    border-radius: 14px;
  }
  .search-prefix {
    display: none;
  }
  #url-input {
    flex: 1 1 100%;
    padding: 12px 4px;
    font-size: 16px;
  }
  #scan-btn {
    flex: 1 1 100%;
    justify-content: center;
    padding: 14px 22px;
  }
}

/* Footer — 4-col grid needs to collapse cleanly at narrow widths */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
}
@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px 28px;
  }
}
