/**
 * Flomenco Accessibility Styles
 * WCAG 2.1 AA Compliant
 * 
 * This file provides global accessibility enhancements including:
 * - Keyboard focus styles
 * - Skip-to-content link
 * - Minimum touch target sizes
 * - High contrast mode support
 * - Reduced motion support
 */

/* ==========================================================================
   Keyboard Focus Styles
   ========================================================================== */

*:focus-visible {
  outline: 3px solid #0066CC !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #0066CC !important;
  outline-offset: 2px !important;
}

/* Remove default focus outline when focus-visible is supported */
*:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================================================
   Skip to Content Link
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #000000;
  color: #ffffff;
  padding: 12px 24px;
  text-decoration: none;
  z-index: 10000;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  transition: top 0.2s ease-in-out;
  /* Ensure minimum touch target size per WCAG */
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid #0066CC;
  outline-offset: 2px;
}

/* ==========================================================================
   Minimum Touch Target Sizes (48x48px minimum per WCAG 2.5.5)
   ========================================================================== */

/* 
 * Note: These styles use !important sparingly to override inline styles
 * from the Framer export. Apply to interactive elements that need sizing fixes.
 */

.a11y-touch-target {
  min-height: 48px !important;
  min-width: 48px !important;
}

/* Ensure clickable areas have adequate spacing */
.a11y-touch-target-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 12px;
}

/* Feature Page Touch Target Fixes */
/* Ensure all CTA buttons meet minimum size */
.flo-8eoDS,
.flo-EyjqH,
.flo-1a30tc5,
.flo-pnkc64,
.flo-5dtcs0 {
  min-height: 48px !important;
  min-width: 48px !important;
  padding: 12px 24px !important;
}

/* Ensure navigation links meet minimum size */
.flo-1xhY1,
.flo-921gc6,
.flo-30f8dm,
.flo-18nb5nl {
  min-height: 48px !important;
  min-width: 48px !important;
  padding: 12px 16px !important;
}

/* Ensure social media icon links meet minimum size */
.flo-LqjZ4,
.flo-rzzjf,
.flo-fsGEk,
.flo-1m48svn,
.flo-1iqpsyp,
.flo-150z5x0 {
  min-height: 48px !important;
  min-width: 48px !important;
  padding: 16px !important;
}

/* Ensure video play buttons meet minimum size */
.flo-um3Z4,
.flo-1dof6p7,
button[aria-label*="Play"],
button[aria-label*="play"] {
  min-height: 48px !important;
  min-width: 48px !important;
  padding: 12px !important;
}

/* Ensure form inputs meet minimum size */
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  min-height: 48px !important;
  padding: 12px 16px !important;
}

/* ==========================================================================
   High Contrast Mode Support
   ========================================================================== */

@media (prefers-contrast: high) {
  *:focus-visible {
    outline: 3px solid currentColor !important;
    outline-offset: 3px;
  }
  
  a {
    text-decoration: underline !important;
  }
  
  button,
  [role="button"] {
    border: 2px solid currentColor !important;
  }
}

/* Forced colors mode (Windows High Contrast) */
@media (forced-colors: active) {
  *:focus-visible {
    outline: 3px solid CanvasText !important;
  }
  
  .skip-link {
    background: Canvas;
    color: CanvasText;
    border: 2px solid CanvasText;
  }
}

/* ==========================================================================
   Reduced Motion Support
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .skip-link {
    transition: none;
  }
}

/* ==========================================================================
   Screen Reader Only Content
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Make sr-only content visible when focused (for skip links etc.) */
.sr-only-focusable:focus,
.sr-only-focusable:active {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: inherit;
}

/* ==========================================================================
   Form Accessibility Enhancements
   ========================================================================== */

/* Ensure form controls have visible labels */
input:not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
textarea,
select {
  /* Minimum touch target height */
  min-height: 44px;
}

/* Error state styling */
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #D32F2F;
  box-shadow: 0 0 0 1px #D32F2F;
}

/* Required field indicator */
label[data-required]::after {
  content: " *";
  color: #D32F2F;
}

/* ==========================================================================
   Link Accessibility
   ========================================================================== */

/* Ensure links are distinguishable from regular text */
a:not([class]) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:not([class]):hover {
  text-decoration-thickness: 2px;
}

/* ==========================================================================
   ARIA Live Region Styling
   ========================================================================== */

[aria-live="polite"],
[aria-live="assertive"],
[role="alert"],
[role="status"] {
  /* Ensure live regions are not visually hidden by default */
}

