/* Product page hero v3: a light settings screen with the live store on a phone in front of it,
   after the live product page hero. Loaded after play.css; overrides its dark-stage styles.
   Markup: heroV3() in next/product-page.js. Behaviour: assets/play.js. */

.pp-hero.v3 { padding: 24px 0 88px; }
.pp-hero.v3 .pp-hero-in { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 48px; min-height: 720px; }
.pp-hero.v3 .hero-glow i:nth-child(1) { left: 62%; top: -60px; width: 640px; height: 520px; }
.pp-hero.v3 .hero-grid { mask-image: radial-gradient(ellipse 46% 62% at 74% 50%, #000 10%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 46% 62% at 74% 50%, #000 10%, transparent 78%); }

/* ---------------------------------------------------------------- composition */
.hv3 { position: relative; height: 660px; line-height: 1.25; letter-spacing: -0.01em; }
.hv3::before { /* soft tinted floor light under the phone */
  content: ''; position: absolute; right: -40px; top: 120px; width: 420px; height: 520px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tint) 90%, transparent), transparent);
  filter: blur(20px); animation: h3glow 6s ease-in-out infinite alternate;
}
@keyframes h3glow { to { opacity: 0.6; transform: scale(1.06); } }

.h3-hint {
  position: absolute; left: 0; top: 0; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgb(255 255 255 / 0.85); border: 1px solid var(--border); box-shadow: 0 6px 20px -8px rgb(30 10 60 / 0.18);
  backdrop-filter: blur(8px); font-size: 13px; color: var(--ink-2);
  animation: rise 800ms 500ms var(--ease-out) both;
}
.h3-hint b { font-weight: 600; color: var(--ink); }
.h3-hint .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: ping 2s infinite; }
.pp-hero.v3 .h3-reset {
  top: 0; right: 0; z-index: 3; height: 32px; padding: 0 14px;
  border: 1px solid var(--border); background: #fff; color: var(--ink-2); font-size: 12.5px; font-weight: 550;
  box-shadow: 0 6px 20px -10px rgb(30 10 60 / 0.2);
}
.pp-hero.v3 .h3-reset:hover { background: var(--surface-1); color: var(--ink); border-color: var(--border-strong); }

