/* ════════════════════════════════════════════════════════════
   HERO v2 — "Bubbled Up, literally" (2026-10-09)
   Home page only (index.html loads this after style.css).
   Everything is scoped to #hero.hero-v2; the old hero rules in
   style.css stay untouched, so removing class="hero-v2" + this
   file's <link> is the whole revert.
   ════════════════════════════════════════════════════════════ */

#hero.hero-v2 {
  --hv-ink: #030d1c;
  --hv-deep: #06264a;
  --hv-irid: linear-gradient(100deg, #7dd3fc 0%, #22d3ee 22%, #67e8f9 38%, #a5b4fc 52%, #e9d5ff 61%, #38bdf8 76%, #7dd3fc 100%);
  position: relative;
  display: block;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 90% at 72% 8%, #0b3d6b 0%, var(--hv-deep) 36%, var(--hv-ink) 80%);
}

/* ── Background layers ───────────────────────────────────── */
.hero-v2 .hv-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-v2 .hv-photo {
  position: absolute;
  inset: -4%;
  background: url('../assets/hero-carwash.jpg') center / cover no-repeat;
  opacity: 0.14;
  mix-blend-mode: luminosity;
  filter: saturate(0.5) blur(1px);
}
.hero-v2 .hv-aurora {
  position: absolute;
  border-radius: 50%;
  /* No filter/blend: the gradients already fade to nothing, and blur(60px) here cost ~half the frame rate. */
  will-change: transform;
}
.hero-v2 .hv-a1 {
  width: 52vw; height: 52vw; left: -14vw; top: -18vw;
  background: radial-gradient(circle, rgba(14,165,233,0.75), rgba(14,165,233,0) 64%);
  animation: hvDrift1 22s ease-in-out infinite alternate;
}
.hero-v2 .hv-a2 {
  width: 44vw; height: 44vw; right: -12vw; top: 6vh;
  background: radial-gradient(circle, rgba(6,182,212,0.6), rgba(6,182,212,0) 64%);
  animation: hvDrift2 27s ease-in-out infinite alternate;
}
.hero-v2 .hv-a3 {
  width: 38vw; height: 38vw; left: 28vw; bottom: -20vw;
  background: radial-gradient(circle, rgba(139,92,246,0.42), rgba(139,92,246,0) 64%);
  animation: hvDrift3 31s ease-in-out infinite alternate;
}
.hero-v2 .hv-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(186,230,253,0.16) 1px, transparent 1.4px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 45%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 70% 45%, #000 0%, transparent 75%);
}
.hero-v2 .hv-bg::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(3,13,28,0) 0%, rgba(3,13,28,0.75) 100%);
}

#bubble-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  /* Bubbles stay faint behind the copy so they never fight the text */
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.3) 44%, #000 58%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.3) 44%, #000 58%);
}

/* ── Layout ──────────────────────────────────────────────── */
.hero-v2 .hv-inner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1240px;
  margin: 0 auto;
  padding: 128px 32px 140px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 32px;
}
.hero-v2 .hv-copy { max-width: 640px; }

/* ── Copy ────────────────────────────────────────────────── */

#hero.hero-v2 .hero-title {
  font-size: clamp(2.5rem, 4.7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  text-align: left;
}
.hero-v2 .hv-line { display: block; }
@media (min-width: 1101px) { .hero-v2 .hv-line { white-space: nowrap; } }
.hero-v2 .hv-irid {
  color: #38bdf8;
}

#hero.hero-v2 .hero-subtitle {
  max-width: 530px;
  margin: 0 0 34px;
  text-align: left;
  color: rgba(214,236,252,0.8);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

#hero.hero-v2 .hero-actions { justify-content: flex-start; gap: 14px; }
.hero-v2 .hv-play {
  display: inline-block;
  line-height: 0;
  border-radius: 14px;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.35));
  transition: transform 0.25s var(--ease-out-expo), filter 0.25s;
}
/* The official badge PNG carries its own clear space, so it's sized by its full box. */
.hero-v2 .hv-play img { display: block; width: auto; height: 70px; }
.hero-v2 .hv-play:hover { transform: translateY(-3px); filter: drop-shadow(0 18px 34px rgba(14,165,233,0.35)); }
.hero-v2 .hv-play:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; }

