/* ==========================================================================
   Prosbro Design System - Modern Core Stylesheet
   Matching contractor-ui & client-portal design language & energy
   Tokens: Slate palette, Royal Sapphire Blue accent, crisp 1px borders,
           modern ambient glow, smooth transitions, and high-energy interactive components
   ========================================================================== */

:root {
  /* Fonts - Matching contractor-ui */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Color Palette (Clean Slate + Sapphire Blue) */
  --color-bg: #f8fafc;            /* slate-50 */
  --color-surface: #ffffff;       /* white */
  --color-surface-hover: #f8fafc; /* slate-50 */
  
  --color-text-main: #0f172a;     /* slate-900 */
  --color-text-muted: #64748b;    /* slate-500 */
  --color-text-subtle: #94a3b8;   /* slate-400 */
  --color-text-inverse: #ffffff;

  /* Primary Accent: Trustworthy Royal/Sapphire Blue (matches contractor-ui oklch(0.48 0.19 255)) */
  --color-primary: #2563eb;       /* blue-600 */
  --color-primary-hover: #1d4ed8; /* blue-700 */
  --color-primary-active: #1e40af;/* blue-800 */
  --color-primary-subtle: #eff6ff;/* blue-50 */
  --color-primary-border: #bfdbfe;/* blue-200 */

  /* Neutral Slate Elements */
  --color-secondary: #f1f5f9;     /* slate-100 */
  --color-secondary-hover: #e2e8f0;/* slate-200 */
  --color-secondary-text: #1e293b;/* slate-800 */

  /* Semantic Borders & Dividers */
  --color-border: #e2e8f0;        /* slate-200 */
  --color-border-subtle: #f1f5f9; /* slate-100 */
  --color-border-hover: #cbd5e1;  /* slate-300 */

  /* Semantic Accents */
  --color-success: #16a34a;       /* green-600 */
  --color-success-bg: #f0fdf4;    /* green-50 */
  --color-success-border: #bbf7d0;/* green-200 */
  
  --color-warning: #f59e0b;       /* amber-500 */
  --color-warning-bg: #fffbeb;    /* amber-50 */
  --color-warning-border: #fde68a;/* amber-200 */

  --color-danger: #ef4444;        /* red-500 */
  --color-danger-bg: #fef2f2;     /* red-50 */
  --color-danger-border: #fecaca; /* red-200 */

  /* Spacing & Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Ambient Multi-layer Shadows & Glows */
  --shadow-2xs: 0 1px 2px 0 rgb(15 23 42 / 0.04);
  --shadow-xs: 0 1px 2px 0 rgb(15 23 42 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(15 23 42 / 0.08), 0 1px 2px -1px rgb(15 23 42 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.07), 0 2px 4px -2px rgb(15 23 42 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.08), 0 4px 6px -4px rgb(15 23 42 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.10), 0 8px 10px -6px rgb(15 23 42 / 0.04);
  --glow-primary: 0 0 24px rgba(37, 99, 235, 0.22);

  /* Layout */
  --container-max-width: 1240px;
  --header-height: 72px;
}

/* ==========================================================================
   CSS Reset & Base Rules
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

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

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

/* ==========================================================================
   Layout Containers & Atmosphere
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.main-content {
  flex: 1 0 auto;
}

/* Ambient Radial Mesh Background */
.hero-section, .subpage-hero {
  position: relative;
  background: radial-gradient(120% 70% at 50% -10%, rgba(37, 99, 235, 0.08) 0%, rgba(248, 250, 252, 0) 65%), #f8fafc;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.hero-section::before, .subpage-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent);
}

/* ==========================================================================
   Typography System
   ========================================================================== */
.display-title {
  font-size: clamp(2.25rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--color-text-main);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--color-text-main);
}

.subsection-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--color-text-main);
}

.lead-text {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.body-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #475569;
}

