/* /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-600); /* 7:1 contrast — was gray-400 (3:1, failed WCAG AA) */
    font-weight: var(--font-weight-normal);
  }

  .hero__permission-hint i {
    margin-right: 0.2rem;
    font-size: var(--font-size-xs);
  }

  /* ==================================================================
     3. Trust Bar
     ================================================================== */
  .trust-bar {
    background: var(--color-gray-900);
    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-gray-400);
  }

  .trust-bar__item strong {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    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;
  }
  
  /* ==================================================================
     3.5 Platform Overview — 4 Pillars
     ================================================================== */
  .platform-overview {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-slate-200);
  }

  .platform-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
  }

  .platform-pillar {
    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;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
  }

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

  .platform-pillar__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: var(--space-5);
    color: var(--color-white);
  }

  .platform-pillar__icon--grow { background: var(--color-brand-green); }
  .platform-pillar__icon--tools { background: var(--color-brand-blue); }
  .platform-pillar__icon--earn { background: var(--color-brand-purple); }
  .platform-pillar__icon--hire { background: var(--color-primary); }

  .platform-pillar__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-slate-900);
    margin-bottom: var(--space-3);
  }

  .platform-pillar__text {
    font-size: var(--font-size-sm);
    color: var(--color-slate-600);
    line-height: var(--line-height-loose);
    flex-grow: 1;
    margin-bottom: var(--space-4);
  }

  .platform-pillar__link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: gap 0.15s ease;
  }

  .platform-pillar:hover .platform-pillar__link {
    gap: var(--space-3);
  }

  @media (max-width: 992px) {
    .platform-pillars {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 600px) {
    .platform-pillars {
      grid-template-columns: 1fr;
    }
    .platform-pillar {
      padding: var(--space-6);
    }
  }

  /* ==================================================================
     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: var(--font-size-xs);
    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);
  }

  /* Testimonials section CSS removed — section was removed from template.
     Keeping comment for git history reference. */

  /* ==================================================================
     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: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #ede9fe 100%);
    border-top: 1px solid #c7d2fe;
    border-bottom: 1px solid #c7d2fe;
    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;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: var(--space-8) var(--space-10);
    border: 1px solid rgba(99, 102, 241, 0.12);
  }

  .brands-route__text {
    flex: 1;
  }

  .brands-route__text .section-header__tag {
    background: rgba(79, 70, 229, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(79, 70, 229, 0.15);
  }

  .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;
      padding: var(--space-6) var(--space-5);
    }
    .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;
}

/* ==================================================================
   MOBILE APP-GRADE REBUILD (<=767px) — /design pass 2026-05-18
   Scoped to .home-page ONLY. Desktop and the other landing pages that
   share landing-shared.css are untouched (no edits to shared files).
   Goal: cut the 17,900px / 22-screen mobile page to a tight, native-feel
   marketing narrative; kill the P0 horizontal scroll; indigo primary CTA;
   always-reachable sticky conversion bar.
   ================================================================== */
@keyframes hpFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 767px) {

  /* ---- P0: kill horizontal scroll (was 389px in a 375px viewport) ---- */
  .home-page { overflow-x: hidden; }
  .home-page .container { padding-left: 16px; padding-right: 16px; }

  /* Every homepage CTA: full width, wrap, never exceed the viewport.
     The oversized btn-youtube / button--lg intrinsic widths were the
     overflow source in the hero + brands-route sections. */
  .home-page .btn-youtube,
  .home-page .button,
  .home-page .hero__cta,
  .home-page .brands-route__cta .button,
  .home-page .final-cta__buttons .button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
  }

  /* ---- Primary CTA: brand-red -> indigo (CTAs are indigo, red is
     YouTube-logo only). btn-youtube is an <a>, so the global
     a:hover { color: primary-dark } in typography.css would repaint
     the label indigo on hover — every state is pinned to white. ---- */
  .home-page .hero__cta.btn-youtube,
  .home-page .hero__cta.btn-youtube:link,
  .home-page .hero__cta.btn-youtube:visited,
  .home-page .hero__cta.btn-youtube:hover,
  .home-page .hero__cta.btn-youtube:focus,
  .home-page .hero__cta.btn-youtube:focus-visible,
  .home-page .hero__cta.btn-youtube:active,
  .home-page .final-cta__buttons .btn-youtube,
  .home-page .final-cta__buttons .btn-youtube:link,
  .home-page .final-cta__buttons .btn-youtube:visited,
  .home-page .final-cta__buttons .btn-youtube:hover,
  .home-page .final-cta__buttons .btn-youtube:focus,
  .home-page .final-cta__buttons .btn-youtube:focus-visible,
  .home-page .final-cta__buttons .btn-youtube:active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
  }
  .home-page .hero__cta.btn-youtube:hover,
  .home-page .hero__cta.btn-youtube:focus-visible,
  .home-page .final-cta__buttons .btn-youtube:hover,
  .home-page .final-cta__buttons .btn-youtube:focus-visible {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
  }
  .home-page .btn-youtube i,
  .home-page .btn-youtube__icon { color: inherit; }

  /* Tactile depress on every tap target (native feel) */
  .home-page .btn-youtube:active,
  .home-page .button:active,
  .home-page .platform-pillar:active,
  .home-page .collab-type-card:active,
  .home-page .home-cta-bar__btn:active {
    transform: scale(0.985);
    transition: transform 80ms ease;
  }

  /* ---- Section rhythm: the single biggest length win.
     Was: 48px section padding + ~280px repeated header chrome x10. ---- */
  .home-page .home-section { padding: 30px 0; }
  .home-page .section-header {
    text-align: left;
    max-width: none;
    margin: 0 auto 18px;
  }
  /* eyebrow pill -> lightweight uppercase label (kills ~45px x8 of chrome) */
  .home-page .section-header__tag {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .home-page .section-header__tag--live { color: var(--color-danger); }
  .home-page .section-header__title {
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }
  .home-page .section-header__subtitle {
    font-size: 14px;
    line-height: 1.6;
  }

  /* ---- Hero: app-grade left-aligned statement ---- */
  .home-page .hero { padding: 22px 0 28px; text-align: left; }
  .home-page .hero::before { background-size: 32px 32px; opacity: 0.22; }
  .home-page .hero__content { max-width: none; }
  .home-page .hero__tag {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .home-page .hero__title {
    font-size: 1.9rem;
    line-height: 1.14;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
  }
  /* Two-tone headline must switch color at a line boundary, never
     mid-line ("Platform Where You" had black+indigo on one line). */
  .home-page .hero__title .highlight {
    display: block;
    margin-top: 2px;
  }
  .home-page .hero__subtitle {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 22px;
    max-width: none;
    color: var(--color-slate-600);
  }
  .home-page .hero__cta-container { align-items: stretch; gap: 12px; }
  .home-page .hero__cta {
    font-size: 16px;
    padding: 16px 20px;
    border-radius: 14px;
  }
  .home-page .hero__sub-cta { font-size: 13px; text-align: left; }
  .home-page .hero__permission-hint { font-size: 12px; }

  /* ---- Trust bar: balanced 2x2 hairline proof panel (iOS summary-card
     style). The old 1-span + 2-col + orphaned-4th layout left a dead
     dark void and ragged wrapping labels. ---- */
  .home-page .trust-bar { padding: 26px 0; }
  .home-page .trust-bar__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .home-page .trust-bar__item {
    text-align: center;
    padding: 16px 8px;
    color: var(--color-gray-400);
  }
  .home-page .trust-bar__item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .home-page .trust-bar__item:nth-child(1),
  .home-page .trust-bar__item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .home-page .trust-bar__item strong {
    display: block;
    font-size: 1.6rem;
    line-height: 1.05;
    margin-bottom: 6px;
  }
  .home-page .trust-bar__item:first-child strong {
    font-size: 1.95rem;
    color: var(--color-white);
  }
  .home-page .trust-bar__item span {
    display: block;
    font-size: 10px;
    letter-spacing: 0.06em;
    line-height: 1.3;
  }

  /* ---- Cards: tighten internal padding + grid gaps ---- */
  .home-page .platform-pillar,
  .home-page .familiar-card,
  .home-page .collab-type-card,
  .home-page .brand-earn__card { padding: 18px 16px; border-radius: 16px; }
  .home-page .platform-pillars,
  .home-page .familiar-grid,
  .home-page .collab-types-grid,
  .home-page .brand-earn__grid,
  .home-page .how-it-works__grid { gap: 12px; }

  /* ---- Tool card "NEW TOOL" badge: was position:absolute corner-pinned
     with only 20px title clearance, so "Thumbnail A/B Tester Tool" wrapped
     UNDER the badge at 375px (caught by full-band scan, not sampling).
     A fixed padding-right is fragile here because the site is machine-
     translated into 34 languages (a longer translated badge or title would
     re-collide). Flow the badge as a static pill above the header instead:
     zero collision regardless of string length, and a clean native pattern
     (App Store-style "NEW" label above the card content). ---- */
  .home-page .collab-type-card--tool .collab-card-badge {
    position: static;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    margin: 0 0 12px;
    top: auto;
    right: auto;
  }
  .home-page .collab-type-card--tool .collab-type-card__title-group {
    padding-right: 0;
  }
  .home-page .platform-pillar__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }

  /* how-it-works: left-aligned to match the rest of the page (was the
     only centered section), tighter inter-step rhythm */
  .home-page .how-it-works__grid { gap: 20px; }
  .home-page .how-it-works__step { text-align: left; }
  .home-page .how-it-works__icon-wrapper {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }

  /* Unify icon language: familiar + brand-earn used bare glyphs while
     every other card family had a tinted chip. Give them matching chips. */
  .home-page .familiar-card__icon,
  .home-page .brand-earn__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
  }
  .home-page .familiar-card__icon {
    background: var(--color-primary-soft);
    color: var(--color-primary);
  }
  .home-page .brand-earn__icon {
    background: var(--color-success-light);
    color: var(--color-success-dark);
  }
  .home-page .familiar-card__title,
  .home-page .brand-earn__card-title,
  .home-page .how-it-works__title { font-size: 1.05rem; }
  .home-page .platform-pillar__text,
  .home-page .familiar-card__text,
  .home-page .brand-earn__card-text,
  .home-page .how-it-works__description,
  .home-page .collab-type-card__description { font-size: 14px; line-height: 1.55; }

  /* ---- Mid-page section CTAs -> outline (one filled hero + sticky +
     final is the conversion spine; mid CTAs become quieter) ---- */
  .home-page .brand-earn__cta .btn-youtube,
  .home-page .brand-earn__cta .btn-youtube:link,
  .home-page .brand-earn__cta .btn-youtube:visited,
  .home-page .activity-feed__cta .btn-youtube,
  .home-page .activity-feed__cta .btn-youtube:link,
  .home-page .activity-feed__cta .btn-youtube:visited,
  .home-page .brands-route__cta .button,
  .home-page .brands-route__cta .button:link,
  .home-page .brands-route__cta .button:visited {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
  }
  .home-page .brand-earn__cta .btn-youtube:hover,
  .home-page .brand-earn__cta .btn-youtube:focus-visible,
  .home-page .activity-feed__cta .btn-youtube:hover,
  .home-page .activity-feed__cta .btn-youtube:focus-visible,
  .home-page .brands-route__cta .button:hover,
  .home-page .brands-route__cta .button:focus-visible {
    background: var(--color-primary);
    color: var(--color-white);
  }
  .home-page .brand-earn__cta,
  .home-page .activity-feed__cta { margin-top: 22px; }

  /* ---- Brands-route (was a P0 overflow source) ---- */
  .home-page .brands-route-section { padding: 30px 0; }
  .home-page .brands-route__content { padding: 20px 16px; }
  .home-page .brands-route__title { font-size: 1.4rem; }
  .home-page .brands-route__subtitle { font-size: 14px; }

  /* ---- Activity feed ---- */
  .home-page .activity-feed__grid { gap: 10px; }
  .home-page .activity-card { padding: 14px; }

  /* ---- FAQ: tighter rhythm + proper horizontal inset (summary had
     0 side padding, so the question text touched the card edges) ---- */
  .home-page .faq-item summary {
    padding: 15px 16px;
    font-size: 15px;
    gap: 12px;
  }
  .home-page .faq-content { padding: 0 16px 16px; }
  .home-page .faq-content p { font-size: 14px; line-height: 1.6; margin: 0; }

  /* ---- Final CTA: tighten + clear the sticky bar ---- */
  .home-page .final-cta { padding: 36px 0 104px; }
  .home-page .final-cta__title { font-size: 1.75rem; }
  .home-page .final-cta__subtitle { font-size: 15px; line-height: 1.6; }

  /* ---- Crisper, less laggy reveal on mobile (was 0.8s / 30px) ---- */
  .home-page .reveal {
    transform: translateY(14px);
    transition-duration: 0.45s;
  }

  /* ---- Hero entrance stagger (reduced-motion handled below) ---- */
  .home-page .hero__tag,
  .home-page .hero__title,
  .home-page .hero__subtitle,
  .home-page .hero__cta-container {
    opacity: 0;
    animation: hpFadeUp 440ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .home-page .hero__tag { animation-delay: 40ms; }
  .home-page .hero__title { animation-delay: 90ms; }
  .home-page .hero__subtitle { animation-delay: 150ms; }
  .home-page .hero__cta-container { animation-delay: 210ms; }

  /* ---- Sticky conversion bar (logged-out only; rendered in template) ---- */
  .home-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-index-sticky);
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-top: 1px solid var(--color-gray-200);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .home-cta-bar__label {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    line-height: 1.3;
    color: var(--color-slate-600);
  }
  .home-cta-bar__label strong {
    display: block;
    font-size: 13px;
    color: var(--color-slate-900);
  }
  .home-cta-bar__btn,
  .home-cta-bar__btn:link,
  .home-cta-bar__btn:visited,
  .home-cta-bar__btn:hover,
  .home-cta-bar__btn:focus,
  .home-cta-bar__btn:focus-visible,
  .home-cta-bar__btn:active {
    flex-shrink: 0;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 18px;
    border-radius: var(--radius-full);
    text-decoration: none;
    white-space: nowrap;
  }
  .home-cta-bar__btn:hover,
  .home-cta-bar__btn:focus-visible { background: var(--color-primary-dark); }

  /* The global floating language switcher (fixed bottom-right, z 5000)
     overlapped the sticky CTA and truncated its label. Lift it above
     the bar on the mobile homepage only. */
  .home-page .lang-switcher { bottom: 84px; }

  /* ==================================================================
     Growth Tools cards — the last "marketing web page" tell on the
     mobile page (/design pass 2026-05-18, building on the rebuild).
     The base home-collab-types.css gave every card an internal
     border-top hairline on __meta (a banned cards-within-cards
     divider) plus a "For YouTube | Starts at X Credits" spec-table
     row and a solid-indigo icon with a colored drop-shadow glow (the
     #1 AI slop tell). Rebuilt to the App Store product-card pattern so
     the whole page speaks ONE native card language: soft-tint icon
     chip (matches the unified familiar/brand-earn chip the rebuild
     already standardized — no glow), title + 1-line goal, description,
     then ONE quiet cost pill. "For YouTube" is dropped on mobile: the
     entire platform is YouTube, so it was pure noise on every card.
     CSS-only (no twig/copy/translation change); cost stays visible. ---- */
  .home-page .collab-type-card {
    padding: 18px 16px;
    /* base/landing-shared gave this card a faint PURPLE rest shadow
       (rgba(124,58,237,.05)) — a colored-shadow AI tell, inconsistent
       with the neutral two-layer shadow every other homepage card uses.
       Pin a neutral hairline + soft drop to match familiar/brand-earn. */
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08),
                0 1px 2px rgba(15, 23, 42, 0.04);
  }
  .home-page .collab-type-card__header {
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
  }
  .home-page .collab-type-card__icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    border-radius: 12px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    box-shadow: none;
  }
  .home-page .collab-type-card__title {
    font-size: 1.05rem;
    margin-bottom: 2px;
  }
  .home-page .collab-type-card__goal { font-size: 13px; }
  .home-page .collab-type-card__description {
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 14px;
    order: 2;
  }
  /* Kill the web-y divider + spec-table look; left-align the lone pill */
  .home-page .collab-type-card__meta {
    border-top: none;
    padding: 0;
    margin: 0;
    gap: 0;
    justify-content: flex-start;
    order: 3;
  }
  .home-page .collab-type-card__meta .meta-item:first-child { display: none; }
  .home-page .collab-type-card__meta .meta-item:last-child {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    background: var(--color-slate-50);
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-full);
    font-size: 12.5px;
    color: var(--color-slate-600);
  }
  .home-page .collab-type-card__meta .meta-item:last-child strong {
    color: var(--color-slate-900);
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .home-page .hero__tag,
  .home-page .hero__title,
  .home-page .hero__subtitle,
  .home-page .hero__cta-container {
    animation: none;
    opacity: 1;
  }
  .home-page .reveal { transition-duration: 0.2s; transform: none; }
}

