/* ============================================================================
   ValidEXIM — Authentic ValidBid Minimalist Design System (v3.0)
   Exact ValidBid tokens: Plus Jakarta Sans / Inter / IBM Plex Mono,
   20px-24px clean containers, 999px pills & chips, segmented tabs, dark footer.
   ============================================================================ */

:root {
  --navy: #0a1f44;
  --navy-2: #0f2d63;
  --navy-deep: #06142e;
  --navy-logo-bg: #0b1f3a;
  --ink: #0a1f44;
  --muted: #52627f;
  --line: #e2e8f2;
  --wash: #f4f7fb;
  --white: #ffffff;

  --cobalt: #1d4ed8;
  --cobalt-dark: #1e3a8a;
  --cobalt-bright: #3b82f6;
  --sky: #8fb8ff;

  /* ValidEXIM Canonical Brand Saffron (SR2 Wordmark & Brand Accents Only) */
  --saffron: #ea580c;
  --saffron-deep: #c2410c;
  --saffron-bright: #f97316;
  --saffron-light: #fb923c;
  --tint-saffron: #fff7ed;

  /* Verdict-Only Emerald / Amber / Crimson */
  --emerald: #059669;
  --emerald-bright: #10b981;

  --tint-blue: #e8f0ff;
  --tint-mint: #e3f7ee;
  --tint-amber: #fff3db;
  --tint-rose: #fde8ea;

  --fail: #dc2626;
  --warn: #b45309;
  --pass: #059669;

  --head: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --shadow: 0 1px 2px rgba(10, 31, 68, 0.05), 0 14px 36px rgba(10, 31, 68, 0.08);
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.04), 0 6px 18px rgba(10, 31, 68, 0.06);
  --shadow-lg: 0 30px 60px -12px rgba(2, 10, 30, 0.45), 0 18px 36px -18px rgba(2, 10, 30, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 16px/1.6 var(--sans);
  color: var(--ink);
  background: var(--wash);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.page-white {
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
}

.mono,
code {
  font-family: var(--mono);
  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;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container,
  .container-narrow {
    padding: 0 16px;
  }
}

/* ============================================================================
   1. ValidBid 3-Zone Glass Header (header.topbar)
   ============================================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 52%, #f97316 100%);
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 28px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-horiz {
  height: 52px;
  width: auto;
  display: block;
}

@media (max-width: 560px) {
  .brand-logo-horiz {
    height: 38px;
  }
  .topbar-inner {
    min-height: 66px;
    padding: 8px 16px;
  }
}

.env-pill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--tint-blue);
  color: var(--cobalt);
  padding: 3px 9px;
  border-radius: 999px;
}

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

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--navy);
  background: var(--wash);
}

.nav-links a.nav-active {
  color: var(--cobalt);
  background: var(--tint-blue);
  font-weight: 600;
}

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

.wb-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font: 600 12.5px/1 var(--sans);
  white-space: nowrap;
}

.wb-trust-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.wb-trust-chip.chip-saffron {
  background: var(--tint-saffron);
  color: var(--saffron-deep);
}

.wb-trust-chip.chip-blue {
  background: var(--tint-blue);
  color: var(--cobalt);
}

@media (max-width: 1020px) {
  .wb-trust-chip {
    display: none;
  }
}

.nav-sep {
  width: 1px;
  height: 22px;
  background: var(--line);
}

@media (max-width: 860px) {
  .nav-sep {
    display: none;
  }
}

.nav-auth-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--navy);
  font: 600 14px var(--sans);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-auth-btn:hover {
  background: var(--wash);
  border-color: #cbd5e1;
}

.nav-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cobalt);
  color: #ffffff !important;
  text-decoration: none;
  font: 600 14px var(--head);
  padding: 6px 6px 6px 18px !important;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-cta-pill:hover {
  background: var(--cobalt-dark) !important;
  transform: translateY(-1px);
}

.nav-cta-pill .ar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--saffron-light);
  color: var(--navy-deep);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 1.5px solid #d5dfee;
  border-radius: 999px;
  padding: 4px 8px 4px 5px;
  font-size: 13px;
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(10, 31, 68, 0.05);
}

.nav-user-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cobalt), var(--navy-2));
  color: #ffffff;
  font: 800 13px/1 var(--head);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--tint-blue);
  flex-shrink: 0;
}

.nav-user-email {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.nav-signout-btn {
  background: var(--white);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  font: 600 12px var(--sans);
  cursor: pointer;
}

.nav-signout-btn:hover {
  color: var(--navy);
  border-color: #cbd5e1;
}

/* ============================================================================
   2. ValidBid Pill Buttons, Chips, Pills & Inputs
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 20px;
  font: 600 14.5px/1.2 var(--sans);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-sm {
  padding: 7px 15px;
  font-size: 13px;
}

.btn-lg {
  padding: 8px 8px 8px 26px;
  font-family: var(--head);
  font-size: 16px;
  font-weight: 700;
  gap: 14px;
}

/* Signature ValidBid Cobalt Pill CTA with Circular Emerald Arrow */
.btn-primary {
  background: var(--cobalt);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--cobalt-dark);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #b8c2d6;
  opacity: 1;
}

/* Moving sheen sweep on Run Instant Readiness Check (matches validbid.in/app .vb-btn-flash) */
.vb-btn-flash {
  position: relative;
  overflow: hidden;
}

.vb-btn-flash::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  transform: translateX(-140%) skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  animation: vbBtnFlash 3.2s ease-in-out infinite;
  pointer-events: none;
}

.vb-btn-flash:disabled::after {
  animation: none;
  opacity: 0;
}

@keyframes vbBtnFlash {
  0% { transform: translateX(-140%) skewX(-22deg); }
  55%, 100% { transform: translateX(340%) skewX(-22deg); }
}

@media (prefers-reduced-motion: reduce) {
  .vb-btn-flash::after {
    animation: none;
  }
}

.btn-primary .ar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--saffron-light);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.btn-primary:disabled .ar {
  background: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-cobalt {
  background: var(--cobalt);
  color: var(--white);
}

.btn-cobalt:hover:not(:disabled) {
  background: var(--cobalt-dark);
  transform: translateY(-1px);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover:not(:disabled) {
  background: #eaf1ff;
}

.btn-outline {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy);
}

.btn-outline:hover:not(:disabled) {
  background: var(--tint-blue);
  border-color: #bfd4ff;
  color: var(--cobalt);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--wash);
  color: var(--navy);
}

.btn-ghost-dark {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  color: #e2ecff;
}

.btn-ghost-dark:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-danger {
  background: var(--fail);
  color: var(--white);
}

.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
}

.btn-danger-ghost {
  background: var(--white);
  border-color: #fecaca;
  color: #b91c1c;
}

.btn-danger-ghost:hover:not(:disabled) {
  background: var(--tint-rose);
}

/* ValidBid Kicker with 7px Emerald Dot */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--saffron-bright);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.22);
}

.on-dark .kicker {
  color: var(--sky);
}

/* ValidBid Status Pills (.vb-pill & .badge) */
.vb-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font: 600 12.5px/1.2 var(--sans);
  white-space: nowrap;
}

.vb-pill::before,
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vb-pill.v,
.badge.PASS {
  background: var(--tint-mint);
  color: #047857;
}
.vb-pill.v::before,
.badge.PASS::before {
  background: var(--emerald);
}

.vb-pill.w,
.badge.WARN {
  background: var(--tint-amber);
  color: #92400e;
}
.vb-pill.w::before,
.badge.WARN::before {
  background: var(--warn);
}

.vb-pill.d,
.badge.FAIL {
  background: var(--tint-rose);
  color: #b91c1c;
}
.vb-pill.d::before,
.badge.FAIL::before {
  background: var(--fail);
}

