/* ==========================================================================
   Hero — comic cover: flat colour stage, big lettering, framed product

   The previous version floated a square photo over a round stage on top of
   blurred colour blobs, so nothing shared an edge with anything else. Comic
   Pop replaces all three: flat printed panels instead of blurs, and the
   product sits in a keylined frame matching every other card on the page.
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h) - 40px);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--u-paper);
}

/* --- Stage ----------------------------------------------------------------
   Flat colour, hard edges, printed texture — no gradients, no blur. */

.hero__stage { z-index: -1; overflow: hidden; }

/* Cobalt field behind the product half, clipped to a slab with one angled
   edge so it reads as a printed panel rather than a background image. */
.hero__field {
  position: absolute;
  inset: 0 0 0 auto;
  width: 56%;
  background: var(--u-primary);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

@media (max-width: 899px) {
  .hero__field {
    inset: auto 0 0 0;
    width: 100%;
    height: 50%;
    clip-path: polygon(0 9%, 100% 0, 100% 100%, 0 100%);
  }
}

/* Halftone ray burst radiating from behind the product. */
.hero__burst {
  position: absolute;
  top: 46%;
  right: 20%;
  width: 130vmax;
  height: 130vmax;
  translate: 50% -50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.13) 0deg 7deg,
    transparent 7deg 14deg
  );
  border-radius: 50%;
}

/* Ben-Day dots across the whole stage. */
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, var(--u-ink) 1.5px, transparent 1.6px);
  background-size: 15px 15px;
  opacity: 0.13;
}

/* Colour chips scattered on the paper side, echoing the accent set. */
.hero__chip {
  position: absolute;
  border: var(--ink-w) solid var(--u-ink);
  border-radius: 50%;
}
/* Kept inside the left gutter and the bottom band — the two strips of paper
   the copy never reaches — so they decorate rather than collide. */
.hero__chip--1 { top: 13%; left: 2.4%;  width: 26px; height: 26px; background: var(--u-danger); }
.hero__chip--2 { top: 47%; left: 1.6%;  width: 14px; height: 14px; background: var(--u-success); }
.hero__chip--3 { top: 79%; left: 3.2%;  width: 20px; height: 20px; background: var(--u-accent); }
.hero__chip--4 { top: 25%; left: 40%;   width: 12px; height: 12px; background: var(--u-fresh); }

/* Below this the copy fills the gutter, so there is nowhere safe to sit. */
@media (max-width: 1279px) { .hero__chip { display: none; } }

/* --- Layout --------------------------------------------------------------- */

.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

/* --- Copy ----------------------------------------------------------------- */

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.4rem 0.85rem;
  border: 2px solid var(--u-ink);
  border-radius: var(--r-pill);
  background: var(--u-accent);
  color: var(--u-ink);
}

.hero__title { margin-bottom: 1.25rem; }

.hero__line {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
  text-transform: uppercase;
}

/* Second line is knocked out to an outline so the lockup reads as a comic
   cover rather than a wall of solid black. */
.hero__line--outline {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--u-ink);
}

@media (max-width: 640px) {
  .hero__line--outline { -webkit-text-stroke-width: 2px; }
}

.hero__lead {
  max-width: 44ch;
  margin-bottom: 1.9rem;
  font-size: var(--fs-lead);
  color: var(--u-ink-soft);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.9rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--u-ink-soft);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__trust svg { width: 15px; height: 15px; color: var(--u-success); flex: 0 0 auto; }

/* --- Showcase --------------------------------------------------------------
   The product photo lives inside a keylined, rounded frame carrying the same
   hard offset shadow as every product card — the fix for it reading as a
   square pasted onto a circle. */

.hero__showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__slides {
  position: relative;
  display: grid;
  grid-template-areas: 'slot';
  place-items: center;
  width: min(100%, 420px);
  aspect-ratio: 1;
}

.hero-slide {
  grid-area: slot;
  position: relative;
  width: 100%;
}

/* Non-active slides are hidden by default so no-JS shows exactly one. */
.hero-slide:not(.is-active) { visibility: hidden; }

.hero-slide__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: var(--ink-w) solid var(--u-ink);
  border-radius: var(--r-xl);
  background: var(--u-white);
  box-shadow: var(--shadow-sticker-lg);
  rotate: -2.5deg;
}

.hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide__caption {
  position: absolute;
  left: 50%;
  bottom: -1.35rem;
  translate: -50% 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  width: max-content;
  max-width: 94%;
  padding: 0.6rem 1.15rem;
  border: var(--ink-border);
  border-radius: var(--r-pill);
  background: var(--u-white);
  box-shadow: var(--shadow-sticker-sm);
  text-align: center;
  rotate: 1.5deg;
}

.hero-slide__brand {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--u-ink-soft);
}
.hero-slide__name  { font-size: 0.9rem; font-weight: 700; line-height: 1.2; }
.hero-slide__price { font-family: var(--font-display); font-size: 0.95rem; color: var(--u-primary); }

/* --- Dots ----------------------------------------------------------------- */

.hero__dots-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.4rem;
}

.hero__dot {
  width: 13px;
  height: 13px;
  border: 2px solid var(--u-ink);
  border-radius: 50%;
  background: var(--u-white);
  transition: background-color var(--t-fast), scale var(--t-fast) var(--ease-back);
}
.hero__dot[aria-selected='true'] { background: var(--u-accent); scale: 1.25; }

