/**
 * DealNest - Professional B2B SaaS Landing Page Design System
 * Modern Light-Mode Aesthetics: Multi-layer depth, radiant lighting, 
 * rich visual hierarchy, functional color coding & micro-interactions.
 * 
 * Local Environment: Windows 10 / XAMPP
 */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  /* Refined Light Theme Canvas & Surfaces */
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-subtle-alt: #f8fafc;
  --bg-card: #ffffff;

  /* Crisp Borders */
  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: #93c5fd;

  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  /* Brand Accents */
  --primary: #1a73e8;
  --primary-hover: #174ea6;
  --primary-subtle: #eff6ff;
  --primary-border: #dadce0;
  --primary-glow: rgba(26, 115, 232, 0.15);

  /* Functional Accents */
  --success: #059669;
  --success-subtle: #ecfdf5;
  --success-border: #a7f3d0;

  --danger: #dc2626;
  --danger-subtle: #fef2f2;
  --danger-border: #fecaca;

  --warning: #d97706;
  --warning-subtle: #fffbeb;
  --warning-border: #fde68a;

  --violet: #7c3aed;
  --violet-subtle: #f5f3ff;
  --violet-border: #ddd6fe;

  --sky: #0284c7;
  --sky-subtle: #f0f9ff;
  --sky-border: #bae6fd;

  --rose: #e11d48;
  --rose-subtle: #fff1f2;
  --rose-border: #fecdd3;

  --teal: #0d9488;
  --teal-subtle: #ccfbf1;
  --teal-border: #99f6e4;

  /* Multi-Layered Elevation Shadows (Light Mode Depth) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 30px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 50px -12px rgba(15, 23, 42, 0.1), 0 8px 20px -4px rgba(15, 23, 42, 0.05);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Button Sizing Tokens */
  --btn-sm-padding: 7px 14px;
  --btn-sm-font: 0.82rem;

  --btn-md-padding: 9px 18px;
  --btn-md-font: 0.88rem;

  --btn-lg-padding: 11px 22px;
  --btn-lg-font: 0.94rem;

  --container-max: 1180px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

h3, h4 {
  font-weight: 500;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Nav (Frosted Glass Overlay)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  position: relative;
  z-index: 1002;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: opacity 0.15s ease;
}

.brand-logo:hover {
  opacity: 0.9;
}

.brand-logo-img {
  height: 25px;
  width: auto;
  max-width: 100%;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 4px;
  position: relative;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Nav Toggle Button (Hamburger) */
.mobile-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 9px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-toggle:hover {
  background: #ffffff;
  border-color: rgba(203, 213, 225, 1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  transform-origin: center;
}

.mobile-nav-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-nav-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Overlay & Menu */
.mobile-nav-backdrop {
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 998;
}

.mobile-nav-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  background-color: #ffffff !important;
  bottom: 0;
  height: calc(100vh - 66px);
  height: calc(100dvh - 66px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.12);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  z-index: 999;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

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

.mobile-nav-inner {
  padding: 16px 20px 24px;
  max-width: 500px;
  margin: 0 auto;
  box-sizing: border-box;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background-color: #f8fafc;
  color: var(--primary);
  padding-left: 20px;
}

.mobile-nav-divider {
  height: 1px;
  background-color: #e2e8f0;
  margin: 14px 0 16px;
}

.mobile-nav-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
}

.mobile-nav-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 9px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.btn-text-compact,
.btn-text-mobile,
.badge-text-mobile {
  display: none;
}
.btn-text-full,
.btn-text-desktop,
.badge-text-desktop {
  display: inline;
}

.site-header.has-drawer-open {
  background-color: #ffffff !important;
  border-bottom-color: rgba(226, 232, 240, 1) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.site-header.has-drawer-open .nav-btn-cta {
  display: none !important;
}

/* ==========================================================================
   Buttons (Refined Affordance & Micro-Gradients)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--btn-md-padding);
  font-size: var(--btn-md-font);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background-color: #1a73e8;
  background: #1a73e8;
  color: #ffffff;
  border: 1px solid #1a73e8;
  box-shadow: none;
}

.btn-primary:hover {
  background-color: #174ea6;
  background: #174ea6;
  border-color: #174ea6;
  color: #ffffff;
  box-shadow: none;
  transform: none;
}

.btn-primary:active {
  background-color: #174ea6;
  border-color: #174ea6;
  transform: none;
  box-shadow: none;
}

.btn-secondary,
.btn-outline {
  color: #1a73e8;
  background-color: #ffffff;
  border: 1px solid #dadce0;
  box-shadow: none;
}

.btn-secondary:hover,
.btn-outline:hover {
  color: #174ea6;
  background-color: #f1f3f4;
  border-color: #8ab4f8;
  transform: none;
  box-shadow: none;
}

.btn-secondary:active,
.btn-outline:active {
  color: #174ea6;
  background-color: #f1f3f4;
  border-color: #8ab4f8;
  transform: none;
  box-shadow: none;
}

.btn-text,
.text-link,
a.text-link {
  background-color: transparent;
  color: #174ea6;
  border: 1px solid transparent;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.btn-text:hover {
  background-color: var(--bg-subtle);
  color: #174ea6;
}

.text-link:hover,
a.text-link:hover {
  color: #174ea6;
  text-decoration: underline;
}

.btn-sm {
  padding: var(--btn-sm-padding);
  font-size: var(--btn-sm-font);
}

.btn-lg {
  padding: var(--btn-lg-padding);
  font-size: var(--btn-lg-font);
}

/* ==========================================================================
   Hero Section (Radiant Ambient Light & Layered Canvas)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 156px 0 75px;
  border-bottom: 1px solid var(--border-light);
  background: 
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(37, 99, 235, 0.08) 0%, rgba(99, 102, 241, 0.03) 45%, transparent 75%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 60%, var(--bg-app) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

.hero-center {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.hero-title {
  margin-bottom: 20px;
  text-align: center;
}

.hero-title-main {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 3.8vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.03125rem;
  text-wrap: balance;
}

.hero-title-sub {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.9vw, 1.45rem);
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.015em;
  margin-top: 10px;
  text-wrap: balance;
}

.hero-title-accent {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.62;
  margin: 0 auto 28px;
  max-width: 740px;
  text-align: center;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-trust-dot {
  color: var(--text-muted);
  opacity: 0.45;
  user-select: none;
}

/* ==========================================================================
   Mockup Preview Window (macOS Aesthetic & Depth)
   ========================================================================== */
.hero-mockup-wrapper {
  margin-top: 50px;
  width: 100%;
}

.product-preview-card {
  background-color: var(--bg-surface);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-2xl);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 24px 60px -15px rgba(15, 23, 42, 0.09), 
    0 10px 30px -5px rgba(37, 99, 235, 0.07);
  overflow: hidden;
  width: 100%;
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background-color: #fafbfc;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.82rem;
  gap: 12px;
}

.window-header-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.window-dot-red {
  background-color: #ff5f57;
  border: 1px solid #e0443e;
}

.window-dot-amber {
  background-color: #febc2e;
  border: 1px solid #d89e24;
}

.window-dot-green {
  background-color: #28c840;
  border: 1px solid #1aab29;
}

.window-url-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  padding: 4px 14px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

/* Telemetry Dashboard Inside Preview */
.preview-telemetry {
  padding: 26px 30px 32px;
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
}

.timeline-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding-bottom: 16px; */
  /* border-bottom: 1px solid var(--border-light); */
  gap: 12px;
}

