/* ===== DEMO FILM BRAND (BRAND-GUIDE-demo.md, r52), 10-25 =====
   The landing now matches the batch demo film: Figtree 700 lines with one 800 lavender key word in the box,
   deep violet-black ground, violet only as light, liquid-glass buttons, reflections on hero objects only.
   Every glow fades to transparent inside its own element (radial closest-side): no big blurred box-shadows,
   no blurred clipped shapes, because those draw hard straight edges. */
:root {
  --ground: #060509; --ground-lift: #13121a; --gunmetal: #1b1a22;
  --ink: #ECEAF4; --ink-2: #d6d2e6; --mid: #a29cbd; --dim: #6b6585;
  --violet: #8b6cff; --mint: #8464ff; --mint-hi: #d4ccff; --lav: #d4ccff; --ink-light: #f4f1ff;
  --e-io: cubic-bezier(.65,0,.35,1); --e-out: cubic-bezier(.16,1,.3,1); --e-in: cubic-bezier(.55,0,.75,.2);
  --mono: 'SF Mono', ui-monospace, Menlo, monospace;
  --glass: linear-gradient(180deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.02) 48%, rgba(139,108,255,.07) 100%);
  --glass-sh: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.07), inset 0 -16px 30px -18px rgba(139,108,255,.35);
}
body { background: var(--ground) !important; }

/* the film's background: radial ground, three drifting blobs, a swaying beam, lavender dust. One fixed layer. */
.bgfx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    linear-gradient(115deg, transparent 30%, rgba(190,186,214,.035) 46%, rgba(255,255,255,.05) 50%, rgba(190,186,214,.035) 54%, transparent 70%),
    radial-gradient(110% 80% at 50% 45%, var(--ground-lift), var(--ground) 72%); }
/* darker, greyer ground (Patrik 10-25): violet-grey and gunmetal blobs with one faint metallic sheen, so what sits on it stands out */
.bgfx .blob { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform;
  background: radial-gradient(closest-side, rgba(118,104,170,.16), rgba(118,104,170,.05) 55%, transparent 100%); }
.bgfx .b1 { left: -25vmax; top: -30vmax; animation: drift1 38s var(--e-io) infinite alternate; }
.bgfx .b2 { right: -30vmax; top: 10vh; background: radial-gradient(closest-side, rgba(52,50,64,.55), rgba(40,38,50,.2) 55%, transparent 100%); animation: drift2 46s var(--e-io) infinite alternate; }
.bgfx .b3 { left: 15vw; bottom: -45vmax; background: radial-gradient(closest-side, rgba(150,146,176,.09), rgba(150,146,176,.03) 55%, transparent 100%); animation: drift3 52s var(--e-io) infinite alternate; }
@keyframes drift1 { to { transform: translate(14vw, 10vh); } }
@keyframes drift2 { to { transform: translate(-12vw, 18vh); } }
@keyframes drift3 { to { transform: translate(-10vw, -12vh); } }
.bgfx .beam { position: absolute; left: 50%; top: -10vh; width: 600px; height: 120vh; margin-left: -300px; mix-blend-mode: screen; transform-origin: 50% 0;
  background: linear-gradient(90deg, transparent, rgba(139,108,255,.08) 30%, rgba(214,210,232,.07) 50%, rgba(139,108,255,.08) 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 55%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 55%, transparent);
  animation: sway 14s var(--e-io) infinite alternate; }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.bgfx .dust { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--lav); animation: twinkle var(--t, 6s) var(--e-io) infinite alternate; }
@keyframes twinkle { from { opacity: var(--o, .18); } to { opacity: calc(var(--o, .18) * .35); } }
@media (max-width: 760px) { .bgfx .beam { width: 360px; margin-left: -180px; } }
@media (prefers-reduced-motion: reduce) { .bgfx * { animation: none !important; } }
/* the old corner light is cut by the viewport edge: gone, the background layer lights the page now */
.hero-light { display: none; }
.nav::before { background: linear-gradient(180deg, rgba(6,5,9,.9) 0%, rgba(6,5,9,.7) 55%, rgba(6,5,9,0) 100%); }
.behind-ph::after { background: linear-gradient(180deg, transparent 55%, rgba(6,5,9,.92)); }

/* type: Figtree 700 lines, the key word 800 lavender in the box */
.disp { font-weight: 700; letter-spacing: -.035em; }
.hero h1 { background: none; -webkit-text-fill-color: currentColor; color: var(--ink); }
.dot { color: var(--ink); }
.hl, .kw { position: relative; display: inline-block; font-weight: 800; color: var(--lav); -webkit-text-fill-color: var(--lav);
  padding: 0 .12em; margin: 0 .02em; line-height: 1.008; border-radius: .08em;
  background: linear-gradient(180deg, rgba(132,100,255,.24), rgba(132,100,255,.12));
  box-shadow: inset 0 0 0 1px rgba(132,100,255,.24); }
