/* ═══════════════════════════════════════════════════════════════
   pg-saas — Light "liquid glass" scroll-story (Stage 1).
   Airy pastel background, frosted glass panels, dark readable text.
   Desktop = live 3D scatter→building morph; phone = lighter SVG story.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --text: #191826;
  --muted: rgba(25, 24, 38, 0.62);
  --muted-dim: rgba(25, 24, 38, 0.42);

  --violet: #6d4bff;
  --cyan: #12a5c9;
  --grad: linear-gradient(120deg, #6d4bff, #12b6d8);
  --gold: #e59a25;
  --gold-grad: linear-gradient(135deg, #ffd27a, #ef9f28);

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-blur: 22px;
  --glass-shadow: 0 22px 55px -22px rgba(70, 70, 130, 0.35);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.9);

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', 'Sora', system-ui, sans-serif;

  --maxw: 1180px;
  --r-lg: 30px;
  --r-md: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.js { scroll-behavior: auto; }

body {
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background:
    linear-gradient(160deg, #ece9ff 0%, #e6f0ff 32%, #e7fbf3 66%, #fdefe7 100%) fixed;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.js [data-reveal]:not(.is-in) { opacity: 0; }

/* ══════════ BACKDROP: soft drifting glows ══════════ */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; inset: -12%; filter: blur(64px); }
.aurora__blob { position: absolute; border-radius: 50%; opacity: 0.5; mix-blend-mode: multiply; will-change: transform; }
.aurora__blob--1 { width: 44vw; height: 44vw; left: -6%; top: -8%;
  background: radial-gradient(circle, #c7b6ff 0%, transparent 66%); animation: drift1 28s ease-in-out infinite; }
.aurora__blob--2 { width: 40vw; height: 40vw; right: -8%; top: 4%;
  background: radial-gradient(circle, #a9e8ff 0%, transparent 66%); animation: drift2 32s ease-in-out infinite; }
.aurora__blob--3 { width: 48vw; height: 48vw; left: 10%; bottom: -18%;
  background: radial-gradient(circle, #b6f4dd 0%, transparent 66%); animation: drift3 36s ease-in-out infinite; }
.aurora__blob--4 { width: 32vw; height: 32vw; right: 10%; bottom: -6%;
  background: radial-gradient(circle, #ffd9c2 0%, transparent 66%); animation: drift1 30s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100%{ transform: translate(0,0) scale(1) } 50%{ transform: translate(6%,8%) scale(1.12) } }
@keyframes drift2 { 0%,100%{ transform: translate(0,0) scale(1) } 50%{ transform: translate(-8%,6%) scale(1.08) } }
@keyframes drift3 { 0%,100%{ transform: translate(0,0) scale(1) } 50%{ transform: translate(5%,-7%) scale(1.15) } }

/* ══════════ GLASS ══════════ */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  box-shadow: var(--glass-shadow), var(--glass-inset);
}
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 45%);
  opacity: 0.7;
}
.glass--pill { border-radius: 999px; }
.glass--panel { border-radius: var(--r-lg); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, 0.9); }
}

/* ══════════ BUTTONS ══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, background .25s ease;
}
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--gold { background: var(--gold-grad); color: #4a2f00; box-shadow: 0 14px 32px -12px rgba(229, 154, 37, 0.6), var(--glass-inset); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(229, 154, 37, 0.75); }
.btn--glass { background: var(--glass-bg-strong); color: var(--text); border-color: var(--glass-border);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); box-shadow: var(--glass-inset); }
.btn--glass:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.86); }

/* ══════════ NAV ══════════ */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 100; padding: 0 20px; transition: top .3s ease; }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 9px 12px 9px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav--scrolled { top: 8px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.nav__logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { padding: 10px 20px; font-size: 14px; }

/* ══════════ SHARED SCENE TEXT ══════════ */
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scene-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 1.04; color: #14121f; }
.scene-lead { font-size: clamp(1.05rem, 2.2vw, 1.5rem); line-height: 1.4; color: #2a2740; font-weight: 500; }
.scene-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--muted); }
.scene-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Chaos chips (glass) */
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: 16px; font-size: 14px; font-weight: 500; color: #2a2740;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: var(--glass-shadow), var(--glass-inset); white-space: nowrap; }
.chip__ico { font-size: 18px; }

/* ══════════ DESKTOP STORY (pinned 3D morph) ══════════ */
.story { position: relative; z-index: 2; height: 420vh; }
.story__stage { position: relative; height: 100vh; width: 100%; overflow: hidden; }
.story__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story__layer { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 24px; text-align: center; }
.story__layer .inner { max-width: 900px; }

.story__chips { position: absolute; inset: 0; pointer-events: none; }
.story__chips .chip--a { top: 22%; left: 12%; }
.story__chips .chip--b { top: 30%; right: 12%; }
.story__chips .chip--c { top: 60%; left: 16%; }
.story__chips .chip--d { bottom: 20%; right: 16%; }
.story__chips .chip--e { top: 15%; left: 30%; }

.story__pain .scene-lead { max-width: 20ch; margin: 0 auto; }
.story__pain .scene-lead b { color: #14121f; font-weight: 700; }
.story__ends { pointer-events: none; }
.story__hero .inner {
  padding: 42px 48px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(30px) saturate(185%);
  -webkit-backdrop-filter: blur(30px) saturate(185%);
}
.story__hero .scene-lead { max-width: 34ch; margin: 14px auto 26px; }
.story__hero .scene-cta { justify-content: center; }

/* ══════════ MOBILE STORY (lighter, no pin/scrub) ══════════ */
.m-story { position: relative; z-index: 2; }
.m-scene { min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 96px 22px 60px; position: relative; }
.m-chips { position: relative; height: 300px; margin-bottom: 18px; }
.m-chips .chip { font-size: 13px; padding: 10px 13px; }
.m-chips .chip--a { top: 0%; left: 2%; }
.m-chips .chip--b { top: 19%; right: 2%; }
.m-chips .chip--c { top: 38%; left: 6%; }
.m-chips .chip--d { top: 57%; right: 4%; }
.m-chips .chip--e { top: 76%; left: 16%; }
.m-scene .scene-lead { margin-bottom: 14px; }
.m-svg-wrap { width: 100%; max-width: 340px; margin: 0 auto 26px; }
.m-unify { text-align: center; align-items: center; }
.m-unify .scene-cta { justify-content: center; }
.m-unify .scene-lead { max-width: 30ch; }

/* SVG building pieces animate in on enter (transform-based, GPU-friendly) */
.svg-piece { transform-box: fill-box; transform-origin: center; }

/* Which story shows — desktop by default, mobile ≤820px, and mobile when reduced */
.m-story { display: none; }
@media (max-width: 820px) {
  .story { display: none; }
  .m-story { display: block; }
  .nav__links { display: none; }
  .nav__inner { padding: 9px 10px 9px 16px; }
  .nav__name { white-space: nowrap; }
}
html.reduced .story { display: none; }
html.reduced .m-story { display: block; }

/* ══════════ FOOTER ══════════ */
.site-footer { position: relative; z-index: 2; padding: 34px 24px; text-align: center; color: var(--muted-dim); font-size: 13px; }

/* ══════════ REDUCED MOTION ══════════ */
@media (prefers-reduced-motion: reduce) {
  html, html.js { scroll-behavior: auto; }
  .aurora__blob { animation: none; }
  .js [data-reveal]:not(.is-in) { opacity: 1; }
  * { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   SCENES 3–9 — shared desktop/phone. Each block is self-contained.
   Content is VISIBLE BY DEFAULT; JS only enhances (no invisible-until-JS).
   ═══════════════════════════════════════════════════════════════ */

/* ── shared layout + label helpers (used across scenes) ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2.5px; font-size: 12px; font-weight: 600; color: var(--cyan); margin-bottom: 12px; }

/* ── shared scene shell ── */
.scene { position: relative; z-index: 2; padding: clamp(72px, 10vw, 128px) 0; }
.scene__grid { max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; }
.scene__grid--rev .scene__copy { order: 2; }
.scene__head { text-align: center; margin-bottom: 8px; }
.scene__title { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.1; margin-bottom: 14px; max-width: 20ch; }
.scene__lead { color: #3a3852; font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 46ch; }
.scene--center .scene__head, .scene--center > .wrap { text-align: center; }
.scene--center .scene__title { margin-inline: auto; max-width: 24ch; }
.scene--center .scene__lead { margin-inline: auto; }
.glass[data-tilt] { transition: transform .3s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; will-change: transform; }
.scene--tint-a::before, .scene--tint-b::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.scene--tint-a::before { background: radial-gradient(55% 55% at 18% 30%, rgba(180,160,255,.12), transparent 70%); }
.scene--tint-b::before { background: radial-gradient(55% 55% at 82% 40%, rgba(130,215,255,.14), transparent 70%); }

/* ── SCENE 3/4 browser & dashboard frame ── */
.browserframe { overflow: hidden; }
.browserframe__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--glass-border); }
.browserframe__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(30,28,54,.14); }
.browserframe__url { margin-left: 10px; flex: 1; display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.55); border: 1px solid var(--glass-border); border-radius: 999px;
  padding: 5px 12px; font-size: 13px; color: #4a4866; }
.browserframe__lock { font-size: 11px; }
.browserframe__viewport { position: relative; }
.browserframe__shot { width: 100%; height: auto; display: block; }

/* SCENE 4 feature pop labels */
.scene__media--dash { position: relative; }
.feature-pops { position: absolute; inset: 0; pointer-events: none; }
.feature-pop { position: absolute; display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 15px; border-radius: 14px; font-size: 13.5px; font-weight: 600; color: #2a2740;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--glass-shadow), var(--glass-inset); white-space: nowrap; }
.feature-pop__ico { font-size: 16px; }
.feature-pop--a { top: -5%; left: -7%; }
.feature-pop--b { top: 26%; right: -11%; }
.feature-pop--c { bottom: 20%; left: -9%; }
.feature-pop--d { bottom: -5%; right: -5%; }

/* ── SCENE 5 backend complexity → form ── */
.sc5-stage { position: relative; max-width: 760px; margin: 44px auto 0; height: 340px; }
.sc5-chaos { position: absolute; inset: 0; }
.sc5-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc5-wires path { fill: none; stroke: #9b8cff; stroke-width: 3; opacity: 0.4; stroke-linecap: round; }
.sc5-chip { position: absolute; padding: 8px 13px; border-radius: 12px; font-size: 13px; font-weight: 600;
  color: #4a4866; background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow); font-family: ui-monospace, Menlo, monospace; }
.sc5-chip--1 { top: 6%; left: 8%; }
.sc5-chip--2 { top: 12%; right: 10%; }
.sc5-chip--3 { bottom: 14%; left: 12%; }
.sc5-chip--4 { bottom: 8%; right: 14%; }
.sc5-gear { position: absolute; font-size: 30px; }
.sc5-gear--1 { top: 30%; left: 30%; }
.sc5-gear--2 { top: 54%; right: 30%; }
.sc5-gear--3 { top: 20%; right: 40%; font-size: 24px; }
.sc5-form { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(360px, 88%); padding: 26px 28px; }
.sc5-form__row { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--glass-border); }
.sc5-form__label { font-weight: 600; color: #2a2740; font-size: 14px; }
.sc5-form__field { width: 130px; height: 12px; border-radius: 6px; background: rgba(120,120,180,.18); }
.sc5-form__btn { margin-top: 18px; text-align: center; padding: 12px; border-radius: 999px;
  background: var(--gold-grad); color: #4a2f00; font-weight: 700; font-size: 14px; }

/* ── SCENE 6 re-skin mock ── */
.sc6-swatches { display: flex; gap: 12px; margin-top: 22px; }
.sc6-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(70,70,130,.25); transition: transform .25s; }
.sc6-swatch.is-active { transform: scale(1.22); }
.sc6-swatch--0 { background: linear-gradient(135deg, #6d4bff, #12b6d8); }
.sc6-swatch--1 { background: linear-gradient(135deg, #ffd27a, #ef9f28); }
.sc6-swatch--2 { background: linear-gradient(135deg, #ff7eb3, #8b5cf6); }
.sc6-swatch--3 { background: linear-gradient(135deg, #12a5c9, #34d39e); }
.sc6-mock { --m1: #6d4bff; --m2: #12b6d8; padding: 0; overflow: hidden; }
.sc6-mock__head { display: flex; align-items: center; gap: 11px; padding: 15px 17px;
  background: linear-gradient(120deg, var(--m1), var(--m2)); color: #fff; transition: background .5s ease; }
.sc6-mock__logo { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.28); font-weight: 800; }
.sc6-mock__name { font-weight: 700; flex: 1; }
.sc6-mock__cta { background: rgba(255,255,255,.92); color: var(--m1); padding: 6px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 700; transition: color .5s ease; }
.sc6-mock__body { padding: 22px; }
.sc6-mock__bar { display: block; height: 15px; border-radius: 8px; background: rgba(120,120,180,.16); margin-bottom: 13px; }
.sc6-mock__bar--lg { width: 78%; } .sc6-mock__bar--md { width: 52%; }
.sc6-mock__cards { display: flex; gap: 12px; margin-top: 16px; }
.sc6-mock__card { flex: 1; height: 72px; border-radius: 14px; border: 1px solid var(--glass-border);
  background: linear-gradient(160deg, rgba(255,255,255,.7), rgba(255,255,255,.35)); }
.sc6-mock__card::before { content: ''; display: block; height: 6px; border-radius: 6px; margin: 12px;
  background: linear-gradient(90deg, var(--m1), var(--m2)); transition: background .5s ease; }

/* ── SCENE 7 steps ── */
.sc-how__grid { position: relative; max-width: var(--maxw); margin: 44px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sc-how__line { position: absolute; top: 34px; left: 16%; right: 16%; height: 3px;
  background: var(--glass-border); border-radius: 3px; overflow: hidden; }
.sc-how__fill { position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.step { padding: 28px 24px; text-align: left; }
.step__n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff; background: var(--grad); margin-bottom: 16px; }
.step__title { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; }
.step__body { color: var(--muted); font-size: 0.98rem; }

/* ── SCENE 8 pricing ── */
.plans { max-width: var(--maxw); margin: 44px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { padding: 30px 26px; text-align: left; position: relative; }
.plan--featured { border: 1.5px solid transparent; transform: translateY(-8px);
  background: linear-gradient(var(--glass-bg-strong), var(--glass-bg-strong)) padding-box, var(--grad) border-box;
  box-shadow: 0 30px 60px -24px rgba(109,75,255,.35), var(--glass-inset); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.plan__name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.plan__blurb { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.plan__amount { font-family: var(--display); font-weight: 800; font-size: 2rem; }
.plan__period { color: var(--muted); font-size: 13px; }
.plan__features { list-style: none; margin-bottom: 22px; }
.plan__features li { padding: 9px 0 9px 26px; position: relative; color: #3a3852; border-bottom: 1px solid var(--glass-border); font-size: 14px; }
.plan__features li:last-child { border-bottom: 0; }
.plan__features li::before { content: '✓'; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.sc-pricing__note { max-width: var(--maxw); margin: 26px auto 0; padding: 0 24px; text-align: center; color: var(--muted); font-size: 14px; }

/* ── SCENE 9 faq + cta band ── */
.faq { margin-top: 38px; display: grid; gap: 12px; }
.faq__item { padding: 4px 22px; }
.faq__q { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: '+'; color: var(--cyan); font-size: 22px; line-height: 1; }
.faq__item[open] .faq__q::after { content: '\2013'; }
.faq__a { color: var(--muted); padding: 0 0 20px; }
.cta-band { position: relative; z-index: 2; text-align: center; padding: clamp(60px, 9vw, 110px) 24px; }
.cta-band__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 14px; }
.cta-band__sub { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; }

/* ── responsive (scenes) ── */
@media (max-width: 820px) {
  .scene__grid { grid-template-columns: 1fr; gap: 30px; }
  .scene__grid--rev .scene__copy { order: 0; }
  .feature-pops { position: static; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; justify-content: center; }
  .feature-pop { position: static !important; }
  .sc5-stage { height: 380px; }
  .sc5-gear, .sc5-chip { font-size: 12px; }
  .sc-how__grid { grid-template-columns: 1fr; gap: 16px; }
  .sc-how__line { display: none; }
  .plans { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
}

/* ═══════════ SCENE 3+4 — TAB-SPLIT SEQUENCE ═══════════ */
.tabs { height: 360vh; }
.tabs__stage { position: relative; height: 100vh; overflow: hidden; }
.tabs__frames { position: absolute; inset: 0; }
.tabframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44%; margin: 0; }
.tabframe__inner { will-change: transform; transform-origin: center center; }
.tabframe__cap { margin-top: 18px; text-align: center; max-width: 36ch; margin-inline: auto; }
.tabframe__title { font-family: var(--display); font-weight: 700; font-size: 1.28rem; margin: 4px 0 6px; }
.tabframe__lead { color: var(--muted); font-size: 0.98rem; }

/* Website: tall shot scrolls inside a fixed-height frame (feels like a live site) */
.browserframe__viewport--scroll { height: 320px; overflow: hidden; position: relative; }
.browserframe__shot--tall { width: 100%; height: auto; will-change: transform; }

/* Dashboard: multiple real views crossfade in one frame */
.dashviews { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.dashview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left;
  opacity: 0; transition: opacity .8s ease; }
.dashview.is-active { opacity: 1; }
.dashviews__dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 6px; padding: 5px 9px; border-radius: 999px; background: rgba(20,18,40,.42);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dashviews__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); transition: background .3s, transform .3s; }
.dashviews__dots i.is-active { background: #fff; transform: scale(1.25); }

@media (max-width: 820px) {
  .browserframe__viewport--scroll { height: 240px; }
}

/* Reduced-motion / no-JS: let the pinned tab section flow like the phone stack */
html.reduced .tabs { height: auto; }
html.reduced .tabs__stage { height: auto; position: static; overflow: visible; padding: 10px 0; }
html.reduced .tabs__frames { position: static; display: flex; flex-direction: column; gap: 46px; padding: 0 22px; }
html.reduced .tabframe { position: static; transform: none; width: 100%; }

/* ═══════════ NAV actions + WhatsApp ═══════════ */
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__wa { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #0b7a4f; background: rgba(37,211,102,.12);
  border: 1px solid rgba(37,211,102,.32); transition: background .2s, transform .2s; }
.nav__wa svg { width: 17px; height: 17px; }
.nav__wa:hover { background: rgba(37,211,102,.2); transform: translateY(-1px); }

/* ═══════════ Floating WhatsApp lead button ═══════════ */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 16px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 15px;
  background: linear-gradient(135deg, #25d366, #0fae5a);
  box-shadow: 0 14px 34px -10px rgba(16,174,90,.6), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.wa-fab svg { width: 26px; height: 26px; flex: none; }
.wa-fab:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -12px rgba(16,174,90,.72); }
.wa-fab__txt { white-space: nowrap; }
@media (max-width: 560px) { .wa-fab__txt { display: none; } .wa-fab { padding: 15px; } }

/* ═══════════ "Get a Free Demo" CTA + microcopy ═══════════ */
.cta-note { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--muted); }
.story__hero .cta-note { text-align: center; }
.cta-note--band { margin-top: 16px; }
.cta-band__actions { justify-content: center; }
/* Nav: demo (gold) is primary; Get Started becomes a compact ghost on wider screens */
.nav__cta--ghost { font-size: 14px; padding: 10px 18px; }
@media (max-width: 1000px) { .nav__cta--ghost { display: none; } }

/* ═══════════ PRICING extras ═══════════ */
.btn--block { display: flex; width: 100%; }
.plan__setup { margin: -12px 0 18px; font-size: 13px; font-weight: 700; color: var(--gold); }
.sc-pricing__roi { max-width: 42ch; margin: 10px auto 0; color: #2a2740; font-weight: 600; }

/* ═══════════ FEATURES — interactive standouts + tabbed groups ═══════════ */
.standouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: var(--maxw); margin: 44px auto 0; padding: 0 24px; }
.standout { position: relative; display: block; width: 100%; padding: 28px 22px 22px; text-align: left; overflow: hidden;
  border: 1px solid var(--glass-border); font: inherit; color: inherit; cursor: pointer;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.standout::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.standout:hover, .standout.is-active { transform: translateY(-8px); box-shadow: 0 30px 60px -24px rgba(109,75,255,.42), var(--glass-inset); }
.standout__ico { font-size: 30px; margin-bottom: 12px; }
.standout__title { font-family: var(--display); font-weight: 700; font-size: 1.12rem; margin-bottom: 8px; }
.standout__body { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.standout__tag { position: absolute; top: 13px; right: 13px; font-size: 10px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: #fff; background: var(--grad); padding: 3px 9px; border-radius: 999px; }
.standout__demo { display: flex; align-items: center; gap: 10px; height: 0; opacity: 0; overflow: hidden;
  transition: height .35s ease, opacity .3s ease, margin-top .35s ease; }
.standout:hover .standout__demo, .standout.is-active .standout__demo { height: 54px; opacity: 1; margin-top: 14px; }
.standout__hint { font-size: 11px; font-weight: 600; color: var(--cyan); }

/* mini demos (auto-play; only visible once the card reveals them) */
.d-qr { position: relative; width: 48px; height: 48px; flex: none; }
.d-qr__grid { position: absolute; inset: 0; border-radius: 6px; background: #fff;
  background-image: repeating-conic-gradient(#141225 0 25%, transparent 0 50%); background-size: 10px 10px; }
.d-qr__beam { position: absolute; left: 2px; right: 2px; top: 0; height: 6px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, #12b6d8, #6d4bff, transparent); box-shadow: 0 0 10px 2px rgba(18,182,216,.6);
  animation: dqr 1.4s ease-in-out infinite; }
@keyframes dqr { 0%,100% { transform: translateY(0); } 50% { transform: translateY(40px); } }
.d-maid { display: flex; align-items: center; gap: 6px; }
.d-lock { font-size: 20px; }
.d-dots { display: inline-flex; gap: 7px; }
.d-dots i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--violet); animation: dfill 2s infinite; }
.d-dots i:nth-child(2) { animation-delay: .25s; } .d-dots i:nth-child(3) { animation-delay: .5s; } .d-dots i:nth-child(4) { animation-delay: .75s; }
@keyframes dfill { 0%,35% { background: transparent; } 45%,100% { background: var(--violet); } }
.d-check { color: #0b7a4f; font-weight: 800; opacity: 0; animation: dchk 2s infinite; }
@keyframes dchk { 0%,60% { opacity: 0; } 72%,100% { opacity: 1; } }
.d-backup { position: relative; display: flex; align-items: center; gap: 10px; }
.d-shield { font-size: 22px; }
.d-ring { position: absolute; left: 0; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  border: 2px solid var(--cyan); animation: dring 1.8s ease-out infinite; }
@keyframes dring { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.d-yrs { font-weight: 700; color: var(--violet); font-size: 13px; }
.d-shift { display: flex; align-items: center; gap: 6px; }
.d-room { display: grid; place-items: center; width: 38px; height: 32px; border-radius: 8px; font-size: 12px; font-weight: 700;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border); color: #3a3852; }
.d-track { position: relative; width: 42px; height: 3px; border-radius: 3px; background: var(--glass-border); }
.d-dot { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--grad);
  animation: dmove 2.2s ease-in-out infinite; }
@keyframes dmove { 0%,10% { left: 0; } 50% { left: 30px; } 90%,100% { left: 0; } }

/* feature tabs (progressive enhancement; no-JS shows all panels stacked) */
.feat-tabs { max-width: 820px; margin: 30px auto 0; padding: 0 24px; }
.feat-tabbar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.feat-tab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .25s, color .25s, box-shadow .25s, transform .2s; }
.feat-tab:hover { transform: translateY(-1px); }
.feat-tab.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 12px 26px -10px rgba(109,75,255,.5); }
.feat-tab__ico { font-size: 17px; }
.feat-panel { display: none; }
.feat-panel.is-active { display: block; }
.feat-tabs:not(.js-tabs) .feat-tabbar { display: none; }
.feat-tabs:not(.js-tabs) .feat-panel { display: block; margin-bottom: 14px; }
.feat-rows { list-style: none; max-width: 620px; margin: 0 auto; display: grid; gap: 10px; }
.feat-row { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-radius: 16px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-inset); }
.feat-row__ico { font-size: 22px; flex: none; width: 30px; text-align: center; }
.feat-row__txt { color: #2a2740; font-weight: 500; }

.built-by { display: flex; align-items: center; gap: 14px; justify-content: center; max-width: 780px;
  margin: 40px auto 0; padding: 16px 28px; text-align: left; }
.built-by__ico { font-size: 26px; flex: none; }
.built-by p { color: #2a2740; font-weight: 600; font-size: 1.02rem; }

/* ═══════════ QR SCANNER SCENE → TWO PORTALS ═══════════ */
.qr-stage { position: relative; max-width: 960px; height: 520px; margin: 40px auto 0; }
.qr-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.qr-link { fill: none; stroke: url(#qrLinkGrad); stroke-width: 3; stroke-linecap: round; opacity: .85;
  filter: drop-shadow(0 2px 6px rgba(109,75,255,.25)); }
.qr-scanner { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); text-align: center; z-index: 3; }
.qr-device { position: relative; width: 190px; height: 190px; margin: 0 auto; padding: 18px; border-radius: 26px; overflow: hidden;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow), var(--glass-inset); }
.qr-code { width: 100%; height: 100%; display: block; }
.qr-beam { position: absolute; left: 12px; right: 12px; top: 14px; height: 16px; border-radius: 8px;
  background: linear-gradient(90deg, transparent, rgba(18,182,216,.95), rgba(109,75,255,.95), transparent);
  box-shadow: 0 0 20px 5px rgba(18,182,216,.5); will-change: transform; }
.qr-reticle { position: absolute; width: 22px; height: 22px; border: 3px solid var(--cyan); }
.qr-reticle--tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-top-left-radius: 9px; }
.qr-reticle--tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-top-right-radius: 9px; }
.qr-reticle--bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-bottom-left-radius: 9px; }
.qr-reticle--br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-bottom-right-radius: 9px; }
.qr-scanner__cap { margin-top: 14px; font-weight: 600; font-size: .95rem; color: #2a2740; }
/* portals */
.portal { position: absolute; top: 6px; width: 320px; z-index: 2; }
.portal--a { left: 0; }
.portal--b { right: 0; }
.portal__win { border-radius: 18px; overflow: hidden; transform-origin: top center; }
.portal__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--glass-border); }
.portal__title { font-weight: 700; font-size: 14px; color: #2a2740; white-space: nowrap; }
.portal__badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.portal__badge--open { color: #0b7a4f; background: rgba(37,211,102,.14); border: 1px solid rgba(37,211,102,.3); }
.portal__badge--lock { color: #8a5a00; background: rgba(229,154,37,.16); border: 1px solid rgba(229,154,37,.34); }
.portal__body { padding: 16px; min-height: 122px; }
.portal__cap { margin-top: 12px; font-size: .9rem; color: var(--muted); text-align: center; }
.portal__cap b { color: #2a2740; }
.cmp-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.cmp-k { width: 46px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.cmp-v { flex: 1; font-weight: 600; color: #2a2740; background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  border-radius: 8px; padding: 6px 10px; white-space: nowrap; overflow: hidden; }
.cmp-sent { margin-top: 8px; text-align: center; font-weight: 700; color: #0b7a4f; background: rgba(37,211,102,.12); border-radius: 10px; padding: 8px; }
.cmp-fly { position: absolute; left: 16%; top: 30%; z-index: 6; font-size: 12px; font-weight: 700; color: #2a2740;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border); border-radius: 10px; padding: 8px 12px;
  box-shadow: var(--glass-shadow); white-space: nowrap; opacity: 0; pointer-events: none; }
.dash-target { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); z-index: 2;
  font-weight: 700; font-size: 13px; color: #2a2740; background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 8px 18px; box-shadow: var(--glass-inset); }
.portal__body--lock { display: grid; }
.portal__body--lock > .pin, .portal__body--lock > .maid { grid-area: 1 / 1; }
.pin { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.pin__ico { font-size: 22px; }
.pin__dots { display: flex; gap: 10px; }
.pin__dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--violet); background: transparent; }
.pin__pad { display: grid; grid-template-columns: repeat(3, 28px); gap: 6px; }
.pin__pad span { display: grid; place-items: center; height: 22px; border-radius: 6px; font-size: 11px; font-weight: 700;
  color: #4a4866; background: var(--glass-bg-strong); border: 1px solid var(--glass-border); }
.maid { display: flex; flex-direction: column; gap: 8px; opacity: 0; }
.maid__row { font-size: 13px; color: #3a3852; padding: 7px 11px; border-radius: 8px; background: var(--glass-bg-strong); border: 1px solid var(--glass-border); }
.maid__row--done { color: #0b7a4f; font-weight: 600; }

/* ── responsive: features + QR portals ── */
@media (max-width: 900px) {
  .standouts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav__wa-txt { display: none; }
  .nav__wa { padding: 9px 11px; }
  .qr-links { display: none; }
  .qr-stage { height: auto; display: flex; flex-direction: column; align-items: center; gap: 26px; }
  .qr-scanner { position: static; transform: none; }
  .portal { position: static; width: 100%; max-width: 380px; }
  .cmp-fly, .dash-target { display: none; }
}
@media (max-width: 560px) { .standouts { grid-template-columns: 1fr; } .built-by { flex-direction: column; text-align: center; } }

/* ═══════════ SCENE 5 — real backend (rebuilt) ═══════════ */
.sc5-stage { position: relative; max-width: 900px; height: auto; min-height: 400px; margin: 46px auto 0; padding: 0 24px; }
.sc5-tech { display: flex; gap: 16px; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.sc5-card { width: 200px; padding: 16px; text-align: left; will-change: transform; }
.sc5-card__tag { font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--violet); margin-bottom: 10px; }
.sc5-code { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; line-height: 1.55; color: #3a3852; white-space: pre; overflow: hidden; margin: 0; }
.sc5-sheet { font-size: 11.5px; }
.sc5-sheet__row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--glass-border); color: #3a3852; }
.sc5-sheet__row:last-child { border-bottom: 0; }
.sc5-sheet__row--head { font-weight: 700; color: #2a2740; }
.sc5-card__big { font-size: 30px; margin: 4px 0 8px; letter-spacing: 4px; }
.sc5-card__note { font-size: 12px; color: var(--muted); }
.sc5-handled { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 6;
  background: linear-gradient(135deg, #34d39e, #12b6d8); color: #04352a; font-weight: 700; font-size: 13px;
  padding: 8px 18px; border-radius: 999px; box-shadow: var(--glass-shadow); white-space: nowrap; }
.sc5-result { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, 88%); padding: 26px 28px; z-index: 5; }
.sc5-result__title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; text-align: center; }

/* Badge + form are revealed by JS (scene5) so the real backend cards read first.
   Reduced-motion / no-JS falls back to a clean static stack (no overlap). */
.sc5-handled, .sc5-result { opacity: 0; }
html.reduced #scene-backend .sc5-handled,
html.reduced #scene-backend .sc5-result { opacity: 1; }
html.reduced #scene-backend .sc5-handled { position: static; transform: none; display: inline-block; margin: 20px auto 0; }
html.reduced #scene-backend .sc5-result { position: static; transform: none; margin: 24px auto 0; }

@media (max-width: 820px) {
  /* Tab sequence stacks on phone */
  .tabs { height: auto; }
  .tabs__stage { position: relative; height: auto; overflow: visible; padding: 10px 0; }
  .tabs__frames { position: static; display: flex; flex-direction: column; gap: 46px; padding: 0 22px; }
  .tabframe { position: static; transform: none; width: 100%; }
  .tabframe__cap { margin-top: 14px; }
  /* Backend cards */
  .sc5-stage { min-height: 470px; }
  .sc5-card { width: 46%; }
}
