/**
 * VLIKE Connect UI - Scroll Storytelling (Theme 4 Revised)
 * File: scroll-story.css | 400vh track, sticky viewport, 4 evolving scenes.
 * Scoped strictly below .vl-connect, body.night-mode .vl-connect, .vl-connect[data-vlc-theme="night"]
 */
.vl-connect {
  --vlc-story-header-height: 64px;
  --vlc-cobalt: #2738E8;
  --vlc-yellow: #F5DE67;
  --vlc-yellow-glow: rgba(245, 222, 103, 0.45);
  --vlc-offwhite: #F7F8FC;
  --vlc-white: #FFFFFF;
  --vlc-ink: #141B2D;
  --vlc-ink-secondary: #526179;
  --vlc-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Be Vietnam Pro", sans-serif;
  --vlc-story-progress: 0;

  font-family: var(--vlc-font-sans);
  color: var(--vlc-ink);
  background-color: var(--vlc-offwhite);
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  -webkit-font-smoothing: antialiased;
}

body.night-mode .vl-connect,
.vl-connect[data-vlc-theme="night"] {
  --vlc-offwhite: #0B1120;
  --vlc-ink: #F3F6FC;
  --vlc-ink-secondary: #B9C6DB;
}

.vl-connect [hidden] { display: none !important; }
.vl-connect *, .vl-connect *::before, .vl-connect *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Sticky Header */
.vl-connect .vlc-story-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--vlc-story-header-height);
  padding: 0 clamp(16px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 21, 56, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
}
.vl-connect .vlc-story-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FFF;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.vl-connect .vlc-brand-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 20px;
  background: #DA251D;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.vl-connect .vlc-brand-flag::after {
  content: "★";
  color: #FF0;
  font-size: 13px;
  line-height: 1;
}
.vl-connect .vlc-header-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  color: #D1D7FE;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
}
.vl-connect .vlc-story-header-skip {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vl-connect .vlc-skip-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #FFF;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.18s, transform 0.18s;
}
.vl-connect .vlc-skip-link:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}
.vl-connect .vlc-skip-link-primary {
  background: var(--vlc-yellow);
  color: #141B2D;
  border-color: #EAB308;
}
.vl-connect .vlc-skip-link-primary:hover { background: #FDE047; }

/* Story Track & Stacked Baseline */
.vl-connect .vlc-story, .vl-connect .vlc-story-viewport { position: relative; width: 100%; }
.vl-connect .vlc-story-scene {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--vlc-story-header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 64px);
  overflow: hidden;
}

