/* PowerCleanPay teaser — light storybook film. */
:root {
  --ink: #1e2a3a;
  --mute: #3f5166;
  --blue: #0061ff;
  --orange: #f97316;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --t: clamp(2.15rem, 1.05rem + 6.4vw, 7.25rem);
  --s1: 1;
  --s2: 0;
  --s3: 0;
  --expand: 0;
  --scale: 0;
  --c1: 247, 243, 234;
  --c2: 226, 237, 245;
  --c3: 214, 230, 238;
  --bar-bottom: 4.65rem;
  --chip-h: 2.85rem;
  --above-chip: calc(var(--bar-bottom) + var(--chip-h) + 1.15rem);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: rgb(var(--c2));
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: rgb(var(--c2));
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 30;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.film { position: relative; }

.stage {
  position: sticky;
  top: 0;
  isolation: isolate;
  height: 100svh;
  height: 100dvh;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(4.1rem, 9vh, 5.6rem) clamp(0.75rem, 3vw, 2.5rem) calc(var(--above-chip) + 3.4rem + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

.atmo {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(168deg, rgb(var(--c1)) 0%, rgb(var(--c2)) 48%, rgb(var(--c3)) 100%);
}
.wash {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}
.w1 {
  width: 140vw; height: 90vh; left: -20vw; top: -30vh;
  background: radial-gradient(ellipse at center, rgba(160, 208, 240, 0.55) 0%, transparent 70%);
  animation: drift 52s ease-in-out infinite;
}
.w2 {
  width: 120vw; height: 80vh; right: -26vw; bottom: -32vh;
  background: radial-gradient(ellipse at center, rgba(190, 230, 220, 0.45) 0%, transparent 72%);
  animation: drift 66s ease-in-out infinite reverse;
}
.w3 {
  width: 90vw; height: 70vh; left: 20vw; bottom: -24vh;
  background: radial-gradient(ellipse at center, rgba(255, 214, 176, 0.28) 0%, transparent 70%);
  opacity: calc(0.18 + var(--s3) * 0.18);
  animation: drift 74s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(3.5%, 2.5%, 0); }
}

.brand {
  position: absolute;
  top: clamp(0.9rem, 2.6vh, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: inherit;
  line-height: inherit;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #111;
}

/* Permanent rule: copy above the map. Never the same pixels. */
.frame {
  position: relative;
  width: min(1040px, 94vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.45rem, 1.4vh, 0.9rem);
}

.copy {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.map {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: clamp(200px, 34vh, 320px);
}

.route {
  fill: none;
  stroke: color-mix(in srgb, var(--blue) 28%, #9eb6c8);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.r-s1 { opacity: 1; }
.r-s2 { opacity: calc(1 - var(--s1)); }
.r-s3 { opacity: var(--expand); }
.r-global { opacity: calc(var(--scale, 0) * 0.72); }
.route.is-quiet { opacity: 0.28; }

.node {
  fill: #fff;
  stroke: color-mix(in srgb, var(--blue) 55%, #7aa0c4);
  stroke-width: 2.2;
  opacity: 0;
}
.node.r-s1 { opacity: 1; }
.node.r-s2 { opacity: calc(1 - var(--s1)); }
.node.r-s3 { opacity: var(--expand); }
.node.n-accent { stroke: var(--orange); }

.dot {
  fill: var(--blue);
  opacity: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 97, 255, 0.22));
}
.dot.accent {
  fill: var(--orange);
  filter: drop-shadow(0 2px 6px rgba(249, 115, 22, 0.25));
}
.dot.is-live { opacity: 1; }
.dot.is-parked {
  fill: var(--orange);
  opacity: 0.58;
  filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.38));
}

.titles {
  position: relative;
  width: max-content;
  max-width: 100%;
  min-height: calc(var(--t) * 1.88);
  display: grid;
  place-items: center;
}
.title {
  grid-area: 1 / 1;
  margin: 0;
  font-size: var(--t);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-align: center;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.title em {
  font-style: italic;
  font-weight: 500;
}
.title.is-wide {
  font-size: clamp(1.65rem, 0.85rem + 4vw, 4.55rem);
  letter-spacing: -0.035em;
}
.title.mark {
  font-size: clamp(2rem, 1rem + 5.2vw, 5.4rem);
  letter-spacing: 0.01em;
  font-weight: 600;
}
.title.is-on { opacity: 1; transform: none; }

.lines {
  position: relative;
  width: min(34ch, 92vw);
  min-height: 3.2em;
  margin-top: 0.45rem;
}
.line {
  position: absolute;
  inset: 0;
  margin: 0;
  text-align: center;
  font-size: clamp(1rem, 0.88rem + 0.4vw, 1.2rem);
  line-height: 1.4;
  color: var(--mute);
  opacity: 0;
  transition: opacity 420ms ease;
}
.line.is-on { opacity: 1; }
.line.close { top: 1.55em; }

.quiet {
  color: inherit;
  text-decoration: none;
}

.coda {
  position: fixed;
  left: 50%;
  z-index: 3;
  margin: 0;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: clamp(1.05rem, 0.92rem + 0.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}
.coda.is-on { opacity: 1; }
.coda.is-on .coda-legal a { pointer-events: auto; }
.coda-legal {
  display: block;
  margin-top: 0.4rem;
  max-width: 90vw;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1.55;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 48%, transparent);
}
.coda-legal a {
  color: inherit;
  text-decoration: none;
}
.coda-legal a:hover,
.coda-legal a:focus-visible {
  color: var(--ink);
}

.track { height: 1100vh; }

.disclaimer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  margin: 0;
  padding: 0.55rem 1.1rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: clamp(0.68rem, 0.62rem + 0.25vw, 0.78rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #243040;
  background: rgba(247, 244, 238, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(36, 48, 64, 0.08);
}

.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: calc(var(--above-chip) + env(safe-area-inset-bottom, 0px));
  z-index: 42;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
  color: #111;
  opacity: 1;
  transition: opacity 480ms ease;
}
.scroll-cue.is-gone {
  opacity: 0;
}
.scroll-cue-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111;
  animation: cue-bounce 1.15s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
}
.scroll-cue-chevron {
  width: 1.15rem;
  height: 1.15rem;
  color: #111;
  opacity: 1;
}
@keyframes cue-bounce {
  0%, 18%, 100% { transform: translateY(0); }
  38% { transform: translateY(-9px); }
  52% { transform: translateY(0); }
  66% { transform: translateY(-4px); }
  80% { transform: translateY(0); }
}

.to-top {
  position: fixed;
  right: max(0.85rem, env(safe-area-inset-right, 0px));
  bottom: calc(var(--above-chip) + env(safe-area-inset-bottom, 0px));
  z-index: 41;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(36, 48, 64, 0.12);
  border-radius: 50%;
  background: rgba(247, 244, 238, 0.55);
  color: var(--ink);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 280ms ease, visibility 280ms ease, transform 280ms ease, background 180ms ease;
}
.to-top svg { width: 1.15rem; height: 1.15rem; }
.to-top.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.to-top:hover,
.to-top:focus-visible {
  background: rgba(247, 244, 238, 0.88);
  outline: none;
}
.to-top:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 45%, transparent);
}
.partner-chip {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar-bottom) + env(safe-area-inset-bottom, 0px));
  z-index: 41;
  padding: 0.5rem 0.95rem;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 28%, #fff);
  border-radius: 999px;
  background: linear-gradient(135deg, #7ec8f0 0%, #0061ff 48%, #3aa9c9 100%);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transform: translateX(-50%);
  box-shadow: 0 8px 20px rgba(0, 97, 255, 0.18);
}
.partner-chip:hover,
.partner-chip:focus-visible {
  background: linear-gradient(135deg, #96d4f5 0%, #1a73ff 48%, #4db7d4 100%);
  color: #fff;
  outline: none;
}
.partner-chip:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 45%, transparent);
}
@media (min-width: 720px) {
  :root {
    --bar-bottom: 3.35rem;
    --above-chip: calc(var(--bar-bottom) + var(--chip-h) + 1.05rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .w1, .w2, .w3, .scroll-cue-chevron, .scroll-cue-label { animation: none; }
  .stage { position: relative; height: auto; min-height: 100svh; padding-bottom: 5rem; }
  .track { display: none; }
  .title { position: static; opacity: 1; transform: none; margin: 2.4rem 0 0; }
  .titles {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    width: min(22ch, 100%);
  }
  .line { position: static; transform: none; opacity: 1; width: auto; margin: 0.4rem 0 1.6rem; }
  .lines { min-height: 0; display: flex; flex-direction: column; width: min(34ch, 92vw); }
}
