/* ==========================================================================
   DockVerdict — Enterprise B2B SaaS & Financial Audit Design System
   Built on UI/UX Pro Max Guidelines:
   - WCAG AA (>=4.5:1) verified contrast across light marketing & dark studio
   - Plus Jakarta Sans (Display) + IBM Plex Sans (UI) + JetBrains Mono (Data)
   - Strict tabular-nums alignment on all financial figures & policy limits
   - Vector SVG icon tokens (zero emoji icons), >=44px touch targets
   - Transform/opacity micro-interactions + prefers-reduced-motion support
   ========================================================================== */

:root {
  /* Light Enterprise Surface Tokens */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;

  /* Dark High-Contrast Audit Studio & Hero Proof Tokens */
  --studio-bg: #0b1221;
  --studio-surface: #111c33;
  --studio-elevated: #172542;
  --studio-border: #243556;
  --studio-text: #f8fafc;
  --studio-text-secondary: #cbd5e1;
  --studio-text-muted: #94a3b8;

  /* Light Mode Typography (WCAG AA >= 4.5:1 verified) */
  --text-primary: #0f172a;     /* 17.8:1 on white */
  --text-secondary: #334155;   /* 10.3:1 on white */
  --text-muted: #475569;       /* 7.5:1 on white */

  /* Borders & Dividers */
  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Brand & Semantic Action Tokens */
  --brand-primary: #1d4ed8;       /* 6.7:1 with #ffffff */
  --brand-primary-hover: #1e40af; /* 8.7:1 with #ffffff */
  --brand-soft: #eff6ff;
  --brand-border: #bfdbfe;

  --emerald-solid: #047857;       /* 5.5:1 with #ffffff */
  --emerald-hover: #065f46;
  --emerald-soft: #ecfdf5;
  --emerald-border: #a7f3d0;
  --emerald-bright: #34d399;      /* 10.2:1 on --studio-bg */

  --amber-text: #b45309;          /* 5.0:1 on #fffbeb */
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;
  --amber-bright: #fbbf24;

  --crimson-text: #be123c;        /* 6.4:1 on #fff1f2 */
  --crimson-soft: #fff1f2;
  --crimson-border: #fecdd3;
  --crimson-bright: #fb7185;

  --indigo-text: #4338ca;
  --indigo-soft: #eef2ff;
  --indigo-border: #c7d2fe;
  --indigo-bright: #a5b4fc;

  /* Typography Families */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Icon & Spacing Scale (4/8px rhythm) */
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 28px -6px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18);

  /* Shared Motion Tokens */
  --dur-fast: 150ms;
  --dur-base: 200ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-Index Scale */
  --z-header: 40;
  --z-banner: 45;
  --z-drawer: 60;
  --z-modal: 70;
  --z-toast: 80;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: inherit;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

.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;
}

