/* PolicyXAI Global Master Stylesheet — Institutional Legal Authority Design System v3.0 */
:root {
  --color-canvas: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-surface-subtle: #F1F5F9;
  --color-surface-elevated: #FFFFFF;
  --color-fg: #0F172A;
  --color-fg-muted: #475569;
  --color-fg-subtle: #64748B;
  
  /* Primary Trust & Authority — Royal Cobalt Blue */
  --color-primary: #1D4ED8;
  --color-primary-hover: #1E40AF;
  --color-primary-light: #EFF6FF;
  --color-primary-border: #BFDBFE;

  /* Trust Indicators & Active Statutes — Emerald Green */
  --color-emerald: #059669;
  --color-emerald-hover: #047857;
  --color-emerald-light: #ECFDF5;
  --color-emerald-border: #A7F3D0;

  /* Regulatory Bad-Faith & Deadlines — Amber */
  --color-amber: #D97706;
  --color-amber-light: #FFFBEB;
  --color-amber-border: #FDE68A;

  /* Carrier Violations & Unlawful Denials — Crimson */
  --color-rust: #DC2626;
  --color-rust-light: #FEF2F2;
  --color-rust-border: #FECACA;

  /* Clean Institutional Borders & Shadows */
  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;
  --color-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --color-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
  --color-shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --color-shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --color-shadow-primary: 0 10px 20px -5px rgba(29, 78, 216, 0.25);

  /* Typography */
  --font-sans: 'Public Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-display: 'Newsreader', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--color-canvas);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(29, 78, 216, 0.07) 0%, transparent 70%),
    radial-gradient(#CBD5E1 0.75px, transparent 0.75px);
  background-size: 100% 100%, 28px 28px;
  background-attachment: scroll, fixed;
  color: var(--color-fg);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

/* Sticky Institutional Header */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 70px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.15s ease;
}
.brand-logo:hover {
  transform: translateY(-1px);
}
.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--color-fg);
  line-height: 1;
  font-weight: 600;
}
.brand-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
@media (max-width: 890px) {
  .nav-links { display: none; }
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-fg-muted);
  transition: all 0.15s ease;
  padding: 6px 0;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}
.nav-link.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Institutional Luxury Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 6px;
  height: 42px;
  padding: 0 20px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  position: relative;
}
.btn-primary {
  background: linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 4px rgba(29, 78, 216, 0.2);
  border: 1px solid #1E40AF;
}
.btn-primary:hover {
  background: linear-gradient(180deg, #3B82F6 0%, #1D4ED8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 14px rgba(29, 78, 216, 0.28);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(29, 78, 216, 0.2);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--color-fg);
  border-color: var(--color-border-strong);
  box-shadow: var(--color-shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-surface-subtle);
  transform: translateY(-1px);
  box-shadow: var(--color-shadow);
}

.btn-emerald {
  background: linear-gradient(180deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: 1px solid #047857;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 4px rgba(5, 150, 105, 0.2);
}
.btn-emerald:hover {
  background: linear-gradient(180deg, #34D399 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.25);
}

/* Engine Active Indicator */
.badge-engine {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-emerald);
  background: var(--color-emerald-light);
  border: 1px solid var(--color-emerald-border);
  padding: 5px 10px;
  border-radius: 5px;
}
.pulse-emerald {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
  animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* Sections & Typography */
.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}
@media (max-width: 768px) {
  .section-container { padding: 48px 16px; }
}

.tag-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary-light);
  border: 1px solid var(--color-primary-border);
  padding: 5px 12px;
  border-radius: 5px;
  margin-bottom: 18px;
}

.display-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--color-fg);
  font-weight: 600;
  margin-bottom: 20px;
}
.display-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-fg);
  font-weight: 600;
  margin-bottom: 16px;
}
.display-h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  color: var(--color-fg);
  font-weight: 600;
  margin-bottom: 8px;
}

.lead-p {
  color: var(--color-fg-muted);
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 720px;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Institutional Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--color-shadow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--color-shadow-md);
  transform: translateY(-2px);
}
.card-highlight {
  border: 1px solid var(--color-primary-border);
  background: #FFFFFF;
  box-shadow: var(--color-shadow-md);
}
.card-highlight:hover {
  box-shadow: var(--color-shadow-lg);
}

/* Stat Micro-Cards */
.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: var(--color-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.stat-card:hover {
  border-color: var(--color-primary-border);
  box-shadow: var(--color-shadow);
  transform: translateY(-1px);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-fg);
  line-height: 1.1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-fg-muted);
  margin-top: 4px;
}

