/* AI Site Check
   Dark hero theme: deep blue-purple ground, Geist Sans body, General Sans
   display type, liquid-glass surfaces and an indigo-purple-amber gradient
   accent. Class names are hand-written and prefixed, never framework
   vocabulary, so the app stays clean against its own detector. */

/* ------------------------------------------------------------------ tokens */
:root {
  /* Spec values, as HSL channels so alpha variants can be derived. */
  --background: 260 87% 3%;
  --foreground: 40 6% 95%;
  --hero-sub: 40 6% 82%;

  --fx-bg: hsl(var(--background));
  --fx-text: hsl(var(--foreground));
  --fx-text-sub: hsl(var(--hero-sub));
  --fx-text-dim: hsl(var(--foreground) / 0.62);
  --fx-text-faint: hsl(var(--foreground) / 0.42);
  --fx-line: hsl(var(--foreground) / 0.08);
  --fx-line-strong: hsl(var(--foreground) / 0.16);
  --fx-surface: rgba(255, 255, 255, 0.025);
  --fx-surface-strong: rgba(255, 255, 255, 0.05);
  --fx-sunken: rgba(0, 0, 0, 0.35);

  --fx-gradient: linear-gradient(to left, #6366f1, #a855f7, #fcd34d);
  --fx-accent: #a855f7;
  --fx-indigo: #6366f1;
  --fx-amber: #fcd34d;
  --fx-critical: #fb7185;
  --fx-important: #fcd34d;
  --fx-minor: hsl(var(--foreground) / 0.45);

  --fx-font-body: 'Geist Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fx-font-display: 'General Sans', 'Geist Sans', system-ui, sans-serif;
  --fx-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --fx-radius: 12px;
  --fx-radius-sm: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.fx-body {
  margin: 0;
  min-height: 100vh;
  background: var(--fx-bg);
  color: var(--fx-text);
  font-family: var(--fx-font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--fx-text);
  text-decoration: underline;
  text-decoration-color: hsl(var(--foreground) / 0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--fx-accent);
}

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

::selection {
  background: rgba(168, 85, 247, 0.35);
}

/* ------------------------------------------------------------ liquid glass */
/* Buttons (.fx-btn, the heroSecondary variant) share the glass treatment. */
.liquid-glass,
.fx-btn {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before,
.fx-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ------------------------------------------------------------------ buttons
   .fx-btn is the "heroSecondary" variant: a liquid-glass pill. */
.fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  color: var(--fx-text);
  font-family: var(--fx-font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 14px 22px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.fx-btn:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.fx-btn:active {
  transform: translateY(1px);
}

.fx-btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.fx-btn-ghost {
  /* kept for older markup: same pill, same glass */
}

.fx-btn-small {
  padding: 8px 14px;
  font-size: 13px;
}

.fx-btn-signup {
  padding: 8px 16px;
  font-size: 14px;
}

.fx-btn-cta {
  padding: 24px 29px;
  font-size: 16px;
}

/* ------------------------------------------------------------------ navbar */
.fx-navbar {
  position: relative;
  z-index: 20;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
}

.fx-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fx-text);
  flex-shrink: 0;
}

.fx-logo img {
  display: block;
  height: 32px;
  width: auto;
}

.fx-logo-word {
  font-family: var(--fx-font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

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

.fx-nav-item,
.fx-nav-center > a,
.fx-dropdown > summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: none;
  border: 0;
  color: hsl(var(--foreground) / 0.9);
  font-family: var(--fx-font-body);
  font-size: 15px;
  font-weight: 450;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.fx-nav-item:hover,
.fx-nav-center > a:hover,
.fx-dropdown > summary:hover {
  color: var(--fx-text);
  background-color: rgba(255, 255, 255, 0.05);
}

.fx-nav-center > a[aria-current='page'] {
  color: var(--fx-text);
  background-color: rgba(255, 255, 255, 0.06);
}

.fx-chevron {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.fx-dropdown {
  position: relative;
}

.fx-dropdown > summary {
  list-style: none;
}

.fx-dropdown > summary::-webkit-details-marker {
  display: none;
}

.fx-dropdown[open] > summary .fx-chevron {
  transform: rotate(180deg);
}

.fx-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(10, 5, 22, 0.88);
  display: flex;
  flex-direction: column;
  z-index: 30;
}

.fx-dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: hsl(var(--foreground) / 0.9);
  text-decoration: none;
  font-size: 14px;
}

.fx-dropdown-panel a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fx-text);
}

.fx-dropdown-panel small {
  display: block;
  color: var(--fx-text-faint);
  font-size: 12px;
  margin-top: 2px;
}

.fx-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.fx-nav-right form {
  margin: 0;
}

.fx-nav-link {
  color: hsl(var(--foreground) / 0.9);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--fx-font-body);
}

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

