/* ==============================================================================
   TACTICAL CLARITY 3.0 - MILITARY-GRADE DARK SLATE THEME (WCAG 2.2 AAA COMPLIANT)
   Brand: Phone Speaker Cleaner | https://phonespeakercleaner.com/
   ============================================================================== */

:root {
  --bg-base: #060911;
  --bg-surface: #0c1220;
  --bg-card: #131c31;
  --bg-card-hover: #18233d;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-gold: #f59e0b;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8899b0;
  
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.25);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-red: #ef4444;
  --accent-cyan: #06b6d4;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  max-width: 100vw;
}

p, div, span, h1, h2, h3, h4, h5, h6, li, td, th, a, button, label {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

a {
  color: var(--accent-amber);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus-visible {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 3px;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* ==============================================================================
   LAYOUT & CONTAINERS
   ============================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.main-content {
  flex: 1 0 auto;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* ==============================================================================
   NAVIGATION HEADER (TACTICAL LUXURY 4.0 - ULTRA-AESTHETIC GLASSMORPHISM)
   ============================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 9, 17, 0.84);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #f59e0b 25%, #10b981 50%, #06b6d4 75%, transparent 100%);
  opacity: 0.9;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* Brand Logo Styling */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  flex-shrink: 0;
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-icon-box::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
  transform: rotate(25deg);
  animation: logoShimmer 6s infinite;
}

@keyframes logoShimmer {
  0% { transform: translateX(-100%) rotate(25deg); }
  20% { transform: translateX(100%) rotate(25deg); }
  100% { transform: translateX(100%) rotate(25deg); }
}

.brand-logo:hover .brand-icon-box {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.6);
}

.brand-icon-svg {
  width: 22px;
  height: 22px;
  fill: #060911;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-title-white {
  color: #ffffff;
}

.brand-title-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.04em;
  line-height: 1;
}

.pulse-dot-sm {
  width: 6px;
  height: 6px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: radarPulse 1.6s infinite;
}

/* Central Floating Capsule Menu */
.nav-desktop-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.45rem;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: #cbd5e1;
  font-size: 0.8125rem;
  font-weight: 550;
  padding: 0.42rem 0.72rem;
  border-radius: 9999px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  position: relative;
  border: 1px solid transparent;
  white-space: nowrap !important;
}

.nav-link-icon {
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.9;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 12px var(--accent-amber-glow);
}

/* Action Area */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-tactical {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 750;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none !important;
  white-space: nowrap !important;
}

.nav-desktop-cta {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 60%, #d97706 100%) !important;
  color: #060911 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  border: none !important;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.nav-desktop-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.nav-mobile-quick {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #060911;
  font-size: 0.785rem;
  font-weight: 800;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.nav-desktop-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  color: #000000 !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-amber), #d97706);
  color: #060911;
  box-shadow: 0 4px 16px var(--accent-amber-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000000;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-amber);
  text-decoration: none;
}

.btn-emerald {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #ffffff;
  box-shadow: 0 0 16px var(--accent-emerald-glow);
}

/* Mobile Quick Action Pill */
.nav-mobile-quick {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #060911;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-mobile-quick:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.55);
}

/* Animated Hamburger Toggle */
.nav-hamburger {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-amber);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--accent-amber);
}

.nav-hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--accent-amber);
}

body.mobile-nav-locked {
  overflow: hidden !important;
  touch-action: none !important;
}

/* Mobile Drawer Styling (iOS / macOS Glass Luxury) */
.nav-mobile-drawer {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100vh - 68px);
  height: calc(100dvh - 68px);
  background: rgba(6, 9, 17, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 1.25rem 1rem 2.5rem 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.9);
  z-index: 99999;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, visibility 0.28s;
  pointer-events: none;
}

