/* ==========================================================================
   FLARESHOOT — Process page
   Extends the "Liquid Intelligence" design system in styles.css.
   ========================================================================== */

.process-page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 150px clamp(20px, 5vw, 60px) 120px;
}

/* ---- FIX: `backdrop-filter` made the glass cards flash/brighten at the
   viewport edge while scrolling. Drop the live backdrop sampling and fake the
   glass with a translucent dark base under the existing gradient tint — same
   look, zero flicker. (Scoped to this page only.) ---- */
.process-page .glass-card,
.process-page .faq-item {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-color: rgba(18, 10, 31, 0.74);
}
.process-page .v-gaction {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(139, 92, 246, 0.18);
}

/* ============ HERO ============ */
.proc-hero { text-align: center; margin-bottom: clamp(48px, 8vh, 96px); }
.proc-hero .eyebrow { color: var(--orange); }
.proc-hero-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(32px, 5.2vw, 62px); line-height: 1.08; letter-spacing: -0.02em;
  margin: var(--space-3) 0 var(--space-3);
}
.proc-hero-sub { color: var(--text-dim); font-size: clamp(16px, 1.5vw, 20px); max-width: 46ch; margin: 0 auto; }

/* ============ SMART-LOAD VIDEO ============ */
.proc-video-sec { text-align: center; margin-bottom: clamp(64px, 12vh, 140px); }
.video-eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--violet-soft); margin-bottom: var(--space-3);
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.55);
}
.smartvideo {
  position: relative; width: 100%; max-width: 940px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--glass-border); border-top-color: var(--glass-border-top);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(168, 85, 247, 0.18), transparent 60%),
    linear-gradient(160deg, rgba(168, 85, 247, 0.12), rgba(18, 10, 31, 0.85));
  box-shadow: 0 40px 90px rgba(5, 2, 12, 0.7), 0 0 60px rgba(139, 92, 246, 0.3);
}
.sv-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
  background: transparent; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.sv-poster.is-hidden { opacity: 0; transform: scale(1.03); pointer-events: none; }
.sv-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-poster::after {
  /* darkening + purple wash over the thumbnail so the play button pops */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(10, 6, 18, 0.35), rgba(10, 6, 18, 0.72));
}
/* STANDARD PILL play button: purple liquid glass + outer pulse ring (kept
   from the old circle) + the "See full work" shine-sweep hover from .btn */
.sv-play {
  position: relative; z-index: 2; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 34px; border-radius: 999px; color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(14px, 1.3vw, 17px);
  letter-spacing: 0.06em;
  /* purple liquid glass with a purple glow all around */
  background: linear-gradient(150deg, rgba(196, 181, 253, 0.32), rgba(139, 92, 246, 0.14));
  border: 1.5px solid rgba(196, 181, 253, 0.5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  /* last shadow layer is the animated pulse ring (element box-shadow is not
     clipped by overflow:hidden, so it radiates past the pill edge) */
  box-shadow:
    0 12px 44px rgba(139, 92, 246, 0.55),
    0 0 34px rgba(139, 92, 246, 0.32),
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 0 0 0 rgba(168, 85, 247, 0.5);
  animation: sv-pulse 2.8s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
/* inner shine sweep (from .btn) — clipped to the pill by overflow:hidden */
.sv-play::before {
  content: ''; position: absolute; top: 0; left: -80%; width: 60%; height: 100%; z-index: 1;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.sv-poster:hover .sv-play::before { left: 130%; }
/* play triangle — white fill with a crisp orange outline */
.sv-play-ico { position: relative; z-index: 2; width: 15px; height: 15px; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)); }
.sv-play-ico path { fill: #fff; stroke: var(--orange); stroke-width: 1.5; stroke-linejoin: round; paint-order: stroke; }
.sv-play-text { position: relative; z-index: 2; }
.sv-poster:hover .sv-play { transform: translateY(-2px) scale(1.04); }
.sv-poster:active .sv-play { transform: translateY(0) scale(0.99); }
/* pulse ring radiates on the last box-shadow layer; the glass glow stays put */
@keyframes sv-pulse {
  0%, 100% {
    box-shadow:
      0 12px 44px rgba(139, 92, 246, 0.55),
      0 0 34px rgba(139, 92, 246, 0.32),
      inset 0 1px 1px rgba(255, 255, 255, 0.4),
      0 0 0 0 rgba(168, 85, 247, 0.5);
  }
  50% {
    box-shadow:
      0 12px 44px rgba(139, 92, 246, 0.55),
      0 0 34px rgba(139, 92, 246, 0.32),
      inset 0 1px 1px rgba(255, 255, 255, 0.4),
      0 0 0 18px rgba(168, 85, 247, 0);
  }
}
.sv-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============ STEP-BY-STEP TIMELINE ============ */
.steps-head { text-align: center; margin-bottom: clamp(40px, 7vh, 80px); }
.steps-head .eyebrow { color: var(--orange); }

.steps { position: relative; }
/* central vertical line + scroll-fill */
.steps-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
  background: rgba(196, 181, 253, 0.12); border-radius: 2px;
}
.steps-line-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0%; border-radius: 2px;
  background: linear-gradient(180deg, var(--violet), var(--violet-2) 55%, var(--orange));
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.step {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px);
  align-items: center; margin: clamp(60px, 11vh, 120px) 0;
}
.step:first-child { margin-top: 0; }
.step:last-child { margin-bottom: 0; }
/* zig-zag: even steps put the visual on the right */
.step:nth-child(even) .step-visual { order: 2; }
.step:nth-child(even) .step-body { order: 1; }

