/**
 * Grit Brand-Compliant Styles
 *
 * Follows Glass Umbrella Website Visual Standards v2.1
 * - Glass morphism design system
 * - Merriweather typography
 * - Lowercase headers
 * - Brand color palette
 */

/* Import Merriweather font */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');

/* CSS Variables - Glass Umbrella Brand */
:root {
  /* Glass Morphism Colors */
  --glass-primary: rgba(123, 68, 193, 0.1);
  --glass-secondary: rgba(30, 150, 252, 0.1);
  --glass-dark: rgba(50, 48, 49, 0.75);

  /* Solid Brand Colors */
  --color-purple: #7B44C1;
  --color-blue: #1E96FC;
  --color-charcoal: #323031;
  --color-sage: #9AD5CA;
  --color-neutral: #EBEBEB;

  /* Brand Color Aliases (for waitlist/form styles) */
  --brand-purple: #7B44C1;
  --brand-blue: #1E96FC;
  --brand-charcoal: #323031;
  --brand-mint: #9AD5CA;
  --brand-cloud: #EBEBEB;

  /* Slate Color Palette (for typography on light backgrounds) */
  --slate-darkest: #1e293b;  /* Headings on light backgrounds */
  --slate-dark: #2c3e50;     /* Alternative dark slate */
  --slate-medium: #475569;   /* Body text on light backgrounds */
  --slate-light: #64748b;    /* Secondary text on light backgrounds */

  /* Accent Colors */
  --accent-blue: #2563eb;    /* Darker blue for bullets/accents (replaces mint on light bg) */
  --accent-blue-light: #60a5fa;  /* Links on dark backgrounds */
  --accent-blue-lighter: #93c5fd; /* Link hover on dark backgrounds */

  /* Additional color variables for onboarding */
  --color-error: #e74c3c;    /* Error red for input validation */
  --color-white: #fff;       /* Pure white for consistency */
  --slate-deepest: #0f172a;  /* Deepest slate for gradients */
  --text-primary: rgba(255, 255, 255, 0.85);   /* Primary white text with opacity */
  --text-secondary: rgba(255, 255, 255, 0.7);  /* Secondary white text with opacity */

  /* Gradient Colors */
  --gradient-purple-start: #7B44C1;
  --gradient-blue-start: #1E96FC;

  /* Border Radius Scale */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Transition Speeds */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;

  /* Typography Scale */
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-4xl: 3.052rem;

  /* Z-index scale */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
}

/* Base Typography - Merriweather */
body {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-charcoal);
}

/* Lowercase Headers (Brand Standard) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); font-weight: 700; }

/* Override case for specific elements */
.preserve-case {
  text-transform: none !important;
}

/* Glass Morphism Effects */
.glass-primary {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow:
    0 8px 32px 0 rgba(31, 38, 135, 0.15),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
}

.glass-dark {
  background: rgba(26, 35, 50, 0.65);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.25),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-light {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  box-shadow:
    0 4px 24px 0 rgba(31, 38, 135, 0.1),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.4);
}

/* Brand-Compliant Buttons */
.btn-brand-primary {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-blue) 100%);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 12px;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 400;
  text-transform: lowercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(123, 68, 193, 0.3);
}

.btn-brand-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 68, 193, 0.4);
  color: white;
}

.btn-brand-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-purple);
  border: 1px solid var(--color-purple);
  padding: 12px 32px;
  border-radius: 12px;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 400;
  text-transform: lowercase;
  transition: all 0.3s ease;
}

.btn-brand-secondary:hover {
  background: rgba(123, 68, 193, 0.1);
  border-color: var(--color-blue);
  color: var(--color-blue);
}