.nav-mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 750;
  color: var(--accent-amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.drawer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.drawer-card:hover, .drawer-card:active {
  background: var(--bg-card-hover);
  border-color: var(--accent-amber);
  transform: translateX(3px);
}

.drawer-card-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.drawer-card-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.drawer-card-texts {
  display: flex;
  flex-direction: column;
}

.drawer-card-title {
  font-size: 0.95rem;
  font-weight: 750;
  color: #ffffff;
}

.drawer-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.drawer-card-arrow {
  font-size: 1.1rem;
  color: var(--accent-amber);
  font-weight: 700;
}

.nav-mobile-cta {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px var(--accent-amber-glow);
}

/* Responsive Navigation Visibility */
@media (min-width: 1081px) {
  .nav-desktop-menu { display: flex !important; }
  .nav-desktop-cta { display: inline-flex !important; }
  .nav-mobile-quick { display: none !important; }
  .nav-hamburger { display: none !important; }
  .nav-mobile-drawer { display: none !important; }
}

@media (max-width: 1080px) {
  .nav-desktop-menu { display: none !important; }
  .nav-desktop-cta { display: none !important; }
  .nav-mobile-quick { display: inline-flex !important; }
  .nav-hamburger { display: inline-flex !important; }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 0.85rem !important;
    gap: 0.5rem !important;
  }
  .brand-logo {
    gap: 0.5rem !important;
  }
  .brand-icon-box {
    width: 34px !important;
    height: 34px !important;
  }
  .brand-icon-svg {
    width: 18px !important;
    height: 18px !important;
  }
  .brand-title-wrap {
    font-size: 0.95rem !important;
    gap: 0.25rem !important;
  }
  .brand-verified-tag {
    font-size: 0.58rem !important;
  }
  .nav-mobile-quick {
    font-size: 0.72rem !important;
    padding: 0.35rem 0.65rem !important;
  }
  .nav-hamburger {
    width: 38px !important;
    height: 38px !important;
  }
}

/* ==============================================================================
   HERO HEADER (MOBILE-FIRST TOOL INTENT)
   ============================================================================== */
.hero-header-box {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto 0.85rem auto;
  line-height: 1.5;
}

.hero-badges-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.badge-chip {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
}

.badge-cyan {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid var(--accent-cyan);
  color: #38bdf8;
}

.badge-gray {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* 3-Step Instant Mobile Visual Guide Banner */
.mobile-steps-banner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.35rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  margin-bottom: 1.25rem;
}

.step-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  color: #fde68a;
  font-weight: 700;
}

.step-icon {
  font-size: 1.15rem;
}

.step-divider {
  color: rgba(245, 158, 11, 0.45);
  font-weight: 800;
  font-size: 0.85rem;
}

/* Deep Speaker Cleaner Stepped Stage Tracker */
.deep-stage-tracker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.stage-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.4rem;
  text-align: center;
  transition: all 0.25s ease;
}

.stage-pill.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-amber);
  box-shadow: 0 0 12px var(--accent-amber-glow);
}

.stage-num {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: block;
}

.stage-pill.active .stage-num {
  color: var(--accent-amber);
  font-weight: 800;
}

.stage-title {
  font-size: 0.785rem;
  font-weight: 750;
  color: #ffffff;
  display: block;
  white-space: nowrap;
}

.stage-pill.active .stage-title {
  color: #fbbf24;
}

/* Contextual Tool Launcher Banner (High-Converting Bridge for Guide Pages) */
.tool-launcher-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 2px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.launcher-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.launcher-content p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.launcher-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

/* Device Specific Acoustic Tool Deck */
.device-tool-deck {
  background: var(--bg-surface);
  border: 2px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.device-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .deep-stage-tracker {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  .tool-launcher-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 1.1rem;
  }
  .tool-launcher-banner .btn-tactical {
    width: 100%;
    justify-content: center;
  }
  .device-channels-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================================
   AUDIO CLEANER TOOL (WEB AUDIO API ENGINE)
   ============================================================================== */
.mobile-tool-deck {
  max-width: 620px;
  margin: 0 auto 2.5rem auto;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(6, 9, 17, 0.98) 100%);
  border: 2px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.12);
}

