/* Component Styles */

/* Header - Light background, clean navigation */
.header {
  background: rgba(234, 231, 223, 0.95);  /* Semi-transparent cream */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  backdrop-filter: blur(8px);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo img {
  height: 38px;
  width: auto;
  display: block;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.header__nav-link {
  color: var(--color-text-light-primary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-green-foundation);
  transition: width var(--transition-fast);
}

.header__nav-link:hover {
  color: var(--color-green-foundation);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__login {
  color: var(--color-text-light-primary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  flex-shrink: 0;
  position: relative;
}

.header__login::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-green-foundation);
  transition: width var(--transition-fast);
}

.header__login:hover {
  color: var(--color-green-foundation);
}

.header__login:hover::after {
  width: 100%;
}

/* Mobile Header */
@media (max-width: 768px) {
  .header__nav {
    display: none;  /* Hide nav on mobile */
  }

  .header__cta {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  .header__content {
    padding: 0.75rem 0;
    gap: 0.75rem;
  }
}

/* Buttons - "Machined Precision" not pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);  /* Tight, not pill */
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-green-foundation);
  color: var(--color-text-primary);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(47, 90, 30, 0.2);
}

.btn-primary:hover {
  background: var(--color-green-foundation-hover);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-1px);  /* Subtle lift, no scale */
  box-shadow: 0 4px 12px rgba(47, 90, 30, 0.3);
}

.btn-secondary {
  background: var(--color-canvas-surface-1);
  color: var(--color-text-primary);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--color-canvas-surface-2);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

/* Header CTA Button */
.btn-small {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.header__cta {
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 1.5rem;
}

/* Combined Hero + Demo Layout */
.hero-demo__layout {
  display: grid;
  grid-template-columns: minmax(420px, 38fr) minmax(520px, 62fr);
  gap: 2.5rem;
  align-items: stretch;
  min-height: auto;
  position: relative;
  z-index: 2;
  padding: 1rem 0;
}

@media (max-width: 1024px) {
  .hero-demo__layout {
    grid-template-columns: 1fr;
    gap: 2rem;  /* Reduced gap for stacked layout */
  }
}

/* Left Column: Headline + Features */
.hero-demo__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  padding-top: 0;  /* Critical: align with grid top for connector reach */
  justify-content: flex-start;
  align-self: stretch;
  height: 100%;
}

/* Main Headline (h1) - Larger typography */
.hero-demo__title {
  font-size: clamp(3.5rem, 2.75rem + 4vw, 4.75rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(65, 141, 32, 0.2);
  font-family: 'Recoleta', Georgia, serif;
  min-height: 6rem;  /* Reserve space for larger text */
  white-space: normal;
  text-wrap: balance;
}

.hero-demo__title-line {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3ch;
  align-items: baseline;
  white-space: nowrap;
}

.hero-demo__title-emphasis {
  position: relative;
}

.hero-demo__title-emphasis::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  height: 0.10em;
  background: rgba(74, 222, 128, 0.65);
  border-radius: 999px;
}

/* Subtitle */
.hero-demo__subtitle {
  font-size: 1.125rem;
  color: rgba(95, 167, 110, 0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
  font-weight: 400;
}

/* Feature Controls Container */
.hero-demo__features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* CTA Button */
.hero-demo__cta {
  margin-top: auto;
  padding-top: 0;
  border-top: none;
}

/* Individual Feature Control - Devin-inspired numbered arrows */
.feature-control {
  padding: 0.5rem 1rem;
  padding-right: 2rem;  /* Extra space for arrow point */
  border-radius: 0;  /* No border radius - we use clip-path */
  background: transparent;  /* No background by default */
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.875rem;

  /* Pointed arrow shape via clip-path */
  clip-path: polygon(
    0% 0%,           /* Top left */
    calc(100% - 16px) 0%,   /* Top right (before point) */
    100% 50%,        /* Arrow point (right middle) */
    calc(100% - 16px) 100%, /* Bottom right (after point) */
    0% 100%          /* Bottom left */
  );
}

.feature-control:hover {
  background: rgba(255, 255, 255, 0.05);
}

.feature-control[data-active="true"] {
  background: rgba(44, 46, 51, 0.8);
}

/* Number Badge */
.feature-control__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-tertiary);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-control:hover .feature-control__number {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text-secondary);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-control[data-active="true"] .feature-control__number {
  background: var(--color-green-foundation);
  color: #ffffff;
  border-color: var(--color-green-foundation);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.3);
}

/* Title Text */
.feature-control__title {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-text-tertiary);
  line-height: 1.3;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.feature-control:hover .feature-control__title {
  color: var(--color-text-secondary);
}

