/* ═══════════════════════════════════════════════════════
   DARK THEME (default)
═══════════════════════════════════════════════════════ */
:root {
  color-scheme: dark;

  /* BreakMesh brand palette */
  --cobalt:  #1A4579;
  --orange:  #E67E22;
  --yellow:  #F1C40F;
  --dgrey:   #2C3E50;

  /* Layout surfaces */
  --bg:           #0b1623;
  --bg-alt:       #091320;
  --panel:        #122035;
  --panel-hover:  #1a2e48;
  --topbar-bg:    #0d1a2b;
  --topbar-border: #1e3a5f;
  --topbar-shadow: rgba(0,0,0,.45);

  /* Typography */
  --text:   #e2edf8;
  --muted:  #6b8aa6;
  --line:   #1c3050;

  /* Accent roles */
  --accent:      #E67E22;
  --accent-dark: #cf6d16;
  --accent-blue: #2a6fc9;

  /* Status / severity */
  --warning:     #F1C40F;
  --warning-bg:  rgba(241,196,15,.13);
  --success:     #27ae60;
  --success-bg:  rgba(39,174,96,.13);
  --low:         #7fc144;
  --low-bg:      rgba(127,193,68,.12);
  --medium:      #E67E22;
  --medium-bg:   rgba(230,126,34,.12);
  --critical:    #e74c3c;
  --critical-bg: rgba(231,76,60,.12);

  /* Brand logo variant */
  --brand-wordmark-src: url('../brand/brand-logo-text.png');
}

/* ═══════════════════════════════════════════════════════
   LIGHT THEME
═══════════════════════════════════════════════════════ */
[data-theme="light"] {
  color-scheme: light;

  /* Layout surfaces */
  --bg:           #eef2f7;
  --bg-alt:       #f8fafc;
  --panel:        #ffffff;
  --panel-hover:  #edf2f9;
  --topbar-bg:    #ffffff;
  --topbar-border: #d4dfe9;
  --topbar-shadow: rgba(15,40,80,.10);

  /* Typography */
  --text:   #111c2d;
  --muted:  #5a7a97;
  --line:   #d0dbe7;

  /* Accent roles unchanged */
  --accent:      #E67E22;
  --accent-dark: #cf6d16;
  --accent-blue: #2a6fc9;

  /* Status */
  --warning:     #c8960a;
  --warning-bg:  rgba(200,150,10,.12);
  --success:     #1a9150;
  --success-bg:  rgba(26,145,80,.11);
  --low-bg:      rgba(127,193,68,.12);
  --medium-bg:   rgba(230,126,34,.12);
  --critical-bg: rgba(231,76,60,.10);

  /* Brand logo variant */
  --brand-wordmark-src: url('../brand/brand-logo-text-dark.png');
}

[data-theme="light"] body {
  background-image:
    radial-gradient(circle at 20% 80%, rgba(26,69,121,.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(230,126,34,.03) 0%, transparent 50%);
}

[data-theme="light"] input {
  background: #ffffff;
  border-color: #bfcdd9;
  color: var(--text);
}

[data-theme="light"] input:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(26,69,121,.12);
}

[data-theme="light"] .panel {
  box-shadow: 0 1px 4px rgba(15,40,80,.06), 0 4px 16px rgba(15,40,80,.07);
  border-color: #d4dfe9;
}

[data-theme="light"] .list-row {
  background: #f8fafc;
  border-color: #d4dfe9;
}

[data-theme="light"] .list-row:hover {
  background: var(--panel-hover);
  border-color: var(--cobalt);
}

[data-theme="light"] .topbar {
  box-shadow: 0 1px 0 var(--topbar-border), 0 2px 12px var(--topbar-shadow);
}

[data-theme="light"] .button.secondary {
  background: rgba(26,69,121,.07);
  color: var(--cobalt);
  border-color: rgba(26,69,121,.25);
}

[data-theme="light"] .button.secondary:hover {
  background: rgba(26,69,121,.13);
}

[data-theme="light"] .stat-card {
  box-shadow: 0 1px 4px rgba(15,40,80,.06), 0 4px 16px rgba(15,40,80,.07);
  border-color: #d4dfe9;
}

[data-theme="light"] .data-table th {
  background: #f0f5fb;
}

[data-theme="light"] .data-table tbody tr:hover td {
  background: #edf2f9;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  background-image:
    radial-gradient(circle at 20% 80%, rgba(26,69,121,.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(230,126,34,.08) 0%, transparent 50%);
  background-attachment: fixed;
}

body > main {
  flex: 1 0 auto;
}

body > footer {
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Top bar ─────────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
  padding: 0 32px;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  box-shadow: 0 1px 0 var(--topbar-border), 0 4px 24px var(--topbar-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.brand-mark {
  height: 56px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(230,126,34,.25));
}

.brand-wordmark {
  /* matches the 52px shield height, preserving aspect ratio */
  height: 38px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}

nav form {
  margin: 0;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .15s;
}

nav a:hover {
  color: var(--text);
}

.nav-meta {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -.01em;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color .15s;
}

.link-button:hover {
  color: var(--orange);
}

/* ─── Theme toggle ────────────────────────────────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--orange);
  border-color: var(--orange);
  background: rgba(230,126,34,.08);
}

.text-link {
  color: var(--orange);
  font-weight: 700;
}

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

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.shell {
  width: min(1140px, calc(100% - 32px));
  margin: 40px auto;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--text);
}

h2 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.muted,
.empty,
small {
  color: var(--muted);
}

/* ─── Grid / Panel ────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.narrow {
  max-width: 640px;
}

.panel {
  margin-bottom: 20px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 4px 16px rgba(0,0,0,.25);
}

/* ─── Legal / prose pages (privacy, terms, cookie, DPA) ───────────────────── */
.prose {
  line-height: 1.7;
  color: var(--text);
}

.prose h2 {
  margin: 30px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 22px;
  line-height: 1.25;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin: 22px 0 10px;
  font-size: 17px;
}

.prose p,
.prose li {
  color: var(--muted);
  line-height: 1.7;
}

.prose ul,
.prose ol {
  margin: 12px 0;
  padding-left: 22px;
}

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

.legal-table {
  width: 100%;
  margin: 16px 0 8px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14.5px;
}

.legal-table thead th {
  padding: 11px 14px;
  background: var(--surface-strong, rgba(255,255,255,.05));
  color: var(--text);
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal-table tbody td {
  padding: 11px 14px;
  color: var(--muted);
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  line-height: 1.55;
}

.legal-table tbody td:last-child {
  border-right: 0;
}

.legal-table thead th + th {
  border-left: 1px solid var(--line);
}

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

.legal-table tbody tr:hover td {
  background: var(--surface-soft, rgba(255,255,255,.03));
}

/* ─── List rows ───────────────────────────────────────────────────────────── */
.list {
  display: grid;
  gap: 10px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-alt);
  transition: border-color .12s, background .12s;
}

.list-row:hover {
  border-color: var(--cobalt);
  background: var(--panel-hover);
}

.list-row span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

/* ─── Status / Severity badges ────────────────────────────────────────────── */
.status,
.severity {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(110,136,160,.15);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: capitalize;
}

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

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

.status.danger {
  background: rgba(231, 76, 60, .13);
  color: #e74c3c;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
  box-shadow: 0 1px 3px rgba(0,0,0,.25), 0 2px 10px rgba(230,126,34,.25);
}

.button:hover {
  background: var(--accent-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,.3), 0 4px 16px rgba(230,126,34,.35);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.button.secondary {
  background: rgba(26,69,121,.28);
  color: var(--text);
  border: 1px solid var(--cobalt);
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(26,69,121,.45);
  transform: translateY(-1px);
}

.button-small {
  min-height: 32px;
  padding: 0 13px;
  font-size: 13px;
}

/* ─── Forms ───────────────────────────────────────────────────────────────── */
.form {
  display: grid;
  gap: 12px;
}

.alert {
  margin-bottom: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(231,76,60,.4);
  border-radius: 8px;
  background: rgba(231,76,60,.12);
  color: #f1948a;
  font-weight: 700;
}

label {
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
  letter-spacing: .01em;
}

input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: var(--bg-alt);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}

input:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(26,69,121,.25);
}

input::placeholder {
  color: var(--muted);
}

/* ─── Findings ────────────────────────────────────────────────────────────── */
.findings {
  display: grid;
  gap: 14px;
}

.finding {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-alt);
}

.finding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

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

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

.severity-critical,
.severity-high {
  background: var(--critical-bg);
  color: var(--critical);
}

/* ─── Definition list ─────────────────────────────────────────────────────── */
dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  margin: 16px 0 0;
}

dt {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px;
  }

  .topbar nav {
    gap: 10px;
    flex-wrap: wrap;
  }

  .brand-wordmark {
    height: 28px;
  }

  .brand-mark {
    height: 40px;
  }

  .shell {
    width: calc(100% - 24px);
    margin: 24px auto;
  }

  .page-head,
  .list-row,
  .finding-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  dl {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════════════════════════════════════ */

/* ─── Shared landing layout ───────────────────────────────────────────────── */
.lp-section {
  padding: 80px 0;
}

.lp-section-alt {
  background: var(--bg-alt);
}

.lp-section-inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.lp-section-title {
  margin-bottom: 10px;
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.lp-section-sub {
  margin-bottom: 48px;
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.lp-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 72px;
}

.lp-eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
}

.lp-headline {
  margin: 0 0 20px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
}

.lp-headline-accent {
  color: var(--orange);
}

.lp-subline {
  margin: 0 0 36px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 480px;
}

.lp-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.lp-cta-primary {
  min-height: 48px;
  padding: 0 28px;
  font-size: 16px;
}

.lp-cta-secondary {
  min-height: 48px;
  padding: 0 28px;
  font-size: 16px;
}

/* ─── Terminal visual ─────────────────────────────────────────────────────── */
.lp-terminal {
  background: #0a1520;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  font-family: "Fira Code", "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
}

.lp-terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #111e2e;
  border-bottom: 1px solid var(--line);
}

.lp-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.lp-dot-red    { background: #e74c3c; }
.lp-dot-yellow { background: #F1C40F; }
.lp-dot-green  { background: #2ecc71; }

.lp-terminal-title {
  margin-left: 6px;
  font-size: 12px;
  color: var(--muted);
  font-family: inherit;
}

.lp-terminal-body {
  padding: 20px 22px;
  line-height: 1.9;
}

.lt-line {
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.lt-ok   { color: var(--success); }
.lt-warn { color: var(--warning); }
.lt-crit { color: var(--critical); }
.lt-pass   { color: var(--success);  font-weight: 700; }
.lt-medium { color: var(--medium);   font-weight: 700; }
.lt-high   { color: var(--critical); font-weight: 700; }
.lt-low    { color: var(--low);      font-weight: 700; }
.lt-muted  { color: var(--muted); }

/* ─── Stats bar ───────────────────────────────────────────────────────────── */
.lp-stats {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lp-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  flex-wrap: wrap;
}

.lp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 48px;
}

.lp-stat-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}

.lp-stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.lp-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--line);
}

