/**
 * KeySend Marketing Component Styles
 *
 * Styles for marketing landing page components following the
 * neobrutalist Gumroad-inspired design system.
 *
 * Design specifications:
 * - Bold 3px black borders on all cards and sections
 * - Hard offset shadows (8px 8px 0 #000) with zero blur
 * - High contrast: Pure black (#000) on white (#FFF)
 * - Lavender Rose accent (#FBA0E3) for CTAs
 * - Heavy typography (900 H1, 800 H2, 700 H3)
 * - 8pt grid spacing
 */

/* ========================================================================
   HERO SECTION
   ======================================================================== */

.hero-section {
  padding: var(--spacing-16) var(--spacing-6) var(--spacing-24) var(--spacing-6); /* Increased bottom padding for stronger separation */
  background: var(--color-panel);
  border-bottom: var(--border-width-thin) solid var(--color-border);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge-rotated {
  transform: rotate(-1deg);
}

.hero-headline {
  margin-bottom: var(--spacing-6);
  font-size: 3rem; /* 48px */
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tighter);
  color: var(--color-ink);
}

/* Hero stats bar - F-pattern top horizontal line */
.hero-stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--spacing-8);
  margin-bottom: var(--spacing-8);
  padding: var(--spacing-4) 0;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-ink);
}

.hero-stat-icon {
  width: 24px;
  height: 24px;
  fill: var(--color-ok);
}

.hero-stat-number {
  font-weight: var(--font-weight-extra-bold);
  color: var(--color-accent);
}

.hero-subheadline {
  margin-bottom: var(--spacing-8);
  font-size: 1.25rem; /* 20px */
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  color: var(--color-muted);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  gap: var(--spacing-4);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-8); /* Add more whitespace above CTAs */
  margin-bottom: var(--spacing-6); /* Add breathing room below */
}

/* Responsive hero */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.25rem; /* 36px - increased from 32px for better mobile hierarchy */
  }

  .hero-subheadline {
    font-size: 1rem; /* 16px */
  }

  .hero-section {
    padding: var(--spacing-10) var(--spacing-4) var(--spacing-12) var(--spacing-4); /* Optimized mobile spacing with better bottom padding */
  }

  .hero-stats-bar {
    flex-direction: column;
    gap: var(--spacing-3);
    align-items: center;
  }
}

/* ========================================================================
   FEATURE CARDS
   ======================================================================== */

.features-section {
  padding: var(--spacing-24) var(--spacing-6); /* Increased from 20 to 24 (192px) for better breathing room */
  background: var(--color-paper);
}

/* Benefits grid: Asymmetric "Hero Card + Grid" pattern for visual interest */
.features-section .features-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: single column */
  gap: var(--spacing-20); /* Increased from 16 to 20 (80px) for more dramatic separation */
  max-width: 1200px; /* Increased for more breathing room */
  margin: 0 auto;
}

/* Desktop: Magazine-style asymmetric layout */
@media (min-width: 768px) {
  .features-section .features-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: var(--spacing-16); /* Slightly reduced gap for tighter composition */
  }

  /* Card 1 - Hero card spanning full width */
  .features-section .features-grid > :nth-child(1) {
    grid-column: 1 / -1;
    padding: var(--spacing-12);
  }

  /* Cards 2 & 3 - Side by side in second row */
  .features-section .features-grid > :nth-child(2) {
    grid-column: 1 / 2;
  }

  .features-section .features-grid > :nth-child(3) {
    grid-column: 2 / 3;
  }

  /* Card 4 - Centered in third row, narrower for visual interest */
  .features-section .features-grid > :nth-child(4) {
    grid-column: 1 / -1;
    max-width: 66%; /* 2/3 width */
    margin: 0 auto; /* Center it */
  }
}