.vb-pill.b {
  background: var(--tint-blue);
  color: var(--cobalt);
}
.vb-pill.b::before {
  background: var(--cobalt);
}

/* ValidBid Clause / Reference Mono Badge (.ref) */
.ref {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 500 11.5px/1.3 var(--mono);
  color: var(--cobalt);
  background: var(--tint-blue);
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ValidBid Filter Chips (.pill, .batch-tab, .quick-chip, .sample-pill) */
.pill,
.batch-tab,
.quick-chip,
.sample-pill {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 7px 15px;
  font: 600 13px/1.2 var(--sans);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.pill:hover:not(:disabled),
.batch-tab:hover:not(:disabled),
.quick-chip:hover:not(:disabled),
.sample-pill:hover:not(:disabled) {
  color: var(--navy);
  border-color: #cbd5e1;
  background: var(--white);
}

.pill.active,
.batch-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.sample-pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

select,
input[type="search"],
input[type="email"],
input[type="password"],
input[type="text"] {
  font: 500 14px/1.4 var(--sans);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 14px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

select:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

/* ============================================================================
   3. Minimalist Workbench Shell (/app & /lc-check)
   ============================================================================ */
.main-shell {
  min-height: calc(100vh - 200px);
  padding: 28px 0 72px;
}

.wb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.wb-top h1 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
}

/* ValidBid Segmented Pill Stepper */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #e6eefb;
  border: 1px solid #d5e2f7;
  border-radius: 999px;
}

.step-line {
  display: none;
}

.step-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font: 600 13px/1 var(--sans);
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.2s ease,
    transform 0.16s ease,
    box-shadow 0.22s ease;
}

.step-item:hover:not(:disabled):not(.active) {
  color: var(--navy);
  background: var(--wash);
}

.step-item:active:not(:disabled) {
  transform: scale(0.97);
}

.step-item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--wash);
  color: var(--muted);
  font: 600 11px/1 var(--mono);
  display: grid;
  place-items: center;
  transition:
    background 0.24s ease,
    color 0.2s ease,
    transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-item.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(10, 31, 68, 0.09);
}

.step-item.active .step-num {
  background: var(--tint-saffron);
  color: var(--saffron-deep);
}

.step-item.done {
  color: var(--navy);
}