/* Official Benchmark Dossier Document Styling */
.dossier-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border-strong);
  border-radius: 10px;
  padding: 32px;
  box-shadow: var(--color-shadow-lg);
  position: relative;
}
.dossier-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1D4ED8 0%, #059669 100%);
  border-radius: 10px 10px 0 0;
}
.dossier-seal-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  opacity: 0.95;
  transition: transform 0.2s;
}
.dossier-seal-badge:hover {
  transform: rotate(5deg) scale(1.05);
}

/* Clean Footer */
.footer {
  border-top: 1px solid var(--color-border);
  background: #FFFFFF;
  margin-top: auto;
  padding: 64px 24px 40px;
  font-size: 0.85rem;
  color: var(--color-fg-muted);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
.footer-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-fg);
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link {
  color: var(--color-fg-muted);
  font-size: 0.85rem;
  transition: color 0.15s;
}
.footer-link:hover {
  color: var(--color-primary);
}
.footer-bottom {
  max-width: 1240px;
  margin: 40px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-fg-subtle);
}

/* Interactive State Calculator & Badges */
.state-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.state-badge-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  color: var(--color-fg-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.state-badge-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}
.state-badge-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25);
}
.calc-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.calc-input-prefix {
  position: absolute;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-fg-muted);
}
.calc-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 34px;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-fg);
  background: #FFFFFF;
  border: 1px solid var(--color-border-strong);
  border-radius: 6px;
  transition: border-color 0.15s;
}
.calc-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.calc-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.calc-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-subtle);
  color: var(--color-fg-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.calc-chip:hover {
  background: #FFFFFF;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.statute-detail-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border-strong);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--color-shadow-md);
  position: relative;
}
.exposure-box {
  background: var(--color-emerald-light);
  border: 1px solid var(--color-emerald-border);
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

/* Product Hero Terminal Mockup */
.product-hero-terminal {
  background: #FFFFFF;
  border: 1px solid var(--color-border-strong);
  border-radius: 10px;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  position: relative;
}
.terminal-header {
  background: #0F172A;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #EF4444; }
.terminal-dot.yellow { background: #F59E0B; }
.terminal-dot.green { background: #10B981; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
  margin-left: 8px;
}
.terminal-status {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #34D399;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.terminal-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-surface-subtle);
  border-bottom: 1px solid var(--color-border);
}
.t-tab {
  padding: 10px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
  color: var(--color-fg-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.t-tab:hover {
  color: var(--color-primary);
}
.t-tab.active {
  color: var(--color-primary);
  background: #FFFFFF;
  border-bottom-color: var(--color-primary);
}
.terminal-body {
  padding: 24px;
}
.hero-dropzone-cta {
  border: 2px dashed var(--color-primary-border);
  background: var(--color-primary-light);
  border-radius: 8px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.hero-dropzone-cta:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.12);
}
.diff-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.diff-row {
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 0.825rem;
}
.diff-row.red {
  background: var(--color-rust-light);
  border-left: 4px solid var(--color-rust);
  color: #991B1B;
}
.diff-row.green {
  background: var(--color-emerald-light);
  border-left: 4px solid var(--color-emerald);
  color: #065F46;
}
.diff-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}


/* ==========================================================================
   MOBILE & RESPONSIVE POLISH v3.3
   ========================================================================== */

/* Prevent horizontal scroll overflow globally */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}
body.mobile-nav-open {
  overflow: hidden;
}

/* Header layout & actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: all 0.2s ease;
  z-index: 60;
}
.mobile-menu-btn:hover {
  background: var(--color-surface-subtle);
  border-color: var(--color-border-strong);
}
.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--color-fg);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-menu-btn.open .bar-1 {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.open .bar-2 {
  opacity: 0;
}
.mobile-menu-btn.open .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-nav-drawer.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-inner {
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.12);
  padding: 20px 20px 28px;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  transform: translateY(-12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-drawer.open .mobile-nav-inner {
  transform: translateY(0);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-fg);
  border-radius: 6px;
  transition: all 0.15s ease;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}
.mobile-nav-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.mobile-nav-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.btn-block {
  width: 100%;
}

/* Text Swapping Utilities for Tight Mobile Viewports */
.btn-text-full { display: inline; }
.btn-text-short { display: none; }
.tab-label-full { display: inline; }
.tab-label-short { display: none; }

/* Hero Action Buttons */
.hero-action-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Stat Grid Hero */
.stat-grid-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
}

/* Table container */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Media Query: <= 890px */
@media (max-width: 890px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
  .mobile-nav-drawer {
    display: block;
  }
  .hidden-mobile {
    display: none !important;
  }
}

/* Media Query: <= 680px */
@media (max-width: 680px) {
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }
  .mobile-nav-drawer {
    top: 60px;
  }
  .mobile-nav-inner {
    max-height: calc(100vh - 60px);
    padding: 16px 16px 24px;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-badge {
    font-size: 8.5px;
  }

  .stat-grid-hero {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
  }
  .stat-card {
    padding: 12px 14px;
  }
  .stat-num {
    font-size: 1.45rem;
  }
  .stat-label {
    font-size: 9px;
  }

  .display-h1 {
    font-size: clamp(1.85rem, 6vw, 2.35rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 14px !important;
  }
  .display-h2 {
    font-size: clamp(1.45rem, 5vw, 1.85rem) !important;
    line-height: 1.25 !important;
  }
  .display-h3 {
    font-size: 1.15rem !important;
  }
  .lead-p {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }
  .section-container {
    padding: 40px 16px !important;
  }
  .card {
    padding: 20px 16px !important;
  }

  /* Product Terminal Mobile */
  .terminal-header {
    padding: 10px 14px;
  }
  .terminal-title {
    font-size: 10px;
  }
  .terminal-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
  .t-tab {
    padding: 8px 4px;
    font-size: 9px;
    letter-spacing: 0;
  }
  .tab-label-full { display: none; }
  .tab-label-short { display: inline; }
  .terminal-body {
    padding: 16px 14px;
  }
  .hero-dropzone-cta {
    padding: 20px 12px;
  }
  .diff-row {
    padding: 10px 12px;
    font-size: 0.775rem;
  }
  .diff-row code {
    word-break: break-word;
    white-space: normal;
  }
}

/* Media Query: <= 480px */
@media (max-width: 480px) {
  .btn-text-full { display: none; }
  .btn-text-short { display: inline; }
  .btn-header-cta {
    height: 38px;
    padding: 0 14px;
    font-size: 0.8rem;
  }
  .hero-action-buttons {
    flex-direction: column;
  }
  .hero-action-buttons .btn {
    width: 100%;
  }
  .section-container {
    padding: 32px 14px !important;
  }
}

/* Media Query: <= 340px */
@media (max-width: 340px) {
  .stat-grid-hero {
    grid-template-columns: 1fr;
  }
  .brand-badge {
    display: none;
  }
}


/* ==========================================================================
   Pre-Loss Policy Exposure Audit Component Styles (v3.4)
   ========================================================================== */
.audit-wizard {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--color-shadow);
  padding: 36px;
  margin-bottom: 48px;
}
.wizard-steps {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
  margin-bottom: 32px;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-fg-subtle);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.wizard-step.active {
  color: var(--color-primary);
  font-weight: 600;
}
.wizard-step.completed {
  color: var(--color-emerald);
}
.audit-dropzone {
  border: 2px dashed var(--color-border-strong);
  border-radius: 10px;
  background: var(--color-canvas);
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.audit-dropzone:hover, .audit-dropzone.dragover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.audit-dropzone.has-file {
  border-color: var(--color-emerald);
  background: var(--color-emerald-light);
}
.exposure-score-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 28px;
  gap: 24px;
}
.score-circle-wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
}
.score-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  background: #FFFBEB;
  border: 3px solid #F59E0B;
  color: #B45309;
}
.score-circle span {
  font-size: 0.65rem;
  font-weight: normal;
  color: var(--color-fg-subtle);
  margin-top: 2px;
}
.exposure-card-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.exposure-card-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--color-shadow);
}
.exposure-card-item.danger {
  border-left-color: #EF4444;
}
.exposure-card-item.warning {
  border-left-color: #F59E0B;
}
.exposure-card-item.info {
  border-left-color: var(--color-primary);
}
.exposure-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.severity-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.severity-pill.danger {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}
.severity-pill.warning {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}
.broker-letter-box {
  background: #0F172A;
  color: #E2E8F0;
  border-radius: 8px;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  position: relative;
  overflow-x: auto;
  margin-top: 16px;
}
.vault-box {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-canvas) 100%);
  border: 1px solid var(--color-emerald-border);
  border-radius: 10px;
  padding: 28px;
  margin-top: 32px;
}
@media (max-width: 768px) {
  .audit-wizard { padding: 20px 16px; }
  .exposure-score-banner { flex-direction: column; align-items: flex-start; }
  .wizard-steps { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 12px; }
  .wizard-step { white-space: nowrap; font-size: 0.75rem; }
}