.step-node {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%; z-index: 3;
  background: #241b38; border: 2px solid rgba(196, 181, 253, 0.4);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.step-node.is-active {
  background: var(--violet-2); border-color: #fff;
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.18), 0 0 22px rgba(168, 85, 247, 0.8);
}

.step-body { max-width: 46ch; }
.step:nth-child(odd) .step-body { padding-left: clamp(8px, 2vw, 28px); }
.step:nth-child(even) .step-body { padding-right: clamp(8px, 2vw, 28px); text-align: right; }
.step-num { color: var(--orange); }
.step-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.12; margin: 10px 0 14px; }
.step-text { color: var(--text-dim); font-size: clamp(14.5px, 1.2vw, 17px); }

/* ---- step visuals (shared) ---- */
.step-visual { display: flex; justify-content: center; }
.step-visual .glass-card {
  width: 100%; max-width: 380px; padding: clamp(20px, 2.4vw, 30px); border-radius: 22px;
  position: relative; overflow: hidden;
}

/* Step 1 — briefing form */
.v-brief { display: flex; flex-direction: column; gap: 16px; }
.v-brief-label { display: block; margin-bottom: 4px; color: var(--violet-soft); }
.v-brief-row { display: flex; align-items: center; gap: 14px; }
.v-check {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  color: #06120c; background: #34F5A0; box-shadow: 0 0 14px rgba(52, 245, 160, 0.5);
}
.v-check svg { width: 15px; height: 15px; }
.v-brief-bar { flex: 1; height: 12px; border-radius: 999px; background: linear-gradient(90deg, rgba(196, 181, 253, 0.35), rgba(196, 181, 253, 0.08)); }
.v-brief-bar.short { max-width: 58%; }

/* Step 2 — QR / shipping */
.v-qr-card { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.v-qr {
  width: 128px; height: 128px; border-radius: 16px; padding: 14px; background: #fff;
  box-shadow: 0 0 40px rgba(196, 181, 253, 0.55);
}
.v-qr svg { width: 100%; height: 100%; color: #0A0612; }
.v-ship-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text);
  border: 1px solid rgba(249, 115, 22, 0.4); background: rgba(249, 115, 22, 0.1);
}
.v-ship-badge svg { width: 20px; height: 20px; color: var(--orange); }

/* Step 3 — split screen */
.v-split { display: flex; align-items: stretch; gap: 0; padding: 0 !important; }
.v-split-half {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: clamp(28px, 4vw, 44px) 16px; text-align: center;
}
.v-split-half svg { width: 46px; height: 46px; }
.v-split-real { color: var(--violet-soft); background: radial-gradient(120% 100% at 50% 0%, rgba(196, 181, 253, 0.14), transparent 70%); }
.v-split-real .mono-label { color: var(--violet-soft); }
.v-split-ai { color: var(--orange); background: radial-gradient(120% 100% at 50% 100%, rgba(249, 115, 22, 0.16), transparent 70%); }
.v-split-ai .mono-label { color: var(--orange-2); }
.v-split-divider { width: 1px; background: linear-gradient(180deg, transparent, rgba(196, 181, 253, 0.5), transparent); }