/* Skip Link for Keyboard Accessibility */
.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  background: var(--brand-primary);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Consistent SVG Icon Sizing */
.icon {
  width: var(--icon-md);
  height: var(--icon-md);
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-sm {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

.icon-lg {
  width: var(--icon-lg);
  height: var(--icon-lg);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 84px 0;
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  max-width: 740px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 66ch;
  margin: 0 auto;
}

/* ==========================================================================
   POST-CHECKOUT ONBOARDING RETURN BANNER (?checkout=success)
   ========================================================================== */
.checkout-success-banner {
  background: #064e3b;
  color: #ecfdf5;
  border-bottom: 1px solid #059669;
  padding: 14px 0;
  position: relative;
  z-index: var(--z-banner);
}

.checkout-success-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.checkout-success-copy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.checkout-success-copy code {
  background: rgba(255, 255, 255, 0.14);
  padding: 2px 6px;
  border-radius: 4px;
  color: #ffffff;
}

/* ==========================================================================
   1. STICKY PUBLIC NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  min-height: 44px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.22);
  flex-shrink: 0;
}

.brand-wordmark {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-domain-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.nav-link:hover {
  color: var(--brand-primary);
  background-color: var(--bg-subtle);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-nav-drawer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
  padding: 16px 24px 20px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   BUTTON SYSTEM (>=44px Touch Targets, Stable Bounds)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  touch-action: manipulation;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn:active:not(:disabled) {
  transform: scale(0.99);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--brand-primary-hover);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.30);
}

.btn-emerald {
  background-color: var(--emerald-solid);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.24);
}

.btn-emerald:hover:not(:disabled) {
  background-color: var(--emerald-hover);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--bg-subtle);
  border-color: #94a3b8;
}

.btn-studio-outline {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--studio-text);
  border-color: var(--studio-border);
}

.btn-studio-outline:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.11);
  border-color: #3b82f6;
}

.btn-amber {
  background-color: #d97706;
  color: #ffffff;
}

.btn-amber:hover:not(:disabled) {
  background-color: #b45309;
}

.btn-crimson {
  background-color: #e11d48;
  color: #ffffff;
}

.btn-crimson:hover:not(:disabled) {
  background-color: #be123c;
}

.btn-lg {
  min-height: 48px;
  padding: 12px 22px;
  font-size: 15px;
}

.btn-sm {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 13px;
}

/* ==========================================================================
   BADGES & PILLS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.badge-pass {
  background: var(--emerald-soft);
  color: var(--emerald-solid);
  border: 1px solid var(--emerald-border);
}

.badge-warn {
  background: var(--amber-soft);
  color: var(--amber-text);
  border: 1px solid var(--amber-border);
}

.badge-fail {
  background: var(--crimson-soft);
  color: var(--crimson-text);
  border: 1px solid var(--crimson-border);
}

.badge-info {
  background: var(--brand-soft);
  color: var(--brand-primary);
  border: 1px solid var(--brand-border);
}

.badge-indigo {
  background: var(--indigo-soft);
  color: var(--indigo-text);
  border: 1px solid var(--indigo-border);
}

/* Dark Studio Badge Variants (High Contrast on #0B1221 / #111C33) */
.studio-shell .badge-pass {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.35);
}

.studio-shell .badge-warn {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.35);
}

.studio-shell .badge-fail {
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.38);
}

.studio-shell .badge-info {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.38);
}

.studio-shell .badge-indigo {
  background: rgba(99, 102, 241, 0.20);
  color: #c7d2fe;
  border-color: rgba(165, 180, 252, 0.38);
}

/* ==========================================================================
   2. HERO SECTION & SPLIT-SCREEN AUDIT PROOF CARD
   ========================================================================== */
.hero-section {
  padding: 64px 0 72px;
  background:
    radial-gradient(circle at 12% 10%, rgba(29, 78, 216, 0.08), transparent 42%),
    radial-gradient(circle at 88% 15%, rgba(4, 120, 87, 0.08), transparent 38%),
    var(--bg-canvas);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.hero-title {
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.hero-title-accent {
  color: var(--brand-primary);
}

.hero-lead {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.62;
  max-width: 60ch;
  margin-bottom: 28px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-trust-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Split-Screen Live Audit Preview Card */
.hero-proof-card {
  background: var(--studio-bg);
  color: var(--studio-text);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.proof-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--studio-border);
}

.proof-dots {
  display: inline-flex;
  gap: 6px;
}

.proof-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.proof-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.proof-pane {
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proof-pane-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--studio-text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.proof-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--studio-text-secondary);
  padding: 5px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.18);
}

.proof-row:last-child {
  border-bottom: none;
}

.proof-callout {
  background: rgba(244, 63, 94, 0.13);
  border: 1px solid rgba(251, 113, 133, 0.34);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  color: #fecdd3;
  line-height: 1.45;
}

.proof-callout-ok {
  background: rgba(16, 185, 129, 0.13);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: #a7f3d0;
}

.proof-footer-bar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--studio-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Quantified Buyer ROI Metrics Strip */
.roi-metrics-strip {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.roi-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}

.roi-metric-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.roi-metric-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.roi-metric-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   3. BENTO GRID VALUE ARCHITECTURE & 3-STEP WORKFLOW
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.bento-span-7 {
  grid-column: span 7;
}

.bento-span-5 {
  grid-column: span 5;
}

.bento-card-dark {
  background: var(--studio-bg);
  color: var(--studio-text);
  border-color: var(--studio-border);
}

