/* TradePL Industrial B2B Design System */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-obsidian: #070B14;
  --bg-slate-900: #0F172A;
  --bg-slate-800: #1E293B;
  --surface-paper: #F8FAFC;
  --surface-card: #FFFFFF;
  --accent-emerald: #059669;
  --accent-emerald-bright: #10B981;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-dark: rgba(255, 255, 255, 0.09);
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Language visibility */
html:not([data-lang="de"]) .lang-de { display: none !important; }
html[data-lang="de"] .lang-pl { display: none !important; }

/* Tabular mono typography for engineering data, specs, tolerances & pricing */
.font-mono-tech {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
}

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

/* Critical fix: prevent uppercase CSS from turning µm into MM */
.unit-safe, .no-uppercase {
  text-transform: none !important;
}

/* Precision industrial architectural grid backgrounds */
.bg-arch-grid-dark {
  background-color: #070B14;
  background-image:
    radial-gradient(circle at 18% 15%, rgba(16, 185, 129, 0.13), transparent 44%),
    radial-gradient(circle at 82% 80%, rgba(30, 58, 138, 0.16), transparent 48%),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

.bg-arch-grid-light {
  background-color: #F8FAFC;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Glassmorphism surfaces */
.glass-dark {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* Premium card hover elevation */
.card-industrial {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

.card-industrial:hover {
  transform: translateY(-3px);
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(5, 150, 105, 0.12);
}

/* Custom Range Slider */
input[type="range"].tradepl-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #1E293B;
  border-radius: 999px;
  outline: none;
}

input[type="range"].tradepl-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10B981;
  border: 3px solid #070B14;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type="range"].tradepl-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

input[type="range"].tradepl-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10B981;
  border: 3px solid #070B14;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4);
  cursor: pointer;
}

/* Crisp custom scrollbars for spec tables */
.table-scroll::-webkit-scrollbar {
  height: 6px;
}
.table-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 999px;
}
.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.22);
  border-radius: 999px;
}

/* Consent banner positioning - non-intrusive bottom-left pill on desktop */
#tradepl-consent-bar {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 390px;
  background: rgba(7, 11, 20, 0.96);
  backdrop-filter: blur(12px);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
  #tradepl-consent-bar {
    left: 12px;
    right: 12px;
    bottom: 76px;
    max-width: none;
  }
}

/* Ensure FAQ accordions feel crisp */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}
details[open] .faq-chevron {
  transform: rotate(180deg);
}
.faq-chevron {
  transition: transform 0.2s ease;
}