/* Sticky conversion bar is a mobile-only affordance */
@media (min-width: 768px) {
  .home-cta-bar { display: none; }

  /* ---- Desktop homepage CTA: brand-red -> indigo (founder-approved
     2026-05-18, open decision #1). Mirrors the mobile rebuild treatment
     (~lines 838-864) so the homepage primary CTA is the SAME indigo on
     every viewport. Scoped to .home-page so genuine "Sign in with
     YouTube" buttons on other pages stay brand-red. btn-youtube is an
     <a>, so every state is pinned or the global a:hover in
     typography.css repaints the white label indigo on hover. ---- */
  .home-page .hero__cta.btn-youtube,
  .home-page .hero__cta.btn-youtube:link,
  .home-page .hero__cta.btn-youtube:visited,
  .home-page .hero__cta.btn-youtube:hover,
  .home-page .hero__cta.btn-youtube:focus,
  .home-page .hero__cta.btn-youtube:focus-visible,
  .home-page .hero__cta.btn-youtube:active,
  .home-page .brand-earn__cta .btn-youtube,
  .home-page .brand-earn__cta .btn-youtube:link,
  .home-page .brand-earn__cta .btn-youtube:visited,
  .home-page .brand-earn__cta .btn-youtube:hover,
  .home-page .brand-earn__cta .btn-youtube:focus,
  .home-page .brand-earn__cta .btn-youtube:focus-visible,
  .home-page .brand-earn__cta .btn-youtube:active,
  .home-page .activity-feed__cta .btn-youtube,
  .home-page .activity-feed__cta .btn-youtube:link,
  .home-page .activity-feed__cta .btn-youtube:visited,
  .home-page .activity-feed__cta .btn-youtube:hover,
  .home-page .activity-feed__cta .btn-youtube:focus,
  .home-page .activity-feed__cta .btn-youtube:focus-visible,
  .home-page .activity-feed__cta .btn-youtube:active,
  .home-page .final-cta__buttons .btn-youtube,
  .home-page .final-cta__buttons .btn-youtube:link,
  .home-page .final-cta__buttons .btn-youtube:visited,
  .home-page .final-cta__buttons .btn-youtube:hover,
  .home-page .final-cta__buttons .btn-youtube:focus,
  .home-page .final-cta__buttons .btn-youtube:focus-visible,
  .home-page .final-cta__buttons .btn-youtube:active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
  }
  .home-page .hero__cta.btn-youtube:hover,
  .home-page .hero__cta.btn-youtube:focus-visible,
  .home-page .brand-earn__cta .btn-youtube:hover,
  .home-page .brand-earn__cta .btn-youtube:focus-visible,
  .home-page .activity-feed__cta .btn-youtube:hover,
  .home-page .activity-feed__cta .btn-youtube:focus-visible,
  .home-page .final-cta__buttons .btn-youtube:hover,
  .home-page .final-cta__buttons .btn-youtube:focus-visible {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
  }
  .home-page .btn-youtube i,
  .home-page .btn-youtube__icon { color: inherit; }
}