/* ==========================================================================
   Parallex · v3 "Pulse" · home.css  (index.html only)
   Hero · waterline · layers + sticky stage · Dex stage · burst · One flow ·
   connected
   ========================================================================== */

/* depth sections leave room for the fixed rail on desktop */
@media (min-width: 1024px) {
  .layers .container, .dex .container, .flow .container { padding-inline-start: max(var(--margin), 84px); }
}

/* ================= HERO ================= */
.hero { position: relative; padding-top: var(--header-h); min-height: min(calc(100svh - 60px), 1000px); display: flex; flex-direction: column; justify-content: center; background-color: #fff; overflow: clip; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 2vw + 16px, 56px); align-items: center; padding-block: 28px 64px; }
.hero-eyebrow { gap: 12px; }
.live-pill { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--live-bg); }
.hero h1 { margin: 22px 0 26px; max-width: 11.5ch; font-size: clamp(46px, 26px + 4.4vw, 90px); }
.hero-sub { color: var(--muted); max-width: 46ch; }
.hero-ctas { margin-top: 36px; display: grid; gap: 22px; justify-items: start; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; min-height: 44px; }
.scroll-cue .ic { animation: cue 1.94s var(--ease-out) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

.hero-stage { position: relative; height: clamp(520px, calc(100svh - 190px), 700px); }
.hs-field { position: absolute; inset: 0 0 0 7%; border-radius: 34px; overflow: hidden; background: linear-gradient(180deg, #4C6CBB 0%, #6689DF 38%, #97B2EE 58%, #C6D6F7 64%); box-shadow: var(--sh-soft); isolation: isolate; }
.hs-field::before { content: ""; position: absolute; inset: 0; background: url(../img/bg-grid.svg) center / 1400px auto; opacity: .7; mix-blend-mode: soft-light; z-index: 0; }
.hs-sun { position: absolute; left: 50%; top: 56%; width: 120%; height: 40%; transform: translate(-50%, -50%); background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%); z-index: 0; }
.hs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hs-hud { position: absolute; z-index: 3; left: 22px; top: 20px; right: 22px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #fff; }
.hs-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px; border-radius: 999px; background: rgba(16,22,36,.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-weight: 500; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.hs-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); font-size: 13px; }
.hs-tabs > * { padding: 6px 12px; border-radius: 999px; font-weight: 500; }
.hs-tabs b { background: #fff; color: var(--navy); }
.hs-link { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; }
.hs-link line { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .9; }
.hs-link circle { fill: #fff; stroke: rgba(103,142,229,.7); stroke-width: 6; }
.frag { position: absolute; z-index: 6; will-change: transform; }
.frag > * { animation: floaty 7.76s ease-in-out infinite; }
.frag-unit { left: 60%; top: 30%; }
.frag-unit > * { animation-delay: -1.2s; }
.frag-dex { left: -3%; top: 25%; }
.frag-dex > * { animation-delay: -3.4s; }
.frag-feed { left: 0%; bottom: 12%; }
.frag-feed > * { animation-delay: -5s; }
.frag-price { right: -2%; top: 15%; }
.frag-price > * { animation-delay: -2.2s; }
.dexbub { display: flex; align-items: flex-start; gap: 10px; width: 280px; padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: #fff; box-shadow: var(--sh-float); font-size: 14px; line-height: 1.35; }
.dexbub b { display: block; font-size: 13px; color: var(--wa-head); font-weight: 500; }
.pricepill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: #fff; box-shadow: var(--sh-float); }
.pp-price { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-head); font-weight: 500; font-size: 18px; letter-spacing: -.01em; }
.pp-price .ic { color: var(--live-text); }
.hs-sample { right: 14px; bottom: 14px; }
.hs-pause { position: absolute; z-index: 7; left: calc(7% + 14px); bottom: 14px; background: rgba(255,255,255,.9); }
.hs-pause[aria-pressed="true"] use { }
/* entrance states (JS adds .is-live on the stage) */
.js .hero-stage .frag, .js .hero-stage .hs-hud, .js .hero-stage .hs-link { opacity: 0; transform: translateY(14px) scale(.94); transition: opacity .5s var(--ease-out), transform .7s var(--ease-snap); }
.js .hero-stage.is-live .hs-hud { opacity: 1; transform: none; }
.js .hero-stage .frag.is-in, .js .hero-stage .hs-link.is-in { opacity: 1; transform: none; }
.reduced-motion .hero-stage .frag, .reduced-motion .hero-stage .hs-hud, .reduced-motion .hero-stage .hs-link { opacity: 1 !important; transform: none !important; }

@media (max-width: 1023px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 36px 88px; }
  .hero-stage { height: 520px; }
  .hs-field { inset: 0; }
}
@media (max-width: 767px) {
  .hero-grid { gap: 36px; padding-block: 28px 84px; }
  .hero h1 { margin: 16px 0 18px; }
  .hero-ctas { margin-top: 28px; justify-items: stretch; }
  .hero-ctas .btn-row { display: grid; grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .play-link { justify-self: start; }
  .hero-stage { height: 470px; margin-inline: calc(var(--margin) * -.4); }
  .hs-field { border-radius: 28px; }
  .hs-hud { left: 14px; right: 14px; top: 14px; }
  .hs-tabs { display: none; }
  .frag-unit { left: auto; right: 4%; top: 150px; transform-origin: right center; }
  .frag-unit .unit-card { width: 190px; padding: 12px; }
  .frag-unit .unit-card h4 { font-size: 20px; }
  .frag-unit .uc-plan { display: none; }
  .frag-unit .uc-foot { margin-top: 8px; }
  .frag-unit .uc-foot .tlink { display: none; }
  .frag-dex { left: 3%; top: 64px; }
  .dexbub { width: 232px; font-size: 13px; padding: 10px 12px; }
  .frag-feed { left: 3%; bottom: 60px; }
  .frag-price { right: 3%; top: auto; bottom: 14px; display: none; }
  .fact { font-size: 13px; padding: 8px 12px 8px 10px; }
  .hs-pause { left: 14px; bottom: 14px; }
  .hs-sample { bottom: 18px; }
  .frag-feed { bottom: 64px; }
}
/* polish: mobile hero gets its own composition: headline, then the live stage inside the first viewport, then copy + CTAs */
@media (max-width: 767px) {
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-block: 18px 72px; }
  .hero-copy { display: contents; }
  .hero-eyebrow { order: 1; font-size: 11.5px; letter-spacing: .1em; }
  .hero h1 { order: 2; margin: 14px 0 20px; font-size: clamp(42px, 12.4vw, 56px); line-height: .98; }
  .hero-stage { order: 3; height: 400px; margin-inline: calc(var(--margin) * -.5); }
  .hero-sub { order: 4; margin-top: 26px; font-size: 17px; }
  .hero-ctas { order: 5; }
  .hero-stage { height: 420px; }
  .frag-unit { top: 146px; right: 3%; }
  .frag-unit .unit-card { width: 178px; }
  .frag-unit .uc-top { font-size: 10px; white-space: nowrap; flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
  .frag-unit .uc-top .badge { font-size: 10px; height: 20px; padding: 0 7px; }
  .frag-unit .uc-meta { font-size: 12px; }
  .frag-feed { bottom: 66px; left: 3%; }
  .frag-dex { top: 64px; }
  .scroll-cue { display: none; }
}
@media (max-width: 380px) { .frag-feed { display: none; } }

/* ================= WATERLINE ================= */
.tip { position: relative; height: 250vh; background: #22345A; }
.tip-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.tip-sky { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; background: linear-gradient(180deg, #7F9EEB 0%, #678EE5 50%, #5C7ECC 100%); }
.tip-sky::before { content: ""; position: absolute; inset: 0; background: url(../img/bg-grid.svg) center / 1920px auto; opacity: .9; mix-blend-mode: soft-light; }
.tip-line { position: relative; max-width: 12ch; transform-origin: 50% 50%; will-change: transform; }
.tip-water { position: absolute; inset: 0; clip-path: inset(-50px 0 0 0); transform: translateY(var(--wy, 100%)); background: linear-gradient(180deg, #3B5690 0%, #2B4274 40%, #1A2744 100%); will-change: transform; }
.tip-wave { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='40' viewBox='0 0 480 40'%3E%3Cpath d='M0 20 C 80 4 160 4 240 20 S 400 36 480 20 V40 H0Z' fill='%233B5690'/%3E%3C/svg%3E") repeat-x 0 0 / 480px 40px; animation: wave 3.88s linear infinite; }
@keyframes wave { to { background-position: 480px 0; } }
.tip-water-inner { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 28px; text-align: center; color: #fff; transform: translateY(calc(-1 * var(--wy, 100%))); will-change: transform; padding-inline: var(--margin); }
.tip-under { max-width: 12ch; }
.tip-sub { color: var(--on-dark-2); font-size: var(--t-lead); }
.tip-water-inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 35% at 50% 45%, rgba(103,142,229,.35), transparent 70%); }
.tip-bubbles { position: absolute; inset: 0; pointer-events: none; }
.reduced-motion .tip { height: auto; }
.reduced-motion .tip-sticky { position: relative; height: auto; }
.reduced-motion .tip-sky, .reduced-motion .tip-water { position: relative; min-height: 70vh; transform: none; }
.reduced-motion .tip-water-inner { position: relative; min-height: 70vh; transform: none; }
@media (max-width: 767px) { .tip { height: 200vh; } }

/* ================= LAYERS ================= */
.layers { position: relative; background: var(--mist); }
.layers::before { content: ""; position: absolute; inset: 0; background: url(../img/bg-grid.svg) center top / 1920px auto repeat-y; opacity: .8; pointer-events: none; }
.layers-grid { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 3vw, 64px); }
.layer { position: relative; min-height: 175vh; }
.layer:first-child { margin-top: -10vh; }
.layer-inner { position: sticky; top: calc(var(--header-h) + 9vh); padding-block: 40px; display: grid; gap: 22px; justify-items: start; }
.layer-top { position: relative; display: flex; align-items: center; gap: 14px; }
.layer-top .eyebrow { flex-wrap: wrap; }
.layer-top .badge-product { letter-spacing: 0; text-transform: none; font-size: 13px; height: 28px; }
.layer-top .badge-product .ic { width: 15px; height: 15px; color: var(--b1); }
.layer-num { position: absolute; z-index: -1; left: -10px; top: -130px; font-family: var(--f-head); font-weight: 500; font-size: 240px; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(80,111,179,.28); pointer-events: none; user-select: none; }
.layer-h { font-size: clamp(40px, 22px + 2.64vw, 62px); line-height: 1.0; letter-spacing: -.04em; }
.bw-before-h { color: #6B7280; }
.layer .bw-stack { width: 100%; }
.layer [data-bw-state] { display: grid; gap: 22px; align-content: start; justify-items: start; }
.layer-body { color: var(--muted); max-width: 48ch; }
.layer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.layer-media-slot { display: none; width: 100%; }
.layers-stage { position: relative; }

/* mobile + tablet: each layer carries its own media panel (moved there by home.js) */
@media (max-width: 1023px) {
  .layers-grid { grid-template-columns: 1fr; }
  .layers-stage { display: none; }
  .layer { min-height: 0; padding-block: 56px; }
  .layer:first-child { margin-top: 0; }
  .layer-inner { position: relative; top: 0; padding-block: 0; }
  .layer-num { font-size: 180px; top: -100px; }
  .layer-media-slot { display: block; margin-top: 8px; }
}
@media (max-width: 767px) {
  .layer { padding-block: 48px; }
  .layer-h { font-size: clamp(38px, 10vw, 46px); }
  .bw-toggle button { padding: 0 12px; font-size: 13.5px; }
}

/* ================= DEX STAGE ================= */
.dex { position: relative; background: var(--stage); overflow: clip; }
.dex::before { content: ""; position: absolute; inset: 0; background: url(../img/bg-grid.svg) center top / 1920px auto repeat-y; filter: invert(1); opacity: .05; pointer-events: none; }
.dex-pin { position: relative; height: 240vh; }
.dex-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.dex-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 4vw, 80px); align-items: center; padding-top: calc(var(--header-h) * .6); }
.dex-copy { display: grid; gap: 22px; justify-items: start; }
.dex-copy [data-bw-state] { display: grid; gap: 22px; align-content: start; justify-items: start; }
.dex .layer-num { -webkit-text-stroke-color: rgba(103,142,229,.3); }
.dex .layer-body { color: var(--on-dark-2); }
.dex .bw-before-h { color: #7A849A; }
.dex-meet { font-family: var(--f-head); font-weight: 500; font-size: clamp(22px, 18px + 1vw, 32px); letter-spacing: -.02em; color: var(--wa); display: inline-flex; }
.badge-dex { background: rgba(37,211,102,.14); color: #7BE3A4; text-transform: none; letter-spacing: 0; font-size: 13px; height: 28px; }
.dex-phone-wrap { position: relative; display: grid; justify-items: center; gap: 16px; }
.dex-phone { --pw: min(300px, 34vh); }
.dex-glow { position: absolute; left: 50%; top: 46%; width: 520px; height: 520px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(37,211,102,.22), rgba(37,211,102,0)); pointer-events: none; transition: opacity .6s; }
.dex-phone-wrap[data-state="before"] .dex-glow { opacity: 0; }
.dex-phone-wrap .scr { opacity: 0; }
.dex-phone-wrap[data-state="before"] [data-dexscr="before"], .dex-phone-wrap[data-state="with"] [data-dexscr="with"], .dex-phone-wrap:not([data-state]) [data-dexscr="with"] { opacity: 1; }
.dex-cap { color: var(--on-dark-2); }
.dex-blackout { position: absolute; inset: 0; z-index: 20; background: #000; display: grid; place-items: center; align-content: center; gap: 28px; opacity: 0; visibility: hidden; }
.dex-blackout.is-on { opacity: 1; visibility: visible; }
.dex-blackout.is-out { opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), visibility 0s .5s; }
.dex-blackout .pulse { position: absolute; left: 50%; top: 50%; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; border: 2px solid var(--wa); opacity: 0; }
.dex-blackout.is-on .pulse { animation: dexPulse 1.94s var(--ease-out) infinite; }
.dex-blackout.is-on .pulse.p2 { animation-delay: .97s; }
@keyframes dexPulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
.dex-av.big { --s: 96px; box-shadow: 0 0 60px rgba(37,211,102,.4), inset 0 0 0 1px rgba(255,255,255,.25); }
.dex-av.big .on { box-shadow: 0 0 0 3px #000; }
.bo-line { position: relative; font-family: var(--f-head); font-weight: 500; font-size: var(--t-display); line-height: .98; letter-spacing: -.045em; color: #fff; }
.reduced-motion .dex-pin { height: auto; }
.reduced-motion .dex-sticky { position: relative; height: auto; padding-block: var(--section-y); }
.reduced-motion .dex-blackout { display: none; }

@media (max-width: 1023px) {
  .dex-pin { height: auto; }
  .dex-sticky { position: relative; height: auto; padding-block: 96px 48px; }
  .dex-grid { grid-template-columns: 1fr; padding-top: 0; }
  .dex-phone { --pw: 270px; }
}

/* burst */
.burst { position: relative; padding-bottom: clamp(80px, 60px + 5vw, 144px); }
.burst-stage { position: relative; height: clamp(460px, 70vh, 640px); }
.burst-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.burst-count { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; pointer-events: none; }
.burst-count p { display: grid; justify-items: center; font-family: var(--f-head); font-weight: 500; }
.bc-l { font-size: clamp(22px, 18px + 1vw, 34px); letter-spacing: -.02em; color: #fff; }
.bc-n { font-size: clamp(110px, 60px + 12vw, 240px); line-height: .85; letter-spacing: -.06em; color: #fff; text-shadow: 0 0 60px rgba(37,211,102,.35); font-variant-numeric: tabular-nums; }
.bc-check { width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: var(--navy); display: grid; place-items: center; box-shadow: 0 0 40px rgba(37,211,102,.5); }
.bc-check .ic { width: 28px; height: 28px; stroke-width: 2.6; }
.burst-count .badge-sample { pointer-events: auto; }
.burst-count { background: radial-gradient(28% 40% at 50% 50%, rgba(11,16,32,.85), rgba(11,16,32,0)); }
.burst-end { display: grid; justify-items: center; text-align: center; gap: 28px; margin-top: 24px; }
.burst-end h2 { max-width: 12ch; }

/* ================= ONE FLOW ================= */
.flow { position: relative; overflow: hidden; padding-block: clamp(96px, 70px + 6vw, 176px); background: linear-gradient(180deg, #0B1020 0%, #16223F 22%, #2E4577 55%, #506FB3 82%, #678EE5 100%); }
.flow::before { content: ""; position: absolute; inset: 0; background: url(../img/bg-grid.svg) center / 1920px auto; filter: invert(1); opacity: .06; }
.flow .sec-head { position: relative; }
.flow .sec-head h2 { max-width: 20ch; }
.flow-diagram { position: relative; margin-top: 16px; }
.flow-svg { width: 100%; height: auto; overflow: visible; font-family: var(--f-body); }
.fl-line { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 2.5; stroke-linecap: round; }
.fl-arc { fill: none; stroke: rgba(184,195,216,.7); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.fl-dex { fill: none; stroke: var(--wa); stroke-width: 2; stroke-dasharray: 1 9; stroke-linecap: round; opacity: .9; }
.fl-drops path { fill: none; stroke: rgba(37,211,102,.45); stroke-width: 1.5; stroke-dasharray: 1 6; stroke-linecap: round; }
.fl-dexchip rect { fill: rgba(37,211,102,.14); stroke: rgba(37,211,102,.55); }
.fl-dexchip .dexdot { fill: var(--wa); }
.fl-dexchip text { fill: #fff; font-size: 15px; font-weight: 500; }
.fl-arcchip rect { fill: rgba(11,16,32,.5); stroke: rgba(255,255,255,.28); }
.fl-arcchip text { fill: #fff; font-size: 15px; font-weight: 500; }
.fl-arcchip use { color: var(--b3); }
.fl-chip rect { fill: #fff; }
.fl-chip text { fill: var(--navy); font-size: 15px; font-weight: 500; }
.fl-chip use { color: var(--b1); }
.fl-node { color: #fff; }
.fl-node .nb { fill: #101624; stroke: rgba(255,255,255,.4); stroke-width: 1.5; }
.fl-node .nr { fill: none; stroke: var(--b3); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.fl-node.is-hit .nr { animation: nodeHit .9s var(--ease-out); }
.fl-node.is-hit .nb { fill: #1D2B4E; }
@keyframes nodeHit { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.fl-node text { fill: #fff; font-size: 18px; font-weight: 500; text-anchor: middle; font-family: var(--f-head); }
.fl-pulse { fill: #fff; }
.fl-pulse-glow { fill: #9FC0FF; opacity: .9; }
.fl-route { fill: none; stroke: none; }
.js .flow-diagram .fl-chip, .js .flow-diagram .fl-dexchip, .js .flow-diagram .fl-arcchip { opacity: 0; }
.flow-v { display: none; }
.flow-end { position: relative; display: grid; justify-items: center; text-align: center; gap: 24px; margin-top: clamp(40px, 30px + 3vw, 80px); }
.flow-end .t-lead { color: #fff; opacity: .92; max-width: 52ch; }
.flow-one { font-size: clamp(64px, 40px + 8vw, 168px); letter-spacing: -.05em; }
@media (max-width: 899px) {
  .flow-svg { display: none; }
  .flow-v { display: grid; list-style: none; padding: 0; gap: 0; max-width: 420px; margin: 0 auto; position: relative; }
  .flow-v::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 120px; width: 2px; background: linear-gradient(#fff, rgba(255,255,255,.4)); }
  .fv-node { display: flex; align-items: center; gap: 16px; min-height: 72px; font-family: var(--f-head); font-size: 22px; font-weight: 500; position: relative; }
  .fv-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); flex: none; }
  .fv-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 14px 76px; }
  .fv-chips .chip { background: #fff; color: var(--navy); box-shadow: none; }
  .fv-chips .chip .ic { color: var(--b1); }
  .fv-return, .fv-dex { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: rgba(11,16,32,.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); font-size: 15px; }
  .fv-dex { background: rgba(37,211,102,.12); box-shadow: inset 0 0 0 1px rgba(37,211,102,.4); }
  .fv-return b, .fv-dex b { font-weight: 500; margin-right: 4px; }
}

/* ================= CONNECTED ================= */
.conn-h { font-size: var(--t-h2); }
.conn { position: relative; }
.conn-lines { display: block; width: 100%; height: 100px; overflow: visible; }
.conn-lines path { fill: none; stroke: var(--b3); stroke-width: 1.5; stroke-dasharray: 3 7; vector-effect: non-scaling-stroke; animation: dash 1.94s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.conn-hub { position: absolute; left: 50%; top: -30px; width: 60px; height: 60px; transform: translateX(-50%); border-radius: 18px; background: #fff; box-shadow: var(--sh-float); display: grid; place-items: center; }
.conn-hub svg { width: 30px; height: 30px; }
.conn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.conn-tile { display: grid; gap: 12px; align-content: start; }
.conn-tile p { color: var(--muted); }
.ct-vis { height: 120px; border-radius: 18px; background: var(--mist); display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 8px; position: relative; overflow: hidden; }
.ct-node { width: 52px; height: 52px; border-radius: 16px; background: #fff; box-shadow: var(--sh-card); display: grid; place-items: center; color: var(--b1); flex: none; }
.ct-pipe { position: relative; width: 110px; height: 22px; }
.ct-pipe::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--border-2); }
.ct-pipe i { position: absolute; top: 3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--b1); animation: pipeGo 1.94s linear infinite; }
.ct-pipe i.rev { top: auto; bottom: 3px; background: var(--live); animation-name: pipeBack; animation-delay: -.97s; }
@keyframes pipeGo { from { transform: translateX(0); } to { transform: translateX(102px); } }
@keyframes pipeBack { from { transform: translateX(102px); } to { transform: translateX(0); } }
.ct-bubbles { display: flex; gap: 6px; }
.ct-bubbles i { width: 22px; height: 16px; border-radius: 8px 8px 8px 3px; background: var(--wa); opacity: .25; animation: bub 1.94s ease-in-out infinite; }
.ct-bubbles i:nth-child(2) { animation-delay: .24s; } .ct-bubbles i:nth-child(3) { animation-delay: .48s; }
@keyframes bub { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-5px); } }
.ct-browser { width: 210px; height: 92px; border-radius: 12px; background: #fff; box-shadow: var(--sh-card); position: relative; padding: 24px 10px 10px; display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; }
.ct-browser .dots { position: absolute; top: 8px; left: 10px; display: flex; gap: 4px; }
.ct-browser .dots b { width: 6px; height: 6px; border-radius: 50%; background: var(--border-2); }
.ct-embed { height: 56px; border-radius: 8px; background: var(--field); display: grid; place-items: center; color: #fff; }
.ct-browser code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--bdeep); background: var(--tint); padding: 6px 8px; border-radius: 6px; }
.conn-link { margin-top: 36px; }
@media (max-width: 899px) { .conn-grid { grid-template-columns: 1fr; } .conn-lines, .conn-hub { display: none; } }

/* polish: on phones the hero copy under the stage is below the fold at load, so no load-time delays */
@media (max-width: 767px) { .hero .hero-sub, .hero .hero-ctas { --d: 0ms !important; } }

/* ================= LAYERS · product media panels =================
   The panels are the product pages' own markup and styles (home-panels.css,
   scoped under .hp). These rules only seat them in the home layout. */
.hp-stage { position: sticky; top: calc(var(--header-h) + 16px); height: calc(100vh - var(--header-h) - 32px); min-height: 560px; max-height: 760px; margin-block: 16px; }
.hp-stage .hp-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.985); transition: opacity .45s var(--ease-out), transform .6s var(--ease-snap), visibility 0s .45s; }
.hp-stage[data-active="0"] [data-hp="0"], .hp-stage[data-active="1"] [data-hp="1"], .hp-stage[data-active="2"] [data-hp="2"], .hp-stage[data-active="3"] [data-hp="3"] { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease-out), transform .6s var(--ease-snap), visibility 0s; }
/* panels keep the product pages' light-page text colour, even inside the dark Dex section */
.hp { color: var(--navy); }
/* neutralise the wrappers that only exist so the product selectors match */
.hp .page-hero.hp-hero { padding: 0; margin: 0; background: none; height: 100%; }
.hp .part.hp-part { display: block; height: 100%; padding: 0; margin: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.hp .part.hp-part .media-panel.hp-panel { height: 100%; aspect-ratio: auto; }
/* hero visuals fill the panel; problem visuals sit centred like on the product pages */
.hp .hp-with { position: absolute; inset: 0; }
.hp .hp-with > .ph-visual { position: absolute; inset: 0; border-radius: inherit; box-shadow: none; }
@media (min-width: 1024px) { .hp .page-hero .hp-with > .ph-visual { min-height: 0; } }
.hp .hp-before { padding: 28px; }
.hp .hp-before > .pp-problem-vis { width: 100%; max-width: 560px; }
/* mobile / tablet: each layer carries its own panel. Part panels keep the product pages'
   mobile aspect ratio; hero visuals size to their content, as they do on the product pages. */
@media (max-width: 1023px) {
  .hp .page-hero.hp-hero, .hp .part.hp-part, .hp .part.hp-part .media-panel.hp-panel { height: auto; }
  .hp .part.hp-part .media-panel.hp-panel:not(:has(> .hp-with)) { aspect-ratio: 4 / 3.6; }
  .hp .media-panel.hp-panel:has(> .hp-with) { aspect-ratio: auto; }
  .hp .part .media-panel [data-pm].hp-with { position: relative; inset: auto; }
  .hp .hp-with > .ph-visual { position: relative; inset: auto; }
}
@media (max-width: 599px) {
  .hp .part.hp-part .media-panel.hp-panel:not(:has(> .hp-with)) { aspect-ratio: 4 / 4.6; }
  .hp .hp-before { padding: 16px; }
}
/* Dex layer (dark stage) */
@media (min-width: 1024px) { .dex .dex-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); } }
.dex .hp-dex { width: 100%; height: min(680px, calc(100vh - var(--header-h) - 80px)); min-height: 560px; }
@media (max-width: 1023px) { .dex .hp-dex { height: auto; min-height: 0; } }

/* layer 1 · With: the kit board (every asset, one place) */
.hp .kb { width: min(100%, 420px); display: grid; gap: 14px; padding: 18px; border-radius: 24px; background: #fff; box-shadow: var(--sh-panel); color: var(--navy); font-size: 13px; }
.hp .kb-h { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.hp .kb-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--field); color: #fff; }
.hp .kb-ic svg { width: 20px; height: 20px; }
.hp .kb-h small { display: block; color: var(--muted); font-size: 11.5px; }
.hp .kb-h b { display: block; font-family: var(--f-head); font-weight: 500; font-size: 18px; letter-spacing: -.02em; }
.hp .kb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hp .kb-t { display: grid; gap: 2px; padding: 6px 6px 10px; border-radius: 14px; background: var(--mist); }
.hp .kb-t b { font-weight: 500; font-size: 12.5px; padding-inline: 4px; margin-top: 4px; }
.hp .kb-t small { color: var(--muted); font-size: 11px; padding-inline: 4px; }
.hp .kb-img img, .hp .kb-art { width: 100%; height: 64px; border-radius: 10px; object-fit: cover; }
.hp .kb-art { display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.hp .kb-plan { color: var(--b1); } .hp .kb-plan svg { width: 70%; }
.hp .kb-art .pay { width: 78%; height: 22px; }
.hp .kb-art .pay i { font-size: 10px; }
.hp .kb-avail { grid-template-columns: repeat(3, 14px); gap: 5px; align-content: center; justify-content: center; }
.hp .kb-avail i { width: 14px; height: 10px; border-radius: 3px; background: var(--live); }
.hp .kb-avail i.res { background: var(--amber); } .hp .kb-avail i.sold { background: #C9CED8; }
.hp .kb-share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 500; }
/* tiles land one by one when With appears */
.hp .media-panel[data-state="with"] .kb-t { animation: kbIn .5s var(--ease-snap) both; animation-delay: calc(.25s + var(--i, 0) * .09s); }
@keyframes kbIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@media (max-width: 599px) { .hp .kb { padding: 14px; } .hp .kb-img img, .hp .kb-art { height: 52px; } }