/* Step 4 — preview gallery */
.v-gallery { }
.v-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v-cell {
  aspect-ratio: 1/1; border-radius: 10px; border: 1px solid var(--glass-border);
  background: linear-gradient(140deg, rgba(168, 85, 247, 0.28), rgba(18, 10, 31, 0.75));
}
.v-gallery-wm {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%) rotate(-16deg);
  font-family: var(--font-mono); font-size: clamp(20px, 3vw, 30px); letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.18); pointer-events: none; white-space: nowrap;
}
.v-gallery::before {
  content: ''; position: absolute; inset: 0; background: rgba(10, 6, 18, 0.42); pointer-events: none;
}
.v-gallery-actions { position: relative; display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.v-gaction {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text); border: 1px solid var(--glass-border);
  background: rgba(139, 92, 246, 0.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.v-gaction svg { width: 15px; height: 15px; }
.v-gaction-ok { color: #34F5A0; border-color: rgba(52, 245, 160, 0.4); background: rgba(52, 245, 160, 0.1); }

/* Step 5 — unlock + downloads */
.v-unlock { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.v-unlock-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; color: #fff;
  background: linear-gradient(100deg, var(--violet) 0%, var(--violet-2) 55%, var(--orange) 130%);
  box-shadow: 0 10px 34px rgba(139, 92, 246, 0.5), 0 0 26px rgba(249, 115, 22, 0.2);
}
.v-unlock-btn svg { width: 20px; height: 20px; }
.v-dl-row { display: flex; gap: 14px; }
.v-dl {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--text-dim);
  border: 1px solid var(--glass-border); background: rgba(139, 92, 246, 0.08);
}
.v-dl svg { width: 16px; height: 16px; color: var(--violet-soft); }
.v-dl b { color: #34F5A0; font-weight: 600; }

/* ============ FINAL CTA ============ */
.proc-cta { margin: clamp(80px, 14vh, 160px) 0 clamp(64px, 10vh, 120px); }
.proc-cta-card {
  text-align: center; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 60px); border-radius: 28px;
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(168, 85, 247, 0.16), transparent 60%),
    var(--glass-bg);
  box-shadow: 0 30px 80px rgba(5, 2, 12, 0.6), 0 0 50px rgba(139, 92, 246, 0.2);
}
.proc-cta-card .eyebrow { color: var(--orange); }
.proc-cta-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.12; margin: var(--space-3) 0 var(--space-4); }
.proc-cta-btn { font-size: 16px; }

/* ============ FAQ ============ */
.faq-head { text-align: center; margin-bottom: clamp(32px, 6vh, 56px); }
.faq-head .eyebrow { color: var(--orange); }
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--glass-border); border-top-color: var(--glass-border-top);
  background: var(--glass-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.faq-item:hover { border-color: rgba(196, 181, 253, 0.4); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2); }
.faq-item.open { border-color: rgba(196, 181, 253, 0.5); box-shadow: 0 10px 34px rgba(139, 92, 246, 0.25); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: transparent; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(15px, 1.4vw, 18px); color: var(--text);
}
.faq-ico { position: relative; flex: none; width: 18px; height: 18px; }
.faq-ico::before, .faq-ico::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--violet-soft); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-ico::before { width: 16px; height: 2px; }
.faq-ico::after { width: 2px; height: 16px; }
.faq-item.open .faq-ico::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.faq-a { height: 0; overflow: hidden; transition: height 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-a-inner { padding: 0 24px 22px; color: var(--text-dim); font-size: 15px; }
.faq-a-inner p { opacity: 0.7; }

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) {
  .steps-line { left: 18px; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-left: 46px; }
  .step-node { left: 18px; top: 8px; transform: translate(-50%, 0); }
  .step:nth-child(even) .step-visual,
  .step:nth-child(even) .step-body { order: initial; }
  .step:nth-child(even) .step-body { text-align: left; padding-right: 0; }
  .step:nth-child(odd) .step-body { padding-left: 0; }
  .step-visual { justify-content: flex-start; }
  .step-visual .glass-card { max-width: 340px; min-width: 0; }
  /* step 5: the two download pills wrap on very narrow phones (360px) */
  .v-dl-row { flex-wrap: wrap; justify-content: center; gap: 10px; }
}