.fx-nav-credits {
  font-family: var(--fx-mono);
  font-size: 12px;
  color: var(--fx-text-dim);
  padding: 6px 10px;
  border-radius: 9999px;
}

.fx-nav-divider {
  height: 1px;
  margin-top: 3px;
  background: linear-gradient(to right, transparent, hsl(var(--foreground) / 0.2), transparent);
}

/* The nav collapses into a disclosure on small screens. */
.fx-nav-toggle {
  display: none;
}

.fx-nav-center .fx-mobile-only {
  display: none;
}

/* --------------------------------------------------------------- hero page */
.fx-page {
  position: relative;
  overflow: hidden;
  background: var(--fx-bg);
}

.fx-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

.fx-page-content {
  position: relative;
  z-index: 10;
}

.fx-hero-block {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.fx-blur-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 984px;
  height: 527px;
  max-width: 100vw;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  background: #030712;
  filter: blur(82px);
  pointer-events: none;
}

.fx-hero-content {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 40px;
}

.fx-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fx-headline {
  margin: 0;
  font-family: var(--fx-font-display);
  font-weight: 400;
  font-size: clamp(76px, 17vw, 220px);
  line-height: 1.02;
  letter-spacing: -0.024em;
  color: var(--fx-text);
}

.fx-gradient-text {
  background-image: var(--fx-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fx-hero-sub {
  margin: 9px 0 0;
  max-width: 28rem;
  color: var(--fx-text-sub);
  font-size: 18px;
  line-height: 32px;
  opacity: 0.8;
}

.fx-hero-cta {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

/* The call to action is the scan form: a glass URL field next to the
   heroSecondary button (px-29 py-24). */
.fx-hero-form {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: min(620px, 100%);
}

.fx-hero-input {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0 24px;
}

.fx-hero-input input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--fx-text);
  font-family: var(--fx-font-body);
  font-size: 16px;
  padding: 18px 0;
}

.fx-hero-input input::placeholder {
  color: var(--fx-text-faint);
}

.fx-hero-input input:focus {
  outline: none;
}

.fx-hero-input:focus-within {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(168, 85, 247, 0.5);
}

.fx-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--fx-text-faint);
}

.fx-hero-alert {
  width: min(560px, 100%);
}

/* ----------------------------------------------------------------- marquee */
.fx-marquee-wrap {
  position: relative;
  padding: 0 24px 40px;
}

.fx-marquee-row {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.fx-marquee-label {
  flex-shrink: 0;
  margin: 0;
  color: hsl(var(--foreground) / 0.5);
  font-size: 14px;
  line-height: 1.5;
}

.fx-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.fx-marquee-track {
  display: flex;
  width: max-content;
  gap: 64px;
  animation: fx-marquee 20s linear infinite;
}

.fx-marquee:hover .fx-marquee-track {
  animation-play-state: paused;
}

.fx-marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fx-marquee-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--fx-text);
}

.fx-marquee-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--fx-text);
}

@keyframes fx-marquee {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-marquee-track {
    animation: none;
  }
}

/* ------------------------------------------------------------ inner pages */
.fx-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

.fx-shell-narrow {
  max-width: 560px;
}

.fx-landing-below {
  position: relative;
  z-index: 10;
  background: var(--fx-bg);
}

.fx-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 32px 48px;
  border-top: 1px solid var(--fx-line);
  color: var(--fx-text-faint);
  font-size: 13px;
}

.fx-footer a {
  color: var(--fx-text-dim);
}

/* -------------------------------------------------------------------- type */
.fx-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fx-text-faint);
}