.feature-control[data-active="true"] .feature-control__title {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* Visual connector line - gradient fades in from arrow edge */
.feature-control::after {
  content: '';
  position: absolute;
  right: -4rem;
  top: 50%;
  width: 6rem;
  height: 2px;

  /* Default: Hidden */
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.2) 30%,
    transparent 100%
  );
  opacity: 0;

  transition: all var(--transition-medium);
  transform: translateY(-50%);
  z-index: -1;
}

/* Hover: Show subtle connector */
.feature-control:hover::after {
  opacity: 0.4;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.25) 30%,
    transparent 100%
  );
}

/* Active: Green gradient fading in from clip edge */
.feature-control[data-active="true"]::after {
  opacity: 1;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(74, 222, 128, 0.15) 0%,
    rgba(74, 222, 128, 0.5) 25%,
    var(--color-green-signal) 50%,
    rgba(74, 222, 128, 0.3) 80%,
    transparent 100%
  );
  filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.3));
}

/* Video Wrapper - Contains video container + caption */
.hero-demo__video-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  z-index: 3;
  width: 100%;
  align-self: start;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      180deg,
      rgba(74, 222, 128, 0.05) 0%,
      transparent 18%
    ),
    linear-gradient(
      135deg,
      rgba(52, 54, 59, 1.0) 0%,
      rgba(44, 46, 51, 0.93) 25%,
      rgba(36, 38, 43, 0.82) 65%,
      rgba(28, 30, 34, 0.72) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 10px 30px rgba(0, 0, 0, 0.25),
    0 18px 60px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  height: 100%;
}

.hero-demo__video-wrapper:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.28),
    0 26px 80px rgba(0, 0, 0, 0.4);
}

/* Right Column: Large Prominent Video - Modern Ambient Shadows */
.hero-demo__video-container {
  position: relative;
  z-index: 3;
  border-radius: calc(var(--radius-lg) - 0.4rem);
  overflow: hidden;  /* Clip video + overlay */
  padding: 0;
  background: rgba(12, 13, 16, 0.9);
  height: auto;
  aspect-ratio: 16 / 10;
  min-height: 440px;
  max-height: min(78vh, 600px);
  width: 100%;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: opacity var(--transition-base);
  flex: 1;
}

/* Video element - no nested radius needed with minimal padding */
.hero-demo__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;  /* Changed from contain - fills container, no letterboxing */
  background: #000;
  border-radius: calc(var(--radius-lg) - 0.45rem);  /* Match container inset */
  position: relative;
  z-index: 2;
  transition: opacity var(--transition-base);
}

/* Video Wrapper Left-Edge Indicators - on dark frame background */
.hero-demo__video-wrapper::before {
  content: '';
  position: absolute;
  left: 0;  /* Left edge of wrapper (dark background) */
  width: 4px;
  height: 32px;

  /* Default: Hidden */
  opacity: 0;
  background: linear-gradient(180deg,
    transparent,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.3) 80%,
    transparent
  );

  /* Position at first control by default */
  top: var(--indicator-position-queue);
  transform: translateY(-50%);

  /* Smooth transitions */
  transition:
    top var(--transition-medium),
    opacity var(--transition-fast),
    background var(--transition-medium),
    box-shadow var(--transition-medium),
    height var(--transition-fast);

  border-radius: 0 2px 2px 0;
  z-index: 10;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}

/* Active State: Queue - Green glow at position 1 */
.hero-demo__video-wrapper[data-active-control="queue"]::before {
  top: var(--indicator-position-queue);
  opacity: 1;
  height: 40px;

  background: linear-gradient(180deg,
    transparent,
    rgba(74, 222, 128, 0.5) 20%,
    var(--color-green-signal) 50%,
    rgba(74, 222, 128, 0.5) 80%,
    transparent
  );

  box-shadow:
    0 0 12px rgba(74, 222, 128, 0.6),
    0 0 24px rgba(74, 222, 128, 0.3);
  animation: indicatorPulse 2s ease-in-out infinite;
}

/* Active State: Outlook - Green glow at position 2 */
.hero-demo__video-wrapper[data-active-control="outlook"]::before {
  top: var(--indicator-position-outlook);
  opacity: 1;
  height: 40px;

  background: linear-gradient(180deg,
    transparent,
    rgba(74, 222, 128, 0.5) 20%,
    var(--color-green-signal) 50%,
    rgba(74, 222, 128, 0.5) 80%,
    transparent
  );

  box-shadow:
    0 0 12px rgba(74, 222, 128, 0.6),
    0 0 24px rgba(74, 222, 128, 0.3);
  animation: indicatorPulse 2s ease-in-out infinite;
}