.hero-v2 .hv-ios {
  margin: 14px 0 0;
  color: rgba(186,230,253,0.72);
  font-size: 0.9rem;
  opacity: 0;
  animation: hvUp 0.9s var(--ease-out-expo) 1.15s forwards;
}
.hero-v2 .hv-ios a {
  color: #7dd3fc;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(125,211,252,0.4);
  text-underline-offset: 3px;
}
.hero-v2 .hv-ios a:hover { text-decoration-color: #7dd3fc; }

.hero-v2 .hv-ticks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  color: rgba(224,242,254,0.86);
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  animation: hvUp 0.9s var(--ease-out-expo) 1.3s forwards;
}
.hero-v2 .hv-ticks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-v2 .hv-ticks svg { width: 18px; height: 18px; flex-shrink: 0; color: #22d3ee; }

/* ── Visual: bubble, phone, floating cards ───────────────── */
.hero-v2 .hv-visual {
  position: relative;
  height: 620px;
  perspective: 1400px;
  opacity: 0;
  animation: hvRise 1.4s var(--ease-out-expo) 0.45s forwards;
}
.hero-v2 .hv-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(calc(-11deg + var(--px, 0) * 9deg)) rotateX(calc(4deg - var(--py, 0) * 7deg));
  transition: transform 0.7s var(--ease-out-expo);
}

/* The big soap bubble the phone floats in */
.hero-v2 .hv-orb {
  position: absolute;
  left: 50%; top: 50%;
  width: 540px; height: 540px;
  margin: -270px 0 0 -270px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(14,165,233,0) 52%, rgba(125,211,252,0.08) 64%, rgba(224,242,254,0.16) 69.5%, rgba(14,165,233,0) 71%),
    radial-gradient(circle at 50% 55%, rgba(14,165,233,0.16), rgba(14,165,233,0) 62%);
  box-shadow: 0 0 120px rgba(14,165,233,0.22), inset 0 0 90px rgba(125,211,252,0.12);
  transform: translateZ(-60px);
  animation: hvBreathe 9s ease-in-out infinite;
}
.hero-v2 .hv-orb::before { /* thin-film colours, slowly swirling round the rim */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #22d3ee, #a5b4fc, #f0abfc, #fde68a, #86efac, #22d3ee);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 3px), transparent 100%);
          mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 3px), transparent 100%);
  opacity: 0.55;
  filter: blur(1.5px);
  animation: hvSpin 18s linear infinite;
}
.hero-v2 .hv-orb::after { /* window highlight */
  content: '';
  position: absolute;
  left: 14%; top: 11%;
  width: 30%; height: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.5), rgba(255,255,255,0));
  transform: rotate(-38deg);
}

.hero-v2 .hv-phone {
  position: absolute;
  left: 50%; top: 50%;
  width: 272px;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(150deg, #24324a 0%, #0b1322 55%, #1a2538 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(148,163,184,0.35),
    0 0 0 1px rgba(255,255,255,0.05),
    0 50px 100px rgba(0,0,0,0.55),
    0 0 60px rgba(14,165,233,0.25);
  transform: translate(-50%, -50%) translateZ(30px);
}
.hero-v2 .hv-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
}
.hero-v2 .hv-phone::after { /* glass reflection */
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 36px;
  background: linear-gradient(118deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0) 46%);
  pointer-events: none;
}
.hero-v2 .hv-notch {
  position: absolute;
  top: 20px; left: 50%;
  width: 80px; height: 22px;
  margin-left: -40px;
  border-radius: 20px;
  background: #04070d;
  z-index: 1;
}