/* Navigation - All viewports base - solid black */
.navbar-grit.gu-navbar-multi {
  background: rgb(50, 48, 49);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Desktop only - padding adjustment */
@media (min-width: 992px) {
  .navbar-grit.gu-navbar-multi {
    padding: 1rem 4rem;
  }

  .navbar-grit .navbar-brand {
    gap: 0.75rem !important;
    margin-right: 2rem !important;
    align-items: center !important;
  }

  .navbar-brand-logo {
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: translateY(-3px) !important;  /* Shift up slightly - circle centers with text, ponytail floats above */
  }

  .navbar-grit .navbar-brand-text {
    margin-top: 0 !important;
    line-height: 1 !important;
  }

  /* Align nav links on same baseline */
  .navbar-grit .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}

.navbar-grit .navbar-brand {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 400;
  text-transform: lowercase;
  color: white;
  font-size: var(--text-2xl);
  margin-left: 0;
  display: flex;
  align-items: center;
}

.navbar-grit .navbar-brand-text {
  color: white;
  font-size: 1.25rem;
  font-weight: 400;
  vertical-align: middle;
}

.navbar-grit .nav-link {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  text-transform: lowercase;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.navbar-grit .nav-link:hover {
  color: var(--color-sage);
}

/* Mobile Nav Icons */
.navbar-grit .nav-icon {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.navbar-grit .nav-link:hover .nav-icon {
  filter: brightness(0) saturate(100%) invert(83%) sepia(50%) saturate(800%) hue-rotate(100deg) brightness(110%) contrast(90%);
  opacity: 1;
}

/* Mobile Responsive Nav - CRITICAL: Loads before navbar.css so needs !important */
@media (max-width: 991.98px) {
  .navbar-grit.gu-navbar-multi {
    background: rgb(50, 48, 49) !important;  /* Solid background, no transparency */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0.5rem 1rem !important;
    display: flex !important;
    flex-wrap: wrap !important;              /* Allow wrapping so collapsed menu goes to new row */
    align-items: center !important;          /* Center hamburger and logo vertically */
    position: relative !important;
  }

  .navbar-grit .navbar-toggler {
    order: 1 !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 1050 !important;                /* Ensure toggler stays on top */
  }

  .navbar-grit .navbar-brand {
    order: 2 !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
  }

  .navbar-brand-logo {
    margin-top: 0 !important;
    margin-right: 0 !important;
    transform: translateY(-3px) !important;  /* Shift up slightly - circle centers with text, ponytail floats above */
  }

  /* Match drawer header font size and weight */
  .navbar-grit .navbar-brand-text {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
  }


  /* Mobile Drawer Navigation (Issue #445) - Grit Site */
  /* Core drawer styles in drawer.css. Only Grit-specific overrides below */

  /* CRITICAL: Remove navbar z-index to prevent stacking context trap */
  .navbar-grit.gu-navbar-multi {
    z-index: auto !important;
  }

  /* Center drawer logo on circle (compensate for ponytail above) */
  #mobileDrawer .drawer-logo-link img {
    margin-top: 1px !important;  /* Slight shift - circle centers with text, ponytail floats above */
  }

  /* Hide Sign In button (Grit only has X button in header) */
  #mobileDrawer .drawer-signin-btn {
    display: none !important;
  }
}

/* Card Components */
.card-glass:hover {
  transform: translateY(-5px);
  box-shadow:
    0 12px 40px 0 rgba(31, 38, 135, 0.2),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.3);
}

/* Form Elements - Brand Compliant */
.form-control-brand {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 300;
  color: var(--color-charcoal);
  transition: all 0.3s ease;
}

.form-control-brand:focus {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(123, 68, 193, 0.1);
  outline: none;
}

