/* [TEST 2026-10-06 night] owner: "vytunit test web efektama, ať je ostřejší, živější, hezčí, hezčí menu nebo buttons".
   Test site only (uwb-test-film2), injected by js/phone_film.js after css/test_motion.css. Nothing here touches the live site.
   - Inter Tight (crisper than the system stack), liquid-silver sheen on the wordmark + price (the print is Liquid Silver now)
   - legibility scrims top/bottom, a soft vignette and a fine animated film grain over the film (cheap: opacity + transform only)
   - glass buttons with a silver hairline border, auto light sweep on the CTA (phones have no hover), magnetic hover on desktop
   - a real MENU (full-screen glass overlay, staggered items), the wordmark moves top-left with the drop name under it
   - mobile: the Pause / Inspect row is one compact line under the header (it covered the hood), the scroll hint sits above the price
   - a 1 px silver progress line for the film; a cursor spotlight on desktop
   Everything animated is off under prefers-reduced-motion. */
:root { --font: "Inter Tight", -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --tp-silver: linear-gradient(100deg, #dfe3e5 0%, #ffffff 20%, #c9ced1 38%, #f6f7f8 55%, #d0d5d8 72%, #ffffff 88%, #dadee1 100%);
  --tp-glass: rgba(12, 15, 17, 0.46); --tp-glass-hi: rgba(12, 15, 17, 0.7);
  --tp-hair: linear-gradient(120deg, rgba(255,255,255,.78), rgba(170,176,180,.28) 38%, rgba(255,255,255,.9) 58%, rgba(150,156,160,.3) 80%, rgba(255,255,255,.6));
  --tp-ease: cubic-bezier(.2, .7, .2, 1); }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* ---------- film look: a touch more punch, grain, vignette, scrims ---------- */
.phone-film { filter: contrast(1.05) brightness(.985); }
.tp-layer { position: absolute; inset: 0; pointer-events: none; }
.tp-vignette { z-index: 2; background: radial-gradient(120% 90% at 50% 46%, transparent 55%, rgba(4, 6, 7, .38) 100%); }
.tp-scrim-top { z-index: 2; bottom: auto; height: 170px; background: linear-gradient(to bottom, rgba(6, 8, 9, .62), rgba(6, 8, 9, .24) 55%, transparent); }
.tp-scrim-bottom { z-index: 2; top: auto; height: 300px; background: linear-gradient(to top, rgba(6, 8, 9, .62), rgba(6, 8, 9, .22) 55%, transparent); }
.tp-grain { z-index: 3; position: fixed; inset: 0; opacity: .075;   /* 6 Oct: screen-sized, see model3d.html */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.35 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: tpGrain .9s steps(6) infinite; }
@keyframes tpGrain { 0% { background-position: 0 0; } 17% { background-position: -53px 37px; } 33% { background-position: 71px -109px; } 50% { background-position: -127px -29px; } 67% { background-position: 97px 83px; } 83% { background-position: -31px 131px; } 100% { background-position: 0 0; } }
.tp-spot { z-index: 3; position: fixed; inset: 0; opacity: 0; transition: opacity .8s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .075), transparent 65%); }
.tp-spot.on { opacity: 1; }

/* ---------- typography + header ---------- */
.hud-eyebrow, .hud-wordmark, .hud-price-label, .hud-disclosure { letter-spacing: .22em; font-weight: 500; }
.tp-silver { background: var(--tp-silver); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; text-shadow: none; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .6)) drop-shadow(0 0 10px rgba(0, 0, 0, .35));
  animation: tpSheen 11s linear infinite; }
@keyframes tpSheen { from { background-position: 0% 50%; } to { background-position: 260% 50%; } }
.field-hud .hud-wordmark.tp-logo { position: absolute; top: 22px; left: 22px; right: auto; font-size: 12px; font-weight: 600; letter-spacing: .34em; }
.field-hud .hud-eyebrow.tp-sub { position: absolute; top: 42px; left: 22px; font-size: 9.5px; letter-spacing: .26em; opacity: .78; }
@media (min-width: 1024px) {
  .field-hud .hud-wordmark.tp-logo { top: 38px; left: 48px; font-size: 13px; }
  .field-hud .hud-eyebrow.tp-sub { top: 60px; left: 48px; font-size: 10px; }
}
.hud-price-value { font-weight: 600; letter-spacing: -.01em; font-size: 26px; }
@media (min-width: 1024px) { .hud-price-value { font-size: 30px; } }