.step-item.done .step-num {
  background: var(--tint-mint);
  color: #047857;
  animation: vbStepCheckPop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes vbStepCheckPop {
  0% { transform: scale(0.8); }
  65% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@media (max-width: 640px) {
  .stepper {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }
}

/* Containers */
.surface,
.card {
  background: linear-gradient(165deg, #eff4ff 0%, #f5f8ff 100%);
  border: 1px solid rgba(29, 78, 216, 0.09);
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 12px 32px -14px rgba(10, 31, 68, 0.1);
}

@media (max-width: 640px) {
  .surface,
  .card {
    border-radius: 20px;
    padding: 20px;
  }
}

.flow-section {
  will-change: opacity, transform;
}

.flow-section.step-enter-forward {
  animation: vbStepEnterForward 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.flow-section.step-enter-back {
  animation: vbStepEnterBack 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.flow-section.step-exit-forward {
  animation: vbStepExitForward 0.15s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}

.flow-section.step-exit-back {
  animation: vbStepExitBack 0.14s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}

.subflow-grid:not(.hidden),
#reportContent.report-enter,
.tab-panel:not(.hidden) {
  animation: vbSubtleForward 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes vbStepEnterForward {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes vbStepEnterBack {
  from { opacity: 0; transform: translateX(-22px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes vbStepExitForward {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-16px); }
}

@keyframes vbStepExitBack {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(16px); }
}

@keyframes vbSubtleForward {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .flow-section.step-enter-forward,
  .flow-section.step-enter-back,
  .flow-section.step-exit-forward,
  .flow-section.step-exit-back,
  .subflow-grid:not(.hidden),
  #reportContent.report-enter,
  .tab-panel:not(.hidden),
  .step-item.done .step-num {
    animation-duration: 0.01ms !important;
  }
}

/* Step 1: Minimal Two-Card Role Picker + Sample Strip */
.choice-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 720px) {
  .choice-grid-2 {
    grid-template-columns: 1fr;
  }
}

.choice-card {
  text-align: left;
  width: 100%;
  background: linear-gradient(145deg, #eef4ff 0%, #e4edff 100%);
  border: 1px solid rgba(29, 78, 216, 0.1);
  border-radius: 24px;
  padding: 28px 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 28px -14px rgba(10, 31, 68, 0.11);
  font-family: var(--sans);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease;
}

.choice-card[data-role="EXPORTER"] {
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
  border-color: rgba(234, 88, 12, 0.13);
}

.choice-card[data-role="IMPORTER"] {
  background: linear-gradient(145deg, #eef4ff 0%, #e1ecff 100%);
  border-color: rgba(29, 78, 216, 0.12);
}

.choice-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 36px -14px rgba(10, 31, 68, 0.16);
}

.choice-card[data-role="EXPORTER"]:hover,
.choice-card[data-role="EXPORTER"].active {
  border-color: rgba(234, 88, 12, 0.28);
}

.choice-card[data-role="IMPORTER"]:hover,
.choice-card[data-role="IMPORTER"].active {
  border-color: rgba(29, 78, 216, 0.24);
}

.choice-card.active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 32px -12px rgba(10, 31, 68, 0.14);
}

.choice-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.choice-title {
  font: 800 22px/1.2 var(--head);
  color: var(--navy);
  letter-spacing: -0.02em;
}

.choice-desc {
  margin: 0;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.5;
}

.choice-go {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(10, 31, 68, 0.07);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.choice-card[data-role="EXPORTER"]:hover .choice-go,
.choice-card[data-role="EXPORTER"].active .choice-go {
  background: var(--saffron-deep);
  color: var(--white);
  transform: translateX(2px);
}

.choice-card[data-role="IMPORTER"]:hover .choice-go,
.choice-card[data-role="IMPORTER"].active .choice-go {
  background: var(--cobalt);
  color: var(--white);
  transform: translateX(2px);
}

.choice-card.is-advancing {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 38px -12px rgba(10, 31, 68, 0.18);
}

.choice-card.is-advancing .choice-go {
  background: var(--saffron-light);
  color: var(--navy-deep);
  transform: translateX(5px) scale(1.06);
}

.sample-strip {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sample-strip-label {
  font: 600 13px var(--mono);
  color: var(--muted);
  margin-right: 4px;
}

/* Step 2: Segmented Stage Toggle + Clean Check Cards */
.step-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #edf2fc;
  border: 1px solid rgba(29, 78, 216, 0.1);
  color: var(--navy);
  border-radius: 999px;
  padding: 7px 15px;
  font: 600 13px/1 var(--sans);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease;
}

.back-pill:hover {
  background: #e2ebfc;
  color: var(--cobalt);
}

.stage-seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #e6eefb;
  border: 1px solid #d5e2f7;
  border-radius: 999px;
}

.stage-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 13.5px/1 var(--sans);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.stage-tab:hover:not(.active) {
  color: var(--navy);
}

.stage-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(10, 31, 68, 0.09);
}

.subflow-grid {
  display: grid;
  gap: 18px;
}

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

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

@media (max-width: 860px) {
  .subflow-grid-3,
  .subflow-grid-2 {
    grid-template-columns: 1fr;
  }
}

.checkpoint-card {
  text-align: left;
  width: 100%;
  background: linear-gradient(155deg, #eef4ff 0%, #e4edff 100%);
  border: 1px solid rgba(29, 78, 216, 0.1);
  border-radius: 22px;
  padding: 24px 26px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--sans);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 26px -14px rgba(10, 31, 68, 0.1);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.checkpoint-card:nth-child(2) {
  background: linear-gradient(155deg, #fff7ed 0%, #ffedd6 100%);
  border-color: rgba(234, 88, 12, 0.12);
}

.checkpoint-card:nth-child(3) {
  background: linear-gradient(148deg, #edf4ff 0%, #f4f3ff 48%, #fff4e8 100%);
  border-color: rgba(29, 78, 216, 0.12);
}

.checkpoint-card .ref {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(10, 31, 68, 0.06);
}

.checkpoint-card:nth-child(2) .ref {
  color: var(--saffron-deep);
}

.checkpoint-card:hover {
  border-color: rgba(29, 78, 216, 0.24);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 34px -14px rgba(10, 31, 68, 0.15);
}

.checkpoint-card:nth-child(2):hover,
.checkpoint-card:nth-child(2).active {
  border-color: rgba(234, 88, 12, 0.26);
}

.checkpoint-card.active {
  border-color: rgba(29, 78, 216, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 30px -12px rgba(10, 31, 68, 0.14);
}

.checkpoint-card.role-muted {
  opacity: 0.6;
}

.cp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cp-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.checkpoint-card:hover .cp-arrow {
  background: var(--navy);
  color: var(--white);
  transform: translateX(2px);
}

.checkpoint-card.is-advancing {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 36px -12px rgba(10, 31, 68, 0.17);
}

.checkpoint-card.is-advancing .cp-arrow {
  background: var(--saffron-light);
  color: var(--navy-deep);
  transform: translateX(5px);
}

.cp-title {
  font: 700 18px/1.25 var(--head);
  color: var(--navy);
  letter-spacing: -0.02em;
}

.cp-desc {
  margin: 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

/* Step 3: Tinted Fintech Upload Container (with 4px ValidEXIM top bar) */
.upload-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(165deg, #eaf2ff 0%, #f2f7ff 56%, #fff7ee 100%);
  border: 1px solid #d5e3fa;
}

.upload-card::before,
.report-shell::before,
.modal-card::before {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 52%, #f97316 100%);
}

.upload-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 26px 18px;
  border-bottom: 0;
}

.upload-card .back-pill {
  background: rgba(255, 255, 255, 0.85);
}

.upload-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-card-head h2 {
  font-size: 19px;
  font-weight: 700;
}

.upload-head-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.attached-count-pill {
  font: 600 12.5px/1 var(--mono);
  color: var(--cobalt);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(29, 78, 216, 0.1);
  padding: 6px 13px;
  border-radius: 999px;
}

.attached-count-pill.has-files {
  background: var(--tint-mint);
  border-color: rgba(5, 150, 105, 0.18);
  color: #047857;
}

.slot-list {
  display: flex;
  flex-direction: column;
  margin: 0 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(10, 31, 68, 0.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(10, 31, 68, 0.03);
}

.slot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  border-bottom: 1px solid rgba(10, 31, 68, 0.06);
  transition: background 0.12s ease;
}

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

.slot-row:hover {
  background: rgba(238, 244, 255, 0.55);
}

.slot-row.has-file {
  background: rgba(227, 247, 238, 0.55);
}

.slot-row.dragover {
  background: var(--tint-blue);
}

.slot-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.slot-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.slot-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}

.slot-row.has-file .slot-status-dot {
  background: var(--emerald);
}

.slot-title {
  font: 600 14.5px/1.3 var(--sans);
  color: var(--navy);
}

.doc-req-badge {
  font: 600 11px/1 var(--mono);
  padding: 3px 8px;
  border-radius: 6px;
}

.doc-req-core {
  background: var(--tint-blue);
  color: var(--cobalt);
}

.doc-req-opt {
  background: var(--wash);
  color: var(--muted);
}

.slot-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.slot-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--tint-mint);
  color: #047857;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12.5px;
  font-weight: 600;
}

.slot-file-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-file-size {
  font: 500 11px var(--mono);
  opacity: 0.8;
}

.slot-file-remove {
  background: transparent;
  border: 0;
  color: #047857;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.slot-file-remove:hover {
  color: var(--fail);
}

.bulk-drop-strip {
  margin: 16px 22px 18px;
  padding: 16px 22px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.88) 0%, rgba(238, 244, 255, 0.88) 100%);
  border: 1px dashed rgba(234, 88, 12, 0.28);
  border-radius: 18px;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.bulk-drop-strip.dragover {
  border-color: var(--cobalt);
  background: var(--tint-blue);
}

.bulk-drop-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.bulk-drop-copy {
  font-size: 14px;
  color: var(--muted);
}

.bulk-drop-copy strong {
  color: var(--navy);
  font-weight: 600;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-list:empty {
  margin: 0;
}

.file-list li {
  padding: 7px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.file-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-remove-btn {
  background: var(--wash);
  border: 0;
  color: var(--muted);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.file-remove-btn:hover {
  background: var(--tint-rose);
  color: var(--fail);
}

.upload-footer-bar {
  padding: 18px 26px 22px;
  background: rgba(226, 236, 253, 0.45);
  border-top: 1px solid rgba(29, 78, 216, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.scope-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
}

.scope-toggle input {
  accent-color: var(--cobalt);
  width: 16px;
  height: 16px;
}

.upload-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.text-link {
  background: transparent;
  border: 0;
  color: var(--cobalt);
  font: 600 13.5px var(--sans);
  cursor: pointer;
  padding: 0;
}

.text-link:hover {
  text-decoration: underline;
}

.dev-panel {
  margin: 0 28px 18px;
  padding: 14px 18px;
  background: var(--wash);
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
}

.dev-panel-head {
  display: flex;
  justify-content: space-between;
  font: 600 12px var(--mono);
  color: var(--muted);
  margin-bottom: 10px;
}

.dev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.control-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .slot-row,
  .upload-card-head,
  .upload-footer-bar {
    padding-left: 18px;
    padding-right: 18px;
  }
  .bulk-drop-strip,
  .dev-panel {
    margin-left: 18px;
    margin-right: 18px;
  }
}

/* ============================================================================
   4. Step 4: ValidBid Product Window Report (.report-shell)
   ============================================================================ */
.report-shell {
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #eef4ff 0%, #f4f7fe 100%);
  border: 1px solid rgba(29, 78, 216, 0.1);
}

.loading-box {
  text-align: center;
  padding: 64px 24px;
  display: flex;
  justify-content: center;
}

.loading-card-inner {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(29, 78, 216, 0.1);
  border-radius: 20px;
  padding: 32px 30px 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 30px -14px rgba(10, 31, 68, 0.1);
}

.loading-box h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.loading-box p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  min-height: 22px;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--tint-blue);
  border-top-color: var(--cobalt);
  border-right-color: var(--saffron-bright);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.75s linear infinite;
}

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

.loading-progress-wrap {
  margin-top: 20px;
  text-align: left;
}

.loading-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.loading-stage-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
}

.loading-pct-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--tint-blue);
  color: var(--cobalt);
  border: 1px solid #bfdbfe;
}

.loading-box.is-complete .loading-pct-badge {
  background: var(--tint-mint);
  color: #047857;
  border-color: #a7f3d0;
}

.loading-progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f2;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.loading-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 55%, #f97316 100%);
  transition: width 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.loading-box.is-complete .loading-progress-fill {
  background: linear-gradient(90deg, #1d4ed8 0%, #10b981 100%);
}

.loading-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: vbProgressSheen 1.4s ease-in-out infinite;
}

@keyframes vbProgressSheen {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(300%); }
}

@media (prefers-reduced-motion: reduce) {
  .loading-progress-fill::after {
    animation: none;
  }
}

/* Window Top Bar (like ValidBid .win .bar) */
.workspace-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 28px;
  background: linear-gradient(90deg, #e5eefc 0%, #fdf2e6 100%);
  border-bottom: 1px solid rgba(10, 31, 68, 0.07);
}

.workspace-bar .back-pill {
  background: rgba(255, 255, 255, 0.88);
}

.workspace-info,
.workspace-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ws-meta-text {
  font: 500 12.5px var(--mono);
  color: var(--muted);
}

.ws-recheck {
  background: var(--tint-mint);
  color: #047857;
  font: 600 12px var(--mono);
  padding: 4px 10px;
  border-radius: 999px;
}

.delta-box {
  margin: 18px 28px 0;
  background: var(--tint-blue);
  color: var(--navy);
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 13.5px;
}

.delta-good { color: #047857; font-weight: 700; }
.delta-bad { color: #b91c1c; font-weight: 700; }

/* Clean ValidBid Summary Header inside Report */
.report-summary-band {
  padding: 26px 28px 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 247, 237, 0.55) 100%);
  border-bottom: 1px solid rgba(10, 31, 68, 0.07);
}

.report-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

@media (max-width: 640px) {
  .report-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

.report-meta {
  font: 500 12px var(--mono);
  color: var(--muted);
  margin: 4px 0 8px;
}

.report-top h2 {
  font-size: clamp(21px, 2.5vw, 26px);
  font-weight: 800;
}

.score-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3.5px solid var(--cobalt);
  background: var(--wash);
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.score-ring small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}

.score-ring.danger { border-color: var(--fail); color: #b91c1c; background: var(--tint-rose); }
.score-ring.warn { border-color: var(--warn); color: #92400e; background: var(--tint-amber); }
.score-ring.good { border-color: var(--emerald); color: #047857; background: var(--tint-mint); }

/* Interactive Report KPI Drill-Down Cards (matches validbid.in/app .vb-kpi-card) */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 700px) {
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kpi {
  border: 1px solid transparent;
  padding: 14px 16px;
  border-radius: 16px;
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(10, 31, 68, 0.16);
}

.kpi-fail {
  background: var(--tint-rose);
  border-color: rgba(220, 38, 38, 0.14);
  color: #b91c1c;
}
.kpi-fail:hover { border-color: #fda4af; }

.kpi-warn {
  background: var(--tint-amber);
  border-color: rgba(180, 83, 9, 0.16);
  color: #92400e;
}
.kpi-warn:hover { border-color: #fdba74; }

.kpi-pass {
  background: var(--tint-mint);
  border-color: rgba(5, 150, 105, 0.16);
  color: #047857;
}
.kpi-pass:hover { border-color: #6ee7b7; }

.kpi-perf {
  background: var(--tint-blue);
  border-color: rgba(29, 78, 216, 0.14);
  color: var(--cobalt);
}
.kpi-perf:hover { border-color: #93c5fd; }

.kpi > span.mono {
  font: 800 22px/1.1 var(--head);
  letter-spacing: -0.02em;
}

.kpi label {
  cursor: inherit;
  font-size: 13px;
  font-weight: 600;
}

.vb-kpi-cue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0.78;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.kpi:hover .vb-kpi-cue {
  opacity: 1;
  transform: translateX(2px);
}

.health-bar-track {
  margin-top: 14px;
  height: 5px;
  border-radius: 999px;
  background: var(--wash);
  overflow: hidden;
  display: flex;
  gap: 2px;
}

.health-seg-fail { background: var(--fail); height: 100%; transition: width 0.25s ease; }
.health-seg-warn { background: #f59e0b; height: 100%; transition: width 0.25s ease; }
.health-seg-pass { background: var(--emerald-bright); height: 100%; transition: width 0.25s ease; }

.ai-telemetry {
  margin: 16px 28px 0;
  background: var(--tint-blue);
  color: var(--navy);
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ValidBid Segmented Pill Tabs inside Report */
.report-nav-row {
  padding: 18px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.report-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #e4edfb;
  border: 1px solid #d3e1f7;
  border-radius: 999px;
}

.report-tab {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font: 600 13.5px/1 var(--sans);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.report-tab:hover:not(.active) {
  color: var(--navy);
}

.report-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(10, 31, 68, 0.09);
}

.tab-badge {
  font: 700 11px/1 var(--mono);
  background: rgba(10, 31, 68, 0.08);
  color: var(--navy);
  padding: 3px 7px;
  border-radius: 999px;
}

.report-tab.active .tab-badge {
  background: var(--tint-blue);
  color: var(--cobalt);
}

.tab-badge-alert.has-issues {
  background: var(--tint-rose);
  color: #b91c1c;
}

.report-tab.active .tab-badge-alert.has-issues {
  background: var(--tint-rose);
  color: #b91c1c;
}

.tab-panel {
  padding: 18px 28px 30px;
}

@media (max-width: 640px) {
  .workspace-bar,
  .report-summary-band,
  .report-nav-row,
  .tab-panel {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Toolbar & Context Disclosure */
.report-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

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

.finding-search-input {
  width: 220px;
  border-radius: 999px !important;
  padding: 7px 15px !important;
  font-size: 13px !important;
}

.context-accordion {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 78, 216, 0.09);
  border-radius: 16px;
  margin-bottom: 14px;
}

.context-accordion summary {
  padding: 11px 16px;
  font: 600 13px var(--sans);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.context-accordion summary::-webkit-details-marker {
  display: none;
}

.accordion-hint {
  font: 600 12px var(--mono);
  color: var(--cobalt);
}

.context-accordion-body {
  padding: 0 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ledger-box,
.baseline-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
}

.baseline-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.baseline-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.baseline-cell-label {
  font: 600 11px var(--mono);
  text-transform: uppercase;
  color: var(--muted);
}

.baseline-cell-val {
  font-weight: 600;
  color: var(--navy);
}

.amend-list-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.amend-pill {
  background: var(--tint-blue);
  color: var(--cobalt);
  padding: 3px 9px;
  border-radius: 6px;
  font: 500 11.5px var(--mono);
  text-decoration: none;
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.doc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.doc-pill {
  background: var(--wash);
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  text-decoration: none;
}

.doc-pill:hover {
  background: var(--tint-blue);
  border-color: #bfd4ff;
}

.doc-pill-warn {
  background: var(--tint-amber);
  color: #92400e;
}

.ledger-notes {
  margin-top: 8px;
  font-size: 12px;
  color: var(--warn);
  font-weight: 600;
}

/* ============================================================================
   5. ValidBid Clean Finding Rows (Exact match to validbid.in window rows)
   ============================================================================ */
.findings-list {
  border: 1px solid rgba(10, 31, 68, 0.07);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 20px -10px rgba(10, 31, 68, 0.06);
}

.findings-empty-box {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}

.finding {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.finding:last-child {
  border-bottom: 0;
}

.finding-dot-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  margin-top: 2px;
}

.finding.FAIL .finding-dot-icon { background: var(--fail); }
.finding.WARN .finding-dot-icon { background: #f59e0b; }
.finding.PASS .finding-dot-icon { background: var(--emerald-bright); }

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

.finding-title {
  font: 700 15.5px/1.3 var(--head);
  color: var(--navy);
  letter-spacing: -0.015em;
}

.finding-note {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.finding-fix {
  margin: 5px 0 0;
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.45;
}

.finding-fix strong {
  color: var(--cobalt);
  font-weight: 600;
}

.finding-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.finding-right-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-sv {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  font: 600 12px/1 var(--sans);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.btn-sv:hover {
  background: var(--tint-mint);
  border-color: #a7f3d0;
  color: #047857;
}

@media (max-width: 680px) {
  .finding {
    flex-direction: column;
    gap: 10px;
  }
  .finding-right {
    align-items: flex-start;
  }
}

.cite-link {
  color: var(--cobalt);
  text-decoration: none;
  font-weight: 600;
  background: var(--tint-blue);
  padding: 1px 7px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
}

.cite-link:hover {
  background: #dbe8ff;
}

.cite-arrow {
  font-size: 10px;
  margin-left: 2px;
}

/* Fix Pack & Re-Check Minimal Cards */
.fixpack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.fixpack-tile {
  background: linear-gradient(155deg, #e7efff 0%, #f1f6ff 100%);
  border: 1px solid rgba(29, 78, 216, 0.1);
  border-radius: 20px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.fixpack-tile:nth-child(2) {
  background: linear-gradient(155deg, #fff6eb 0%, #ffedd5 100%);
  border-color: rgba(234, 88, 12, 0.13);
}

.fixpack-tile:nth-child(3) {
  background: linear-gradient(155deg, #e7f8f0 0%, #f0fcf6 100%);
  border-color: rgba(5, 150, 105, 0.12);
}

.fixpack-tile:nth-child(4) {
  background: linear-gradient(155deg, #eef2ff 0%, #f7f4ff 100%);
  border-color: rgba(29, 78, 216, 0.1);
}

.fixpack-tile .btn-outline {
  background: rgba(255, 255, 255, 0.9);
}

.fixpack-tile h4 {
  font-size: 18px;
  font-weight: 700;
}

.fixpack-tile p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}

.fixpack-tile-actions,
.fixpack-decl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.fixpack-decl-row select {
  flex: 1;
  min-width: 180px;
  border-radius: 999px;
}

.recheck-strip {
  padding: 36px 28px;
  background: linear-gradient(135deg, #e9f1ff 0%, #fff6ec 100%);
  border: 1px solid rgba(29, 78, 216, 0.11);
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.recheck-copy {
  max-width: 460px;
  font-size: 14.5px;
  color: var(--muted);
}

.recheck-copy strong {
  display: block;
  font: 700 18px var(--head);
  color: var(--navy);
  margin-bottom: 4px;
}

.recheck-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.recheck-controls select {
  border-radius: 999px;
  min-width: 220px;
}

/* ============================================================================
   6. ValidBid Sub-Pages: Dark Navy .page-hero, .fmt Cards & Dark Footer
   ============================================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 420px at 85% 0%, rgba(59, 130, 246, 0.4), transparent 60%),
    radial-gradient(600px 420px at 55% 100%, rgba(249, 115, 22, 0.24), transparent 60%),
    linear-gradient(160deg, var(--navy-2), var(--navy-deep) 70%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
  color: var(--white);
  padding: 64px 0 104px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  margin-top: 14px;
  max-width: 22ch;
}

.page-hero .lead {
  margin: 14px 0 0;
  font-size: 18px;
  color: #b8cae8;
  max-width: 56ch;
  line-height: 1.55;
}

.page-section {
  padding: 48px 0 72px;
}

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

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

@media (max-width: 980px) {
  .formats-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ValidBid .fmt Card */
.fmt,
.resource-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.14s ease;
}

.fmt:hover,
.resource-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
}

.resource-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.seed-tag {
  font: 600 12px/1 var(--sans);
  background: var(--wash);
  color: var(--navy);
  padding: 5px 11px;
  border-radius: 999px;
}

.seed-guide {
  background: var(--tint-blue);
  color: var(--cobalt);
}

.ext-docx {
  font: 600 11.5px/1 var(--mono);
  color: var(--cobalt);
  background: var(--tint-blue);
  padding: 4px 9px;
  border-radius: 6px;
}

.ext-xlsx {
  font: 600 11.5px/1 var(--mono);
  color: #047857;
  background: var(--tint-mint);
  padding: 4px 9px;
  border-radius: 6px;
}

.resource-card h2,
.format-card h3 {
  font: 700 18px/1.3 var(--head);
  color: var(--navy);
  letter-spacing: -0.02em;
}

.guide-link {
  color: var(--navy);
  text-decoration: none;
}

.guide-link:hover {
  color: var(--cobalt);
}

.resource-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.52;
  flex: 1;
}

.format-sub-meta {
  font: 600 11.5px var(--mono);
  color: var(--cobalt);
}

.format-citations {
  font: 500 11.5px var(--mono);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.format-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.format-autofill-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cobalt);
  text-decoration: none;
}

.format-autofill-link:hover {
  text-decoration: underline;
}

/* Formats Filter Bar */
.formats-toolbar {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: none;
}

.formats-search-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.formats-search-wrap {
  flex: 1;
}

.formats-search-input {
  width: 100%;
  border-radius: 999px !important;
  padding: 11px 18px !important;
}

.formats-batch-tabs,
.formats-quick-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.formats-filter-controls {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

@media (max-width: 820px) {
  .formats-filter-controls {
    grid-template-columns: 1fr;
  }
  .formats-search-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.formats-select {
  width: 100%;
  border-radius: 999px !important;
}

.formats-count-badge {
  font: 600 12px var(--mono);
  color: var(--muted);
  white-space: nowrap;
}

.formats-error-banner {
  background: var(--tint-rose);
  color: #b91c1c;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.formats-empty-state {
  grid-column: 1 / -1;
  padding: 48px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 20px;
  box-shadow: none;
}

.formats-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.formats-page-indicator {
  font: 500 13px var(--mono);
  color: var(--muted);
}

/* Prose Pages (/terms & /learn/{slug}) */
.prose-card {
  max-width: 820px;
  margin: 40px auto 64px;
  padding: 36px 42px;
}

@media (max-width: 640px) {
  .prose-card {
    padding: 24px 20px;
  }
}

.prose-card h1 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-top: 10px;
}

.prose-card h2 {
  font-size: 20px;
  margin: 28px 0 8px;
}

.prose-card p,
.prose-card li {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.68;
}

.disclaimer-callout {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--navy);
}

.cta-strip {
  margin-top: 36px;
  padding: 28px 32px;
  background: linear-gradient(160deg, var(--navy-2), var(--navy-deep) 75%);
  color: #b8cae8;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-strip strong {
  color: var(--white);
  font: 700 20px/1.25 var(--head);
  display: block;
  margin-bottom: 4px;
}

.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.back-row {
  margin-bottom: 14px;
}

/* ValidBid Dark Institutional Footer (footer.footer) */
.footer {
  background: var(--navy-logo-bg);
  color: #8ea2c8;
  padding: 48px 0 56px;
  font-size: 13.5px;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-dark {
  height: 38px;
  width: auto;
  display: block;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd8f0;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer p {
  margin: 0;
  line-height: 1.6;
  color: #8ea2c8;
  font-size: 12.5px;
}

.footer p strong {
  color: #cbd8f0;
}

/* ============================================================================
   7. ValidBid Modals & Popups (.modal-backdrop / .modal-card)
   ============================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 20, 46, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  animation: vbPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vbPop {
  from { opacity: 0; transform: scale(0.97) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-wide {
  max-width: 720px;
}

.auth-modal-card {
  max-width: 430px;
}

.modal-header {
  padding: 22px 26px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 19px;
  font-weight: 800;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wash);
  border: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.modal-close:hover {
  background: #e2e8f2;
  color: var(--navy);
}

.modal-body {
  padding: 6px 26px 24px;
  font-size: 15px;
  color: var(--muted);
}

.modal-body p {
  margin: 0;
  line-height: 1.58;
}

.modal-footer {
  padding: 14px 26px;
  background: var(--wash);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* Auth Modal (ValidBid Style) */
.auth-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-brand-emblem {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-context {
  font-size: 14px;
  color: var(--muted);
}

.auth-alert {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

.auth-alert-error { background: var(--tint-rose); color: #b91c1c; }
.auth-alert-info { background: var(--tint-mint); color: #047857; }

.btn-google {
  width: 100%;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14.5px;
  font-weight: 600;
}

.btn-google:hover:not(:disabled) {
  background: var(--wash);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 600 11px var(--mono);
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ValidBid Segmented Auth Tabs */
.auth-mode-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #e6eefb;
  border: 1px solid #d5e2f7;
  border-radius: 12px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 8px 12px;
  font: 600 13px var(--sans);
  color: var(--muted);
  cursor: pointer;
}

.auth-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(10, 31, 68, 0.09);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.auth-field input {
  width: 100%;
}

.auth-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.auth-submit-btn {
  flex: 1;
}

.auth-link-btn {
  background: transparent;
  border: 0;
  color: var(--cobalt);
  font: 600 13px var(--sans);
  cursor: pointer;
}

.auth-privacy-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.amend-subject {
  background: var(--wash);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: var(--navy);
}

.amend-textarea {
  width: 100%;
  font-size: 12.5px;
  line-height: 1.55;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--wash);
  color: var(--navy);
  resize: vertical;
}

/* ============================================================================
   8. In-App Multi-Format Document Viewer Modal (#docViewerModal)
   ============================================================================ */
.dv-backdrop {
  background: rgba(6, 20, 46, 0.65);
  padding: 18px;
}

.dv-shell {
  width: min(1140px, 96vw);
  height: min(90vh, 880px);
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.dv-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.dv-format-badge {
  font: 700 11px/1 var(--mono);
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
}

.dv-format-badge.fmt-pdf { background: #b91c1c; }
.dv-format-badge.fmt-docx { background: var(--cobalt); }
.dv-format-badge.fmt-xlsx,
.dv-format-badge.fmt-csv,
.dv-format-badge.fmt-tsv { background: #047857; }

.dv-file-select {
  max-width: 460px;
  width: auto;
  border-radius: 999px !important;
  padding: 6px 14px !important;
}

.dv-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dv-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 20px;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.dv-context {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  max-width: 480px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dv-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.dv-pager,
.dv-pdf-controls,
.dv-zoom-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dv-ctrl-btn {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  border-radius: 999px;
  padding: 5px 12px;
  font: 600 12.5px var(--sans);
  cursor: pointer;
}

.dv-ctrl-btn:hover:not(:disabled) {
  background: var(--tint-blue);
  color: var(--cobalt);
}

.dv-ctrl-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.dv-page-readout {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
}

.dv-page-input {
  width: 48px;
  padding: 4px 6px !important;
  border-radius: 8px !important;
  text-align: center;
}

.dv-seg-group {
  display: inline-flex;
  background: #e2e8f2;
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
}

.dv-seg-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 12px var(--sans);
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.dv-seg-btn.active {
  background: var(--white);
  color: var(--navy);
}

.dv-zoom-label {
  min-width: 42px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

.dv-search-input {
  width: 200px;
  border-radius: 999px !important;
  padding: 5px 12px !important;
}

.dv-sheet-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 20px;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.dv-sheet-tab {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font: 600 12.5px var(--sans);
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.dv-sheet-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.dv-canvas {
  flex: 1;
  overflow: auto;
  background: var(--wash);
}

.dv-canvas.is-table-mode {
  background: var(--white);
}

.dv-state-box {
  padding: 64px 20px;
  text-align: center;
  color: var(--muted);
}

.dv-error-box {
  margin: 24px auto;
  max-width: 600px;
  background: var(--tint-amber);
  color: #92400e;
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 14px;
}

.dv-pdf-stage {
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dv-pdf-sheet {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dv-pdf-img {
  display: block;
  width: 100%;
  height: auto;
}

.dv-scan-note {
  font-size: 12.5px;
  color: #92400e;
  background: var(--tint-amber);
  border-radius: 999px;
  padding: 6px 14px;
}

.dv-docx-stage {
  padding: 24px 18px 36px;
  display: flex;
  justify-content: center;
}

.dv-docx-paper {
  width: min(820px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 34px 40px;
  font-size: 15px;
}

.dv-docx-table-wrap {
  margin: 14px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.dv-docx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

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

.dv-docx-table th {
  background: var(--wash);
  font-weight: 700;
}

.dv-grid-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.dv-grid-table thead th {
  position: sticky;
  top: 0;
  background: var(--wash);
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.dv-grid-table tbody td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dv-grid-rownum {
  width: 44px;
  text-align: right !important;
  color: var(--muted);
  background: var(--wash);
  font-family: var(--mono);
}

.dv-text-stage {
  padding: 20px;
  display: flex;
  justify-content: center;
}

.dv-text-sheet {
  width: min(920px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 0;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
}

.doc-line {
  display: flex;
  gap: 14px;
  padding: 1px 16px;
}

.doc-line:hover {
  background: var(--tint-blue);
}

.doc-ln {
  min-width: 36px;
  text-align: right;
  color: #94a3b8;
  user-select: none;
}

.doc-txt {
  white-space: pre-wrap;
  word-break: break-word;
}

.dv-swift-tag {
  color: var(--cobalt);
  font-weight: 600;
  background: var(--tint-blue);
  padding: 0 5px;
  border-radius: 4px;
}

.dv-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: var(--wash);
  border-top: 1px solid var(--line);
}

.dv-status {
  font-size: 12.5px;
  color: var(--muted);
}

/* Standalone /view-doc */
.doc-viewer-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-viewer-file { font-size: 13px; font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-viewer-shell { padding: 32px 0 56px; }
.doc-viewer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.doc-viewer-head h1 { font-size: 20px; }
.doc-viewer-lines { background: var(--wash); border: 1px solid var(--line); border-radius: 16px; padding: 12px 0; font-size: 13px; overflow-x: auto; }


/* ============================================================================
   9. ValidBid-Replica Enterprise Landing Page (body.landing-page)
   Exact validbid.in layout, proportions, 3D window, bento & dock in ValidEXIM
   Royal Cobalt (#1D4ED8) + India Saffron (#F97316 / #FB923C) + Navy (#0A1F44)
   ============================================================================ */
body.landing-page {
  background: var(--white);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
}

.landing-page .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.landing-page h1,
.landing-page h2,
.landing-page h3 {
  font-family: var(--head);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

.landing-page h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 800;
  color: var(--white);
}

.landing-page h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 800;
  color: var(--navy);
}

.landing-page h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.landing-page p {
  margin: 0;
}

.landing-page .lead {
  font-size: 19.5px;
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.6;
}

/* Landing Header (header.site — matches validbid.in 3-zone header) */
.landing-page header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.landing-page header.site::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 52%, #f97316 100%);
}

.landing-page header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 98px;
}

.landing-page header.site .brand img {
  height: 66px;
  width: auto;
  display: block;
}

.landing-page nav.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex: 1;
  margin-left: 28px;
}

.landing-page .lp-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.landing-page .lp-nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.landing-page .lp-nav-links a:hover {
  color: var(--cobalt);
}

.landing-page .lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.landing-page .lp-signin-link {
  font: 600 15px var(--sans);
  color: var(--navy);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.landing-page .lp-signin-link:hover {
  color: var(--cobalt);
  background: var(--wash);
}

/* ValidBid Primary Pill Button with Circular Saffron Arrow */
.landing-page .lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--cobalt);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--head);
  font-weight: 700;
  font-size: 16px;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.landing-page .lp-btn:hover {
  background: var(--cobalt-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(29, 78, 216, 0.48);
}

.landing-page .lp-btn .ar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--saffron-light);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.landing-page .lp-btn.nav-cta {
  font-size: 14.5px;
  padding: 7px 7px 7px 20px;
  gap: 10px;
  height: 48px;
}

.landing-page .lp-btn.nav-cta .ar {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.landing-page .lp-btn.light {
  background: #ffffff;
  color: var(--navy);
}

.landing-page .lp-btn.light:hover {
  background: #eaf1ff;
}

.landing-page .lp-btn.light .ar {
  background: var(--saffron-light);
  color: var(--navy-deep);
}

.landing-page .lp-btn.ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.36);
  padding: 11px 22px;
  font-size: 14.5px;
  font-weight: 600;
}

.landing-page .lp-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- Diagonal Deep-Navy Hero ---------- */
.landing-page .hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 84px 0 140px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(59, 130, 246, 0.44), transparent 60%),
    radial-gradient(700px 500px at 60% 100%, rgba(249, 115, 22, 0.28), transparent 60%),
    linear-gradient(160deg, var(--navy-2), var(--navy-deep) 70%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 72px), 0 100%);
}

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

.landing-page .hero .stack > * + * {
  margin-top: 24px;
}

.landing-page .hero .lead {
  color: #b7c6e3;
}

.landing-page .hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #7fb2ff 0%, #fb923c 58%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-page .hero .cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 6px;
}

.landing-page .hero .fine {
  font-size: 14px;
  color: #8ea2c8;
}

/* ---------- 3D Product Window Mock (.win) ---------- */
.landing-page .hero-media-stage {
  position: relative;
}

.landing-page .win {
  position: relative;
  background: #ffffff;
  color: var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}

.landing-page .win .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.landing-page .win .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e6;
  display: inline-block;
}

.landing-page .win .bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.landing-page .win .swap {
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.landing-page .win .swap.out {
  opacity: 0;
  transform: translateY(6px);
}

.landing-page .win .sum {
  display: flex;
  gap: 10px;
  padding: 16px 18px 6px;
  flex-wrap: wrap;
}

.landing-page .lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.landing-page .lp-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.landing-page .lp-pill.v {
  background: var(--tint-mint);
  color: #047857;
}

.landing-page .lp-pill.w {
  background: var(--tint-amber);
  color: #92400e;
}

.landing-page .lp-pill.d {
  background: var(--tint-rose);
  color: #b91c1c;
}

.landing-page .lp-pill.b {
  background: var(--tint-blue);
  color: var(--cobalt);
}

.landing-page .meter {
  display: flex;
  height: 8px;
  margin: 12px 18px 4px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line);
}

.landing-page .meter i {
  display: block;
  transition: flex 0.4s ease;
}

.landing-page .meter i:nth-child(1) {
  background: var(--emerald-bright);
}

.landing-page .meter i:nth-child(2) {
  background: #f59e0b;
}

.landing-page .meter i:nth-child(3) {
  background: var(--fail);
}

.landing-page .rows {
  padding: 8px 18px 18px;
}

.landing-page .rows .r {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.landing-page .rows .r:last-child {
  border-bottom: 0;
}

.landing-page .lp-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
  flex-shrink: 0;
}

.landing-page .lp-dot.v { background: var(--emerald-bright); }
.landing-page .lp-dot.w { background: #f59e0b; }
.landing-page .lp-dot.d { background: var(--fail); }

.landing-page .rows b {
  font-weight: 600;
  display: block;
  color: var(--navy);
  line-height: 1.35;
}

.landing-page .rows small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 2px;
}

.landing-page .float {
  position: absolute;
  background: #ffffff;
  color: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.landing-page .float.f1 {
  left: -30px;
  bottom: 24px;
}

.landing-page .float.f2 {
  right: -14px;
  top: 58px;
}

.landing-page .float .ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--tint-mint);
  color: var(--emerald);
  font-weight: 800;
}

.landing-page .float.f2 .ic {
  background: var(--tint-saffron);
  color: var(--saffron-deep);
}

.landing-page .win-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}

.landing-page .win-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.landing-page .win-dots button.on {
  width: 30px;
  background: var(--saffron-light);
}

.landing-page .hero-sub-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.landing-page .lp-demo-pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.92), rgba(194, 65, 12, 0.88));
  border: 1px solid rgba(251, 146, 60, 0.45);
  color: #ffffff;
  text-decoration: none;
  font: 600 14.5px var(--head);
  box-shadow: 0 12px 30px -8px rgba(2, 10, 30, 0.55);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.landing-page .lp-demo-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.landing-page .lp-play-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--saffron-light);
  color: var(--navy-deep);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.landing-page .lp-demo-tag {
  font: 600 11.5px var(--mono);
  background: rgba(6, 20, 46, 0.38);
  padding: 3px 9px;
  border-radius: 999px;
  color: #fed7aa;
}

/* ---------- 4-Column Overlapping Trust Facts ---------- */
.landing-page .facts {
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.landing-page .facts .facts-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.landing-page .fact {
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}

.landing-page .fact:last-child {
  border-right: 0;
}

.landing-page .fact b {
  display: block;
  font-family: var(--head);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cobalt);
  line-height: 1.2;
}

.landing-page .fact span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
  display: block;
  margin-top: 6px;
}

/* ---------- Landing Sections & Trio ---------- */
.landing-page section.pad {
  padding: 98px 0;
}

.landing-page .head-block {
  max-width: 760px;
}

.landing-page .head-block > * + * {
  margin-top: 16px;
}

.landing-page .trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.landing-page .lp-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-page .lp-card .tag {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--tint-blue);
  color: var(--cobalt);
  font: 800 16px/1 var(--head);
  display: grid;
  place-items: center;
}

.landing-page .lp-card:nth-child(2) .tag {
  background: var(--tint-saffron);
  color: var(--saffron-deep);
}

.landing-page .lp-card p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.58;
}

.landing-page .callout {
  margin-top: 24px;
  border-radius: 24px;
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #ffffff;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}

.landing-page .callout .ic {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--saffron-light);
  color: var(--navy-deep);
  font: 800 22px/1 var(--head);
  display: grid;
  place-items: center;
}

.landing-page .callout h3 {
  color: #ffffff;
  margin-bottom: 6px;
}

.landing-page .callout p {
  color: #c3d0ea;
  font-size: 16px;
  margin-bottom: 16px;
  max-width: 68ch;
}

/* ---------- 6-Column Bento Grid ---------- */
.landing-page .bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.landing-page .tile {
  position: relative;
  border-radius: 24px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(10, 31, 68, 0.06);
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.landing-page .tile h3 {
  max-width: 22ch;
}

.landing-page .tile p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 16px;
  max-width: 48ch;
  line-height: 1.55;
}

.landing-page .tile .go {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.landing-page .tile .go:hover {
  transform: translate(2px, -2px);
}

.landing-page .t-a {
  grid-column: span 3;
  background: var(--tint-blue);
}

.landing-page .t-b {
  grid-column: span 3;
  background: var(--tint-mint);
}

.landing-page .t-c {
  grid-column: span 6;
  background: var(--tint-saffron);
  border-color: #fed7aa;
}

.landing-page .t-d {
  grid-column: span 3;
  background: var(--tint-rose);
}

.landing-page .t-e {
  grid-column: span 3;
  background: var(--navy);
  color: #ffffff;
}

.landing-page .t-e h3 {
  color: #ffffff;
}

.landing-page .t-e p {
  color: #b7c6e3;
}

.landing-page .t-e .go {
  background: var(--saffron-light);
  color: var(--navy-deep);
}

.landing-page .tile .mini {
  margin-top: auto;
  padding-top: 22px;
}

/* Scrolling requirement tracks inside Bento */
.landing-page .reqs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.landing-page .reqs-head .hint {
  font-weight: 500;
}

.landing-page .reqs-scroll {
  height: 236px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(10, 31, 68, 0.08);
  padding: 0 16px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}

.landing-page .reqs-track.run {
  animation: vbLandingUp 48s linear infinite;
  animation-play-state: paused;
}

.landing-page .reqs-track.rev {
  animation-direction: reverse;
}

.landing-page .reqs-scroll.play .reqs-track.run {
  animation-play-state: running;
}

@media (hover: hover) {
  .landing-page .reqs-scroll:hover .reqs-track.run {
    animation-play-state: running;
  }
}

@keyframes vbLandingUp {
  to { transform: translateY(-50%); }
}

.landing-page .rq {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.landing-page .rq span b {
  font-weight: 600;
  color: var(--navy);
  display: block;
}

.landing-page .rq small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

.landing-page .rq .fx {
  flex: 1;
}

/* Bento Row 2: Fix Workflow */
.landing-page .fixflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.landing-page .fstep {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(10, 31, 68, 0.07);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

.landing-page .fstep b {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cobalt);
  color: #ffffff;
  font-family: var(--head);
  font-size: 13px;
}

.landing-page .fstep:nth-child(2) b { background: var(--saffron-deep); }
.landing-page .fstep:nth-child(3) b { background: var(--emerald); }
.landing-page .fstep:nth-child(4) b { background: var(--navy); }

.landing-page .rounds {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 14px;
  font-size: 13px;
}

.landing-page .rounds i {
  font-style: normal;
  color: var(--muted);
}

.landing-page .rd {
  display: inline-flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: 0 4px 14px rgba(10, 31, 68, 0.07);
  font-weight: 600;
  color: var(--navy);
}

.landing-page .rd em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing-page .rd.ok {
  background: var(--tint-mint);
  color: #047857;
}

.landing-page .rd.ok em {
  color: #047857;
}

/* Bento Row 3: Say-vs-Say & Control List */
.landing-page .vs {
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.landing-page .vs.out {
  opacity: 0;
  transform: translateY(6px);
}

.landing-page .vs small {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.landing-page .vs-a {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 15px 18px;
}

.landing-page .vs-a small {
  color: var(--muted);
}

.landing-page .vs-a q {
  quotes: "“" "”";
  display: block;
  font-size: 16.5px;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: #9aa8bf;
  text-decoration-thickness: 1.5px;
}

.landing-page .vs-b {
  margin-top: 10px;
  background: #ffffff;
  border-left: 5px solid var(--saffron-bright);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 6px 20px rgba(10, 31, 68, 0.08);
}

.landing-page .vs-b small {
  color: var(--saffron-deep);
}

.landing-page .vs-b strong {
  display: block;
  font-family: var(--head);
  font-size: 18px;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.landing-page .vs-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.landing-page .vs-dots {
  display: flex;
  gap: 7px;
}

.landing-page .vs-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 31, 68, 0.2);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.landing-page .vs-dots button.on {
  width: 26px;
  background: var(--navy);
}

.landing-page .vs-sample {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing-page .keeps {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: grid;
  gap: 12px;
}

.landing-page .keeps li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: #e2ecff;
}

.landing-page .keeps .k-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(251, 146, 60, 0.2);
  color: var(--saffron-light);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- Two Promises ---------- */
.landing-page .promises {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.landing-page .promise {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  border-radius: 24px;
  padding: 34px 36px;
  color: #ffffff;
  background: var(--navy);
}

.landing-page .promise:nth-child(2) {
  background: linear-gradient(135deg, #1e3a8a, var(--navy-2));
}

.landing-page .promise .ic {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  background: var(--saffron-light);
  color: var(--navy-deep);
}

.landing-page .promise h3 {
  color: #ffffff;
  margin-bottom: 10px;
}

.landing-page .promise p {
  color: #c3d0ea;
  font-size: 16px;
}

.landing-page .promise a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

/* ---------- Resource Article Cards ---------- */
.landing-page .article-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.landing-page .article-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
}

.landing-page .article-card .tagline {
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron-deep);
}

.landing-page .article-card p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.landing-page .article-card .more {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--cobalt);
  margin-top: 8px;
}

/* ---------- Closing Gradient Band & 4-Col Footer ---------- */
.landing-page .closing {
  text-align: center;
  padding: 96px 0;
  background: linear-gradient(135deg, #1e3a8a 0%, var(--cobalt) 54%, #c2410c 100%);
  color: #ffffff;
}

.landing-page .closing h2 {
  color: #ffffff;
}

.landing-page .closing .stack > * + * {
  margin-top: 24px;
}

.landing-page .closing .lead {
  margin-left: auto;
  margin-right: auto;
  color: #dce7ff;
}

.landing-page .closing .lp-btn {
  background: #ffffff;
  color: var(--navy);
}

.landing-page .closing .lp-btn:hover {
  background: #f4f7fb;
}

.landing-page .closing .lp-btn .ar {
  background: var(--navy);
  color: #ffffff;
}

.landing-page .closing .closing-sub {
  font-size: 14px;
  color: #e2ecff;
  margin-top: 16px;
}

.landing-page .closing .closing-sub a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

.landing-page footer.site {
  background: var(--navy-deep);
  color: #8ea2c8;
  padding: 56px 0 116px;
  font-size: 14.5px;
}

.landing-page footer.site .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.landing-page footer.site .foot-logo {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.landing-page footer.site .foot-about {
  font-size: 14px;
  color: #9fb0cf;
  max-width: 38ch;
  line-height: 1.6;
}

.landing-page footer.site h4 {
  color: #ffffff;
  margin: 0 0 12px;
  font: 600 14px var(--sans);
  letter-spacing: 0;
}

.landing-page footer.site a {
  display: block;
  color: #8ea2c8;
  text-decoration: none;
  padding: 4px 0;
}

.landing-page footer.site a:hover {
  color: #ffffff;
}

.landing-page footer.site .legal-note {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  line-height: 1.6;
  max-width: 1020px;
}

.landing-page footer.site .base {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  padding-top: 20px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-page footer.site .base-links a {
  display: inline;
  margin-left: 18px;
  padding: 0;
}

/* ---------- Floating Bottom Section Dock (.dock) ---------- */
.landing-page .dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(6, 20, 46, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(2, 10, 30, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-page .dock a {
  color: #b7c6e3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.landing-page .dock a:hover:not(.on) {
  color: #ffffff;
}

.landing-page .dock a.on {
  background: var(--saffron-light);
  color: var(--navy-deep);
}

@media (max-width: 960px) {
  .landing-page header.site .wrap {
    height: 82px;
    padding: 0 18px;
  }
  .landing-page header.site .brand img {
    height: 50px;
  }
  .landing-page .lp-nav-links {
    display: none;
  }
  .landing-page .wrap {
    padding: 0 20px;
  }
  .landing-page .hero {
    clip-path: none;
    padding: 56px 0 88px;
  }
  .landing-page .hero .grid,
  .landing-page .trio,
  .landing-page .bento,
  .landing-page .promises,
  .landing-page .callout {
    grid-template-columns: 1fr;
  }
  .landing-page .win {
    transform: none;
  }
  .landing-page .float {
    display: none;
  }
  .landing-page .facts .facts-card {
    grid-template-columns: 1fr 1fr;
  }
  .landing-page .fact:nth-child(2) {
    border-right: 0;
  }
  .landing-page .fact:nth-child(1),
  .landing-page .fact:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .landing-page .tile {
    grid-column: auto !important;
    padding: 24px;
  }
  .landing-page .fixflow {
    grid-template-columns: 1fr 1fr;
  }
  .landing-page footer.site .cols {
    grid-template-columns: 1fr 1fr;
  }
  .landing-page .dock {
    display: none;
  }
}

@media (max-width: 560px) {
  .landing-page .facts .facts-card,
  .landing-page .fixflow,
  .landing-page footer.site .cols {
    grid-template-columns: 1fr;
  }
  .landing-page .fact {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .landing-page .fact:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page .reqs-track.run {
    animation: none;
  }
  .landing-page .reqs-scroll {
    overflow-y: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