/* Large desktop: Classic Z-pattern - left → right → left → right */
@media (min-width: 1024px) {
  .features-section .features-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-16); /* Good spacing for Z-pattern flow */
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Card 1 - Left (60% width) */
  .features-section .features-grid > :nth-child(1) {
    width: 60%;
    max-width: 60%;
    margin: 0 auto 0 0; /* Push to the left */
    padding: var(--spacing-12); /* Keep hero padding */
  }

  /* Card 3 - Right (60% width) */
  .features-section .features-grid > :nth-child(3) {
    width: 60%;
    max-width: 60%;
    margin: 0 0 0 auto; /* Push to the right */
    order: 2; /* Display second */
  }

  /* Card 2 - Left (60% width) */
  .features-section .features-grid > :nth-child(2) {
    width: 60%;
    max-width: 60%;
    margin: 0 auto 0 0; /* Push to the left */
    order: 3; /* Display third */
  }

  /* Card 4 - Right (60% width) */
  .features-section .features-grid > :nth-child(4) {
    width: 60%;
    max-width: 60%;
    margin: 0 0 0 auto; /* Push to the right */
    order: 4; /* Display last */
  }
}

.feature-card {
  padding: var(--spacing-8);
  background: var(--color-panel);
  border: var(--border-width-thin) solid var(--color-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-quick) var(--ease-out);
  position: relative; /* For accent border positioning */
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translate(-2px, -2px);
}

/* Add accent border to feature cards for visual pop */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--color-accent);
  border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
}

/* Problem section card variants with neobrutalist stagger - F/Z pattern with pink accent */
.problem-card-1 {
  transform: rotate(-0.5deg);
  border-left: 6px solid var(--color-accent); /* Changed from danger to accent (pink) */
}

.problem-card-2 {
  transform: rotate(0deg);
  border-left: 6px solid var(--color-accent); /* Changed from danger to accent (pink) */
}

.problem-card-3 {
  transform: rotate(0.5deg);
  border-left: 6px solid var(--color-accent); /* Changed from danger to accent (pink) */
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-6);
  border: var(--border-width-thin) solid var(--color-border);
  border-radius: var(--border-radius-lg);
  background: var(--color-bg-pink);
  color: var(--color-ink);
}

.feature-title {
  margin-bottom: var(--spacing-4); /* Increased from 3 to 4 for better breathing room */
  font-size: 1.375rem; /* 22px - slightly larger than h3 for emphasis */
  font-weight: var(--font-weight-extra-bold); /* Increased from bold to extra-bold for stronger hierarchy */
  line-height: var(--line-height-tight);
  color: var(--color-ink);
}

.feature-description {
  font-size: 1.0625rem; /* 17px - slightly larger than base for better readability */
  line-height: 1.65; /* Slightly more relaxed for easier reading */
  color: var(--color-muted);
}

/* Hero feature card gets even larger typography */
.features-section .features-grid > :nth-child(1) .feature-title {
  font-size: 1.75rem; /* 28px - larger for hero card */
  margin-bottom: var(--spacing-6);
}

.features-section .features-grid > :nth-child(1) .feature-description {
  font-size: 1.125rem; /* 18px */
  line-height: 1.7;
}

/* Responsive features grid */
@media (max-width: 1023px) {
  .features-section {
    padding: var(--spacing-16) var(--spacing-6); /* Reduced spacing on tablet */
  }
}

@media (max-width: 767px) {
  .features-section .features-grid {
    gap: var(--spacing-12); /* Reduced from 20 to 12 on mobile for tighter grouping */
  }

  .features-section {
    padding: var(--spacing-12) var(--spacing-4); /* Mobile-optimized section padding */
  }

  /* Reset hero card padding on mobile */
  .features-section .features-grid > :nth-child(1) {
    padding: var(--spacing-8) !important; /* Match other cards on mobile */
  }

  /* Reset typography sizing on mobile */
  .features-section .features-grid > :nth-child(1) .feature-title {
    font-size: 1.375rem !important; /* Match other cards */
    margin-bottom: var(--spacing-4) !important;
  }

  .features-section .features-grid > :nth-child(1) .feature-description {
    font-size: 1.0625rem !important; /* Match other cards */
  }

  /* Reset rotation on mobile for readability */
  .problem-card-1,
  .problem-card-2,
  .problem-card-3 {
    transform: rotate(0deg);
  }
}