/* 2-Mode Segmented Selector (Water Eject vs Dust Clean) */
.tool-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.35rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.tool-mode-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 750;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.tool-mode-pill .mode-pill-freq {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.tool-mode-pill.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(14, 165, 233, 0.12));
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.28);
}

.tool-mode-pill.active .mode-pill-freq {
  background: #38bdf8;
  color: #060911;
  font-weight: 800;
}

.tool-mode-pill#mode-dust-pill.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.12));
  border-color: #f59e0b;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.28);
}

.tool-mode-pill#mode-dust-pill.active .mode-pill-freq {
  background: #f59e0b;
  color: #060911;
  font-weight: 800;
}

/* Hero Centerpiece Stage */
.tool-hero-centerpiece {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 1.5rem 0 1.25rem 0;
  min-height: 200px;
}

.master-cone-trigger {
  width: 165px !important;
  height: 165px !important;
  margin: 0 !important;
  background: radial-gradient(circle at 35% 35%, #1e293b 0%, #0f172a 60%, #020617 100%) !important;
  border: 4px solid #38bdf8 !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(56, 189, 248, 0.35) !important;
}

.master-cone-trigger.dust-mode {
  border-color: #f59e0b !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(245, 158, 11, 0.35) !important;
}

.speaker-mode-label {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #38bdf8;
  margin-top: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.master-cone-trigger.dust-mode .speaker-mode-label {
  color: #fbbf24;
}

/* Active State for Master Button */
.master-cone-trigger.is-active {
  border-color: #10b981 !important;
  background: radial-gradient(circle at 35% 35%, #1a3a30 0%, #0d251d 55%, #05140f 100%) !important;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.7), 0 0 70px rgba(16, 185, 129, 0.35) !important;
  animation: coneKineticVibrate 0.07s infinite alternate ease-in-out !important;
}

.master-cone-trigger.is-active .speaker-mode-label {
  color: #34d399 !important;
}

/* Telemetry Strip */
.tool-telemetry-strip {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0.5rem 0 1.25rem 0;
}

.telemetry-labels-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.telemetry-state-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.3;
}

.telemetry-timer-val {
  font-size: 1.25rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tool-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.tool-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #10b981, #f59e0b);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Quick Actions Footer */
.tool-quick-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.action-card-deep {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
  color: #fbbf24;
  flex: 1;
  min-width: 220px;
}

.action-card-deep:hover {
  text-decoration: underline !important;
}

.action-card-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.action-card-info {
  display: flex;
  flex-direction: column;
}

.action-card-title {
  font-size: 0.85rem;
  font-weight: 750;
  color: #ffffff;
}

.action-card-sub {
  font-size: 0.75rem;
  color: #fbbf24;
}

.btn-audio-test {
  padding: 0.55rem 1rem !important;
  font-size: 0.8rem !important;
  white-space: nowrap !important;
  border-radius: 9999px !important;
}

.audio-tool-deck {
  background: var(--bg-surface);
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.audio-tool-deck::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-emerald), var(--accent-cyan));
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.tool-title-group h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.tool-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 820px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.visualizer-container {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 270px;
  position: relative;
  overflow: hidden;
}

/* Concentric Acoustic Shockwave Ripple Rings */
.speaker-ripple-rings {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 1;
}

.ripple-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  opacity: 0;
  pointer-events: none;
}

.speaker-ripple-rings.active .wave-1 {
  animation: shockwaveExpand 1.6s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  border-color: rgba(245, 158, 11, 0.7);
}

.speaker-ripple-rings.active .wave-2 {
  animation: shockwaveExpand 1.6s cubic-bezier(0.1, 0.8, 0.3, 1) infinite 0.5s;
  border-color: rgba(16, 185, 129, 0.6);
}

.speaker-ripple-rings.active .wave-3 {
  animation: shockwaveExpand 1.6s cubic-bezier(0.1, 0.8, 0.3, 1) infinite 1.0s;
  border-color: rgba(56, 189, 248, 0.5);
}

@keyframes shockwaveExpand {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
  }
}