/* ─── Steps ───────────────────────────────────────────────────────────────── */
.lp-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.lp-step {
  flex: 1;
  padding: 28px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.lp-step-arrow {
  display: flex;
  align-items: center;
  padding: 28px 8px 0;
  color: var(--cobalt);
  font-size: 22px;
  font-weight: 900;
  flex-shrink: 0;
}

.lp-step-num {
  margin-bottom: 12px;
  font-size: 36px;
  font-weight: 900;
  color: var(--cobalt);
  line-height: 1;
  opacity: .5;
}

.lp-step-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.lp-step-body {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Package cards ───────────────────────────────────────────────────────── */
.lp-packages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.lp-pkg {
  position: relative;
  padding: 26px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}

.lp-pkg:hover {
  border-color: var(--cobalt);
  box-shadow: 0 4px 20px rgba(26,69,121,.2);
}

.lp-pkg-featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 4px 24px rgba(230,126,34,.15);
}

.lp-pkg-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(230,126,34,.15);
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.lp-pkg-soon {
  background: rgba(111,143,168,.12);
  color: var(--muted);
}

.lp-pkg-icon {
  margin-bottom: 10px;
  font-size: 28px;
}

.lp-pkg-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.lp-pkg-desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.lp-pkg-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.lp-pkg-checks li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.lp-pkg-checks li::before {
  content: "·";
  position: absolute;
  left: 6px;
  color: var(--orange);
  font-weight: 900;
}

/* ─── Safety section ──────────────────────────────────────────────────────── */
.lp-safety-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.lp-safety-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.lp-safety-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}

.lp-safety-check {
  flex-shrink: 0;
  color: var(--success);
  font-weight: 900;
  margin-top: 1px;
}

.lp-safety-findings {
  display: grid;
  gap: 14px;
}

.lp-finding-card {
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

.lp-fc-high   { border-left: 3px solid var(--critical); }
.lp-fc-medium { border-left: 3px solid var(--medium); }

.lp-fc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.lp-fc-sim {
  font-size: 11px;
  color: var(--muted);
  font-family: "Fira Code", "Cascadia Code", monospace;
}

.lp-fc-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.lp-fc-body {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.lp-fc-fix {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.lp-fc-fix code {
  font-family: "Fira Code", "Cascadia Code", monospace;
  font-size: 11px;
  background: rgba(26,69,121,.2);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--accent-blue);
}

/* ─── CTA band ────────────────────────────────────────────────────────────── */
.lp-cta-band {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--cobalt) 0%, #0e2a52 100%);
  text-align: center;
}

.lp-cta-band-inner {
  width: min(640px, calc(100% - 48px));
  margin: 0 auto;
}

.lp-cta-band-title {
  margin: 0 0 14px;
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
}

.lp-cta-band-sub {
  margin: 0 0 36px;
  font-size: 16px;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}

.lp-cta-band .lp-hero-cta {
  justify-content: center;
}

.lp-cta-band .lp-cta-secondary {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
  color: #ffffff;
}

.lp-cta-band .lp-cta-secondary:hover {
  background: rgba(255,255,255,.22);
}

/* ─── Landing responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lp-packages {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-steps {
    flex-direction: column;
  }

  .lp-step-arrow {
    transform: rotate(90deg);
    padding: 0 0 0 28px;
  }

  .lp-safety-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 700px) {
  .lp-hero {
    grid-template-columns: 1fr;
    padding: 40px 0 32px;
  }

  .lp-hero-visual {
    display: none;
  }

  .lp-headline {
    font-size: clamp(26px, 8vw, 40px);
  }

  .lp-subline {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .lp-hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  .lp-cta-primary,
  .lp-cta-secondary {
    width: 100%;
    min-height: 46px;
    font-size: 15px;
    justify-content: center;
  }

  .lp-section {
    padding: 48px 0;
  }

  .lp-section-title {
    font-size: 24px;
  }

  .lp-section-sub {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .lp-packages {
    grid-template-columns: 1fr;
  }

  .lp-stats-inner {
    gap: 16px;
    padding: 24px 0;
  }

  .lp-stat-divider {
    display: none;
  }

  .lp-stat {
    padding: 0 20px;
  }

  .lp-stat-num {
    font-size: 28px;
  }

  .lp-steps {
    gap: 12px;
  }

  .lp-step {
    padding: 20px 18px;
  }

  .lp-step-arrow {
    display: none;
  }

  .lp-cta-band {
    padding: 48px 0;
  }

  .lp-cta-band-title {
    font-size: 26px;
  }

  .lp-cta-band .lp-hero-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
  }
}

/* ─── Site footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 24px 0;
  margin-top: auto;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.footer-brand {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s;
}

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

.footer-legal {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 700px) {
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    text-align: left;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN DASHBOARD
══════════════════════════════════════════════════════════════════════════ */

/* ─── 4-column grid ───────────────────────────────────────────────────────── */
.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ─── Stat cards ──────────────────────────────────────────────────────────── */
.stat-card {
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}

.stat-value {
  font-size: 38px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── Panel count ─────────────────────────────────────────────────────────── */
.panel-count {
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
}

/* ─── Data tables ─────────────────────────────────────────────────────────── */
.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th {
  padding: 9px 12px;
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: rgba(0,0,0,.12);
}

.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
  font-size: 13.5px;
}

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

.data-table tbody tr:hover td {
  background: var(--panel-hover);
}

.table-actions form {
  margin: 0;
}

/* ─── Admin responsive ────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .grid.four {
    grid-template-columns: 1fr 1fr;
  }

  /* Hide wordmark on very small screens to keep the topbar tidy */
  .brand-wordmark {
    display: none;
  }

  .topbar {
    padding: 8px 12px;
  }

  .topbar nav {
    gap: 8px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   DNS VERIFICATION
══════════════════════════════════════════════════════════════════════════ */

.dns-record-box {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.dns-record-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.dns-record-row:last-child {
  border-bottom: 0;
}

.dns-record-label {
  padding: 10px 14px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.dns-record-value {
  padding: 10px 14px;
  font-family: ui-monospace, "Cascadia Code", "Fira Mono", monospace;
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
  background: var(--panel);
  display: flex;
  align-items: center;
}

.dns-copy {
  cursor: pointer;
  user-select: all;
  transition: background .15s;
  position: relative;
}

.dns-copy:hover {
  background: var(--panel-hover);
}

.dns-copy::after {
  content: "Copy";
  position: absolute;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  font-family: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
}

.dns-copy:hover::after {
  opacity: 1;
}

.dns-copy.dns-copied::after {
  content: "Copied!";
  color: var(--green, #4ade80);
  opacity: 1;
}

@media (max-width: 600px) {
  .dns-record-row {
    grid-template-columns: 1fr;
  }

  .dns-record-label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 6px 12px;
  }
}

/* ==========================================================================
   Responsive visual refinement
   ========================================================================== */
:root {
  --bg: #0b1018;
  --bg-alt: #101722;
  --panel: #151f2c;
  --panel-hover: #1b2a3c;
  --topbar-bg: rgba(13, 19, 28, .92);
  --topbar-border: rgba(134, 166, 203, .18);
  --topbar-shadow: rgba(0, 0, 0, .28);
  --text: #eef4fb;
  --muted: #9aaec3;
  --line: rgba(143, 165, 190, .22);
  --accent: #e67e22;
  --accent-dark: #c96812;
  --accent-blue: #4b91dc;
  --focus-ring: rgba(230, 126, 34, .28);
  --surface-soft: rgba(255, 255, 255, .035);
  --surface-strong: rgba(255, 255, 255, .07);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, .22);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .04), 0 12px 28px rgba(0, 0, 0, .26);
  --radius: 8px;
  --container: 1180px;
}

[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-alt: #eaf0f7;
  --panel: #ffffff;
  --panel-hover: #f1f5f9;
  --topbar-bg: rgba(255, 255, 255, .94);
  --topbar-border: rgba(24, 58, 93, .14);
  --topbar-shadow: rgba(21, 45, 74, .08);
  --text: #122033;
  --muted: #63778c;
  --line: rgba(26, 69, 121, .16);
  --accent-blue: #1f66b1;
  --focus-ring: rgba(230, 126, 34, .22);
  --surface-soft: rgba(26, 69, 121, .045);
  --surface-strong: rgba(26, 69, 121, .075);
  --shadow-soft: 0 14px 34px rgba(25, 55, 95, .09);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .9), 0 12px 28px rgba(28, 59, 92, .10);
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(75, 145, 220, .09), transparent 330px),
    linear-gradient(90deg, rgba(230, 126, 34, .045), transparent 52%);
  background-attachment: fixed;
}

[data-theme="light"] body {
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(26, 69, 121, .06), transparent 310px),
    linear-gradient(90deg, rgba(230, 126, 34, .045), transparent 56%);
}