.bento-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  border: 1px solid var(--brand-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.bento-card-dark .bento-icon-box {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.32);
}

.bento-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-card-dark .bento-desc {
  color: var(--studio-text-secondary);
}

.bento-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
}

.bento-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.workflow-step {
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.workflow-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 12px;
}

.workflow-step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.workflow-step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   4. INTERACTIVE SELF-SERVE LIVE AUDIT STUDIO
   ========================================================================== */
.studio-section {
  background: #070d19;
  color: var(--studio-text);
  padding: 84px 0;
  border-top: 1px solid var(--studio-border);
  border-bottom: 1px solid var(--studio-border);
}

.studio-section .section-eyebrow {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.35);
  color: #93c5fd;
}

.studio-section .section-title {
  color: #ffffff;
}

.studio-section .section-subtitle {
  color: var(--studio-text-secondary);
}

.studio-shell {
  background: var(--studio-bg);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--studio-border);
}

.studio-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--studio-border);
  background: var(--studio-surface);
  color: var(--studio-text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.studio-tab:hover {
  color: #ffffff;
  border-color: #3b82f6;
}

.studio-tab.active {
  background: var(--brand-primary);
  border-color: #3b82f6;
  color: #ffffff;
}

.studio-tab-count {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.studio-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--studio-text-secondary);
}

.studio-panel {
  display: none;
}

.studio-panel.active {
  display: block;
}

/* Drag-and-Drop Multimodal PDF / CSV Upload Zone */
.upload-toolbar-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-bottom: 20px;
}

.dropzone {
  border: 1.5px dashed #3b82f6;
  background: rgba(29, 78, 216, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.dropzone:hover,
.dropzone.dragover {
  background: rgba(29, 78, 216, 0.16);
  border-color: #60a5fa;
}

.dropzone-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dropzone-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.20);
  color: #93c5fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropzone-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.dropzone-sub {
  font-size: 12.5px;
  color: var(--studio-text-secondary);
}