/* Master Interactive Speaker Cone Button (Skeuomorphic Diaphragm Switch) */
.speaker-cone-btn,
.speaker-cone-visual {
  position: relative;
  z-index: 2;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #243048 0%, #131c31 55%, #080d19 100%);
  border: 4px solid #3b4d6b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  cursor: pointer;
  outline: none;
  padding: 0;
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.7),
    inset 0 3px 6px rgba(255, 255, 255, 0.22),
    inset 0 -5px 12px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(245, 158, 11, 0.25);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
              border-color 0.25s ease, 
              box-shadow 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Idle Hover & Press */
.speaker-cone-btn:hover,
.speaker-cone-visual:hover {
  transform: scale(1.06);
  border-color: var(--accent-amber);
  box-shadow: 
    0 14px 38px rgba(0, 0, 0, 0.8),
    inset 0 3px 8px rgba(255, 255, 255, 0.3),
    inset 0 -5px 14px rgba(0, 0, 0, 0.9),
    0 0 25px rgba(245, 158, 11, 0.45);
}

.speaker-cone-btn:active,
.speaker-cone-visual:active {
  transform: scale(0.96);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.9),
    inset 0 4px 10px rgba(0, 0, 0, 0.95);
}

/* Inner Diaphragm Ribs */
.speaker-cone-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent 7px,
    rgba(255, 255, 255, 0.025) 8px,
    rgba(255, 255, 255, 0.025) 9px
  );
  position: relative;
  pointer-events: none;
}

/* Speaker SVG Icon */
.speaker-icon-svg {
  width: 50px;
  height: 50px;
  color: var(--accent-amber);
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.4));
  transition: color 0.2s ease, transform 0.2s ease;
}

.sound-wave-arc {
  transition: opacity 0.2s ease, stroke 0.2s ease;
  opacity: 0.7;
}

/* Status Label inside Switch */
.speaker-switch-label {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-amber);
  margin-top: 3px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

/* ACTIVE / ON STATE (AUDIO RUNNING) */
.speaker-cone-btn.is-active,
.speaker-cone-btn.pulsing,
.speaker-cone-visual.pulsing {
  border-color: #10b981;
  background: radial-gradient(circle at 35% 35%, #1a3a30 0%, #0d251d 55%, #05140f 100%);
  box-shadow: 
    0 0 30px rgba(16, 185, 129, 0.6),
    0 0 60px rgba(16, 185, 129, 0.3),
    inset 0 3px 6px rgba(255, 255, 255, 0.35),
    inset 0 0 20px rgba(16, 185, 129, 0.4);
  animation: coneKineticVibrate 0.07s infinite alternate ease-in-out;
}

.speaker-cone-btn.is-active .speaker-icon-svg,
.speaker-cone-btn.pulsing .speaker-icon-svg {
  color: #34d399;
  filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.8));
}

.speaker-cone-btn.is-active .speaker-switch-label,
.speaker-cone-btn.pulsing .speaker-switch-label {
  color: #34d399;
}

.speaker-cone-btn.is-active .arc-1,
.speaker-cone-btn.pulsing .arc-1 {
  animation: arcFlash 0.3s infinite alternate 0.05s;
}

.speaker-cone-btn.is-active .arc-2,
.speaker-cone-btn.pulsing .arc-2 {
  animation: arcFlash 0.3s infinite alternate 0.15s;
}

.speaker-cone-btn.is-active .arc-3,
.speaker-cone-btn.pulsing .arc-3 {
  animation: arcFlash 0.3s infinite alternate 0.25s;
}

