/* ============================================================
   Glancio — Landing (cinematic sales trailer)
   Dark canvas · directional violet/blue beams · animation stages
   ============================================================ */

:root {
  --bg: #06060c;
  --bg-2: #0a0a14;
  --ink: #f5f5fc;
  --muted: #aeaecb;
  --dim: #75758f;
  --violet: #8b6cff;
  --violet-2: #a98bff;
  --blue: #5b8cff;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(18, 18, 32, 0.6);
  --glass-2: rgba(24, 24, 42, 0.5);
  --grad: linear-gradient(100deg, #a98bff 0%, #6ea0ff 55%, #8b6cff 100%);
  --shell: 1180px;
  --r: 5px;       /* small cards — near-square, consistent with the hero frame */
  --r-lg: 6px;    /* large cards / dialogs — near-square */
  --r-media: 4px; /* animation / image frames — near-square */
  --screen-gap: clamp(64px, 8vw, 96px); /* single uniform distance between every screen */
  --media-max: 480px; /* below-hero media frames cap — kept under the hero demo (~535px) */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* keep in-page anchor targets clear of the sticky topbar (≈50px) */
#hero, #how, #actions, #pricing, #faq, #survey, #join, #privacy { scroll-margin-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: break-word;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dim { color: var(--dim); }

/* ----- ambient page aura ----- */
.page-aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 80% -5%, rgba(139, 108, 255, 0.16), transparent 70%),
    radial-gradient(50% 35% at 0% 10%, rgba(91, 140, 255, 0.12), transparent 70%);
}

main, .topbar, .site-footer { position: relative; z-index: 1; }

/* ----- layout ----- */
.shell {
  width: min(var(--shell), 92vw);
  margin-inline: auto;
}

/* every top-level screen is separated by ONE uniform gap (margin-top only, so
   adjacent margins never collapse into a double). No internal band padding —
   the inter-screen gap is the breathing room. */
.band {
  position: relative;
  margin-top: var(--screen-gap);
  overflow: hidden;
}
.band-tight {
  position: relative;
  margin-top: var(--screen-gap);
}

.beam {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  filter: blur(40px);
}
.beam-hero {
  inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(50% 50% at 70% 30%, rgba(139, 108, 255, 0.28), transparent 70%);
}
.beam-mid {
  inset: 0 auto auto 50%; transform: translateX(-50%); width: 80%; height: 60%;
  background: radial-gradient(50% 50% at 50% 0%, rgba(110, 140, 255, 0.16), transparent 72%);
}
.beam-cold {
  inset: auto auto -10% -10%; width: 60%; height: 90%;
  background: radial-gradient(50% 50% at 30% 70%, rgba(70, 90, 150, 0.22), transparent 70%);
}
.beam-warm {
  inset: -10% -5% auto auto; width: 55%; height: 100%;
  background: radial-gradient(50% 50% at 75% 40%, rgba(160, 120, 255, 0.22), transparent 70%);
}
.shell, .how-head, .lanes, .tiers { position: relative; z-index: 1; }

/* ----- type helpers ----- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet-2);
}
/* unified eyebrow dot — every section eyebrow leads with the same violet dot */
.kicker::before {
  content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet-2); box-shadow: 0 0 8px var(--violet-2);
}
.kicker.center { justify-content: center; width: 100%; }

h1 { font-size: clamp(38px, 6vw, 70px); }
h2 { font-size: clamp(22px, 2.4vw, 26px); } /* section heads — a clear step under the hero */
h3 { font-size: clamp(19px, 2vw, 24px); }

.lead { color: var(--muted); font-size: clamp(15.5px, 1.4vw, 17.5px); }
.lead.center { text-align: center; max-width: 640px; margin-inline: auto; }
.center { text-align: center; }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; color: #0a0a16;
  background: var(--grad);
  box-shadow: 0 8px 30px rgba(139, 108, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 38px rgba(139, 108, 255, 0.5); }
.btn:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-2); box-shadow: none;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); box-shadow: none; }
.link {
  background: none; border: 0; color: var(--violet-2); cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14px; padding: 0; margin-top: 12px;
  display: inline-block;
}
.link:hover { color: var(--ink); }