.fx-page-title {
  margin: 0 0 10px;
  font-family: var(--fx-font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.fx-display {
  margin: 0 0 14px;
  font-family: var(--fx-font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.024em;
}

.fx-lede {
  margin: 0 0 24px;
  max-width: 68ch;
  color: var(--fx-text-sub);
  opacity: 0.85;
  font-size: 16px;
  line-height: 1.7;
}

.fx-section {
  margin: 48px 0 0;
}

.fx-section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fx-line);
}

.fx-section-title {
  margin: 0;
  font-family: var(--fx-font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fx-text);
}

.fx-section-note {
  font-size: 13px;
  color: var(--fx-text-faint);
}

.fx-mono {
  font-family: var(--fx-mono);
  font-size: 12.5px;
  word-break: break-word;
}

.fx-dim {
  color: var(--fx-text-dim);
}

.fx-faint {
  color: var(--fx-text-faint);
}

.fx-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--fx-text-faint);
}

.fx-title-url {
  font-family: var(--fx-mono);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------ scan forms */
.fx-scan-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 12px;
}

.fx-scan-input {
  flex: 1 1 320px;
  min-width: 0;
  padding: 14px 20px;
  border-radius: 9999px;
  border: 1px solid var(--fx-line-strong);
  background: var(--fx-sunken);
  color: var(--fx-text);
  font-family: var(--fx-font-body);
  font-size: 15px;
}

.fx-scan-input::placeholder {
  color: var(--fx-text-faint);
}

.fx-scan-input:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.6);
}

/* ----------------------------------------------------------------- verdict */
.fx-verdict {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 28px;
  padding: 28px;
  border-radius: 20px;
}

.fx-verdict-label {
  margin: 4px 0 8px;
  font-family: var(--fx-font-display);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.024em;
  background-image: var(--fx-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fx-verdict-sub {
  margin: 0;
  max-width: 60ch;
  color: var(--fx-text-sub);
  opacity: 0.8;
  font-size: 15px;
}

.fx-confidence {
  text-align: right;
}

.fx-confidence-value {
  font-family: var(--fx-font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  background-image: var(--fx-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fx-confidence-label {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fx-text-faint);
}

.fx-builder-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 6px 14px 6px 8px;
  border-radius: 9999px;
  background: var(--fx-surface-strong);
  border: 1px solid var(--fx-line);
  font-size: 14px;
  font-weight: 500;
}

.fx-builder-chip svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------- family bars */
.fx-families {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.fx-family {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 76px 48px;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.fx-family-track {
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.fx-family-fill {
  display: block;
  height: 100%;
  border-radius: 9999px;
  background: var(--fx-gradient);
}

.fx-family-value {
  text-align: right;
  font-family: var(--fx-mono);
  font-size: 12px;
  color: var(--fx-text-dim);
}

/* ---------------------------------------------------------------- tables */
.fx-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border-radius: var(--fx-radius);
  border: 1px solid var(--fx-line);
  background: var(--fx-surface);
}

table.fx-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

table.fx-table.fx-table-compact {
  min-width: 420px;
}

.fx-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fx-text-faint);
  border-bottom: 1px solid var(--fx-line);
  white-space: nowrap;
}

.fx-table td {
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--fx-line);
}

.fx-table tbody tr:last-child td {
  border-bottom: 0;
}

.fx-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.fx-table td.fx-cell-mono {
  font-family: var(--fx-mono);
  font-size: 12.5px;
  color: var(--fx-text-dim);
  word-break: break-word;
}

.fx-table td .fx-value,
.fx-value {
  display: block;
  max-width: 480px;
  padding: 5px 9px;
  border-radius: var(--fx-radius-sm);
  background: var(--fx-sunken);
  border: 1px solid var(--fx-line);
  font-family: var(--fx-mono);
  font-size: 12px;
  color: var(--fx-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.fx-table-empty {
  margin-top: 14px;
  padding: 20px;
  border-radius: var(--fx-radius);
  border: 1px dashed var(--fx-line-strong);
  color: var(--fx-text-faint);
  font-size: 14px;
}

.fx-num {
  text-align: right;
  font-family: var(--fx-mono);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ tags */
.fx-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid var(--fx-line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fx-text-dim);
  white-space: nowrap;
  text-decoration: none;
}

.fx-tag-critical {
  color: var(--fx-critical);
  border-color: rgba(251, 113, 133, 0.4);
}

.fx-tag-important {
  color: var(--fx-important);
  border-color: rgba(252, 211, 77, 0.35);
}

.fx-tag-minor {
  color: var(--fx-minor);
}

.fx-tag-accent {
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.08);
}

/* ---------------------------------------------------------------- report */
.fx-finding {
  position: relative;
  margin-bottom: 12px;
  padding: 18px 20px 18px 22px;
  border-radius: var(--fx-radius);
  border: 1px solid var(--fx-line);
  background: var(--fx-surface);
}

.fx-finding::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--fx-line-strong);
}

.fx-finding-critical::before {
  background: var(--fx-critical);
}

.fx-finding-important::before {
  background: var(--fx-important);
}

.fx-finding-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.fx-finding-title {
  flex: 1 1 260px;
  margin: 0;
  font-family: var(--fx-font-display);
  font-size: 18px;
  font-weight: 500;
}

.fx-finding dl {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
  font-size: 14.5px;
}

.fx-finding dt {
  padding-top: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fx-text-faint);
}

