/* ==========================================================================
   SOFTECHPRO CALIBRATION BENCH — DESIGN SYSTEM v2.0.7 (Softechpro Solutions LLC)
   Awwwards Precision Automotive Hardware Aesthetic · Dark Bench + Daylight Workshop
   ========================================================================== */

:root {
  /* Fonts */
  --f-display: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-ui: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Dark Bench (Default) */
  --ground: #111214;
  --surface: #181A1F;
  --surface-2: #21242B;
  --surface-3: #282C35;
  --ink: #F5F6F8;
  --ink-2: #D4D8E2;
  --muted: #9399A6;
  --line: rgba(245, 246, 248, 0.09);
  --line-strong: rgba(245, 246, 248, 0.17);
  --grid-line: rgba(245, 246, 248, 0.038);

  /* Cars Division Accent (Precision Cobalt) */
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --accent-line: rgba(59, 130, 246, 0.36);
  --accent-ring: rgba(59, 130, 246, 0.28);
  --accent-ink: #FFFFFF;

  /* Proprietary SPX Currency (Gold-Amber) */
  --spx: #F59E0B;
  --spx-hover: #D97706;
  --spx-soft: rgba(245, 158, 11, 0.12);
  --spx-line: rgba(245, 158, 11, 0.34);
  --spx-ink: #111214;

  /* Status Signals */
  --ok: #10B981;
  --ok-soft: rgba(16, 185, 129, 0.12);
  --ok-line: rgba(16, 185, 129, 0.34);
  --danger: #EF4444;
  --danger-soft: rgba(239, 68, 68, 0.12);
  --danger-line: rgba(239, 68, 68, 0.36);
  --warn: #F59E0B;
  --warn-soft: rgba(245, 158, 11, 0.12);
  --warn-line: rgba(245, 158, 11, 0.34);

  /* Geometry & Motion (Detent & Lock) */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-panel: 280ms;
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.42);
  --shadow-btn: 0 6px 20px rgba(59, 130, 246, 0.24);
  --dock-bg: rgba(17, 18, 20, 0.88);
}

/* Trucks Division Accent (Heavy Industrial Amber) */
:root:is([data-brand="trucks"],[data-sp-division="trucks"]),
:is([data-brand="trucks"],[data-sp-division="trucks"]) {
  --accent: #F97316;
  --accent-hover: #EA580C;
  --accent-soft: rgba(249, 115, 22, 0.13);
  --accent-line: rgba(249, 115, 22, 0.40);
  --accent-ring: rgba(249, 115, 22, 0.30);
  --accent-ink: #111214;
  --shadow-btn: 0 6px 20px rgba(249, 115, 22, 0.26);
}

/* Daylight Workshop Theme */
:root:is([data-theme="day"],[data-theme="light"]) {
  --ground: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #ECEEF2;
  --surface-3: #E2E6EE;
  --ink: #111318;
  --ink-2: #2B303B;
  --muted: #525866;
  --line: rgba(17, 19, 24, 0.10);
  --line-strong: rgba(17, 19, 24, 0.20);
  --grid-line: rgba(17, 19, 24, 0.05);
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-soft: rgba(37, 99, 235, 0.09);
  --accent-line: rgba(37, 99, 235, 0.34);
  --accent-ring: rgba(37, 99, 235, 0.22);
  --accent-ink: #FFFFFF;
  --spx: #B45309;
  --spx-hover: #92400E;
  --spx-soft: rgba(245, 158, 11, 0.13);
  --spx-line: rgba(180, 83, 9, 0.32);
  --spx-ink: #FFFFFF;
  --ok: #059669;
  --ok-soft: rgba(5, 150, 105, 0.10);
  --ok-line: rgba(5, 150, 105, 0.32);
  --danger: #DC2626;
  --danger-soft: rgba(220, 38, 38, 0.08);
  --danger-line: rgba(220, 38, 38, 0.32);
  --shadow-card: 0 14px 36px rgba(17, 19, 24, 0.08);
  --shadow-btn: 0 6px 18px rgba(37, 99, 235, 0.22);
  --dock-bg: rgba(255, 255, 255, 0.92);
}