a,
button,
input {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.topbar {
  min-height: 68px;
  padding: 0 clamp(16px, 4vw, 40px);
  border-bottom-color: var(--topbar-border);
  box-shadow: 0 1px 0 var(--topbar-border), 0 10px 28px var(--topbar-shadow);
}

.brand {
  min-width: 0;
}

.brand-mark {
  height: 48px;
  filter: drop-shadow(0 6px 12px rgba(230, 126, 34, .18));
}

.brand-wordmark {
  height: 46px;
  /* max-width: min(260px, 38vw); */
}

.topbar nav {
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.topbar nav a:not(.button),
.link-button,
.nav-meta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: var(--radius);
  padding: 0 8px;
}

.topbar nav a:not(.button):hover,
.link-button:hover {
  background: var(--surface-strong);
}

.nav-meta {
  max-width: 220px;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-toggle {
  background: var(--surface-soft);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.shell,
.lp-section-inner,
.lp-hero,
.lp-stats-inner,
.site-footer-inner {
  width: min(var(--container), calc(100% - clamp(28px, 5vw, 56px)));
}

.shell {
  margin-block: clamp(24px, 5vw, 48px);
}

.narrow {
  width: min(100%, 680px);
  margin-inline: auto;
}

.legal-page.narrow {
  width: min(var(--container), calc(100% - clamp(28px, 5vw, 56px)));
}

.legal-table {
  display: table;
}

@media (max-width: 640px) {
  .legal-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.page-head {
  align-items: center;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.page-head > div {
  min-width: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0;
}

h2,
h3,
.lp-headline,
.lp-section-title,
.lp-cta-band-title {
  letter-spacing: 0;
}

.muted,
.empty,
small {
  color: var(--muted);
}

.panel,
.stat-card,
.list-row,
.finding,
.lp-step,
.lp-pkg,
.lp-finding-card,
.dns-record-box {
  border-color: var(--line);
  border-radius: var(--radius);
}

.panel,
.stat-card,
.lp-step,
.lp-pkg,
.lp-finding-card {
  background: linear-gradient(180deg, var(--surface-soft), transparent 130px), var(--panel);
  box-shadow: var(--shadow-card);
}

.panel {
  padding: clamp(18px, 3vw, 28px);
}

.grid {
  gap: clamp(14px, 2.4vw, 22px);
}

.grid.two {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.list {
  gap: 12px;
}

.list-row {
  min-width: 0;
  padding: 15px 16px;
  background: var(--surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.list-row:hover {
  border-color: rgba(230, 126, 34, .55);
  background: var(--panel-hover);
}

.list-row strong,
.list-row small {
  overflow-wrap: anywhere;
}

.status,
.severity {
  border: 1px solid transparent;
  white-space: nowrap;
}

.status.success,
.severity-low {
  border-color: rgba(39, 174, 96, .25);
}

.status.warning,
.severity-medium {
  border-color: rgba(230, 126, 34, .28);
}

.severity-critical,
.severity-high {
  border-color: rgba(231, 76, 60, .28);
}

.button {
  gap: 8px;
  min-height: 42px;
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(230, 126, 34, .20);
  white-space: nowrap;
}

.button:hover {
  box-shadow: 0 10px 22px rgba(230, 126, 34, .27);
}

.button.secondary {
  background: var(--surface-strong);
  border-color: var(--line);
  color: var(--text);
}

.button.secondary:hover {
  border-color: rgba(230, 126, 34, .42);
  background: var(--surface-strong);
}

.button-small {
  min-height: 34px;
  padding-inline: 12px;
}

.form {
  gap: 14px;
}

label {
  color: var(--text);
}

input {
  min-height: 46px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.alert,
.notice-banner {
  border-radius: var(--radius);
}

.finding {
  background: var(--surface-soft);
}

.finding p {
  color: var(--muted);
}

dl {
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
}

.table-scroll {
  margin-inline: calc(clamp(18px, 3vw, 28px) * -1);
  padding-inline: clamp(18px, 3vw, 28px);
  scrollbar-color: var(--muted) transparent;
}

.data-table {
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  position: sticky;
  top: 0;
  background: var(--bg-alt);
}

.data-table th,
.data-table td {
  border-bottom-color: var(--line);
}

.data-table tbody tr:hover td {
  background: var(--surface-strong);
}

.table-actions > div {
  justify-content: flex-end;
}

.dns-record-box {
  background: var(--panel);
}

.dns-record-label {
  background: var(--surface-soft);
}

.dns-record-value {
  min-width: 0;
  background: transparent;
}

.dns-copy::after {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}

.site-footer {
  background: var(--topbar-bg);
  border-top-color: var(--topbar-border);
}

.footer-nav {
  row-gap: 8px;
}

.lp-hero {
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
  gap: clamp(32px, 5vw, 64px);
  min-height: min(700px, calc(100vh - 68px));
  padding-block: clamp(48px, 7vw, 84px);
}

.lp-headline {
  max-width: 760px;
  font-size: clamp(36px, 6vw, 64px);
}

.lp-subline {
  max-width: 620px;
  color: var(--muted);
}

.lp-terminal {
  border-radius: var(--radius);
  background: #0d141d;
  box-shadow: var(--shadow-soft);
}

[data-theme="light"] .lp-terminal {
  background: #132033;
}

.lp-terminal-body {
  overflow-x: auto;
}

.lp-stats {
  background: var(--panel);
  border-color: var(--line);
}

.lp-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 0;
}

.lp-stat {
  min-height: 94px;
  justify-content: center;
  padding-inline: 22px;
}

.lp-stat-divider {
  display: none;
}

.lp-section {
  padding-block: clamp(56px, 8vw, 88px);
}

.lp-section-alt {
  background: color-mix(in srgb, var(--bg-alt) 82%, transparent);
}

.lp-section-title {
  font-size: clamp(28px, 4vw, 38px);
}

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

.lp-step-arrow {
  display: none;
}

.lp-step,
.lp-pkg,
.lp-finding-card {
  border-radius: var(--radius);
}

.lp-step-num {
  color: var(--accent-blue);
}

.lp-packages,
.pricing-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.lp-pkg {
  min-width: 0;
}

.lp-pkg::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--line);
}

.lp-pkg-featured::before {
  background: var(--accent);
}

.lp-pkg-featured {
  box-shadow: 0 0 0 1px rgba(230, 126, 34, .45), var(--shadow-card);
}

.lp-pkg-checks li::before {
  content: "";
  top: .72em;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--orange);
}

.lp-safety-inner {
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1fr);
}

.lp-cta-band {
  background:
    linear-gradient(135deg, rgba(230, 126, 34, .16), transparent 45%),
    linear-gradient(135deg, #183b64 0%, #101b2b 100%);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-card form {
  margin: 0;
}

.pricing-current {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.pricing-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.pricing-tier-name {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pricing-price {
  margin: 0;
}

.pricing-amount {
  color: var(--text);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.pricing-period {
  color: var(--muted);
  font-size: 14px;
}

.pricing-features {
  display: grid;
  flex: 1;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-features li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 14px;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
}

.notice-banner {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.notice-warning {
  border-left-color: var(--warning);
}

.notice-error {
  border-left-color: var(--critical);
}

.notice-banner code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  padding: 1px 5px;
}

@media (max-width: 1080px) {
  .lp-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .lp-hero-visual {
    max-width: 680px;
  }

  .lp-steps,
  .lp-packages,
  .pricing-grid,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 10px;
  }

  .topbar nav {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .topbar nav a:not(.button),
  .link-button,
  .nav-meta {
    flex: 0 0 auto;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-head .button,
  .page-head form,
  .page-head form .button {
    width: 100%;
  }

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

  .lp-safety-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .brand-mark {
    height: 40px;
  }

  .brand-wordmark {
    display: block;
    height: 27px;
    max-width: 58vw;
  }

  .shell,
  .lp-section-inner,
  .lp-hero,
  .lp-stats-inner,
  .site-footer-inner {
    width: calc(100% - 28px);
  }

  .panel {
    padding: 18px;
  }

  .list-row,
  .finding-head,
  .lp-fc-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .button,
  .button-small,
  .lp-cta-primary,
  .lp-cta-secondary {
    width: 100%;
  }

  .topbar .button,
  .topbar .button-small {
    width: auto;
  }

  .lp-hero {
    padding-block: 40px;
  }

  .lp-hero-visual {
    display: block;
  }

  .lp-headline {
    font-size: clamp(32px, 10vw, 44px);
  }

  .lp-hero-cta,
  .lp-cta-band .lp-hero-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .lp-stats-inner,
  .lp-steps,
  .lp-packages,
  .pricing-grid,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .lp-stat {
    min-height: auto;
    padding-block: 18px;
    border-bottom: 1px solid var(--line);
  }

  .lp-stat:last-child {
    border-bottom: 0;
  }

  dl {
    grid-template-columns: 1fr;
  }

  .dns-copy::after {
    display: none;
  }

  .site-footer-inner {
    align-items: stretch;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .brand-wordmark {
    display: block;
    max-width: 68vw;
  }

  .topbar nav {
    gap: 6px;
  }

  .topbar nav a:not(.button),
  .link-button {
    padding-inline: 7px;
  }

  .stat-value,
  .lp-stat-num,
  .pricing-amount {
    font-size: 30px;
  }
}

/* Keep shared pricing styles ahead of older page-level billing styles. */
.pricing-card {
  gap: 16px !important;
}

.pricing-header {
  padding-bottom: 14px !important;
}

.pricing-tier-name {
  font-size: 13px !important;
}

.pricing-features {
  display: grid !important;
  gap: 9px !important;
}

.pricing-features li::before {
  content: "" !important;
  top: .72em !important;
  left: 2px !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: var(--success) !important;
}

.notice-banner {
  border: 1px solid var(--line) !important;
  border-left-width: 4px !important;
  background: var(--panel) !important;
  box-shadow: var(--shadow-card) !important;
}

@media (max-width: 1080px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile navbar and theme icon polish */
.theme-toggle {
  position: relative;
  overflow: hidden;
  border-color: rgba(96, 132, 170, .32);
  background: var(--surface-soft);
}

.theme-toggle .theme-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 24px;
  height: 24px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.theme-toggle .theme-icon::before,
.theme-toggle .theme-icon::after {
  content: "";
  position: absolute;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease, background .18s ease;
}

[data-theme="dark"] .theme-toggle .theme-icon::before {
  width: 12px;
  height: 12px;
  left: 6px;
  top: 6px;
  border-radius: 999px;
  background: var(--warning);
  box-shadow:
    0 -8px 0 -5px var(--warning),
    0 8px 0 -5px var(--warning),
    8px 0 0 -5px var(--warning),
    -8px 0 0 -5px var(--warning),
    6px 6px 0 -5px var(--warning),
    -6px -6px 0 -5px var(--warning),
    6px -6px 0 -5px var(--warning),
    -6px 6px 0 -5px var(--warning),
    0 0 0 4px rgba(241, 196, 15, .14);
}

[data-theme="dark"] .theme-toggle .theme-icon::after {
  opacity: 0;
}

[data-theme="light"] .theme-toggle .theme-icon::before {
  width: 17px;
  height: 17px;
  left: 3px;
  top: 3px;
  border-radius: 999px;
  background: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(42, 111, 201, .10);
}

[data-theme="light"] .theme-toggle .theme-icon::after {
  width: 17px;
  height: 17px;
  left: 9px;
  top: 1px;
  border-radius: 999px;
  background: var(--topbar-bg);
  box-shadow: -2px 2px 0 rgba(42, 111, 201, .10);
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px 14px;
  }

  .topbar .brand {
    padding-right: 52px;
  }

  .topbar .brand-mark {
    height: 36px;
  }

  .topbar .brand-wordmark {
    height: 25px;
    max-width: min(230px, calc(100vw - 116px));
  }

  .topbar .theme-toggle {
    position: absolute;
    top: 17px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--surface-strong);
  }

  .topbar nav {
    display: flex;
    width: 100%;
    gap: 8px;
    overflow: visible;
    padding: 2px 0 0;
  }

  .topbar nav a:not(.button),
  .topbar .link-button {
    min-height: 40px;
    padding-inline: 12px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
  }

  .topbar nav .button-small {
    min-height: 40px;
    padding-inline: 16px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .topbar {
    padding-inline: 14px;
  }

  .topbar .theme-toggle {
    right: 14px;
  }

  .topbar nav {
    display: grid;
    grid-template-columns: minmax(84px, .8fr) minmax(0, 1.2fr);
  }

  .topbar nav a:not(.button),
  .topbar nav .button-small,
  .topbar .link-button {
    justify-content: center;
    width: 100%;
  }
}

/* ─── Nav dropdown (Agency tools / Account menu) ─────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  list-style: none;
  transition: color .15s;
}

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

.nav-dropdown > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: -2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s;
}

.nav-dropdown[open] > summary::after {
  margin-top: 2px;
  transform: rotate(-135deg);
}

.nav-dropdown > summary:hover {
  color: var(--text);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 190px;
  padding: 8px;
  background: var(--topbar-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .28);
}

.nav-dropdown-menu a,
.nav-dropdown-menu .link-button {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background .15s, color .15s;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu .link-button:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.nav-dropdown-menu form {
  width: 100%;
}

.nav-dropdown-meta {
  padding: 6px 10px 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

/* Mobile hamburger menu */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
}

.menu-toggle:hover {
  border-color: rgba(230, 126, 34, .42);
  background: var(--surface-strong);
}

.menu-toggle-line {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.menu-toggle-line:nth-child(1) {
  transform: translateY(-6px);
}

.menu-toggle-line:nth-child(3) {
  transform: translateY(6px);
}

.menu-toggle.is-open .menu-toggle-line:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle-line:nth-child(3) {
  transform: rotate(-45deg);
}

@media (min-width: 641px) {
  .primary-nav {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 70px;
    padding: 12px 16px;
  }

  .topbar .brand {
    flex: 1 1 auto;
    padding-right: 0;
  }

  .topbar .brand-mark {
    height: 36px;
  }

  .topbar .brand-wordmark {
    height: 25px;
    max-width: min(230px, calc(100vw - 148px));
  }

  .topbar-actions {
    margin-left: auto;
    gap: 8px;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
  }

  .topbar .theme-toggle {
    position: relative;
    top: auto;
    right: auto;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--surface-strong);
  }

  .topbar .primary-nav {
    position: absolute;
    top: calc(100% - 1px);
    left: 14px;
    right: 14px;
    display: none;
    width: auto;
    max-height: calc(100vh - 92px);
    margin: 0;
    padding: 12px;
    overflow: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    border: 1px solid var(--topbar-border);
    border-radius: 0 0 12px 12px;
    background: var(--topbar-bg);
    box-shadow: 0 22px 42px rgba(0, 0, 0, .32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .topbar .primary-nav.is-open {
    display: grid;
  }

  .topbar .primary-nav .nav-meta,
  .topbar .primary-nav a:not(.button),
  .topbar .primary-nav .link-button,
  .topbar .primary-nav .button,
  .topbar .primary-nav .button-small {
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 44px;
    padding-inline: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
  }

  .topbar .primary-nav .nav-meta {
    justify-content: flex-start;
    overflow: hidden;
    color: var(--muted);
    text-align: left;
    text-overflow: ellipsis;
  }

  .topbar .primary-nav .button {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
  }

  .topbar .primary-nav form {
    width: 100%;
  }

  .topbar .primary-nav .nav-dropdown > summary {
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding-inline: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
  }

  .topbar .primary-nav .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    margin-top: 6px;
    background: transparent;
    border-color: transparent;
    padding: 0 0 0 10px;
  }
}

/* Landing content polish */
.lp-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.lp-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lp-proof-grid,
.lp-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lp-proof-card,
.lp-faq-item {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-soft), transparent 130px), var(--panel);
  box-shadow: var(--shadow-card);
}

.lp-proof-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lp-proof-card h3,
.lp-faq-item h3 {
  margin-bottom: 10px;
}

.lp-proof-card p:last-child,
.lp-faq-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.lp-faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lp-pkg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
}

.lp-safety-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  border: 1px solid rgba(39, 174, 96, .28);
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 10px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .lp-proof-grid {
    grid-template-columns: 1fr;
  }

  .lp-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .lp-trust-row {
    gap: 8px;
  }

  .lp-trust-row span {
    width: 100%;
    justify-content: center;
  }

  .lp-proof-card,
  .lp-faq-item {
    padding: 20px;
  }
}

/* Landing hero upgrade */
.lp-hero {
  position: relative;
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: 22px 0 auto 0;
  z-index: -1;
  height: 360px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(230, 126, 34, .12), rgba(75, 145, 220, .10));
  filter: blur(46px);
  opacity: .7;
}

.lp-headline {
  max-width: 820px;
}

.lp-headline-accent {
  display: inline;
}

.lp-report-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, var(--surface-strong), transparent 170px),
    var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
}

.lp-report-preview::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--accent-blue));
}

