/* FlyBys Brand Website Styles
 * Built on Foundation CSS framework
 * Design: Property Intelligence — Trust & Clarity
 */

/* ============================================
   CSS Custom Properties (Brand Colors)
   ============================================ */
:root {
  /* Primary Colors — from logo (teal/sky-blue diagonal) */
  --fb-deep-teal: #0D4F5C;
  --fb-sky-blue: #6CB4C4;
  --fb-amber: #E8A838;
  --fb-off-white: #FAFAFA;
  --fb-white: #FFFFFF;
  --fb-success: #34C759;
  --fb-error: #FF3B30;

  /* Extended Palette */
  --fb-sky-blue-light: #8ECAD6;
  --fb-deep-teal-light: #1A7A8A;
  --fb-charcoal: #2C3E50;
  --fb-charcoal-light: #4A5568;
  --fb-gray-100: #F7FAFC;
  --fb-gray-200: #EDF2F7;
  --fb-gray-300: #E2E8F0;
  --fb-gray-400: #CBD5E0;
  --fb-gray-500: #A0AEC0;
  --fb-gray-600: #718096;

  /* Typography */
  --fb-font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
                    'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --fb-font-mono: 'SF Mono', Monaco, 'Courier New', monospace;

  /* Spacing */
  --fb-section-padding: 6rem 0;
  --fb-section-padding-mobile: 4rem 0;

  /* Border Radius */
  --fb-radius-sm: 6px;
  --fb-radius-md: 12px;
  --fb-radius-lg: 20px;
  --fb-radius-full: 9999px;

  /* Shadows */
  --fb-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --fb-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --fb-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --fb-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --fb-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

  /* Transitions */
  --fb-transition-fast: 150ms ease;
  --fb-transition-base: 250ms ease;
  --fb-transition-slow: 400ms ease;

  /* Semantic Color Variables (Theme-Aware) — default to light mode */
  --fb-bg-primary: var(--fb-white);
  --fb-bg-secondary: var(--fb-off-white);
  --fb-bg-tertiary: var(--fb-gray-100);
  --fb-surface: var(--fb-white);
  --fb-text-primary: var(--fb-charcoal);
  --fb-text-secondary: var(--fb-charcoal-light);
  --fb-text-muted: var(--fb-gray-600);
  --fb-border: var(--fb-gray-200);
  --fb-border-subtle: var(--fb-gray-300);
}

/* ============================================
   Dark Mode
   ============================================ */
[data-theme="dark"] {
  --fb-bg-primary: #1A202C;
  --fb-bg-secondary: #2D3748;
  --fb-bg-tertiary: #1A1F2E;
  --fb-surface: #2D3748;
  --fb-text-primary: #F7FAFC;
  --fb-text-secondary: #A0AEC0;
  --fb-text-muted: #718096;
  --fb-border: #4A5568;
  --fb-border-subtle: #2D3748;
  --fb-deep-teal: #1A9AB5;
  --fb-deep-teal-light: #3DC0D6;
  --fb-sky-blue: #8ECAD6;
  --fb-sky-blue-light: #A8D8E2;
  --fb-amber: #F0B850;
  --fb-success: #48BB78;
  --fb-error: #FC8181;
  --fb-charcoal: #F7FAFC;
  --fb-charcoal-light: #A0AEC0;
  --fb-gray-100: #2D3748;
  --fb-gray-200: #4A5568;
  --fb-gray-300: #4A5568;
  --fb-gray-400: #718096;
  --fb-gray-500: #A0AEC0;
  --fb-gray-600: #CBD5E0;
  --fb-white: #1A202C;
  --fb-off-white: #2D3748;
}

/* System preference fallback (no JS or no preference stored) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fb-bg-primary: #1A202C;
    --fb-bg-secondary: #2D3748;
    --fb-bg-tertiary: #1A1F2E;
    --fb-surface: #2D3748;
    --fb-text-primary: #F7FAFC;
    --fb-text-secondary: #A0AEC0;
    --fb-text-muted: #718096;
    --fb-border: #4A5568;
    --fb-border-subtle: #2D3748;
    --fb-deep-teal: #1A9AB5;
    --fb-deep-teal-light: #3DC0D6;
    --fb-sky-blue: #8ECAD6;
    --fb-sky-blue-light: #A8D8E2;
    --fb-amber: #F0B850;
    --fb-success: #48BB78;
    --fb-error: #FC8181;
    --fb-charcoal: #F7FAFC;
    --fb-charcoal-light: #A0AEC0;
    --fb-gray-100: #2D3748;
    --fb-gray-200: #4A5568;
    --fb-gray-300: #4A5568;
    --fb-gray-400: #718096;
    --fb-gray-500: #A0AEC0;
    --fb-gray-600: #CBD5E0;
    --fb-white: #1A202C;
    --fb-off-white: #2D3748;
  }
}

/* ============================================
   Base & Reset
   ============================================ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fb-font-family);
  color: var(--fb-text-primary);
  background-color: var(--fb-bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--fb-text-primary);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: var(--fb-text-secondary);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--fb-text-muted);
  line-height: 1.7;
}

@media screen and (max-width: 639px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  .lead { font-size: 1.1rem; }
}

/* ============================================
   Links
   ============================================ */
