/* ==================================================================
   Homepage feature sections: Growth Studio, Breakouts, Community
   Watch, Media Kit + the 6-pillar variant of the platform overview.
   Loaded only on the homepage. Lives separately because home.css is
   at the file-size cap (1,387 lines).
   ================================================================== */

/* ------------------------------------------------------------------
   Platform overview: 6-pillar variant (3 columns on desktop)
   ------------------------------------------------------------------ */
.platform-pillars--six {
  grid-template-columns: repeat(3, 1fr);
}

.platform-pillar__icon--studio { background: var(--color-brand-blue); }
.platform-pillar__icon--breakouts { background: #f59e0b; }
.platform-pillar__icon--mediakit { background: #14b8a6; }

.pillar-new-badge {
  display: inline-block;
  background: #eef2ff;
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: var(--space-2);
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

@media (max-width: 600px) {
  .platform-pillars--six {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
   Section shells (alternating backgrounds between neighbors)
   ------------------------------------------------------------------ */
.home-studio-section {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-slate-200);
}

.home-breakouts-section {
  background-color: var(--color-slate-50);
  border-bottom: 1px solid var(--color-slate-200);
}

.home-cw-section {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-slate-200);
}

.home-mediakit-section {
  background-color: var(--color-slate-100);
  border-bottom: 1px solid var(--color-slate-200);
}

/* ------------------------------------------------------------------
   Split layout: text beside a real product screenshot
   ------------------------------------------------------------------ */
.feature-split {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  max-width: 1200px;
  margin: 0 auto;
}

.feature-split__text {
  flex: 1 1 44%;
  min-width: 0;
}

.feature-split__media {
  flex: 1 1 52%;
  min-width: 0;
}

/* Left-align the shared section-header pattern inside a split */
.feature-split__text .section-header {
  text-align: left;
  margin-bottom: var(--space-6);
}

.feature-shot {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-md);
}

.feature-cta {
  margin-top: var(--space-6);
}

@media (max-width: 900px) {
  .feature-split {
    flex-direction: column;
  }

  /* Text first, screenshot after, on small screens (both variants) */
  .feature-split--media-first {
    flex-direction: column;
  }

  .feature-split__text .section-header {
    text-align: center;
  }

  .feature-cta {
    text-align: center;
  }
}

/* Desktop-only: media on the left for visual rhythm */
@media (min-width: 901px) {
  .feature-split--media-first .feature-split__media {
    order: -1;
  }
}

/* ------------------------------------------------------------------
   Growth Studio mini feature cards (2x2)
   ------------------------------------------------------------------ */
.studio-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.studio-mini-card {
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.studio-mini-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.studio-mini-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: var(--space-3);
}

.studio-mini-card__title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-slate-900);
  margin-bottom: var(--space-1);
}

.studio-mini-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-slate-600);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 480px) {
  .studio-mini-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
   Community Watch cards
   ------------------------------------------------------------------ */
.cw-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  max-width: 860px;
  margin: 0 auto;
}

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

.cw-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.cw-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-brand-green);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: var(--space-4);
}

.cw-card__icon--credits {
  background: #f59e0b;
}

.cw-card__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-slate-900);
  margin-bottom: var(--space-2);
}

.cw-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-slate-600);
  line-height: var(--line-height-loose);
  margin: 0;
}

.cw-cta {
  text-align: center;
  margin-top: var(--space-8);
}

@media (max-width: 767px) {
  .cw-card {
    padding: var(--space-6);
  }
}

/* ------------------------------------------------------------------
   Goal-first hero (A/B variant B, logged-out only)
   ------------------------------------------------------------------ */
.goal-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%);
  color: var(--color-white);
  text-align: center;
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.goal-hero__tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
}

.goal-hero__title {
  color: var(--color-white);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.goal-hero__subtitle {
  color: #c7d2fe;
  font-size: var(--font-size-base);
  max-width: 640px;
  margin: 0 auto var(--space-8);
  line-height: var(--line-height-loose);
}

.goal-hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.goal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  color: var(--color-white);
  text-decoration: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: all 150ms ease;
}

.goal-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.goal-card:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
}

.goal-card.is-selected {
  background: rgba(255, 255, 255, 0.16);
  border-color: #a5b4fc;
  box-shadow: 0 0 0 1px #a5b4fc;
}

/* Always-visible empty circle: signals "this is a selector" before any click.
   Fills with a check when the goal is picked. */
.goal-card__radio {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: transparent;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
}

.goal-card:hover .goal-card__radio {
  border-color: rgba(255, 255, 255, 0.7);
}

.goal-card.is-selected .goal-card__radio {
  background: #4F46E5;
  border-color: #a5b4fc;
  color: var(--color-white);
}

.goal-card__icon {
  font-size: 1.25rem;
  color: #a5b4fc;
  margin-bottom: var(--space-3);
}

.goal-card__title {
  font-size: 0.9375rem; /* 15px: keeps every title on ONE line at 5-across */
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.goal-card__sub {
  font-size: var(--font-size-sm);
  color: #c7d2fe;
  line-height: 1.4;
}

/* Answer panel: a distinct frosted card so the goal description reads as
   its own element, not stray hero text. Fades in on every goal switch so
   the change is impossible to miss. */
.goal-hero__answer-panel {
  max-width: 880px;
  margin: var(--space-6) auto 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(165, 180, 252, 0.35);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  /* reserve space so switching goals never shifts the CTA below */
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.goal-hero__answer {
  color: #e0e7ff;
  font-size: var(--font-size-base);
  line-height: 1.5;
  margin: 0;
  text-align: center;
  animation: goalAnswerIn 260ms ease;
}

.goal-hero__answer i {
  color: #a5b4fc;
  margin-right: var(--space-2);
}

.goal-hero__answer--default {
  color: #c7d2fe;
  /* no fade on the initial default state, only on user-driven switches */
  animation: none;
}

@keyframes goalAnswerIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .goal-hero__answer { animation: none; }
}

.goal-hero__cta-container {
  margin-top: var(--space-6);
}

.goal-hero__learn-row {
  margin: var(--space-3) 0 0;
}

.goal-hero__learn {
  color: #a5b4fc;
  font-size: var(--font-size-sm);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.goal-hero__learn:hover {
  color: var(--color-white);
}

.goal-hero__sub-cta {
  color: #c7d2fe;
  font-size: var(--font-size-sm);
  margin-top: var(--space-4);
}

.goal-hero__sub-cta strong {
  color: var(--color-white);
}

.goal-hero__permission-hint {
  font-size: var(--font-size-xs);
  opacity: 0.85;
}

/* Mobile: compact goal cards (icon + title + tool label as tappable rows)
   so the primary CTA stays close to the fold. */
@media (max-width: 600px) {
  .goal-hero {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .goal-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .goal-card {
    display: grid;
    grid-template-columns: 32px 1fr 26px;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: var(--space-3);
    padding: var(--space-4);
    min-height: 44px;
    width: 100%;
  }

  .goal-card__radio {
    position: static;
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .goal-card__icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .goal-card__title {
    grid-column: 2;
    margin-bottom: 2px;
    font-size: var(--font-size-base);
  }

  .goal-card__sub {
    grid-column: 2;
  }

  .goal-hero__answer-panel {
    min-height: 84px;
    margin-top: var(--space-5);
    padding: var(--space-4);
  }
}