.lp-report-head,
.lp-report-score,
.lp-report-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.lp-report-head {
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.lp-report-head h2,
.lp-score-copy h3 {
  margin: 0;
}

.lp-report-label {
  margin: 0 0 4px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lp-report-score {
  align-items: center;
  padding: 24px;
}

.lp-score-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--panel) 56%, transparent 58%),
    conic-gradient(var(--orange) 0 72%, var(--surface-strong) 72% 100%);
}

.lp-score-ring span {
  display: block;
  color: var(--text);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.lp-score-ring small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
}

.lp-score-copy p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.lp-report-list {
  display: grid;
  gap: 10px;
  padding: 0 24px 24px;
}

.lp-report-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.lp-report-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lp-report-row small {
  grid-column: 2;
}

.lp-report-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.lp-report-footer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.lp-packages {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}

.lp-pkg {
  display: grid;
  align-content: start;
}

.lp-pkg-desc,
.lp-pkg-checks li {
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .lp-hero-visual {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .lp-hero::before {
    height: 280px;
    filter: blur(34px);
  }

  .lp-report-head,
  .lp-report-score,
  .lp-report-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .lp-report-head,
  .lp-report-score,
  .lp-report-list,
  .lp-report-footer {
    padding-inline: 18px;
  }

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

  .lp-report-row small {
    grid-column: auto;
  }
}

/* Pricing pages */
.pricing-page-head {
  align-items: flex-end;
}

.pricing-page-head > div:first-child {
  max-width: 760px;
}

.page-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pricing-grid-public,
.pricing-grid {
  margin-bottom: 28px;
}

.pricing-card {
  min-width: 0;
}

.pricing-featured {
  border-color: rgba(230, 126, 34, .72);
  box-shadow: 0 0 0 1px rgba(230, 126, 34, .18), var(--shadow-card);
}

.pricing-summary {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pricing-card .button,
.pricing-card form,
.pricing-card form .button,
.pricing-disabled-action {
  width: 100%;
}

.pricing-disabled-action {
  cursor: default;
  opacity: .72;
}

.pricing-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.pricing-proof h2 {
  margin-bottom: 10px;
}

/* Agency client portfolio (roadmap item 12) */
.portfolio-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.portfolio-summary article {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.portfolio-summary strong {
  font-size: 1.5rem;
}

.portfolio-client {
  margin-bottom: 18px;
}

.portfolio-client-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portfolio-client-warnings {
  margin-top: 6px;
  font-size: 0.85rem;
}

.portfolio-unassigned {
  border-style: dashed;
}

.portfolio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 12px;
}

.portfolio-table th,
.portfolio-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

/* Compliance readiness pack (roadmap item 13) */
.compliance-pack-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.compliance-pack-tab {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
}

.compliance-pack-tab.is-active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.compliance-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.compliance-score {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.compliance-score strong {
  font-size: 1.7rem;
  line-height: 1.1;
}

.compliance-scope-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.compliance-remediation {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.compliance-remediation li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.compliance-remediation p {
  margin: 4px 0 2px;
  font-size: 0.88rem;
}

.compliance-control-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compliance-control-table th,
.compliance-control-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

.compliance-status {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.compliance-satisfied {
  background: rgba(58, 160, 106, 0.16);
  color: #3aa06a;
}

.compliance-at-risk {
  background: rgba(198, 40, 40, 0.16);
  color: #d05353;
}

.compliance-unassessed {
  background: rgba(122, 142, 163, 0.14);
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
}

/* Consent-gated public scan (roadmap item 8) */
.free-scan-panel {
  max-width: 780px;
  margin-inline: auto;
}

.free-scan-form {
  margin-top: 16px;
  display: grid;
  gap: 14px;
  justify-items: start;
}

.free-scan-form .form-field {
  width: 100%;
  max-width: 420px;
}

.free-scan-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.free-scan-note h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.free-scan-methods {
  margin: 20px 0;
  padding-left: 20px;
  display: grid;
  gap: 20px;
}

.free-scan-methods h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.free-scan-kv {
  display: grid;
  grid-template-columns: minmax(70px, auto) minmax(0, 1fr);
  gap: 4px 12px;
  margin: 8px 0 4px;
  font-size: 0.88rem;
}

.free-scan-kv dt {
  color: var(--muted);
}

.free-scan-kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.free-scan-severity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.free-scan-findings {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.free-scan-findings li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.free-scan-findings p {
  margin: 4px 0 0;
  font-size: 0.88rem;
}

.free-scan-upsell {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-alt, rgba(127, 127, 127, 0.06));
}

.free-scan-upsell h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.free-scan-scope-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

/* Posture trend panel (roadmap item 7, step 3) */
.posture-trend-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.posture-trend-tab {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}

.posture-trend-tab.is-active {
  border-color: var(--accent, #2e6fb7);
  color: var(--accent, #2e6fb7);
  font-weight: 600;
}

.posture-trend-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 16px;
}

.posture-trend-chart svg {
  width: 100%;
  height: 80px;
  color: var(--accent, #2e6fb7);
  overflow: visible;
}

.posture-trend-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.posture-trend-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.posture-trend-metrics article {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.posture-trend-metrics strong {
  font-size: 1.25rem;
}

@media (max-width: 760px) {
  .posture-trend-body {
    grid-template-columns: 1fr;
  }
}

/* Scan-over-scan change detection (roadmap item 7) */
.finding-change {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.finding-change-new {
  background: rgba(214, 138, 44, 0.16);
  border-color: rgba(214, 138, 44, 0.45);
  color: #d68a2c;
}

.finding-change-persisting {
  background: rgba(122, 142, 163, 0.14);
  border-color: rgba(122, 142, 163, 0.4);
  color: var(--muted);
}

.finding-change-resolved {
  background: rgba(58, 160, 106, 0.16);
  border-color: rgba(58, 160, 106, 0.45);
  color: #3aa06a;
}

.scan-diff-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.scan-diff-resolved {
  margin-top: 12px;
}

.scan-diff-resolved summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
}

.scan-diff-resolved ul {
  list-style: none;
  padding: 10px 0 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.scan-diff-resolved li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

/* Bundle value block — seven surfaces, one subscription (roadmap item 2) */
.pricing-bundle {
  margin-bottom: 28px;
}

.pricing-bundle h2 {
  margin-bottom: 10px;
}

.pricing-bundle-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.pricing-bundle-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.pricing-bundle-list strong {
  font-size: 0.95rem;
}

.pricing-bundle-list small {
  color: var(--muted);
  line-height: 1.45;
}

.pricing-faq {
  max-width: 860px;
  margin-inline: auto;
}

.pricing-faq dl {
  grid-template-columns: 1fr;
  gap: 16px;
}

.pricing-faq dt {
  margin-bottom: 4px;
}

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

@media (max-width: 820px) {
  .pricing-page-head {
    align-items: flex-start;
  }

  .page-head-actions,
  .page-head-actions .button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .pricing-proof-grid {
    grid-template-columns: 1fr;
  }
}

/* Scan report summary */
.report-summary-grid {
  margin-bottom: 20px;
}

.severity-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.severity-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.severity-summary-item strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 900px) {
  .severity-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .severity-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Scan report dashboard */
.report-page-head {
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 26px;
}

.report-title-block {
  min-width: 0;
}

.report-title-block h1 {
  max-width: 820px;
  overflow-wrap: anywhere;
}

.report-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 16px;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(100%, 360px);
}

.button-disabled {
  cursor: not-allowed;
  opacity: .58;
  box-shadow: none;
}

.report-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
  margin-bottom: 20px;
}

.report-score-panel,
.report-insight-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(230, 126, 34, .10), transparent 46%),
    var(--panel);
  box-shadow: var(--shadow-card);
}

.report-score-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.report-score-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  color: var(--text);
}

.report-score-value strong {
  font-size: clamp(52px, 9vw, 88px);
  line-height: .9;
}

.report-score-value span {
  color: var(--muted);
  font-weight: 800;
}

.report-grade-ring {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(104px, 16vw, 142px);
  aspect-ratio: 1;
  border: 10px solid rgba(230, 126, 34, .30);
  border-right-color: var(--accent);
  border-bottom-color: var(--accent);
  border-radius: 50%;
  color: var(--text);
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 900;
  background: var(--surface-strong);
  box-shadow: inset 0 0 0 1px var(--line);
}

.report-insight-panel {
  display: grid;
  grid-template-columns: 1fr;
  padding: 8px;
}

.report-insight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 18px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.report-insight:last-child {
  border-bottom: 0;
}

.report-insight strong {
  color: var(--text);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  text-align: right;
  overflow-wrap: anywhere;
}

.report-insight small {
  color: var(--muted);
}

.report-panel {
  margin-top: 20px;
}

.scan-state-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  margin-bottom: 22px;
  border-left: 5px solid var(--accent);
}

.scan-state-pending,
.scan-state-running {
  background:
    linear-gradient(135deg, rgba(230, 126, 34, .14), transparent 48%),
    var(--panel);
}

.scan-state-failed {
  border-left-color: #e74c3c;
}

.scan-state-panel h2 {
  margin: 0 0 8px;
  color: var(--text);
}

.scan-state-copy .muted {
  max-width: 740px;
}

.scan-progress-rail {
  position: relative;
  height: 8px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.scan-progress-rail span {
  position: absolute;
  inset: 1px auto 1px 1px;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #f7c948);
  animation: scan-progress-slide 1.8s ease-in-out infinite alternate;
}

.scan-refresh-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

@keyframes scan-progress-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(165%);
  }
}

.scan-state-metrics,
.scan-outcome-grid {
  display: grid;
  gap: 12px;
}

.scan-state-metrics {
  grid-template-columns: 1fr;
}

.scan-outcome-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scan-state-metric,
.scan-outcome-grid > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.scan-state-metric {
  display: grid;
  grid-template-columns: minmax(96px, .44fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.scan-state-metrics strong,
.scan-outcome-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.scan-state-metrics strong {
  margin-top: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.16;
  overflow-wrap: normal;
  word-break: normal;
}

.scan-state-metrics small,
.scan-outcome-grid small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.passed-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.passed-check-list span {
  padding: 8px 10px;
  border: 1px solid rgba(46, 204, 113, .35);
  border-radius: var(--radius);
  background: rgba(46, 204, 113, .12);
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
}

/* Skipped / inconclusive check chips */
.passed-check-list span.check-skipped {
  border-color: rgba(230, 162, 60, .4);
  background: rgba(230, 162, 60, .10);
  color: var(--warning, #e6a23c);
}

/* Inconclusive notice banner */
.inconclusive-notice {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(230, 162, 60, .4);
  border-radius: var(--radius);
  background: rgba(230, 162, 60, .08);
  color: var(--warning, #e6a23c);
}

.inconclusive-notice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.inconclusive-notice p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.panel-heading h2 {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(100%, 520px);
}

.inline-form input {
  min-width: 0;
}

.api-gate {
  display: grid;
  gap: 10px;
  max-width: 760px;
  background:
    linear-gradient(135deg, rgba(230, 126, 34, .13), transparent 42%),
    var(--panel);
}

.api-gate h2,
.api-secret-panel h2 {
  margin-bottom: 4px;
}

.api-secret-panel,
.api-key-create {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.api-key-secret {
  display: block;
  flex: 1 1 420px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(230, 126, 34, .36);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
  font: 700 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.api-key-list {
  display: grid;
  gap: 12px;
}

.api-key-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.api-key-row > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.api-key-row strong,
.api-key-row small {
  overflow-wrap: anywhere;
}

.api-key-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  margin-bottom: 0;
  color: var(--muted);
}

.severity-summary-list {
  display: grid;
  gap: 14px;
}

.severity-summary-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.severity-summary-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.severity-summary-label strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.severity-bar {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.severity-bar-fill {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
}

.severity-fill-critical { background: #7f1d1d; }
.severity-fill-high { background: #e74c3c; }
.severity-fill-medium { background: #e67e22; }
.severity-fill-low { background: #2f80ed; }
.severity-fill-informational { background: #64748b; }

.finding-report-card {
  position: relative;
  padding: clamp(18px, 3vw, 24px);
  border-left-width: 5px;
  background: var(--panel);
}

.finding-report-card.finding-critical { border-left-color: #7f1d1d; }
.finding-report-card.finding-high { border-left-color: #e74c3c; }
.finding-report-card.finding-medium { border-left-color: #e67e22; }
.finding-report-card.finding-low { border-left-color: #2f80ed; }
.finding-report-card.finding-informational { border-left-color: #64748b; }

.finding-report-card .finding-head {
  align-items: flex-start;
}

.finding-report-card h3 {
  margin-top: 4px;
}

.evidence-chip {
  display: inline-flex;
  max-width: 100%;
  margin: 0 6px 6px 0;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 12px;
  overflow-wrap: anywhere;
}

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

.comparison-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.comparison-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.comparison-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.comparison-improved {
  border-color: rgba(39, 174, 96, .30);
}

.comparison-improved strong {
  color: var(--success);
}

.comparison-regressed {
  border-color: rgba(231, 76, 60, .30);
}

.comparison-regressed strong {
  color: #e74c3c;
}

.comparison-unchanged strong {
  color: var(--muted);
}

.comparison-severity-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.comparison-severity-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.comparison-severity-list strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 980px) {
  .report-dashboard,
  .scan-state-panel,
  .scan-outcome-grid {
    grid-template-columns: 1fr;
  }

  .report-actions {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .scan-state-metrics {
    grid-template-columns: 1fr;
  }

  .report-actions,
  .report-actions .button {
    width: 100%;
  }

  .report-score-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-grade-ring {
    width: 112px;
  }

  .panel-heading {
    flex-direction: column;
  }

  .inline-form,
  .api-secret-panel,
  .api-key-create {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-form,
  .inline-form .button {
    width: 100%;
  }

  .api-key-secret {
    flex-basis: auto;
    width: 100%;
  }

  .api-key-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .severity-summary-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .finding-report-card .finding-head {
    gap: 12px;
  }

  .comparison-grid,
  .comparison-severity-list {
    grid-template-columns: 1fr;
  }
}

/* Target history dashboard */
.target-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 24px;
}

.target-title-block {
  min-width: 0;
}

.target-title-block h1 {
  max-width: 820px;
  overflow-wrap: anywhere;
}

.target-action-form {
  flex: 0 0 auto;
}

.target-action-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: none;
}

.target-action-group .target-action-form {
  display: grid;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.target-action-group small {
  max-width: 290px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.scan-start-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.scan-start-notice h2 {
  margin: 4px 0 6px;
  font-size: clamp(22px, 3vw, 30px);
}

.scan-start-notice p:not(.eyebrow) {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.target-history-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 18px;
  margin-bottom: 20px;
}

.target-risk-card,
.target-history-metrics {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(47, 128, 237, .10), transparent 48%),
    var(--panel);
  box-shadow: var(--shadow-card);
}

.target-risk-card {
  padding: clamp(22px, 4vw, 34px);
}

.target-risk-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  color: var(--text);
}

.target-risk-score strong {
  font-size: clamp(52px, 9vw, 84px);
  line-height: .9;
}

.target-risk-score span {
  color: var(--muted);
  font-weight: 800;
}

.target-risk-empty strong {
  color: var(--muted);
}

.target-history-metrics {
  display: grid;
  grid-template-columns: 1fr;
  padding: 8px;
}

.target-history-metrics > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 18px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.target-history-metrics > div:last-child {
  border-bottom: 0;
}

.target-history-metrics strong {
  color: var(--text);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1;
  text-align: right;
}

.target-history-metrics small {
  color: var(--muted);
}

.trend-good {
  color: var(--success) !important;
}

.trend-bad {
  color: #e74c3c !important;
}

.target-history-panel,
.target-verification-panel {
  margin-top: 20px;
}

.target-history-list {
  display: grid;
  gap: 12px;
}

.target-history-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, .95fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.target-history-row:hover {
  border-color: rgba(230, 126, 34, .42);
  background: var(--surface-strong);
  transform: translateY(-1px);
}

.target-history-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.target-history-main strong,
.target-history-main small {
  display: block;
  overflow-wrap: anywhere;
}

.target-history-main small {
  margin-top: 4px;
  color: var(--muted);
}

.target-history-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.target-history-summary span {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.target-history-summary small,
.target-history-summary strong {
  display: block;
}

.target-history-summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.target-history-summary strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.setup-instructions {
  display: grid;
  gap: 16px;
}

.qr-setup-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.qr-frame {
  display: grid;
  place-items: center;
  width: 244px;
  aspect-ratio: 1;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
}

.qr-frame img {
  display: block;
  width: 220px;
  height: 220px;
}

.qr-setup-card h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}

.manual-key-fallback {
  display: grid;
  gap: 8px;
}

.copy-box,
.copy-area {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.copy-box {
  padding: 14px 16px;
}

.copy-area {
  min-height: 108px;
  padding: 12px 14px;
  resize: vertical;
}

.content-hero {
  max-width: 980px;
  margin: 0 auto 34px;
  padding: clamp(28px, 5vw, 58px) 0 12px;
}

.content-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 7vw, 72px);
  line-height: .98;
}

.content-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.content-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}

.content-main,
.content-aside-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.content-main {
  padding: clamp(24px, 4vw, 36px);
}

.content-section + .content-section {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.content-section h2,
.content-aside-panel h2 {
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.15;
}

.content-section p,
.content-aside-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.content-section p + p {
  margin-top: 14px;
}

.content-aside {
  position: sticky;
  top: 110px;
}

.content-aside-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.content-aside-panel .button {
  width: 100%;
}

.content-aside-panel + .content-aside-panel {
  margin-top: 16px;
}

.content-note {
  max-width: 760px;
  margin: 18px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.compliance-control + .compliance-control {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.compliance-control-id {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 18px;
}

.compliance-check-list,
.compliance-nav-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.compliance-nav-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 8px;
}

.compliance-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.compliance-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.compliance-card:hover {
  border-color: var(--accent, #6c8cff);
  transform: translateY(-2px);
}

.compliance-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
}

.compliance-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.compliance-card-meta {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.onboarding-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(230, 126, 34, .14), transparent 48%),
    var(--panel);
  box-shadow: var(--shadow-card);
}

.onboarding-panel h2 {
  margin: 0;
  color: var(--text);
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.onboarding-step {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.onboarding-step h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.onboarding-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.faq-list summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--text);
  font-weight: 800;
}

.faq-list details p {
  padding: 0 16px 16px;
}

@media (max-width: 980px) {
  .content-page-grid {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
  }

  .target-history-dashboard,
  .scan-state-panel,
  .target-history-row {
    grid-template-columns: 1fr;
  }

  .target-action-form,
  .target-action-form .button {
    width: 100%;
  }

  .target-action-group {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
  }

  .scan-start-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .scan-start-notice .button {
    width: 100%;
  }

  .scan-state-metric {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .target-action-group .target-action-form {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .qr-setup-card {
    grid-template-columns: 1fr;
  }

  .qr-frame {
    width: min(100%, 244px);
    justify-self: center;
  }

  .target-history-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .target-history-main {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
   CONSENT MODAL
═══════════════════════════════════════════════════════ */

.consent-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.consent-modal-backdrop.is-open {
  display: flex;
}

.consent-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: min(92vh, 840px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .55);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  animation: consent-modal-in .18s ease;
}

@keyframes consent-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.consent-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 0;
}

.consent-modal-header .eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}

.consent-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.consent-modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
  padding: 0;
}

.consent-modal-close:hover {
  background: var(--panel-hover);
  color: var(--text);
}

.consent-modal-intro {
  margin: 16px 24px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  flex-shrink: 0;
}

.consent-modal-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.consent-checklist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 16px 24px 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-bottom: 4px;
}

.consent-check-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.consent-check-row:hover {
  background: var(--panel-hover);
}

.consent-check-row.consent-error {
  border-color: var(--critical);
  background: var(--critical-bg);
}

.consent-check-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent-check-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.consent-check-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.consent-required-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--critical-bg);
  color: var(--critical);
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 1px 6px;
}

.consent-check-text {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.consent-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
  margin-top: 0;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .consent-modal-actions {
    flex-direction: column-reverse;
  }

  .consent-modal-actions .button {
    width: 100%;
    text-align: center;
  }
}

/* ─── Auth probe credential fieldset ─────────────────────────────────────── */
.auth-probe-fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px 14px;
}
.auth-probe-fieldset legend {
  padding: 0 6px;
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   PRICING PAGE — enhanced plan cards + comparison table
══════════════════════════════════════════════════════════════════════════ */

/* ─── Plan card: limits block ─────────────────────────────────────────────── */
.pricing-limits {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pricing-limit-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
}

.pricing-limit-val {
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.pricing-limit-label {
  color: var(--muted);
}

/* ─── Plan card: packages block ───────────────────────────────────────────── */
.pricing-packages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-packages-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

.pricing-package-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.pricing-package-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
}

.pkg-check,
.pkg-cross {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  margin-top: 1px;
}

.pkg-check {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(39, 174, 96, .28);
}

.pkg-cross {
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}

.pkg-info {
  display: grid;
  gap: 1px;
}

.pkg-info strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.pkg-excluded .pkg-info strong {
  color: var(--muted);
}

.pkg-info small {
  font-size: 11px;
  color: var(--muted);
}

/* ─── Comparison section wrapper ──────────────────────────────────────────── */
.cmp-section {
  margin-bottom: 28px;
}

.cmp-header {
  margin-bottom: 20px;
}

.cmp-header h2 {
  margin-bottom: 6px;
}

/* ─── Comparison table scroll wrapper ─────────────────────────────────────── */
.cmp-scroll-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-soft), transparent 130px), var(--panel);
  box-shadow: var(--shadow-card);
  scrollbar-color: var(--muted) transparent;
}

/* ─── Comparison table ────────────────────────────────────────────────────── */
.cmp-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.cmp-table thead th {
  padding: 16px 14px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .01em;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  white-space: nowrap;
}

.cmp-table thead th small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.cmp-feature-col {
  text-align: left !important;
  min-width: 200px;
  max-width: 280px;
}

.cmp-plan-col {
  min-width: 110px;
  width: 110px;
}

/* Featured (Team) column highlight */
.cmp-plan-featured {
  background: rgba(230, 126, 34, .05) !important;
}

thead .cmp-plan-featured {
  color: var(--orange) !important;
  background: rgba(230, 126, 34, .10) !important;
  border-bottom-color: rgba(230, 126, 34, .32) !important;
}

/* ─── Table body rows ─────────────────────────────────────────────────────── */
.cmp-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
  text-align: center;
  font-size: 13px;
}

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

.cmp-table tbody tr:hover td {
  background: var(--surface-strong);
}

.cmp-table tbody tr:hover td.cmp-plan-featured {
  background: rgba(230, 126, 34, .10);
}

/* ─── Section header rows ─────────────────────────────────────────────────── */
.cmp-section-row td {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left !important;
  background: var(--surface-soft) !important;
  border-bottom: 1px solid var(--line);
}

/* ─── Package rows in comparison table ───────────────────────────────────── */
.cmp-pkg-row td.cmp-feature-col {
  text-align: left;
}

.cmp-pkg-row td.cmp-feature-col strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.cmp-checks-count {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

/* Collapsible check list inside comparison table */
.cmp-checks-detail {
  margin-top: 4px;
}

.cmp-checks-detail summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-blue);
  list-style: none;
  outline: none;
  user-select: none;
}

.cmp-checks-detail summary::-webkit-details-marker {
  display: none;
}

.cmp-checks-detail[open] summary {
  margin-bottom: 6px;
}

.cmp-checks-detail ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 3px;
}

.cmp-checks-detail ul li {
  font-size: 11px;
  color: var(--muted);
  padding-left: 12px;
  position: relative;
}

.cmp-checks-detail ul li::before {
  content: "·";
  position: absolute;
  left: 3px;
  color: var(--orange);
  font-weight: 900;
}

/* ─── Check / cross symbols in comparison table ───────────────────────────── */
.cmp-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--success-bg);
  border: 1px solid rgba(39, 174, 96, .28);
  color: var(--success);
  font-size: 11px;
  font-weight: 900;
}

.cmp-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cmp-note {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}

/* ─── CTA row inside comparison table ─────────────────────────────────────── */
.cmp-cta-row td {
  padding: 14px !important;
  border-top: 1px solid var(--line);
  background: var(--surface-soft) !important;
  text-align: center;
}

.cmp-cta-row td.cmp-plan-featured {
  background: rgba(230, 126, 34, .07) !important;
}

.cmp-cta-row .button {
  width: 100%;
}

/* ─── Pricing FAQ grid ─────────────────────────────────────────────────────── */
.pricing-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  margin-top: 4px;
}

.pricing-faq-grid h3 {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.pricing-faq-grid p {
  margin: 0;
  font-size: 13px;
}

/* ─── Pricing responsive ───────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .pricing-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cmp-scroll-wrap {
    margin-inline: -18px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .cmp-plan-col {
    min-width: 88px;
    width: 88px;
  }

  .cmp-feature-col {
    min-width: 160px;
  }
}


/* --- Agency guide: code blocks --------------------------------------------- */
.code-block {
  background: #0a1520;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  color: #c9d9e8;
  font-family: "Fira Code", "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
[data-theme="light"] .code-block {
  background: #1a2e48;
  border-color: #1c3050;
  color: #c9d9e8;
}
.code-block code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.guide-section code {
  background: rgba(26,69,121,.25);
  border: 1px solid rgba(26,69,121,.4);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: .85em;
  color: #7ec8e3;
  font-family: "Fira Code","Cascadia Code",monospace;
}
[data-theme="light"] .guide-section code {
  background: rgba(26,69,121,.10);
  border-color: rgba(26,69,121,.25);
  color: #1A4579;
}
.guide-section .code-block code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.method-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  font-family: "Fira Code","Cascadia Code",monospace;
  vertical-align: middle;
  margin-right: 4px;
}
.method-get    { background: rgba(39,174,96,.18);  color: #27ae60; border: 1px solid rgba(39,174,96,.3); }
.method-post   { background: rgba(42,111,201,.18); color: #4a9fe0; border: 1px solid rgba(42,111,201,.3); }
.method-patch  { background: rgba(241,196,15,.18); color: #e0b030; border: 1px solid rgba(241,196,15,.3); }
.method-delete { background: rgba(231,76,60,.18);  color: #e74c3c; border: 1px solid rgba(231,76,60,.3); }

/* --- Agency webhooks: event checkbox grid ---------------------------------- */
.webhook-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .5rem .75rem;
  margin-top: .5rem;
}
.webhook-event-label {
  display: flex;
  align-items: center;
  gap: .55rem;
  cursor: pointer;
  padding: .4rem .65rem;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(26,69,121,.07);
  transition: background .15s, border-color .15s;
  user-select: none;
  min-height: 36px;
}
.webhook-event-label:hover {
  background: rgba(26,69,121,.15);
  border-color: rgba(42,111,201,.4);
}
/* Hide the real checkbox — we draw our own via ::before on the label */
.webhook-event-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
/* Custom checkbox box */
.webhook-event-label::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border: 2px solid var(--muted);
  border-radius: 3px;
  background: transparent;
  transition: background .15s, border-color .15s;
  box-sizing: border-box;
}
/* Checked state: filled box */
.webhook-event-label:has(input:checked)::before {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 8px;
}
.webhook-event-label:has(input:checked) {
  border-color: rgba(42,111,201,.5);
  background: rgba(42,111,201,.12);
}
.webhook-event-label code {
  font-size: 12px;
  color: var(--text);
  font-family: "Fira Code","Cascadia Code",monospace;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════════════════
   SHARED COMPONENTS — reusable across pentest, agency, and other pages
══════════════════════════════════════════════════════════════════════════ */

/* ─── Guide page layout ───────────────────────────────────────────────────── */
.guide-section {
  margin-bottom: 2rem;
}
.guide-section h3 {
  margin-top: 1.5rem;
}
.guide-section h4 {
  margin-top: 1rem;
}
.guide-section .data-table {
  margin-top: 1rem;
}
.guide-section > ol,
.guide-section > ul {
  line-height: 2;
}
.guide-section .muted {
  margin-top: .75rem;
}
.guide-toc {
  margin-bottom: 2rem;
}
.guide-toc .eyebrow {
  margin-bottom: .5rem;
}
.guide-toc > ol {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 2;
}

/* ─── Section label (small uppercase muted heading) ──────────────────────── */
.section-label {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Form field container ────────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1.1rem;
}
.field:last-child { margin-bottom: 0; }
.field > label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}
.field-hint {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .1rem;
}

/* ─── Scrollable preformatted block ──────────────────────────────────────── */
.doc-pre {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: .78rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  max-height: 280px;
  overflow-y: auto;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  margin-bottom: .75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

/* ─── Interactive checkbox card row ──────────────────────────────────────── */
.choice-row {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .85rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.choice-row:has(input:checked) {
  border-color: var(--accent-blue);
  background: rgba(42,111,201,.07);
}
.choice-row input[type="checkbox"],
.choice-row input[type="radio"] {
  width: 18px;
  min-height: 18px;
  flex-shrink: 0;
  margin-top: .1rem;
  accent-color: var(--accent-blue);
  cursor: pointer;
}
.choice-row-body { flex: 1; }
.choice-row-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.choice-row-desc {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .2rem;
  line-height: 1.45;
}

/* ─── Info / warning banners ──────────────────────────────────────────────── */
.banner {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--text);
}
.banner-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: .05rem;
}
.banner-warning {
  background: var(--warning-bg);
  border-color: rgba(241,196,15,.3);
}
.banner-danger {
  background: rgba(231,76,60,.1);
  border-color: rgba(231,76,60,.35);
}
.banner-info {
  background: rgba(42,111,201,.07);
  border-color: rgba(42,111,201,.3);
}

/* ─── Form actions bar ────────────────────────────────────────────────────── */
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ─── Danger button variant ───────────────────────────────────────────────── */
.button-danger {
  background: var(--critical, #e74c3c);
  color: #fff;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.25), 0 2px 10px rgba(231,76,60,.25);
}
.button-danger:hover {
  background: #c0392b;
  box-shadow: 0 2px 6px rgba(0,0,0,.3), 0 4px 16px rgba(231,76,60,.35);
}

/* ─── Sidebar card ────────────────────────────────────────────────────────── */
.sidebar-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem;
  margin-bottom: 1rem;
}
.sidebar-card > h3 {
  margin-top: 0;
  margin-bottom: .85rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.sidebar-card p,
.sidebar-card li {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.55;
}
.sidebar-card ul {
  padding-left: 1.1rem;
  margin: 0;
}
.sidebar-card li { margin-bottom: .35rem; }

/* ─── Sticky sidebar column ──────────────────────────────────────────────── */
.sticky-sidebar {
  position: sticky;
  top: 80px;
}

/* ─── Spacing utilities ───────────────────────────────────────────────────── */
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ─── Inline form (delete/action forms that must not take block width) ────── */
.form-inline { display: inline; }

/* ─── Meta rows (detail view sidebar) ────────────────────────────────────── */
.meta-row {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
}
.meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.meta-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}
.meta-value {
  font-size: .85rem;
  color: var(--text);
  word-break: break-all;
}
.meta-value code {
  font-size: .8rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .1rem .35rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   UI/UX UPGRADE — Phase 1 (Design tokens) + Phase 2.1/2.2 (Nav + Hero)
   See UI_UX_IMPROVEMENT_PLAN.md
═══════════════════════════════════════════════════════════════════════════ */

/* ─── P1.1 Color palette / surfaces / glow ──────────────────────────────── */
:root {
  --color-blue-50:  #eef4fc;
  --color-blue-100: #d9e7f8;
  --color-blue-200: #b3cef1;
  --color-blue-300: #82afe6;
  --color-blue-400: #4b91dc;
  --color-blue-500: #2a6fc9;
  --color-blue-600: #1f5aa8;
  --color-blue-700: #1a4579;
  --color-blue-800: #163a63;
  --color-blue-900: #122e4e;
  --color-blue-950: #0a1a2e;

  --color-brand-gradient: linear-gradient(135deg, var(--color-blue-700) 0%, var(--color-blue-400) 55%, var(--orange) 130%);
  --color-glow-blue:   rgba(75, 145, 220, .35);
  --color-glow-orange: rgba(230, 126, 34, .38);

  --surface-0: var(--bg);
  --surface-1: var(--panel);
  --surface-2: var(--panel-hover);
  --surface-3: var(--surface-strong, rgba(255, 255, 255, .07));

  /* P1.5 severity (kept aligned with existing --critical/--medium/--low tokens) */
  --sev-critical: #e74c3c;
  --sev-high:     #E67E22;
  --sev-medium:   #F1C40F;
  --sev-low:      #4b91dc;
  --sev-info:     #8fa5be;

  /* P1.2 Typography scale */
  --text-xs:  clamp(.72rem, .70rem + .10vw, .78rem);
  --text-sm:  clamp(.82rem, .80rem + .10vw, .88rem);
  --text-base:clamp(.95rem, .92rem + .15vw, 1rem);
  --text-lg:  clamp(1.05rem, 1.00rem + .25vw, 1.15rem);
  --text-xl:  clamp(1.20rem, 1.10rem + .40vw, 1.40rem);
  --text-2xl: clamp(1.40rem, 1.25rem + .60vw, 1.75rem);
  --text-3xl: clamp(1.70rem, 1.40rem + 1.0vw, 2.10rem);
  --text-4xl: clamp(2.00rem, 1.60rem + 1.6vw, 2.60rem);
  --text-5xl: clamp(2.40rem, 1.80rem + 2.4vw, 3.25rem);
  --text-6xl: clamp(2.80rem, 2.00rem + 3.2vw, 4.00rem);

  --font-display: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --leading-tight:   1.1;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;
  --tracking-tight: -0.02em;

  /* P1.3 Spacing scale (4px base) */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px;  --space-6: 24px;  --space-8: 32px;  --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;

  --shadow-sm:   0 1px 2px rgba(0,0,0,.18);
  --shadow-md:   0 8px 24px rgba(0,0,0,.24);
  --shadow-lg:   0 24px 60px rgba(0,0,0,.32);
  --shadow-glow: 0 0 0 1px rgba(230,126,34,.15), 0 0 42px var(--color-glow-orange);
}

[data-theme="light"] {
  --shadow-sm: 0 1px 2px rgba(15,40,80,.08);
  --shadow-md: 0 8px 24px rgba(15,40,80,.08);
  --shadow-lg: 0 24px 60px rgba(15,40,80,.12);
  --shadow-glow: 0 0 0 1px rgba(230,126,34,.12), 0 0 42px rgba(230,126,34,.22);
}

/* P1.4 richer dark near-black bg / off-white light bg */
:root {
  --bg: #0a0e1a;
}

[data-theme="light"] {
  --bg: #f7f8fc;
  --bg-alt: #eef1f8;
}

/* ─── P2.1 Announcement banner ──────────────────────────────────────────── */
.announcement-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 16px;
  background: var(--color-blue-700);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .18);
  text-align: center;
}

.announcement-banner a {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
}

.announcement-banner a:hover {
  text-decoration: underline;
}

/* ─── P2.1 Topbar refinement (wider inner container, frosted glass, scroll shadow) ── */
.topbar {
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: transparent;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.topbar.is-scrolled {
  border-bottom-color: var(--topbar-border);
  box-shadow: 0 1px 0 var(--topbar-border), 0 10px 28px var(--topbar-shadow);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 68px;
}

@media (min-width: 641px) {
  .topbar {
    padding: 0;
  }

  .topbar-inner {
    width: min(1280px, calc(100% - clamp(24px, 5vw, 64px)));
    margin: 0 auto;
  }
}

.nav-cta {
  border-radius: 999px;
}

/* ─── P2.2 Hero spotlight glow + scroll reveal ──────────────────────────── */
.lp-hero::before {
  height: 420px;
  background: radial-gradient(60% 100% at 50% 0%, var(--color-glow-blue) 0%, transparent 70%),
              linear-gradient(90deg, rgba(230, 126, 34, .14), rgba(75, 145, 220, .12));
  filter: blur(56px);
  opacity: .8;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   PHASE 3.1 — Dashboard
═══════════════════════════════════════════════════════════════════════════ */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.quick-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.quick-action:hover {
  border-color: var(--cobalt);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.quick-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-strong, rgba(255,255,255,.07));
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.dashboard-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.stat-card-accent {
  position: relative;
  border-left: 3px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease;
}

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

.stat-card-blue   { border-left-color: var(--color-blue-400); }
.stat-card-green  { border-left-color: var(--success); }
.stat-card-orange { border-left-color: var(--orange); }
.stat-card-cobalt { border-left-color: var(--cobalt); }

.target-list-row {
  align-items: center;
}

.target-list-row .target-row-lead {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.target-list-row .target-row-lead > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.domain-favicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-brand-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.empty-state-block {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 32px 16px;
  text-align: center;
}

.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--surface-strong, rgba(255,255,255,.07));
  color: var(--orange);
  font-size: 20px;
}

.empty-state-title {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.empty-state-body {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  max-width: 320px;
}

/* ─── Nav tile grid (Agency dashboard tool links) ────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.card {
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 4px 16px rgba(0,0,0,.25);
}

.card-link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--cobalt);
}

.card-link h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card-link p.muted {
  margin: 0;
  font-size: 13.5px;
}

.card-arrow {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: transform .15s ease, color .15s ease;
}

.card-link:hover .card-arrow {
  transform: translateX(3px);
  color: var(--cobalt);
}

@media (max-width: 900px) {
  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .quick-action {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   PHASE 3.2 — Target detail (package cards, scan history, consent modal)
═══════════════════════════════════════════════════════════════════════════ */
.pkg-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 240px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.pkg-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--cobalt);
}

.pkg-card-title {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
}

.pkg-card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pkg-card-badge {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.pkg-card-cta {
  margin-top: 4px;
  width: 100%;
}

/* Scan history row: icon + status + view-report button */
.target-history-row {
  grid-template-columns: minmax(220px, .8fr) minmax(380px, .95fr) auto;
}

.target-history-main {
  grid-template-columns: auto auto minmax(0, 1fr);
}

.history-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.history-status-completed {
  background: var(--success-bg);
  color: var(--success);
}

.history-status-failed {
  background: var(--critical-bg);
  color: var(--critical);
}

.history-status-pending,
.history-status-running {
  background: var(--warning-bg);
  color: var(--warning);
}

.target-history-view {
  justify-self: end;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .target-history-view {
    justify-self: start;
  }
}

/* Consent modal polish */
.consent-modal {
  border-radius: var(--radius-xl, 20px);
}

.consent-check-row {
  border-radius: var(--radius-md, 10px);
  transition: border-color .15s ease, background .15s ease;
}

.consent-check-row:hover {
  border-color: var(--cobalt);
}

.consent-modal-actions .button {
  min-height: 44px;
  font-size: 14px;
}

.consent-modal-actions .button:not(.secondary) {
  box-shadow: var(--shadow-glow);
}

/* ══════════════════════════════════════════════════════════════════════════
   PHASE 3.3 — Scan detail / report page
═══════════════════════════════════════════════════════════════════════════ */

/* P3-9 pass-rate donut gauge (replaces plain border ring) */
.report-grade-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px;
  border: 0;
  background:
    radial-gradient(circle at center, var(--panel) 68%, transparent 70%),
    conic-gradient(var(--success) calc(var(--pass-rate, 0) * 1%), var(--surface-strong) 0);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}

.report-grade-ring-letter {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 900;
  line-height: 1;
  color: var(--text);
}

.report-grade-ring-pct {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* P3-12 passed checks: compact 2-column tick grid */
.passed-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.passed-check-grid span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--success);
  color: var(--bg);
  font-size: 10px;
  font-weight: 900;
}

@media (max-width: 640px) {
  .passed-check-grid {
    grid-template-columns: 1fr;
  }
}

/* P3-10 collapsible finding cards */
.finding-report-card summary {
  list-style: none;
  cursor: pointer;
}

.finding-report-card summary::-webkit-details-marker {
  display: none;
}

.finding-report-card summary::after {
  content: "";
  flex: 0 0 auto;
  align-self: center;
  width: 9px;
  height: 9px;
  margin-left: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .15s ease;
}

.finding-report-card[open] summary::after {
  transform: rotate(-135deg);
}

.finding-report-card summary {
  display: flex;
}

.finding-head-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.cvss-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--critical-bg);
  color: var(--critical);
  font-size: 11px;
  font-weight: 800;
}

.reference-chip {
  display: inline-flex;
  max-width: 100%;
  margin: 0 6px 6px 0;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--color-blue-400);
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* ══════════════════════════════════════════════════════════════════════════
   PHASE 3.4 — Auth pages (split-screen login / signup)
═══════════════════════════════════════════════════════════════════════════ */
.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}

.auth-split-brand {
  display: flex;
  align-items: center;
  padding: clamp(32px, 6vw, 80px);
  background: var(--color-blue-800);
  color: #fff;
}

.auth-split-brand-inner {
  max-width: 440px;
}

.auth-split-brand .eyebrow {
  color: rgba(255, 255, 255, .8);
}

.auth-split-brand h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
}

.auth-split-sub {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .82);
  line-height: 1.6;
}

