/* =============================================================================
   AdStar landing — output.css
   "More than a video ad" — radial pipeline visual + creative types + formats.
   All rules scoped under .output.
   ========================================================================== */

.output__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ---- Radial visual + overlaid gradient heading -------------------------- */
.output__radial {
  position: relative;
  width: 100%;
  max-width: 1200px;
  /* keep the baked-in arc's aspect ratio (1200 x 500) while scaling down */
  aspect-ratio: 1200 / 500;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.output__radial-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.output__title {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  font-size: var(--fs-display-lg);
  line-height: var(--lh-display-lg);
  font-weight: 700;
  letter-spacing: -0.96px;
  text-align: center;
  white-space: nowrap;
  /* lime gradient text, per Figma (#e0fc31 -> #7e9202) */
  background-image: linear-gradient(90deg, var(--brand-500), var(--brand-900));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* gentle, reduced-motion-safe glow pulse on the center of the radial */
.output__radial::after {
  content: "";
  position: absolute;
  top: 52%;
  left: 50%;
  width: 22%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218, 251, 9, 0.28), transparent 68%);
  pointer-events: none;
  animation: output-glow 4.5s var(--ease-out) infinite;
}
@keyframes output-glow {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
  .output__radial::after { animation: none; opacity: 0.6; }
}

/* ---- Subtitle ------------------------------------------------------------ */
.output__subtitle {
  max-width: 606px;
  font-size: var(--fs-md);
  line-height: var(--lh-md);
  color: var(--gray-200);
  text-align: center;
}

/* ---- Groups (Creative types / Formats) ---------------------------------- */
.output__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1000px;
  padding-top: 40px;
}

.output__group-title {
  font-size: var(--fs-xl);
  line-height: var(--lh-xl);
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.output__cards {
  display: flex;
  gap: 20px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

/* ---- Single card -------------------------------------------------------- */
.output__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--gray-900);
}

/* Creative-types cards stretch equally across the row */
.output__cards--types .output__card {
  flex: 1 1 0;
  min-width: 0;
  min-height: 184px;
}

/* Format cards are fixed-width and don't stretch */
.output__cards--formats .output__card {
  flex: 0 0 235px;
  width: 235px;
  min-height: 228px;
}

.output__card-icon {
  display: block;
  width: 32px;
  height: 32px;
}
.output__card-icon img { width: 100%; height: 100%; }

.output__format-icon {
  display: block;
  width: 52px;
  height: 52px;
}
.output__format-icon img { width: 100%; height: 100%; }

.output__card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.output__format-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.output__card-title {
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.output__format-ratio {
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
  font-weight: 400;
  color: var(--text-muted);
}

.output__card-desc {
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: 400;
  color: var(--text-secondary);
}

/* =============================================================================
   Tablet (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .output__title {
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -0.72px;
  }

  /* Creative types: 2 x 2 grid */
  .output__cards--types {
    flex-wrap: wrap;
  }
  .output__cards--types .output__card {
    flex: 1 1 calc(50% - 10px);
    min-width: calc(50% - 10px);
  }

  /* Formats: let the three cards share the row fluidly */
  .output__cards--formats {
    flex-wrap: wrap;
  }
}

/* =============================================================================
   Mobile (<= 767px)
   ========================================================================== */
@media (max-width: 767px) {
  .output__radial {
    /* condense the wide arc so it stays legible on narrow screens */
    aspect-ratio: 1000 / 560;
  }
  .output__radial-img {
    object-position: center;
    transform: scale(1.18);
  }
  .output__title {
    margin-top: 8px;
    font-size: 26px;
    line-height: 34px;
    letter-spacing: -0.5px;
    white-space: normal;
    max-width: 300px;
  }

  .output__subtitle {
    max-width: 100%;
  }

  .output__group {
    padding-top: 24px;
  }

  /* Stack every card vertically */
  .output__cards {
    flex-direction: column;
    align-items: stretch;
  }
  .output__cards--types .output__card,
  .output__cards--formats .output__card {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
  }
}