/* ----- topbar ----- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px clamp(16px, 4vw, 40px);
  background: rgba(6, 6, 12, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-family: 'Space Grotesk', sans-serif; }
.brand-mark {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: #0a0a16; background: var(--grad);
  box-shadow: 0 4px 14px rgba(139, 108, 255, 0.5);
}
.brand-name { font-size: 16px; }
.nav { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* ============================ HERO ============================ */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 50px); display: flex; align-items: center;
  padding: clamp(20px, 3vw, 44px) 0;
}
.hero-shell {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 3.5vw, 52px);
  align-items: center;
}
.hero-copy, .hero-stage { min-width: 0; }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-2); box-shadow: 0 0 10px var(--violet-2); }
.tagpill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  color: var(--muted); border: 1px solid var(--line); background: var(--glass);
  margin-bottom: 20px;
}
.hero-title { font-size: clamp(26px, 2.6vw, 35px); line-height: 1.18; } /* page apex — largest headline */
.hero-title span { display: block; }
.hero-title .t-pain { color: var(--ink); }
.hero-title .t-sol { margin-top: 3px; }
.hero-sub { margin-top: 18px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }
.founder-mini { margin-top: 14px; font-size: 12.5px; font-weight: 400; color: #9a93c8; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--dim); font-size: 13.5px; }
.meta-line .d { width: 4px; height: 4px; border-radius: 50%; background: var(--dim); }

.hero-stage { position: relative; }
.hero-magic-stage { cursor: pointer; }
.stage.hero-magic-stage {
  border-radius: var(--r-media);
  box-shadow: 0 50px 130px rgba(124, 92, 255, 0.22), 0 30px 80px rgba(6, 6, 18, 0.6), 0 0 0 1px var(--line-2);
}
.hero-magic-stage:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 4px; }
.hero-magic-stage .stage-aspect { overflow: hidden; }
/* render the 1920x1080 prototypes at native size, scaled by JS to fill the stage.
   .anim.fill-1920 keeps specificity above the later generic .anim rule. */
.anim.fill-1920 { inset: auto; top: 0; left: 0; width: 1920px; height: 1080px; transform-origin: top left; }
.replay-btn {
  position: absolute; z-index: 3; bottom: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--ink);
  background: rgba(10, 10, 22, 0.7); border: 1px solid var(--line-2); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.18s ease;
}
.hero-magic-stage:hover .replay-btn, .hero-magic-stage:focus-visible .replay-btn { opacity: 1; }
.stage-glass {
  position: relative; border-radius: var(--r-lg);
  padding: 10px;
  background: linear-gradient(160deg, rgba(139, 108, 255, 0.3), rgba(91, 140, 255, 0.08));
  box-shadow: 0 40px 100px rgba(8, 8, 24, 0.7), 0 0 0 1px var(--line);
}
.hero-video {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; display: block;
  background: #05050b; object-fit: cover;
}
.float {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: var(--glass); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.float-tl { top: -16px; left: -10px; }
.float-br { bottom: 64px; right: -12px; }
.kbd {
  display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600;
  background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line-2);
}
.first-note { margin: 18px auto 0; font-size: 11.5px; color: var(--dim); max-width: 60ch; text-align: center; }

.below-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  text-align: center; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim);
  animation: bobx 2.2s ease-in-out infinite;
}
@keyframes bobx { 0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.55; } 50% { transform: translateX(-50%) translateY(5px); opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(5px); opacity: 1; } }

/* ----- shared stage (iframe / poster) ----- */
.stage {
  position: relative; margin: 0; border-radius: var(--r-media); overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 30px 80px rgba(6, 6, 18, 0.6), 0 0 0 1px var(--line);
}
.stage-aspect { position: relative; aspect-ratio: 16 / 9; width: 100%; }
.anim {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; display: block; pointer-events: none; background: #05050b;
}
/* poster/screenshot PNGs have their own rounded corners baked in; scale slightly so
   the baked rounding is clipped by the square frame and all media reads near-square. */
.stage picture { display: block; width: 100%; height: 100%; }
.stage img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transform-origin: center; }
.stage video.anim-loop {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #05050b;
}
.stage .anim-poster,
.stage picture img {
  display: block;
  object-fit: cover;
  transform: none;
}
.stage-warm { box-shadow: 0 30px 90px rgba(120, 80, 220, 0.28), 0 0 0 1px var(--line); }
.stage-cold { filter: saturate(0.82); }
.stage-poster img { aspect-ratio: 16 / 9; }

/* ----- ambient hover: even lift + glow + cursor-following soft light -----
   No 3D tilt (kept the card feeling solid, not floaty) and no blend mode on the
   highlight (mix-blend-mode over the live iframes caused black/white flicker). */
@media (hover: hover) and (pointer: fine) {
  .stage:not(.is-zoomed) {
    transform: translateY(var(--lift, 0px));
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
    isolation: isolate;
  }
  .stage:not(.is-zoomed):hover {
    box-shadow: 0 44px 120px rgba(118, 86, 230, 0.42), 0 0 0 1px rgba(160, 130, 255, 0.42);
  }
  /* soft highlight that follows the cursor; normal blending, clipped to the frame */
  .stage:not(.is-zoomed)::after {
    content: ''; position: absolute; inset: 0; z-index: 4;
    pointer-events: none; border-radius: inherit;
    background: radial-gradient(260px 260px at var(--mx, 50%) var(--my, 50%),
      rgba(180, 155, 255, 0.16), transparent 60%);
    opacity: 0; transition: opacity 0.35s ease;
  }
  .stage:not(.is-zoomed):hover::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .stage { transform: none !important; transition: none !important; }
  .stage::after { display: none !important; }
}

/* ============================ PAIN ============================ */
/* media rows — copy 1fr : demo image/animation 1.15fr (visual gets the emphasis) */
/* below-hero media rows are copy-led: the demo frame is the secondary element and
   is capped under the hero. (copy column gets the larger share; media column holds
   the capped, centered frame.) */