/* Scene 0 (Cobalt) */
.vl-connect .vlc-story-scene[data-vlc-scene="0"] {
  background: radial-gradient(circle at 35% 30%, #3B4DFF 0%, #2738E8 55%, #1522AB 100%);
  color: #FFF;
}
.vl-connect .vlc-story-scene[data-vlc-scene="0"] .vlc-story-lead { color: #D1D7FE; }

/* Scene 1 (Warm Offwhite) */
.vl-connect .vlc-story-scene[data-vlc-scene="1"] {
  background: radial-gradient(circle at 65% 35%, #FFFDF5 0%, #F5F2E6 60%, #EAE5D2 100%);
  color: #141B2D;
}
.vl-connect .vlc-story-scene[data-vlc-scene="1"] .vlc-story-lead { color: #526179; }
.vl-connect .vlc-story-scene[data-vlc-scene="1"] .vlc-story-accent { color: var(--vlc-cobalt); text-shadow: none; }

body.night-mode .vl-connect .vlc-story-scene[data-vlc-scene="1"],
.vl-connect[data-vlc-theme="night"] .vlc-story-scene[data-vlc-scene="1"] {
  background: radial-gradient(circle at 65% 35%, #1C2847 0%, #131A2E 65%, #0B1020 100%);
  color: #F3F6FC;
}
body.night-mode .vl-connect .vlc-story-scene[data-vlc-scene="1"] .vlc-story-lead,
.vl-connect[data-vlc-theme="night"] .vlc-story-scene[data-vlc-scene="1"] .vlc-story-lead { color: #A5B4CD; }
body.night-mode .vl-connect .vlc-story-scene[data-vlc-scene="1"] .vlc-story-accent,
.vl-connect[data-vlc-theme="night"] .vlc-story-scene[data-vlc-scene="1"] .vlc-story-accent { color: #A9B8FF; }

/* Scene 2 (Deep Navy) */
.vl-connect .vlc-story-scene[data-vlc-scene="2"] {
  background: radial-gradient(circle at 35% 30%, #192569 0%, #0E1642 55%, #080C26 100%);
  color: #FFF;
}
.vl-connect .vlc-story-scene[data-vlc-scene="2"] .vlc-story-lead { color: #9FB0DE; }

/* Scene 3 (Electric Cobalt) */
.vl-connect .vlc-story-scene[data-vlc-scene="3"] {
  background: radial-gradient(circle at 50% 40%, #2A3BF5 0%, #1724B0 60%, #0B1366 100%);
  color: #FFF;
}
.vl-connect .vlc-story-scene[data-vlc-scene="3"] .vlc-story-lead { color: #E0E7FF; }

.vl-connect .vlc-scene-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Enhanced Sticky 400vh Track */
.vl-connect.vlc-story-enhanced .vlc-story {
  height: 400vh;
}
.vl-connect.vlc-story-enhanced .vlc-story-viewport {
  position: sticky;
  top: var(--vlc-story-header-height);
  height: calc(100vh - var(--vlc-story-header-height));
  overflow: hidden;
}
.vl-connect.vlc-story-enhanced .vlc-story-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  opacity: var(--vlc-scene-opacity, 0);
  transform: none;
  pointer-events: none;
  visibility: visible;
  transition: none;
  will-change: opacity, transform;
}
.vl-connect.vlc-story-enhanced .vlc-story-scene[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

/* Typography & Titles */
.vl-connect .vlc-story-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 4;
}
.vl-connect .vlc-story-kicker-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.vl-connect .vlc-story-kicker {
  font-family: monospace;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}
.vl-connect .vlc-story-sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--vlc-yellow);
  color: #141B2D;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px var(--vlc-yellow-glow);
  transform: rotate(-2deg);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.vl-connect .vlc-story-title {
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  padding: 0.12em 0;
}
.vl-connect .vlc-story-title-line { display: block; }
.vl-connect .vlc-story-accent {
  color: var(--vlc-yellow);
  text-shadow: 0 4px 20px var(--vlc-yellow-glow);
}
.vl-connect .vlc-story-lead {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  max-width: 580px;
  opacity: 0.9;
}

.vl-connect .vlc-story-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--vlc-yellow);
  color: #141B2D;
  font-size: 1rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 10px 24px var(--vlc-yellow-glow);
  align-self: flex-start;
  transition: transform 0.2s, background 0.2s;
  margin-top: 8px;
}
.vl-connect .vlc-story-cta:hover {
  transform: translateY(-2px);
  background: #FEF08A;
}
.vl-connect .vlc-story-cta-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Primary Art (.vlc-story-art) */
.vl-connect .vlc-story-art {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  transform: translate(var(--vlc-art-x, 0px), var(--vlc-art-y, 0px)) rotate(var(--vlc-art-rotate, 0deg)) scale(var(--vlc-art-scale, 1));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.vl-connect .vlc-story-img {
  width: 100%;
  height: auto;
  max-height: min(480px, 60vh);
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 20px 32px rgba(10, 16, 50, 0.35));
}

/* Navigation Dots */
.vl-connect .vlc-story-nav {
  position: absolute;
  right: clamp(16px, 3vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 50;
}
.vl-connect .vlc-story-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.vl-connect .vlc-story-dot:hover { background: rgba(255, 255, 255, 0.7); transform: scale(1.2); }
.vl-connect .vlc-story-dot[aria-current="step"] {
  background: var(--vlc-yellow);
  border-color: #FFF;
  transform: scale(1.35);
  box-shadow: 0 0 10px var(--vlc-yellow);
}

/* Progress & Scroll Hint */
.vl-connect .vlc-story-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 50;
}
.vl-connect .vlc-story-progress-fill {
  height: 100%;
  width: calc(var(--vlc-story-progress, 0) * 100%);
  background: var(--vlc-yellow);
  box-shadow: 0 0 10px var(--vlc-yellow);
  transition: width 0.1s linear;
}
.vl-connect .vlc-story-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFF;
  background: rgba(14, 21, 56, 0.75);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 50;
  animation: vlc-scroll-bounce 2.2s infinite;
}
@keyframes vlc-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Target Auth Area (#vlc-auth) */
.vl-connect .vlc-auth-section {
  position: relative;
  background-color: var(--vlc-offwhite);
  padding: clamp(48px, 8vw, 96px) 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-top: 2px solid rgba(0, 0, 0, 0.06);
}
.vl-connect .vlc-auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--vlc-white);
  border: 1px solid #CBD5E1;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 20px 48px -12px rgba(20, 27, 45, 0.08);
  text-align: center;
}
body.night-mode .vl-connect .vlc-auth-card,
.vl-connect[data-vlc-theme="night"] .vlc-auth-card {
  background: #152039;
  border-color: #243354;
  color: #F3F6FC;
}
.vl-connect .vlc-auth-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.vl-connect .vlc-auth-desc { font-size: 0.875rem; color: var(--vlc-ink-secondary); line-height: 1.5; margin-bottom: 24px; }

/* Responsive Mobile (<= 767px) */
@media (max-width: 767px) {
  .vl-connect { --vlc-story-header-height: 56px; }
  .vl-connect .vlc-story-header { padding: 0 16px; }
  .vl-connect .vlc-header-tagline { display: none; }
  .vl-connect .vlc-story-logo { font-size: 1.25rem; }
  .vl-connect .vlc-skip-link { padding: 6px 12px; font-size: 0.75rem; }
  .vl-connect .vlc-scene-inner { grid-template-columns: 1fr; gap: 20px; text-align: center; padding-top: 10px; }
  .vl-connect .vlc-story-copy { align-items: center; gap: 10px; }
  .vl-connect .vlc-story-title { font-size: clamp(1.85rem, 8vw, 2.75rem); line-height: 1.18; }
  .vl-connect .vlc-story-lead { font-size: 0.875rem; max-width: 330px; }
  .vl-connect .vlc-story-art { max-width: 300px; height: min(240px, 35vh); }
  .vl-connect .vlc-story-img { max-height: 100%; }
  .vl-connect .vlc-story-cta { align-self: center; padding: 12px 24px; font-size: 0.9375rem; }
  .vl-connect .vlc-story-nav { right: 10px; gap: 10px; }
  .vl-connect .vlc-story-dot { width: 10px; height: 10px; }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  .vl-connect .vlc-story-art,
  .vl-connect .vlc-story-scene,
  .vl-connect .vlc-story-scroll-hint {
    animation: none;
    transition: none;
    transform: none;
  }
}

/* Integration with the real account forms and mobile brand asset. */
.vl-connect .vlc-header { position:sticky; top:0; z-index:100; height:64px; }
.vl-connect .vlc-header-signup { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:8px 18px; border-radius:999px; color:#141B2D; background:#F5DE67; font-size:13px; font-weight:800; }
.vl-connect .vlc-header-signup:hover { color:#141B2D; background:#FFF0A2; text-decoration:none; }
.vl-connect .vlc-header .vlc-header-login { color:#fff; }
.vl-connect #vlc-auth { scroll-margin-top:var(--vlc-story-header-height,64px); }
.vl-connect.vlc-story-enhanced .vlc-story { height:calc(100svh * 4); flex-shrink:0; }
.vl-connect.vlc-story-enhanced .vlc-story-viewport { height:calc(100svh - var(--vlc-story-header-height)); }
.vl-connect .vlc-story-scene { min-height:calc(100svh - var(--vlc-story-header-height)); }
.vl-connect.vlc-story-enhanced .vlc-story-scene { min-height:0; }
.vl-connect.vlc-story-enhanced .vlc-story-copy { transform:translateY(var(--vlc-scene-y,0px)); }
.vl-connect .vlc-story-art { will-change:auto; }
.vl-connect.vlc-story-enhanced .vlc-story-art { will-change:transform; }
.vl-connect .vlc-story-dot { position:relative; display:grid; place-items:center; width:44px; height:44px; border:0; background:transparent; border-radius:50%; }
.vl-connect .vlc-story-dot::before { content:""; width:9px; height:9px; border:1px solid #fff; border-radius:50%; background:#2334A5; box-shadow:0 0 0 3px #0b112030; }
.vl-connect .vlc-story-dot:hover,.vl-connect .vlc-story-dot[aria-current="step"] { background:transparent; transform:none; box-shadow:none; }
.vl-connect .vlc-story-dot[aria-current="step"]::before { width:12px; height:12px; background:#F5DE67; box-shadow:0 0 0 5px #F5DE6728; }
.vl-connect .vlc-story-nav { gap:0; right:10px; }
.vl-connect .vlc-story-nav button:focus-visible { outline:2px solid #F5DE67 !important; outline-offset:0; }
.vl-connect .vlc-story-progress-fill { width:100%; transform:scaleX(var(--vlc-story-progress,0)); transform-origin:left; transition:none; }
.vl-connect .vlc-story-cta { min-height:48px; }
.vl-connect.vlc-motion-paused .vlc-story-scroll-hint { animation:none; }
.vl-connect:not(.vlc-story-enhanced) :is(.vlc-story-nav,.vlc-story-progress-bar,.vlc-story-scroll-hint) { display:none; }
@media (max-width:1050px) and (min-width:768px) {
  .vl-connect .vlc-story-title { font-size:clamp(36px,4.4vw,52px); }
  .vl-connect .vlc-story-scene { padding:32px 52px 52px 30px; }
  .vl-connect .vlc-scene-inner { grid-template-columns:1fr 1fr; gap:12px; }
}
@media (max-width:767px) {
  .vl-connect .vlc-header { height:56px; padding:0 12px; }
  .vl-connect .vlc-header-left { gap:0; }
  .vl-connect .vlc-header-actions { gap:6px; }
  .vl-connect .vlc-header .vlc-header-login { display:inline-flex; align-items:center; min-height:40px; font-size:11px; }
  .vl-connect .vlc-header-signup { min-height:36px; padding:7px 11px; font-size:11px; }
  .vl-connect .vlc-header .vlc-motion-btn { width:36px; height:36px; padding:0; justify-content:center; }
  .vl-connect .vlc-header .vlc-motion-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
  .vl-connect .vlc-header .vlc-brand-wordmark { gap:5px; font-size:17px; }
  .vl-connect .vlc-header .vlc-brand-logo { width:42px; height:30px; }
  .vl-connect .vlc-story-scene { padding:24px 36px 62px 20px; }
  .vl-connect .vlc-story-nav { right:0; }
  .vl-connect .vlc-story-dot { width:36px; height:44px; }
  .vl-connect .vlc-story-title { font-size:clamp(30px,8vw,42px); }
  .vl-connect .vlc-story-kicker-wrap { justify-content:center; gap:8px; }
  .vl-connect .vlc-story-kicker { font-size:11px; }
  .vl-connect .vlc-story-sticker { font-size:9px; padding:4px 7px; }
  .vl-connect .vlc-story-lead { font-size:13px; }
  .vl-connect .vlc-story-art { height:min(245px,32svh); }
  .vl-connect .vlc-story-scroll-hint { font-size:9px; bottom:16px; }
}
@media (max-height:650px) {
  .vl-connect .vlc-story-title { font-size:clamp(26px,5.5vh,44px); }
  .vl-connect .vlc-story-copy { gap:9px; }
  .vl-connect .vlc-story-lead { font-size:12px; }
  .vl-connect .vlc-story-art { max-height:30svh; }
  .vl-connect .vlc-story-art img { max-height:100%; }
  .vl-connect .vlc-scene-inner { gap:10px; }
  .vl-connect .vlc-story-scene { padding:16px 46px 40px 20px; }
}
@media (max-height:650px) and (max-width:767px) {
  .vl-connect .vlc-story-title { font-size:clamp(22px,4.5svh,28px); }
  .vl-connect .vlc-story-art { height:23svh; }
  .vl-connect .vlc-story-copy { gap:6px; }
  .vl-connect .vlc-scene-inner { padding-top:0; }
  .vl-connect .vlc-story-cta { min-height:40px; padding:9px 18px; font-size:12px; }
}
@media (prefers-reduced-motion:reduce) {
  .vl-connect .vlc-story-copy { transform:none; }
  .vl-connect .vlc-story-scene { scroll-margin-top:var(--vlc-story-header-height); }
}