.fx-finding dd {
  margin: 0;
}

.fx-finding dd.fx-dd-dim {
  color: var(--fx-text-sub);
  opacity: 0.85;
}

pre.fx-code {
  margin: 6px 0 0;
  padding: 12px 14px;
  border-radius: var(--fx-radius-sm);
  border: 1px solid var(--fx-line);
  background: var(--fx-sunken);
  font-family: var(--fx-mono);
  font-size: 12.5px;
  color: var(--fx-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- locked */
.fx-locked {
  position: relative;
  margin-top: 14px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--fx-line);
}

.fx-locked-preview {
  max-height: 340px;
  padding: 18px;
  overflow: hidden;
  filter: blur(6px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.fx-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, hsl(var(--background) / 0.5) 0%, hsl(var(--background) / 0.92) 70%);
}

.fx-locked-overlay h3 {
  margin: 0;
  font-family: var(--fx-font-display);
  font-size: 24px;
  font-weight: 500;
}

.fx-locked-overlay p {
  margin: 0;
  max-width: 44ch;
  color: var(--fx-text-sub);
  opacity: 0.8;
  font-size: 14px;
}

/* ----------------------------------------------------------------- forms */
.fx-form {
  display: grid;
  gap: 16px;
  max-width: 440px;
}

.fx-field {
  display: grid;
  gap: 6px;
}

.fx-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fx-text-dim);
}

.fx-field input,
.fx-field select,
.fx-field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--fx-radius-sm);
  border: 1px solid var(--fx-line-strong);
  background: var(--fx-sunken);
  color: var(--fx-text);
  font-family: var(--fx-font-body);
  font-size: 15px;
}

.fx-field select {
  appearance: auto;
}

.fx-field input:focus,
.fx-field select:focus,
.fx-field textarea:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.6);
}

.fx-field textarea {
  min-height: 90px;
  resize: vertical;
}

.fx-field-hint {
  font-size: 12.5px;
  color: var(--fx-text-faint);
}

.fx-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.fx-inline-form input,
.fx-inline-form select {
  width: auto;
  max-width: 200px;
  padding: 7px 12px;
  border-radius: 9999px;
  border: 1px solid var(--fx-line-strong);
  background: var(--fx-sunken);
  color: var(--fx-text);
  font-family: var(--fx-font-body);
  font-size: 13px;
}

.fx-alert {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--fx-radius);
  border: 1px solid rgba(252, 211, 77, 0.3);
  background: rgba(252, 211, 77, 0.06);
  font-size: 14.5px;
}

.fx-alert-ok {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.08);
}

.fx-alert-bad {
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.08);
}

/* ----------------------------------------------------------------- stats */
.fx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.fx-stat {
  padding: 18px;
  border-radius: var(--fx-radius);
  border: 1px solid var(--fx-line);
  background: var(--fx-surface);
}

.fx-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--fx-text-faint);
}

.fx-stat-value {
  margin-top: 6px;
  font-family: var(--fx-font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fx-text);
}

.fx-stat-value.fx-accent {
  background-image: var(--fx-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fx-stat-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--fx-text-faint);
}

/* ----------------------------------------------------------------- charts */
.fx-chart {
  margin-top: 14px;
  padding: 16px 14px 8px;
  border-radius: var(--fx-radius);
  border: 1px solid var(--fx-line);
  background: var(--fx-surface);
  overflow-x: auto;
}