.pain-grid, .hope-grid {
  display: grid; gap: clamp(28px, 4vw, 56px); align-items: center;
}
.pain-grid { grid-template-columns: 1.25fr 1fr; }       /* copy, media */
.pain-copy h2 { margin: 14px 0 16px; }
.punch { color: var(--muted); font-size: clamp(15.5px, 1.4vw, 17.5px); max-width: 42ch; }
.echo { margin-top: 18px; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }

/* every below-hero single-media frame is capped under the hero demo and centered */
.pain-grid .stage, .hope-grid .stage, .reply-row .stage,
.actions-grid .stage, .community-block .stage {
  width: 100%; max-width: var(--media-max); margin-inline: auto;
}

/* ========================== NEW HOPE ========================== */
.hope-grid { grid-template-columns: 1fr 1.25fr; }       /* media, copy */
.hope-copy h2 { margin: 14px 0 16px; }
.spec-row {
  list-style: none; padding: 0; margin: 26px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.spec-row li {
  padding: 9px 15px; border-radius: 999px; font-size: 13.5px; color: var(--muted);
  border: 1px solid var(--line); background: var(--glass);
}

/* ======================= HOW IT WORKS ========================= */
.how-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.how-head h2 { margin: 14px 0 16px; }

.how-flow {
  list-style: none; padding: 0 0 20px; margin: 0 auto;
  max-width: 1000px; position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
/* subtle progress track BELOW the cards (not crossing them) */
.how-flow::before, .how-flow::after {
  content: ''; position: absolute; z-index: 0; bottom: 0; height: 2px; border-radius: 2px;
}
.how-flow::before { left: 0; right: 0; background: var(--line); }
.how-flow::after {
  left: 0; width: var(--fill, 33.3%);
  background: linear-gradient(90deg, var(--violet), var(--blue));
  box-shadow: 0 0 12px rgba(139, 108, 255, 0.5);
  transition: width 0.55s cubic-bezier(0.4, 0.1, 0.2, 1);
}
.how-step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px 22px 24px; border-radius: var(--r);
  background: var(--glass); border: 1px solid var(--line); cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.how-num {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px;
  color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.how-copy h3 { font-size: 19px; margin-bottom: 6px; }
.how-copy p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.how-copy .kc {
  display: inline-block; padding: 1px 7px; margin: 0 1px; vertical-align: 1.5px;
  border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2);
}
.how-copy .kc-plus { color: var(--dim); font-size: 12px; margin: 0 1px; }
.how-step:hover { border-color: rgba(139, 108, 255, 0.35); }
.how-step:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; }
.how-step.is-active {
  transform: translateY(-4px);
  background: linear-gradient(165deg, rgba(139, 108, 255, 0.14), var(--glass));
  border-color: rgba(139, 108, 255, 0.5);
  box-shadow: 0 24px 60px rgba(124, 92, 255, 0.22);
}
.how-step.is-active .how-num {
  color: #0a0a16; background: var(--grad); border-color: transparent;
  box-shadow: 0 6px 22px rgba(139, 108, 255, 0.6);
}

/* Magic eyebrows now use the shared .kicker; just give them the block spacing they had */
.magic1 > .kicker, .magic2 > .kicker { margin-bottom: 22px; }
.magic1 { margin-top: var(--screen-gap); }
.lanes {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(20px, 3vw, 36px); row-gap: 16px; align-items: stretch;
}
.lane {
  display: grid; grid-template-rows: clamp(126px, 8vw, 148px) auto minmax(70px, auto); row-gap: 16px;
  border-radius: var(--r-lg); padding: clamp(18px, 2vw, 24px);
  background: var(--glass-2); border: 1px solid var(--line);
}
.lane-head {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 0;
  height: auto;
  min-height: 0;
}
.lane-num {
  flex: none; padding: 5px 12px; border-radius: 999px; display: inline-grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.04em;
  color: #0a0a16; background: var(--grad);
}
.lane-head h3 { margin-bottom: 6px; }
.lane-head p { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.lane-foot { margin-top: 0; color: var(--ink); font-weight: 500; align-self: start; min-height: 58px; display: flex; align-items: flex-start; }
.magic1 .lane .stage {
  aspect-ratio: 16 / 9;
  align-self: start;
  width: 100%;
}
.magic1 .lane .stage-aspect {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
}

/* magic 2 */
.magic2 { margin-top: var(--screen-gap); }
.reply-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 4vw, 56px); align-items: center; } /* media, copy */
.reply-copy h3 { margin: 14px 0 16px; font-size: clamp(22px, 2.4vw, 26px); }

/* actions + community */
.actions-block { margin-top: var(--screen-gap); }
.actions-grid, .community-block {
  display: grid; gap: clamp(28px, 4vw, 56px); align-items: center;
}
.actions-grid { grid-template-columns: 1.25fr 1fr; }    /* copy, media */
.actions-copy h3, .community-copy h3 { margin: 14px 0 16px; font-size: clamp(22px, 2.4vw, 26px); }
.community-block { grid-template-columns: 1fr 1.25fr; margin-top: var(--screen-gap); } /* media, copy */
.soon-tag {
  position: absolute; z-index: 3; top: 14px; left: 14px;
  padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--violet-2); background: rgba(10, 10, 22, 0.8); border: 1px solid rgba(139, 108, 255, 0.35);
  backdrop-filter: blur(6px);
}