.auth-highlight-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-highlight-list li {
  position: relative;
  padding-left: 26px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.auth-highlight-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  font-size: 11px;
  font-weight: 900;
}

.auth-cat-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.auth-cat-list li {
  padding-left: 26px;
  position: relative;
}

.auth-cat-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .55);
}

.auth-cat-name {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.auth-cat-items {
  display: block;
  color: rgba(255, 255, 255, .7);
  font-size: 12.5px;
  line-height: 1.5;
}

.auth-split-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 56px);
  background: var(--bg);
}

.auth-form-card {
  width: 100%;
  max-width: 400px;
}

.auth-form-card h1 {
  margin: 0 0 20px;
}

.auth-form {
  gap: 16px;
}

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

.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-checkbox-row input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.checkbox-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .auth-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-split-brand {
    padding: 32px clamp(20px, 6vw, 40px);
  }

  .auth-split-brand-inner {
    max-width: none;
  }
}

/* P3-15 taller inputs for easier tap targets */
input {
  min-height: 44px;
}

/* ══════════════════════════════════════════════════════════════════════════
   PHASE 3.5 — Pricing FAQ accordion
═══════════════════════════════════════════════════════════════════════════ */
.pricing-faq-accordion {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.pricing-faq-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 10px);
  background: var(--surface-soft);
}