.hl::after, .kw::after { content: ''; position: absolute; right: -.03em; top: 6%; bottom: 6%; width: .06em; min-width: 2px; border-radius: .03em;
  background: #8464ff; box-shadow: 0 0 .3em #8464ff; animation: caret 1.1s steps(1) infinite; }
/* the box draws in from the left with its word, then the caret starts */
.kw { clip-path: inset(-20% -20% -20% 0); }
.kw.wait { clip-path: inset(-20% 100% -20% 0); }
.kw.wait::after { opacity: 0; animation: none; }
.kw.draw { transition: clip-path .7s var(--e-out); }
.hero h1 .hl { animation: hlDraw .8s var(--e-out) .55s backwards; }
@keyframes hlDraw { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -20% -20% 0); } }
/* stats and counters: lavender 800, no sweep (the shine was Key Plugs) */
.kshine, .kc { animation: none !important; background: none !important; filter: none !important; color: var(--lav) !important; -webkit-text-fill-color: var(--lav) !important; font-weight: 800; }
.kc.hit { animation: kcBounce .55s cubic-bezier(.34,1.56,.64,1) !important; }

/* small labels in the brand face, never mono (Patrik 10-25: the mono line "looks generated by code") */
.micro, .fc-lab, .fc i { font-family: var(--disp) !important; font-weight: 600; letter-spacing: 0; color: rgba(226,220,255,.78); }
.micro { font-size: 14px; font-weight: 500; text-transform: none; }
.fc-lab { font-size: 13px; letter-spacing: .02em; }
.fc i { font-size: 11px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: rgba(226,220,255,.6); }

/* trust line: three real customers' faces (the same people as the quotes) in a glass pill, Figtree */
.trust-demo { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 6px 18px 6px 6px; border-radius: 999px;
  background: var(--glass); box-shadow: var(--glass-sh); font: 500 15px/1 var(--disp) !important; letter-spacing: -.01em; color: rgba(236,234,244,.82); }
.trust-demo .ic { display: none; }
.trust-demo .faces { display: inline-flex; }
.trust-demo .faces img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #14121c; }
.trust-demo .faces img + img { margin-left: -9px; }
.trust-demo b { font-weight: 700; color: var(--ink); }
.trust-demo .kc { font-weight: 800; }

/* reflections: Key Plugs technique, on hero objects only (never on headlines, cards or video) */
.rf { -webkit-box-reflect: below 2px linear-gradient(to bottom, transparent 8%, rgba(255,255,255,.12) 40%, rgba(255,255,255,.5) 100%); }
.hero-cta .micro { margin-top: 44px; }
.close .btn-lg { margin-bottom: 40px; }

/* liquid glass: the film's Start free. The light under it is its own radial, not a box-shadow. */
.btn-metal, .upload { position: relative; isolation: isolate; color: var(--ink-light);
  background: linear-gradient(180deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.07) 48%, rgba(139,108,255,.22) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.9), inset 0 0 0 1.5px rgba(255,255,255,.45), inset 0 -14px 26px rgba(139,108,255,.6), 0 3px 0 rgba(70,40,180,.6);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .25s var(--e-out); }