/* ====================== OPTIONAL SURVEY ======================= */
/* minimal one-question idea prompt — no heavy survey card */
.survey-band { display: grid; place-items: center; }
.survey { width: min(760px, 100%); margin: 0 auto; }
.survey-head { text-align: center; margin-bottom: 18px; }
.survey-head h2 { margin: 8px 0 0; font-size: clamp(19px, 2vw, 22px); }

.survey-body { display: grid; gap: 16px; }

/* question: textarea + subtle non-interactive examples caption */
.survey-q { display: grid; gap: 7px; }
.survey-open { display: block; }
.survey-open textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px; font: inherit; font-size: 15px; line-height: 1.55;
  color: var(--ink); background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line-2);
  resize: vertical; min-height: 130px; max-height: 220px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.survey-open textarea::placeholder { color: var(--dim); }
.survey-open textarea:hover { border-color: rgba(255, 255, 255, 0.22); }
.survey-open textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 108, 255, 0.16); }
.survey-examples { margin: 0 2px; font-size: 12px; line-height: 1.55; color: var(--dim); }

/* optional follow-up email — visibly lighter than the textarea */
.survey-email-block { display: grid; gap: 6px; }
.survey-email-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.survey-email {
  width: 100%; padding: 10px 13px; border-radius: 9px; font: inherit; font-size: 13.5px;
  color: var(--ink); background: rgba(255, 255, 255, 0.015); border: 1px solid var(--line);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.survey-email::placeholder { color: var(--dim); }
.survey-email:hover { border-color: var(--line-2); }
.survey-email:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 108, 255, 0.14); }
.survey-email-help { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--dim); }

/* submit on its own row (bottom-right desktop) — not merged with the email input */
.survey-actions { display: flex; justify-content: flex-end; }
.survey-actions .btn { padding: 11px 22px; font-size: 14px; }
.form-status { margin-top: 12px; font-size: 13.5px; min-height: 18px; color: var(--muted); }
.form-status[data-state='success'] { color: #7be6b0; }
.form-status[data-state='error'] { color: #ff9aa6; }

/* ========================== PRICING =========================== */
.pricing-head { text-align: center; max-width: 720px; margin: 0 auto clamp(16px, 3vw, 26px); }
.pricing-head h2 { margin: 12px 0 0; }
.pricing-eyebrow { text-transform: none; letter-spacing: 0.01em; font-size: 13.5px; }
.planned-flag {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--violet-2); background: rgba(139, 108, 255, 0.1); border: 1px dashed rgba(139, 108, 255, 0.4);
}
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; max-width: 960px; margin-inline: auto; }
.tier {
  position: relative; display: flex; flex-direction: column;
  padding: 14px 16px; border-radius: var(--r-lg);
  background: var(--glass); border: 1px solid var(--line);
}
.tier-pop {
  background: linear-gradient(165deg, rgba(139, 108, 255, 0.16), var(--glass));
  border-color: rgba(139, 108, 255, 0.45);
  box-shadow: 0 26px 70px rgba(139, 108, 255, 0.18);
}
.pop-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: #0a0a16; background: var(--grad); white-space: nowrap;
}

/* hover-to-select (JS-driven, sticky): the plan the cursor last rested on stays
   framed; default is Pro; leaving the pricing area resets to Pro. */