.timeline-panel-title-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.timeline-panel-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.timeline-panel-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.timeline-head-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Physical Badge Component (Standardized 1:1 with badges.css)
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full, 9999px);
  font-family: inherit;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  box-sizing: border-box;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all var(--transition-fast, 0.15s ease);
}

.badge-xs {
  padding: 2px 6px;
  font-size: 0.68rem;
  gap: 4px;
}

.badge-sm {
  padding: 2.5px 8px;
  font-size: 0.70rem;
  gap: 5px;
}

.badge-md,
.badge:not([class*="badge-xs"]):not([class*="badge-sm"]):not([class*="badge-lg"]) {
  padding: 4px 10px;
  font-size: 0.74rem;
  gap: 6px;
}

.badge-neutral {
  background: var(--bg-app);
  border-color: var(--border-light, #e2e8f0);
  color: var(--text-secondary);
}

.badge-surface {
  background: var(--bg-surface);
  border-color: var(--border-light, #e2e8f0);
  color: var(--text-secondary);
}

.badge-viewed {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.badge-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.badge-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.badge-live {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1a73e8;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}

.badge-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
  flex-shrink: 0;
  animation: liveBeaconPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.live-dot-mini {
  width: 6px;
  height: 6px;
}

@keyframes liveBeaconPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

/* Legacy pill badges fallback */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pill-viewing {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.pill-signed {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.pill-alert {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.pill-pricing {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.pill-published,
.pill-ready {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* ==========================================================================
   Product Preview Telemetry: Engagement Score Card (1:1 with deal-stats.php)
   ========================================================================== */
.deal-stats-score-card {
  padding: 18px 20px;
  background-color: #f8fafc;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  margin-bottom: 22px;
}

.deal-stats-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.deal-stats-score-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}

.deal-stats-score-content {
  min-width: 0;
}

.deal-stats-score-pill {
  font-size: 1.35rem;
  padding: 7px 14px;
  border-radius: var(--radius-sm, 6px);
  font-weight: 800;
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-light, #e2e8f0) !important;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: baseline;
  line-height: 1.2;
}

.deal-stats-score-pill .score-max {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 2px;
}

.deal-stats-score-meta-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.deal-stats-intent-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.deal-stats-intent-badge {
  padding: 3px 8px;
  font-size: 0.72rem;
}

.signal-gauge {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
}

.signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  display: inline-block;
  transition: background 0.2s ease;
}

.signal-dot.is-active {
  background: var(--primary);
}

.deal-stats-score-desc {
  font-size: 0.80rem;
  color: var(--text-secondary);
  margin-top: 3px;
  margin-bottom: 0;
  line-height: 1.45;
  max-width: 440px;
}

.deal-stats-score-breakdown {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.deal-stats-score-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  padding: 7px 11px;
  min-width: 104px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.deal-stats-score-box:hover {
  border-color: #94a3b8;
}

.deal-stats-score-box-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deal-stats-score-box-lbl {
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  line-height: 1.2;
}

.deal-stats-score-box-val {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.deal-stats-score-num {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono, monospace);
  font-feature-settings: "tnum" 1;
  line-height: 1.2;
}

.deal-stats-score-max {
  font-size: 0.70rem;
  font-weight: 550;
  color: var(--text-secondary);
  font-family: var(--font-mono, monospace);
  font-feature-settings: "tnum" 1;
  line-height: 1.2;
}

.deal-stats-score-track {
  width: 100%;
  height: 3px;
  background: var(--border-subtle, #edf2f7);
  border-radius: var(--radius-full, 9999px);
  overflow: hidden;
}

.deal-stats-score-bar {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full, 9999px);
}

.deal-stats-signals-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light, #e2e8f0);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deal-stats-signal-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.80rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.deal-stats-signal-icon-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light, #e2e8f0);
  color: var(--primary);
  flex-shrink: 0;
}

/* Deal Telemetry 1-Liner Context Strip */
.deal-telemetry-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  margin: 14px 0 20px;
  background-color: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.deal-telemetry-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-telemetry-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.deal-telemetry-account strong {
  font-weight: 700;
  color: var(--text-primary);
}

.deal-telemetry-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.deal-telemetry-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.deal-telemetry-dot {
  color: var(--text-muted);
  flex-shrink: 0;
}

.deal-telemetry-focus {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 0.80rem;
  flex-shrink: 0;
}

.deal-telemetry-focus .focus-val {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 700;
}

.deal-telemetry-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.telemetry-signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.telemetry-signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: telemetrySignalPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  flex-shrink: 0;
}

@keyframes telemetrySignalPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

.signal-text-mobile {
  display: none;
}
.signal-text-desktop {
  display: inline;
}

.timeline-container {
  position: relative;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background-color: #e2e8f0;
}

.timeline-item {
  position: relative;
}

.timeline-item.item-enter {
  animation: slideFadeIn 0.35s ease forwards;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.timeline-badge {
  position: absolute;
  left: -32px;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 2px solid #cbd5e1;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.timeline-badge.badge-opened {
  border-color: #2563eb;
  color: #2563eb;
  background-color: #eff6ff;
}

.timeline-badge.badge-pricing {
  border-color: #7c3aed;
  color: #7c3aed;
  background-color: #f5f3ff;
}

.timeline-badge.badge-alert {
  border-color: #f59e0b;
  color: #f59e0b;
  background-color: #fffbeb;
}

.timeline-badge.badge-signed {
  border-color: #10b981;
  color: #10b981;
  background-color: #ecfdf5;
}

.timeline-content {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.timeline-content:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
  transform: none;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 12px;
}

.timeline-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.timeline-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   Section Headers & Common
   ========================================================================== */
.section {
  padding: 68px 0;
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: 76px;
  position: relative;
}

.section-title-wrap {
  text-align: left;
  max-width: 680px;
  margin: 0 0 40px;
}

#comparison .section-title-wrap,
#pricing .section-title-wrap,
#faq .section-title-wrap {
  text-align: center;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.section-label-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.18;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -.03125rem;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Comparison Section: Row-by-Row Table (Linear / Stripe Style)
   ========================================================================== */
#comparison {
  background-color: #ffffff;
}

.compare-table-wrapper {
  max-width: 1040px;
  margin: 0 auto;
}

.compare-table {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.04);
  position: relative;
}

.compare-table::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb 0%, #6366f1 50%, #10b981 100%);
  z-index: 2;
}

.compare-row {
  display: grid;
  grid-template-columns: 240px 1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.15s ease;
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row:not(.compare-header-row):hover {
  background-color: #fbfcfe;
}

.compare-header-row {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-light);
}

.compare-col {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compare-col-feature {
  border-right: 1px solid var(--border-light);
  background-color: #fcfdfe;
}

.compare-header-row .compare-col-feature {
  background-color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.compare-feature-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.compare-feature-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.compare-col-old {
  border-right: 1px solid var(--border-light);
  background-color: #ffffff;
}

.compare-col-new {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.45) 0%, rgba(240, 253, 250, 0.45) 100%);
  position: relative;
}

.compare-header-row .compare-col-new {
  background-color: rgba(239, 246, 255, 0.55);
}

.compare-cell-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.compare-cell-text strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.35;
}

.compare-cell-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.compare-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.compare-icon-old {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.compare-icon-new {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.15);
}

.compare-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.compare-pill-old {
  background-color: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid #e2e8f0;
}

.compare-pill-new {
  background-color: #eff6ff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
}

/* Responsive Table */
@media (max-width: 860px) {
  .compare-row {
    grid-template-columns: 1fr;
  }
  
  .compare-header-row {
    display: none;
  }
  
  .compare-col-feature {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 20px;
    background-color: #f8fafc;
  }
  
  .compare-col-old {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 18px 20px;
  }
  
  .compare-col-new {
    padding: 18px 20px;
  }

  .compare-col-old::before {
    content: "The Old Way • Static PDF";
    display: inline-block;
    font-size: 0.70rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
  }

  .compare-col-new::before {
    content: "The DealNest Way • Modern DSR";
    display: inline-block;
    font-size: 0.70rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
  }
}

/* ==========================================================================
   Workflow Section (Steps with Visual Connection & Micro-UI Snippets)
   ========================================================================== */
#how-it-works {
  background: linear-gradient(180deg, var(--bg-app) 0%, #ffffff 50%, var(--bg-app) 100%);
  position: relative;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.workflow-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease;
  position: relative;
}

.workflow-card:hover {
  border-color: #93c5fd;
}

@media (min-width: 992px) {
  .workflow-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 42px;
    right: -20px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #93c5fd;
    border-right: 2px solid #93c5fd;
    transform: rotate(45deg);
    z-index: 3;
    pointer-events: none;
  }
}

.workflow-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.workflow-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.workflow-card:hover .workflow-step-badge {
  background-color: #eff6ff;
  border-color: #bfdbfe;
}

.workflow-step-num {
  color: var(--primary);
  font-family: var(--font-mono);
}

.workflow-step-divider {
  width: 1px;
  height: 10px;
  background-color: #cbd5e1;
}

.workflow-step-phase {
  color: var(--text-secondary);
  font-size: 0.70rem;
}

.workflow-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}