/* ============ glass + step animations (js/process-fx.js) ============ */
/* the engine card's purple glass on every step visual */
.step-visual .glass-card {
  background:
    radial-gradient(120% 85% at 50% 0%, rgba(168, 85, 247, 0.22), transparent 60%),
    linear-gradient(160deg, rgba(168, 85, 247, 0.13), rgba(139, 92, 246, 0.04)),
    rgba(20, 10, 38, 0.5);
  border: 1px solid rgba(220, 210, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 40px rgba(168, 85, 247, 0.1), 0 0 50px rgba(139, 92, 246, 0.22), 0 24px 60px rgba(5, 2, 12, 0.5);
}

/* step 4: real previews, one flareshoot watermark per image */
.v-gallery::before { background: none; }
.v-cell { position: relative; overflow: hidden; }
.v-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-wm {
  position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/flareshoot-wm-400.png") center / cover no-repeat;
  opacity: 1;
  /* the bright (white) watermark straight on the purple preview cells */
}

/* ---- play-once states (only when JS runs: html.pfx) ---- */
.pfx .step .v-check { transform: scale(0.3); opacity: 0; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease; }
.pfx .step .v-brief-bar { transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.pfx .step.pfx-play .v-check { transform: none; opacity: 1; }
.pfx .step.pfx-play .v-brief-bar { transform: none; }
.pfx .step.pfx-play .v-brief-row:nth-of-type(2) > * { transition-delay: 0.25s; }
.pfx .step.pfx-play .v-brief-row:nth-of-type(3) > * { transition-delay: 0.5s; }
.pfx .step.pfx-play .v-brief-row:nth-of-type(4) > * { transition-delay: 0.75s; }

.pfx .step .v-qr { transform: translateY(26px) scale(0.92); opacity: 0; clip-path: inset(0 0 100% 0 round 16px);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.pfx .step.pfx-play .v-qr { transform: none; opacity: 1; clip-path: inset(0 0 0 0 round 16px); }
.pfx .step .v-ship-badge svg { transform: translateX(-26px); opacity: 0; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.6s, opacity 0.3s ease 0.6s; }
.pfx .step.pfx-play .v-ship-badge svg { transform: none; opacity: 1; }

.pfx .step .v-split-half svg { transform: scale(0.6); opacity: 0; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease; }
.pfx .step .v-split-ai svg { transition-delay: 0.35s; }
.pfx .step.pfx-play .v-split-half svg { transform: none; opacity: 1; }
.pfx .step .v-split-divider { transform: scaleY(0); transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s; }
.pfx .step.pfx-play .v-split-divider { transform: none; }

.pfx .step .v-cell { opacity: 0; transform: scale(0.94); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.pfx .step.pfx-play .v-cell { opacity: 1; transform: none; }
.pfx .step.pfx-play .v-cell:nth-child(2) { transition-delay: 0.12s; }
.pfx .step.pfx-play .v-cell:nth-child(3) { transition-delay: 0.24s; }
.pfx .step.pfx-play .v-cell:nth-child(4) { transition-delay: 0.36s; }
.pfx .step.pfx-play .v-gaction-ok { animation: pfx-ok 1.1s ease-out 0.9s 1; }
@keyframes pfx-ok {
  0% { box-shadow: 0 0 0 0 rgba(52, 245, 160, 0); }
  40% { box-shadow: 0 0 0 5px rgba(52, 245, 160, 0.25), 0 0 22px rgba(52, 245, 160, 0.5); }
  100% { box-shadow: 0 0 0 12px rgba(52, 245, 160, 0), 0 0 0 rgba(52, 245, 160, 0); }
}

.pfx .step .v-unlock-btn svg path { transform-origin: 15.6px 10.5px; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s; }
.pfx .step.pfx-play .v-unlock-btn svg path { transform: translateY(-1.5px) rotate(18deg); }
.pfx .step .v-dl { opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.pfx .step.pfx-play .v-dl { opacity: 1; transform: none; transition-delay: 0.75s; }
.pfx .step.pfx-play .v-dl + .v-dl { transition-delay: 0.95s; }

/* the thumbnail has its title baked in at the centre → the play pill sits
   in the free band BELOW it instead of on top of "Productized" */
.sv-poster { align-items: flex-end; padding-bottom: 5.5%; }
@media (max-width: 640px) {
  .sv-poster { padding-bottom: 2.4%; }
  .sv-play { padding: 10px 22px; gap: 8px; font-size: 13px; }
}