.btn-metal:hover, .upload:hover { transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255,255,255,.95), inset 0 0 0 1.5px rgba(255,255,255,.55), inset 0 -16px 28px rgba(139,108,255,.75), 0 3px 0 rgba(70,40,180,.6); }
.btn-metal:active, .upload:active { transform: translateY(1px) scale(.98); transition-duration: .12s; }
.btn-metal::after, .upload::after { content: ''; position: absolute; z-index: -2; left: -6%; right: -6%; top: 40%; height: 140%; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139,108,255,.55), rgba(139,108,255,.18) 55%, transparent 100%); }
.btn-sm.btn-metal::after { top: 55%; height: 110%; background: radial-gradient(closest-side, rgba(139,108,255,.35), transparent 100%); }
.upload { padding-right: 30px; }
.upload .a, .upload .b { color: var(--ink-light); }
.upload .div { background: rgba(255,255,255,.3); }
.upload .up { color: #0f0533; background: linear-gradient(180deg, #ffffff, #e2dcff); box-shadow: inset 0 -1px 0 rgba(15,5,51,.12); }
.saveflag-pill { color: #0f0533; box-shadow: inset 0 1px 0 rgba(255,255,255,.75); }
.toggle button em { color: var(--lav); }

/* the logo key: the film's squircle */
.lk .key { color: #0f0533; border-radius: 28%; background: linear-gradient(180deg, #d4ccff 0%, #a48cff 45%, #7a5af2 100%);
  box-shadow: inset 0 .022em 0 rgba(255,255,255,.75), inset 0 -.045em 0 #4b2fb0; }

/* glows that drew edges: now each fades inside itself */
.pool { filter: none; background: radial-gradient(closest-side, rgba(139,108,255,.32), rgba(139,108,255,.1) 55%, transparent 100%); }
.demo { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 6px rgba(132,100,255,.05); }
.fc { box-shadow: var(--glass-sh), inset 0 0 0 1px rgba(132,100,255,.22); position: relative; }
.behind-ph { box-shadow: 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; }
.behind-fig { position: relative; }
.cmp-t thead .hi::before { box-shadow: none; }
@keyframes cmGlow { 0%, 100% { box-shadow: inset 0 2px 0 #8464ff; } 50% { box-shadow: inset 0 2px 0 #d4ccff, inset 0 12px 18px -12px rgba(139,108,255,.6); } }
.close-light { background: radial-gradient(closest-side, rgba(139,108,255,.2), transparent 100%); }

/* motion: every line fades in over its own time, headline words slide in from their side, land on ease-out */
.hero h1 .w { display: inline-block; animation: wIn .7s var(--e-out) backwards; animation-delay: calc(var(--i) * 60ms + 80ms); }
@keyframes wIn { from { opacity: 0; filter: blur(6px); transform: translateX(calc(var(--dir) * 28px)); } }
.hero .lede, .hero-cta { animation: fadeUp .7s var(--e-out) .45s backwards; }
.hero-cta { animation-delay: .6s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.rv { opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity .7s var(--e-out), transform .7s var(--e-out), filter .7s var(--e-out); }
.rv.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .hero h1 .w, .hero .lede, .hero-cta, .hero h1 .hl { animation: none; } .rv { opacity: 1; transform: none; filter: none; } .kw.wait { clip-path: none; } }

/* the demo frame (Patrik 10-25): no dark band round the film; a thin lavender line with corner dots,
   the film's own selection frame and the hero's, with the video set inside it */
.demo-frame { position: relative; z-index: 3; width: var(--fw, 100%); padding: 12px; animation: showIn 1s var(--ease) .05s backwards; }
.demo-frame::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid rgba(212,204,255,.14); }
.demo-frame .cd { z-index: 2; }
.stage.show .demo { width: 100%; border-radius: 12px; animation: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
@media (max-width: 760px) { .demo-frame { padding: 7px; } .stage.show .demo { border-radius: 9px; } }
/* the demo frame's top and bottom edges run across the page, like the hero frame's (Patrik 10-25) */
.demo-frame .fl { position: absolute; left: -40vw; right: -40vw; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07) 30%, rgba(255,255,255,.07) 70%, transparent); }
.demo-frame .fl.t { top: 0; } .demo-frame .fl.b { bottom: 0; }
/* 10-26 (Patrik: "extend our vertical lines slightly lower so they go to the bottom and then fade out"): the frame's
   sides carry on past the demo, behind the caption strips, and fade out by the trust pill */
.demo-frame .vl { position: absolute; top: 0; bottom: -400px; width: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(212,204,255,.14), rgba(255,255,255,.08) 15%, rgba(255,255,255,.08) 70%, transparent); }
.demo-frame .vl.l { left: 0; } .demo-frame .vl.r { right: 0; }
.cs-wall { z-index: 4; }

/* 10-25: tighter hero (Patrik: "between the CTA, the text and our demo there is kind of a big gap and thereby it's not
   showing our two strips of captions"): the micro line tucks into the end of the button's reflection, the demo sits
   right under it, and the demo is capped by the window height so the caption strips start inside the first screen */
.hero-cta .micro { margin-top: 30px; }
.stage.show { margin-top: 0; padding-top: 12px; --fw: min(1000px, 84vw, calc((100svh - 300px) * 16 / 9)); }
@media (max-width: 1100px) { .stage.show { --fw: min(92vw, calc((100svh - 300px) * 16 / 9)); } }
@media (max-width: 760px) { .stage.show { --fw: 100%; padding-top: 10px; } }
.hero { padding-bottom: 20px; }
/* 10-26 (Patrik: "place CTA button in hero below demo"): headline, lede, the demo, then the button with its micro line,
   then the strips */
/* the demo frame sits right on the headline frame's bottom line, same width, so the two frames share one edge and there is
   no empty band between them (Patrik 10-26: "get rid of that one row which has nothing to sit inside") */
.stage.show { margin-top: 0; padding-top: 0; }
.hero-in { --fw: min(1000px, 84vw, calc((100svh - 300px) * 16 / 9)); }
@media (max-width: 1100px) { .hero-in { --fw: min(92vw, calc((100svh - 300px) * 16 / 9)); } }
@media (max-width: 760px) { .hero-in { --fw: 100%; } }
.hero-in .stage.show { --fw: inherit; }
.sel { min-width: var(--fw); box-sizing: border-box; }
.hero-cta.under { margin-top: 30px; }
.hero-cta.under .micro { margin-top: 26px; }
.hero-cta.under + .cs-wall { margin-top: 18px; }
