/*
 * Home hero: one centred statement over a live scene of the bag and six shops.
 *
 * The H1 is the page's LCP element, so nothing here delays it: no reveal on the copy, the
 * scene below is decorative (aria-hidden) and its script is deferred. Colours are tokens or a
 * color-mix of one; --hz-shadow is the product photo's own shadow.
 */

.hz {
  --hz-shadow: rgba(84, 40, 16, .22);
  position: relative; isolation: isolate; overflow: clip;
  padding: var(--s-6) 0 var(--s-7);
  background: var(--white);
}
.hz__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hz__glow::before, .hz__glow::after { content: ''; position: absolute; border-radius: var(--r-full); filter: blur(90px); }
.hz__glow::before {
  width: 980px; height: 620px; left: 50%; top: 46%; margin-left: -490px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%);
}
.hz__glow::after {
  width: 760px; height: 520px; left: 50%; top: 58%; margin-left: -60px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--fx-violet) 12%, transparent), transparent 72%);
}

/* ---------- copy ---------- */

/* elementor-bridge.css sets --display on every container it knows; restate it so this column stays a flex column. */
.hz__copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-4); }
.elementor .e-con.e-con.hz__copy { --display: flex; --flex-direction: column; --align-items: center; }
.hz h1 {
  margin: 0 auto; max-width: 14em;
  font-size: clamp(44px, 5.8vw, 84px); line-height: .98; letter-spacing: -.05em; font-weight: 800;
  color: var(--ink); text-wrap: balance;
}
.hz h1 em { display: block; font-style: normal; color: var(--accent); }
.hz__kicker {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  margin-bottom: var(--s-4);
  font-size: var(--t-sm); font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--muted);
}
.hz__kicker b {
  padding: 3px var(--s-2); border-radius: var(--r-full);
  background: var(--accent-tint); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.hz__lede { margin: 0; max-width: 34em; font-size: var(--t-xl); color: var(--body); text-wrap: balance; }
.hz__ctas { justify-content: center; margin-top: var(--s-2); }
.hz__proof { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); }
.hz__proof .rating { margin: 0; flex-wrap: wrap; justify-content: center; row-gap: var(--s-1); }
/* When the sentence no longer fits beside the stars it drops under them, centred, rather than leaving the stars at the left edge. */
.hz__proof .rating__score { text-wrap: balance; }

/* ---------- stage ---------- */

.hz__stage { position: relative; max-width: 1120px; height: 460px; margin: var(--s-6) auto 0; }
.hz__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hz__wires path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 4 7; opacity: .3; }
.hz__dot { fill: var(--accent); opacity: 0; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 70%, transparent)); }
.hz__floor {
  position: absolute; left: 50%; top: 77%; width: 420px; height: 70px; margin-left: -210px;
  border-radius: 50%; background: radial-gradient(closest-side, var(--hz-shadow), transparent); opacity: .55;
}
.hz__bag { position: absolute; left: 50%; top: 50%; width: 310px; aspect-ratio: 1; margin: -170px 0 0 -155px; }
.hz__bag img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 34px var(--hz-shadow)); }
.hz__badge {
  position: absolute; right: 4%; top: 16%;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--ink);
  font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--ink) 40%, transparent), 0 0 0 2px var(--white);
}
.hz__badge.is-zero { color: var(--muted); }
.hz__plus {
  position: absolute; left: 0; top: 0; padding: 8px var(--s-4); border-radius: var(--r-full);
  background: var(--accent); color: var(--white); font-size: var(--t-sm); font-weight: 700; white-space: nowrap;
  box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--accent) 80%, transparent);
  opacity: 0; pointer-events: none;
}

.hz__chip {
  position: absolute; top: var(--y);
  display: flex; align-items: center; gap: 10px;
  width: 238px; height: 64px; padding: 0 12px 0 14px;
  border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white);
  box-shadow: var(--shadow-md);
  font-size: var(--t-base); font-weight: 650; color: var(--ink);
}
.hz__chip[data-side="l"] { left: var(--in); }
.hz__chip[data-side="r"] { right: var(--in); }
.hz__chip--wide { width: 262px; }
.hz__chip img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.hz__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz__pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: var(--r-full); font-size: var(--t-sm); font-weight: 700; white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.hz__pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hz__pill[data-s="left"] { background: var(--ok-tint); color: var(--ok); }
.hz__pill[data-s="sold"] { background: var(--accent); color: var(--white); }
.hz__pill[data-s="out"] { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.hz__pill[data-s="sold"] i, .hz__pill[data-s="out"] i { display: none; }

.hz__toast {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: var(--s-2);
  padding: 8px 14px 8px 10px; border-radius: var(--r-full);
  background: var(--ink); color: var(--white); font-size: var(--t-sm); font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
}
.hz__toast img { width: 22px; height: 22px; padding: 2px; border-radius: 50%; background: var(--white); object-fit: contain; }
.hz__toast b { color: var(--accent-on-dark); }

.hz__foot-wrap { margin-top: var(--s-6); }

/* ---------- small screens: four shops around a smaller bag ---------- */

@media (max-width: 900px) {
  .hz { padding-top: var(--s-6); }
  .hz h1 { font-size: clamp(38px, 10.5vw, 60px); }
  .hz__kicker { margin-bottom: var(--s-4); }
  .hz__lede { font-size: var(--t-lg); }
  .hz__ctas { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hz__stage { height: 430px; margin-top: var(--s-6); }
  .hz__bag { width: 190px; margin: -105px 0 0 -95px; }
  .hz__badge { width: 48px; height: 48px; font-size: 21px; }
  .hz__floor { width: 260px; margin-left: -130px; top: 70%; }
  .hz__chip, .hz__chip--wide { width: calc(50% - 6px); height: 54px; padding: 0 8px 0 10px; gap: 7px; font-size: 14px; }
  .hz__chip img { width: 22px; height: 22px; }
  .hz__pill { height: 26px; padding: 0 9px; font-size: 12px; }
  .hz__chip[data-ch="tiktok"], .hz__chip[data-ch="square"] { display: none; }
  .hz__chip[data-ch="shopify"] { top: 0; left: 0; }
  .hz__chip[data-ch="amazon"] { top: 0; right: 0; }
  .hz__chip[data-ch="etsy"] { top: auto; bottom: 0; left: 0; }
  .hz__chip[data-ch="ebay"] { top: auto; bottom: 0; left: auto; right: 0; }
}
@media (max-width: 380px) {
  .hz__name { display: none; }
}
