/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--pattern-dots), linear-gradient(160deg, var(--cream-50), var(--paper) 45%, var(--primary-50));
}
.hero-glow {
  position: absolute;
  border-radius: var(--radius-pill);
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.55;
}
.hero-glow-1 {
  top: -80px;
  right: -60px;
  width: 520px;
  height: 520px;
  background: var(--primary-200);
}
.hero-glow-2 {
  bottom: -60px;
  left: -80px;
  width: 420px;
  height: 420px;
  background: var(--accent-200);
}
.hero-inner {
  position: relative;
  padding-block: var(--space-12) var(--space-20); /* block only — keep .container's side gutters */
}
.hero-grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
  .hero-inner {
    padding-block: var(--space-20) var(--space-24);
  }
}

.hero-content {
  text-align: center;
}
@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
  }
}


.hero-title {
  font-size: var(--text-hero);
  font-weight: var(--fw-hero);
  color: var(--color-heading);
  line-height: var(--lh-hero);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-6);
  text-wrap: balance;
}
/* Keep each phrase on one line so the underline/marker never splits awkwardly, and "but with kids"
   always wraps together instead of stranding "with kids" on its own line. */
.hero-highlight,
.hero-accent,
.hero-phrase {
  white-space: nowrap;
  color: var(--color-heading);
}
.hero-highlight {
  text-decoration: underline wavy var(--cream-400);
  text-decoration-thickness: var(--wavy-thickness);
  text-underline-offset: var(--wavy-offset);
  text-decoration-skip-ink: none;
}
.hero-accent {
  /* Marker-pen highlight: a thick underline pulled up behind the letters (browsers paint underlines beneath text). */
  padding-inline: 0.06em;
  text-decoration: underline var(--cream-400);
  text-decoration-thickness: var(--marker-thickness);
  text-underline-offset: var(--marker-offset);
  text-decoration-skip-ink: none;
}

.hero-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 520px;
  line-height: var(--lh-normal);
}
@media (min-width: 1024px) {
  .hero-desc {
    font-size: var(--text-lg);
  }
}
.hero-content .hero-desc,
.hero-content .hero-actions {
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1024px) {
  .hero-content .hero-desc,
  .hero-content .hero-actions {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-12);
}
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}
@media (min-width: 1024px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-stats {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  padding-top: var(--space-6);
  border-top: var(--border-w) dashed var(--gray-300);
}
@media (min-width: 1024px) {
  .hero-stats {
    justify-content: flex-start;
    gap: var(--space-10);
  }
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-figure);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-none);
  color: var(--color-heading);
}
.hero-stat-label {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--fw-semibold);
}
.hero-stat-divider {
  width: var(--border-w);
  background: var(--gray-200);
  border-radius: var(--radius-pill);
}


.hero-media-inner {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}
.hero-media-glow {
  /* a tilted colour slab behind the photo, like a sticker on a card */
  position: absolute;
  inset: 0;
  background: var(--primary-500);
  border: var(--border-strong);
  border-radius: var(--radius-3xl);
  transform: rotate(5deg) translate(10px, 6px);
}
.hero-media-frame {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-pop-lg);
  background: var(--color-surface);
  transform: rotate(-2deg);
  transition: transform var(--dur-slow) var(--ease-spring);
}
.hero-media-inner:hover .hero-media-frame {
  transform: rotate(0deg) scale(1.01);
}
.hero-media-frame img {
  width: 100%;
  height: auto; /* the width/height attributes (kept for layout stability) would otherwise pin the height */
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  background: var(--color-surface);
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop-sm);
  padding: var(--space-2-5) var(--space-5) var(--space-2-5) var(--space-2-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  --float-rot: 3deg;
  animation: juno-float var(--dur-float) var(--ease-in-out) infinite;
}
.floating-card-top {
  top: -12px;
  right: -8px;
}
.floating-card-bottom {
  bottom: -12px;
  left: -8px;
  --float-rot: -4deg;
  animation-delay: var(--dur-float-delay);
}
.floating-card-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink);
  overflow: hidden;
  flex-shrink: 0;
}
.thumb-primary {
  background: var(--primary-100);
}
.thumb-mint {
  background: var(--mint-100);
}
.floating-card-title {
  font-family: var(--font-display);
  font-weight: var(--fw-heading);
  font-size: var(--text-md);
  color: var(--color-heading);
}
.floating-card-price {
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
}
.price-primary {
  color: var(--primary-600);
}
.price-mint {
  color: var(--mint-600);
}

.floating-badge {
  position: absolute;
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop-sm);
  padding: var(--space-2-5) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
}
.floating-badge-sale {
  top: 50%;
  right: -12px;
  background: var(--accent-500);
  color: var(--white);
  --float-rot: 6deg;
  animation: juno-float var(--dur-float) var(--ease-in-out) var(--dur-float-delay) infinite;
}
.floating-badge-title {
  font-family: var(--font-display);
  font-weight: var(--fw-heading);
  font-size: var(--text-md);
  line-height: var(--lh-none);
}
.floating-badge-sub {
  font-size: var(--text-3xs);
  opacity: 0.9;
}
.floating-badge-new {
  top: 16px;
  left: 16px;
  background: var(--mint-400);
  color: var(--ink);
  border-radius: var(--radius-pill);
  transform: rotate(-5deg);
}
.floating-badge-new span {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  color: var(--color-bg); /* the SVG fills with currentColor so it always matches the next section */
}
.hero-wave svg {
  width: 100%;
  height: auto;
}


