/* Base system variables and color tokens */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --bg-page: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --bg-dark-console: #0B1120;
  --bg-dark-surface: #070B14;
  --bg-dark-elevated: #111A2E;
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-faint: #94A3B8;
  --text-dark-primary: #F8FAFC;
  --text-dark-secondary: #CBD5E1;
  --text-dark-muted: #94A3B8;
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-strong: #94A3B8;
  --border-dark: rgba(255, 255, 255, 0.12);
  --border-dark-strong: rgba(255, 255, 255, 0.22);
  --orange-500: #F97316;
  --orange-600: #EA580C;
  --orange-glow: rgba(234, 88, 12, 0.35);
  --grad-signal: linear-gradient(135deg, #FFB43A, #FF7A00);
  --grad-signal-hover: linear-gradient(135deg, #FFA726, #F57C00);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 20px -4px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 16px 36px -8px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-dark-card: 0 24px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Box sizing and core document resets */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  scroll-behavior: smooth;
  background-color: #FFFFFF;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background-color: transparent !important;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Sleek custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F8FAFC;
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange-500);
}

/* Fixed ambient dot grid canvas background */
.soundwave-ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #FFFFFF;
  background-image:
    radial-gradient(1100px 520px at 50% -60px, rgba(255, 122, 0, 0.06) 0%, rgba(16, 185, 129, 0.04) 45%, transparent 75%),
    radial-gradient(rgba(148, 163, 184, 0.35) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 26px 26px;
  background-position: center top, center top;
  background-repeat: no-repeat, repeat;
}

/* Relative positioning for foreground content layers */
.nav-container,
header,
main,
section,
footer,
.wrap,
.soundwave-page-content {
  position: relative;
  z-index: 10;
}

/* Typography helper utilities */
.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Floating pill navbar container */
.nav-container {
  position: sticky;
  top: max(12px, env(safe-area-inset-top));
  z-index: 60;
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 16px 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  will-change: transform;
}

.nav-container.nav-hidden {
  transform: translateY(-135%);
  opacity: 0;
  pointer-events: none;
}

/* Floating pill navbar body */
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 10px 0 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 30px -6px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Brand logo styling */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #0F172A;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.brand-link:hover {
  color: var(--orange-500);
}

/* Navigation links wrap */
.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link-item {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-item:hover {
  color: #0F172A;
  background: var(--bg-subtle);
}

/* Primary CTA pill button */
.nav-btn-signal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--grad-signal);
  color: #3A2100;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 16px -3px rgba(255, 122, 0, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-btn-signal:hover {
  background: var(--grad-signal-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -3px rgba(255, 122, 0, 0.65);
}

/* Mobile navigation hamburger toggle button */
.mobile-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: #0F172A;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-left: 4px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-toggle:hover {
  background: var(--bg-subtle);
  border-color: var(--border-medium);
}

.mobile-nav-toggle:active {
  transform: scale(0.94);
}

/* Mobile dropdown menu card */
.mobile-nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(28px) saturate(1.7);
  -webkit-backdrop-filter: blur(28px) saturate(1.7);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--shadow-hover);
  z-index: 59;
  flex-direction: column;
  gap: 6px;
  animation: dropSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-dropdown.is-open {
  display: flex;
}