/* ========================================================================
   PRICING SECTION
   ======================================================================== */

.pricing-section {
  padding: var(--spacing-32) var(--spacing-6); /* Increased from 20 to 32 (256px) for maximum prominence at key conversion point */
  background: var(--color-panel);
  border-top: var(--border-width-thin) solid var(--color-border);
  border-bottom: var(--border-width-thin) solid var(--color-border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2-column layout for better comparison */
  gap: var(--spacing-12); /* Increased from 8 to 12 for better separation */
  max-width: 900px; /* Constrained for better focus */
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-8);
  }

  .pricing-section {
    padding: var(--spacing-20) var(--spacing-6); /* Reduced from 32 to 20 on tablet */
  }
}

.pricing-tier {
  padding: var(--spacing-8);
  background: var(--color-panel);
  border: var(--border-width-thin) solid var(--color-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.pricing-tier-featured {
  background: var(--color-bg-pink);
  border-width: 4px; /* Increased from 3px for visual prominence */
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(1.05) translateY(-4px); /* Subtle lift for emphasis */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-tier-featured:hover {
  transform: scale(1.05) translateY(-8px); /* Increased lift on hover */
  box-shadow: 12px 12px 0 #000; /* Larger shadow on hover */
}

.pricing-tier-featured::before {
  content: "RECOMMENDED";
  position: absolute;
  top: -14px;
  right: var(--spacing-6);
  padding: var(--spacing-3) var(--spacing-5);
  background: var(--color-accent);
  border: 3px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-black);
  letter-spacing: 0.05em;
  box-shadow: 4px 4px 0 #000;
  transform: rotate(-2deg); /* Neobrutalist sticker effect */
}

.pricing-tier-header {
  padding-bottom: var(--spacing-6);
  border-bottom: var(--border-width-thin) solid var(--color-border);
  margin-bottom: var(--spacing-6);
}

.pricing-tier-name {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-4);
  color: var(--color-ink);
}

.pricing-price {
  font-size: 2.5rem; /* 40px */
  font-weight: var(--font-weight-black);
  color: var(--color-ink);
  line-height: 1;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-8) 0;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-3);
  padding: var(--spacing-3) 0;
  font-size: var(--font-size-body);
  color: var(--color-ink);
}

.pricing-feature-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-ok);
}

.pricing-tier-cta {
  margin-top: auto;
  padding-top: var(--spacing-6); /* Add breathing room above CTA */
}

.pricing-tier-cta .btn {
  width: 100%;
  box-shadow: var(--shadow-md); /* Add more prominence to CTA buttons */
  transition: all var(--duration-quick) var(--ease-out);
}

.pricing-tier-cta .btn:hover {
  box-shadow: var(--shadow-lg); /* Enhance on hover */
  transform: translate(-2px, -2px);
}

/* Mobile CTA buttons - larger touch targets */
@media (max-width: 768px) {
  .btn-lg {
    padding: 18px 32px; /* Increased from default for 56px height target */
    font-size: 1.125rem; /* Slightly larger on mobile */
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
  }

  .pricing-section {
    padding: var(--spacing-16) var(--spacing-4); /* Mobile-optimized pricing section */
  }

  /* Remove scale transform on mobile for featured tier */
  .pricing-tier-featured {
    transform: scale(1) translateY(0);
  }

  .pricing-tier-featured:hover {
    transform: scale(1) translateY(-4px);
  }
}

/* ========================================================================
   TESTIMONIALS
   ======================================================================== */

.testimonials-section {
  padding: var(--spacing-24) var(--spacing-6); /* Increased from 20 to 24 (192px) - social proof emphasis */
  background: var(--color-paper);
}

/* Problem section - emphasize pain points with F/Z pattern layout */
.problem-section {
  padding: var(--spacing-24) var(--spacing-6); /* Increased from 20 to 24 (192px) - emphasize pain points with dramatic spacing */
  background: var(--color-paper);
}