@keyframes arcFlash {
  0% { opacity: 0.3; stroke: #10b981; }
  100% { opacity: 1; stroke: #6ee7b7; }
}

@keyframes coneKineticVibrate {
  0% {
    transform: scale(1) rotate(-0.5deg);
  }
  100% {
    transform: scale(1.07) rotate(0.5deg);
  }
}

/* Water Spray Particles */
.water-spray-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.water-spray-particles.active {
  opacity: 1;
}

.water-spray-particles.active .spray-drop {
  animation: waterSprayAtomize 0.4s infinite alternate ease-in-out;
}

.drop-1 { animation-delay: 0.05s; }
.drop-2 { animation-delay: 0.15s; }
.drop-3 { animation-delay: 0.25s; }
.drop-4 { animation-delay: 0.10s; }
.drop-5 { animation-delay: 0.20s; }
.drop-6 { animation-delay: 0.30s; }
.drop-7 { animation-delay: 0.12s; }
.drop-8 { animation-delay: 0.22s; }

@keyframes waterSprayAtomize {
  0% {
    transform: scale(0.8) translate(0, 0);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.3) translate(2px, -3px);
    opacity: 1;
  }
}

/* Responsive Media Queries for Audio Cleaner Tool & Mobile Excellence */
@media (max-width: 768px) {
  .hero-h1 {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .audio-tool-deck {
    padding: 1.25rem 1rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
  }
  .tool-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }
  .tool-title-group h2 {
    font-size: 1.25rem;
  }
  .visualizer-container {
    min-height: 250px;
    padding: 1.25rem;
  }
  .speaker-cone-btn,
  .speaker-cone-visual {
    width: 140px;
    height: 140px;
    border-width: 4px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), 0 0 20px rgba(245, 158, 11, 0.3);
  }
  .speaker-icon-svg {
    width: 48px;
    height: 48px;
  }
  .speaker-switch-label {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }
  .speaker-ripple-rings {
    width: 140px;
    height: 140px;
  }
  .preset-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .btn-preset {
    padding: 0.75rem 0.85rem;
  }
  .preset-freq {
    font-size: 1rem;
  }
  .play-action-row {
    flex-direction: column;
    gap: 0.65rem;
  }
  .btn-play-trigger {
    width: 100%;
    padding: 0.95rem;
    font-size: 1.05rem;
  }
  .timer-countdown {
    width: 100%;
    text-align: center;
    font-size: 1.35rem;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 1.6rem;
  }
  .hero-subtitle {
    font-size: 0.875rem;
    margin-bottom: 0.65rem;
  }
  .mobile-steps-banner {
    padding: 0.6rem 0.45rem;
    gap: 0.2rem;
  }
  .step-chip {
    font-size: 0.72rem;
    gap: 0.2rem;
  }
  .step-icon {
    font-size: 0.95rem;
  }
  .step-divider {
    font-size: 0.75rem;
  }
  .audio-tool-deck {
    padding: 1rem 0.65rem;
  }
  .speaker-cone-btn,
  .speaker-cone-visual {
    width: 135px;
    height: 135px;
    border-width: 3.5px;
  }
  .speaker-icon-svg {
    width: 44px;
    height: 44px;
  }
  .speaker-switch-label {
    font-size: 0.65rem;
  }
  .speaker-ripple-rings {
    width: 135px;
    height: 135px;
  }
  .preset-buttons-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .btn-preset {
    padding: 0.65rem 0.65rem;
  }
  .preset-freq {
    font-size: 0.95rem;
  }
  .preset-desc {
    font-size: 0.68rem;
  }
}

.oscilloscope-canvas {
  width: 100%;
  height: 80px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.controls-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.preset-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.btn-preset {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.btn-preset.active, .btn-preset:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-amber);
  color: var(--text-primary);
}

.btn-preset.active {
  box-shadow: 0 0 12px var(--accent-amber-glow);
}

.preset-freq {
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.preset-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.slider-value {
  color: var(--accent-amber);
  font-family: var(--font-mono);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: #1e293b;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-amber);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-amber-glow);
}

.play-action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-play-trigger {
  flex: 1;
  padding: 1rem;
  font-size: 1.1rem;
}

.timer-countdown {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-emerald);
  min-width: 60px;
  text-align: center;
}

/* ==============================================================================
   LIVE TELEMETRY MONITOR (STAGE 4)
   ============================================================================== */