.workflow-card:hover .workflow-icon-wrap {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--primary);
  border-color: #bfdbfe;
  transform: scale(1.05);
}

.workflow-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.workflow-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.workflow-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  margin-top: auto;
  transition: all 0.2s ease;
}

.workflow-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  flex-shrink: 0;
}

.workflow-card:hover .workflow-tag {
  color: var(--primary);
  border-color: #bfdbfe;
  background-color: #eff6ff;
}

@media (max-width: 860px) {
  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   Bento Capabilities Section (Cohesive Enterprise Architecture)
   ========================================================================== */
#features {
  background-color: #ffffff;
}

/* ==========================================================================
   Linear-Style Architecture: Dual-Column Headers & Obsidian Showcase Stages
   ========================================================================== */
.linear-section {
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}

.linear-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}

.linear-header-left {
  flex: 1.35;
  max-width: 660px;
}

.linear-header-right {
  flex: 1;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}

.linear-section-heading {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}

.linear-section-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.62;
  margin: 0;
}

.linear-header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.2s ease;
  width: fit-content;
}

.linear-header-link:hover {
  color: var(--primary-hover);
  transform: none;
}

/* ==========================================================================
   Section 1: Real-Time Slack & Telegram Alerts Showcase (Light Mode 1/1)
   ========================================================================== */
.alerts-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

/* Slack Native Workspace Mockup Window (Light Mode) */
.slack-light-window {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  width: 100%;
}