.small-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Component: Modern High-Energy Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  text-align: center;
  user-select: none;
  cursor: pointer;
  outline: none;
  position: relative;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Primary Button with Subtle Gradient & Inner Glow Highlight */
.btn-primary {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid #1d4ed8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 3px rgba(37, 99, 235, 0.25), 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  border-color: #2563eb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 3px 8px rgba(37, 99, 235, 0.35), 0 8px 24px rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-secondary-text);
  border: 1px solid transparent;
}

.btn-secondary:hover {
  background-color: var(--color-secondary-hover);
  color: var(--color-text-main);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--color-text-main);
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-outline:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--color-text-muted);
  background-color: transparent;
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--color-text-main);
  background-color: rgba(241, 245, 249, 0.8);
}

.btn-lg {
  font-size: 1rem;
  padding: 0.8125rem 1.625rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
}

/* Card Action Button (Modern Smooth Pill matching contractor portal aesthetic) */
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.16);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
  text-decoration: none;
  user-select: none;
}

.btn-action-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-action-icon {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.btn-action:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24);
  transform: translateY(-1px);
}

.btn-action:hover .btn-action-arrow {
  color: #ffffff;
  transform: translateX(3px);
}

.card:hover .btn-action-arrow {
  transform: translateX(2px);
}

/* ==========================================================================
   Component: Modern Badges & Pills
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.015em;
  border: 1px solid transparent;
}

.badge-primary {
  background-color: var(--color-primary-subtle);
  color: var(--color-primary);
  border-color: var(--color-primary-border);
}

.badge-slate {
  background-color: var(--color-secondary);
  color: var(--color-text-main);
  border-color: var(--color-border);
}

.badge-success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border-color: var(--color-success-border);
}

/* Interactive Pill Badge with Status Dot */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(37, 99, 235, 0.06);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.05);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #2563eb;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.7);
}

/* ==========================================================================
   Component: Modern Interactive Cards
   ========================================================================== */
.card {
  background-color: var(--color-surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  padding: 1.85rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.card:hover {
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.card-feature {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.04) 100%);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.06);
}

/* ==========================================================================
   Component: Header / Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.nav-brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-desktop-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 900px) {
  .nav-desktop-links {
    display: none;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all 0.15s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text-main);
  background-color: rgba(241, 245, 249, 0.6);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-mobile-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--color-text-main);
}

@media (max-width: 900px) {
  .nav-mobile-toggle {
    display: inline-flex;
  }
  .nav-actions .btn-primary {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 99;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-drawer .nav-link {
  font-size: 1.125rem;
  font-weight: 600;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-main);
}

.mobile-nav-drawer .mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ==========================================================================
   Component: Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 4.5rem 0 2.5rem;
  margin-top: 5rem;
}

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

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 320px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.footer-social-link img {
  width: 28px;
  height: 28px;
  display: block;
}

.footer-social-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color 0.15s ease-in-out;
}

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

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

.footer-bottom-text {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
}

/* ==========================================================================
   Hero & Subpage Hero Sections
   ========================================================================== */
.hero-section {
  padding: 5.5rem 0 4.5rem;
  text-align: center;
}

.subpage-hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero-content .display-title {
  margin-bottom: 1.5rem;
}

.hero-content .lead-text {
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.hero-proof-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.hero-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-preview-stage {
  margin-top: 4rem;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: var(--color-surface);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.08);
  overflow: hidden;
  position: relative;
}

.subpage-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

/* ==========================================================================
   Grid & Section Utilities
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 3.5rem;
}

.section-header .section-title {
  margin-bottom: 0.75rem;
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 900px) {
  .grid-3-col {
    grid-template-columns: 1fr;
  }
}

.grid-4-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-4-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-4-col {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Comparison Pages UI (Competitor vs Prosbro)
   ========================================================================== */
.compare-verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

@media (max-width: 768px) {
  .compare-verdict-grid {
    grid-template-columns: 1fr;
  }
}