/* F/Z Pattern: First card full width (F-pattern top), then 2 cards side-by-side (Z-pattern) */
.problem-section .features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr; /* Single column by default */
  gap: var(--spacing-20);
}

/* First card spans full width for F-pattern emphasis */
.problem-section .problem-card-1 {
  grid-column: 1 / -1;
}

/* Desktop: Cards 2 and 3 form Z-pattern (side by side) */
@media (min-width: 768px) {
  .problem-section .features-grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns for cards 2 and 3 */
  }

  /* Card 1 spans both columns for F-pattern top */
  .problem-section .problem-card-1 {
    grid-column: 1 / -1;
  }
}

/* Stats showcase section */
.stats-showcase-section {
  padding: var(--spacing-24) var(--spacing-6); /* Increased from 20 to 24 (192px) for better breathing room */
  background: var(--color-bg-pink);
  border-top: var(--border-width-thin) solid var(--color-border);
}

/* Section background variations */
.section-bg-panel {
  background: var(--color-panel);
}

.section-bg-paper {
  background: var(--color-paper);
}

.section-bg-paper-no-border {
  background: var(--color-paper);
  border-bottom: none;
}

.section-bg-pink-cta {
  background: var(--color-bg-pink);
  border-top: var(--border-width-thin) solid var(--color-border);
  border-bottom: none;
  padding: var(--spacing-32) var(--spacing-6); /* Dramatic spacing for final conversion point */
}

/* How it works section specific - Z-pattern matching features (left → right → left → right) */
.how-it-works-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: single column */
  gap: var(--spacing-20); /* Match features section spacing */
  max-width: 1200px; /* Match features section */
  margin: 0 auto;
}

/* Tablet: 2-column grid */
@media (min-width: 768px) {
  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-16);
  }
}

/* Desktop: Z-pattern (starts left, same as features) */
@media (min-width: 1024px) {
  .how-it-works-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-16); /* Match features section */
    max-width: 1200px;
  }

  /* Card 1 - Left (60% width) */
  .how-it-works-grid > :nth-child(1) {
    width: 60%;
    max-width: 60%;
    margin: 0 auto 0 0; /* Push to the left */
  }

  /* Card 2 - Right (60% width) */
  .how-it-works-grid > :nth-child(2) {
    width: 60%;
    max-width: 60%;
    margin: 0 0 0 auto; /* Push to the right */
  }

  /* Card 3 - Left (60% width) */
  .how-it-works-grid > :nth-child(3) {
    width: 60%;
    max-width: 60%;
    margin: 0 auto 0 0; /* Push to the left */
  }

  /* Card 4 - Right (60% width) */
  .how-it-works-grid > :nth-child(4) {
    width: 60%;
    max-width: 60%;
    margin: 0 0 0 auto; /* Push to the right */
  }
}

@media (max-width: 767px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-12); /* Match features mobile spacing */
  }
}

.stats-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-20); /* Increased from 16 to 20 (80px) for more breathing room between stats */
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stats-showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-3);
}

.stats-showcase-number {
  font-size: 4rem; /* 64px */
  font-weight: var(--font-weight-black);
  color: var(--color-accent);
  line-height: 1;
}

.stats-showcase-label {
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-ink);
}

.stats-showcase-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--spacing-2);
  fill: var(--color-accent);
}

/* SVG fill utilities */
.fill-ok {
  fill: var(--color-ok);
}

.fill-accent {
  fill: var(--color-accent);
}

.fill-muted {
  fill: var(--color-muted);
}

/* Final CTA section specific styles */
.final-cta-headline {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-6); /* Add spacing below headline */
}

.final-cta-subheadline {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-8); /* Add spacing before CTA buttons */
}

@media (max-width: 768px) {
  .stats-showcase-section {
    padding: var(--spacing-16) var(--spacing-4); /* Mobile-optimized stats section */
  }

  .stats-showcase-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-10); /* Increased from 8 to 10 for better separation */
  }

  .stats-showcase-number {
    font-size: 3rem; /* 48px on mobile */
  }
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Fixed 3-column for better visual balance */
  gap: var(--spacing-16); /* Increased from 12 to 16 (64px) for better separation between testimonials */
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-8);
  }
}