/* ==========================================================================
   Print Accessibility
   ========================================================================== */

@media print {
  .skip-link {
    display: none;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
  
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }
}

/* ==========================================================================
   CRO (Conversion Rate Optimization) Sections
   Homepage conversion-focused sections and components
   ========================================================================== */

/* Hero Section */
.cro-hero {
  padding: 100px 24px 60px;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  z-index: 1;
}

.cro-hero__container {
  max-width: 1200px;
  margin: 0 auto;
}

.cro-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(53, 111, 246, 0.1);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: #356ff6;
  margin-bottom: 24px;
}

.cro-hero__headline {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: #111827;
  margin: 0 0 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.cro-hero__subheadline {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cro-hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 100;
}

.cro-hero__trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  color: #6b7280;
  font-size: 14px;
}

.cro-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cro-hero__trust-item svg {
  width: 16px;
  height: 16px;
  color: #10b981;
}

/* ==========================================================================
   Dark Theme - Hero Section
   ========================================================================== */

.dark-theme .cro-hero {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.dark-theme .cro-hero__eyebrow {
  background: rgba(53, 111, 246, 0.2);
  color: #60a5fa;
}

.dark-theme .cro-hero__headline {
  color: #f1f5f9;
}

.dark-theme .cro-hero__subheadline {
  color: #cbd5e1;
}

.dark-theme .cro-hero__trust-signals {
  color: #94a3b8;
}

.dark-theme .cro-hero__trust-item svg {
  color: #34d399;
}

/* CTA Buttons */
.cro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  min-height: 48px;
}

.cro-btn--primary {
  background: #356ff6;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(53, 111, 246, 0.3);
}

.cro-btn--primary:hover {
  background: #2858d4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(53, 111, 246, 0.4);
}

