@import "/_shared/vilkax-a11y.css"; /* a11y system: reduced-motion + focus-ring (must be first) */
/* ============================================================
 * Vilkax · /app/ - end-user PWA dashboard
 * ============================================================
 *
 * This is the end-user-facing surface. Different from /admin/wolf-den
 * (operator) and from / (marketing) - it's the THIRD dashboard
 * layer, and the one that ships inside the installed PWA on
 * Android / iOS / Mac / Windows / Linux.
 *
 * Reuses brand tokens from /style.css. Layout is "dashboard
 * dense" - multiple cards per row on desktop, single-column on
 * phones. No hero composition here - the user came here to DO
 * something, not absorb brand.
 */

.app-body {
  background: var(--bg-absolute, #0B1426);
  /* Override the centered-hero layout /style.css applies to <body>. */
  display: block;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── Top bar ─────────────────────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(11, 20, 38, 0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-brand-mark {
  /* Pass-169 - header brandmark now uses vilkax-brandmark-row.png
     (wolf + VILKAX wordmark composite, 1280×320 ~4:1).  44 px tall
     → ~176 px wide.  Glow stack uses Ice + Signal Blue + a soft
     Bone highlight so the chrome wordmark catches light when
     hovered. */
  width: auto;
  height: 44px;
  max-width: 220px;
  filter:
    drop-shadow(0 4px 12px rgba(61, 123, 217, 0.32))
    drop-shadow(0 0 18px rgba(127, 207, 230, 0.26))
    drop-shadow(0 0 4px  rgba(233, 238, 246, 0.20));
  transition: transform 220ms ease, filter 220ms ease;
  will-change: transform, filter;
}
.app-brand-mark:hover,
a:focus-visible > .app-brand-mark {
  transform: translateY(-1px) scale(1.04);
  filter:
    drop-shadow(0 6px 18px rgba(61, 123, 217, 0.50))
    drop-shadow(0 0 28px rgba(127, 207, 230, 0.46))
    drop-shadow(0 0 6px  rgba(233, 238, 246, 0.30));
}
@media (max-width: 640px) {
  .app-brand-mark { height: 36px; max-width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-brand-mark { transition: none; }
  .app-brand-mark:hover { transform: none; }
}
.app-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.app-brand-name {
  font-weight: 800;
  letter-spacing: 0.20em;
  color: var(--text-strong);
  font-size: 13px;
}
.app-brand-sub {
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 3px;
}
.app-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.app-nav-link {
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 180ms ease, background 180ms ease;
}
.app-nav-link:hover { color: var(--text-strong); background: rgba(255, 255, 255, 0.04); }
.app-nav-link.is-active {
  color: var(--brand-primary-bright, #3b82f6);
  background: rgba(77, 169, 255, 0.10);
}
.app-install-btn {
  margin-left: 8px;
  background: linear-gradient(135deg, var(--brand-primary-bright, #3b82f6), var(--brand-primary, #2563EB));
  color: #fff;
  border: 0;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-brand, "Manrope", sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.30);
}
.app-install-btn:hover { filter: brightness(1.10); }

/* ── Tier badge + sign-in link in the nav ───────────────────── */
.app-tier-badge {
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.app-tier-badge[data-tier="free"]       { color: #94a3b8; }
.app-tier-badge[data-tier="pro"]        { color: var(--brand-primary-bright, #3b82f6); }
.app-tier-badge[data-tier="enterprise"] { color: #10b981; }
.app-signin-link {
  margin-left: 6px;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand-primary-bright, #3b82f6);
  text-decoration: none;
}
.app-signin-link:hover { text-decoration: underline; }

@media (max-width: 540px) {
  .app-header   { flex-wrap: wrap; }
  .app-nav-link { padding: 8px 9px; font-size: 11px; letter-spacing: 0.05em; }
}

/* ── Main column ─────────────────────────────────────────────── */
.app-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Shield banner (the orb + headline + 24h counter) ─────── */
.app-shield {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 22px;
  border-radius: 18px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(37, 99, 235, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}
.app-shield-orb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%,
      rgba(77, 169, 255, 0.55),
      rgba(37, 99, 235, 0.20) 60%,
      transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: appPulse 3.5s ease-in-out infinite;
}
.app-shield-orb-core {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-primary-bright) 0%, var(--brand-primary) 100%);
  box-shadow: 0 0 32px rgba(77, 169, 255, 0.65), inset 0 0 12px rgba(255, 255, 255, 0.30);
}
.app-shield[data-state="degraded"] .app-shield-orb-core {
  background: radial-gradient(circle, #fbbf24, #f59e0b);
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.55), inset 0 0 10px rgba(255, 255, 255, 0.30);
}
.app-shield[data-state="offline"] .app-shield-orb-core {
  background: radial-gradient(circle, #ff6b6b, #b91c1c);
  box-shadow: 0 0 24px rgba(255, 107, 107, 0.45), inset 0 0 10px rgba(255, 255, 255, 0.25);
}
@keyframes appPulse {
  0%, 100% { transform: scale(1.000); opacity: 1; }
  50%      { transform: scale(1.030); opacity: 0.88; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shield-orb { animation: none; }
}
.app-shield-headline {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-strong);
  line-height: 1.2;
}
.app-shield-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.app-shield-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
}
.app-shield-meta-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.app-shield-meta-lbl {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .app-shield      { grid-template-columns: 64px 1fr; }
  .app-shield-orb  { width: 64px; height: 64px; }
  .app-shield-orb-core { width: 34px; height: 34px; }
  .app-shield-meta { grid-column: 1 / -1; text-align: left; flex-direction: row; align-items: baseline; gap: 8px; margin-top: 4px; }
  .app-shield-meta-num { font-size: 24px; }
}

/* ── Card grid (live counters) ───────────────────────────────── */
.app-grid {
  display: grid;
  gap: 14px;
}
.app-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.app-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-card-full {
  /* Full-width card with a header - used for the AB board,
   * coverage, OS info, and the locked personal panel. */
  padding: 20px 22px;
  gap: 12px;
}
.app-card-lbl {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.app-card-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.app-card-foot {
  font-size: 11px;
  color: var(--text-muted);
}
.app-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  padding-bottom: 10px;
  margin-bottom: 6px;
}
.app-card-h {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.app-card-sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.app-card-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── AB engine row ─────────────────────────────────────────── */
.app-ab {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-ab-row {
  display: grid;
  grid-template-columns: 1fr auto 110px auto;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.app-ab-row:last-child { border-bottom: 0; }
.app-ab-model {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 12px;
  color: var(--text-strong);
}
.app-ab-msgs {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.app-ab-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}
.app-ab-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 320ms ease;
}
.app-ab-bar-fill[data-low="true"] {
  background: linear-gradient(90deg, #ff6b6b, #f97316);
}
.app-ab-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

/* ── Coverage pills ───────────────────────────────────────── */
.app-coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.app-cov-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
.app-cov-pill[data-on="true"] {
  border-color: rgba(16, 185, 129, 0.40);
  color: #10b981;
}
.app-cov-pill[data-on="false"] {
  border-color: rgba(148, 163, 184, 0.30);
  color: #94a3b8;
}
.app-cov-pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

/* ── OS feature matrix ─────────────────────────────────────── */
.app-os-hint {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-strong);
}
.app-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.app-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}
.app-feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.app-feature[data-on="true"]  .app-feature-icon { background: rgba(16, 185, 129, 0.18); color: #10b981; }
.app-feature[data-on="false"] .app-feature-icon { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.app-feature-name { color: var(--text-strong); font-weight: 600; }
.app-feature-state { margin-left: auto; font-size: 11px; color: var(--text-muted); }

/* ── Locked personal panel ─────────────────────────────────── */
.app-card-locked {
  position: relative;
  opacity: 0.92;
}
.app-card-locked::before {
  content: "🔒";
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 16px;
  opacity: 0.55;
}
.app-locked-body {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.app-empty {
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
  padding: 14px;
  margin: 0;
}

/* ── Footer ────────────────────────────────────────────────── */
.app-footer {
  text-align: center;
  padding: 20px 16px 30px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ============================================================
 * /business/ portal - reuses .app-* primitives, adds hero + CTA
 * ============================================================ */

.biz-hero {
  display: grid;
  grid-template-columns: 1fr 160px;
  align-items: center;
  gap: 24px;
  padding: 32px 28px;
  border-radius: 20px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(37, 99, 235, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  margin-bottom: 4px;
}
.biz-hero-h {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.0vw, 32px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text-strong);
  line-height: 1.2;
}
.biz-hero-accent {
  color: var(--brand-primary-bright, #3b82f6);
}
.biz-hero-sub {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.biz-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.biz-hero-cta .submit-btn {
  text-decoration: none;
  display: inline-block;
}
.biz-secondary {
  color: var(--brand-primary-bright, #3b82f6);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.biz-secondary:hover { text-decoration: underline; }
.biz-hero-eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-primary-bright, #3b82f6);
}
.biz-hero-h { font-size: clamp(26px, 4.0vw, 44px); }
.biz-hero-sub { font-size: 15px; max-width: 56ch; }
.biz-hero-foot {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--text-dim);
}

/* ── Core-value strip (one engine, two ways in) ──────────────── */
.biz-value {
  padding: 22px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}
.biz-value-lead {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text-strong);
}
.biz-value-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.biz-value-k {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-primary-bright, #3b82f6);
}
.biz-value-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.biz-value-body strong { color: var(--text-strong); font-weight: 700; }

.biz-value-roi {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 64ch;
}

/* ── Threats grid (grouped, scannable chips) ─────────────────── */
.biz-threats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.biz-threat-group {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.biz-threat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.biz-threat-ic {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  font-size: 16px;
  background: rgba(91, 107, 255, 0.12);
  border: 1px solid rgba(91, 107, 255, 0.3);
  color: #7C8EFF;
  flex: 0 0 auto;
}
.biz-threat-h { margin: 0; font-size: 15px; font-weight: 700; color: #fff; }
.biz-threat-hook {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(199, 207, 217, 0.7);
}
.biz-threat-chips {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.biz-threat-chips li {
  font-size: 11.5px;
  line-height: 1.3;
  color: rgba(225, 230, 238, 0.82);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.biz-threat-foot {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(199, 207, 217, 0.55);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
.biz-threat-foot strong { color: rgba(225, 230, 238, 0.85); font-weight: 700; }
.biz-threat-tier {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7C8EFF;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(91, 107, 255, 0.12);
  border: 1px solid rgba(91, 107, 255, 0.3);
}
.biz-threats-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(91, 107, 255, 0.06);
  border: 1px solid rgba(91, 107, 255, 0.18);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.biz-threats-note strong { color: var(--text-strong); font-weight: 700; }

/* ── Three pillars: company / staff / tools ──────────────────── */
.biz-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.biz-pillar {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.biz-pillar-ic {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  font-size: 18px;
  background: rgba(91, 107, 255, 0.12);
  border: 1px solid rgba(91, 107, 255, 0.3);
  color: #7C8EFF;
  margin-bottom: 12px;
}
.biz-pillar-h { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: #fff; letter-spacing: 0.01em; }
.biz-pillar-lead { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: #7C8EFF; }
.biz-pillar-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.biz-pillar-list li {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(225, 230, 238, 0.78);
}
.biz-pillar-list li::before {
  content: "›";
  position: absolute;
  left: 2px;
  top: -1px;
  color: #7C8EFF;
  font-weight: 700;
}
.biz-pillar-out {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(199, 207, 217, 0.7);
}
.biz-pillar-out strong { color: rgba(225, 230, 238, 0.92); font-weight: 700; }

/* ── Industry strip (capabilities, no fabricated case studies) ─── */
.biz-industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.biz-industry {
  padding: 16px 16px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.biz-industry-h { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #fff; }
.biz-industry-body { margin: 0; font-size: 12.5px; line-height: 1.55; color: rgba(199, 207, 217, 0.7); }

/* ── The Vilkax edge (four pillars) ──────────────────────────── */
.biz-edge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.biz-edge {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.biz-edge-k {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7C8EFF;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(91, 107, 255, 0.12);
  border: 1px solid rgba(91, 107, 255, 0.3);
}
.biz-edge-h { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #fff; }
.biz-edge-body { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(199, 207, 217, 0.66); }
.biz-edge-body em { font-style: italic; color: rgba(225, 230, 238, 0.9); }
.biz-hero-orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%,
      rgba(77, 169, 255, 0.45),
      rgba(37, 99, 235, 0.16) 60%,
      transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: appPulse 4.5s ease-in-out infinite;
}
.biz-hero-orb-core {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-primary-bright) 0%, var(--brand-primary) 100%);
  box-shadow: 0 0 48px rgba(77, 169, 255, 0.55), inset 0 0 16px rgba(255, 255, 255, 0.30);
}

@media (max-width: 720px) {
  .biz-hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .biz-hero-orb { display: none; }
}

/* ── Business capability grid ────────────────────────────── */
.biz-grid {
  display: grid;
  gap: 14px;
}
.biz-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.biz-cap-h {
  margin: 6px 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-strong);
}
.biz-cap-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}
.biz-cap-body code {
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 11px;
}

/* ── Feature list (the "what you'll see" bullets) ─────────── */
.biz-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.biz-feature-list li {
  position: relative;
  padding: 8px 12px 8px 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}
.biz-feature-list li::before {
  content: "▸";
  position: absolute;
  left: 10px;
  top: 9px;
  color: var(--brand-primary-bright, #3b82f6);
  font-weight: 700;
}
.biz-feature-list strong {
  color: var(--text-strong);
  font-weight: 700;
}
.biz-feature-list em {
  font-style: italic;
  color: var(--text-strong);
}
.biz-feature-list code {
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 11px;
}

/* ── Footer CTA ──────────────────────────────────────────── */
.biz-cta-foot {
  text-align: center;
  padding: 22px 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.biz-cta-foot a {
  margin-left: 6px;
}

/* ── Business landing · video gap placeholders ──────────────────────
 * A 16:9 slot with a graceful "video coming soon" state. Swap the
 * inner .biz-video-ph for a real <iframe>/<video> at upload time —
 * the slot keeps the layout from shifting. */
.biz-video-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(91,107,255,0.10), transparent 60%),
    rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 4px;
}
.biz-video-slot iframe,
.biz-video-slot video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.biz-video-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 24px;
}
.biz-video-ic {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  font-size: 20px; color: #7C8EFF;
  background: rgba(91,107,255,0.14);
  border: 1px solid rgba(91,107,255,0.32);
  margin-bottom: 4px;
}
.biz-video-ph-t {
  margin: 0; font-size: 15px; font-weight: 700; color: #fff;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.biz-video-ph-s {
  margin: 0; font-size: 13px; line-height: 1.55; max-width: 46ch;
  color: rgba(199,207,217,0.6);
}

/* ── Business landing · downloads (coming soon) ─────────────────── */
.biz-dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.biz-dl-card {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
}
.biz-dl-ic {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px; font-size: 19px;
  background: rgba(91,107,255,0.12); border: 1px solid rgba(91,107,255,0.3);
  color: #7C8EFF; margin-bottom: 10px;
}
.biz-dl-h { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.biz-dl-body { font-size: 13px; line-height: 1.5; color: rgba(199,207,217,0.62); margin: 0 0 12px; }
.biz-dl-state {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(199,207,217,0.55);
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
}

/* ── Business landing · contact box ─────────────────────────────── */
.biz-contact-form { margin-top: 8px; max-width: 640px; }
.biz-contact-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 560px) {
  .biz-contact-row { grid-template-columns: 1fr; }
}
.biz-contact-field { display: flex; flex-direction: column; }
.biz-contact-textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
/* honeypot — always off-screen; a real user never sees or fills it */
.biz-hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px !important; height: 1px !important; opacity: 0 !important;
  pointer-events: none;
}

/* ── Shield 2.0 · PRS card ──────────────────────────────────── */
.prs-card {
  --prs-band-c: #7fcfe6;
  position: relative;
  padding: 22px 24px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
    rgba(11,20,38,0.65);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 24px 60px -28px rgba(0,0,0,0.65),
    0 0 30px -6px var(--prs-band-c);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
}
.prs-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--prs-band-c), transparent);
  opacity: 0.85;
}
.prs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.prs-score-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.prs-score {
  font-family: var(--font-brand, "Manrope", sans-serif);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: -0.02em;
  color: var(--prs-band-c);
  line-height: 1;
}
.prs-band-pill {
  font-size: 10px;
  letter-spacing: 0.20em;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: var(--prs-band-c);
}
.prs-delta {
  font-family: var(--font-brand, "Manrope", sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}
.prs-delta[data-dir="up"]   { color: #5eead4; }
.prs-delta[data-dir="down"] { color: #fca5a5; }
.prs-spark-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.prs-spark {
  width: 180px;
  height: 48px;
  display: block;
}
.prs-spark-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
.prs-h {
  margin: 12px 0 8px;
  font-family: var(--font-brand, "Manrope", sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.prs-reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prs-reasons li {
  font-size: 13px;
  color: var(--text-strong);
  padding: 6px 0;
  border-left: 2px solid var(--prs-band-c);
  padding-left: 10px;
}
.prs-drilldown {
  margin-top: 12px;
}
.prs-drilldown summary {
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 700;
  padding: 4px 0;
}
.prs-components {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px;
}
.prs-components li {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "lbl val"
    "ev ev";
  gap: 2px 8px;
  font-size: 12px;
}
.prs-comp-lbl { grid-area: lbl; font-weight: 700; color: var(--text-strong); }
.prs-comp-val { grid-area: val; font-weight: 800; color: var(--text-muted); font-family: ui-monospace, monospace; }
.prs-comp-val.is-up   { color: #5eead4; }
.prs-comp-val.is-down { color: #fca5a5; }
.prs-comp-ev  { grid-area: ev; color: var(--text-muted); font-size: 11.5px; }
@media (max-width: 540px) {
  .prs-spark { width: 140px; height: 40px; }
}

/* ── Personal protection feed (WIRING_AUDIT pass 2 #14).
       Replaces the locked "early access" card. ─────────── */
.app-feed-list {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.app-feed-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
}
.app-feed-ts {
  color: var(--text-dim, #6b7588);
  font-variant-numeric: tabular-nums;
}
.app-feed-kind {
  color: var(--text-strong, #e7eef7);
  font-weight: 600;
}
.app-feed-kind[data-severity="warning"] { color: #f5b066; }
.app-feed-kind[data-severity="error"],
.app-feed-kind[data-severity="critical"] { color: #ff8896; }
.app-feed-meta {
  color: var(--text-muted, #94a0b3);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Tier-locked surface (rendered by VlxTier.mountLock).
       Used by Hearth VRM, future Vault stake controls,
       any feature gated above the user's plan. ─────────── */
.vlx-tier-locked {
  position: relative;
}
.vlx-tier-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(245,158,11,0.10), rgba(245,158,11,0.05));
  border: 1px solid rgba(245,158,11,0.34);
  color: var(--text-strong, #e7eef7);
  font-size: 13px;
  line-height: 1.45;
}
.vlx-tier-cta > svg { color: #f5b066; flex: 0 0 auto; }
.vlx-tier-cta-text { font-weight: 600; flex: 1 1 auto; min-width: 0; }
.vlx-tier-cta-sub {
  flex: 1 1 100%;
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-muted, #94a0b3);
  line-height: 1.5;
  font-weight: 400;
}
.vlx-tier-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fcd34d, #f59e0b);
  color: #1a0e00;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: filter 140ms ease, transform 120ms ease;
}
.vlx-tier-cta-btn:hover  { filter: brightness(1.06); }
.vlx-tier-cta-btn:active { transform: translateY(1px); }
.vlx-tier-cta-btn:focus-visible {
  outline: 3px solid rgba(245,158,11,0.6);
  outline-offset: 2px;
}
/* When the lock is because the user is signed out, use the cool
   palette instead of the warm "you can pay" palette - different
   call to action. */
.vlx-tier-anon .vlx-tier-cta {
  background: linear-gradient(180deg, rgba(127,207,230,0.10), rgba(127,207,230,0.04));
  border-color: rgba(127,207,230,0.34);
}
.vlx-tier-anon .vlx-tier-cta > svg { color: #7FCFE6; }
.vlx-tier-anon .vlx-tier-cta-btn {
  background: linear-gradient(180deg, var(--brand-primary-bright), var(--brand-primary));
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .vlx-tier-cta-btn { transition: none; }
}

/* ── Toast notifications (replaces alert()) ── */
.vlx-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: rgba(15,23,42,0.94); color: #34D399; padding: 11px 22px;
  border-radius: 14px; font-size: 13px; font-weight: 600; z-index: 99999;
  border: 1px solid rgba(52,211,153,0.3); backdrop-filter: blur(12px);
  opacity: 0; transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none; max-width: 90vw; text-align: center;
  font-family: var(--f-body, system-ui, sans-serif);
}
.vlx-toast.in { opacity: 1; transform: translateX(-50%) translateY(0); }
.vlx-toast--error { color: #F87171; border-color: rgba(248,113,113,0.3); }
.vlx-toast--warn  { color: #FBBF24; border-color: rgba(251,191,36,0.3); }

/* ── Business landing: named-tools grid (Pass 135) ──────────────────── */
.biz-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.biz-tool {
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
}
.biz-tool-ic {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  font-size: 19px;
  background: rgba(91,107,255,0.12);
  border: 1px solid rgba(91,107,255,0.3);
  color: #7C8EFF;
  margin-bottom: 10px;
}
.biz-tool-h { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.biz-tool-body { font-size: 13px; line-height: 1.5; color: rgba(199,207,217,0.62); margin: 0 0 10px; }
.biz-tool-caps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.biz-tool-caps li {
  font-size: 12px; color: rgba(199,207,217,0.55); padding-left: 16px; position: relative;
}
.biz-tool-caps li::before {
  content: "›"; position: absolute; left: 2px; color: #7C8EFF; font-weight: 700;
}
.biz-inline-cta {
  background: none; border: none; cursor: pointer; padding: 0;
  font: inherit; color: var(--brand-primary-bright, #3b82f6);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.biz-inline-cta:hover { text-decoration: underline; }

/* ── Business signup dialog ─────────────────────────────────────────── */
.biz-signup-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(4,8,18,0.72);
  backdrop-filter: blur(6px);
  animation: vlx-fadeIn 0.2s ease-out;
}
/* A fixed overlay MUST honour [hidden] — a bare display:flex above beats the
   UA [hidden]{display:none} on specificity, so the overlay rendered on load
   and blocked the whole page. This guard makes hidden actually hidden. */
.biz-signup-overlay[hidden] { display: none !important; }
.biz-signup-card {
  position: relative;
  width: 100%; max-width: 420px;
  padding: 30px 30px 26px;
  border-radius: 18px;
  background: rgba(18,30,56,0.92);
  border: 1px solid rgba(91,107,255,0.22);
  box-shadow: 0 36px 80px -22px rgba(91,107,255,0.30), inset 0 1px 0 rgba(255,255,255,0.04);
}
.biz-signup-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; cursor: pointer;
  color: rgba(199,207,217,0.5); font-size: 17px; line-height: 1;
}
.biz-signup-close:hover { color: #fff; }
.biz-signup-h { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.biz-signup-sub { font-size: 13px; color: rgba(199,207,217,0.6); margin: 0 0 18px; line-height: 1.5; }
.biz-signup-label {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: rgba(199,207,217,0.5); margin: 12px 0 5px;
}
.biz-signup-input {
  width: 100%; padding: 11px 13px; font-size: 14px; font-family: inherit;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; color: #fff; box-sizing: border-box;
}
.biz-signup-input:focus { outline: none; border-color: rgba(91,107,255,0.6); box-shadow: 0 0 0 3px rgba(91,107,255,0.15); }
.biz-signup-submit { width: 100%; margin-top: 18px; }
.biz-signup-msg { font-size: 12.5px; color: #F87171; margin: 10px 0 0; min-height: 1.2em; line-height: 1.45; }
.biz-signup-msg[data-ok="true"] { color: #34D399; }

/* ── First-sign-in welcome banner (/app/?welcome=1) ─────────────────── */
/* Styled via class — NOT a style="" attribute — because the production
   CSP is style-src 'self': inline styles are blocked, which left the raw
   banner text visible to every visitor. Default-hidden via the hidden
   attribute; welcome-banner.js flips el.hidden. */
.vlx-welcome {
  position: fixed; left: 50%; top: 14px; transform: translateX(-50%);
  z-index: 9999;
  background: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
  color: #fff;
  padding: 14px 22px; border-radius: 10px;
  font: 600 15px/1.3 Manrope, system-ui, sans-serif;
  box-shadow: 0 10px 30px rgba(2,18,52,0.45);
  max-width: 480px; text-align: center; cursor: pointer;
}
/* Belt-and-suspenders: nothing above sets display on .vlx-welcome, but a
   fixed banner MUST honour [hidden] even if a future rule does (same
   guard the .biz-signup-overlay carries). */
.vlx-welcome[hidden] { display: none !important; }
.vlx-welcome-kicker {
  display: block; font-size: 13px; opacity: 0.85;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.vlx-welcome-body { display: block; margin-top: 4px; }

/* ── Smart 2FA nudge card ────────────────────────────────── */
.app-2fa-nudge {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; margin: 0 0 12px;
  border-radius: 10px;
  background: linear-gradient(135deg,rgba(59,130,246,.12),rgba(99,102,241,.08));
  border: 1px solid rgba(59,130,246,.25);
  color: var(--text-secondary, #cbd5e1);
}
.app-2fa-nudge[hidden] { display: none; }
.app-2fa-nudge-icon { font-size: 1.4rem; flex-shrink: 0; }
.app-2fa-nudge-body { flex: 1; font-size: .82rem; line-height: 1.35; }
.app-2fa-nudge-body strong { display: block; color: #f1f5f9; font-size: .88rem; margin-bottom: 2px; }
.app-2fa-nudge-copy { opacity: .7; }
.app-2fa-nudge-link {
  padding: 6px 12px; border-radius: 7px; flex-shrink: 0;
  background: rgba(59,130,246,.18); border: 1px solid rgba(59,130,246,.30);
  color: #60a5fa; font-size: .78rem; font-weight: 600;
  white-space: nowrap; text-decoration: none;
  transition: background 180ms;
}
.app-2fa-nudge-link:hover { background: rgba(59,130,246,.28); }
