/* CineView site — brand: House Red, Screen White, Ink */
/* "Netflix Sans" is used when it's installed and licensed on the device; Inter is the bundled stand-in. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2-variations"), url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --red: #D70201;
  --red-press: #B40100;
  --white: #FFFFFF;
  --ink: #1B1718;
  --seat: #6E6869;
  --aisle: #F4F2F2;
  --line: #E6E2E2;
  --radius: 14px;
  --max: 1200px;
  --ease: cubic-bezier(.32,.72,0,1);
  --curve: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 2.2 Q50 9 100 2.2 L100 97.8 Q50 91 0 97.8Z'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  font-family: "Netflix Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
body { overflow-x: clip; }
main, section, footer, header { max-width: 100%; }
/* grid/flex children may shrink below their content width (stops wide images or long words pushing the page sideways) */
.steps > *, .feature > *, .formats-head > *, .install-inner > *, .hero > *, .foot > *, .actions > * { min-width: 0; }
p, h1, h2, h3, li, summary, code { overflow-wrap: anywhere; }
.shot { width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h1 { font-size: clamp(2.7rem, 7.8vw, 7rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); max-width: 18ch; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.005em; line-height: 1.3; }
p { max-width: 62ch; }
code, kbd { font-family: inherit; font-weight: 600; background: var(--aisle); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
kbd { border: 1px solid var(--line); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease; }
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 8px 24px rgba(215,2,1,.24); }
.btn-red:hover { background: var(--red-press); }
.btn-ghost { background: var(--aisle); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-sm { height: 38px; padding: 0 18px; font-size: .92rem; box-shadow: none; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 1.08rem; }
.btn-small { height: 34px; padding: 0 14px; font-size: .88rem; background: rgba(255,255,255,.14); color: var(--white); }
.btn-small:hover { background: rgba(255,255,255,.24); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { width: 128px; height: auto; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--seat); font-weight: 500; font-size: .96rem; }
.nav nav a:hover { color: var(--ink); }

/* Hero: the copy stays put while the preview scrolls up over it */
.hero { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.hero-copy { position: sticky; top: 72px; z-index: 0; will-change: opacity; padding-top: clamp(48px, 9vw, 112px); padding-bottom: 24px; }
.hero h1 { max-width: 13ch; }
.lede { margin-top: 26px; font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: #3B3536; max-width: 54ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 14px; color: var(--seat); font-size: .9rem; }
.hero-visual { position: relative; z-index: 1; margin: clamp(24px, 6vh, 64px) 0 0; padding-bottom: 8px; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.demo-caption { text-align: center; color: var(--seat); font-size: .9rem; margin: 18px auto 0; max-width: 60ch; }

/* Live demo: two independent panels, no connecting chrome */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: stretch; }
.demo-stage { position: relative; min-width: 0; min-height: 460px; border-radius: 20px; overflow: hidden; background: #050506; isolation: isolate;
  box-shadow: 0 40px 80px -30px rgba(27,23,24,.45); perspective-origin: 50% 50%; }
.hall { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* The trailer sits in a flat layer between the hall and the seat rows: iOS Safari can't draw an iframe inside a 3D scene */
.flat-screen { position: absolute; inset: 0; pointer-events: none; }
.flat-screen .vid { inset: auto; }
.p { position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; backface-visibility: visible; }
.screen { background: #000; overflow: hidden; box-shadow: 0 0 160px 40px rgba(170,180,255,.10), 0 0 0 10px #020203; }
.vid { position: absolute; inset: 0; overflow: hidden; background: #000; }
.vid iframe { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
/* Black until the trailer is really playing: hides YouTube's title bar, buttons and suggested videos */
.vid-cover { position: absolute; inset: 0; background: #000; pointer-events: none; transition: opacity .6s ease; }
.vid.live .vid-cover { opacity: 0; }
.frontwall { background: radial-gradient(55% 50% at 50% 42%, #18181c 0%, #0a0a0c 75%); }
.drape { background: repeating-linear-gradient(90deg, #121214 0 46px, #1a1a1e 46px 78px, #0e0e10 78px 120px); }
.wall { background: linear-gradient(90deg, #0b0b0d, #121215 45%, #0a0a0c); }
.glow { background: radial-gradient(closest-side, rgba(255,214,170,.42), rgba(255,200,150,.06) 62%, transparent); border-radius: 50%; }
.ceiling { background: #050506; } .floor { background: #08080a; }
.tread { background: linear-gradient(#111114, #0a0a0c); }
.riser { background: #060607; box-shadow: inset 0 2px 0 rgba(255,214,170,.14); }
.seatback { background: linear-gradient(180deg, #2b2b31 0%, #212126 30%, #17171b 75%, #101012 100%);
  border-radius: 34% 34% 10% 10% / 24% 24% 6% 6%; box-shadow: inset 0 3px 0 rgba(255,255,255,.08); }
.stage-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(125% 105% at 50% 45%, transparent 58%, rgba(0,0,0,.5)); }
.stage-top { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.pill { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; font: inherit; font-size: .82rem; font-weight: 600;
  color: #fff; background: rgba(30,30,32,.62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 0; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.movie-pill { font-weight: 500; color: rgba(255,255,255,.8); }
.sound { position: absolute; right: 14px; bottom: 14px; cursor: pointer; }
.sound:hover { background: rgba(60,60,64,.8); }

.demo-panel { background: var(--white); border-radius: 20px; padding: 20px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(27,23,24,.25);
  display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.panel-label { font-size: .82rem; font-weight: 600; color: var(--seat); margin-bottom: 8px; }
.seatmap { display: flex; flex-direction: column; gap: 4px; }
.map-screen { height: 4px; margin: 0 14% 14px; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--ink), transparent); position: relative; }
.map-screen span { position: absolute; left: 50%; top: 7px; transform: translateX(-50%); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--seat); }
.map-row { display: grid; grid-template-columns: 14px repeat(8, minmax(0, 1fr)) 8px repeat(8, minmax(0, 1fr)); gap: 3px; align-items: center; }
.rl { font-size: .62rem; color: var(--seat); text-align: center; }
.st { aspect-ratio: 1; min-height: 8px; border: 0; padding: 0; border-radius: 3px 3px 2px 2px; background: #D9D4D4; cursor: pointer; transition: background .15s, transform .15s; }
.st:hover { background: #A9A2A3; }
.st.booked { background: #F1EEEE; cursor: not-allowed; box-shadow: inset 0 0 0 1px #E3DFDF; }
.st.on { background: var(--red); transform: scale(1.18); }
.st:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 12px; font-size: .76rem; color: var(--seat); }
.legend span { display: inline-flex; align-items: center; gap: 6px; } .lg { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.lg.sel { background: var(--red); } .lg.av { background: #D9D4D4; } .lg.bk { background: #F1EEEE; box-shadow: inset 0 0 0 1px #E3DFDF; }
.score-block { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.ring { position: relative; width: 48px; height: 48px; flex: none; }
.ring .arc { transition: stroke-dasharray .6s var(--ease), stroke .3s; }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: .9rem; font-weight: 800; }
.verdict { font-weight: 700; } .headline { font-size: .84rem; color: var(--seat); line-height: 1.35; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.stats div { min-width: 0; } .stats dt { font-size: .76rem; color: var(--seat); } .stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats .good { color: #1F9D55; } .stats .mid { color: #B07A00; } .stats .bad { color: var(--red); }

/* Sections */
section { scroll-margin-top: 80px; }
.how, .features, .formats, .faq { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 128px) clamp(20px, 4vw, 48px) 0; }

.steps { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.steps li { border-top: 2px solid var(--ink); padding-top: 22px; }
.steps .n { display: block; font-weight: 800; font-size: 2.8rem; line-height: 1; letter-spacing: -0.04em; color: var(--red); margin-bottom: 18px; }
.steps p { margin-top: 8px; color: #4A4344; }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 9vw, 120px); }
.feature.flip .feature-copy { order: 2; }
.feature-copy p { margin-top: 20px; color: #4A4344; }
.shot { border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(27,23,24,.35), 0 0 0 1px rgba(27,23,24,.06); }
.ticks { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-radius: 2px;
  background: var(--red); -webkit-mask: var(--curve) center/100% 100% no-repeat; mask: var(--curve) center/100% 100% no-repeat; }

/* Formats */
.formats-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.formats-head p { color: #4A4344; }
.format-stage { position: relative; margin-top: 48px; height: clamp(220px, 38vw, 470px); display: grid; place-items: center; background: #0f0d0e; border-radius: 22px; padding: 24px 24px 40px; overflow: hidden; }
.format-stage .format-now { color: rgba(255,255,255,.55); }
.format-screen { position: relative; width: 760px; height: 318px; max-width: 100%; max-height: 100%; -webkit-mask: var(--curve) center/100% 100% no-repeat; mask: var(--curve) center/100% 100% no-repeat;
  background: var(--ink); transition: width .8s var(--ease), height .8s var(--ease); }
.format-screen .vid { border-radius: 0; }
.format-now { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: .8rem; color: var(--seat); }
.format-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; padding: 6px; background: var(--aisle); border-radius: 16px; }
.format-picker button { font: inherit; border: 0; background: transparent; border-radius: 11px; padding: 12px 8px; cursor: pointer; color: var(--ink); transition: background .2s, box-shadow .2s; }
.format-picker button b { display: block; font-weight: 700; }
.format-picker button span { color: var(--seat); font-size: .88rem; font-variant-numeric: tabular-nums; }
.format-picker button[aria-checked="true"] { background: var(--white); box-shadow: 0 2px 10px rgba(27,23,24,.1); }
.format-picker button[aria-checked="true"] b { color: var(--red); }

/* Install — house lights down */
.install { margin-top: clamp(96px, 12vw, 160px); background: var(--ink); color: var(--white); }
.install-inner { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 128px) clamp(20px, 4vw, 48px); display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); }
.install-head p { color: rgba(255,255,255,.72); margin: 20px 0 32px; }
.install-head .fine { color: rgba(255,255,255,.5); margin: 14px 0 0; }
.install-steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 0; }
.install-steps li { counter-increment: s; position: relative; padding: 0 0 28px 56px; border-left: 1px solid rgba(255,255,255,.16); margin-left: 17px; }
.install-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.install-steps li::before { content: counter(s); position: absolute; left: -18px; top: -4px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); color: var(--ink); display: grid; place-items: center; font-weight: 800; }
.install-steps p { margin-top: 6px; color: rgba(255,255,255,.72); }
.install-steps code { background: rgba(255,255,255,.12); color: var(--white); }
.copy { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 8px 8px 14px; border-radius: 12px; background: rgba(255,255,255,.08); max-width: 360px; }
.copy code { background: none; padding: 0; flex: 1; }

/* FAQ */
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--line); max-width: 820px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 650; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 22px; color: #4A4344; }

/* Footer */
.foot { max-width: var(--max); margin: clamp(96px, 12vw, 140px) auto 0; padding: 36px clamp(20px, 4vw, 48px) 48px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; color: var(--seat); font-size: .95rem; }
.foot nav { display: flex; gap: 22px; margin-left: auto; }
.foot nav a { text-decoration: none; } .foot nav a:hover { color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--white);
  padding: 12px 18px; border-radius: 12px; font-weight: 500; transition: opacity .25s, transform .35s var(--ease); pointer-events: none; z-index: 60; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 900px) {
  .steps, .feature, .formats-head, .install-inner { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 980px) {
  .demo { grid-template-columns: 1fr; }
  .demo-stage { min-height: 0; height: 52vw; }
  .demo-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
  .demo-panel .panel-block:nth-child(2) { grid-row: span 2; }
}
@media (max-width: 760px) {
  .demo-stage { height: 78vw; border-radius: 16px; }
  .demo-panel { display: flex; padding: 16px; }
  .formats-head { gap: 14px; }
  .format-stage { margin-top: 28px; height: 76vw; padding: 16px 12px 36px; border-radius: 16px; }
  .format-picker { grid-template-columns: repeat(2, 1fr); }
  .format-picker button { padding: 10px 6px; }
  /* small screens: no sticky text or parallax — the image simply follows the text */
  .hero-copy { position: static; padding-bottom: 0; }
  .hero-visual { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-copy { position: static; } .hero-visual { transform: none !important; } }
@media (max-width: 560px) {
  body { font-size: 16px; }
  .format-picker { grid-template-columns: repeat(2, 1fr); }
  .actions .btn { width: 100%; }
  .foot nav { margin-left: 0; }
}

/* Install section: primary download + quiet secondary support button on the dark background */
.install-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost-dark { background: transparent; color: rgba(255,255,255,.86); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.08); color: #fff; }
@media (max-width: 760px) { .install-actions .btn { width: 100%; } }

/* Footer credits line */
.foot .credits { grid-column: 1 / -1; flex-basis: 100%; max-width: none; margin: 8px 0 0; font-size: .8rem; color: var(--seat); }
.foot .credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Effects (React Bits ports, /fx) ---------- */
/* Hero headline: footage shows through the letters; keep the original type size and width */
.hero h1.masked-heading { width: auto; max-width: 13ch; color: var(--ink); }
.masked-heading__media { background: #1B1718; }

/* Install: ASCII screen glow behind the content */
.install { position: relative; overflow: hidden; isolation: isolate; }
.install-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.install-inner { position: relative; z-index: 1; }

/* Admit one */
.ticket { max-width: var(--max); margin: clamp(96px, 12vw, 160px) auto 0; padding: 0 clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.ticket > * { min-width: 0; }
.ticket-copy p { color: var(--seat); margin: 20px 0 0; max-width: 46ch; }
.ticket-copy .ticket-note { color: var(--ink); font-weight: 600; min-height: 1.6em; }
.ticket-again { margin-left: 10px; font: inherit; font-weight: 600; color: var(--red); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ticket-host { display: flex; justify-content: center; padding: 24px 0; }
.ticket-host .tear-ticket { margin: 0 auto; }
.tk-body { position: absolute; left: 22px; right: 18px; bottom: 18px; }
.tk-kicker { margin: 0; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.tk-title { margin: 2px 0 10px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.tk-meta { display: flex; gap: 22px; margin: 0; }
.tk-meta div { display: grid; gap: 1px; }
.tk-meta dt { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.tk-meta dd { margin: 0; font-size: 16px; font-weight: 700; }
.tk-meta div:last-child dd { color: #34c759; }
.tk-stub { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; }
.tk-stub-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.tk-stub-seat { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: var(--red); line-height: 1; }
.tk-stub-hint { font-size: 11px; color: rgba(255,255,255,.45); }

/* Big interactive wordmark above the footer */
.bigmark { max-width: var(--max); margin: clamp(96px, 12vw, 150px) auto 0; height: clamp(150px, 22vw, 320px); padding: 0 clamp(20px, 4vw, 48px); color: var(--ink); }
.bigmark + .foot { margin-top: 0; }

@media (max-width: 860px) {
  .ticket { grid-template-columns: 1fr; }
}

/* Install: store first, manual steps second */
.install-head .fine a { color: #fff; text-underline-offset: 3px; }
.install-manual-label { margin: 0 0 18px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