@keyframes dropSlide {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mobile-nav-dropdown a {
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.mobile-nav-dropdown a:hover {
  background: var(--bg-subtle);
  color: #0F172A;
}

@media (max-width: 860px) {
  .nav-container {
    padding: 8px 12px 0;
  }

  .nav-pill {
    height: 54px;
    padding: 0 8px 0 14px;
  }

  .brand-link {
    font-size: 1.05rem;
  }

  .nav-links-wrap .nav-link-item,
  .nav-links-wrap .nav-btn-signal {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: flex;
  }
}

/* Audio equalizer visualizer bars */
.live-eq-bar {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 18px;
}

.live-eq-bar span {
  width: 2.5px;
  border-radius: 9999px;
  background: linear-gradient(to top, #EA580C, #FFB43A);
  animation: eqBounce 1.2s ease-in-out infinite alternate;
}

.live-eq-bar span:nth-child(1) {
  height: 35%;
  animation-delay: 0.1s;
}

.live-eq-bar span:nth-child(2) {
  height: 95%;
  animation-delay: 0.35s;
}

.live-eq-bar span:nth-child(3) {
  height: 60%;
  animation-delay: 0.15s;
}

.live-eq-bar span:nth-child(4) {
  height: 100%;
  animation-delay: 0.45s;
}

.live-eq-bar span:nth-child(5) {
  height: 40%;
  animation-delay: 0.25s;
}

@keyframes eqBounce {
  0% {
    transform: scaleY(0.35);
    opacity: 0.7;
  }

  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Light surface cards */
.light-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.light-card:hover {
  border-color: var(--orange-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Obsidian dark studio console cards */
.dark-console-card {
  background: #0B1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  color: #F8FAFC;
  box-shadow: var(--shadow-dark-card);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dark-console-card:hover {
  border-color: rgba(255, 122, 0, 0.4);
}

/* Interactive turns in hero console */
.hero-turn {
  transition: all 0.25s ease;
}

.hero-turn:hover {
  background: rgba(255, 255, 255, 0.07) !important;
}

/* Human mesh pipeline cards */
.human-mesh-card {
  border-radius: 24px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.human-mesh-card.step-1,
.human-mesh-card.step-2,
.human-mesh-card.step-3 {
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
}

.human-mesh-card.step-1:hover,
.human-mesh-card.step-2:hover,
.human-mesh-card.step-3:hover {
  border-color: rgba(234, 88, 12, 0.4);
  box-shadow: 0 12px 28px -6px rgba(234, 88, 12, 0.12);
}

.human-mesh-card.step-sync {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0B1120;
  color: #F8FAFC;
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.5);
}

.human-mesh-card.step-sync:hover {
  border-color: rgba(234, 88, 12, 0.5);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.65);
}

.human-mesh-card.step-1.is-firing {
  border-color: #EA580C !important;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.3), 0 12px 28px -4px rgba(234, 88, 12, 0.18) !important;
}

.human-mesh-card.step-2.is-firing {
  border-color: #F59E0B !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3), 0 12px 28px -4px rgba(245, 158, 11, 0.18) !important;
}

.human-mesh-card.step-3.is-firing {
  border-color: #EA580C !important;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.35), 0 12px 28px -4px rgba(234, 88, 12, 0.2) !important;
}

.human-mesh-card.step-sync.is-firing {
  border-color: #10B981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4), 0 16px 40px -4px rgba(0, 0, 0, 0.7) !important;
}

/* Executive obsidian moat cards */
.moat-card {
  background: rgba(13, 21, 39, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 26px 28px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.moat-card:hover {
  border-color: rgba(234, 88, 12, 0.4);
  background: rgba(19, 31, 56, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(234, 88, 12, 0.18);
}

/* Active loop states for moat sequence */
.moat-card.is-loop-active {
  border-color: #EA580C !important;
  background: rgba(23, 37, 68, 0.98) !important;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.5), 0 20px 45px -8px rgba(234, 88, 12, 0.35) !important;
  transform: translateY(-4px);
}

.moat-card.is-loop-active .moat-step-num {
  color: #FB923C !important;
}

.moat-card.is-loop-active .moat-card-title {
  color: #FFFFFF !important;
  text-shadow: 0 0 20px rgba(234, 88, 12, 0.3);
}

.moat-card.is-loop-active-operate {
  border-color: #F59E0B !important;
  background: rgba(28, 38, 66, 0.98) !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.5), 0 20px 45px -8px rgba(245, 158, 11, 0.35) !important;
  transform: translateY(-4px);
}

.moat-card.is-loop-active-operate .moat-step-num {
  color: #FCD34D !important;
}

.moat-card.is-loop-active-operate .moat-card-title {
  color: #FFFFFF !important;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.moat-card.is-loop-active-act {
  border-color: #10B981 !important;
  background: rgba(16, 42, 54, 0.98) !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.55), 0 20px 45px -8px rgba(16, 185, 129, 0.4) !important;
  transform: translateY(-4px);
}

.moat-card.is-loop-active-act .moat-step-num {
  color: #34D399 !important;
}

.moat-card.is-loop-active-act .moat-card-title {
  color: #FFFFFF !important;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

/* Interactive range slider for pricing calculator */
#pricingRepSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #1E293B;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

#pricingRepSlider:hover {
  background: #334155;
}

#pricingRepSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #EA580C;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.7);
  cursor: grab;
  transition: transform 0.15s ease, background 0.15s ease;
}

#pricingRepSlider::-webkit-slider-thumb:hover,
#pricingRepSlider::-webkit-slider-thumb:active {
  transform: scale(1.2);
  background: #F97316;
  cursor: grabbing;
}

#pricingRepSlider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #EA580C;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.7);
  cursor: pointer;
}

/* Preset buttons for pricing calculator */
.pricing-preset-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pricing-preset-btn:hover {
  border-color: rgba(234, 88, 12, 0.4);
  color: #FFFFFF;
  background: rgba(30, 41, 59, 0.9);
}

.pricing-preset-btn.active-preset {
  background: rgba(234, 88, 12, 0.2);
  border-color: #EA580C;
  color: #FB923C;
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.25);
}

/* Hub radar ping animation */
.hub-radar-ping {
  animation: hubRadarPing 3.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes hubRadarPing {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

/* Hub equalizer bars */
.hub-eq-bar {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  height: 20px;
}

.hub-eq-bar span {
  width: 2.5px;
  border-radius: 9999px;
  background: linear-gradient(to top, #EA580C, #FFB43A);
  animation: eqBounce 1.2s ease-in-out infinite alternate;
}

.hub-eq-bar span:nth-child(1) {
  height: 35%;
  animation-delay: 0.1s;
}

.hub-eq-bar span:nth-child(2) {
  height: 95%;
  animation-delay: 0.35s;
}

.hub-eq-bar span:nth-child(3) {
  height: 60%;
  animation-delay: 0.15s;
}

.hub-eq-bar span:nth-child(4) {
  height: 100%;
  animation-delay: 0.45s;
}

.hub-eq-bar span:nth-child(5) {
  height: 40%;
  animation-delay: 0.25s;
}

/* SVG laser beam flowing dash animations */
.laser-beam {
  stroke-linecap: round;
  stroke-dasharray: 16 16;
}

.laser-orange-deep {
  animation: laserFlowOut 1.8s linear infinite;
}

.laser-orange-amber {
  animation: laserFlowOut 2.0s linear infinite 0.2s;
}

.laser-orange-coral {
  animation: laserFlowOut 1.9s linear infinite 0.1s;
}

.laser-orange-gold {
  animation: laserFlowOut 2.2s linear infinite 0.3s;
}

@keyframes laserFlowOut {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -32;
  }
}

/* Field app recording cockpit studio card */
.cockpit-studio-card {
  background: #0B1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  color: #F8FAFC;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Concentric acoustic pulse rings */
.rec-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  background: #111A2E;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
  transition: all 0.35s ease;
}

.rec-ring.recording {
  border-color: #F87171;
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.4);
}

.rec-ring.recording::before,
.rec-ring.recording::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(239, 68, 68, 0.45);
  animation: radarWave 1.8s cubic-bezier(0.15, 0.7, 0.1, 1) infinite;
}

.rec-ring.recording::after {
  inset: -24px;
  border-color: rgba(239, 68, 68, 0.25);
  animation-delay: 0.6s;
}

@keyframes radarWave {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

/* Main microphone record button */
.rec-btn {
  width: 155px;
  height: 155px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #FF9838 0%, #EA580C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 12px 30px -4px rgba(234, 88, 12, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s, box-shadow 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.rec-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 38px -4px rgba(234, 88, 12, 0.65), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.rec-btn:active {
  transform: scale(0.96);
}

.rec-btn.recording {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  box-shadow: 0 12px 32px -4px rgba(239, 68, 68, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  animation: recPulse 1.2s ease-in-out infinite;
}

@keyframes recPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

/* Active audio frequency simulation */
.voice-wave-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.voice-wave-container.active {
  opacity: 1;
}

.voice-wave-container .bar {
  width: 3.5px;
  border-radius: 9999px;
  background: linear-gradient(to top, #EF4444, #F87171);
  animation: wavePulse 0.9s ease-in-out infinite alternate;
}

.voice-wave-container .bar:nth-child(1) {
  height: 25%;
  animation-delay: 0.1s;
}

.voice-wave-container .bar:nth-child(2) {
  height: 55%;
  animation-delay: 0.2s;
}

.voice-wave-container .bar:nth-child(3) {
  height: 85%;
  animation-delay: 0.35s;
}

.voice-wave-container .bar:nth-child(4) {
  height: 100%;
  animation-delay: 0.15s;
}

.voice-wave-container .bar:nth-child(5) {
  height: 75%;
  animation-delay: 0.4s;
}

.voice-wave-container .bar:nth-child(6) {
  height: 90%;
  animation-delay: 0.25s;
}

.voice-wave-container .bar:nth-child(7) {
  height: 45%;
  animation-delay: 0.3s;
}

.voice-wave-container .bar:nth-child(8) {
  height: 30%;
  animation-delay: 0.45s;
}

@keyframes wavePulse {
  0% {
    transform: scaleY(0.25);
  }

  100% {
    transform: scaleY(1);
  }
}

/* History debrief items */
.history-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.history-item:hover {
  border-color: var(--border-medium);
  background: var(--bg-subtle);
}

.history-item .time {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.history-item .result {
  color: #C2410C;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
}

.history-item .result.failed {
  color: #DC2626;
  background: #FEF2F2;
  border-color: #FECACA;
}

/* Status notification pill */
.status-msg {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.status-msg.success {
  color: #10B981 !important;
}

.status-msg.error {
  color: #EF4444 !important;
}

.status-msg.processing {
  color: #F59E0B !important;
}

/* CRM integration cards in setup wizard */
.crm-card {
  position: relative;
  border: 1.5px solid var(--border-light);
  background: #FFFFFF;
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.crm-card:hover {
  border-color: var(--orange-500);
  background: #FFFDF9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(234, 88, 12, 0.18);
}

.crm-card.selected {
  border-color: #EA580C !important;
  background: #FFF7ED !important;
  box-shadow: 0 0 0 1.5px #EA580C, 0 10px 24px -6px rgba(234, 88, 12, 0.25) !important;
  transform: translateY(-2px);
}

.crm-card .check-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #EA580C;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.crm-card.selected .check-indicator {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Stepper progress indicator dots */
.step-dot {
  width: 28px;
  height: 5px;
  border-radius: 9999px;
  background: var(--border-medium);
  transition: all 0.3s ease;
}

.step-dot.active {
  background: var(--grad-signal);
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.5);
  width: 40px;
}

.step-dot.done {
  background: #EA580C;
  box-shadow: 0 0 8px rgba(234, 88, 12, 0.35);
}

/* Install PWA toast */
.a2hs-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  max-width: 380px;
  width: calc(100vw - 48px);
  margin: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 18px 20px;
  z-index: 100;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(234, 88, 12, 0.1);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

/* iOS installation modal overlay */
.ios-guide {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 20px 48px;
}

/* JavaScript visibility state selectors */
#step1.hidden,
#step2.hidden,
#step3.hidden,
#webhookRow.hidden,
#tokenRow.hidden,
#instanceRow:not(.visible),
#iosGuide:not(.visible),
#a2hsToast:not(.visible),
.is-hidden {
  display: none !important;
}

#instanceRow.visible,
#iosGuide.visible {
  display: flex !important;
}

#a2hsToast.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile responsive constraints */
@media (max-width: 640px) {
  .rec-ring {
    width: 175px;
    height: 175px;
  }

  .rec-btn {
    width: 135px;
    height: 135px;
  }

  .a2hs-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
}