.compare-verdict-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.compare-verdict-card--prosbro {
  border-color: rgba(37, 99, 235, 0.3);
  background: linear-gradient(145deg, #ffffff 0%, rgba(37, 99, 235, 0.04) 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.compare-verdict-card--prosbro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
}

.compare-verdict-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compare-verdict-card--prosbro .compare-verdict-label {
  color: var(--color-primary);
}

.compare-verdict-card--competitor .compare-verdict-label {
  color: var(--color-text-muted);
}

.compare-verdict-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-main);
  font-weight: 500;
}

/* Master Comparison Matrix Table */
.compare-matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.compare-matrix-table th, .compare-matrix-table td {
  padding: 1.125rem 1.35rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.compare-matrix-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--color-text-main);
}

.compare-matrix-table tr:last-child td {
  border-bottom: none;
}

.compare-matrix-table td.col-prosbro {
  background: rgba(37, 99, 235, 0.035);
  font-weight: 600;
  color: var(--color-text-main);
  border-left: 1px solid rgba(37, 99, 235, 0.12);
  border-right: 1px solid rgba(37, 99, 235, 0.12);
}

.compare-matrix-table th.col-prosbro {
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  border-left: 1px solid rgba(37, 99, 235, 0.2);
  border-right: 1px solid rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   Pricing Page UI
   ========================================================================== */
.pricing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.pricing-toggle-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.pricing-toggle-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-2xl);
  padding: 2.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.plan-card:hover {
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.09);
  transform: translateY(-3px);
}

.plan-card-featured {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.14);
}

.plan-price-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-price-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 1.75rem 0 2.25rem;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.5;
}

.plan-feature-check {
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   FAQ Accordions
   ========================================================================== */
.faq-wrap {
  margin: 4rem 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.625rem;
  transition: all 0.2s ease-in-out;
}

.faq-item[open] {
  border-color: var(--color-primary-border);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.06);
}

.faq-summary {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.faq-summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease;
}

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

.faq-answer {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-secondary-text);
}

/* ==========================================================================
   Hub Cards & Spoke Navigation Links
   ========================================================================== */
.hub-spoke-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
}

.hub-spoke-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.09), 0 0 0 1px rgba(37, 99, 235, 0.15);
  transform: translateY(-3px);
}

.hub-spoke-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 0.625rem;
}

/* ==========================================================================
   Legal Document Layout (Privacy, Terms, Meta Data Deletion)
   ========================================================================== */
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 3rem;
  padding: 4rem 0 6rem;
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
}

.legal-toc-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-toc-list a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color 0.15s ease-in-out;
}

.legal-toc-list a:hover {
  color: var(--color-primary);
}

.legal-content {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .legal-content {
    padding: 1.5rem;
  }
}

.legal-intro {
  padding: 1.25rem 1.5rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-secondary-text);
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

.legal-section p, .legal-section li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1rem;
}

.legal-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

/* ==========================================================================
   Form Controls (Contact, Search, Deletion lookup)
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text-main);
  transition: all 0.15s ease-in-out;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Form Validation & Error States */
.form-input.is-invalid, .form-textarea.is-invalid {
  border-color: var(--color-danger);
  background-color: #fffaf0;
}

.form-input.is-invalid:focus, .form-textarea.is-invalid:focus {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-error-msg {
  display: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-danger);
  margin-top: 0.35rem;
}

.form-error-msg.visible {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  animation: fadeIn 0.15s ease-in;
}

/* Button Loading Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}

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

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

/* Integrations Hub Specific Styles */
.integration-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-pill {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.filter-pill:hover {
  background: var(--color-secondary);
  color: var(--color-text-main);
}

.filter-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.integration-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.integration-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.integration-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.integration-card:hover .integration-icon-wrap {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.integration-icon-img {
  width: 100%;
  height: 100%;
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.integration-card:hover .integration-icon-img {
  transform: scale(1.05);
}

/* Utility Classes */
.w-full {
  width: 100% !important;
  justify-content: center !important;
}

.text-center {
  text-align: center !important;
}