.studio-controls-card {
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Loading Spinner Pill */
.loading-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #bfdbfe;
  font-size: 12.5px;
  font-weight: 600;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(191, 219, 254, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

/* Studio Collapsible Raw Input Drawer */
.collapsible-box {
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

/* Studio KPI Cards */
.studio-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.studio-kpi-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.studio-kpi {
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.studio-kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--studio-text-muted);
  margin-bottom: 6px;
}

.studio-kpi-val {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.studio-kpi-meta {
  font-size: 12px;
  color: var(--studio-text-secondary);
  margin-top: 4px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--studio-border);
  background: var(--studio-surface);
  color: var(--studio-text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.filter-pill:hover {
  color: #ffffff;
  border-color: #60a5fa;
}

.filter-pill.active {
  background: rgba(59, 130, 246, 0.24);
  border-color: #60a5fa;
  color: #ffffff;
}

/* Studio Data Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-md);
  background: var(--studio-surface);
}

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

.audit-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--studio-elevated);
  color: var(--studio-text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--studio-border);
}

.audit-table td {
  padding: 14px;
  border-bottom: 1px solid var(--studio-border);
  vertical-align: top;
  color: var(--studio-text);
}

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

.row-review-highlight {
  background: rgba(245, 158, 11, 0.06);
}

.row-coi-highlight {
  background: rgba(99, 102, 241, 0.08);
}

.vendor-name {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.vendor-meta {
  font-size: 12px;
  color: var(--studio-text-muted);
}

.checks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}

.checks-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  flex-wrap: wrap;
}

.citation-chip {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 11px;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.action-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Switch Toggle */
.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-height: 44px;
  font-size: 13.5px;
  user-select: none;
}

.switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch-slider {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #475569;
  transition: background-color var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}

.switch-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform var(--dur-fast) var(--ease-out);
}

.switch-input:checked + .switch-slider {
  background: #10b981;
}

.switch-input:checked + .switch-slider::after {
  transform: translateX(18px);
}

.switch-input:focus-visible + .switch-slider {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

/* Studio Gate Panel Grid */
.gate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.studio-card {
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 999px;
  transition: width var(--dur-base) var(--ease-out);
}

/* ==========================================================================
   FORM INPUTS & SELF-SERVE LEAD CAPTURE (#lead-capture)
   ========================================================================== */
.lead-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: start;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.studio-shell .form-label {
  color: var(--studio-text-secondary);
}

.text-input,
.select-input,
.textarea-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.text-input:focus,
.select-input:focus,
.textarea-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
  outline: none;
}

.studio-shell .text-input,
.studio-shell .select-input,
.studio-shell .textarea-input {
  background: var(--studio-bg);
  border-color: var(--studio-border);
  color: var(--studio-text);
}

.textarea-input {
  min-height: 96px;
  resize: vertical;
}

.field-error {
  font-size: 12.5px;
  color: var(--crimson-text);
  font-weight: 600;
}

.lead-result-box {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: #064e3b;
}

/* ==========================================================================
   6. 90-DAY ROI CALCULATOR & PUBLIC PRICING CATALOG
   ========================================================================== */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.range-slider {
  width: 100%;
  height: 8px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.preset-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.preset-chip {
  min-height: 38px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.preset-chip.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.summary-receipt {
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.receipt-total {
  padding-top: 12px;
  border-top: 1px solid var(--border-strong);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

/* Billing Interval Toggle */
.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.billing-segmented {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  padding: 4px;
  border-radius: 999px;
}

.billing-seg-btn {
  min-height: 40px;
  padding: 6px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.billing-seg-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

.promo-bar {
  background: linear-gradient(90deg, #eff6ff 0%, #ecfdf5 100%);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.sku-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sku-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.sku-card.featured {
  border: 2px solid var(--brand-primary);
  box-shadow: var(--shadow-md);
  position: relative;
}

.sku-price {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.sku-price span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.sku-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.sku-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ==========================================================================
   7. SECURITY & TRUST PILLARS + 8. FAQ ACCORDION
   ========================================================================== */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.security-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  min-height: 56px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-trigger:hover {
  background: var(--bg-canvas);
}

.faq-chevron {
  transition: transform var(--dur-base) var(--ease-out);
  color: var(--text-muted);
}

.faq-trigger[aria-expanded='true'] .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.faq-panel {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.62;
  max-width: 72ch;
}

/* ==========================================================================
   9. PUBLIC FOOTER
   ========================================================================== */
.site-footer {
  background: #0b1221;
  color: #cbd5e1;
  padding: 64px 0 40px;
  border-top: 1px solid var(--studio-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--studio-border);
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 24px;
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   MODAL & SLIDE-OVER CHECKOUT DRAWER
   ========================================================================== */
.overlay-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: var(--z-modal);
}

.drawer-backdrop {
  justify-content: flex-end;
  padding: 0;
  z-index: var(--z-drawer);
}

.modal-panel {
  width: 100%;
  max-width: 640px;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.checkout-drawer {
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  overflow-y: auto;
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 26px;
  box-shadow: -12px 0 36px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast {
  background: #0f172a;
  color: #f8fafc;
  border-left: 4px solid #10b981;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
}

.toast.error {
  border-left-color: #f43f5e;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (1440px -> 1024px -> 768px -> 375px)
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-grid,
  .lead-grid,
  .calc-grid,
  .gate-grid,
  .upload-toolbar-grid {
    grid-template-columns: 1fr;
  }

  .roi-metrics-strip,
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-span-7,
  .bento-span-5 {
    grid-column: span 12;
  }

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

  .studio-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  .section,
  .studio-section {
    padding: 56px 0;
  }

  .container {
    padding: 0 16px;
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  .proof-split-grid,
  .workflow-strip,
  .sku-grid,
  .form-grid-2,
  .roi-metrics-strip,
  .security-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .studio-shell {
    padding: 16px;
  }

  .studio-kpi-grid,
  .studio-kpi-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .brand-domain-pill {
    display: none;
  }

  .nav-actions .btn-primary {
    padding: 8px 12px;
    font-size: 13px;
  }

  .studio-kpi-grid,
  .studio-kpi-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PREFERS-REDUCED-MOTION ACCESSIBILITY COMPLIANCE
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