/* ---------------------------------------------------------------- settings window (back) */
.h3-admin {
  position: absolute; left: 0; top: 56px; width: calc(100% - 140px); height: 392px;
  border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 40px 80px -36px rgb(30 10 60 / 0.35), 0 2px 8px rgb(0 0 0 / 0.04);
  animation: h3in 1000ms 120ms var(--ease-out) both;
  --h3x: -28px;
}
@keyframes h3in { from { opacity: 0; transform: translate(var(--h3x, 0), 24px) scale(0.98); } }
.h3-abar { position: relative; height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--surface-1); border-bottom: 1px solid var(--border); }
.h3-abar > i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .h3-abar > i:nth-child(2) { background: #febc2e; } .h3-abar > i:nth-child(3) { background: #28c840; }
.h3-abar span { margin-left: 14px; padding: 3px 12px; border-radius: 7px; background: #fff; border: 1px solid var(--border); font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.h3-abody { display: grid; grid-template-columns: 100px 196px 1fr; height: calc(100% - 36px); font-size: 12px; }
.h3-side { display: grid; align-content: start; gap: 2px; padding: 12px 8px; background: var(--surface-1); border-right: 1px solid var(--border); }
.h3-side span { padding: 6px 8px; border-radius: 7px; color: var(--ink-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h3-side span.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 0 0 1px var(--border); }
.h3-app { display: flex; align-items: center; gap: 7px; padding: 2px 4px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); font-weight: 650; font-size: 11.5px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; }
.h3-logo { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: color-mix(in srgb, var(--tint) 75%, #fff); }
.h3-logo svg { width: 13px; height: 13px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.h3-main { display: grid; align-content: start; gap: 8px; padding: 14px 14px; }
.h3-mh { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 2px; }
.h3-pub { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 10.5px; font-weight: 600; letter-spacing: 0; }
.h3-pub i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.h3-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--border); background: #fff; transition: border-color 200ms, background 200ms; }
.h3-row:has([aria-checked='true']) { border-color: var(--violet-line); background: linear-gradient(180deg, #fff, var(--violet-soft)); }
.h3-row b { display: block; font-size: 12.5px; font-weight: 600; }
.h3-row small { display: block; margin-top: 1px; font-size: 11px; color: var(--ink-3); }
.h3-sw { flex: none; position: relative; width: 36px; height: 21px; border-radius: 99px; border: 0; background: var(--border-strong); cursor: pointer; transition: background 220ms var(--ease); }
.h3-sw i { position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); transition: transform 260ms var(--spring); }
.h3-sw[aria-checked='true'] { background: var(--violet-2); }
.h3-sw[aria-checked='true'] i { transform: translateX(15px); }
.h3-sw:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.h3-note { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; color: var(--violet); font-weight: 550; }
.h3-note svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h3-prev { display: grid; align-content: start; gap: 10px; padding: 16px 14px; background: var(--surface-1); border-left: 1px solid var(--border); }
.h3-prev i { height: 10px; border-radius: 5px; background: var(--surface-3); } .h3-prev i:nth-child(1) { width: 60%; } .h3-prev i:nth-child(3) { height: 90px; border-radius: 10px; } .h3-prev i:nth-child(4) { width: 80%; }

/* ---------------------------------------------------------------- phone (front, playable) */
.h3-phone {
  position: absolute; right: 8px; top: 44px; width: 284px; height: 600px; z-index: 2;
  padding: 10px; border-radius: 48px; background: #0c0c10;
  box-shadow: 0 0 0 1.5px #2a2a33 inset, 0 0 0 1px rgb(0 0 0 / 0.5), 0 50px 90px -30px rgb(40 10 90 / 0.55), 0 24px 40px -24px rgb(0 0 0 / 0.5);
  animation: h3in 1100ms 300ms var(--ease-out) both, h3float 7s 1.4s ease-in-out infinite alternate;
  --h3x: 30px;
}
@keyframes h3float { to { translate: 0 -8px; } }
.h3-phone::before { content: ''; position: absolute; z-index: 12; top: 19px; left: 50%; translate: -50% 0; width: 84px; height: 24px; border-radius: 99px; background: #0c0c10; pointer-events: none; }
.h3-phone::after { content: ''; position: absolute; right: -3px; top: 130px; width: 3px; height: 64px; border-radius: 0 3px 3px 0; background: #2a2a33; }
.pp-hero.v3 .pg-win { height: 100%; border-radius: 38px; box-shadow: none; font-size: 12px; }
.pp-hero.v3 .pg-bar { height: 74px; display: block; padding: 0; background: #fff; border-bottom: 1px solid var(--surface-3); }
.h3-time { position: absolute; left: 30px; top: 15px; font-size: 12.5px; font-weight: 650; letter-spacing: -0.01em; }
.pp-hero.v3 .pg-url { display: block; top: 42px; left: 14px; right: 14px; translate: none; text-align: center; padding: 5px 10px; border-radius: 10px; background: var(--surface-2); border: 0; font-size: 11px; color: var(--ink-2); }
.pp-hero.v3 .pg-leave { position: absolute; z-index: 2; top: 44px; right: 20px; height: 20px; padding: 0 8px; font-size: 10.5px; }
.pp-hero.v3 [data-type='exit'] .pg-url { right: 92px; text-align: left; }
.pp-hero.v3 .pg-body { inset: 74px 0 0; }

/* store: banner + product list */
.pp-hero.v3 .sto-h { height: 46px; padding: 0 14px; }
.pp-hero.v3 .sto-nav { display: none; }
.pp-hero.v3 .sto-h > b { margin-right: auto; font-size: 14px; }
.pp-hero.v3 .sto-cart { width: 32px; height: 32px; }
.sto-ban { margin: 12px 12px 4px; padding: 16px 14px; border-radius: 14px; display: grid; gap: 3px; color: #fff; background: radial-gradient(80% 120% at 100% 0%, rgb(255 255 255 / 0.25), transparent 60%), linear-gradient(135deg, #3b2a1e, #7a5a3a); }
.sto-ban small { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.sto-ban b { font-size: 16px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; max-width: 150px; }
.pp-hero.v3 .sto-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 12px; }
.pp-hero.v3 .sto-card { grid-template-columns: 58px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 0; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--surface-3); }
.pp-hero.v3 .sto-card:last-child { border-bottom: 0; }
.pp-hero.v3 .sto-img { grid-row: 1 / 3; height: 58px; margin: 0; border-radius: 10px; }
.pp-hero.v3 .sto-n { align-self: end; font-size: 12.5px; }
.pp-hero.v3 .sto-p { align-self: start; font-size: 12px; }
.pp-hero.v3 .sto-add { grid-column: 3; grid-row: 1 / 3; margin: 0; height: 30px; padding: 0 11px; border-radius: 99px; font-size: 11px; }
.pp-hero.v3 .pg-drawer { width: 92%; max-width: 92%; padding: 14px 14px 16px; border-radius: 22px 0 0 22px; }

/* product page (bundles, tiers) and blog (popup) on a phone */
.pp-hero.v3 .pg-pdp, .pp-hero.v3 .pg-blog { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 118px auto; align-content: start; gap: 12px; padding: 12px; }
.pp-hero.v3 .pg-pdp .pdp-hero, .pp-hero.v3 .pg-blog .pdp-hero { height: 118px; }
.pp-hero.v3 .bl-l .pdp-hero { height: 150px; }
.pp-hero.v3 .pg-blog { grid-template-rows: 150px auto; }
.pp-hero.v3 .pdp-t { font-size: 15px; }
.pp-hero.v3 .fb, .pp-hero.v3 .tq { padding: 10px; gap: 6px; }
.pp-hero.v3 .fb-it, .pp-hero.v3 .tq-o { padding-top: 7px; padding-bottom: 7px; }
.pp-hero.v3 .xp { width: 86%; }

/* ---------------------------------------------------------------- live numbers (floating cards) */
.h3-chips { position: absolute; left: 0; top: 472px; width: calc(100% - 300px); min-width: 230px; display: grid; gap: 10px; z-index: 3; }
.pp-hero.v3 .pg-st {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px; background: rgb(255 255 255 / 0.92); border: 1px solid var(--border);
  box-shadow: 0 14px 30px -16px rgb(30 10 60 / 0.3); backdrop-filter: blur(8px);
  animation: h3in 800ms var(--ease-out) both; --h3x: -16px;
}
.pp-hero.v3 .pg-st:nth-child(1) { animation-delay: 650ms; margin-left: 16px; }
.pp-hero.v3 .pg-st:nth-child(2) { animation-delay: 780ms; }
.pp-hero.v3 .pg-st:nth-child(3) { animation-delay: 910ms; margin-left: 32px; }
.h3-ci { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--violet-soft); }
.h3-ci svg { width: 15px; height: 15px; fill: none; stroke: var(--violet); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pp-hero.v3 .pg-st span:not(.h3-ci) { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-hero.v3 .pg-st b { font-size: 18px; color: var(--ink); }
.pp-hero.v3 .pg-st.bump { animation: h3bump 700ms var(--ease-out); }
@keyframes h3bump { 0% { transform: scale(1.04); box-shadow: 0 0 0 4px rgb(139 92 246 / 0.25), 0 14px 30px -16px rgb(30 10 60 / 0.3); border-color: var(--violet-line); } }
.pp-hero.v3 .pg-st.good { border-color: #bbe5c8; background: rgb(240 251 244 / 0.95); }
.pp-hero.v3 .pg-st.good b { color: var(--green); }
.pp-hero.v3 .pg-st.good .h3-ci { background: #d9f3e2; }
.pp-hero.v3 .pg-st.good .h3-ci svg { stroke: var(--green); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .pp-hero.v3 .pp-hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; min-height: 0; }
  .hv3 { width: 100%; max-width: 640px; justify-self: center; }
}
@media (max-width: 700px) {
  .pp-hero.v3 { padding-bottom: 48px; }
  .hv3 { height: auto; display: grid; justify-items: center; gap: 14px; }
  .hv3::before { right: 50%; translate: 50% 0; top: 60px; width: 340px; }
  .h3-admin { display: none; }
  .h3-hint, .pp-hero.v3 .h3-reset, .h3-phone, .h3-chips { position: relative; left: auto; right: auto; top: auto; }
  .h3-hint { order: 1; font-size: 12.5px; }
  .h3-phone { order: 2; }
  .h3-chips { order: 3; width: 100%; min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pp-hero.v3 .h3-reset { order: 4; }
  .pp-hero.v3 .pg-st { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 9px 10px; margin-left: 0 !important; }
  .pp-hero.v3 .pg-st .h3-ci { display: none; }
  .pp-hero.v3 .pg-st span:not(.h3-ci) { font-size: 10.5px; }
  .pp-hero.v3 .pg-st b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv3::before, .h3-phone, .h3-hint .dot { animation: none; }
}

/* toasts drop from the top of the phone screen, clear of the buy buttons */
.pp-hero.v3 .pg-toast { top: 84px; bottom: auto; max-width: 92%; overflow: hidden; text-overflow: ellipsis; font-size: 12px; transform: translateY(-14px); }
.pp-hero.v3 .pg-toast.show { transform: none; }
.h3-logo { font-size: 11.5px; font-weight: 700; color: var(--ink); }

/* settings rows: one line each for label and hint, so the rows stay compact */
.h3-abody { grid-template-columns: 92px 206px 1fr; }
.h3-row { padding: 9px 10px 9px 12px; line-height: 1.3; }
.h3-row > span { min-width: 0; }
.h3-row b, .h3-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h3-row small { font-size: 10.5px; }
.h3-note { line-height: 1.35; }