/* ---------- glass controls ---------- */
/* glass fill + a liquid-silver hairline drawn by ::before (masked ring, so the glass stays see-through) */
.ctl-btn, .load-chip, .hud-cta, .tp-menu-btn {
  position: relative; border: 1px solid transparent !important; border-radius: 2px; background: var(--tp-glass) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15);
  font-family: var(--font); font-weight: 600; letter-spacing: .18em; color: #f4f5f3;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .07); }
.ctl-btn::before, .load-chip::before, .hud-cta::before, .tp-menu-btn::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--tp-hair);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ctl-btn:hover, .hud-cta:hover, .tp-menu-btn:hover { background: var(--tp-glass-hi) !important; }
.ctl-btn-primary { background: rgba(244, 245, 243, .94) !important; color: #121618; }
.hud-cta { position: absolute; overflow: hidden; isolation: isolate; gap: 14px; letter-spacing: .2em; }
.hud-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.10) 44%, rgba(255,255,255,.24) 50%, rgba(255,255,255,.10) 56%, transparent 100%);
  transform: translateX(-130%); animation: tpSweep 6.5s var(--tp-ease) 2.2s infinite; }
@keyframes tpSweep { 0% { transform: translateX(-130%); } 22%, 100% { transform: translateX(130%); } }
.hud-cta .hud-cta-arrow { display: inline-block; transition: transform .5s var(--tp-ease); animation: tpNudge 6.5s var(--tp-ease) 2.2s infinite; }
.hud-cta:hover .hud-cta-arrow { transform: translateX(5px); animation: none; }
@keyframes tpNudge { 0%, 14%, 100% { transform: translateX(0); } 7% { transform: translateX(5px); } }
.tp-mag { transition: transform .35s var(--tp-ease), background .45s var(--tp-ease); }

/* mobile: one compact control row under the header, scroll hint above the price */
@media (max-width: 1023px) {
  .playback-controls { top: 70px; flex-wrap: nowrap; gap: 6px; }
  .ctl-btn, .load-chip { min-height: 38px; padding: 0 14px; font-size: 10.5px; letter-spacing: .16em; white-space: nowrap; }
  .scroll-hint { bottom: 206px !important; }
  .hud-cta { height: 50px; padding: 0 22px; }
}
.scroll-hint { font-family: var(--font); font-weight: 500; letter-spacing: .3em; font-size: 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint::after { content: ""; width: 1px; height: 26px; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.85)); transform-origin: top;
  animation: tpLine 2.2s var(--tp-ease) infinite; }
@keyframes tpLine { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* film progress hairline */
.tp-progress { position: absolute; left: 0; bottom: 0; z-index: 6; height: 1px; width: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(255,255,255,.15), rgba(255,255,255,.85)); pointer-events: none; transition: opacity .8s ease; }
.tp-progress.done { opacity: 0; }

/* ---------- MENU ---------- */
.tp-menu-btn { position: absolute; top: 16px; right: 18px; z-index: 8; display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px;
  font-size: 10.5px; text-transform: uppercase; cursor: pointer; pointer-events: auto; }
@media (min-width: 1024px) { .tp-menu-btn { top: 30px; right: 44px; height: 44px; padding: 0 18px; font-size: 11px; } }
.tp-burger { position: relative; width: 18px; height: 8px; display: inline-block; }
.tp-burger i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .5s var(--tp-ease), top .5s var(--tp-ease), width .5s var(--tp-ease); }
.tp-burger i:first-child { top: 0; } .tp-burger i:last-child { top: 7px; width: 70%; left: auto; }
.tp-menu-btn:hover .tp-burger i:last-child { width: 100%; }
html.tp-menu-open .tp-burger i:first-child { top: 4px; transform: rotate(45deg); }
html.tp-menu-open .tp-burger i:last-child { top: 4px; width: 100%; transform: rotate(-45deg); }
html.tp-menu-open { overflow: hidden; }
.tp-menu { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; color: #f4f5f3; font-family: var(--font);
  background: rgba(7, 9, 10, .74); -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--tp-ease), visibility 0s linear .6s; }