:root:is([data-theme="day"],[data-theme="light"]):is([data-brand="trucks"],[data-sp-division="trucks"]) {
  --accent: #EA580C;
  --accent-hover: #C2410C;
  --accent-soft: rgba(234, 88, 12, 0.10);
  --accent-line: rgba(234, 88, 12, 0.36);
  --accent-ring: rgba(234, 88, 12, 0.24);
  --accent-ink: #FFFFFF;
  --shadow-btn: 0 6px 18px rgba(234, 88, 12, 0.24);
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--ground);
  color: var(--ink);
}
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, .sp-display {
  font-family: var(--f-display);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}

.sp-mono, code, pre {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--accent-hover); }

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

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

.sp-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: var(--r-sm);
}
.sp-skip-link:focus { left: 12px; }

/* ==========================================================================
   LIVE TELEMETRY PULSE & BADGES
   ========================================================================== */
@keyframes spPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  50% { opacity: 0.85; transform: scale(1.06); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

@keyframes spScanLine {
  0% { transform: translateY(-100%); opacity: 0; }
  12% { opacity: 0.55; }
  88% { opacity: 0.55; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.sp-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--ok-soft);
  border: 1px solid var(--ok-line);
  color: var(--ok);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sp-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22), 0 0 8px rgba(16, 185, 129, 0.52);
}

.sp-spx-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--spx-soft);
  border: 1px solid var(--spx-line);
  color: var(--spx);
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sp-div-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Theme Toggle Button */
.sp-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  min-height: 38px;
  padding: 0 11px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.sp-theme-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
  transform: translateY(-1px);
}
.sp-theme-btn svg { width: 15px; height: 15px; flex: none; }

/* ==========================================================================
   BRAND MARK
   ========================================================================== */
.sp-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}
.sp-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--accent-line);
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.sp-brand-icon svg { width: 20px; height: 20px; }
.sp-brand-name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.sp-brand-name span { color: var(--accent); }

/* ==========================================================================
   TOP COMMAND INSTRUMENT DOCK (64px Sticky)
   ========================================================================== */
.sp-dock {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 64px;
  background: linear-gradient(180deg, rgba(24, 27, 34, 0.96) 0%, rgba(16, 18, 22, 0.96) 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05), 0 4px 16px rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid var(--line);
}
:root:is([data-theme="day"],[data-theme="light"]) .sp-dock {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 246, 250, 0.96) 100%);
  box-shadow: inset 0 -1px 0 rgba(17, 19, 24, 0.07), 0 2px 10px rgba(17, 19, 24, 0.04);
}
.sp-dock-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 64px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.sp-dock-left, .sp-dock-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sp-dock-email {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   BUTTONS (Detent & Lock)
   ========================================================================== */
.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: var(--r-md);
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.sp-btn:active:not(:disabled) { transform: translateY(0); }
.sp-btn:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }
.sp-btn-full { width: 100%; }
.sp-btn-sm { min-height: 38px; padding: 8px 14px; font-size: 13px; border-radius: var(--r-sm); }

.sp-btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-btn);
}
.sp-btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.sp-btn-emerald {
  background: var(--ok);
  color: #052016;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.24);
}
.sp-btn-emerald:hover:not(:disabled) {
  filter: brightness(1.06);
  color: #052016;
  transform: translateY(-1px);
}

.sp-btn-spx {
  background: var(--spx);
  color: var(--spx-ink);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.24);
}
.sp-btn-spx:hover:not(:disabled) {
  background: var(--spx-hover);
  color: var(--spx-ink);
  transform: translateY(-1px);
}

.sp-btn-secondary {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--ink);
}
.sp-btn-secondary:hover:not(:disabled) {
  border-color: var(--accent-line);
  background: var(--surface-3);
  color: var(--ink);
  transform: translateY(-1px);
}

.sp-btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
}
.sp-btn-ghost:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}

.sp-btn-wa {
  background: rgba(16, 185, 129, 0.14);
  border-color: var(--ok-line);
  color: var(--ok);
}
.sp-btn-wa:hover:not(:disabled) {
  background: var(--ok);
  color: #052016;
  transform: translateY(-1px);
}