.slack-light-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.slack-light-channel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slack-light-hash {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.slack-light-hash svg {
  display: block;
}

.slack-light-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slack-light-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.90rem;
  color: var(--text-primary);
  line-height: 1.2;
  font-family: var(--font-mono);
}

.slack-status-line {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.slack-dot-online {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  box-shadow: 0 0 4px #10b981;
}

.slack-mode-badge {
  font-size: 0.72rem;
}

/* Slack Message Feed (Light Mode) */
.slack-light-feed {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  background-color: #f1f5f9;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.slack-light-feed::-webkit-scrollbar {
  width: 6px;
}

.slack-light-feed::-webkit-scrollbar-track {
  background: transparent;
}

.slack-light-feed::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.slack-msg-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slack-msg-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.slack-msg-card.item-enter {
  animation: slideFadeIn 0.35s ease forwards;
}

.slack-msg-card.is-won {
  border-left: 3px solid #10b981;
}

.slack-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slack-bot-avatar {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.slack-bot-avatar-won {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.slack-bot-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.slack-app-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: #475569;
  background: #e2e8f0;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.slack-msg-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-left: auto;
}

.slack-msg-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.slack-block-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2px 0 6px;
  line-height: 1.35;
}

.slack-block-lead {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 6px;
}

.slack-block-lead strong {
  color: var(--text-primary);
  font-weight: 600;
}

.slack-block-fields {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 4px 0 8px;
}

.slack-block-fields div strong {
  color: var(--text-primary);
  font-weight: 600;
}

.slack-block-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0 0 10px;
  line-height: 1.4;
}

.slack-block-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 4px;
}

.slack-btn-slack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #007a5a;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.80rem;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  line-height: 1.3;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 122, 90, 0.2);
}

.slack-btn-slack:hover {
  background-color: #006c4f;
  box-shadow: 0 2px 4px rgba(0, 122, 90, 0.25);
}

.slack-btn-slack:active {
  background-color: #00563f;
}

.slack-context-footer {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
}


/* Telegram Native Mockup Window (Light Mode) */
.telegram-light-window {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  width: 100%;
}

.telegram-light-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.telegram-light-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.telegram-light-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a73e8 0%, #0284c7 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.25);
}

.telegram-light-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.telegram-light-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.90rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.telegram-verified-icon {
  display: inline-flex;
}

.telegram-handle-text {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 500;
}

.telegram-status-line {
  font-size: 0.72rem;
  color: #0284c7;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.telegram-dot-online {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  box-shadow: 0 0 4px #10b981;
}

.tg-mode-badge {
  font-size: 0.72rem;
}

/* Telegram Message Feed (Light Mode) */
.telegram-light-feed {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  background-color: #f1f5f9;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.telegram-light-feed::-webkit-scrollbar {
  width: 6px;
}

.telegram-light-feed::-webkit-scrollbar-track {
  background: transparent;
}

.telegram-light-feed::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.tg-light-bubble,
.tg-msg-bubble {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px 14px 14px 4px;
  padding: 13px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: all 0.2s ease;
  position: relative;
}

.tg-light-bubble:hover,
.tg-msg-bubble:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
  transform: none;
}

.tg-light-bubble.item-enter,
.tg-msg-bubble.item-enter {
  animation: slideFadeIn 0.35s ease forwards;
}

.tg-light-head,
.tg-msg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.tg-light-title,
.tg-msg-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
  flex: 1;
}

.tg-light-time,
.tg-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 1px;
}

.tg-light-desc,
.tg-msg-detail {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 8px;
}

.tg-light-desc strong,
.tg-msg-detail strong {
  color: var(--text-primary);
}

.tg-light-meta,
.tg-msg-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  border-top: 1px dashed var(--border-subtle);
  padding-top: 6px;
}

.tg-light-link,
.tg-room-link {
  color: var(--primary);
  font-weight: 500;
}

.tg-meta-accent {
  color: #c2410c;
  font-weight: 600;
}

.tg-status-won {
  color: #047857;
  font-weight: 600;
}

/* Footer tag text classes */
.tg-tag-blue {
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.tg-tag-amber {
  color: #c2410c;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.tg-tag-purple {
  color: #6d28d9;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.tg-tag-green {
  color: #047857;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* Right: Real App Components Sidebar */
.stats-real-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stats-real-sidebar .table-container {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
}

.deal-stats-details-title {
  font-size: 0.90rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.deal-stats-panel-header {
  margin-bottom: 14px;
}

.deal-stats-panel-title-wrap {
  width: 100%;
}

.deal-stats-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.deal-stats-panel-title-row .deal-stats-details-title {
  margin: 0;
  font-size: 0.90rem;
  font-weight: 700;
  color: var(--text-primary);
}

.deal-stats-panel-title-row .pill-badge {
  margin-left: auto;
  flex-shrink: 0;
}

.deal-stats-panel-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 3px 0 0;
}

.deal-stats-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deal-stats-details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
}

.deal-stats-telegram-row {
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
}

.deal-stats-telegram-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tg-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  height: 28px;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  box-sizing: border-box;
}

.tg-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #cbd5e1;
  display: inline-block;
}

.tg-status-dot.is-active {
  background-color: #10b981;
}

.deal-stats-telegram-status .btn-xs,
.btn-manage-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 0.75rem;
  font-weight: 600;
  height: 28px;
  min-height: 28px;
  line-height: 28px;
  border-radius: var(--radius-full, 9999px);
  color: #1a73e8;
  background-color: #ffffff;
  border: 1px solid #dadce0;

  transition: all 0.15s ease;
  box-sizing: border-box;
  cursor: pointer;
  text-decoration: none;
}

.deal-stats-telegram-status .btn-xs:hover,
.btn-manage-tg:hover {
  color: #174ea6;
  background-color: #f1f3f4;
  border-color: #8ab4f8;

}

.deal-stats-telegram-status .btn-xs:active,
.btn-manage-tg:active {
  transform: none;
}

/* Content Sections Attention 1/1 Replica */
.deal-stats-content-blocks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.deal-stats-block-dwell-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deal-stats-block-dwell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.80rem;
}

