/* ==========================================================================
   BusBuddy Executive - $10,000 Agency-Tier Design System
   
   Strict Brand Palette:
   - Primary Deep Blue: #0F4CFF
   - Electric Blue:     #1976FF
   - Sky / Cyan Blue:   #45C7FF
   - Light Blue:        #DDF4FF
   - White:             #FFFFFF
   - Dark Navy (Text):  #0B1F3A
   ========================================================================== */

:root {
  /* Typography - Always Poppins */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-mono: 'Poppins', sans-serif; /* numeric UI (times, codes): paired with tabular-nums */

  /* Strict Brand Tokens */
  --primary-deep: #0F4CFF;
  --electric-blue: #1976FF;
  --sky-blue: #45C7FF;
  --light-blue: #DDF4FF;
  --white: #FFFFFF;
  --navy-text: #0B1F3A;

  /* Elevated Surfaces & Glass */
  --bg-canvas: #F8FBFE;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F0F7FF;
  --bg-glass-nav: rgba(255, 255, 255, 0.88);
  --bg-glass-card: rgba(255, 255, 255, 0.94);

  /* Refined Precision Borders */
  --border-hairline: rgba(15, 76, 255, 0.08);
  --border-focus: #1976FF;
  --border-glass: rgba(255, 255, 255, 0.8);
  --border-pill: rgba(25, 118, 255, 0.22);

  /* Status Colors */
  --status-emerald: #059669;
  --status-amber: #d97706;
  --status-rose: #e11d48;

  /* Text Semantic Levels */
  --text-primary: #0B1F3A;
  --text-secondary: #334E68;
  --text-tertiary: #627D98;
  --text-inverse: #FFFFFF;

  /* Shadows & Elevation Matrix (Apple / Stripe standard) */
  --shadow-subtle: 0 4px 20px -2px rgba(11, 31, 58, 0.05);
  --shadow-card: 0 16px 40px -10px rgba(11, 31, 58, 0.07), 0 0 0 1px rgba(15, 76, 255, 0.06);
  --shadow-card-hover: 0 24px 55px -12px rgba(15, 76, 255, 0.18), 0 0 0 1px rgba(25, 118, 255, 0.35);
  --shadow-button: 0 8px 24px -4px rgba(15, 76, 255, 0.38);
  --shadow-inner-glow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Timing Functions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Resets & Document Setup
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  font-size: 16px;
}

html {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

main {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

button, input, select, textarea {
  font-family: var(--font-body);
  box-sizing: border-box;
}

/* ==========================================================================
   Ambient Luminous Background Mesh
   ========================================================================== */
.mesh-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.6;
}

.orb-primary {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(15, 76, 255, 0.22) 0%, rgba(221, 244, 255, 0) 70%);
  top: -200px;
  left: 20%;
}

.orb-electric {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(25, 118, 255, 0.16) 0%, rgba(221, 244, 255, 0) 70%);
  top: 40%;
  right: -100px;
}

.orb-sky {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(69, 199, 255, 0.25) 0%, rgba(221, 244, 255, 0) 70%);
  bottom: 0%;
  left: -150px;
}

.mesh-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(15, 76, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 76, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 80%);
}

.deck-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .deck-container {
    padding: 0 0.85rem;
  }
}

@media (max-width: 480px) {
  .deck-container {
    padding: 0 0.5rem;
  }
}

/* Accessible hide: removed visually, still read by screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-account-link { color: inherit; font: inherit; text-decoration: none; padding: .5rem; white-space: nowrap; }
.site-account-link:hover { text-decoration: underline; }
@media(max-width:600px) { .oto-nav-right .app-badge-link { display: none; } }