.pricing-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}

.pricing-faq-item summary::-webkit-details-marker {
  display: none;
}

.pricing-faq-item summary h3 {
  margin: 0;
  font-size: 15px;
}

.pricing-faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .15s ease;
}

.pricing-faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.pricing-faq-item p {
  margin: 12px 0 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   PHASE 3.6 — Global components (button variants, toasts, page transition)
═══════════════════════════════════════════════════════════════════════════ */

/* P3-20 button variants */
.button-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-outline:hover {
  background: var(--surface-strong, rgba(255,255,255,.07));
  border-color: var(--cobalt);
}

.button-ghost {
  background: transparent;
  color: var(--muted);
  border: 0;
  box-shadow: none;
}

.button-ghost:hover {
  background: var(--surface-soft, rgba(255,255,255,.035));
  color: var(--text);
  transform: none;
}

.button-outline:focus-visible,
.button-ghost:focus-visible {
  outline: 3px solid var(--focus-ring, rgba(230,126,34,.28));
  outline-offset: 2px;
}

/* P3-19 page fade-in on load */
main.shell,
main:not(.shell) {
  animation: page-fade-in .35s ease both;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  main.shell,
  main:not(.shell) {
    animation: none;
  }
}

/* GDPR cookie consent banner — fixed to the viewport bottom so it's visible
   immediately on load, not only after scrolling to the footer. */
.cookie-banner {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  padding: 16px max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
  background: var(--topbar-bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner-text {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions {
    justify-content: flex-end;
  }
}

/* P3-18 toast notifications */
.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 40px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 10px);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: 13px;
  animation: toast-in .2s ease both;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--critical); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info    { border-left: 3px solid var(--color-blue-400); }

.toast-close {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.toast.is-leaving {
  animation: toast-out .18s ease both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

/* ══════════════════════════════════════════════════════════════════════════
   PHASE 4 — Cross-cutting polish
═══════════════════════════════════════════════════════════════════════════ */

/* P4-3 hover lift on interactive cards */
.panel,
.stat-card {
  transition: transform .15s ease, box-shadow .15s ease;
}

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

.lp-pkg {
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.lp-pkg:hover {
  transform: translateY(-3px);
}

/* P4-5 hero mockup: finding chips appear one by one on load */
.lp-report-row {
  opacity: 0;
  transform: translateY(8px);
  animation: chip-reveal .45s ease forwards;
}

.lp-report-row:nth-child(1) { animation-delay: .3s; }
.lp-report-row:nth-child(2) { animation-delay: .55s; }
.lp-report-row:nth-child(3) { animation-delay: .8s; }
.lp-report-row:nth-child(4) { animation-delay: 1.05s; }

@keyframes chip-reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-report-row {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* P4-2 mobile nav becomes a full-screen overlay drawer */
html.nav-drawer-open,
body.nav-drawer-open {
  overflow: hidden;
  height: 100%;
}

@media (max-width: 640px) {
  /* .topbar's own backdrop-filter establishes a containing block for any
     position:fixed descendant (per spec), which would confine the "full
     screen" drawer to the topbar's own box instead of the viewport. Disable
     it at this breakpoint so .primary-nav's fixed positioning resolves
     against the viewport as intended; the drawer supplies its own blur. */
  .topbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .topbar .primary-nav {
    position: fixed;
    z-index: 150;
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    max-height: none;
    margin: 0;
    padding: 96px 24px 32px;
    border: 0;
    border-radius: 0;
    background: var(--topbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    align-content: start;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }

  .topbar .primary-nav.is-open {
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .22s ease, transform .22s ease;
  }

  .topbar .primary-nav a:not(.button),
  .topbar .primary-nav .button,
  .topbar .primary-nav .link-button,
  .topbar .primary-nav .nav-meta {
    min-height: 48px;
    font-size: 15px;
  }

  .topbar .primary-nav .nav-dropdown > summary {
    min-height: 48px;
    font-size: 15px;
  }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .topbar .primary-nav {
    transition: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   PHASE 2 (continued) — Trust logos, workflow timeline, comparison table,
   package tier borders, safety pattern background
═══════════════════════════════════════════════════════════════════════════ */

/* P2-9 trust logo placeholder row */
.lp-trust-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.lp-trust-logos-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.lp-trust-logo-slot {
  width: 64px;
  height: 22px;
  border-radius: 4px;
  background: var(--surface-strong, rgba(255,255,255,.07));
  opacity: .6;
}

.lp-trust-badge {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong, rgba(255,255,255,.05));
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* P2-10 animated scan-progress rail on the hero mockup */
.lp-report-scan-rail {
  position: relative;
  height: 3px;
  overflow: hidden;
  background: var(--surface-soft);
}

.lp-report-scan-rail span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 32%;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  animation: report-scan-sweep 2.2s ease-in-out infinite;
}

@keyframes report-scan-sweep {
  0% { transform: translateX(-40%); }
  100% { transform: translateX(340%); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-report-scan-rail span {
    animation: none;
  }
}

/* P2-12 feature card icons + hover lift */
.lp-proof-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: var(--radius-md, 10px);
  font-size: 20px;
}

.lp-proof-icon-blue   { background: rgba(75, 145, 220, .14); }
.lp-proof-icon-orange { background: rgba(230, 126, 34, .14); }
.lp-proof-icon-green  { background: rgba(39, 174, 96, .14); }

.lp-proof-card {
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.lp-proof-card:hover {
  transform: translateY(-3px);
  border-color: var(--cobalt);
  box-shadow: var(--shadow-md);
}

/* P2-13 workflow timeline: connecting line + circular step numbers */
.lp-steps {
  position: relative;
}

.lp-steps::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--orange));
  opacity: .35;
  z-index: 0;
}

.lp-step {
  position: relative;
  z-index: 1;
}

.lp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-strong, rgba(255,255,255,.07));
  border: 1px solid var(--line);
  font-size: 15px;
  opacity: 1;
  color: var(--text);
}

@media (max-width: 900px) {
  .lp-steps::before {
    display: none;
  }
}

/* P2-14 comparison mini-table */
.lp-compare-table-wrap {
  margin-top: 36px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
}

.lp-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.lp-compare-table th,
.lp-compare-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.lp-compare-table thead th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.lp-compare-table tbody th {
  color: var(--text);
  font-weight: 800;
}

.lp-compare-table tbody tr:last-child th,
.lp-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.lp-compare-featured {
  background: rgba(230, 126, 34, .06);
}

/* P2-15 package cards: colored top border per tier */
.lp-pkg {
  border-top-width: 3px;
  border-top-style: solid;
}

.lp-pkg[data-tier="free"]       { border-top-color: var(--success); }
.lp-pkg[data-tier="developer"]  { border-top-color: var(--color-blue-400); }
.lp-pkg[data-tier="team"]       { border-top-color: var(--cobalt); }
.lp-pkg[data-tier="agency"]     { border-top-color: var(--orange); }
.lp-pkg[data-tier="enterprise"] { border-top-color: var(--critical); }

/* P2-16 pentest package: distinct featured/ribbon variant (not orange, to
   differentiate from the Basic Hygiene featured card) */
.lp-pkg-pentest.lp-pkg-featured {
  border-color: var(--critical);
  box-shadow: 0 0 0 1px var(--critical), 0 4px 24px rgba(231, 76, 60, .18);
}

.lp-pkg-pentest .lp-pkg-badge {
  background: rgba(231, 76, 60, .15);
  color: var(--critical);
}

.lp-pkg-pentest .lp-pkg-icon {
  background: rgba(231, 76, 60, .12);
  color: var(--critical);
}

/* P2-17 safety section: subtle dot-grid pattern on the dark panel */
#safety.lp-section-alt {
  position: relative;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: center;
}

[data-theme="light"] #safety.lp-section-alt {
  background-image: radial-gradient(rgba(26, 69, 121, .12) 1px, transparent 1px);
}

/* P2-18 footer: 4-column layout with gradient separator + newsletter UI */
.site-footer {
  position: relative;
  padding: 40px 0 24px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cobalt), var(--orange), transparent);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.footer-col-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer-col-brand .footer-brand {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

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

.footer-col .footer-nav,
.footer-col .footer-legal-nav {
  display: grid;
  gap: 10px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin: 0 0 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--muted);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  transition: color .15s ease, background .15s ease;
}