.deal-stats-block-dwell-title {
  color: var(--text-secondary);
  font-weight: 500;
}

.deal-stats-block-dwell-bar-bg {
  height: 6px;
  background-color: var(--bg-subtle);
  border-radius: 3px;
  overflow: hidden;
}

.deal-stats-block-dwell-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.bar-fill-warning {
  background-color: #f59e0b;
}

.bar-fill-primary {
  background-color: var(--primary);
}

.bar-fill-purple {
  background-color: #8b5cf6;
}

.bar-fill-success {
  background-color: #10b981;
}

/* Multithreading Signal Item 1/1 */
.deal-stats-signal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 0.82rem;
  color: #1e3a8a;
  line-height: 1.4;
}

.deal-stats-signal-icon-primary {
  color: var(--primary);
  flex-shrink: 0;
  display: inline-flex;
}

/* ==========================================================================
   Section 2: AI Deal Advisor 1/1 Light-Theme Components (deal-stats.php)
   ========================================================================== */
.deal-ai-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deal-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 12px;
}

.deal-ai-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.deal-ai-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.deal-ai-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: none;
  padding: 0;
  width: auto;
  height: auto;
}

.deal-ai-title-icon {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
}

.deal-ai-grad-path {
  fill: url(#dealAiLandingGrad);
}

.deal-ai-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.deal-ai-quota-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: #4f46e5;
}

