/* Hero: a rounded card inset from the page edges, on flat Black with a film grain over it (no gradient),
   a centred headline and button, then the Klaviyo to Shopify illustration: three emails riding the links
   from the Klaviyo plinth to the Shopify plinth in a loop, both logos standing solid on their plinths. */
.hero-card {
  position: relative;
  margin: 12px;
  border-radius: var(--radius-xl);
  background: var(--hero-ground);
  color: var(--on-sky);
  overflow: hidden;
  isolation: isolate;
  /* exactly one screen: the copy takes what it needs and the illustration fills the rest */
  display: flex;
  flex-direction: column;
  height: calc(100vh - 24px);
  height: calc(100svh - 24px);
  min-height: 600px;
  max-height: 1000px;
  padding-top: 63px;   /* room for the pinned notch, which hangs into the card from its top edge */
}
/* the film grain on the card's ground is shared with the band cards: the grain rule in css/sections.css */
.hero-card > * { position: relative; z-index: 1; }

.hero-copy { flex: none; max-width: 980px; margin: 0 auto; padding: clamp(16px, 5vh, 64px) var(--gutter) 0; text-align: center; }
/* the hero badge is the standard .badge (base.css), glass on the black card, led by the Klaviyo flag mark
   (the owner's own SVG, used as a mask so the page colours it) */
.hero-copy .badge { text-wrap: balance; }
.badge-icon {
  flex: none;
  width: 17px;
  height: 11.4px;
  background: currentColor;
  -webkit-mask: url("../uploads/brand/klaviyo-mark.svg") center / contain no-repeat;
  mask: url("../uploads/brand/klaviyo-mark.svg") center / contain no-repeat;
}
.hero h1 {
  margin-top: 26px;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: var(--t-display);
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-sub {
  margin: 24px auto 0;
  max-width: 540px;
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.5;
  color: var(--on-sky);
  opacity: 0.9;
  text-wrap: balance;
}
.hero-cta { margin-top: 34px; }
/* on the dark card the button is teal with black words (the notch is white, so its button stays black) */
.hero-cta .btn { background: var(--hero-press); color: var(--on-hero-press); }
.hero-cta .btn:hover { background: var(--hero-press-hover); }

/* the illustration scales down to fit whatever height is left under the button */
.hero-figure { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: clamp(20px, 4vh, 44px) var(--gutter) clamp(24px, 5vh, 52px); pointer-events: none; }
.illo { display: block; width: 100%; height: 100%; max-width: 1100px; color: var(--on-sky); overflow: visible; }
.illo-line { opacity: 0.55; }
.illo-mark { opacity: 1; }
.illo-order path { opacity: 0.6; }
.illo-order.is-traced { color: var(--illo-trace); }
.illo-order.is-traced path { opacity: 1; }

/* the loop: each email rides its link from the Klaviyo plinth to the Shopify plinth, fades at the chevron,
   comes back at the start. Phases are staggered so at rest they sit spread along the links. */
.illo-order { animation: ride 7.5s linear infinite; animation-delay: calc(var(--p) * -7.5s); }
@keyframes ride {
  0% { transform: translate(0, 0); opacity: 0; }
  8% { opacity: 1; }
  86% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .illo-order { animation: none; transform: translate(calc(var(--dx) * var(--p)), calc(var(--dy) * var(--p))); }
}

/* the hero's entrance (only while html.has-motion is set, never under reduced motion) */
.has-motion .hero [data-rise] { opacity: 0; transform: translateY(var(--y, 24px)); }
.has-motion .hero [data-rise].is-in { opacity: 1; transform: none; transition: opacity var(--rise) var(--ease-out), transform var(--rise) var(--ease-out); }
.has-motion .hero-figure { opacity: 0; transform: translateY(32px); }
.has-motion .hero-figure.is-in { opacity: 1; transform: none; transition: opacity 1200ms var(--ease-out), transform 1200ms var(--ease-out); }

@media (max-width: 860px) {
  .hero-card { margin: 8px; border-radius: 22px; height: calc(100vh - 16px); height: calc(100svh - 16px); min-height: 640px; }
  .hero-figure { padding: 16px 12px 20px; }
}
@media (max-width: 640px) { .hero-cta .btn { width: 100%; } }