.tier { transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease; }
@media (hover: hover) and (pointer: fine) {
  /* once JS takes over, the default Most-Popular styling yields to the selected one */
  .tiers.js-select .tier-pop:not(.is-selected) {
    background: var(--glass); border-color: var(--line); box-shadow: none;
  }
  .tiers.js-select .tier.is-selected {
    background: linear-gradient(165deg, rgba(139, 108, 255, 0.18), var(--glass));
    border-color: var(--violet-2);
    box-shadow: 0 0 0 2px rgba(139, 108, 255, 0.6), 0 30px 80px rgba(139, 108, 255, 0.28);
    transform: translateY(-5px);
  }
}
.tier h3 { font-size: 14px; margin-bottom: 4px; }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 2px; flex-wrap: wrap; }
.price strong { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; }
.price span { color: var(--dim); font-size: 12px; }
.credits { font-size: 12px; font-weight: 600; color: var(--violet-2); margin-bottom: 4px; }
.tier-pos { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.tier-cta { width: 100%; margin-top: auto; padding: 9px 16px; font-size: 13.5px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 5px; }
.tier li { position: relative; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.tier li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 9px; height: 5px;
  border-left: 2px solid var(--violet-2); border-bottom: 2px solid var(--violet-2);
  transform: rotate(-45deg);
}
.credits-note {
  margin: clamp(12px, 2vw, 18px) auto 0; max-width: 760px; text-align: center;
  color: var(--dim); font-size: 12px; line-height: 1.5;
}


/* ======================= TRUST & PRIVACY ====================== */
/* ============================ FAQ ============================= */
.faq-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 44px); }
.faq-head h2 { margin-top: 12px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; max-width: 960px; margin-inline: auto; }
.qa {
  border-radius: var(--r); background: var(--glass); border: 1px solid var(--line);
  overflow: hidden; transition: border-color 0.2s ease, background 0.2s ease;
}
.qa:hover { border-color: var(--line-2); }
.qa.is-open { border-color: rgba(139, 108, 255, 0.35); background: rgba(139, 108, 255, 0.06); }
.qa-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 20px; cursor: pointer; text-align: left;
  background: none; border: 0; color: var(--ink);
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; line-height: 1.3;
}
.qa-q:focus-visible { outline: 2px solid var(--violet-2); outline-offset: -2px; border-radius: var(--r); }
/* + → − toggle icon */
.qa-ico { position: relative; width: 14px; height: 14px; flex: 0 0 auto; }
.qa-ico::before, .qa-ico::after {
  content: ''; position: absolute; background: var(--violet-2); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.qa-ico::before { top: 6px; left: 0; width: 14px; height: 2px; }
.qa-ico::after { top: 0; left: 6px; width: 2px; height: 14px; }
.qa.is-open .qa-ico::after { transform: scaleY(0); opacity: 0; }
/* collapsible answer — animates via grid-template-rows 0fr → 1fr */
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.qa-a > div { overflow: hidden; }
.qa.is-open .qa-a { grid-template-rows: 1fr; }
.qa-a p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0; padding: 0 20px 18px; }
/* folded-in trust & privacy points */
.qa-points { list-style: none; margin: 0; padding: 0 22px 16px; display: grid; gap: 9px; }
.qa-points li { position: relative; padding-left: 22px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.qa-points li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 11px; height: 6px;
  border-left: 2px solid var(--violet-2); border-bottom: 2px solid var(--violet-2); transform: rotate(-45deg);
}

/* ========================= FINAL CTA ========================== */
.closer { text-align: center; }
.closer::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(6, 6, 12, 0.55) 50%, var(--bg) 100%);
}
.closer-inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
.closer-inner h2 { margin: 14px 0 18px; }
.closer-inner .btn { margin-top: 28px; }
.closer-title { font-size: clamp(26px, 2.6vw, 35px); line-height: 1.1; margin: 14px 0 16px; }
.final-cta-form {
  margin: 26px auto 0; max-width: 480px;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 7px 7px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.34); border: 1px solid var(--line-2);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4);
}
.final-cta-form:focus-within { border-color: var(--violet); }
.final-cta-form input {
  flex: 1 1 auto; min-width: 0; padding: 12px 16px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: transparent; border: 0;
}
.final-cta-form input::placeholder { color: var(--dim); }
.final-cta-form input:focus { outline: none; }
/* Kill Chrome's white autofill box: keep the field transparent (pill bg shows) + light text.
   The 9999s transition defers the autofill background paint so it never visibly applies. */
.final-cta-form input:-webkit-autofill,
.final-cta-form input:-webkit-autofill:hover,
.final-cta-form input:-webkit-autofill:focus,
.final-cta-form input:-webkit-autofill:active,
.wl-form input:-webkit-autofill,
.wl-form input:-webkit-autofill:hover,
.wl-form input:-webkit-autofill:focus,
.wl-form input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 9999s ease-out 0s, color 9999s ease-out 0s;
}
.final-cta-form .btn { flex: 0 0 auto; margin: 0; }
.closer-fine { margin-top: 16px; font-size: 13px; color: #9a93c8; }
.closer-fine strong { color: var(--violet-2); font-weight: 600; }
.official-contact {
  margin-top: 10px;
  color: var(--dim);
  font-size: 13px;
}
.official-contact a {
  color: var(--violet-2);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(169, 139, 255, 0.42);
  text-underline-offset: 3px;
}
.official-contact a:hover { color: var(--ink); }
@media (max-width: 480px) {
  .final-cta-form { flex-direction: column; align-items: stretch; border-radius: var(--r-lg); padding: 12px; gap: 10px; }
  .final-cta-form input { text-align: center; }
  .final-cta-form .btn { width: 100%; }
}

/* ============================ FOOTER ========================== */
/* compact, quiet, premium-software footer — concentrated, not a sprawling sitemap */
.site-footer {
  position: relative;
  margin-top: var(--screen-gap);
  padding: clamp(34px, 4vw, 44px) 0 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 10, 20, 0) 0%, rgba(10, 10, 20, 0.5) 100%);
}
/* subtle violet seam on the top edge — kept faint */
.site-footer::before {
  content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: min(var(--shell), 92vw); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(139, 108, 255, 0.4), transparent);
}
.foot-inner { display: grid; gap: clamp(20px, 2.5vw, 28px); }

