/* ============================================================
   HAIRMATE — landing page styles
   Extracted from an inline <style> block so the page can run
   under a CSP without 'unsafe-inline' in style-src.
   Loaded AFTER hairmate.css — it extends the design system.
   ============================================================ */

/* ---- cinematic hero: image → video → join ---- */
.cinema { height: 300vh; position: relative; }
.cinema-stage {
  height: 100vh; width: 100%;
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  background: #000;
}
.cinema-layer { position: absolute; inset: 0; }
.cinema-hero, .cinema-video {
  width: 100%; height: 100%; object-fit: cover;
  will-change: transform, opacity;
}
/* MUST stay explicit. The scroll timeline animates this filter to
   brightness(0.5); GSAP cannot interpolate from the default `none`, so it
   substitutes a zero value and paints brightness(0) — a pure black frame — at
   scroll progress 0. Declaring the start state keeps the hero visible.
   js/landing.js also passes it explicitly via fromTo(); belt and braces,
   because the failure mode is silent and total. */
.cinema-hero { filter: brightness(1); }
.cinema-video { opacity: 0; }
.cinema-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background:
    radial-gradient(120% 90% at 50% 35%, transparent 45%, rgba(5,5,6,0.55) 100%),
    linear-gradient(to top, rgba(5,5,6,0.92), transparent 50%);
}

.cinema-hero-copy {
  position: relative; z-index: 6; width: 100%;
  text-align: center; padding: 0 24px;
  will-change: transform, opacity;
}
.hero-kicker {
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 0.4em; font-size: 12px; font-weight: 600; color: var(--gold);
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 8.5vw, 124px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hero-sub {
  margin-top: 28px;
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 0.26em; font-size: clamp(12px, 1.1vw, 14px); color: var(--text-mid);
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.3em;
  font-size: 10px; color: var(--text-dim);
}
.scroll-hint .bar { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-hint .bar::after { content:''; position:absolute; top:-50%; left:0; width:100%; height:50%;
  background: var(--gold); animation: scrollDrop 1.8s var(--ease) infinite; }
@keyframes scrollDrop { 0%{ transform: translateY(-100%);} 60%,100%{ transform: translateY(300%);} }

/* ---- join overlay (revealed at video end) ---- */
.cinema-join {
  position: absolute; inset: 0; z-index: 8;
  display: grid; place-items: center;
  text-align: center; padding: 0 24px;
  visibility: hidden;
}
.cinema-join .join-head {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 100px); line-height: 0.9;
  text-transform: uppercase; margin: 0 0 32px;
}

/* ============ MOBILE APP ============ */
.app-sec { padding: clamp(90px, 14vh, 170px) 0; }
.app-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.app-title {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(40px, 6vw, 92px); line-height: 0.88; margin: 16px 0 22px;
}
.app-lede { margin: 0 auto; }

.demo-stage {
  position: relative; max-width: 1160px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 50px 120px -42px rgba(0,0,0,0.9);
}
.demo-bar {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02);
}
.demo-bar .dots { display: flex; gap: 7px; }
.demo-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.demo-bar .dots i:nth-child(1) { background: #e8632a; }
.demo-bar .dots i:nth-child(2) { background: var(--gold); }
.demo-bar .dots i:nth-child(3) { background: #5ad17a; }
.demo-bar .label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; color: var(--text-dim); }
.demo-bar .live { margin-left: auto; display: flex; align-items: center; gap: 8px; font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 11px; color: var(--text-mid); }
.demo-bar .live .ping { width: 8px; height: 8px; border-radius: 50%; background: #5ad17a; box-shadow: 0 0 10px #5ad17a; animation: pingPulse 1.8s ease-in-out infinite; }
@keyframes pingPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.demo-frame { position: relative; height: min(860px, 84vh); background: #050506; }
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #050506; }
.demo-launch {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; cursor: pointer;
  text-align: center; padding: 30px;
  background: radial-gradient(60% 60% at 50% 45%, rgba(10,10,14,0.5), rgba(5,5,6,0.9));
  transition: opacity .5s;
}
.demo-launch.gone { opacity: 0; pointer-events: none; }
/* keyboard focus ring — the launcher is a real button now */
.demo-launch:focus-visible { outline: 2px solid var(--gold); outline-offset: -6px; }
.demo-launch .play {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(217,164,65,0.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color .35s, transform .35s var(--ease);
}
.demo-launch:hover .play,
.demo-launch:focus-visible .play { border-color: var(--gold); transform: scale(1.05); }
.demo-launch .play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--gold); }
.demo-launch .play .spin { display: none; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15); border-top-color: var(--gold); animation: spinLoad .8s linear infinite; }
.demo-launch.loading .play svg { display: none; }
.demo-launch.loading .play .spin { display: block; }
@keyframes spinLoad { to { transform: rotate(360deg); } }
.demo-launch .lt { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.24em; font-size: 14px; color: var(--text); }
.demo-launch .ls { font-size: 13px; color: var(--text-dim); margin-top: 9px; }
@media (max-width: 700px) { .demo-frame { height: 78vh; } }

/* ============ FOOTER (minimal) ============ */
.footer-min { border-top: 1px solid var(--line); padding: 70px 0 44px; }
.footer-min .wrap { display: grid; gap: 48px; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-min .f-brand { font-family: var(--font-display); font-size: 34px; text-transform: uppercase; letter-spacing: 0.02em; }
.footer-min .f-brand .dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--gold); margin-right:8px; vertical-align: middle; }
.footer-min .f-brand + p { color: var(--text-dim); margin-top: 12px; max-width: 30ch; font-size: 15px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.2em; font-size: 11px; color: var(--gold); margin-bottom: 14px; font-weight: 600; }
.footer-col a, .footer-col span { display: block; color: var(--text-mid); padding: 4px 0; font-size: 15px; transition: color .3s; }
.footer-col a:hover { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  border-top: 1px solid var(--line); padding-top: 26px; color: var(--text-dim); font-size: 13px; letter-spacing: 0.08em; }