/* ==========================================================================
   AWWWARDS ASYMMETRIC SPLIT-FRAME AUTH (48% / 52%)
   ========================================================================== */
.sp-auth-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 48% 52%;
  background: var(--ground);
}

/* Left Architectural Monolith */
.sp-monolith {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 52px;
}

/* Calibration Grid Overlay */
.sp-monolith::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 28% 32%, #000 30%, transparent 90%);
  mask-image: radial-gradient(ellipse 90% 85% at 28% 32%, #000 30%, transparent 90%);
  pointer-events: none;
}

/* Subtle Instrument Accent Illumination */
.sp-monolith::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 340px at 14% 12%, var(--accent-soft), transparent 65%),
    radial-gradient(420px 300px at 88% 92%, var(--spx-soft), transparent 65%);
  pointer-events: none;
}

/* Subtle horizontal telemetry scanline */
.sp-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
}

.sp-monolith-top,
.sp-monolith-body,
.sp-monolith-foot {
  position: relative;
  z-index: 2;
}

.sp-monolith-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sp-monolith-body {
  max-width: 470px;
  margin: 40px 0;
}

.sp-coord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.sp-coord::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.sp-monolith-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 16px;
}
.sp-monolith-title em {
  font-style: normal;
  color: var(--accent);
}

.sp-monolith-lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.62;
  margin: 0 0 32px;
  max-width: 420px;
}

/* Real Hardware Capability Specs List */
.sp-spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.sp-spec-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.sp-spec-idx {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.sp-spec-idx.is-spx { color: var(--spx); border-color: var(--spx-line); background: var(--spx-soft); }
.sp-spec-idx.is-ok { color: var(--ok); border-color: var(--ok-line); background: var(--ok-soft); }
.sp-spec-idx svg { width: 16px; height: 16px; }
.sp-spec-list strong {
  display: block;
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.sp-spec-list span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.sp-monolith-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Right Precision Form Console */
.sp-console {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--ground);
  padding: 28px 36px 40px;
}

.sp-console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.sp-mobile-brand { display: none; }

.sp-console-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 0;
}

.sp-form-shell {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-card);
}
.sp-form-shell--wide { max-width: 490px; }

.sp-form-head { margin-bottom: 24px; }
.sp-form-head h2, .sp-form-head h1 {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 6px;
}
.sp-form-head p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Step progress rail (Forgot Password) */
.sp-steps-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}
.sp-steps-rail i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--surface-3);
  transition: background var(--t-panel) var(--ease);
}
.sp-steps-rail i.on { background: var(--accent); }

/* Section Divider Label inside long forms */
.sp-sec-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 22px 0 12px;
}
.sp-sec-label:first-of-type { margin-top: 2px; }
.sp-sec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.sp-sec-label .opt {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

/* Form Controls */
.sp-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sp-field { margin-bottom: 16px; }
.sp-field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.sp-field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.sp-field-top label { margin-bottom: 0; }
.sp-field label .opt {
  font-family: var(--f-ui);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  opacity: 0.78;
}

.sp-input,
.sp-field input[type="text"],
.sp-field input[type="email"],
.sp-field input[type="password"],
.sp-field input[type="tel"],
.sp-field input[type="number"],
.sp-field select {
  width: 100%;
  min-height: 46px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 11px 14px;
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 14.5px;
  outline: none;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.sp-field input::placeholder { color: var(--muted); opacity: 0.65; }
.sp-field input:focus,
.sp-field select:focus,
.sp-input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.sp-field select { cursor: pointer; }
.sp-field select option {
  background: var(--surface);
  color: var(--ink);
}

/* Password Visibility Toggle */
.sp-pw-wrap { position: relative; }
.sp-pw-wrap input { padding-right: 46px; }
.sp-pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.sp-pw-toggle:hover { color: var(--ink); background: var(--surface-3); }
.sp-pw-toggle svg { width: 17px; height: 17px; }

.sp-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* OTP Input */
.sp-otp-input {
  text-align: center;
  font-family: var(--f-mono) !important;
  font-size: 24px !important;
  letter-spacing: 0.45em;
  font-weight: 700;
  text-transform: uppercase;
}

/* Alerts */
.sp-alert {
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  display: none;
}
.sp-alert.show { display: block; }
.sp-alert-err {
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
  color: var(--danger);
}
.sp-alert-ok {
  background: var(--ok-soft);
  border: 1px solid var(--ok-line);
  color: var(--ok);
}
.sp-alert-warn {
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  color: var(--spx);
}

/* Dividers & Footers inside Form */
.sp-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sp-divider::before, .sp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.sp-form-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.sp-form-foot a { font-weight: 600; }
.sp-terms-note {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.sp-terms-note a { text-decoration: underline; color: var(--ink-2); }

/* ==========================================================================
   BENCH SHELL (Paywall, Profile, Upgrade, Checkout, Gate)
   ========================================================================== */
.sp-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 22px 64px;
}
.sp-wrap-narrow { max-width: 960px; }

.sp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
}
.sp-card-subtle {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
}

.sp-section-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 34px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sp-section-tag::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Status Chips */
.sp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.sp-chip-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-line); }
.sp-chip-off { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger-line); }
.sp-chip-spx { background: var(--spx-soft); color: var(--spx); border: 1px solid var(--spx-line); }
.sp-chip-accent { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }

/* Key-Value Telemetry Grid */
.sp-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 14px;
}
.sp-kv-cell {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.sp-kv-k {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.sp-kv-v {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}
.sp-kv-v.is-spx {
  font-family: var(--f-mono);
  color: var(--spx);
  font-variant-numeric: tabular-nums;
}

/* Plan Cards */
.sp-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sp-plan-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sp-plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.sp-plan:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.sp-plan.is-featured {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-soft), var(--shadow-card);
}
.sp-plan.is-test {
  border-color: var(--ok-line);
  box-shadow: 0 0 0 1px var(--ok-soft), var(--shadow-card);
}
.sp-plan.is-annual {
  border-color: var(--spx-line);
  box-shadow: 0 0 0 1px var(--spx-soft), var(--shadow-card);
}
.sp-plan-tag {
  position: absolute;
  top: -11px;
  left: 20px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  white-space: nowrap;
}
.sp-plan-tag.is-ok { background: var(--ok); color: #052016; }
.sp-plan-tag.is-spx { background: var(--spx); color: var(--spx-ink); }

.sp-plan-name {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.sp-plan-price {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.sp-plan-price small {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.sp-feat-list {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  flex: 1;
}
.sp-feat-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.48;
}
.sp-feat-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

/* Tables */
.sp-table-wrap { overflow-x: auto; }
.sp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.sp-table th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-strong);
}
.sp-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.sp-table tbody tr:hover td { background: var(--surface-2); }

/* Page Footer */
.sp-page-foot {
  max-width: 1120px;
  margin: 34px auto 0;
  padding: 20px 22px 32px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.7;
}
.sp-page-foot a { color: var(--ink-2); text-decoration: underline; }
.sp-page-foot a:hover { color: var(--accent); }

/* Modals */
.sp-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(9, 10, 12, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.sp-modal.on {
  display: flex;
  -webkit-/* swiss-60fps */ --bf-off: blur(6px);
  /* swiss-60fps */ --bf-off: blur(6px);
}
.sp-modal-box {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
}
.sp-modal-box h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
}
.sp-modal-box p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 18px;
}

.hidden { display: none !important; }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Zero horizontal overflow down to 390px)
   ========================================================================== */
@media (max-width: 1024px) {
  .sp-plan-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-plan-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sp-monolith { padding: 36px 34px; }
}

@media (max-width: 920px) {
  .sp-auth-stage {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }
  .sp-monolith { display: none; }
  .sp-mobile-brand { display: flex; }
  .sp-console {
    min-height: 100vh;
    padding: 18px 16px 36px;
  }
  .sp-form-shell {
    padding: 26px 20px;
  }
}