/* Active State: Accuracy - Green glow at position 3 */
.hero-demo__video-wrapper[data-active-control="accuracy"]::before {
  top: var(--indicator-position-accuracy);
  opacity: 1;
  height: 40px;

  background: linear-gradient(180deg,
    transparent,
    rgba(74, 222, 128, 0.5) 20%,
    var(--color-green-signal) 50%,
    rgba(74, 222, 128, 0.5) 80%,
    transparent
  );

  box-shadow:
    0 0 12px rgba(74, 222, 128, 0.6),
    0 0 24px rgba(74, 222, 128, 0.3);
  animation: indicatorPulse 2s ease-in-out infinite;
}

/* Pulsing glow animation - matches connector pulse */
@keyframes indicatorPulse {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(74, 222, 128, 0.6),
      0 0 24px rgba(74, 222, 128, 0.3);
  }
  50% {
    box-shadow:
      0 0 16px rgba(74, 222, 128, 0.8),
      0 0 32px rgba(74, 222, 128, 0.4);
  }
}

/* Glass Logic Card - Active System Overlay */
.hero-demo__video-caption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 22rem;  /* Fixed width - fits longest text without truncation */
  padding: 0.75rem 1rem 0.75rem 1.25rem;  /* Extra left padding for accent bar */
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(74, 222, 128, 0.15);  /* Subtle green-tinted border */
  border-left: none;  /* Remove left border - accent bar takes its place */
  border-radius: 8px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out, box-shadow 0.3s ease-out;
  overflow: hidden;  /* Contain the accent bar */
}

/* Left accent bar with gradient glow */
.hero-demo__video-caption::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 3px;
  background: linear-gradient(180deg,
    transparent,
    rgba(74, 222, 128, 0.5) 20%,
    #4ADE80 50%,
    rgba(74, 222, 128, 0.5) 80%,
    transparent
  );
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

/* Icon container with pulse animation */
.video-caption__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(74, 222, 128, 0.1);  /* Subtle green background */
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

.video-caption__icon svg {
  width: 18px;
  height: 18px;
}

.video-caption__icon--green { color: #4CAF50; }
.video-caption__icon--amber { color: #F59E0B; }

/* Text content stack */
.video-caption__content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.video-caption__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.video-caption__label--green { color: #4CAF50; }
.video-caption__label--amber { color: #F59E0B; }

.video-caption__body {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin: 0;
}

/* Status pulse animation */
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Entrance animation state */
.hero-demo__video-caption.is-entering {
  opacity: 0;
  transform: translateY(10px);
}

/* ============================================
   SYNAPSE CONNECTION - Visual Link Effects
   ============================================ */

/* Synapse Particle - Travels from control to card */
.synapse-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4CAF50;
  box-shadow:
    0 0 6px #4CAF50,
    0 0 12px #4CAF50,
    0 0 20px rgba(74, 222, 128, 0.5);
  pointer-events: none;
  z-index: 1000;
}

/* Card bloom effect on particle arrival */
.hero-demo__video-caption.is-receiving {
  animation: cardBloom 0.6s ease-out;
}

@keyframes cardBloom {
  0% {
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.4);
  }
  30% {
    box-shadow:
      0px 8px 24px rgba(0, 0, 0, 0.4),
      0 0 40px rgba(74, 222, 128, 0.6),
      0 0 60px rgba(74, 222, 128, 0.3);
  }
  100% {
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.4);
  }
}

/* Ambient glow behind video wrapper */
.hero-demo__video-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(
    ellipse at center,
    rgba(74, 222, 128, 0.12) 0%,
    rgba(74, 222, 128, 0.05) 40%,
    transparent 70%
  );
  filter: blur(40px);
  z-index: -1;
  animation: atmospherePulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes atmospherePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero-demo__video-container {
    height: auto;
    max-height: 60vh;
  }

  .hero-demo__title-line {
    white-space: normal;
    flex-wrap: wrap;
  }

  .hero-demo__video-wrapper {
    padding: 0.85rem;
  }

  .hero-demo__video-caption {
    position: static;
    width: auto;  /* Override fixed width on mobile */
    margin-top: 0.75rem;
    transform: none;
  }

  .feature-control:hover {
    transform: none;
  }

  .feature-control[data-active="true"] {
    transform: none;
    border-width: 2px;
  }
}

/* CTA Section - Professional Foundation Green */
.cta-section {
  background: linear-gradient(135deg,
    var(--color-canvas-surface-1) 0%,
    var(--color-canvas-surface-2) 100%
  );
  color: var(--color-text-primary);
  text-align: center;
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  margin: 0 var(--container-padding);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 16px 48px rgba(0, 0, 0, 0.2);
}