/* brand (fixed, compact) on the left · link cluster tight on the right */
.foot-top {
  display: grid; grid-template-columns: minmax(240px, 280px) 1fr;
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.foot-brand { display: grid; gap: 5px; align-content: start; }
.foot-brand .brand-name { display: inline; font-size: 15px; }
.foot-slogan {
  margin: 3px 0 0; font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 14px; color: var(--ink);
}
.foot-desc { margin: 0; color: var(--dim); font-size: 12.5px; line-height: 1.45; max-width: 30ch; }

/* 4 clean vertical columns, right-aligned so the cluster's right edge lines up
   with the shell edge and the © line in the bottom bar */
.foot-links {
  display: grid; grid-template-columns: repeat(4, auto);
  gap: 16px 40px; justify-content: end; align-items: start;
}
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-h {
  margin: 0 0 1px; font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.foot-col a {
  color: var(--muted); font-size: 12.5px; line-height: 1.35; text-decoration: none; transition: color 0.15s ease;
}
.foot-col a:hover { color: var(--ink); }

.foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--dim); font-size: 12px;
}
.foot-built { max-width: 56ch; }
.foot-copy { white-space: nowrap; }

@media (max-width: 760px) {
  .foot-top { grid-template-columns: 1fr; gap: 22px; }
  .foot-links { grid-template-columns: 1fr 1fr; gap: 18px 24px; justify-content: start; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .foot-copy { white-space: normal; }
}
@media (max-width: 420px) {
  .foot-links { grid-template-columns: 1fr 1fr; }
}

/* ========================= LEGAL PAGES ========================= */
.legal-page {
  min-height: 100vh;
}
.legal-page .topbar .btn {
  text-decoration: none;
}
.legal-main {
  position: relative;
  z-index: 1;
  padding: clamp(34px, 6vw, 76px) 0 clamp(56px, 8vw, 96px);
}
.legal-shell {
  max-width: 860px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: clamp(28px, 4vw, 42px);
  transition: color 0.15s ease;
}
.legal-back::before {
  content: '<';
  color: var(--violet-2);
}
.legal-back:hover {
  color: var(--ink);
}
.legal-hero {
  padding-bottom: clamp(24px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  margin-top: 14px;
  font-size: clamp(36px, 6vw, 58px);
}
.legal-hero p {
  max-width: 760px;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.62;
}
.legal-updated {
  color: var(--dim) !important;
  font-size: 13px !important;
}
.legal-content {
  display: grid;
  gap: 0;
}
.legal-section {
  padding: clamp(24px, 3.5vw, 34px) 0;
  border-bottom: 1px solid var(--line);
}
.legal-section h2 {
  font-size: clamp(20px, 2.4vw, 25px);
  margin-bottom: 12px;
}
.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.72;
}
.legal-section p + p,
.legal-section p + ul {
  margin-top: 12px;
}
.legal-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
}
.legal-section li + li {
  margin-top: 7px;
}
.legal-link {
  color: var(--violet-2);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(169, 139, 255, 0.45);
  text-underline-offset: 3px;
}
.legal-link:hover {
  color: var(--ink);
}
@media (max-width: 480px) {
  .legal-main {
    padding-top: 28px;
  }
  .legal-back {
    margin-bottom: 24px;
  }
  .legal-section p,
  .legal-section li {
    font-size: 15px;
  }
}