.telemetry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.radar-beacon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: radarPulse 1.8s infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.telemetry-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .telemetry-metrics-row {
    grid-template-columns: 1fr;
  }
}

.metric-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.telemetry-tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.telemetry-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.65rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.telemetry-tab-btn.active, .telemetry-tab-btn:hover {
  color: var(--accent-amber);
  border-bottom-color: var(--accent-amber);
}

.telemetry-tab-content {
  display: none;
}

.telemetry-tab-content.active {
  display: block;
}

.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: #1e293b;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.feed-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feed-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==============================================================================
   AEO & FACT-CHECK REALITY BRIEFING CARDS
   ============================================================================== */
.reality-briefing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 768px) {
  .reality-briefing-card {
    grid-template-columns: 1fr;
  }
}

.briefing-side {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
  word-break: break-word;
}

.briefing-rumor {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.briefing-reality {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.briefing-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.tag-rumor {
  color: var(--accent-red);
}

.tag-reality {
  color: var(--accent-emerald);
}

.direct-answer-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(19, 28, 49, 0.95));
  border-left: 4px solid var(--accent-amber);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  word-break: break-word;
}

.direct-answer-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.direct-answer-text {
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 700;
  color: #ffffff;
}

/* ==============================================================================
   TIERED READINESS FRAMEWORK
   ============================================================================== */
.tiered-framework {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
}

.tier-tabs-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .tier-tabs-header {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tier-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.tier-tab-btn.active, .tier-tab-btn:hover {
  border-color: var(--accent-amber);
  background: var(--bg-card-hover);
}

.tier-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-amber);
  font-weight: 800;
}

.tier-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tier-pane {
  display: none;
  padding: 1rem 0;
}

.tier-pane.active {
  display: block;
}

/* ==============================================================================
   CALCULATOR STYLING (STAGE 5)
   ============================================================================== */
.calculator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 820px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 2px var(--accent-amber-glow);
}

.calc-results-box {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.result-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.result-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.result-val {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-amber);
}

/* ==============================================================================
   DATA TABLES & FORMULAS (INFORMATION GAIN)
   ============================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
}

.tactical-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
  background: var(--bg-surface);
}

.tactical-table th {
  background: var(--bg-card);
  color: var(--accent-amber);
  font-weight: 700;
  padding: 1rem;
  border-bottom: 2px solid var(--border-strong);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tactical-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.tactical-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.formula-card {
  background: #090e1a;
  border: 1px dashed var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  color: #38bdf8;
  font-size: 0.95rem;
}

/* ==============================================================================
   EDITORIAL / E-E-A-T AUTHOR BADGE & TRUST SUITE
   ============================================================================== */
.eeat-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1.5rem 0;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #475569, #1e293b);
  border: 2px solid var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent-amber);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.author-creds {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==============================================================================
   FAQ ACCORDION (AEO TARGET)
   ============================================================================== */
.faq-section {
  margin: 3rem 0;
}

.faq-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent-amber);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==============================================================================
   SITE FOOTER
   ============================================================================== */
