/* ==========================================================================
   WIZKET — go-live.css · "Go live" final CTA (Marketing page, #start)
   A lock screen you pull down to launch the campaign. js/go-live.js sets data-phase on
   .gl (idle · pull · storm · done) and --pull (0–1) while dragging.
   The phone is hardware: dark in both themes. Orange: the handle, the band, the reach
   gauge, the lit map, the last notification. Prefix: gl-
   ========================================================================== */
.gl {
  --side: clamp(20px, 6vw, 110px);
  --pull: 0;
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100svh;
  padding: clamp(90px, 13vh, 130px) var(--side) clamp(50px, 8vh, 80px);
  background:
    radial-gradient(45% 55% at 50% 60%, var(--petrol) 0%, transparent 70%),
    var(--bg);
}
.gl::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.6; }
.gl__pin { position: relative; width: min(1100px, 100%); margin: 0 auto; display: grid; justify-items: center; text-align: center; }

.gl-fx { position: absolute; z-index: -1; top: -150px; bottom: -100px; left: calc(50% - 50vw); width: 100vw; height: calc(100% + 250px); pointer-events: none; }

/* bridge D: the search page that folds into the phone */
.gl-fold {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 26px;
  translate: -50% -50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.gl-fold i { display: block; height: 14px; border-radius: 7px; background: #eceff1; transform-origin: 50% 0; }
.gl-fold i:first-child { height: 64px; border-radius: 12px; background: #fff1e8; box-shadow: inset 5px 0 0 #fd5f07; }
.gl-fold i:nth-child(3) { width: 78%; } .gl-fold i:nth-child(4) { width: 60%; }

/* ---- copy ---- */
.gl__copy { display: grid; justify-items: center; }
.gl__copy .ws-eyebrow { justify-content: center; }
.gl__title { margin: 0; font: 400 clamp(2.6rem, min(6vw, 10vh), 6.4rem)/0.9 var(--font-display); text-transform: uppercase; color: var(--text); }
.gl__title > span { display: inline-block; }
.gl__sub { min-height: 1.5em; margin: clamp(10px, 1.8vh, 16px) 0 0; font: 600 clamp(1rem, 1.25vw, 1.15rem)/1.45 var(--font-body); color: var(--muted); }
.gl__sub.is-tease { color: var(--accent); }
.gl-touch { display: none; }
@media (hover: none) { .gl-mouse { display: none; } .gl-touch { display: inline; } }

/* ---- stage: reach gauge · phone · counters ---- */
.gl__stage { display: grid; grid-template-columns: 110px auto 110px; align-items: center; gap: clamp(20px, 4vw, 60px); margin-top: clamp(22px, 4vh, 36px); }

.gl-reach { display: flex; align-items: stretch; gap: 12px; height: clamp(240px, 36vh, 340px); justify-self: end; }
.gl-reach__bar { position: relative; width: 6px; border-radius: 6px; overflow: hidden; background: var(--line2); }
.gl-reach__bar i { position: absolute; inset: 0; background: linear-gradient(0deg, var(--accent), #ffb27a); transform-origin: 50% 0; transform: scaleY(0); }
.gl-reach ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.gl-reach li { font: 700 11px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); opacity: 0.55; transition: color 0.25s, opacity 0.25s, transform 0.25s var(--ease-out); }
.gl-reach li.is-on { color: var(--accent); opacity: 1; transform: translateX(4px); }
.gl[data-phase="storm"] .gl-reach li:first-child, .gl[data-phase="done"] .gl-reach li:first-child { color: var(--accent); opacity: 1; }

.gl-phone {
  --ph: clamp(420px, 56vh, 600px);
  position: relative;
  width: calc(var(--ph) / 2);
  height: var(--ph);
  padding: 11px;
  border-radius: 46px;
  background: #0b0f12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 60px 100px -40px rgba(0, 0, 0, 0.85), inset 0 0 0 2px #1d2428, 0 0 calc(var(--pull) * 60px) rgba(253, 95, 7, calc(var(--pull) * 0.5));
  transform-origin: 50% 0;
}
.gl-phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background:
    radial-gradient(80% 50% at 50% 100%, rgba(253, 95, 7, 0.28) 0%, transparent 70%),
    linear-gradient(180deg, #13222a 0%, #0b1418 60%, #0a0f12 100%);
  color: #fff;
  font-family: var(--font-body);
  text-align: left;
}
.gl-phone__screen p { margin: 0; }
.gl-phone__status { position: absolute; left: 22px; right: 20px; top: 14px; display: flex; justify-content: space-between; font: 600 12px/1 var(--font-body); color: rgba(255, 255, 255, 0.85); }
.gl-phone__status span { letter-spacing: 0.04em; font-size: 10px; }

.gl-lock { position: absolute; left: 0; right: 0; top: 23%; display: grid; justify-items: center; text-align: center; transition: transform 0.6s var(--ease-out); }
.gl-lock__date { font: 600 13px/1 var(--font-body); color: rgba(255, 255, 255, 0.75); }
.gl-lock__time { margin-top: 4px !important; font: 400 clamp(58px, 9vh, 82px)/1 var(--font-display); letter-spacing: 0.02em; }
.gl-lock__none { margin-top: clamp(60px, 11vh, 110px) !important; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font: 600 12.5px/1 var(--font-body); color: rgba(255, 255, 255, 0.6); transition: opacity 0.4s, transform 0.4s; }
.gl-lock__none.is-gone { opacity: 0; transform: scale(0.9); }
.gl[data-phase="storm"] .gl-lock, .gl[data-phase="done"] .gl-lock { transform: translateY(-10%) scale(0.86); }

.gl-band { display: none; }   /* the elastic string was retired: the track below shows the pull */

/* the track: an orange dotted rail flowing down from the knob to the "Release to go live" line */
.gl-track {
  position: absolute; z-index: 1; left: 50%; top: 66px; width: 4px; height: var(--gl-max, 260px); translate: -50% 0;
  border-radius: 2px;
  background: repeating-linear-gradient(to bottom, rgba(253, 95, 7, 0.55) 0 4px, transparent 4px 11px);
  animation: gl-flow 0.9s linear infinite;
  transition: opacity 0.3s;
}
@keyframes gl-flow { to { background-position: 0 11px; } }
.gl-track__fill {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, #ffb27a, var(--accent));
  box-shadow: 0 0 12px rgba(253, 95, 7, 0.8);
  transform-origin: 50% 0; transform: scaleY(var(--pull, 0));
}
.gl-track__goal {
  position: absolute; left: 50%; top: calc(var(--gl-max, 260px) * var(--gl-goal, 0.55) + 26px); translate: -50% 0;
  display: grid; justify-items: center; gap: 7px; white-space: nowrap;
}
.gl-track__goal b { width: 64px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.28); transition: background 0.2s, box-shadow 0.2s, width 0.3s var(--ease-out); }
.gl-track__goal em {
  font: 700 9.5px/1 var(--font-body); font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6);
  padding: 5px 9px; border-radius: 99px; background: rgba(11, 14, 16, 0.6); transition: color 0.2s, background 0.2s;
}
.gl.is-armed .gl-track__goal b { width: 90px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.gl.is-armed .gl-track__goal em { color: #fff; background: var(--accent); }
/* idle: the clock sits low so the top of the screen is a clear drag zone; going live brings it back up */
.gl-lock { z-index: 2; top: 62%; transition: top 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.gl-lock .gl-lock__none { margin-top: 14px !important; }
.gl[data-phase="storm"] .gl-lock, .gl[data-phase="done"] .gl-lock { top: 23%; }
.gl-handle span { white-space: nowrap; }
.gl[data-phase="storm"] .gl-track, .gl[data-phase="done"] .gl-track { opacity: 0; }

/* the knob: dark glass, orange ring + arrow, a soft ping so it reads as "grab me" */
.gl-handle {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 30px;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 4px 14px 10px;
  transform: translate(-50%, 0);
  touch-action: none;
  cursor: grab;
}
.gl-knob {
  position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2b3236, #12171a 70%);
  box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 6px rgba(253, 95, 7, 0.14), 0 10px 26px -6px rgba(253, 95, 7, 0.75);
  color: var(--accent);
  transition: transform 0.25s var(--ease-out), background 0.25s;
}
.gl-knob::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent);
  animation: gl-ping 1.8s var(--ease-out) infinite;
}
@keyframes gl-ping { from { transform: scale(0.85); opacity: 0.8; } to { transform: scale(1.45); opacity: 0; } }
.gl-knob svg { animation: gl-arrow 1.6s var(--ease-io) infinite; }
@keyframes gl-arrow { 50% { transform: translateY(3px); } }
.gl-handle span {
  padding: 5px 10px; border-radius: 99px; background: rgba(11, 14, 16, 0.65);
  font: 700 10.5px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
}
.gl-handle:hover .gl-knob { transform: scale(1.06); }
.gl-handle:active { cursor: grabbing; }
.gl-handle:active .gl-knob, .gl[data-phase="pull"] .gl-knob { background: var(--accent); color: #fff; }
.gl[data-phase="pull"] .gl-knob::after { animation: none; opacity: 0; }
.gl.is-armed .gl-knob { transform: scale(1.12); box-shadow: inset 0 0 0 2px #fff, 0 0 0 8px rgba(253, 95, 7, 0.3), 0 0 34px rgba(253, 95, 7, 0.9); }
.gl-handle:focus-visible .gl-knob { outline: 2px solid #fff; outline-offset: 5px; }
.gl[data-phase="pull"] .gl-handle span { opacity: 0; }
.gl[data-phase="storm"] .gl-handle, .gl[data-phase="done"] .gl-handle { opacity: 0; pointer-events: none; transition: opacity 0.3s 0.25s; }
@media (prefers-reduced-motion: reduce) { .gl-track, .gl-knob::after, .gl-knob svg { animation: none; } }

.gl-notes { position: absolute; z-index: 2; left: 10px; right: 10px; top: 36%; margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; transition: opacity 0.6s, transform 0.8s var(--ease-io); }
.gl-notes.is-clear { opacity: 0; transform: translateY(-60px); }
.gl-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font: 500 11.5px/1.3 var(--font-body);
  color: rgba(255, 255, 255, 0.92);
  animation: gl-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.gl-note i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font: 800 13px/1 var(--font-body); font-style: normal; color: #fff; }
.gl-note span { display: grid; gap: 2px; min-width: 0; }
.gl-note b { display: flex; justify-content: space-between; font: 700 11px/1.2 var(--font-body); }
.gl-note em { font: 500 10px/1.2 var(--font-body); font-style: normal; opacity: 0.6; }
@keyframes gl-in { from { opacity: 0; transform: translateY(-24px) scale(0.94); } }

.gl-final {
  position: absolute;
  z-index: 3;
  left: 10px;
  right: 10px;
  top: 42%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 2px var(--accent), 0 20px 50px -10px rgba(253, 95, 7, 0.55);
  font: 500 13px/1.35 var(--font-body);
  color: #15191c;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-30px) scale(0.95);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), visibility 0.9s;
}
.gl-final__ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); font: 400 19px/1 var(--font-display); font-style: normal; color: #fff; }
.gl-final span { display: grid; gap: 3px; }
.gl-final b { display: flex; justify-content: space-between; font: 700 13px/1.2 var(--font-body); }
.gl-final em { font: 500 11px/1.2 var(--font-body); font-style: normal; color: #66727a; }
.gl[data-phase="done"] .gl-final { opacity: 1; visibility: visible; transform: none; }
.gl-final:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.gl-phone.is-buzz { animation: gl-buzz 0.36s linear; }
@keyframes gl-buzz { 0%, 100% { translate: 0 0; } 20% { translate: -4px 0; } 40% { translate: 4px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }

.gl-count { display: grid; gap: 22px; justify-self: start; text-align: left; opacity: 0; transform: translateX(-10px); transition: opacity 0.5s, transform 0.6s var(--ease-out); }
.gl-count p { margin: 0; display: grid; gap: 6px; }
.gl-count em { font: 600 11px/1 var(--font-body); font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.gl-count b { font: 400 clamp(2.4rem, 4vw, 3.6rem)/0.9 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.gl-count p:last-child b { color: var(--accent); }
.gl[data-phase="storm"] .gl-count, .gl[data-phase="done"] .gl-count { opacity: 1; transform: none; }

/* ---- end ---- */
.gl__end { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; margin-top: clamp(22px, 4vh, 34px); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.6s var(--ease-out) 0.6s, transform 0.7s var(--ease-out) 0.6s, visibility 0.6s 0.6s; }
.gl[data-phase="done"] .gl__end { opacity: 1; visibility: visible; transform: none; }
.gl__cta { height: 58px; padding: 0 32px; font-size: 16px; }
.gl__again { font: 600 14px/1 var(--font-body); color: var(--muted); transition: color 0.3s; }
@media (hover: hover) and (pointer: fine) { .gl__again:hover { color: var(--text); } }
.gl__key { margin-top: 14px; padding: 8px 14px; border-radius: 999px; font: 600 12.5px/1 var(--font-body); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; transition: color 0.3s; }
.gl__key:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; color: var(--text); }
@media (hover: hover) and (pointer: fine) { .gl__key:hover { color: var(--text); } }
.gl:not([data-phase="idle"]) .gl__key { visibility: hidden; }
.gl__note { margin: 14px 0 0; font: 500 11.5px/1.4 var(--font-body); color: var(--muted); }

@media (max-width: 767px) {
  .gl__stage { grid-template-columns: auto; gap: 18px; }
  .gl-reach { display: none; }
  .gl-phone { --ph: min(560px, 70svh, 180vw); }
  .gl-count { grid-auto-flow: column; gap: 34px; justify-self: center; text-align: center; transform: none; }
  .gl-count b { font-size: 2.2rem; }
  .gl__end .cta { width: 100%; }
}