html.tp-menu-open .tp-menu { opacity: 1; visibility: visible; transition: opacity .6s var(--tp-ease), visibility 0s; }
.tp-menu::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.35 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.tp-menu-inner { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; padding: 96px 28px 40px; }
@media (min-width: 1024px) { .tp-menu-inner { padding: 120px 96px 64px; } }
.tp-menu-eyebrow { margin: 0 0 28px; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; opacity: .6; }
.tp-menu-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.12); }
.tp-menu-list li { border-bottom: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.tp-menu-list a { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; color: inherit; text-decoration: none;
  transform: translateY(105%); transition: transform .9s var(--tp-ease), opacity .4s ease; }
html.tp-menu-open .tp-menu-list a { transform: none; }
html.tp-menu-open .tp-menu-list li:nth-child(1) a { transition-delay: .08s; } html.tp-menu-open .tp-menu-list li:nth-child(2) a { transition-delay: .15s; }
html.tp-menu-open .tp-menu-list li:nth-child(3) a { transition-delay: .22s; } html.tp-menu-open .tp-menu-list li:nth-child(4) a { transition-delay: .29s; }
.tp-idx { font-size: 10px; letter-spacing: .2em; opacity: .5; font-variant-numeric: tabular-nums; min-width: 22px; }
.tp-lbl { font-size: clamp(34px, 10.5vw, 76px); font-weight: 300; letter-spacing: -.02em; line-height: 1; transition: letter-spacing .7s var(--tp-ease), opacity .4s ease; }
.tp-menu-list a:hover .tp-lbl, .tp-menu-list a:focus-visible .tp-lbl { letter-spacing: .01em; }
.tp-menu-list:hover a:not(:hover) .tp-lbl { opacity: .38; }
.tp-menu-list a:hover .tp-lbl { background: var(--tp-silver); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: tpSheen 5s linear infinite; }
.tp-arrow { margin-left: auto; font-size: 18px; opacity: 0; transform: translateX(-10px); transition: opacity .5s ease, transform .6s var(--tp-ease); }
.tp-menu-list a:hover .tp-arrow, .tp-menu-list a:focus-visible .tp-arrow { opacity: .8; transform: none; }
.tp-menu-foot { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; margin-top: 30px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; opacity: 0;
  transition: opacity .8s ease .35s; }
html.tp-menu-open .tp-menu-foot { opacity: .62; }
.tp-menu-foot .tp-silver { opacity: 1; }

/* ---------- entrance ---------- */
@keyframes tpIn { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.field-hud > .tp-logo { animation: tpIn 1.2s var(--tp-ease) .15s backwards, tpSheen 11s linear infinite; }
.field-hud > .tp-sub { animation: tpIn 1.2s var(--tp-ease) .35s backwards; }
.field-hud > .hud-price { animation: tpIn 1.2s var(--tp-ease) .55s backwards; }
.field-hud > .hud-cta { animation: tpIn 1.2s var(--tp-ease) .7s backwards; }
.field-hud > .hud-disclosure { animation: tpIn 1.2s var(--tp-ease) .85s backwards; }
.tp-menu-btn { animation: tpIn 1.2s var(--tp-ease) .25s backwards; }

@media (prefers-reduced-motion: reduce) {
  .tp-grain, .tp-silver, .hud-cta::after, .hud-cta .hud-cta-arrow, .scroll-hint::after, .tp-menu-list a, .tp-lbl,
  .field-hud > *, .tp-menu-btn, .tp-menu-list a:hover .tp-lbl { animation: none !important; transition: none !important; }
  .tp-menu-list a { transform: none; }
  .tp-spot { display: none; }
}

/* ---- [LIVE2 2026-10-06] conversion pass (Fable review): dark form section, offer + trust copy, sticky Early Access on phones,
   decluttered phone controls, real footer. Same black / silver language as the film. ---- */
:root { --arrival-bg: #0a0c0e; --arrival-text: #eceef0; --arrival-text-dim: #9aa3a8; --arrival-line: rgba(255, 255, 255, 0.28); }
.arrival-panel { background: radial-gradient(120% 70% at 50% 0%, #15191c 0%, #0a0c0e 55%, #07080a 100%); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.signup-price { background: linear-gradient(100deg, #dfe3e5 0%, #ffffff 30%, #b9bfc3 62%, #f2f4f5 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tp-offer { font-size: 16px; line-height: 1.55; color: #d9dde0; margin: -14px 0 6px; max-width: 440px; }
.tp-trust { font-size: 13px; letter-spacing: 0.04em; color: #9aa3a8; margin: 0 0 26px; }
.field input[type="email"] { background: #f4f5f6; color: #0d1012; border: 1px solid rgba(255, 255, 255, 0.35); }
.field input:focus { border-color: #ffffff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55); }
.checkbox-field input[type="checkbox"] { accent-color: #e9ecef; }
.btn-primary { background: linear-gradient(100deg, #d9dee1 0%, #ffffff 35%, #c3c9cd 68%, #f3f5f6 100%); color: #0b0d0f; }
.btn-primary:hover { opacity: 1; filter: brightness(1.06); }
.footer { background: #07080a; color: #8a9398; border-top: 1px solid rgba(255, 255, 255, 0.05); line-height: 1.9; }
.footer a { color: #c9ced1; text-decoration: none; border-bottom: 1px solid rgba(201, 206, 209, 0.35); }
.footer .tp-foot-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
/* sticky Early Access pill (phones), shown once the film has scrolled away and until the form is on screen */
.tp-ea-pill { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 13px/1 "Inter Tight", "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: #0b0d0f;
  background: linear-gradient(100deg, #d9dee1 0%, #ffffff 35%, #c3c9cd 68%, #f3f5f6 100%); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.3s; opacity: 0; }
.tp-ea-pill.on { transform: translate(-50%, 0); opacity: 1; }
@media (min-width: 821px) { .tp-ea-pill { display: none; } }
/* phones: one clean row - Inspect 3D lives in the MENU, no "scroll to move" hint */
@media (max-width: 820px) {
  #inspectBtn { display: none !important; }
  .scroll-hint { display: none !important; }
  #pauseBtn { padding: 8px 14px; font-size: 10.5px; opacity: 0.8; }
}

/* [LIVE2] phones: once the film has scrolled away, the fixed MENU fades out (it sat on top of the email field / form copy) */
@media (max-width: 820px) { .tp-menu-btn { transition: opacity .35s ease, translate .2s ease; } html.tp-past-stage:not(.tp-menu-open) .tp-menu-btn { opacity: 0; pointer-events: none; } }

/* [LIVE2] socials (owner 6 Oct: IG + TikTok @uwbecome) */
.tp-menu-social { display: flex; gap: 26px; margin: 26px 0 0; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; opacity: 0; transition: opacity .6s ease .35s; }
html.tp-menu-open .tp-menu-social { opacity: .85; }
.tp-menu-social a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 3px; }
.tp-menu-social a:hover { border-color: #fff; }

/* [LIVE2 phone perf, 6 Oct 23:30] owner: "na mobilu se mi ten motion seka, na pc je to v pohode". iOS Safari plays a <video> smoothly only
   while nothing forces the page to re-composite / repaint over it every frame: a CSS filter on the video itself, backdrop blurs over it,
   the grain (an SVG-noise background whose position animates = full-screen repaints) and the silver text sheen (background-position +
   drop-shadow) all did. Touch devices: no video filter, no backdrop blur (darker solid glass instead), still grain, static silver. */
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  .phone-film { filter: none !important; }
  .tp-grain { animation: none !important; opacity: .05; }
  .tp-silver, .field-hud > .tp-logo, .hud-cta::after { animation: none !important; }
  .ctl-btn, .load-chip, .hud-cta, .tp-menu-btn, .ctl-btn-primary { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .ctl-btn, .load-chip, .hud-cta, .tp-menu-btn { background: rgba(12, 15, 17, .66) !important; }
  .ctl-btn-primary { background: rgba(244, 245, 243, .94) !important; }
  .tp-menu { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(7, 9, 10, .95); }
}