.testimonial {
  padding: var(--spacing-8);
  background: var(--color-panel);
  border: var(--border-width-thin) solid var(--color-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  margin: 0 0 var(--spacing-6) 0;
  font-size: 1.125rem; /* 18px */
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-relaxed);
  color: var(--color-ink);
  position: relative;
}

.testimonial-quote::before {
  content: "\201C"; /* Left double quotation mark */
  font-size: 3rem;
  font-weight: var(--font-weight-black);
  color: var(--color-accent);
  position: absolute;
  top: -10px;
  left: -20px;
  line-height: 1;
}

.testimonial-attribution {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  padding-top: var(--spacing-6);
  border-top: var(--border-width-thin) solid var(--color-border);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border: var(--border-width-thin) solid var(--color-border);
  border-radius: var(--border-radius-full);
  object-fit: cover;
}

.testimonial-author-info {
  flex-grow: 1;
}

.testimonial-author {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-body);
  color: var(--color-ink);
}

.testimonial-company {
  font-size: var(--font-size-small);
  color: var(--color-muted);
  margin-top: var(--spacing-1);
}

/* Responsive testimonials grid */
@media (max-width: 768px) {
  .testimonials-section {
    padding: var(--spacing-16) var(--spacing-4); /* Mobile-optimized testimonials section */
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-8); /* Increased from 6 to 8 for better separation */
  }

  .problem-section {
    padding: var(--spacing-16) var(--spacing-4); /* Mobile-optimized problem section */
  }
}

/* ========================================================================
   LANDING PAGE SECTIONS
   ======================================================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-20); /* Increased from 16 to 20 (80px) for better separation between headers and content */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-extra-bold);
  margin-bottom: var(--spacing-4);
  color: var(--color-ink);
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-muted);
  line-height: var(--line-height-relaxed);
}

/* ========================================================================
   DASHBOARD PREVIEW
   ======================================================================== */

.dashboard-preview {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--color-panel);
  border: var(--border-width-thin) solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-12); /* Increased from 10 to 12 for more breathing room */
  box-shadow: var(--shadow-lg);
}

.dashboard-preview-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-8); /* Increased from 6 to 8 for better separation */
  margin-bottom: var(--spacing-12); /* Increased from 10 to 12 for more emphasis */
}

.dashboard-preview-kpi {
  padding: var(--spacing-6);
  background: var(--color-panel);
  border: var(--border-width-thin) solid var(--color-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.dashboard-preview-kpi-pink {
  background: var(--color-bg-pink);
}

.dashboard-preview-kpi-blue {
  background: var(--color-bg-blue);
}

.dashboard-preview-kpi-yellow {
  background: var(--color-bg-yellow);
}

.dashboard-preview-kpi-green {
  background: var(--color-bg-green);
}

.dashboard-preview-kpi-label {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-muted);
  margin-bottom: var(--spacing-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-preview-kpi-value {
  font-size: 2rem;
  font-weight: var(--font-weight-black);
  color: var(--color-ink);
  margin-bottom: var(--spacing-2);
  line-height: 1;
}

.dashboard-preview-kpi-trend {
  font-size: var(--font-size-small);
  color: var(--color-ok);
  font-weight: var(--font-weight-medium);
}

.dashboard-preview-campaigns {
  background: var(--color-paper);
  border: var(--border-width-thin) solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-6);
}

.dashboard-preview-campaigns-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-6);
  padding-bottom: var(--spacing-4);
  border-bottom: var(--border-width-thin) solid var(--color-border);
}

.dashboard-preview-campaigns-title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
}

.dashboard-preview-campaigns-link {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  cursor: not-allowed;
}

.dashboard-preview-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dashboard-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-small);
}

.dashboard-preview-table thead {
  background: var(--color-wash);
  border-bottom: var(--border-width-thin) solid var(--color-border);
}