.form-label-brand {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

/* Value Prop Cards */
.value-prop-glass {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.value-prop-glass:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(123, 68, 193, 0.15);
}

.value-prop-icon {
  color: var(--color-purple);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* Compact Footer - Mobile-optimized */
.grit-footer-compact {
  background: rgba(50, 48, 49, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-neutral);
  font-family: 'Merriweather', Georgia, serif;
  padding: 1rem 1.5rem;
}

/* Main row: brand left, links center on desktop */
.grit-footer-compact .footer-main-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 0.75rem;
}

/* Brand: logo + grit name */
.grit-footer-compact .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.grit-footer-compact .footer-logo-small {
  width: 32px;
  height: 32px;
}

.grit-footer-compact .footer-brand-name {
  font-size: 1.25rem;
  font-weight: 400;
  color: white;
}

/* Links navigation */
.grit-footer-compact .footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.grit-footer-compact .footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.grit-footer-compact .footer-links a:hover {
  color: var(--color-sage);
}

.grit-footer-compact .footer-divider {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* Attribution row */
.grit-footer-compact .footer-attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
}

/* Mobile responsive */
@media (max-width: 576px) {
  .grit-footer-compact {
    padding: 0.75rem 1rem;
  }

  .grit-footer-compact .footer-main-row {
    justify-content: center;
    gap: 1rem;
  }

  .grit-footer-compact .footer-links {
    gap: 0.75rem;
  }

  .grit-footer-compact .footer-links a {
    font-size: 0.8rem;
  }

  .grit-footer-compact .footer-attribution {
    font-size: 0.7rem;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-grit {
    padding: 4rem 0;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }

  .value-prop-glass {
    padding: 1.5rem;
  }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
  .glass-primary,
  .glass-light,
  .card-glass,
  .value-prop-glass {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--color-charcoal);
  }

  .glass-dark {
    background: rgba(50, 48, 49, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
}

/* 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;
  }
}


/* ==================== VIDEO BACKGROUND (Founding Families) ==================== */

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background-color: #1a1f2e;  /* Prevent flicker before video/poster loads */
}

.video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.background-video-landscape {
    display: block;
}

.background-video-portrait {
    display: none;
}

@media (max-width: 768px) and (orientation: portrait) {
    .background-video-landscape {
        display: none;
    }
    .background-video-portrait {
        display: block;
    }
}

/* ==================== FOUNDING FAMILIES HERO ==================== */

.ff-hero {
    background: transparent;
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.ff-hero h1 {
    font-size: 72px;
    font-weight: 700;
    color: rgb(255, 255, 255);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.ff-hero h2 {
    font-size: 24px;
    font-weight: 400;
    color: rgb(255, 255, 255);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.ff-scarcity-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.ff-hero-ctas {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.ff-learn-more-link {
    text-decoration: underline;
    display: inline-block;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.ff-learn-more-link:hover {
    color: var(--color-sage);
    text-decoration: underline;
}

/* ==================== FOUNDING FAMILIES SECTIONS ==================== */

.ff-section {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4rem 0;
    margin-bottom: 0;
}

.ff-section h2 {
    color: rgb(255, 255, 255);
    font-size: 39.056px;
    font-weight: 400;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.ff-section h3 {
    color: rgb(255, 255, 255);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.ff-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ==================== BENEFIT CARDS ==================== */

.benefit-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 575px) {
    .benefit-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .benefit-cards {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
        gap: 1.5rem;
    }
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg, 16px);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(123, 68, 193, 0.1) 0%, transparent 50%, rgba(123, 68, 193, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-sage, #9AD5CA);
}

.benefit-card h3 {
    font-size: 20px;
    color: rgb(255, 255, 255);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* ==================== PARTNERSHIP COMMITMENT ==================== */

.ff-section.ff-partnership {
    background: transparent;
    padding: 4rem 0;
}

.ff-commitment-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md, 12px);
    padding: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ff-commitment-box > p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.ff-commitment-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ff-commitment-box li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    padding-left: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.ff-commitment-box li::before {
    content: '✓';
    color: rgb(154, 213, 202);
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==================== FINAL CTA ==================== */

.ff-final-cta {
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.95) 0%, rgba(13, 17, 23, 0.95) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.ff-final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.02) 0%, transparent 70%);
    pointer-events: none;
}

.ff-final-cta h2 {
    color: rgb(255, 255, 255);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: none;
}

.ff-final-cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* ==================== FOUNDING FAMILIES MOBILE ==================== */

@media (max-width: 992px) {
    .ff-hero h1 {
        font-size: 56px;
    }
    
    .ff-section h2 {
        font-size: 32px;
    }
    
    .ff-final-cta h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .ff-hero h1 {
        font-size: 48px;
    }

    .ff-hero h2 {
        font-size: 20px;
    }

    .ff-hero-ctas a {
        width: 100%;
    }

    .ff-section {
        padding: 3rem 0;
    }

    .ff-section h2,
    .ff-final-cta h2 {
        font-size: 28px;
        margin-bottom: 2rem;
    }
    
    .ff-final-cta {
        padding: 3.5rem 0;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .ff-hero h1 {
        font-size: 36px;
    }
    
    .ff-hero h2 {
        font-size: 18px;
    }
    
    .ff-section h2,
    .ff-final-cta h2 {
        font-size: 24px;
    }
}

/* Founding Families Accessibility */
.ff-hero-ctas a:focus-visible,
.ff-learn-more-link:focus-visible {
    outline: 3px solid var(--color-sage);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .benefit-card {
        transition: none;
    }
    
    .benefit-card::before {
        transition: none;
    }
}

/* ==================== FOUNDING FAMILIES BENEFITS NARRATIVE ==================== */

.ff-benefits-narrative {
    background: transparent;
    padding: 5rem 0;
}

.ff-benefits-narrative .ff-narrative-heading {
    font-size: 48px;
    font-weight: 600;
    color: var(--color-sage);
    text-align: center;
    margin-bottom: 2.5rem;
    text-transform: lowercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.ff-benefits-narrative .ff-narrative-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.ff-benefits-narrative .ff-lead-text {
    font-size: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.ff-benefits-narrative .ff-body-text {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.ff-benefits-narrative .ff-perks-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-sage), transparent);
    margin: 3rem auto 2.5rem;
}

.ff-benefits-narrative .ff-perks-heading {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 2rem;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.ff-benefits-narrative .ff-perks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .ff-perks-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.ff-benefits-narrative .ff-perk-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
    cursor: default;
}

.ff-benefits-narrative .ff-perk-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(154, 213, 202, 0.3);
    box-shadow: 0 4px 16px rgba(154, 213, 202, 0.15);
}

.ff-benefits-narrative .ff-perk-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-sage);
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}

.ff-benefits-narrative .ff-perk-detail {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Mobile responsive for narrative section */
@media (max-width: 768px) {
    .ff-benefits-narrative {
        padding: 3rem 0;
    }
    
    .ff-narrative-heading {
        font-size: 32px;
        margin-bottom: 2rem;
    }
    
    .ff-lead-text {
        font-size: 20px;
        margin-bottom: 1.25rem;
    }
    
    .ff-body-text {
        font-size: 16px;
    }
    
    .ff-perks-heading {
        font-size: 18px;
    }
    
    .ff-perk-label {
        font-size: 16px;
    }
    
    .ff-perk-detail {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .ff-narrative-heading {
        font-size: 28px;
    }
    
    .ff-lead-text {
        font-size: 18px;
    }
    
    .ff-body-text {
        font-size: 15px;
    }
}

/* ==================== VISUAL BENEFIT SECTIONS (Alternating Layout) ==================== */

.ff-benefit-visual-section {
    background: rgba(50, 48, 49, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 5rem 0;
    position: relative;
}

.ff-benefit-visual-section.ff-alternate {
    background: rgb(123, 68, 193);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ff-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.ff-image-column {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg, 16px);
}

.ff-benefit-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease;
    display: block;
}

.ff-benefit-image:hover {
    transform: scale(1.02);
}

.ff-text-column {
    padding: 2rem;
}

.ff-benefit-visual-section .ff-section-heading {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-sage) !important;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-transform: lowercase;
}

.ff-benefit-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Perks section with solid background */
.ff-benefits-perks {
    background: rgba(30, 150, 252, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4rem 0;
}

/* Mobile Responsive for Visual Sections */
@media (max-width: 768px) {
    .ff-split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Always show image first on mobile */
    .ff-image-left .ff-image-column,
    .ff-image-right .ff-image-column {
        order: 1;
    }
    
    .ff-image-left .ff-text-column,
    .ff-image-right .ff-text-column {
        order: 2;
    }
    
    .ff-section-heading {
        font-size: 1.75rem;
    }
    
    .ff-benefit-text {
        font-size: 1rem;
    }
    
    .ff-text-column {
        padding: 1rem;
    }
    
    .ff-benefit-visual-section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .ff-section-heading {
        font-size: 1.5rem;
    }
    
    .ff-benefit-text {
        font-size: 0.95rem;
    }
}
/* Enhanced perks section styling */
.ff-benefits-perks {
    background: rgba(50, 48, 49, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 5rem 0 !important;
}

.ff-benefits-perks .ff-perks-heading {
    font-size: 24px !important;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 3rem !important;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.ff-benefits-perks .ff-perks-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .ff-benefits-perks .ff-perks-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

.ff-benefits-perks .ff-perk-item {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    padding: 2rem 2.5rem !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ff-benefits-perks .ff-perk-item:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(154, 213, 202, 0.4) !important;
    box-shadow: 0 12px 32px rgba(154, 213, 202, 0.25);
    transform: translateY(-4px);
}

.ff-benefits-perks .ff-perk-label {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--color-sage) !important;
    margin-bottom: 0.75rem !important;
    text-transform: lowercase;
}

.ff-benefits-perks .ff-perk-detail {
    font-size: 17px !important;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.6;
}

/* Partnership commitment intro styling */
.ff-commitment-intro {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.ff-commitment-ask {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Inline text links in commitment section */
.ff-inline-link {
    color: var(--color-sage);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.ff-inline-link:hover {
    color: rgba(154, 213, 202, 0.8);
    text-decoration: underline;
}

/* Waitlist alternative link in hero */
.ff-waitlist-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: underline;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.ff-waitlist-link:hover {
    color: var(--color-sage);
    text-decoration: underline;
}

/* Darken hero to improve text readability over video */
.ff-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

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

/* Darken partnership section for better readability */
.ff-partnership {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Waitlist link in final CTA section */
.ff-waitlist-link-footer {
    display: inline-block;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.ff-waitlist-link-footer:hover {
    color: var(--color-sage);
    text-decoration: underline;
}

/* Crop Section 2 image to wide format */
.ff-image-right .ff-benefit-image {
    object-fit: cover;
    object-position: center 35%;
    width: 100%;
    height: 350px !important;
    max-height: 350px !important;
}

@media (max-width: 768px) {
    .ff-image-right .ff-benefit-image {
        height: auto;
        max-height: none;
    }
}

/* Crop Section 1 image to match Section 2 format */
.ff-image-left .ff-benefit-image {
    object-fit: cover;
    object-position: center 35%;
    width: 100%;
    height: 350px !important;
    max-height: 350px !important;
}

@media (max-width: 768px) {
    .ff-image-left .ff-benefit-image {
        height: auto !important;
        max-height: none !important;
    }
}

/* Dark background for homepage to prevent white flash before video loads */
body:has(.hero-section) {
    background-color: #1a1f2e;
    background-attachment: fixed;
}

/* Hide video background on Founding Families page */
body:has(.ff-hero) .video-container {
    display: none;
}

/* Solid gradient background for Founding Families page */
body:has(.ff-hero) {
    background: linear-gradient(180deg,
        rgba(50, 48, 49, 1) 0%,
        rgba(40, 38, 39, 1) 50%,
        rgba(30, 28, 29, 1) 100%);
    background-attachment: fixed;
}

/* Bright gradient background for hero to match fun illustrated style */
.ff-hero {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-blue) 100%) !important;
}

/* Remove the dark overlay since we have bright background now */
.ff-hero::before {
    display: none !important;
}

/* Make hero buttons pop on bright gradient background */
.ff-hero .btn-brand-primary {
    background: var(--color-sage) !important;
    color: var(--color-charcoal) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.ff-hero .btn-brand-primary:hover {
    background: #7DCBB8 !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4) !important;
    color: var(--color-charcoal) !important;
}

/* Increase contrast between partnership and final CTA */
.ff-partnership {
    background: rgba(30, 150, 252, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ff-final-cta {
    background: linear-gradient(135deg, rgba(50, 48, 49, 0.95) 0%, rgba(30, 28, 29, 0.98) 100%) !important;
}

/* ==================== CONTACT EMAIL DISPLAY ==================== */

.cta-contact .email-display {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}