.fx-chart svg {
  display: block;
  width: 100%;
  min-width: 520px;
  height: auto;
}

.fx-chart-bar {
  fill: rgba(168, 85, 247, 0.55);
  stroke: #a855f7;
  stroke-width: 1;
}

.fx-chart-axis {
  stroke: var(--fx-line-strong);
  stroke-width: 1;
}

.fx-chart-grid {
  stroke: var(--fx-line);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.fx-chart-label {
  fill: var(--fx-text-faint);
  font-family: var(--fx-mono);
  font-size: 9px;
}

.fx-chart-line {
  fill: none;
  stroke: #a855f7;
  stroke-width: 2;
}

.fx-chart-dot {
  fill: var(--fx-bg);
  stroke: var(--fx-amber);
  stroke-width: 2;
}

/* ---------------------------------------------------------------- layouts */
.fx-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 900px) {
  .fx-cols-2 {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }

  .fx-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fx-card {
  padding: 24px;
  border-radius: 20px;
}

.fx-card h3 {
  margin: 0 0 8px;
  font-family: var(--fx-font-display);
  font-size: 20px;
  font-weight: 500;
}

.fx-card p {
  margin: 0;
  color: var(--fx-text-sub);
  opacity: 0.8;
  font-size: 14.5px;
}

.fx-card-number {
  display: block;
  margin-bottom: 14px;
  font-family: var(--fx-font-display);
  font-size: 40px;
  line-height: 1;
}

.fx-plan-price {
  display: block;
  margin: 6px 0 12px;
  font-family: var(--fx-font-display);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.fx-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-delta-up {
  color: var(--fx-critical);
}

.fx-delta-down {
  color: #86efac;
}

.fx-hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--fx-line);
}

.fx-list-tight {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--fx-text-sub);
  opacity: 0.85;
  font-size: 15px;
}

.fx-list-tight li {
  margin-bottom: 6px;
}

.fx-center {
  text-align: center;
}

/* ------------------------------------------------------------- utilities
   The app sends style-src without 'unsafe-inline', so every layout value is
   a class here, including bar widths in 5% steps. */
.fx-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.fx-mt-sm { margin-top: 8px; }
.fx-mt-md { margin-top: 14px; }
.fx-mt-lg { margin-top: 22px; }
.fx-mb-md { margin-bottom: 16px; }
.fx-stack-item { margin-bottom: 8px; }
.fx-sub { font-size: 11.5px; }
.fx-input-narrow { max-width: 80px; }
.fx-input-search { max-width: 280px; }

.fx-w-0 { width: 0%; }
.fx-w-5 { width: 5%; }
.fx-w-10 { width: 10%; }
.fx-w-15 { width: 15%; }
.fx-w-20 { width: 20%; }
.fx-w-25 { width: 25%; }
.fx-w-30 { width: 30%; }
.fx-w-35 { width: 35%; }
.fx-w-40 { width: 40%; }
.fx-w-45 { width: 45%; }
.fx-w-50 { width: 50%; }
.fx-w-55 { width: 55%; }
.fx-w-60 { width: 60%; }
.fx-w-65 { width: 65%; }
.fx-w-70 { width: 70%; }
.fx-w-75 { width: 75%; }
.fx-w-80 { width: 80%; }
.fx-w-85 { width: 85%; }
.fx-w-90 { width: 90%; }
.fx-w-95 { width: 95%; }
.fx-w-100 { width: 100%; }