a {
  color: var(--fb-deep-teal);
  transition: color var(--fb-transition-fast);
}

a:hover {
  color: var(--fb-deep-teal-light);
}

/* ============================================
   Buttons
   ============================================ */
.button, button {
  font-family: var(--fb-font-family);
  font-weight: 600;
  border-radius: var(--fb-radius-md);
  transition: all var(--fb-transition-fast);
}

.button.primary {
  background-color: var(--fb-deep-teal);
  color: #FFFFFF;
}

.button.primary:hover,
.button.primary:focus {
  background-color: var(--fb-deep-teal-light);
  box-shadow: 0 4px 15px rgba(13, 79, 92, 0.4);
}

.button.secondary {
  background-color: var(--fb-amber);
  color: #FFFFFF;
}

.button.secondary:hover,
.button.secondary:focus {
  background-color: #D49830;
}

.button.outline {
  background-color: transparent;
  border: 2px solid var(--fb-deep-teal);
  color: var(--fb-deep-teal);
}

.button.outline:hover,
.button.outline:focus {
  background-color: var(--fb-deep-teal);
  color: #FFFFFF;
}

.button.large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* App Store Badge */
.app-store-badge {
  display: inline-block;
  transition: transform var(--fb-transition-fast), opacity var(--fb-transition-fast);
}

.app-store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.app-store-badge img {
  height: 54px;
  width: auto;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  background-color: var(--fb-bg-primary);
  border-bottom: 1px solid var(--fb-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--fb-radius-sm);
}

.site-tagline {
  font-size: 1rem;
  font-weight: 400;
  color: var(--fb-text-secondary);
  font-style: italic;
}

@media screen and (max-width: 639px) {
  .site-tagline {
    display: none;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
}

.nav-links a {
  color: var(--fb-text-secondary);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--fb-transition-fast);
}

.nav-links a:hover {
  color: var(--fb-deep-teal);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--fb-text-primary);
  margin: 5px 0;
  transition: var(--fb-transition-fast);
}

@media screen and (max-width: 639px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--fb-bg-primary);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--fb-border);
    gap: 1rem;
  }

  .nav-links.is-active {
    display: flex;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 5rem 0 6rem;
  background: linear-gradient(180deg, var(--fb-bg-primary) 0%, var(--fb-bg-tertiary) 100%);
  overflow: hidden;
}

.hero-content {
  max-width: 560px;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--fb-gray-500);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero .lead {
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(var(--fb-shadow-xl));
}

.hero-phone-mockup {
  max-width: 320px;
  margin: 0 auto;
}

.hero-phone-mockup img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--fb-shadow-xl);
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.hero-carousel-slides {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--fb-shadow-xl);
}

.hero-carousel-slide {
  display: none;
  width: 100%;
}

.hero-carousel-slide.active {
  display: block;
}

.hero-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fb-gray-300);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
}

.hero-carousel-dot.active {
  background: var(--fb-deep-teal);
}

.hero-carousel-dot:hover {
  background: var(--fb-gray-400);
}

.hero-carousel-dot.active:hover {
  background: var(--fb-deep-teal);
}

@media screen and (max-width: 1023px) {
  .hero {
    text-align: center;
    padding: 3rem 0 4rem;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: 3rem;
  }

  .hero-cta {
    justify-content: center;
  }
}

/* ============================================
   Sections (Generic)
   ============================================ */
.section {
  padding: var(--fb-section-padding);
}

.section-alt {
  background-color: var(--fb-bg-tertiary);
}

.section-dark {
  background-color: #1A202C;
  color: #FFFFFF;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #FFFFFF;
}

.section-dark p {
  color: #A0AEC0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

@media screen and (max-width: 639px) {
  .section {
    padding: var(--fb-section-padding-mobile);
  }

  .section-header {
    margin-bottom: 2rem;
  }
}

/* ============================================
   How It Works (3 Steps)
   ============================================ */
.how-it-works {
  background-color: var(--fb-bg-primary);
}

.step-card {
  text-align: center;
  padding: 2rem;
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--fb-sky-blue), var(--fb-deep-teal));
  border-radius: var(--fb-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 2rem;
}

