/* Star Photo Lab — designer landing page.
   Builds on tokens from ../../assets/css/app.css + components.css. */

body { background: var(--bg); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
}
/* Soft periwinkle gradient backdrop — always crisp, never blurry. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(780px 480px at 12% 0%, var(--pw-100), transparent 62%),
    radial-gradient(680px 520px at 92% 8%, var(--pw-50), transparent 64%),
    linear-gradient(180deg, #fff, var(--surface));
  z-index: -1;
}
/* Bento stage: tall image on the left; pill + headline stacked and centered on
   the right; small note card overlapping the image's bottom-left corner. */
.hero-stage {
  --ease: cubic-bezier(.22, .61, .36, 1);
  position: relative;
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "image chip"
    "image headline";
  column-gap: 44px;
  row-gap: 18px;
  align-items: start;
}

/* Tiles share a smooth, staggered rise-in. fill-mode: backwards holds the
   `from` (hidden) state during the delay, then reverts to the element's own
   styles after — so the tile stays visible AND :hover lifts work without
   fighting a forwards-filled keyframe. (No base opacity:0, or backwards would
   leave it hidden once the animation ends.) */
.hs {
  animation: hsRise 0.72s var(--ease) backwards;
}
@keyframes hsRise {
  from { opacity: 0; transform: translateY(26px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hsFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.hs-image    { grid-area: image;    animation-delay: .05s; align-self: stretch; }
.hs-headline { grid-area: headline; animation-delay: .14s; align-self: center; }
.hs-note {
  /* Floats over the image's bottom-left corner for depth. */
  position: absolute;
  left: -16px;
  bottom: -18px;
  z-index: 5;
  animation: hsRise .72s var(--ease) .34s backwards;
}
.hs-chip {
  grid-area: chip;
  justify-self: end;
  align-self: start;
  /* rise-in, then settle into an endless micro-float */
  animation: hsRise .72s var(--ease) .20s backwards, hsFloat 5.6s ease-in-out 1.1s infinite;
}

/* Image tile */
.hs-image {
  position: relative;
  min-height: 460px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: 0 24px 52px rgba(20, 22, 40, 0.16);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.hs-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-image::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 22, 40, 0.28));
}

/* Carousel slides (cross-fade) */
.hs-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hs-slide.is-active { opacity: 1; }

/* Carousel dots */
.hs-dots {
  position: absolute; z-index: 3;
  left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 7px;
}
.hs-dot {
  width: 7px; height: 7px; padding: 0;
  border: none; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: background .25s var(--ease), width .25s var(--ease);
}
.hs-dot:hover { background: rgba(255, 255, 255, 0.85); }
.hs-dot.is-active { width: 18px; background: #fff; }
.hs-image:hover { transform: translateY(-5px); box-shadow: 0 30px 64px rgba(20, 22, 40, 0.22); }

/* Micro pill (top-right) */
.hs-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(20, 22, 40, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.hs-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-bg);
}

/* Note card (bottom-left) */
.hs-note {
  align-self: end;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(20, 22, 40, 0.08);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.hs-note:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(20, 22, 40, 0.12); }
.hs-note-num { font-size: 30px; font-weight: 680; letter-spacing: -0.02em; color: var(--text); }
.hs-note-num span { font-size: 15px; font-weight: 600; color: var(--pw-500); }
.hs-note-lab { margin-top: 2px; font-size: 13px; color: var(--text-2); }

/* Headline card (bottom-right) — the focal box */
.hs-headline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 34px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 22px 52px rgba(20, 22, 40, 0.10);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.hs-headline:hover { transform: translateY(-4px); box-shadow: 0 28px 64px rgba(20, 22, 40, 0.14); }

@media (prefers-reduced-motion: reduce) {
  .hs { animation: none !important; opacity: 1 !important; transform: none !important; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: 0 1px 2px rgba(20, 22, 40, 0.04);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-bg);
}
.hero h1 {
  margin: 16px 0 0;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 680;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--pw-500), var(--pw-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 16px;
  max-width: 440px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-2);
}
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 8px; }
.hero-trust {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mut);
}
.hero-trust strong { color: var(--text-2); font-weight: 600; }
.hero-trust .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border-2); }

/* ── Stat band ── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 8px;
}
.stat { background: var(--bg); padding: 22px 24px; }
.stat-num { font-size: 26px; font-weight: 680; letter-spacing: -0.02em; color: var(--text); }
.stat-num span { color: var(--pw-500); }
.stat-label { margin-top: 4px; font-size: 13px; color: var(--text-2); }

/* ── Section scaffolding ── */
.section { padding: 80px 0 0; }
.section-head { max-width: 560px; margin-bottom: 40px; }
.section-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-600);
}
.section-head h2 {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 660;
  letter-spacing: -0.025em;
  color: var(--text);
}
.section-head p { margin-top: 12px; font-size: 15px; line-height: 24px; color: var(--text-2); }

/* ── How it works ── */
.steps { display: flex; align-items: stretch; gap: 8px; }
.steps .step { flex: 1 1 0; }