/* ======================= WAITLIST DIALOG ====================== */
.wl-dialog {
  width: min(480px, 92vw); max-height: 92vh; padding: 0; border-radius: var(--r-lg);
  color: var(--ink); background: #0c0c18; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line-2); overflow: hidden;
}
/* per-pane width: the email form stays narrow; the Founder invitation gets more room */
.wl-dialog.is-founder-offer,
.wl-dialog[data-founder-mode="active"] { width: min(860px, 94vw); }
.wl-dialog:has(#waitlistSuccessPanel:not([hidden])) { width: min(860px, 94vw); }
.wl-dialog::backdrop { background: rgba(4, 4, 10, 0.7); backdrop-filter: blur(6px); }
.dialog-scroll {
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(14px, 2.2vw, 20px);
  scrollbar-gutter: stable;
}
.dialog-x {
  position: absolute; top: 14px; right: 16px; z-index: 4;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1;
  color: var(--muted); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
}
.dialog-x:hover { color: var(--ink); background: rgba(255, 255, 255, 0.12); }
/* waitlist dialog: a clearly visible top-right close button */
.wl-dialog .dialog-x {
  top: 12px; right: 12px; width: 36px; height: 36px; font-size: 22px;
  color: var(--ink); background: rgba(255, 255, 255, 0.12); border-color: var(--line-2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.wl-dialog .dialog-x:hover { background: rgba(255, 255, 255, 0.2); }
.dialog-pane h2 { margin: 12px 0 10px; font-size: clamp(24px, 4vw, 32px); }
.dialog-pane > p { color: var(--muted); font-size: 14.5px; }
.wl-form { margin-top: 20px; display: grid; gap: 14px; }
.wl-form label { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.wl-form input {
  padding: 14px 16px; border-radius: 8px; font: inherit; font-size: 15px;
  color: var(--ink); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-2);
}
.wl-form input:focus { outline: none; border-color: var(--violet); }
/* Founder offer — a premium, read-at-a-glance membership invitation card (kept short so it fits one screen) */
/* Founder card — a wide two-column membership pass: story + CTA on the left,
   benefits on the right; it is the dialog's single hero artifact. */
.founder-card {
  position: relative; margin-top: 22px; padding: 22px 24px; border-radius: 16px;
  display: grid; grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr); gap: 26px; align-items: stretch;
  background:
    radial-gradient(120% 90% at 22% -16%, rgba(139, 108, 255, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(26, 23, 50, 0.92), rgba(13, 12, 26, 0.94));
  border: 1px solid rgba(139, 108, 255, 0.34);
  box-shadow: 0 26px 70px rgba(110, 90, 220, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.founder-card-main { display: flex; flex-direction: column; }
.founder-pass {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet-2);
}
.founder-pass::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-2); box-shadow: 0 0 8px var(--violet-2); }
.founder-title { font-size: clamp(20px, 2.4vw, 24px); margin: 0 0 6px; }
.founder-lede { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0 0 12px; }
.founder-fine { font-size: 11.5px; color: var(--dim); margin: 8px 0 0; }
.founder-payment-status {
  min-height: 16px;
  margin: 7px 0 0;
  color: #a9b8ff;
  font-size: 11.5px;
  line-height: 1.35;
}
.founder-payment-status[data-state="pending"] { color: #c4bbff; }
/* benefits — a quiet list beside the story, separated by a luminous rule */
.founder-benefits {
  list-style: none; margin: 0; padding: 0 0 0 24px; display: grid; gap: 14px; align-content: center;
  border-left: 1px solid rgba(139, 108, 255, 0.26);
}
.founder-benefit { display: grid; gap: 4px; }
.founder-benefit-label { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-2); }
.founder-benefit-items { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
/* CTA — refined card button, pinned to the bottom of the story column so it shares a baseline with the benefits */
.founder-actions { display: flex; flex-direction: column; align-items: stretch; gap: 9px; margin-top: auto; padding-top: 4px; }
.founder-skip {
  border: 0; background: none; padding: 2px; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 500; color: var(--muted); transition: color 0.18s ease;
}
.founder-skip:hover { color: var(--ink); }
.founder-skip:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 6px; }
.founder-cta {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; height: auto; padding: 11px 18px;
  border: 0; border-radius: 12px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600;
  color: #0b0a18; background: linear-gradient(120deg, #b69cff 0%, #6fa1ff 100%);
  box-shadow: 0 8px 24px rgba(110, 140, 255, 0.30); transition: filter 0.18s ease, box-shadow 0.18s ease;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.founder-cta:hover { filter: brightness(1.06); box-shadow: 0 10px 30px rgba(110, 140, 255, 0.42); }
.founder-cta:disabled { cursor: default; opacity: 0.72; filter: saturate(0.7); box-shadow: none; }
.founder-cta:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; }
.is-huawei-browser .founder-cta {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 12.5px;
  line-height: 1.15;
  padding-inline: 12px;
}
@media (min-width: 760px) {
  .is-huawei-browser .wl-dialog.is-founder-offer,
  .is-huawei-browser .wl-dialog[data-founder-mode="active"] {
    width: min(1040px, 88vw);
  }
  .is-huawei-browser .wl-dialog:has(#waitlistSuccessPanel:not([hidden])) {
    width: min(1040px, 88vw);
  }
  .is-huawei-browser .founder-card {
    grid-template-columns: minmax(300px, 0.96fr) minmax(300px, 1.04fr);
    gap: 28px;
  }
  .is-huawei-browser .founder-cta {
    overflow-wrap: normal;
    word-break: normal;
    font-size: 13px;
  }
}
/* optional question — a quiet secondary strip below the card, visible by default */
.founder-idea-form { margin-top: 10px; }
.founder-idea-title { font-size: 12px; font-weight: 600; color: var(--dim); margin: 0 0 5px; }
.founder-idea-row { display: flex; gap: 10px; align-items: flex-end; }
.founder-idea-row .survey-open { flex: 1; min-width: 0; }
.founder-idea-form .survey-open textarea { min-height: 44px; max-height: 130px; font-size: 13px; padding: 9px 11px; line-height: 1.4; }
.founder-idea-row .btn-sm { flex: none; }
.founder-idea-form .form-status { margin: 4px 0 0; font-size: 12px; color: var(--dim); }
@media (max-width: 560px) {
  .wl-dialog.is-founder-offer,
  .wl-dialog[data-founder-mode="active"] { width: min(480px, 94vw); }
  .wl-dialog:has(#waitlistSuccessPanel:not([hidden])) { width: min(480px, 94vw); }
  .founder-card { grid-template-columns: 1fr; gap: 16px; padding: 18px 18px; }
  .founder-benefits { padding: 16px 0 0; border-left: 0; border-top: 1px solid rgba(139, 108, 255, 0.26); }
}
@media (min-width: 760px) and (min-height: 760px) {
  .wl-dialog.is-founder-offer,
  .wl-dialog[data-founder-mode="active"] {
    max-height: none;
    overflow: visible;
  }
  .wl-dialog:has(#waitlistSuccessPanel:not([hidden])) {
    max-height: none;
    overflow: visible;
  }
  .wl-dialog.is-founder-offer .dialog-scroll,
  .wl-dialog[data-founder-mode="active"] .dialog-scroll {
    max-height: none;
    overflow: visible;
  }
  .wl-dialog:has(#waitlistSuccessPanel:not([hidden])) .dialog-scroll {
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 480px) {
  .founder-idea-row { flex-direction: column; align-items: stretch; }
  .founder-idea-row .btn-sm { align-self: flex-end; }
}

/* ======================= DEMO VIDEO MODAL ===================== */
.demo-dialog {
  width: min(980px, 94vw); padding: 0; border-radius: var(--r-lg);
  background: #0c0c18; border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65); overflow: hidden;
}
/* No backdrop-filter here: blurring the page behind a *playing* video re-rasterizes
   every frame (worst on high-detail subtitle frames) → visible jank. Use a deeper
   solid dim instead, and promote the video to its own compositor layer. */
.demo-dialog::backdrop { background: rgba(4, 4, 10, 0.92); }
.demo-video {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 0; display: block; background: #05050b;
  transform: translateZ(0); will-change: transform;
}
.demo-dialog .first-note { padding: 14px 22px 18px; margin: 0; text-align: left; max-width: none; }
.demo-dialog .dialog-x { background: rgba(10, 10, 22, 0.7); }

/* ===================== MAGIC ENLARGE LIGHTBOX ================= */
.zoom-backdrop {
  position: fixed; inset: 0; z-index: 120; display: none;
  background: rgba(4, 4, 10, 0.82); backdrop-filter: blur(8px);
}
.zoom-backdrop:not([hidden]) { display: block; }
/* while zoomed, drop the nested stacking contexts on the promoted stage's ancestors
   so the fixed .is-zoomed stage rises above the backdrop (sharp, not blurred) */
body.zoom-open main,
body.zoom-open .shell,
body.zoom-open .how-head,
body.zoom-open .lanes,
body.zoom-open .tiers { z-index: auto; }
.zoom-backdrop .dialog-x { position: fixed; top: 16px; right: 18px; z-index: 132; background: rgba(10, 10, 22, 0.7); }
/* the clicked media stage, promoted in place to a centred enlarged view */
.stage.is-zoomed {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) !important;
  width: min(1040px, 92vw); max-width: min(1040px, 92vw); margin: 0; z-index: 130;
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.7);
}
.stage.is-zoomed::after, .stage.is-zoomed::before { display: none !important; }
.stage.is-zoomed img { object-fit: contain; transform: none; }

/* click-to-enlarge affordance: a subtle ⤢ cue on hover/focus over any media stage */
.replay-btn { display: none; } /* retired: superseded by the unified zoom cue below */
@media (hover: hover) and (pointer: fine) {
  .stage[data-zoomable]::before {
    content: '⤢'; position: absolute; z-index: 5; top: 10px; right: 10px;
    width: 30px; height: 30px; display: grid; place-items: center;
    font-size: 15px; line-height: 1; color: var(--ink);
    background: rgba(10, 10, 22, 0.66); border: 1px solid var(--line-2); border-radius: 9px;
    backdrop-filter: blur(6px); pointer-events: none;
    opacity: 0; transform: scale(0.92); transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .stage[data-zoomable]:hover::before,
  .stage[data-zoomable]:focus-visible::before { opacity: 1; transform: scale(1); }
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 980px) {
  .shell { width: calc(100% - 32px); max-width: var(--shell); }
  .hero-shell, .pain-grid, .hope-grid, .lanes, .reply-row,
  .actions-grid, .community-block {
    grid-template-columns: 1fr;
  }
  /* single column → drop the subgrid and restore normal flow spacing */
  .lanes { grid-template-rows: none; row-gap: clamp(20px, 3vw, 36px); }
  .lane { display: block; }
  .lane-head { height: auto; margin-bottom: 18px; min-height: auto; }
  .lane-foot { margin-top: 16px; }
  .hope-grid .stage-warm, .community-block figure { order: -1; }
  .how-flow { gap: 14px; }
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .nav { display: none; }
  .hero { min-height: auto; }
  .hero-copy, .hero-stage, .stage, .stage-aspect { max-width: 100%; }
  .hero-stage { margin-top: 6px; width: 100%; }
  .float-tl { top: -14px; left: 0; }
}

@media (max-width: 480px) {
  .shell { width: calc(100% - 24px); }
  .topbar { padding: 12px 14px; gap: 10px; }
  .topbar .btn { padding-inline: 14px; max-width: 156px; white-space: nowrap; }
  .brand-name { display: none; }
  h1 { font-size: 30px; line-height: 1.14; }
  h2 { font-size: 24px; line-height: 1.12; }
  .hero-title span, .hero-sub { max-width: 100%; }
  .hero-sub { font-size: 16px; line-height: 1.5; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; padding-inline: 18px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .faq-grid { grid-template-columns: 1fr; }
  .how-flow { grid-template-columns: 1fr; }
  .how-flow::before, .how-flow::after { display: none; }
  .float-br { right: 6px; bottom: 18px; }
  .float-tl { left: 2px; }
  .survey-actions { justify-content: stretch; }
  .survey-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .below-hint { animation: none; }
}