.cro-btn--secondary {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.cro-btn--secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* ==========================================================================
   Dark Theme - CTA Buttons
   ========================================================================== */

.dark-theme .cro-btn--secondary {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #475569;
}

.dark-theme .cro-btn--secondary:hover {
  background: #334155;
  border-color: #64748b;
}

/* Social Proof Bar */
.cro-social-proof {
  padding: 40px 24px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.cro-social-proof__container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.cro-social-proof__text {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.cro-social-proof__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: center;
}

.cro-social-proof__metric {
  text-align: center;
}

.cro-social-proof__metric-value {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.cro-social-proof__metric-label {
  font-size: 14px;
  color: #6b7280;
}

/* ==========================================================================
   Dark Theme - Social Proof Section
   ========================================================================== */

.dark-theme .cro-social-proof {
  background: #1e293b;
  border-top-color: #334155;
  border-bottom-color: #334155;
}

.dark-theme .cro-social-proof__text {
  color: #94a3b8;
}

.dark-theme .cro-social-proof__metric-value {
  color: #f1f5f9;
}

.dark-theme .cro-social-proof__metric-label {
  color: #94a3b8;
}

/* Problem Section */
.cro-problem {
  padding: 80px 24px;
  background: #f9fafb;
}

.cro-problem__container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cro-problem__headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #111827;
  margin: 0 0 32px;
}

.cro-problem__body {
  font-size: 18px;
  line-height: 1.8;
  color: #4b5563;
  margin: 0 0 24px;
}

.cro-problem__hook {
  font-size: 20px;
  font-weight: 600;
  color: #356ff6;
  font-style: italic;
}

/* ==========================================================================
   Dark Theme - Problem Section
   ========================================================================== */

.dark-theme .cro-problem {
  background: #1e293b;
}

.dark-theme .cro-problem__headline {
  color: #f1f5f9;
}

.dark-theme .cro-problem__body {
  color: #cbd5e1;
}

.dark-theme .cro-problem__hook {
  color: #60a5fa;
}

/* Solution Overview Section */
.cro-solution {
  padding: 80px 24px;
  background: #ffffff;
}

.cro-solution__container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.cro-solution__headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px;
}

.cro-solution__subheadline {
  font-size: 18px;
  color: #4b5563;
  margin: 0 0 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cro-solution__pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.cro-solution__pillar {
  padding: 32px;
  background: #f9fafb;
  border-radius: 16px;
  text-align: left;
}

.cro-solution__pillar-icon {
  width: 48px;
  height: 48px;
  background: rgba(53, 111, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.cro-solution__pillar-icon svg {
  width: 24px;
  height: 24px;
  color: #356ff6;
}

.cro-solution__pillar-number {
  width: 48px;
  height: 48px;
  background: #356ff6;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cro-solution__pillar-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px;
}

.cro-solution__pillar-desc {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

/* ==========================================================================
   Dark Theme - Solution Section
   ========================================================================== */

.dark-theme .cro-solution {
  background: #0f172a;
}

.dark-theme .cro-solution__headline {
  color: #f1f5f9;
}

.dark-theme .cro-solution__subheadline {
  color: #cbd5e1;
}

.dark-theme .cro-solution__pillar {
  background: #1e293b;
}

.dark-theme .cro-solution__pillar-icon {
  background: rgba(53, 111, 246, 0.2);
}

.dark-theme .cro-solution__pillar-icon svg {
  color: #60a5fa;
}

.dark-theme .cro-solution__pillar-number {
  background: var(--color-primary-blue);
}

.dark-theme .cro-solution__pillar-title {
  color: #f1f5f9;
}

.dark-theme .cro-solution__pillar-desc {
  color: #94a3b8;
}

/* How It Works Section */
.cro-how-it-works {
  padding: 80px 24px;
  background: #f9fafb;
}

.cro-how-it-works__container {
  max-width: 1000px;
  margin: 0 auto;
}

.cro-how-it-works__headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #111827;
  margin: 0 0 48px;
  text-align: center;
}

.cro-how-it-works__steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cro-how-it-works__step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cro-how-it-works__step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #356ff6;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.cro-how-it-works__step-content {
  flex: 1;
}

.cro-how-it-works__step-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px;
}

.cro-how-it-works__step-desc {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

.cro-how-it-works__cta {
  text-align: center;
  margin-top: 48px;
}

/* ==========================================================================
   Dark Theme - How It Works Section
   ========================================================================== */

.dark-theme .cro-how-it-works {
  background: #1e293b;
}

.dark-theme .cro-how-it-works__headline {
  color: #f1f5f9;
}

.dark-theme .cro-how-it-works__step {
  background: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dark-theme .cro-how-it-works__step-number {
  background: var(--color-primary-blue);
}

.dark-theme .cro-how-it-works__step-title {
  color: #f1f5f9;
}

.dark-theme .cro-how-it-works__step-desc {
  color: #94a3b8;
}

/* Benefits Section */
.cro-benefits {
  padding: 80px 24px;
  background: #ffffff;
}

.cro-benefits__container {
  max-width: 1200px;
  margin: 0 auto;
}

.cro-benefits__headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #111827;
  margin: 0 0 48px;
  text-align: center;
}

.cro-benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.cro-benefits__item {
  padding: 32px;
  background: #f9fafb;
  border-radius: 16px;
}

.cro-benefits__item-icon {
  width: 56px;
  height: 56px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cro-benefits__item-icon svg {
  width: 28px;
  height: 28px;
  color: #10b981;
}

.cro-benefits__item-title {
  font-size: 22px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 12px;
}

.cro-benefits__item-desc {
  font-size: 16px;
  color: #6b7280;
  margin: 0 0 16px;
  line-height: 1.6;
}

.cro-benefits__item-proof {
  font-size: 14px;
  color: #356ff6;
  font-weight: 500;
  padding: 8px 12px;
  background: rgba(53, 111, 246, 0.1);
  border-radius: 6px;
  display: inline-block;
}

/* ==========================================================================
   Dark Theme - Benefits Section
   ========================================================================== */

.dark-theme .cro-benefits {
  background: #0f172a;
}

.dark-theme .cro-benefits__headline {
  color: #f1f5f9;
}

.dark-theme .cro-benefits__item {
  background: #1e293b;
}

.dark-theme .cro-benefits__item-icon {
  background: rgba(52, 211, 153, 0.2);
}

.dark-theme .cro-benefits__item-icon svg {
  color: #34d399;
}

.dark-theme .cro-benefits__item-title {
  color: #f1f5f9;
}

.dark-theme .cro-benefits__item-desc {
  color: #94a3b8;
}

.dark-theme .cro-benefits__item-proof {
  color: #60a5fa;
  background: rgba(53, 111, 246, 0.2);
}

/* Testimonial Section */
.cro-testimonials {
  padding: 80px 24px;
  background: #f9fafb;
}

.cro-testimonials__container {
  max-width: 1200px;
  margin: 0 auto;
}

.cro-testimonials__headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #111827;
  margin: 0 0 48px;
  text-align: center;
}

.cro-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.cro-testimonial {
  padding: 32px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cro-testimonial__quote {
  font-size: 18px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 24px;
  font-style: italic;
}

.cro-testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cro-testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #4b5563;
}

.cro-testimonial__info {
  flex: 1;
}

.cro-testimonial__name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.cro-testimonial__role {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* ==========================================================================
   Dark Theme - Testimonials Section
   ========================================================================== */

.dark-theme .cro-testimonials {
  background: #1e293b;
}

.dark-theme .cro-testimonials__headline {
  color: #f1f5f9;
}

.dark-theme .cro-testimonial {
  background: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dark-theme .cro-testimonial__quote {
  color: #cbd5e1;
}

.dark-theme .cro-testimonial__avatar {
  background: #334155;
  color: #cbd5e1;
}

.dark-theme .cro-testimonial__name {
  color: #f1f5f9;
}

.dark-theme .cro-testimonial__role {
  color: #94a3b8;
}

/* Final CTA Section */
.cro-final-cta {
  padding: 100px 24px;
  background: linear-gradient(135deg, #356ff6 0%, #2858d4 100%);
  text-align: center;
  color: #ffffff;
}

.cro-final-cta__container {
  max-width: 800px;
  margin: 0 auto;
}

.cro-final-cta__headline {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin: 0 0 16px;
  color: #ffffff;
}

.cro-final-cta__subheadline {
  font-size: 18px;
  margin: 0 0 40px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cro-final-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.cro-final-cta .cro-btn--primary {
  background: #ffffff;
  color: #356ff6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.cro-final-cta .cro-btn--primary:hover {
  background: #f0f0f0;
}

.cro-final-cta .cro-btn--secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.cro-final-cta .cro-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.cro-final-cta__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  font-size: 14px;
  opacity: 0.85;
}

.cro-final-cta__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cro-final-cta__trust-item svg {
  width: 16px;
  height: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cro-hero {
    /* Increased top padding to clear fixed header (approx 70px) + social bar + breathing room */
    padding: 90px 16px 40px;
  }
  
  .cro-hero__cta-group {
    flex-direction: column;
    align-items: center;
    /* Ensure CTAs are clickable and not obscured on mobile */
    position: relative;
    z-index: 100;
    margin-top: 24px;
    margin-bottom: 24px;
  }
  
  .cro-btn {
    width: 100%;
    max-width: 320px;
    /* Ensure buttons are above any overlapping elements */
    position: relative;
    z-index: 100;
  }
  
  .cro-social-proof__metrics {
    gap: 24px;
  }
  
  .cro-how-it-works__step {
    flex-direction: column;
    text-align: center;
  }
  
  .cro-testimonials__grid {
    grid-template-columns: 1fr;
  }
}

/* Animation for scroll reveal (if JS is available) */
.cro-animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cro-animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   CRO Navigation Header
   ========================================================================== */

.cro-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 0;
}

.cro-header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cro-header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #030712;
  font-weight: 600;
  font-size: 1.125rem;
  /* Ensure minimum touch target size per WCAG */
  min-height: 44px;
  min-width: 44px;
  padding: 6px;
}

.cro-header__logo svg,
.cro-header__logo-icon {
  width: 32px;
  height: 32px;
}

.cro-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cro-header__nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cro-header__nav-link {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cro-header__nav-link:hover {
  color: var(--color-primary-blue);
}

.cro-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1rem;
  background: var(--color-primary-blue);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.cro-header__cta:hover {
  background: #0047c5;
}

.cro-header__mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 810px) {
  /* Mobile nav container - use off-canvas transform instead of display:none
     This ensures links maintain proper dimensions for touch target compliance
     while being visually hidden when menu is closed */
  .cro-header__nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Off-canvas hiding - slide to the right per comment instructions */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease-out, visibility 0.3s ease-out;
  }
  
  .cro-header__nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .cro-header__mobile-toggle {
    display: block;
    /* Ensure touch target compliance */
    min-height: 48px;
    min-width: 48px;
    padding: 12px;
  }
  
  /* Mobile nav touch target compliance - WCAG 2.5.5 */
  .cro-header__nav-link {
    min-height: 48px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    font-size: 1.125rem;
  }
  
  /* CTA button in mobile nav */
  .cro-header__cta {
    min-height: 48px;
    padding: 12px 24px;
    margin-top: 1.5rem;
  }
  
  /* When mobile menu is open/active */
  .cro-header__nav.active {
    transform: translateX(0);
    visibility: visible;
  }
  
  /* Mobile toggle button when menu is open */
  .cro-header__mobile-toggle[aria-expanded="true"] {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
  }
}

/* ==========================================================================
   Dark Theme - CRO Header
   ========================================================================== */

.dark-theme .cro-header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: #334155;
}

.dark-theme .cro-header__logo {
  color: #f1f5f9;
}

.dark-theme .cro-header__nav-link {
  color: #cbd5e1;
}

.dark-theme .cro-header__nav-link:hover {
  color: #60a5fa;
}

.dark-theme .cro-header__cta {
  background: var(--color-primary-blue);
}

.dark-theme .cro-header__cta:hover {
  background: var(--color-primary-blue-dark);
}

/* Dark theme mobile menu */
@media (max-width: 810px) {
  .dark-theme .cro-header__nav {
    background: rgba(15, 23, 42, 0.98);
  }
  
  .dark-theme .cro-header__mobile-toggle svg {
    color: #f1f5f9;
  }
}

/* ==========================================================================
   Mobile CTA Visibility Fixes
   ========================================================================== */

/* Ensure hero CTAs are never obscured on mobile */
.cro-hero,
.cro-hero__container {
  overflow: visible;
  position: relative;
}

.cro-hero__cta-group {
  position: relative;
  z-index: 100;
  overflow: visible;
}

.cro-hero__cta-group .cro-btn,
.cro-hero__cta-group a[href*="sign-up"],
main a[href*="sign-up"] {
  position: relative;
  z-index: 100;
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .cro-hero__cta-group {
    margin-top: 24px;
    margin-bottom: 24px;
  }
  
  .cro-hero__cta-group .cro-btn,
  main a[href*="sign-up"] {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    min-height: 48px;
    /* Ensure buttons are never obscured by ensuring they're in a stacking context */
    isolation: isolate;
  }
  
  /* Ensure the hero container and all sign-up links are above any potential overlays */
  .cro-hero,
  .cro-hero__container {
    isolation: isolate;
    z-index: 10;
  }
}

/* ==========================================================================
   Global Mobile Overflow Fix
   ========================================================================== */

/* Prevent horizontal scrollbar on mobile */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 809.98px) {
  /* Ensure no element causes horizontal overflow */
  main,
  section,
  .container,
  .cro-hero,
  .cro-section,
  footer {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Fix any potential wide elements */
  img, video, iframe, svg {
    max-width: 100%;
    height: auto;
  }
  
  /* Prevent horizontal scrolling from padding/margins */
  * {
    box-sizing: border-box;
  }
}

/* ==========================================================================
   CRO Social Proof Enhancements (Logos & Testimonial)
   ========================================================================== */

.cro-social-proof__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 1.5rem 0;
}

.cro-social-proof__logo {
  transition: opacity 0.2s ease;
}

.cro-social-proof__logo:hover {
  opacity: 1;
}

/* Logo image styles */
.cro-social-proof__logo img {
  max-width: 120px;
  height: auto;
  filter: grayscale(100%) opacity(0.6);
  transition: filter 0.2s ease;
}

.cro-social-proof__logo:hover img {
  filter: grayscale(0%) opacity(1);
}

/* Responsive logo sizing */
@media (max-width: 640px) {
  .cro-social-proof__logo img {
    max-width: 90px;
  }
}

/* Deprecated: text-based logo styling (for backwards compatibility) */
.cro-social-proof__logo-text {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.cro-social-proof__testimonial {
  max-width: 700px;
  margin: 2rem auto;
  text-align: center;
  padding: 1.5rem;
  background: rgba(53, 111, 246, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--color-primary-blue);
}

.cro-social-proof__quote {
  font-size: 1.125rem;
  font-style: italic;
  color: #374151;
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.cro-social-proof__author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cro-social-proof__author-name {
  font-weight: 600;
  color: #030712;
  font-size: 0.9375rem;
}

.cro-social-proof__author-role {
  font-size: 0.875rem;
  color: #6b7280;
}

/* ==========================================================================
   Dark Theme - Social Proof Enhancements
   ========================================================================== */

.dark-theme .cro-social-proof__logo img {
  filter: grayscale(100%) opacity(0.7) brightness(1.5);
}

.dark-theme .cro-social-proof__logo:hover img {
  filter: grayscale(0%) opacity(1) brightness(1);
}

.dark-theme .cro-social-proof__testimonial {
  background: rgba(53, 111, 246, 0.1);
  border-left-color: var(--color-primary-blue);
}

.dark-theme .cro-social-proof__quote {
  color: #cbd5e1;
}

.dark-theme .cro-social-proof__author-name {
  color: #f1f5f9;
}

.dark-theme .cro-social-proof__author-role {
  color: #94a3b8;
}

.dark-theme .cro-social-proof__logo-text {
  color: #94a3b8;
}

/* ==========================================================================
   CRO Footer
   ========================================================================== */

.cro-footer {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.cro-footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cro-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.cro-footer__brand {
  max-width: 300px;
}

.cro-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.cro-footer__logo svg {
  width: 40px;
  height: 40px;
}

.cro-footer__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #030712;
}

.cro-footer__tagline {
  color: #6b7280;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.cro-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cro-footer__nav-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cro-footer__nav-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #030712;
  margin: 0;
}

.cro-footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cro-footer__nav-list a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.cro-footer__nav-list a:hover {
  color: var(--color-primary-blue);
}

.cro-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.cro-footer__copyright {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.cro-footer__social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cro-footer__social a {
  color: #6b7280;
  transition: color 0.2s ease;
}

.cro-footer__social a:hover {
  color: var(--color-primary-blue);
}

/* ==========================================================================
   Dark Theme - CRO Footer
   ========================================================================== */

.dark-theme .cro-footer {
  background: #1e293b;
  border-top-color: #334155;
}

.dark-theme .cro-footer__logo-text {
  color: #f1f5f9;
}

.dark-theme .cro-footer__tagline {
  color: #94a3b8;
}

.dark-theme .cro-footer__nav-title {
  color: #f1f5f9;
}

.dark-theme .cro-footer__nav-list a {
  color: #94a3b8;
}

.dark-theme .cro-footer__nav-list a:hover {
  color: #60a5fa;
}

.dark-theme .cro-footer__bottom {
  border-top-color: #334155;
}

.dark-theme .cro-footer__copyright {
  color: #64748b;
}

.dark-theme .cro-footer__social a {
  color: #94a3b8;
}

.dark-theme .cro-footer__social a:hover {
  color: #60a5fa;
}

/* Dark theme footer email capture */
.dark-theme .cro-footer__email-capture h3 {
  color: #f1f5f9;
}

.dark-theme .cro-footer__email-capture p {
  color: #94a3b8;
}

/* Footer Email Capture Styles */
.cro-footer__email-capture {
  /* Positioning within footer grid */
}

.cro-footer__email-capture h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #030712;
  margin: 0 0 0.5rem 0;
}

.cro-footer__email-capture p {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.cro-footer__email-capture .email-capture-form {
  max-width: 100%;
}

/* Pricing Page Email Capture Section Styles */
.pricing-email-capture-section {
  width: 100%;
  max-width: 600px;
  margin: 60px auto;
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgb(249, 250, 251) 0%, rgb(243, 244, 246) 100%);
  border-radius: 24px;
}

.pricing-email-capture__title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(17, 24, 39);
  margin-bottom: 12px;
}

.pricing-email-capture__description {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgb(55, 65, 81);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pricing-email-capture-section .email-capture-form {
  max-width: 400px;
  margin: 0 auto;
}

.pricing-email-capture-section .form-group {
  margin-bottom: 1rem;
}

.pricing-email-capture-section .form-group input[type="email"],
.pricing-email-capture-section .form-group input[type="text"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgb(209, 213, 219);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-email-capture-section .form-group input[type="email"]:focus,
.pricing-email-capture-section .form-group input[type="text"]:focus {
  border-color: var(--color-primary-blue);
  box-shadow: 0 0 0 3px rgba(53, 111, 246, 0.1);
  outline: none;
}

.pricing-email-capture-section .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.pricing-email-capture-section .checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
  cursor: pointer;
}

.pricing-email-capture-section .checkbox-group label {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(75, 85, 99);
  cursor: pointer;
}

.pricing-email-capture-section .checkbox-group label a {
  color: rgb(59, 130, 246);
  text-decoration: underline;
}

.pricing-email-capture-section .form-message {
  display: none;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.pricing-email-capture-section .form-message.error-message {
  background-color: rgb(254, 226, 226);
  color: rgb(153, 27, 27);
  border: 1px solid rgb(252, 165, 165);
}

.pricing-email-capture-section .form-message.success-message {
  background-color: rgb(209, 250, 229);
  color: rgb(6, 95, 70);
  border: 1px solid rgb(110, 231, 183);
}

.pricing-email-capture-section .btn-primary {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, rgb(59, 130, 246) 0%, rgb(37, 99, 235) 100%);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(53, 111, 246, 0.3);
}

.pricing-email-capture-section .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(53, 111, 246, 0.4);
}

.pricing-email-capture__disclaimer {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgb(107, 114, 128);
  margin-top: 1rem;
}

/* ==========================================================================
   Dark Theme - Pricing Email Capture Section
   ========================================================================== */

.dark-theme .pricing-email-capture-section {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.dark-theme .pricing-email-capture__title {
  color: #f1f5f9;
}

.dark-theme .pricing-email-capture__description {
  color: #cbd5e1;
}

.dark-theme .pricing-email-capture-section .form-group input[type="email"],
.dark-theme .pricing-email-capture-section .form-group input[type="text"] {
  background-color: #0f172a;
  border-color: #475569;
  color: #f1f5f9;
}

.dark-theme .pricing-email-capture-section .form-group input[type="email"]::placeholder,
.dark-theme .pricing-email-capture-section .form-group input[type="text"]::placeholder {
  color: #64748b;
}

.dark-theme .pricing-email-capture-section .form-group input[type="email"]:focus,
.dark-theme .pricing-email-capture-section .form-group input[type="text"]:focus {
  border-color: var(--color-primary-blue);
  box-shadow: 0 0 0 3px rgba(53, 111, 246, 0.3);
}

.dark-theme .pricing-email-capture-section .checkbox-group label {
  color: #94a3b8;
}

.dark-theme .pricing-email-capture-section .checkbox-group label a {
  color: #60a5fa;
}

.dark-theme .pricing-email-capture-section .form-message.error-message {
  background-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.3);
}

.dark-theme .pricing-email-capture-section .form-message.success-message {
  background-color: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.3);
}

.dark-theme .pricing-email-capture__disclaimer {
  color: #64748b;
}

@media (max-width: 809.98px) {
  .cro-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cro-footer__nav {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cro-footer__email-capture {
    grid-column: 1 / -1;
  }
  
  .cro-footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .cro-social-proof__logos {
    gap: 1.5rem;
  }
}

/* ==========================================================================
   Framer SSR Visibility Fixes
   ========================================================================== */

/**
 * Framer outputs pages with opacity: 0 and transforms for animation purposes.
 * These styles ensure critical content is visible immediately without JS.
 * This is essential for:
 * - Visual validation tests
 * - Users with JS disabled
 * - SEO crawlers
 * - Accessibility
 */

/* Reset opacity on SSR variant containers - ensure all content is visible */
.flo-sguMB .ssr-variant,
.flo-sguMB .ssr-variant > *,
.flo-sguMB [class*="container-"] {
  opacity: 1 !important;
}

/* Fix transform issues that push content off-screen */
.flo-sguMB .ssr-variant header,
.flo-sguMB .ssr-variant nav,
.flo-sguMB .ssr-variant [class*="hero"],
.flo-sguMB .ssr-variant section,
.flo-sguMB .ssr-variant main,
.flo-sguMB .ssr-variant footer {
  opacity: 1 !important;
  transform: none !important;
}

/* Ensure Framer headers with animation styles are visible */
.flo-sguMB header[style*="opacity"],
.flo-sguMB nav[style*="opacity"],
[class*="flo-"][class*="v-v-"][style*="opacity:0"],
[class*="flo-"][class*="v-v-"][style*="opacity: 0"] {
  opacity: 1 !important;
  transform: none !important;
}

/* Ensure footer links have proper dimensions for touch targets */
.flo-sguMB footer a,
footer[class*="flo-"] a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
}

/* Ensure responsive variant content is visible across viewports */
/* Note: hidden-2hlk8r and hidden-1fcvg2h are Framer's responsive hiding classes */
/* We override them for critical navigation/header/footer content */
.ssr-variant header,
.ssr-variant nav,
.ssr-variant footer,
.ssr-variant main {
  display: block !important;
  visibility: visible !important;
}

/* Ensure links are interactive with proper sizing */
.flo-sguMB a[href*="contact"],
footer a[href*="contact"],
.cro-footer a[href*="contact"],
.cro-footer__nav-list a[href*="contact"] {
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  padding: 0.5rem;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure all footer nav links are visible and have proper dimensions */
.cro-footer__nav-list a {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 44px;
  min-width: auto;
  padding: 0.25rem 0;
  line-height: 1.5;
}

/* ==========================================================================
   Blank Section Prevention
   Ensure sections have visible content for SSR and visual validation
   ========================================================================== */

/* Prevent blank sections - ensure all sections have proper min-height and visibility */
section.animate-on-scroll,
section[class*="flo-"],
section.section {
  opacity: 1 !important;
  visibility: visible !important;
  min-height: auto;
  display: block;
}

/* Ensure section content is visible even before JS hydration */
section.animate-on-scroll > *,
section[class*="flo-"] > *,
section.section > * {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Reduce excessive margins on sections for tighter layouts */
.flo-pricing-hero,
.flo-pricing-calculator,
.flo-pricing-tiers-section,
.flo-comparison-section,
.flo-testimonials-section,
.flo-trust-section,
.flo-faq-section,
.flo-final-cta-section {
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}

/* Compact spacing for visual validation compliance */
@media (max-width: 768px) {
  .flo-pricing-hero,
  .flo-pricing-calculator,
  .flo-pricing-tiers-section,
  .flo-comparison-section,
  .flo-testimonials-section,
  .flo-trust-section,
  .flo-faq-section,
  .flo-final-cta-section,
  section.section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
}

/* ==========================================================================
   Dark Theme - Discover Page Sections
   Fixes for inline-styled sections that don't adapt to dark mode
   ========================================================================== */

/* Dark Theme - AI Search Capabilities Example Text */
.dark-theme .card-feature .mt-4 .text-body.font-medium {
  color: #93c5fd; /* Higher-luminance blue for WCAG 4.5:1 contrast on slate background */
}

/* Dark Theme - Real-World Use Cases Section */
.dark-theme .flo-use-cases-section h2.flo-text {
  color: #f1f5f9;
}

.dark-theme .flo-use-case-card {
  background: #1e293b;
  border-color: #334155;
}

.dark-theme .flo-use-case-card h3.flo-text {
  color: #f1f5f9;
}

.dark-theme .flo-use-case-card p[style*="color:rgb(107, 114, 128)"] {
  color: #94a3b8 !important;
}

.dark-theme .flo-use-case-card p[style*="color:rgb(55, 65, 81)"] {
  color: #cbd5e1 !important;
}

.dark-theme .flo-use-case-card p[style*="color:rgb(34, 197, 94)"] {
  color: #34d399 !important;
}

/* Dark Theme - Storage Integration Table */
.dark-theme table.card {
  background: #1e293b;
}

.dark-theme table.card thead tr {
  background: #334155;
}

.dark-theme table.card th {
  color: #f1f5f9;
}

.dark-theme table.card tbody tr {
  border-top-color: #334155;
}

.dark-theme table.card td {
  color: #cbd5e1;
}

.dark-theme table.card td[style*="font-weight: 500"] {
  color: #f1f5f9;
}

/* Dark Theme - Comparison Section */
.dark-theme .flo-comparison-section h2.flo-text {
  color: #f1f5f9;
}

.dark-theme .flo-comparison-section table {
  background: #1e293b;
}

.dark-theme .flo-comparison-section thead tr {
  background: #334155;
}

.dark-theme .flo-comparison-section th {
  color: #f1f5f9;
}

.dark-theme .flo-comparison-section tbody tr {
  border-top-color: #334155;
}

.dark-theme .flo-comparison-section td {
  color: #cbd5e1;
}

.dark-theme .flo-comparison-section td[style*="font-weight:600"] {
  color: #f1f5f9;
}

/* Dark Theme - Testimonials Section */
.dark-theme .flo-testimonials-section h2.flo-text {
  color: #f1f5f9;
}

.dark-theme .flo-testimonial-card {
  background: #1e293b;
  border-color: #334155;
}

.dark-theme .flo-testimonial-card p[style*="color:rgb(55, 65, 81)"] {
  color: #cbd5e1 !important;
}

.dark-theme .flo-testimonial-card p[style*="color:rgb(17, 24, 39)"] {
  color: #f1f5f9 !important;
}

.dark-theme .flo-testimonial-card p[style*="color:rgb(107, 114, 128)"] {
  color: #94a3b8 !important;
}

/* Dark Theme - Workflow Comparison Section (Discover page only) */
.dark-theme section[aria-labelledby="workflow-heading"] .card {
  background: #1e293b;
  border-color: #334155;
}

.dark-theme section[aria-labelledby="workflow-heading"] .card .card-title {
  color: #f1f5f9;
}

.dark-theme section[aria-labelledby="workflow-heading"] .card .text-small.text-muted {
  color: #94a3b8;
}

.dark-theme section[aria-labelledby="workflow-heading"] .card .text-body {
  color: #cbd5e1;
}

.dark-theme section[aria-labelledby="workflow-heading"] .card ol li {
  border-bottom-color: #334155;
}

.dark-theme section[aria-labelledby="workflow-heading"] .card ol li span[style*="background: var(--color-gray-200)"] {
  background: #334155 !important;
  color: #f1f5f9;
}
