/* /public/css/pages/home.css */

/* ==================================================================
   1. General Layout & Sections
   Shared section styles (.home-section, .section-header, .final-cta,
   .reveal) are in landing-shared.css — loaded by all landing pages.
   ================================================================== */
   .home-page {
    background-color: var(--color-slate-50);
    color: var(--color-slate-600);
  }

  .home-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
  }

  @media (max-width: 768px) {
    .home-page .container {
      padding: 0 var(--space-4);
    }
  }
  
  /* ==================================================================
     2. Hero Section
     ================================================================== */
  .hero {
    padding: var(--space-16) 0 var(--space-24);
    text-align: center;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-slate-200);
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(var(--color-slate-200, #e2e8f0) 1px, transparent 1px),
        linear-gradient(to right, var(--color-slate-200, #e2e8f0) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: 1;
  }

  .hero__content {
    position: relative;
    z-index: 2;
    max-width: 850px;
  }

  .hero__tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    padding: var(--space-2) var(--space-4);
    background: rgba(79, 70, 229, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
  }

  .hero__title {
    font-size: clamp(2.75rem, 7vw, 4.25rem);
    font-weight: 800;
    color: var(--color-slate-900);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
  }
  
  .hero__title .highlight {
    color: var(--color-primary);
    padding-bottom: 4px;
  }
  
  .hero__subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-slate-700);
    max-width: 700px;
    margin: 0 auto var(--space-8);
    line-height: 1.7;
  }
  
  .hero__cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
  
  .hero__cta {
    font-size: var(--font-size-lg);
    padding: var(--space-4) var(--space-8);
  }
  
  .hero__sub-cta {
    font-size: var(--font-size-sm);
    color: var(--color-slate-500);
  }

  .hero__permission-hint {
    display: inline-block;
    margin-top: 0.375rem;
    font-size: var(--font-size-xs);
    color: var(--color-gray-400);
    font-weight: var(--font-weight-normal);
  }

  .hero__permission-hint i {
    margin-right: 0.2rem;
    font-size: 0.6875rem;
  }

  /* ==================================================================
     3. Trust Bar
     ================================================================== */
  .trust-bar {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-slate-200);
    padding: var(--space-6) 0;
  }
  
  .trust-bar__grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-6);
  }
  
  .trust-bar__item {
    text-align: center;
    color: var(--color-slate-500);
  }
  
  .trust-bar__item strong {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-slate-900);
    line-height: 1;
    display: block;
    margin-bottom: var(--space-1);
  }
  
  .trust-bar__item span {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  /* ==================================================================
     4. "Does This Sound Familiar?" Section (Formerly Problem/Solution)
     ================================================================== */
  .familiar-section {
    background-color: var(--color-slate-100);
    border-bottom: 1px solid var(--color-slate-200);
  }
  
  .familiar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .familiar-card {
    background-color: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-slate-200);
    box-shadow: var(--shadow-base);
  }
  
  .familiar-card__icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
    color: var(--color-primary);
  }
  
  .familiar-card__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-slate-800);
    margin-bottom: var(--space-3);
  }
  
  .familiar-card__text {
    font-size: var(--font-size-base);
    color: var(--color-slate-600);
    line-height: var(--line-height-loose);
  }
  
  /* ==================================================================
     5. How It Works
     ================================================================== */
  .how-it-works {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-slate-200);
  }
  
  .how-it-works__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    position: relative;
  }
  
  /* Dashed connecting lines */
  .how-it-works__grid::before {
    content: '';
    position: absolute;
    top: 32px; /* Vertically centered on the icons */
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background-image: linear-gradient(to right, var(--color-slate-300) 66%, transparent 33%);
    background-size: 10px 2px;
    background-repeat: repeat-x;
    z-index: 1;
  }
  
  .how-it-works__step {
    background-color: transparent;
    text-align: center;
    position: relative;
    z-index: 2;
  }
  
  .how-it-works__icon-wrapper {
    font-size: var(--font-size-2xl);
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    background-color: var(--color-white);
    border: 2px solid var(--color-slate-200);
  }
  
  .how-it-works__step:nth-child(1) .how-it-works__icon-wrapper { color: var(--color-brand-green); }
  .how-it-works__step:nth-child(2) .how-it-works__icon-wrapper { color: var(--color-brand-blue); }
  .how-it-works__step:nth-child(3) .how-it-works__icon-wrapper { color: var(--color-brand-purple); }
  
  .how-it-works__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-slate-900);
    margin-bottom: var(--space-3);
  }
  
  .how-it-works__description {
    color: var(--color-slate-600);
    line-height: var(--line-height-loose);
  }
  
  @media (max-width: 992px) {
    .how-it-works__grid {
      grid-template-columns: 1fr;
    }
    .how-it-works__grid::before {
      display: none;
    }
  }

  /* ==================================================================
     5.5 COLLABORATION TYPES SECTION
     ================================================================== */
  .collab-types-section {
    background-color: var(--color-slate-50);
    border-bottom: 1px solid var(--color-slate-200);
  }

  .collab-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
  }

  .collab-type-card {
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--color-slate-200);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    text-decoration: none; /* For link cards */
    overflow: visible; /* Allow badge to hang outside */
  }

  .collab-type-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-slate-300);
  }

  /* Tool Card Specifics */
  .collab-type-card--tool {
    cursor: pointer;
    border-color: var(--color-brand-purple-light);
    box-shadow: 0 4px 6px rgba(124, 58, 237, 0.05);
  }

  .collab-type-card--tool:hover {
    border-color: var(--color-brand-purple);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.1);
  }

  /* Icon Style for the Tool Card */
  .collab-type-card__icon--tool {
    color: #8b5cf6; 
    background-color: #f5f3ff; 
    border-color: #ddd6fe;
  }

  .collab-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--color-brand-purple);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    z-index: 10;
  }

  .collab-type-card__header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
  }

  .collab-type-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--color-slate-100);
    color: var(--color-slate-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid var(--color-slate-200);
  }

  .collab-type-card__title-group {
    flex: 1;
    /* Add padding so title doesn't hit the badge */
    padding-right: 20px; 
  }

  .collab-type-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin: 0 0 4px 0;
    line-height: 1.2;
  }

  .collab-type-card__goal {
    font-size: 0.9rem;
    color: var(--color-slate-500);
    margin: 0;
    font-weight: 500;
  }

  .collab-type-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-slate-100);
  }

  .meta-item {
    font-size: 0.85rem;
    color: var(--color-slate-600);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .meta-item strong {
    color: var(--color-slate-800);
  }

  .collab-type-card__description {
    font-size: 1rem;
    color: var(--color-slate-600);
    line-height: 1.6;
    margin: 0;
  }
  
  /* ==================================================================
     5.5 Earn From Brand Sponsorships Section
     ================================================================== */
  .brand-earn-section {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-slate-200);
  }

  .brand-earn__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    max-width: 1100px;
    margin: 0 auto;
  }

  .brand-earn__card {
    background-color: var(--color-slate-50);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-slate-200);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .brand-earn__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-slate-300);
  }

  .brand-earn__icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
    color: var(--color-success);
  }

  .brand-earn__card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-slate-800);
    margin-bottom: var(--space-3);
  }

  .brand-earn__card-text {
    font-size: var(--font-size-base);
    color: var(--color-slate-600);
    line-height: var(--line-height-loose);
  }

  .brand-earn__cta {
    text-align: center;
    margin-top: var(--space-12);
  }

  /* ==================================================================
     6. Testimonials Section
     ================================================================== */
  .testimonials-section {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-slate-200);
  }
  
  .testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
  }
  
  .testimonial-card {
    background-color: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-slate-200);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-base);
  }
  
  .testimonial-card__quote {
    font-size: var(--font-size-base);
    color: var(--color-slate-700);
    line-height: var(--line-height-loose);
    margin: 0 0 var(--space-6);
    flex-grow: 1;
    position: relative;
    padding-left: var(--space-6);
  }
  
  .testimonial-card__quote::before {
    content: '“';
    position: absolute;
    left: -4px;
    top: -12px;
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.2;
  }
  
  .testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: auto;
  }
  
  .testimonial-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-slate-200);
  }
  
  .testimonial-card__author-name {
    font-weight: var(--font-weight-semibold);
    color: var(--color-slate-900);
  }
  
  .testimonial-card__author-channel {
    font-size: var(--font-size-sm);
    color: var(--color-slate-500);
  }

  /* ==================================================================
     7. Live Activity Feed Section
     ================================================================== */
  .activity-feed-section {
    background-color: var(--color-slate-100);
    border-bottom: 1px solid var(--color-slate-200);
  }

  .section-header__tag--live {
    background-color: var(--color-danger-light);
    color: var(--color-danger);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
  }

  .live-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--color-danger);
    border-radius: 50%;
    animation: pulse-live 1.5s infinite ease-in-out;
  }

  @keyframes pulse-live {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
  }
  
  .activity-feed__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-6);
  }

  /* On larger screens, force a 4-column grid for the 12 items */
  @media (min-width: 1500px) {
    .activity-feed__grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .activity-card {
    background-color: var(--color-white);
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-slate-200);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    box-shadow: var(--shadow-base);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
  }
  .activity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(var(--color-primary-rgb-v2), 0.15);
  }
  
  .activity-card__avatars {
    display: flex;
    position: relative;
    width: 72px; /* Increased width to accommodate larger avatars */
    height: 48px;
    flex-shrink: 0;
  }
  
  .activity-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 3px solid var(--color-white);
    position: absolute;
    top: 0;
    box-shadow: var(--shadow-sm);
  }
  
  .activity-card__avatar--completer { left: 0; z-index: 2; background-color: var(--color-slate-200); }
  .activity-card__avatar--requester { left: 24px; z-index: 1; background-color: var(--color-slate-200); }
  
  .activity-card__content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .activity-card__text {
    color: var(--color-slate-700);
    line-height: 1.5;
    margin: 0;
    font-size: var(--font-size-sm);
  }
  
  .activity-card__text strong {
    color: var(--color-slate-900);
    font-weight: var(--font-weight-semibold);
  }
  
  .activity-card__task-type {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
  }
  
  .activity-card__time {
    font-size: var(--font-size-xs);
    color: var(--color-slate-500);
    margin-top: var(--space-1);
  }
  
  .activity-feed__cta {
    text-align: center;
    margin-top: var(--space-12);
  }
  
  /* ==================================================================
     7.5 For Brands Routing Section
     ================================================================== */
  .brands-route-section {
    background-color: var(--color-slate-50);
    border-bottom: 1px solid var(--color-slate-200);
    padding: var(--space-16) 0;
  }

  .brands-route__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    max-width: 900px;
    margin: 0 auto;
  }

  .brands-route__text {
    flex: 1;
  }

  .brands-route__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--color-slate-900);
    line-height: 1.2;
    margin-bottom: var(--space-3);
  }

  .brands-route__subtitle {
    font-size: var(--font-size-base);
    color: var(--color-slate-600);
    line-height: var(--line-height-loose);
  }

  .brands-route__cta {
    flex-shrink: 0;
  }

  @media (max-width: 768px) {
    .brands-route__content {
      flex-direction: column;
      text-align: center;
    }
    .brands-route__cta .button {
      width: 100%;
    }
  }

  /* Final CTA and Reveal styles are in landing-shared.css */

