/* ============================================================
   Product Hunt launch page.

   Loaded after service.css, which already supplies .svc-page,
   .svc-hero, .svc-section, .faq and .svc-final. Everything here is
   the launch-specific layer on top: the live badge, the video frame,
   the alternating screenshots and the step list.
   ============================================================ */

/* ---------------- hero ---------------- */

.ph-hero {
  /* Warmer than the service hero: this is an announcement, and the page
     should feel like one before a word is read. */
  background:
    radial-gradient(1100px 520px at 82% -8%, #E056FD26, transparent 60%),
    radial-gradient(760px 420px at 8% 6%, #E530B51f, transparent 62%),
    var(--paper);
}

/* One centred column. The announcement reads top to bottom — badge, headline,
   promise, buttons — and a two-column hero breaks that order on every width. */
.ph-hero-inner {
  padding: clamp(3rem, 8vw, 5.5rem) var(--pad) clamp(2.6rem, 6vw, 4rem);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

.ph-hero-inner .svc-h1 {
  max-width: 20ch;
  margin: .4rem 0 0;
}

.ph-hero-inner .svc-lede {
  max-width: 46rem;
  margin: 1.1rem 0 0;
}

.ph-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0;
  color: var(--magenta);
}

/* The pulsing dot is the only motion on the page, and it stops for anyone
   who has asked for less of it. */
.ph-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 0 0 #E530B599;
  animation: ph-pulse 2s infinite;
}

@keyframes ph-pulse {
  0%   { box-shadow: 0 0 0 0 #E530B599; }
  70%  { box-shadow: 0 0 0 9px #E530B500; }
  100% { box-shadow: 0 0 0 0 #E530B500; }
}

.ph-cta-row { margin-top: 1.6rem; justify-content: center; flex-wrap: wrap; }

.ph-badge { margin: 1.4rem 0 0; }
.ph-badge img { display: inline-block; height: 54px; width: 250px; max-width: 100%; }

.ph-fine { margin-top: .9rem; }

/* ---------------- shared headings ---------------- */

.ph-h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.15;
  margin: 0 0 .7rem;
}

.ph-h3 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 .6rem; }

/* ---------------- video ---------------- */

.ph-video {
  position: relative;
  margin: 1.8rem auto 0;
  max-width: 62rem;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  background: #1E1233;
  border: 1px solid var(--hairline);
  box-shadow: var(--sh-lg, var(--sh-md));
}

.ph-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------------- screenshots ---------------- */

.ph-shot {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  margin-top: clamp(2rem, 5vw, 3.4rem);
}

/* Alternating sides, with the text kept first in the DOM so the reading
   order stays text-then-picture on a phone. */
.ph-shot--flip .ph-shot-text { order: 2; }
.ph-shot--flip .ph-shot-figure { order: 1; }

.ph-shot-text p { margin: 0 0 .8rem; color: var(--ink-2); }
.ph-shot-text p:last-child { margin-bottom: 0; }

.ph-shot-figure { margin: 0; }

.ph-shot-img {
  display: block;
  width: 100%; height: auto;
  border-radius: var(--r);
  box-shadow: var(--sh-lg, var(--sh-md));
}

@media (max-width: 860px) {
  .ph-shot { grid-template-columns: 1fr; gap: 1.2rem; }
  .ph-shot--flip .ph-shot-text,
  .ph-shot--flip .ph-shot-figure { order: 0; }
}

/* ---------------- steps ---------------- */

.ph-steps {
  list-style: none; margin: 1.8rem 0 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  counter-reset: none;
}

.ph-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 1.4rem 1.3rem 1.3rem;
}

.ph-step-num {
  display: grid; place-items: center;
  width: 30px; height: 30px; margin-bottom: .8rem;
  border-radius: 50%;
  background: var(--grad); color: #fff;
  font-size: .85rem; font-weight: 800;
}

.ph-step-title { font-size: 1.02rem; line-height: 1.3; margin: 0 0 .45rem; }
.ph-step-body { margin: 0; font-size: .93rem; color: var(--ink-2); }

/* ---------------- what you get ---------------- */

.ph-gets {
  margin-top: 1.8rem;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.ph-get {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--violet);
  border-radius: var(--r-sm);
  padding: 1.2rem 1.25rem;
}

.ph-get-title { font-size: 1rem; margin: 0 0 .45rem; }
.ph-get-body { margin: 0; font-size: .93rem; color: var(--ink-2); }

/* ---------------- why ---------------- */

.ph-why { background: var(--paper-2); }

/* ---------------- final ---------------- */

.ph-final-inner { text-align: center; }
.ph-final-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.12; margin: 0 0 .7rem; }
.ph-final-lede { margin: 0 auto 1.4rem; max-width: 42rem; color: var(--ink-2); }
.ph-final .cta-row { justify-content: center; }
.ph-final .ph-badge { display: flex; justify-content: center; }

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