.site-footer {
  background: #04060c;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem 0;
  color: var(--text-secondary);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-col a:hover {
  color: var(--accent-amber);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ==============================================================================
   TACTICAL CLARITY 3.5: FORMULAS, DIAGRAMS, LISTS & EDITORIAL STYLES
   ============================================================================== */

.content-paragraph {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.content-paragraph strong {
  color: #ffffff;
  font-weight: 700;
}

/* Formula & Mathematical Cards */
.formula-card {
  background: linear-gradient(135deg, rgba(19, 28, 49, 0.95), rgba(12, 18, 32, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.formula-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.formula-badge {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.formula-standard {
  font-size: 0.725rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.formula-expression {
  font-size: 1.35rem;
  font-family: 'Cambria Math', 'STIX Two Math', 'Latin Modern Math', Georgia, serif;
  color: #ffffff;
  text-align: center;
  padding: 1.25rem 0.5rem;
  overflow-x: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.formula-expression .var {
  font-style: italic;
  font-weight: 700;
  color: #fde68a;
}

.formula-expression .frac {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  text-align: center;
  padding: 0 0.35rem;
  line-height: 1.2;
}

.formula-expression .num {
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.8);
  padding-bottom: 3px;
  font-size: 0.9em;
}

.formula-expression .denom {
  padding-top: 3px;
  font-size: 0.9em;
}

.formula-expression .radic {
  display: inline-flex;
  align-items: center;
}

.formula-expression .radicand {
  border-top: 1.5px solid rgba(255, 255, 255, 0.8);
  padding-top: 2px;
  margin-left: 2px;
}

.formula-legend {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.formula-legend strong {
  color: var(--text-secondary);
}

/* Inline Math Notation */
.inline-math {
  font-family: 'Cambria Math', 'STIX Two Math', Georgia, serif;
  font-size: 1.05em;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  white-space: nowrap;
}

/* Tactical Numbered & Bullet Lists */
.tactical-numbered-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tactical-numbered-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(12, 18, 32, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.tactical-numbered-list li:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.list-bullet-num {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #060911;
  font-weight: 800;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.list-item-body {
  flex: 1;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.list-item-body strong {
  color: #ffffff;
  font-weight: 700;
}

.tactical-bullet-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tactical-bullet-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(12, 18, 32, 0.4);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.tactical-bullet-list li:hover {
  border-color: rgba(6, 182, 212, 0.4);
}

.list-bullet-icon {
  color: var(--accent-amber);
  font-size: 1.2rem;
  line-height: 1.3;
  flex-shrink: 0;
}

/* High-Impact Content Diagrams */
.content-diagram-box {
  margin: 2.5rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  max-width: 100%;
}

.diagram-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 9, 17, 0.85);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  box-sizing: border-box;
  overflow: hidden;
}

.diagram-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.diagram-id {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
}

.diagram-img-wrap {
  padding: 1.5rem;
  background: #060911;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.diagram-img {
  width: 100%;
  max-width: 820px;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform var(--transition-normal);
  display: block;
}

.diagram-img:hover {
  transform: scale(1.01);
}

.diagram-caption {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.diagram-caption strong {
  color: var(--text-secondary);
}

/* ==============================================================================
   HIGH-VALUE CONTENT ENRICHMENT COMPONENTS
   ============================================================================== */

/* Executive Key Takeaways Card */
.quick-takeaways-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.takeaways-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.takeaways-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-amber);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.takeaways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.takeaway-metric-box {
  background: rgba(6, 9, 17, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.takeaway-metric-label {
  font-size: 0.725rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
}

.takeaway-metric-val {
  font-size: 0.95rem;
  font-weight: 750;
  color: #ffffff;
}

/* Device Hardware & Acoustic Specifications Sheet */
.device-specs-card {
  background: var(--bg-surface);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.specs-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.spec-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}

.spec-key {
  font-size: 0.72rem;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

.spec-val {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Do's & Don'ts Safety Callout Box */
.dos-donts-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.dos-donts-header {
  margin-bottom: 1rem;
}

.dos-donts-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.dos-donts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.dos-column {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.donts-column {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.column-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.badge-dos {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.badge-donts {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.dos-column ul, .donts-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dos-column li {
  font-size: 0.875rem;
  color: #d1fae5;
  line-height: 1.5;
  position: relative;
  padding-left: 1.4rem;
}

.dos-column li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 800;
}

.donts-column li {
  font-size: 0.875rem;
  color: #fee2e2;
  line-height: 1.5;
  position: relative;
  padding-left: 1.4rem;
}

.donts-column li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #f87171;
  font-weight: 800;
}

/* Table of Contents Navigation Card */
.table-of-contents-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.toc-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-amber);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.toc-list li a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
  display: inline-block;
}

.toc-list li a:hover {
  color: var(--accent-amber);
  padding-left: 4px;
}

@media (max-width: 768px) {
  .dos-donts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