/* ==================================================================
   NEW: "How It Works" for Autopilot Model
   ================================================================== */
   .new-how-it-works__grid .how-it-works__icon-wrapper {
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  
  .new-how-it-works__grid .how-it-works__step:nth-child(1) .how-it-works__icon-wrapper {
    background: var(--color-brand-green);
  }
  .new-how-it-works__grid .how-it-works__step:nth-child(2) .how-it-works__icon-wrapper {
    background: var(--color-brand-blue);
  }
  .new-how-it-works__grid .how-it-works__step:nth-child(3) .how-it-works__icon-wrapper {
    background: var(--color-brand-purple);
  }
  
  /* Ensure connecting line still works with new grid class */
  .new-how-it-works__grid::before {
      content: '';
      position: absolute;
      top: 32px;
      left: 16.66%;
      right: 16.66%;
      height: 2px;
      background-image: linear-gradient(to right, var(--color-slate-300) 66%, transparent 33%);
      background-size: 10px 2px;
      background-repeat: repeat-x;
      z-index: 1;
  }
  
  @media (max-width: 992px) {
      .new-how-it-works__grid::before {
          display: none;
      }
  }

/* /public/css/pages/home.css */

/*
* FIX: Homepage "How it Works" Icon Color
* This rule targets the icons inside the circular wrappers
* in "The Fair Way to Grow Your Channel" section and sets their color to white.
*/
.how-it-works__icon-wrapper i {
  color: #ffffff;
}