@media (max-width: 640px) {
  .sp-plan-grid,
  .sp-plan-grid-3,
  .sp-row-2 {
    grid-template-columns: 1fr;
  }
  .sp-dock-inner { padding: 10px 12px; gap: 8px; }
  .sp-dock-left { min-width: 0; }
  .sp-dock-right { gap: 6px; flex-shrink: 0; }
  .sp-dock-email { display: none; }
  .sp-div-badge { display: none; }
  .sp-live-pill { display: none; }
  .sp-theme-btn { padding: 0 10px; min-width: 36px; gap: 0; }
  .sp-theme-btn .sp-theme-lbl { display: none; }
  .sp-brand-name { font-size: 14px; }
  .sp-wrap { padding: 20px 14px 48px; }
  .sp-card { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* === SP_BENCH_LIQUID_GLASS_TURBO_20261124 === */
body {
  background-color: #080A0F;
  background-image:
    radial-gradient(900px 460px at 14% -4%, rgba(59, 130, 246, 0.14), transparent 62%),
    radial-gradient(760px 420px at 88% 8%, rgba(37, 99, 235, 0.10), transparent 60%),
    linear-gradient(180deg, #090C13 0%, #0B0D12 52%, #080A0F 100%);
  background-attachment: scroll;
}
html[data-division="trucks"] body,
html:is([data-brand="trucks"],[data-sp-division="trucks"]) body,
body[data-division="trucks"],
body:is([data-brand="trucks"],[data-sp-division="trucks"]) {
  background-color: #0A0806;
  background-image:
    radial-gradient(920px 460px at 16% -4%, rgba(249, 115, 22, 0.15), transparent 62%),
    radial-gradient(760px 420px at 86% 10%, rgba(245, 158, 11, 0.10), transparent 60%),
    linear-gradient(180deg, #0D0A07 0%, #0B0908 52%, #080706 100%);
}
:is([data-theme="day"],[data-theme="light"]) body,
html:is([data-theme="day"],[data-theme="light"]) body {
  background-color: #F4F6FA;
  background-image:
    radial-gradient(880px 420px at 15% -6%, rgba(59, 130, 246, 0.08), transparent 62%),
    linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
}
html:is([data-theme="day"],[data-theme="light"])[data-division="trucks"] body,
html:is([data-theme="day"],[data-theme="light"]):is([data-brand="trucks"],[data-sp-division="trucks"]) body {
  background-image:
    radial-gradient(880px 420px at 15% -6%, rgba(249, 115, 22, 0.09), transparent 62%),
    linear-gradient(180deg, #FFFBF7 0%, #F6F3EE 100%);
}

/* Specular Liquid-Glass cards (GPU-safe, zero heavy blur lag) */
.sp-card,
.sp-plan {
  background: linear-gradient(180deg, rgba(24, 28, 38, 0.88) 0%, rgba(16, 19, 27, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}
:is([data-theme="day"],[data-theme="light"]) .sp-card,
:is([data-theme="day"],[data-theme="light"]) .sp-plan {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 12px 32px -14px rgba(15, 23, 42, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Equal-height symmetric plan grids with pinned bottom CTAs */
.sp-plan-grid,
.sp-plan-grid-3 {
  align-items: stretch;
}
.sp-plan {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.sp-plan:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line, rgba(59, 130, 246, 0.45));
  box-shadow: 0 24px 52px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--accent-soft, rgba(59, 130, 246, 0.14)), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.sp-plan .sp-btn,
.sp-plan a.sp-btn,
.sp-plan button.sp-btn {
  margin-top: auto;
}
.sp-plan .sp-feat-list,
.sp-plan ul {
  margin-bottom: 20px;
}

/* Crisp telemetry tiles inside Profile */
.sp-stat,
.sp-metric-box,
.sp-hwid-box {
  background: rgba(12, 15, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
:is([data-theme="day"],[data-theme="light"]) .sp-stat,
:is([data-theme="day"],[data-theme="light"]) .sp-metric-box,
:is([data-theme="day"],[data-theme="light"]) .sp-hwid-box {
  background: rgba(241, 245, 249, 0.72);
  border-color: rgba(15, 23, 42, 0.09);
}
