/* Flickz landing — "Premiere Night"
   Brand tokens from mobile/src/components/flickz/constants.ts */
:root {
  --bg: #0b0f1a;
  --card: #151a2a;
  --card-light: #1c2236;
  --accent: #5be5a9;
  --accent-dim: rgba(91, 229, 169, 0.14);
  --text: #ffffff;
  --text-2: #9ca3af;
  --text-3: #6b7280;
  --glass: rgba(21, 26, 42, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 8vw, 4.4rem); font-weight: 800; max-width: 100%; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 5.5vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
h1 em { font-style: normal; color: var(--accent); }

.lede { color: var(--text-2); font-size: clamp(1.05rem, 2.5vw, 1.25rem); max-width: 34em; }
.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #06281a;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 24px -6px rgba(91, 229, 169, 0.45);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 32px -6px rgba(91, 229, 169, 0.6); }
.btn-small { padding: 9px 18px; font-size: 0.92rem; }

.store-badge { display: inline-block; transition: transform 0.15s ease, filter 0.15s ease; }
.store-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 24px rgba(91, 229, 169, 0.28)); }
.store-badge img { display: block; height: 50px; width: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(91, 229, 169, 0.35);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 7px 14px;
  margin: 0 0 20px;
}
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91, 229, 169, 0.55); }
  55% { box-shadow: 0 0 0 7px rgba(91, 229, 169, 0); }
}

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 15, 26, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--glass-border);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img { display: block; height: 26px; width: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 96px 20px 40px;
}
.wall {
  position: absolute;
  inset: -18%;
  display: flex;
  gap: clamp(10px, 1.6vw, 18px);
  justify-content: center;
  transform: rotate(-8deg);
  z-index: 0;
}
.wall-col {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vw, 18px);
  width: clamp(120px, 15vw, 190px);
  flex: none;
  animation: wall-up 70s linear infinite;
}
.wall-col:nth-child(2n) { animation-name: wall-down; animation-duration: 85s; }
.wall-col:nth-child(3) { animation-duration: 95s; }
.wall-col:nth-child(5) { animation-duration: 78s; }
.wall-col img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0.85;
}
@keyframes wall-up { to { transform: translateY(-50%); } }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 65% at 30% 45%, rgba(11, 15, 26, 0.45) 0%, rgba(11, 15, 26, 0.88) 70%),
    linear-gradient(180deg, rgba(11, 15, 26, 0.82) 0%, rgba(11, 15, 26, 0.55) 40%, var(--bg) 98%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero-inner > * { min-width: 0; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.cta-note { color: var(--text-3); font-size: 0.85rem; }

.hero-phone { display: flex; justify-content: center; }

/* ---------- Phone frame ---------- */
.phone {
  position: relative;
  width: min(300px, 76vw);
  padding: 11px;
  border-radius: 52px;
  background: linear-gradient(160deg, #232c44 0%, #0d1220 60%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.09),
    0 40px 90px -25px rgba(0, 0, 0, 0.85),
    0 0 140px -40px rgba(91, 229, 169, 0.35);
  animation: float 7s ease-in-out infinite;
}
.phone img {
  display: block;
  width: 100%;
  border-radius: 42px;
  aspect-ratio: 720 / 1561;
}
.phone-notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 22px;
  background: #05070d;
  border-radius: 999px;
  z-index: 2;
}
.phone-sm { width: min(280px, 74vw); animation: none; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.scroll-hint {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  display: flex;
  justify-content: center;
}
.scroll-hint span {
  width: 4px; height: 9px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--accent);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Sections ---------- */
section { padding: clamp(64px, 10vw, 120px) 20px; }

.how { text-align: center; max-width: 1120px; margin: 0 auto; }
.how h2 { margin-bottom: 40px; }
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  text-align: left;
}
.how-card { padding: 26px; }
.how-card p { color: var(--text-2); margin: 0; font-size: 0.98rem; }
.how-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.how-icon svg { width: 24px; height: 24px; }

.feature { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.feature-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.feature-copy p { color: var(--text-2); font-size: 1.05rem; }
.feature-copy strong { color: var(--text); }
.feature-phone { display: flex; justify-content: center; }

/* ---------- Premium ---------- */
.premium { max-width: 720px; margin: 0 auto; }
.premium-card {
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  border-color: rgba(91, 229, 169, 0.25);
  box-shadow: 0 0 100px -40px rgba(91, 229, 169, 0.4);
}
.premium-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: grid;
  gap: 10px;
  justify-content: center;
  color: var(--text-2);
}
.premium-list li { display: flex; align-items: center; gap: 10px; text-align: left; }
.premium-list li::before {
  content: '';
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235be5a9' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.premium-price { color: var(--text-2); margin: 0; }
.premium-price strong { color: var(--text); }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(91, 229, 169, 0.14) 0%, transparent 70%),
    var(--bg);
}
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.final-icon { border-radius: 22px; box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.8); margin-bottom: 12px; }
.final-cta .store-badge { margin-top: 20px; }
.final-cta .store-badge img { height: 55px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--glass-border);
  color: var(--text-3);
  font-size: 0.88rem;
  text-align: center;
  padding: 28px 20px calc(28px + 74px); /* room for sticky bar on mobile */
}
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--accent); }

/* ---------- Sticky mobile bar ---------- */
.sticky-bar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(21, 26, 42, 0.85);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.7);
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.35s ease;
}
.sticky-bar.show { transform: translateY(0); opacity: 1; }
.sticky-bar img { border-radius: 10px; }
.sticky-meta { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.sticky-meta strong { font-size: 0.95rem; }
.sticky-meta span { color: var(--text-3); font-size: 0.78rem; }

/* ---------- Reveal on scroll (JS adds .in) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Desktop ---------- */
@media (min-width: 820px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 24px; }
  .hero-copy { text-align: left; align-items: flex-start; }
  .cta-row { flex-direction: row; align-items: center; gap: 18px; }
  .how-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-inner { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature.flip .feature-copy { order: 2; }
  .feature.flip .feature-phone { order: 1; }
  .premium-list { grid-template-columns: repeat(2, auto); gap: 12px 32px; }
  .sticky-bar { display: none; }
  .site-footer { padding-bottom: 28px; }
}

/* Scroll-driven parallax on feature phones (progressive enhancement) */
@supports (animation-timeline: view()) {
  @media (min-width: 820px) and (prefers-reduced-motion: no-preference) {
    .feature-phone .phone {
      animation: feature-parallax linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes feature-parallax {
      from { transform: translateY(46px); }
      to { transform: translateY(-46px); }
    }
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall-col, .phone, .pill-dot, .scroll-hint span { animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .sticky-bar { transition: none; }
}

/* ===== Notify-me email capture (pre-launch only; remove with the form on launch day) ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.notify-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  position: relative;
}
.notify-form input[type='email'] {
  flex: 1 1 200px;
  max-width: 300px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text-1, #fff);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.notify-form input[type='email']::placeholder { color: var(--text-3, #6b7280); }
.notify-form input[type='email']:focus {
  border-color: var(--accent);
  background: rgba(91, 229, 169, 0.08);
}
.notify-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.notify-form .notify-msg {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--accent);
  min-height: 1.2em;
}
.notify-form .notify-msg.error { color: #f87171; }
.notify-form.done input[type='email'],
.notify-form.done button { display: none; }
.notify-note {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-3, #6b7280);
}
.final-cta .notify-form { justify-content: center; }
.final-cta .notify-note { margin-left: auto; margin-right: auto; }