.dashboard-preview-table th {
  padding: var(--spacing-3) var(--spacing-4);
  text-align: left;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-small);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-preview-table td {
  padding: var(--spacing-4);
  border-bottom: var(--border-width-thin) solid var(--color-border);
  color: var(--color-ink);
}

.dashboard-preview-table tbody tr:last-child td {
  border-bottom: none;
}

.dashboard-preview-table-campaign {
  font-weight: var(--font-weight-semibold);
}

.dashboard-preview-table-time {
  color: var(--color-muted);
  font-size: var(--font-size-small);
}

.dashboard-preview-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.badge-info {
  background: var(--color-info);
  color: white;
  border-color: var(--color-info);
}

.badge-warning {
  background: var(--color-warn);
  color: var(--color-ink);
  border-color: var(--color-warn);
}

.badge-default {
  background: var(--color-wash);
  color: var(--color-muted);
}

/* Responsive dashboard preview */
@media (max-width: 1024px) {
  .dashboard-preview-kpis {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-4);
  }
}

@media (max-width: 768px) {
  .dashboard-preview {
    padding: var(--spacing-8); /* Increased from 6 to 8 for better mobile spacing */
  }

  .dashboard-preview-kpis {
    grid-template-columns: 1fr;
    gap: var(--spacing-6); /* Increased from 4 to 6 for better card separation */
    margin-bottom: var(--spacing-8); /* Increased from 6 to 8 */
  }

  .dashboard-preview-kpi-value {
    font-size: 1.5rem;
  }

  .dashboard-preview-campaigns-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-2);
  }

  .dashboard-preview-table {
    font-size: 12px;
  }

  .dashboard-preview-table th,
  .dashboard-preview-table td {
    padding: var(--spacing-2) var(--spacing-3);
  }
}

/* ========================================================================
   FOOTER
   ======================================================================== */

.landing-footer {
  padding: var(--spacing-16) var(--spacing-6); /* Increased from 12 to 16 for better footer breathing room */
  background: var(--color-panel);
  border-top: var(--border-width-thin) solid var(--color-border);
}

.landing-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-8);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.footer-column-title {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-body);
  margin-bottom: var(--spacing-2);
  color: var(--color-ink);
}

.footer-link {
  color: var(--color-muted);
  text-decoration: none;
  font-size: var(--font-size-small);
  transition: color var(--duration-fast) var(--ease-out);
}

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

.footer-bottom {
  margin-top: var(--spacing-8);
  padding-top: var(--spacing-6);
  border-top: var(--border-width-thin) solid var(--color-border);
  text-align: center;
  font-size: var(--font-size-small);
  color: var(--color-muted);
}

/* Responsive footer */
@media (max-width: 768px) {
  .landing-footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
  }
}

/* ========================================================================
   STICKY MOBILE CTA
   ======================================================================== */

.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-4) var(--spacing-4);
  background: var(--color-panel);
  border-top: var(--border-width-thin) solid var(--color-border);
  box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: none; /* Hidden by default, shown on mobile via media query */
}

.sticky-mobile-cta.visible {
  transform: translateY(0);
}

.sticky-mobile-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-3);
  max-width: 600px;
  margin: 0 auto;
}

.sticky-mobile-cta-text {
  flex: 1;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-ink);
}

.sticky-mobile-cta-button {
  flex-shrink: 0;
  padding: 14px 24px;
  background: var(--color-accent);
  border: 3px solid var(--color-border);
  border-radius: var(--border-radius-md);
  color: var(--color-accent-ink);
  font-weight: var(--font-weight-extra-bold);
  font-size: var(--font-size-body);
  text-decoration: none;
  box-shadow: 4px 4px 0 #000;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sticky-mobile-cta-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

.sticky-mobile-cta-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.sticky-mobile-cta-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-full);
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sticky-mobile-cta-close:hover {
  background: var(--color-wash);
  color: var(--color-ink);
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: block; /* Show on mobile only */
  }
}