.fx-print-hint {
  margin-bottom: 18px;
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .fx-navbar {
    flex-wrap: wrap;
    padding: 16px 20px;
  }

  .fx-nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .fx-nav-center {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  .fx-navbar.fx-nav-open .fx-nav-center {
    display: flex;
  }

  .fx-nav-right {
    order: 3;
  }

  .fx-dropdown-panel {
    position: static;
    transform: none;
    margin: 4px 0 8px;
  }

  .fx-marquee-row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .fx-shell {
    padding: 28px 16px 64px;
  }

  .fx-verdict {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }

  .fx-confidence {
    text-align: left;
  }

  .fx-family {
    grid-template-columns: 110px minmax(0, 1fr) 58px 40px;
    gap: 8px;
    font-size: 12.5px;
  }

  .fx-finding dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .fx-finding dt {
    padding-top: 10px;
  }

  .fx-hero-form {
    flex-direction: column;
  }

  .fx-hero-input input {
    padding: 16px 0;
  }

  .fx-btn-cta {
    padding: 18px 24px;
  }

  .fx-nav-right .fx-nav-link,
  .fx-nav-right form {
    display: none;
  }

  .fx-nav-center a.fx-mobile-only {
    display: inline-flex;
  }

  .fx-nav-center form.fx-mobile-only {
    display: block;
  }
}

/* ------------------------------------------------------------------ print */
@media print {
  :root {
    --fx-bg: #ffffff;
    --fx-text: #111418;
    --fx-text-sub: #2b3038;
    --fx-text-dim: #3a4048;
    --fx-text-faint: #5f6772;
    --fx-line: #d5d8dc;
    --fx-line-strong: #b9bec4;
    --fx-surface: #ffffff;
    --fx-surface-strong: #f4f5f6;
    --fx-sunken: #f4f5f6;
  }

  body.fx-body {
    font-size: 11pt;
  }

  .fx-navbar,
  .fx-nav-divider,
  .fx-footer,
  .fx-print-hint,
  form,
  .fx-btn {
    display: none !important;
  }

  .fx-shell {
    max-width: none;
    padding: 0;
  }

  .fx-verdict-label,
  .fx-confidence-value,
  .fx-stat-value.fx-accent {
    color: #4c1d95;
    background: none;
  }

  .fx-finding,
  .fx-verdict,
  .fx-stat,
  tr {
    break-inside: avoid;
  }

  .liquid-glass {
    box-shadow: none;
    border: 1px solid #d5d8dc;
  }

  .liquid-glass::before {
    display: none;
  }

  .fx-table-wrap {
    overflow: visible;
  }

  table.fx-table {
    min-width: 0;
  }

  a {
    text-decoration: none;
  }
}

/* Cloudflare Turnstile: on its own row under the scan field. */
.fx-hero-form:has(.fx-turnstile) {
  flex-wrap: wrap;
}

.fx-turnstile {
  flex: 1 1 100%;
  min-height: 65px;
}

/* "Verdict wrong?" link under the verdict, pointing at the feedback form. */
.fx-verdict-dispute {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--fx-text-dim);
  text-decoration: underline;
  text-decoration-color: hsl(270 60% 60% / 0.6);
  text-underline-offset: 3px;
}

.fx-verdict-dispute:hover,
.fx-verdict-dispute:focus-visible {
  color: var(--fx-text);
}

.fx-anchor-target {
  scroll-margin-top: 96px;
}

.fx-anchor-target:target .fx-form {
  outline: 1px solid hsl(270 80% 65% / 0.6);
  outline-offset: 10px;
  border-radius: 12px;
}

/* Indeterminate progress line on the pending scan page. */
.fx-scan-progress {
  position: relative;
  height: 2px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 2px;
  background: hsl(var(--foreground) / 0.08);
}

.fx-scan-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, #a855f7, #fcd34d, transparent);
  animation: fx-scan-sweep 1.4s ease-in-out infinite;
}

@keyframes fx-scan-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(300%); }
}

@media (prefers-reduced-motion: reduce) {
  .fx-scan-progress span { animation: none; width: 100%; opacity: 0.5; }
}

/* Two-factor authentication. */
.fx-qr {
  display: inline-block;
  margin-top: 12px;
  padding: 8px;
  border-radius: 12px;
  background: #ffffff;
  line-height: 0;
}

.fx-qr svg {
  width: 200px;
  height: 200px;
}

.fx-secret {
  font-size: 15px;
  letter-spacing: 0.08em;
  word-break: break-all;
  user-select: all;
}

.fx-code-input {
  font-family: var(--fx-mono, ui-monospace, SFMono-Regular, Consolas, monospace);
  font-size: 20px;
  letter-spacing: 0.2em;
}

.fx-recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  max-width: 460px;
  margin: 20px 0 0;
  padding: 20px 20px 20px 44px;
  border: 1px solid hsl(var(--foreground) / 0.12);
  border-radius: 12px;
  font-size: 16px;
  user-select: all;
}

@media (max-width: 520px) {
  .fx-recovery-codes {
    grid-template-columns: 1fr;
  }
}
