/* =========================================================
   babapic — Homepage-specific styles
   ========================================================= */

/* ---------------------------------------------------------
   Hero — two-column: copy left, real dropzone elevated into a
   "product preview" panel on the right. Ambient blobs drift
   behind both, GPU-cheap (transform/opacity only).
   --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-8) var(--space-7);
}

.hero__blob {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}

.hero__blob--a {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at 30% 30%, var(--color-accent), transparent 70%);
  top: -140px;
  left: -80px;
  animation: drift-a var(--dur-drift) ease-in-out infinite;
}

.hero__blob--b {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at 70% 70%, #6f9599, transparent 70%);
  bottom: -120px;
  right: 6%;
  animation: drift-b calc(var(--dur-drift) * 1.2) ease-in-out infinite;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.hero__title {
  max-width: 14ch;
}

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

.hero__subtitle {
  max-width: 46ch;
  margin: var(--space-5) 0 0;
  font-size: var(--fs-body-lg);
  color: var(--color-text-muted);
}

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

.hero__trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.hero__trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  flex-shrink: 0;
}

/* ---- Hero preview panel — the REAL dropzone, given a "window chrome"
   treatment so it reads as a product preview rather than a form field.
   Nothing inside is fabricated: it's the same interactive .dropzone
   every homepage visitor already used, just elevated visually. ---- */
.hero__preview {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
}

.hero__preview-bar {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding-inline: var(--space-1);
}

.hero__preview-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-border-strong);
}

.hero__preview .dropzone {
  border-style: dashed;
  padding: var(--space-7) var(--space-4);
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    max-width: 20ch;
  }
}

@media (max-width: 640px) {
  .hero__blob--b {
    display: none;
  }

  .hero__blob--a {
    opacity: 0.2;
  }
}

/* ---------------------------------------------------------
   Stats strip — honest, verifiable facts about the product,
   replacing the idea of a "trusted by" logo wall babapic can't
   honestly claim.
   --------------------------------------------------------- */
.stats-section {
  background: var(--color-bg-raised);
  border-block: 1px solid var(--color-border);
  padding-block: var(--space-6);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  text-align: center;
  padding-inline: var(--space-4);
  border-left: 1px solid var(--color-border);
}

.stat:first-child {
  border-left: none;
}

.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat__label {
  display: block;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

@media (max-width: 720px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5) 0;
  }

  .stat:nth-child(2n+1) {
    border-left: none;
  }

  .stat:nth-child(n+3) {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-5);
  }
}

/* ---------------------------------------------------------
   Tool showcase — broken grid. One featured card carries a
   stylized (clearly decorative, aria-hidden) preview of the
   real compress-image controls; the rest sit in a tighter grid
   around it via grid-auto-flow: dense.
   --------------------------------------------------------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: var(--space-4);
}

.tool-card--featured {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: space-between;
}

.tool-preview {
  margin-top: var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.tool-preview__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.tool-preview__slider {
  height: 4px;
  border-radius: 999px;
  background: var(--color-surface-3);
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
}

.tool-preview__slider::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 62%;
  background: var(--color-accent);
  border-radius: 999px;
}

.tool-preview__result {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.tool-preview__result b {
  font-family: var(--font-serif);
  color: var(--color-accent);
  font-weight: var(--fw-regular);
  font-size: 1.05em;
}

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

  .tool-card--featured {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .showcase {
    grid-template-columns: 1fr;
  }

  .tool-card--featured {
    grid-column: span 1;
  }
}

/* ---------------------------------------------------------
   How it works — a genuine 3-step sequence (order matters: you
   drop before it processes, it processes before you download),
   so the numbering earns its place here.
   --------------------------------------------------------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.steps::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: var(--color-border-strong);
}

.step {
  position: relative;
  text-align: center;
}

.step__num {
  width: 76px;
  height: 76px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--color-accent);
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: var(--fs-body-lg);
  margin-bottom: var(--space-2);
}

.step p {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  max-width: 30ch;
  margin-inline: auto;
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .steps::before {
    display: none;
  }
}

/* Trust / privacy section */
.trust-section {
  background: var(--color-bg-raised);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.trust-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.trust-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-muted);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.trust-card__icon svg {
  width: 24px;
  height: 24px;
}

.trust-card h3 {
  margin-bottom: var(--space-2);
}

.trust-card p {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}

/* FAQ section width constraint on homepage */
.faq-section .faq-list {
  max-width: 760px;
  margin-inline: auto;
}

/* Final CTA */
.final-cta {
  text-align: center;
  background: linear-gradient(180deg, var(--color-surface), var(--color-bg-raised));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-5);
}

.final-cta h2 {
  margin-bottom: var(--space-3);
}

.final-cta p {
  color: var(--color-text-muted);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}