.cta-section h2 {
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-body-large);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-section .btn-primary {
  background: var(--color-green-foundation);
  color: var(--color-text-primary);
  border-color: rgba(255, 255, 255, 0.12);
}

.cta-section .btn-primary:hover {
  background: var(--color-green-foundation-hover);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 90, 30, 0.3);
}

/* Footer - Minimal Light */
.footer {
  background: #FAFAF8;
  color: #6B6B6B;
  padding: 1.5rem 0;
  border-top: 1px solid #E8E8E6;
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: #6B6B6B;
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer__links a:hover {
  color: #2A2A2A;
}

.footer__social {
  color: #6B6B6B;
  transition: color var(--transition-base);
  display: flex;
  align-items: center;
}

.footer__social:hover {
  color: #2A2A2A;
}

@media (max-width: 768px) {
  .footer__content {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Footer cookie button - styled like a link */
.footer__cookie-btn {
  font-size: 0.875rem;
  color: #6B6B6B;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition-base);
}

.footer__cookie-btn:hover {
  color: #2A2A2A;
}

/* ============================================
   COOKIE CONSENT BANNER - GDPR Compliant
   ============================================ */

.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
}

.cookie-banner__content {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 480px;
  width: calc(100% - 2rem);
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.cookie-banner.is-visible .cookie-banner__content {
  transform: translateY(0);
}

.cookie-banner__title {
  font-family: 'Recoleta', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #2A2A2A;
  margin: 0 0 0.5rem;
}

.cookie-banner__description {
  font-size: 0.9375rem;
  color: #6B6B6B;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}

/* Cookie options */
.cookie-banner__options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 8px;
  background: #F8F8F6;
  transition: background 0.2s ease;
}

.cookie-option:hover {
  background: #F0F0EE;
}

.cookie-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #2F5A1E;
  cursor: pointer;
}

.cookie-option input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-option__label {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.cookie-option__label strong {
  font-size: 0.9375rem;
  color: #2A2A2A;
  font-weight: 500;
}

.cookie-option__label small {
  font-size: 0.8125rem;
  color: #6B6B6B;
}

/* Cookie action buttons */
.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-btn {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cookie-btn--primary {
  background: #2F5A1E;
  color: #FFFFFF;
  border: none;
}

.cookie-btn--primary:hover {
  background: #3D7328;
}

.cookie-btn--secondary {
  background: transparent;
  color: #2A2A2A;
  border: 1px solid #D0D0D0;
}

.cookie-btn--secondary:hover {
  background: #F8F8F6;
  border-color: #B0B0B0;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .cookie-banner__content {
    padding: 1.5rem;
  }

  .cookie-banner__title {
    font-size: 1.25rem;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-btn {
    min-width: 100%;
  }
}

/* ============================================
   MODE TOGGLE BAR
   ============================================ */

.mode-toggle-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mode-pill {
  background: transparent;
  border: 1px solid rgba(245, 241, 232, 0.2);
  border-radius: 100px;
  padding: 0.375rem 0.875rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(245, 241, 232, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-pill:hover {
  color: rgba(245, 241, 232, 0.8);
  border-color: rgba(245, 241, 232, 0.3);
}

.mode-pill--active {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ADE80;
}

.mode-pill--active:hover {
  background: rgba(74, 222, 128, 0.2);
  border-color: rgba(74, 222, 128, 0.5);
  color: #4ADE80;
}

.mode-pill:focus {
  outline: none;
}

.mode-pill:focus-visible {
  outline: 2px solid #4ADE80;
  outline-offset: 2px;
}

/* Animated mode word in headline */
.mode-word {
  display: inline-block;
  position: relative;
}

.mode-word::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: #4ADE80;
  border-radius: 2px;
}

/* Snappy horizontal slide animations */
.mode-word--exit {
  animation: slideOutLeft 0.2s ease-out forwards;
}

.mode-word--enter {
  animation: slideInRight 0.2s ease-out forwards;
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-15px);
    opacity: 0;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(15px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   MODE-SPECIFIC CONTENT VISIBILITY (Global)
   ============================================ */

/* Hide claims content when in underwriting mode (except toggle buttons) */
body.mode-underwriting [data-mode="claims"]:not(.mode-pill) {
  display: none !important;
}

/* Hide underwriting content when in claims mode (except toggle buttons) */
body.mode-claims [data-mode="underwriting"]:not(.mode-pill) {
  display: none !important;
}

/* Default: show underwriting content when no mode class is set (except toggle buttons) */
body:not(.mode-underwriting):not(.mode-claims) [data-mode="claims"]:not(.mode-pill) {
  display: none !important;
}