.hero-v2 .hv-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: rgba(8,28,52,0.62);
  border: 1px solid rgba(125,211,252,0.22);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 20px 44px rgba(0,0,0,0.36), inset 0 1px 0 rgba(255,255,255,0.08);
  color: #e0f2fe;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  opacity: 0;
  animation: hvPop 0.8s var(--ease-out-expo) forwards, hvBob 6.5s ease-in-out infinite;
}
.hero-v2 .hv-card b { display: block; color: #fff; font-family: var(--font-head); font-size: 0.9rem; font-weight: 800; letter-spacing: -0.01em; }
.hero-v2 .hv-card small { color: rgba(186,230,253,0.75); font-size: 0.76rem; }
.hero-v2 .hv-ico { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; }
.hero-v2 .hv-ico svg { width: 20px; height: 20px; }
.hero-v2 .hv-ico-ok { background: rgba(34,197,94,0.18); color: #4ade80; }
.hero-v2 .hv-ico-lock { background: rgba(14,165,233,0.2); color: #7dd3fc; }

.hero-v2 .hv-c1 {
  left: 0; top: 13%;
  transform: translate3d(calc(var(--px, 0) * -16px), calc(var(--py, 0) * -10px), 90px);
  animation-delay: 1s, -1s;
}
.hero-v2 .hv-c3 {
  left: 6%; bottom: 11%;
  transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -14px), 70px);
  animation-delay: 1.5s, -4.4s;
}
.hero-v2 .hv-c2 {
  right: -2%; top: 42%;
  display: block;
  width: 232px;
  padding: 14px 16px 14px;
  transform: translate3d(calc(var(--px, 0) * 18px), calc(var(--py, 0) * 12px), 120px);
  animation-delay: 1.25s, -2.6s;
}
.hero-v2 .hv-c2-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hero-v2 .hv-c2-head b { font-size: 0.78rem; color: rgba(186,230,253,0.85); font-family: var(--font-body); font-weight: 600; }
.hero-v2 .hv-livepill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(239,68,68,0.16);
  color: #fca5a5;
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-v2 .hv-livepill i { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; animation: hvBlink 1.2s steps(2, start) infinite; }
.hero-v2 .hv-step {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  transition: opacity 0.22s, transform 0.22s;
}
.hero-v2 .hv-step.swap { opacity: 0; transform: translateY(-4px); }
.hero-v2 .hv-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.1); overflow: hidden; }
.hero-v2 .hv-bar i {
  display: block;
  height: 100%;
  width: var(--p, 25%);
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #22d3ee);
  box-shadow: 0 0 12px rgba(34,211,238,0.6);
  transition: width 0.9s var(--ease-out-expo), background 0.4s;
}
.hero-v2 .hv-steps { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.66rem; color: rgba(186,230,253,0.45); font-weight: 600; }
.hero-v2 .hv-steps span { transition: color 0.3s; }
.hero-v2 .hv-steps span.on { color: #7dd3fc; }
.hero-v2 .hv-c2.is-ready .hv-step { color: #4ade80; }
.hero-v2 .hv-c2.is-ready .hv-bar i { background: linear-gradient(90deg, #22c55e, #4ade80); box-shadow: 0 0 12px rgba(74,222,128,0.6); }
.hero-v2 .hv-c2.is-ready .hv-steps span.on { color: #86efac; }

/* Trust bar sits on the hero's bottom edge (desktop) */
#hero.hero-v2 .trust-strip { z-index: 3; }

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes hvSheen   { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes hvUp      { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hvRise    { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes hvPop     { from { opacity: 0; scale: 0.85; } to { opacity: 1; scale: 1; } }
@keyframes hvBob     { 0%, 100% { translate: 0 0; } 50% { translate: 0 -11px; } }
@keyframes hvSpin    { to { transform: rotate(360deg); } }
@keyframes hvBreathe { 0%, 100% { scale: 1; } 50% { scale: 1.025; } }
@keyframes hvBlink   { to { visibility: hidden; } }
@keyframes hvDrift1  { to { transform: translate3d(8vw, 6vh, 0) scale(1.08); } }
@keyframes hvDrift2  { to { transform: translate3d(-7vw, 9vh, 0) scale(0.94); } }
@keyframes hvDrift3  { to { transform: translate3d(-9vw, -7vh, 0) scale(1.1); } }

/* ── Tablet ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-v2 .hv-inner { padding: 120px 24px 130px; gap: 16px; }
  .hero-v2 .hv-visual { height: 560px; }
  .hero-v2 .hv-orb { width: 470px; height: 470px; margin: -235px 0 0 -235px; }
  .hero-v2 .hv-phone { width: 240px; }
  .hero-v2 .hv-c2 { right: -4%; }
}

/* ── Phone: one column, visual under the copy, trust bar in flow ── */
@media (max-width: 900px) {
  #hero.hero-v2 { min-height: 0; }
  .hero-v2 .hv-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 112px 20px 24px;
    gap: 0;
    text-align: center;
  }
  .hero-v2 .hv-copy { max-width: 620px; margin: 0 auto; }
  #bubble-canvas {
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.3) 50%, #000 62%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.3) 50%, #000 62%);
  }
  #hero.hero-v2 .hero-title,
  #hero.hero-v2 .hero-subtitle { text-align: center; margin-left: auto; margin-right: auto; }
  #hero.hero-v2 .hero-actions,
  .hero-v2 .hv-ticks { justify-content: center; }
  /* style.css stacks hero buttons full-width on phones; the Play badge can't stretch, so keep them side by side */
  #hero.hero-v2 .hero-actions { flex-direction: row; }
  #hero.hero-v2 .hero-actions .btn-secondary { width: auto; }
  .hero-v2 .hv-visual { height: 470px; margin-top: 18px; }
  .hero-v2 .hv-stage { transform: rotateY(-8deg) rotateX(3deg); }
  .hero-v2 .hv-orb { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
  .hero-v2 .hv-phone { width: 210px; padding: 8px; border-radius: 38px; }
  .hero-v2 .hv-phone img, .hero-v2 .hv-phone::after { border-radius: 30px; }
  .hero-v2 .hv-phone::after { inset: 8px; }
  .hero-v2 .hv-notch { top: 16px; width: 62px; height: 17px; margin-left: -31px; }
  .hero-v2 .hv-c1 { left: 2%; top: 10%; }
  .hero-v2 .hv-c2 { right: 2%; top: 54%; width: 200px; }
  .hero-v2 .hv-c3 { display: none; }
  #hero.hero-v2 .trust-strip { position: relative; }
}
@media (max-width: 480px) {
  .hero-v2 .hv-inner { padding-top: 104px; }
  .hero-v2 .hv-play img { height: 56px; }
  #hero.hero-v2 .hero-actions { gap: 10px; }
  #hero.hero-v2 .hero-actions .btn-secondary { padding: 12px 18px; font-size: 0.84rem; }
  .hero-v2 .hv-ticks { gap: 8px 16px; font-size: 0.8rem; }
  .hero-v2 .hv-visual { height: 420px; }
  .hero-v2 .hv-orb { width: 330px; height: 330px; margin: -165px 0 0 -165px; }
  .hero-v2 .hv-phone { width: 188px; }
  .hero-v2 .hv-card { padding: 9px 12px 9px 9px; font-size: 0.72rem; gap: 9px; }
  .hero-v2 .hv-card b { font-size: 0.8rem; }
  .hero-v2 .hv-ico { width: 32px; height: 32px; border-radius: 10px; }
  .hero-v2 .hv-c1 { left: -2px; top: 8%; }
  .hero-v2 .hv-c2 { right: -2px; width: 176px; padding: 11px 12px; }
  .hero-v2 .hv-step { font-size: 0.92rem; }
}

/* ── Motion off: everything visible and still ────────────── */
@media (prefers-reduced-motion: reduce) {
  #hero.hero-v2 *,
  #hero.hero-v2 *::before,
  #hero.hero-v2 *::after { animation: none !important; transition: none !important; }
  .hero-v2 .hv-visual,
  .hero-v2 .hv-card,
  .hero-v2 .hv-ios,
  .hero-v2 .hv-ticks { opacity: 1 !important; }
}