.step-number {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-color: var(--fb-deep-teal);
  color: #FFFFFF;
  border-radius: var(--fb-radius-full);
  font-weight: 700;
  font-size: 1rem;
  line-height: 32px;
  margin-bottom: 1rem;
}

.step-card h3 {
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.95rem;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fb-gray-400);
  font-size: 2rem;
}

@media screen and (max-width: 639px) {
  .step-arrow {
    transform: rotate(90deg);
    margin: 1rem 0;
  }
}

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media screen and (max-width: 639px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--fb-sky-blue), var(--fb-deep-teal));
  border-radius: var(--fb-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #FFFFFF;
  font-size: 1.5rem;
}

/* Icon Color Variants */
.step-icon.icon-amber,
.feature-icon.icon-amber {
  background: linear-gradient(135deg, #F0C060, #E8A838);
}

.step-icon.icon-green,
.feature-icon.icon-green {
  background: linear-gradient(135deg, #5DD87A, #34C759);
}

.step-icon.icon-orange,
.feature-icon.icon-orange {
  background: linear-gradient(135deg, #FFAA33, #FF9500);
}

.step-icon.icon-blue,
.feature-icon.icon-blue {
  background: linear-gradient(135deg, #5AC8FA, #007AFF);
}

.step-icon.icon-sky,
.feature-icon.icon-sky {
  background: linear-gradient(135deg, var(--fb-sky-blue-light), var(--fb-sky-blue));
}

/* ============================================
   Features: Shared Card (extends Foundation .card)
   ============================================ */
.features-hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media screen and (max-width: 1023px) {
  .features-hero {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 639px) {
  .features-hero {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background-color: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-md);
  margin-bottom: 0;
  align-items: center;
  transition: box-shadow var(--fb-transition-base), transform var(--fb-transition-base);
}

.feature-card:hover {
  box-shadow: var(--fb-shadow-md);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--fb-text-secondary);
  margin-bottom: 0;
}

/* ============================================
   Features: Compact Tier Grid
   ============================================ */
.features-compact-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.features-compact-header h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fb-text-muted);
  margin-bottom: 0;
}

.features-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media screen and (max-width: 1023px) {
  .features-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 639px) {
  .features-compact {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Use Cases Showcase Section
   ============================================ */
.use-cases-showcase {
  background-color: var(--fb-bg-tertiary);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media screen and (max-width: 639px) {
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
}

.use-case-card {
  background-color: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-left: 4px solid var(--fb-deep-teal);
  border-radius: var(--fb-radius-md);
  padding: 1.5rem;
  transition: box-shadow var(--fb-transition-base), transform var(--fb-transition-base);
}

.use-case-card:hover {
  box-shadow: var(--fb-shadow-md);
  transform: translateY(-2px);
}

.use-case-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.use-case-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--fb-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.use-case-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0;
}

.use-case-tagline {
  font-style: italic;
  color: var(--fb-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.use-case-card p:last-child {
  font-size: 0.9rem;
  color: var(--fb-text-secondary);
  margin-bottom: 0;
}

/* ============================================
   Free / Pricing Section
   ============================================ */
.free-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media screen and (max-width: 639px) {
  .free-grid {
    grid-template-columns: 1fr;
  }
}

.free-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--fb-white);
  border-radius: var(--fb-radius-lg);
  border: 1px solid var(--fb-gray-200);
  transition: transform var(--fb-transition-base), box-shadow var(--fb-transition-base);
}

.free-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--fb-shadow-md);
}

.free-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: var(--fb-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.free-item h3 {
  color: var(--fb-charcoal);
  margin-bottom: 0.5rem;
}

.free-item p {
  font-size: 0.95rem;
  color: var(--fb-charcoal-light);
  margin-bottom: 0;
}

/* ============================================
   Trust Section
   ============================================ */
.trust-section {
  background-color: #1A202C;
  color: #FFFFFF;
}

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

@media screen and (max-width: 639px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust-item {
  text-align: center;
}

.trust-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--fb-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.trust-item h3 {
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.trust-item p {
  font-size: 0.95rem;
  color: #A0AEC0;
  margin-bottom: 0;
}

/* ============================================
   Final CTA Section
   ============================================ */
.final-cta {
  text-align: center;
  background: linear-gradient(180deg, var(--fb-bg-tertiary) 0%, var(--fb-bg-primary) 100%);
}

.final-cta h2 {
  margin-bottom: 1rem;
}

.final-cta .lead {
  margin-bottom: 2rem;
}

.cta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background-color: #1A202C;
  color: #A0AEC0;
  padding: 3rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--fb-radius-sm);
}

.footer-brand span {
  font-size: 1.125rem;
  font-weight: 600;
  color: #FFFFFF;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #A0AEC0;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #A0AEC0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--fb-transition-fast);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #718096;
}

@media screen and (max-width: 639px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-teal { color: var(--fb-deep-teal); }
.text-sky { color: var(--fb-sky-blue); }
.text-amber { color: var(--fb-amber); }
.text-muted { color: var(--fb-gray-600); }

.bg-teal { background-color: var(--fb-deep-teal); }
.bg-sky { background-color: var(--fb-sky-blue); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

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

/* ============================================
   Theme Toggle Button
   ============================================ */
.theme-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--fb-text-secondary);
  border-radius: var(--fb-radius-sm);
  transition: color var(--fb-transition-fast);
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.theme-toggle:hover {
  color: var(--fb-text-primary);
}

.theme-icon {
  width: 20px;
  height: 20px;
}

.theme-icon.hidden {
  display: none;
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2C3E50;
  color: #FFFFFF;
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease-out;
}

#cookie-consent-banner.hiding {
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent-content p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--fb-gray-300);
}

.cookie-consent-content a {
  color: var(--fb-sky-blue-light);
  text-decoration: underline;
}

.cookie-consent-content a:hover {
  color: #FFFFFF;
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--fb-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--fb-transition-fast);
}

.cookie-btn-primary {
  background: var(--fb-deep-teal);
  color: #FFFFFF;
}

.cookie-btn-primary:hover {
  background: var(--fb-deep-teal-light);
}

.cookie-btn-secondary {
  background: transparent;
  color: var(--fb-gray-400);
  border: 1px solid var(--fb-gray-600);
}

.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

@media (max-width: 600px) {
  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.fb-reveal-ready .fb-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fb-reveal-ready .fb-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for grid children */
.fb-reveal-ready .fb-reveal-stagger > .fb-reveal:nth-child(1) { transition-delay: 0ms; }
.fb-reveal-ready .fb-reveal-stagger > .fb-reveal:nth-child(2) { transition-delay: 100ms; }
.fb-reveal-ready .fb-reveal-stagger > .fb-reveal:nth-child(3) { transition-delay: 200ms; }
.fb-reveal-ready .fb-reveal-stagger > .fb-reveal:nth-child(4) { transition-delay: 300ms; }
.fb-reveal-ready .fb-reveal-stagger > .fb-reveal:nth-child(5) { transition-delay: 400ms; }
.fb-reveal-ready .fb-reveal-stagger > .fb-reveal:nth-child(6) { transition-delay: 500ms; }
.fb-reveal-ready .fb-reveal-stagger > .fb-reveal:nth-child(7) { transition-delay: 600ms; }
.fb-reveal-ready .fb-reveal-stagger > .fb-reveal:nth-child(8) { transition-delay: 700ms; }

/* Step number pop animation on reveal */
.fb-reveal-ready .fb-reveal.is-visible .step-number {
  animation: stepPop 0.4s ease 0.3s both;
}

@keyframes stepPop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .fb-reveal-ready .fb-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .fb-reveal-ready .fb-reveal-stagger > .fb-reveal {
    transition-delay: 0ms !important;
  }
  * {
    animation-duration: 0.01ms !important;
  }
}

/* ============================================
   Legal Pages (Privacy, Terms, etc.)
   ============================================ */
.legal-page {
  padding: 3rem 0 6rem;
}

.legal-page h1 {
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  color: var(--fb-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--fb-border);
}

.legal-page h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-page ul,
.legal-page ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page li {
  color: var(--fb-text-secondary);
  margin-bottom: 0.5rem;
}

.legal-page a {
  color: var(--fb-deep-teal);
}

/* ============================================
   Support / FAQ Page
   ============================================ */
.support-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media screen and (max-width: 639px) {
  .support-channels {
    grid-template-columns: 1fr;
  }
}

.support-channel {
  background-color: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-md);
  padding: 2rem;
  text-align: center;
}

.support-channel-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--fb-sky-blue), var(--fb-deep-teal));
  border-radius: var(--fb-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.faq-item {
  border-bottom: 1px solid var(--fb-border);
  padding: 1.5rem 0;
}

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

.faq-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--fb-text-primary);
}

.faq-item p {
  margin-bottom: 0;
}

/* ============================================
   Delete Account Page
   ============================================ */
.delete-steps {
  background-color: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-md);
  padding: 2rem;
  margin: 2rem 0;
}

.delete-steps ol {
  margin-left: 1.5rem;
}

.delete-steps li {
  color: var(--fb-text-secondary);
  margin-bottom: 0.75rem;
}

.data-removed-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

@media screen and (max-width: 639px) {
  .data-removed-list {
    grid-template-columns: 1fr;
  }
}

.data-removed-list li {
  list-style: none;
  padding-left: 1.5rem;
  position: relative;
  color: var(--fb-text-secondary);
}

.data-removed-list li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  color: var(--fb-error);
  font-weight: bold;
}