.footer-social a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--cobalt) 18%, transparent);
}

.footer-contact-link {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
}

.footer-newsletter {
  display: flex;
  gap: 8px;
}

.footer-newsletter input {
  min-height: 38px;
  font-size: 13px;
}

.footer-newsletter .button {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-tagline {
    max-width: none;
  }

  .footer-newsletter {
    flex-direction: column;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   PHASE 3.3 (continued) — P3-11 sticky report sidebar
═══════════════════════════════════════════════════════════════════════════ */
.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 20px;
  align-items: start;
}

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

.report-aside {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 16px;
}

.report-aside-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.report-aside-panel .button {
  width: 100%;
}

.report-aside-severity-list {
  display: grid;
  gap: 10px;
}

.report-aside-severity-row {
  display: grid;
  grid-template-columns: minmax(58px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.report-aside-severity-row strong {
  color: var(--text);
  font-size: 13px;
  text-align: right;
}

@media (max-width: 980px) {
  .report-layout {
    grid-template-columns: 1fr;
  }

  .report-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .report-aside {
    grid-template-columns: 1fr;
  }
}

/* ── Billing interval toggle + scan credit packs ─────────────────────────── */

.billing-interval-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin: 1.5rem 0;
  text-align: center;
}

.interval-switch {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-alt);
}

.interval-option {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.15rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.interval-option:hover { color: var(--text); }

.interval-option.is-active {
  background: var(--accent);
  color: #fff;
}

.interval-save {
  padding: .1rem .45rem;
  border-radius: 999px;
  background: rgba(241,196,15,.18);
  color: var(--yellow);
  font-size: .72rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.interval-option.is-active .interval-save {
  background: rgba(255,255,255,.22);
  color: #fff;
}

.pricing-billed-note {
  margin: .15rem 0 0;
  font-size: .82rem;
}

.credit-packs { margin-top: 2rem; }

.credit-packs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.credit-packs-head h2 { margin: 0 0 .35rem; }
.credit-packs-head p { margin: 0; max-width: 46ch; }

.credit-balance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .1rem;
  margin: 0;
}

.credit-balance-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.credit-balance-label {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.credit-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.credit-pack {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-alt);
  text-align: center;
}

.credit-pack-scans {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.credit-pack-price {
  margin: .3rem 0 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.credit-pack-rate {
  margin: .1rem 0 .9rem;
  font-size: .8rem;
}

.credit-pack form { margin: 0; }
.credit-pack .button { width: 100%; }

.credit-pack-note {
  margin: 1.1rem 0 0;
  font-size: .85rem;
}

@media (max-width: 560px) {
  .credit-balance { align-items: flex-start; }
}