/* Arrow connector between steps */
.step-arrow {
  flex: 0 0 auto;
  align-self: center;
  width: 40px;
  display: grid;
  place-items: center;
  color: var(--pw-200);
  transform: scale(0.85);
  opacity: 0.5;
  transition: color .4s ease, transform .4s ease, opacity .4s ease;
}
.step-arrow svg { width: 26px; height: 26px; }
.step-arrow.is-on { color: var(--pw-500); transform: scale(1); opacity: 1; }

.step {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(20, 22, 40, 0.04);
  overflow: hidden;
  /* dim until the scroll reveal activates it */
  opacity: 0.45;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease,
              border-color 180ms ease-out, box-shadow 180ms ease-out;
}
.step.is-active { opacity: 1; transform: translateY(0); }
/* faded watermark number for depth */
.step::after {
  content: attr(data-n);
  position: absolute;
  top: -14px; right: 6px;
  font-size: 96px; font-weight: 800; line-height: 1;
  color: var(--pw-50);
  z-index: 0; pointer-events: none;
}
.step > * { position: relative; z-index: 1; }
.step.is-active:hover { border-color: var(--pw-200); box-shadow: 0 14px 32px rgba(68, 72, 176, 0.12); transform: translateY(-3px); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.step-num {
  flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--pw-500), var(--pw-700));
  color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 14px rgba(68, 72, 176, 0.30);
}
.step h3 { font-size: 16px; font-weight: 650; color: var(--text); letter-spacing: -0.01em; }
.step p { font-size: 13.5px; line-height: 21px; color: var(--text-2); }

/* ── Feature grid ── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(20, 22, 40, 0.04);
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out, transform 180ms ease-out;
}
.feature:hover { border-color: var(--pw-200); box-shadow: 0 14px 32px rgba(68, 72, 176, 0.12); transform: translateY(-3px); }
.feature-ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--pw-100), var(--pw-50));
  color: var(--pw-600);
  border: 1px solid var(--pw-100);
  box-shadow: 0 4px 12px rgba(68, 72, 176, 0.10);
}
.feature-ic svg { width: 22px; height: 22px; }
.feature h3 { margin-top: 16px; font-size: 15px; font-weight: 650; color: var(--text); letter-spacing: -0.01em; }
.feature p { margin-top: 7px; font-size: 13.5px; line-height: 21px; color: var(--text-2); }

/* ── Earnings split ── */
.earn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.earn-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--pw-600), var(--pw-700));
  color: #fff;
  padding: 30px;
  box-shadow: 0 20px 44px rgba(68, 72, 176, 0.26);
}
.earn-card .lab { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pw-200); }
.earn-card .big { margin-top: 8px; font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.earn-card .big small { font-size: 17px; font-weight: 600; color: var(--pw-200); }
.earn-rows { margin-top: 22px; display: flex; flex-direction: column; gap: 1px; background: rgba(255,255,255,0.14); border-radius: 10px; overflow: hidden; }
.earn-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: rgba(255,255,255,0.06); font-size: 13.5px; }
.earn-row .v { font-weight: 650; font-variant-numeric: tabular-nums; }
.earn-list { display: flex; flex-direction: column; gap: 16px; }
.earn-li { display: flex; gap: 13px; }
.earn-li .tick {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center; margin-top: 1px;
  background: var(--ok-bg); color: var(--ok);
}
.earn-li .tick svg { width: 14px; height: 14px; }
.earn-li h4 { font-size: 15px; font-weight: 620; color: var(--text); }
.earn-li p { margin-top: 3px; font-size: 13.5px; line-height: 21px; color: var(--text-2); }

/* ── Final CTA ── */
.cta {
  margin-top: 88px;
  padding: 52px 24px;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.cta h2 { font-size: 30px; font-weight: 660; letter-spacing: -0.025em; color: var(--text); }
.cta p { margin: 12px auto 0; max-width: 460px; font-size: 15px; line-height: 24px; color: var(--text-2); }
.cta-row { margin-top: 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.cta-row .btn { height: 46px; padding: 0 24px; font-size: 15px; border-radius: 8px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { padding: 40px 0 36px; }
  /* Stack the bento: headline first, then image, note, pill. */
  .hero-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "headline" "image" "note" "chip";
    column-gap: 0;
    row-gap: 16px;
  }
  /* Note returns to normal flow on mobile (no overlap). */
  .hs-note {
    position: static;
    grid-area: note;
    left: auto; bottom: auto;
    justify-self: start;
  }
  .hs-chip { justify-self: start; align-self: auto; }
  .hs-image { min-height: 0; height: 260px; }
  .earn { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  .stats { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  /* Stack steps vertically; arrows rotate to point down. */
  .steps { flex-direction: column; gap: 4px; }
  .step-arrow { width: auto; height: 34px; transform: rotate(90deg) scale(0.85); }
  .step-arrow.is-on { transform: rotate(90deg) scale(1); }
  .hero h1 { font-size: 32px; }
  .hs-headline { padding: 26px 24px; }
  .section { padding: 56px 0 0; }
  .section-head h2, .cta h2 { font-size: 25px; }
}