.deal-ai-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.deal-ai-timestamp-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* AI Action Button (Smart Surface / Executive Outlined Variant - 1:1 with design-system.css:348) */
.btn-ai,
.product-preview-card .btn-ai {
  background: var(--bg-surface) !important;
  background-color: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-light, #cbd5e1) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm, 6px) !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-ai svg,
.product-preview-card .btn-ai svg {
  color: var(--primary) !important;
  transition: color 0.2s ease;
}

.btn-ai:hover,
.product-preview-card .btn-ai:hover {
  background: var(--bg-subtle, #f1f5f9) !important;
  background-color: var(--bg-subtle, #f1f5f9) !important;
  color: var(--text-primary) !important;
  border-color: #94a3b8 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transform: none;
}

.btn-ai:hover svg,
.product-preview-card .btn-ai:hover svg {
  color: var(--primary-hover, #174ea6) !important;
}

.btn-ai:active,
.product-preview-card .btn-ai:active {
  background: var(--bg-subtle, #f1f5f9) !important;
  transform: none;
}

@keyframes aiBtnReadyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(26, 115, 232, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
  }
}

.btn-ai-ready-pulse {
  animation: aiBtnReadyPulse 2s ease-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.deal-ai-verdict-card {
  padding: 16px 20px;
  background-color: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deal-ai-verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.deal-ai-body-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.2;
}

.deal-ai-verdict-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.deal-ai-status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.deal-ai-verdict-title {
  font-size: 0.80rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.deal-ai-diagnosis-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
}

.deal-ai-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.deal-ai-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}

.deal-ai-box-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.deal-ai-title-icon-wrap.is-positive {
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 4px;
  padding: 4px;
  display: inline-flex;
}

.deal-ai-title-icon-wrap.is-risk {
  color: #d97706;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 4px;
  padding: 4px;
  display: inline-flex;
}

.deal-ai-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.deal-ai-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.deal-ai-bullet-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.deal-ai-bullet-bullet.is-positive {
  background-color: #10b981;
}

.deal-ai-bullet-bullet.is-risk {
  background-color: #f59e0b;
}

.deal-ai-playbook-card {
  background-color: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deal-ai-playbook-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.deal-ai-playbook-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4f46e5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
}

.deal-ai-copy-btn,
.btn.deal-ai-copy-btn,
.product-preview-card .deal-ai-copy-btn,
.product-preview-card .btn.deal-ai-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-surface) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-light, #cbd5e1) !important;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-xs, 4px) !important;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.deal-ai-copy-btn:hover,
.btn.deal-ai-copy-btn:hover,
.product-preview-card .deal-ai-copy-btn:hover,
.product-preview-card .btn.deal-ai-copy-btn:hover {
  background-color: var(--bg-subtle, #f1f5f9) !important;
  border-color: #94a3b8 !important;
  color: var(--text-primary) !important;
  box-shadow: none;
  transform: none;
}

.deal-ai-copy-btn:active,
.btn.deal-ai-copy-btn:active {
  background-color: #ede9fe;
  transform: none;
  box-shadow: none;
}

.deal-ai-copy-btn.is-copied,
.btn.deal-ai-copy-btn.is-copied {
  background-color: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15) !important;
  transform: none;
}

.deal-ai-action-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.deal-ai-draft-box {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.deal-ai-draft-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.deal-ai-message-body {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.55;
  font-style: italic;
}

/* ==========================================================================
   Streamlined Bento Features Grid
   ========================================================================== */
#features {
  background-color: #ffffff;
}

.features-clean-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feat-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.feat-card:hover {
  border-color: #93c5fd;
}

.feat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.feat-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.feat-icon-calc {
  background-color: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.feat-icon-sign {
  background-color: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.feat-icon-pay {
  background-color: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.feat-icon-net {
  background-color: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background-color: #f8fafc;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.feat-pill-sign {
  background-color: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.feat-pill-calc {
  background-color: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.feat-pill-pay {
  background-color: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.feat-pill-net {
  background-color: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.feat-card h4 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.35;
}

.feat-card p {
  font-size: 0.90rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}

@media (max-width: 980px) {
  .linear-section-header {
    flex-direction: column;
    gap: 16px;
  }
  .linear-header-left,
  .linear-header-right {
    max-width: 100%;
  }
  .linear-stage-grid {
    grid-template-columns: 1fr;
  }
  .deal-ai-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .features-clean-grid {
    grid-template-columns: 1fr;
  }
  .alerts-layout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .linear-showcase-card {
    padding: 20px 16px;
  }
  .linear-section-heading {
    font-size: 1.85rem;
  }
  .alerts-layout-grid {
    gap: 16px;
  }
  .slack-light-topbar,
  .telegram-light-topbar {
    padding: 10px 14px;
  }
  .slack-light-feed,
  .telegram-light-feed {
    padding: 12px;
  }
  .slack-msg-card,
  .tg-light-bubble {
    padding: 12px 14px;
  }
  .telegram-feed {
    padding: 12px;
  }
  .alerts-companion-card {
    padding: 18px 14px;
  }
}

/* ==========================================================================
   Pricing Section (High-Converting Spotlight Architecture)
   ========================================================================== */
#pricing {
  background: 
    radial-gradient(circle at 50% 35%, rgba(37, 99, 235, 0.06) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-app) 0%, #ffffff 50%, var(--bg-app) 100%);
}

.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.billing-switch {
  display: inline-flex;
  background-color: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 4px;
}

.switch-btn {
  padding: 7px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch-btn:hover {
  color: var(--text-primary);
}

.switch-btn.active {
  background-color: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.save-badge {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: var(--success-subtle);
  color: var(--success);
  border: 1px solid var(--success-border);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.pricing-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-box {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: 36px 26px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

/* Pro Superstar Card */
.pricing-box.pro {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow: none;
}

/* Custom Solution Card */
.pricing-box.custom {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid var(--border-light);
}

.pricing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pricing-head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
}

.pricing-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--primary);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  box-shadow: none;
}

.pricing-badge.pricing-badge-free {
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  box-shadow: none;
}

.pricing-badge.pricing-badge-custom {
  background: #f1f5f9;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: none;
}

.pricing-desc {
  font-size: 0.90rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  min-height: 44px;
  line-height: 1.5;
}

.pricing-val {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-amount.pricing-amount-custom {
  font-size: 2.25rem;
}

.pricing-period {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-billed-annually {
  display: none;
  font-size: 0.80rem;
  color: var(--success);
  font-weight: 600;
  margin-top: 4px;
  font-family: var(--font-mono);
}

.pricing-features-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-family: var(--font-mono);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  padding: 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.45;
}

.pricing-features svg {
  color: var(--primary);
  flex-shrink: 0;
}

.pricing-roi-note {
  font-size: 0.80rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 12px;
  text-align: center;
}

/* ==========================================================================
   Pricing Detailed Feature Comparison Matrix
   ========================================================================== */
.pricing-matrix-container {
  margin-top: 64px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-matrix-container:hover {
  border-color: #cbd5e1;
}

.pricing-matrix-container[open] {
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.pricing-matrix-header-wrap {
  padding: 24px 32px;
  border-bottom: none;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  text-align: left;
  transition: background-color 0.2s ease;
}

.pricing-matrix-header-wrap::-webkit-details-marker,
.pricing-matrix-header-wrap::marker {
  display: none;
}

.pricing-matrix-header-wrap:hover {
  background: #f8fafc;
}

.pricing-matrix-header-wrap:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.pricing-matrix-container[open] > .pricing-matrix-header-wrap {
  border-bottom: 1px solid var(--border-light);
}

.pricing-matrix-header-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.pricing-matrix-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  text-align: left;
}

.pricing-matrix-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0;
  line-height: 1.5;
  text-align: left;
}

.pricing-matrix-toggle-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full, 9999px);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.pricing-matrix-header-wrap:hover .pricing-matrix-toggle-cta {
  border-color: #94a3b8;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.pricing-matrix-container[open] .pricing-matrix-toggle-cta {
  background-color: var(--primary-subtle);
  border-color: #bfdbfe;
  color: var(--primary);
}

.pricing-matrix-label-hide {
  display: none;
}

.pricing-matrix-container[open] .pricing-matrix-label-show {
  display: none;
}

.pricing-matrix-container[open] .pricing-matrix-label-hide {
  display: inline;
}

.pricing-matrix-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: currentColor;
}

.pricing-matrix-container[open] .pricing-matrix-toggle-icon {
  transform: rotate(180deg);
}

@keyframes matrixFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-matrix-container[open] > .pricing-matrix-scroll-wrapper {
  animation: matrixFadeSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pricing-matrix-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pricing-matrix-table thead th {
  padding: 22px 24px;
  background-color: #ffffff;
  border-bottom: 2px solid var(--border-light);
  text-align: left;
  vertical-align: bottom;
}

.matrix-th-feature {
  width: 48%;
  font-family: var(--font-display);
  font-size: 0.80rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.matrix-th-plan {
  width: 26%;
  text-align: center;
}

.matrix-plan-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.matrix-plan-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.matrix-plan-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.matrix-plan-price small {
  font-size: 0.80rem;
  font-weight: 500;
  color: var(--text-muted);
}

.matrix-th-pro {
  background-color: rgba(26, 115, 232, 0.03) !important;
  border-left: 1px solid var(--border-light);
}

.matrix-badge-popular {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--primary);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 2px;
  letter-spacing: 0.03em;
}

/* Group Section Row */
.matrix-group-row td {
  padding: 13px 24px;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.matrix-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.80rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.matrix-group-title svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Table Rows & Cells */
.pricing-matrix-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.15s ease;
}

.pricing-matrix-table tbody tr:hover {
  background-color: rgba(248, 250, 252, 0.8);
}

.pricing-matrix-table td {
  padding: 15px 24px;
  vertical-align: middle;
}

.matrix-td-feature {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.matrix-td-feature strong {
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.matrix-td-feature span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.matrix-td-val {
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.matrix-td-pro {
  background-color: rgba(26, 115, 232, 0.02);
  border-left: 1px solid var(--border-light);
  color: var(--text-primary);
}

.matrix-check {
  color: var(--primary);
  display: inline-block;
  vertical-align: middle;
}

.matrix-dash {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 1.1rem;
}

.matrix-tag-teaser {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Table Footer Actions */
.pricing-matrix-table tfoot td {
  padding: 20px 24px;
  background-color: #ffffff;
  border-top: 2px solid var(--border-light);
}

.matrix-tf-empty {
  border: none;
}

.matrix-tf-pro {
  background-color: rgba(26, 115, 232, 0.03) !important;
  border-left: 1px solid var(--border-light);
}

@media (max-width: 768px) {
  .hero-mockup-wrapper .window-url-bar,
  .window-url-bar {
    display: none !important;
  }
  .pricing-matrix-container {
    margin-top: 40px;
    border-radius: var(--radius-xl);
  }
  .pricing-matrix-header-wrap {
    padding: 20px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
  }
  .pricing-matrix-header-text {
    width: 100%;
    text-align: left;
  }
  .pricing-matrix-title {
    font-size: 1.20rem;
    text-align: left;
  }
  .pricing-matrix-sub {
    font-size: 0.85rem;
    text-align: left;
  }
  .pricing-matrix-toggle-cta {
    width: 100%;
    justify-content: center;
  }
  .pricing-matrix-table {
    min-width: 580px;
  }
  .pricing-matrix-table td,
  .pricing-matrix-table thead th,
  .matrix-group-row td {
    padding: 12px 14px;
  }
  .matrix-plan-name {
    font-size: 0.95rem;
  }
  .matrix-plan-price {
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
#faq {
  background-color: #ffffff;
}

.faq-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.faq-accordion {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.faq-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
}

.faq-item[open] {
  border-color: #93c5fd;
  background-color: #fafcff;
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.04);
}

.faq-summary {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 16px;
}

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

.faq-question {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.faq-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease;
}

.faq-item[open] .faq-icon-wrap {
  transform: rotate(180deg);
  background-color: var(--primary-subtle);
  color: var(--primary);
}

.faq-content {
  padding: 0 22px 20px 22px;
}

.faq-item[open] .faq-content {
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.faq-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.faq-footer-note {
  max-width: 820px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.90rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.faq-support-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.faq-support-link:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

/* ==========================================================================
   CTA Section (Dedicated Open Pre-Footer with Spotlight)
   ========================================================================== */
.section-cta {
  padding: 96px 0 104px;
  background: 
    radial-gradient(ellipse 70% 60% at 50% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-app) 100%);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  position: relative;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: #1d4ed8;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 2.9rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 600px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.cta-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.cta-trust-pill svg {
  color: #059669;
}

/* ==========================================================================
   Site Footer (Multi-Column Architecture & Trust Ecosystem)
   ========================================================================== */
.site-footer {
  padding: 72px 0 36px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-img {
  height: 25px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  background-color: var(--success-subtle);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--success);
  width: fit-content;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: pulseDot 2s infinite;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.footer-col-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.15s ease;
  display: inline-block;
}

.footer-col-links a:hover {
  color: var(--primary);
}

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

.footer-trust-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Legal Document Layouts (Privacy, Terms, Security)
   ========================================================================== */
.legal-header {
  padding: 130px 0 48px;
  background: 
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(37, 99, 235, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-app) 100%);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.legal-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal-article {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: 48px 44px;
  box-shadow: var(--shadow-sm);
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 20px 0 10px;
}

.legal-section p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-section ul {
  margin: 12px 0 18px 24px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-callout {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.legal-callout-info {
  background-color: #eff6ff;
  border-left: 4px solid var(--primary);
  color: #1e40af;
}

.legal-callout-security {
  background-color: #ecfdf5;
  border-left: 4px solid var(--success);
  color: #065f46;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.90rem;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.legal-table th {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.legal-table td {
  color: var(--text-secondary);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 980px) {
  .linear-section {
    padding: 68px 0;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  #comparison .section-title-wrap,
  #pricing .section-title-wrap,
  #faq .section-title-wrap {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
  .pricing-toggle-wrap {
    justify-content: flex-start;
  }
  .features-top-grid {
    grid-template-columns: 1fr;
  }
  .features-bottom-grid {
    grid-template-columns: 1fr;
  }
  .pricing-wrap {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .pricing-box.pro {
    order: -1;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .section-cta {
    text-align: left;
  }
  .cta-inner {
    align-items: flex-start;
  }
  .cta-actions {
    justify-content: flex-start;
  }
  .cta-trust {
    justify-content: flex-start;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  .footer-brand-col {
    grid-column: span 2;
  }
  .legal-article {
    padding: 32px 24px;
  }
  .linear-section-header {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
  }
  .linear-header-left,
  .linear-header-right {
    max-width: 100%;
    flex: none;
    padding-top: 0;
  }
  /* AI Deal Advisor Responsive Layout (<=768px) */
  .deal-ai-header {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    row-gap: 6px !important;
    column-gap: 10px !important;
    align-items: center !important;
    padding-bottom: 12px !important;
  }
  .deal-ai-title-wrap,
  .deal-ai-header-actions {
    display: contents !important;
  }
  .deal-ai-title-left {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
  }
  .deal-ai-title-icon {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
  }
  .deal-ai-title {
    font-size: clamp(0.88rem, 3.8vw, 1.02rem) !important;
    white-space: nowrap !important;
    min-width: 0 !important;
  }
  #btn-landing-run-ai {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  #btn-landing-run-ai .btn-text-desktop {
    display: none !important;
  }
  #btn-landing-run-ai .btn-text-mobile {
    display: inline !important;
  }
  .deal-ai-quota-pill {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    margin: 0 0 0 30px !important;
    font-size: 0.68rem !important;
    padding: 2px 8px !important;
    white-space: nowrap !important;
  }
  .deal-ai-timestamp-note {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    justify-self: start !important;
    text-align: left !important;
    font-size: 0.73rem !important;
    margin-top: 2px !important;
  }
}

@media (max-width: 640px) {
  .nav-btn-signin {
    display: none;
  }
  .btn-text-full,
  .btn-text-desktop,
  .badge-text-desktop {
    display: none !important;
  }
  .btn-text-compact,
  .btn-text-mobile,
  .badge-text-mobile {
    display: inline !important;
  }
  .nav-actions {
    gap: 8px;
  }
  .brand-logo-img {
    height: 23px;
  }
  .section,
  .linear-section {
    padding: 52px 0;
  }
  .section-title-wrap {
    margin-bottom: 28px;
  }
  .hero-title {
    margin-bottom: 12px;
  }
  .hero-title-main {
    font-size: clamp(1.95rem, 6.4vw, 2.35rem);
    letter-spacing: -0.025rem;
    line-height: 1.15;
  }
  .hero-title-sub {
    font-size: clamp(1.05rem, 3.5vw, 1.18rem);
    margin-top: 6px;
    line-height: 1.32;
  }
  .hero-desc {
    font-size: 0.94rem;
    line-height: 1.48;
    margin: 0 auto 16px;
    max-width: 330px;
    color: var(--text-muted);
  }
  .section-heading {
    font-size: clamp(1.42rem, 4.4vw, 1.65rem);
    line-height: 1.22;
    letter-spacing: -0.015rem;
  }
  .section-sub {
    font-size: 0.90rem;
    line-height: 1.45;
  }
  .linear-section-heading {
    font-size: clamp(1.42rem, 4.4vw, 1.65rem);
    line-height: 1.25;
    letter-spacing: -0.015rem;
  }
  .linear-section-desc {
    font-size: 0.92rem;
    line-height: 1.5;
  }
  .desktop-br {
    display: none !important;
  }
  .hero-section {
    padding: 78px 0 32px;
  }
  .hero-mockup-wrapper {
    margin-top: 22px;
  }
  .hero-mockup-wrapper .window-url-bar,
  .window-url-bar {
    display: none !important;
  }
  .window-header {
    padding: 10px 14px;
  }
  .window-header-badges {
    gap: 6px;
  }
  .preview-telemetry {
    padding: 20px 16px 24px;
  }
  .deal-stats-score-card {
    padding: 14px 12px;
    margin-bottom: 16px;
  }
  .deal-stats-score-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .deal-stats-score-left {
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }
  .deal-stats-score-pill {
    font-size: 1.25rem;
    padding: 6px 12px;
  }
  .deal-stats-score-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
  }
  .deal-stats-score-box {
    min-width: 0;
  }
  .timeline-panel-title {
    font-size: 0.95rem;
  }
  .deal-telemetry-strip {
    padding: 7px 10px;
    margin: 10px 0 16px;
    gap: 8px;
    font-size: 0.75rem;
  }
  .deal-telemetry-left {
    gap: 6px;
  }
  .focus-label {
    display: none;
  }
  .deal-telemetry-focus::before {
    content: "Pricing: ";
    color: var(--text-muted);
    font-size: 0.72rem;
  }
  .signal-text-desktop {
    display: none;
  }
  .signal-text-mobile {
    display: inline;
  }
  .telemetry-signal-badge {
    padding: 2px 7px;
    font-size: 0.68rem;
  }
  .deal-ai-verdict-card {
    padding: 13px 15px;
    gap: 6px;
  }
  .deal-ai-verdict-title {
    font-size: 0.76rem;
  }
  .deal-ai-diagnosis-text {
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .deal-ai-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .deal-ai-box {
    padding: 13px 15px;
  }
  .deal-ai-box-title {
    font-size: 0.75rem;
    margin-bottom: 10px;
  }
  .deal-ai-bullet-list {
    gap: 8px;
  }
  .deal-ai-bullet-item {
    font-size: 0.82rem;
    line-height: 1.45;
  }
  .deal-ai-playbook-card {
    padding: 14px 15px;
    gap: 10px;
  }
  .deal-ai-playbook-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .deal-ai-playbook-label {
    font-size: 0.75rem;
  }
  .deal-ai-copy-btn,
  .btn.deal-ai-copy-btn {
    padding: 4px 10px;
    font-size: 0.72rem;
    flex-shrink: 0;
  }
  .deal-ai-action-text {
    font-size: 0.82rem;
  }
  .deal-ai-draft-box {
    padding: 12px 14px;
  }
  .deal-ai-message-body {
    font-size: 0.84rem;
    line-height: 1.5;
  }
  .compare-card {
    padding: 26px 20px;
  }
  .features-bottom-grid {
    grid-template-columns: 1fr;
  }
  .feat-card, .feat-card-flagship, .workflow-card {
    padding: 22px 20px;
  }
  /*
  .real-score-breakdown {
    grid-template-columns: 1fr;
  }
  .real-signal-alert {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  */
  .hero-actions {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 8px;
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-actions .btn-primary {
    padding: 11px 20px;
    font-size: 0.92rem;
  }
  .hero-actions .btn-secondary {
    padding: 8px 16px;
    font-size: 0.85rem;
    background: transparent;
    border-color: transparent;
    color: var(--text-muted);
    box-shadow: none;
  }
  .hero-actions .btn-secondary:hover {
    color: var(--text-primary);
    background: rgba(241, 245, 249, 0.6);
  }
  .hero-trust {
    margin-top: 14px;
    font-size: 0.80rem;
    gap: 6px 12px;
    justify-content: center;
    line-height: 1.45;
  }
  .hero-trust-extra {
    display: none !important;
  }
  .pricing-box {
    padding: 26px 20px;
  }
  .pricing-amount {
    font-size: 2.25rem;
  }
  .pricing-amount.pricing-amount-custom {
    font-size: 1.75rem;
  }
  .pricing-desc {
    min-height: auto;
    margin-bottom: 16px;
  }
  .pricing-val {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }
  .faq-summary {
    padding: 16px 18px;
  }
  .faq-question {
    font-size: 0.98rem;
  }
  .faq-content {
    padding: 0 18px 18px 18px;
  }
  .section-cta {
    padding: 56px 0 64px;
    text-align: left;
  }
  .cta-inner {
    align-items: flex-start;
  }
  .cta-title {
    font-size: clamp(1.55rem, 5vw, 1.85rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    text-wrap: balance;
  }
  .cta-desc {
    font-size: 0.94rem;
    line-height: 1.5;
    margin-bottom: 22px;
  }
  .cta-actions {
    width: 100%;
  }
  .cta-actions .btn {
    width: 100%;
  }
  .cta-trust {
    gap: 10px 18px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand-col {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .legal-container {
    padding: 32px 16px 60px;
  }
  .legal-article {
    padding: 24px 18px;
  }
  .legal-table {
    display: block;
    overflow-x: auto;
  }
}
