/* CineCast marketing page. One theme: a dark room with the screen on. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("/assets/fonts/BigShouldersDisplay-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --wall: #050506;
  --panel: #121214;
  --edge: #242428;
  --grey: #a5a5aa;
  --white: #fff;
  --red: #e50914;
  --red-hi: #ff4b45;
  --red-deep: #c40812;

  /* one spacing rhythm, 8px base */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 72px;
  --s6: 120px;
  --gutter: clamp(16px, 5vw, 72px);

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Segoe UI", "Helvetica Neue", Roboto, "Noto Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* rim light, driven by site.js; these are the no-script defaults */
  --lh: 212;
  --rh: 357;
  --ly: 30%;
  --ry: 22%;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--wall);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--edge) var(--wall);
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  accent-color: var(--red);
  caret-color: var(--red-hi);
  overflow-x: clip;
}

::selection { background: var(--red); color: var(--white); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--wall); }
::-webkit-scrollbar-thumb { background: var(--edge); border-radius: 6px; }

img, video { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration-color: var(--red-hi);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

/* ---------- the wall: two rim lights that own whole regions ---------- */

.wall {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(72% 90% at 0% var(--ly), hsl(var(--lh) 72% 18% / 0.95) 0%, hsl(var(--lh) 72% 12% / 0.4) 45%, transparent 78%),
    radial-gradient(62% 80% at 100% var(--ry), hsl(var(--rh) 90% 44% / 0.3) 0%, hsl(var(--rh) 90% 30% / 0.1) 48%, transparent 78%),
    var(--wall);
}

/* ---------- shared pieces ---------- */

.skip {
  position: absolute;
  left: var(--s2);
  top: -100px;
  z-index: 10;
  padding: var(--s1) var(--s2);
  background: var(--white);
  color: var(--wall);
  font-weight: 600;
}
.skip:focus { top: var(--s2); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.95;
  text-wrap: balance;
}

p { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 var(--s3);
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hi); color: var(--wall); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); background: var(--red-deep); color: var(--white); }
.btn-ghost { border-color: rgb(255 255 255 / 0.42); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgb(255 255 255 / 0.08); }
.btn-buy { border-color: var(--edge); background: var(--wall); color: var(--white); }
.btn-buy:hover { border-color: var(--grey); background: var(--panel); }

/* the screen: the only bright thing in the room */
.screen {
  position: relative;
  border-radius: 6px;
  background: #000;
  border: 1px solid rgb(255 255 255 / 0.14);
  box-shadow:
    0 2px 0 rgb(255 255 255 / 0.05) inset,
    0 28px 70px -18px hsl(212 90% 52% / 0.42),
    0 14px 36px -12px rgb(229 9 20 / 0.22);
  overflow: hidden;
}
.hero-screen video, .shot .screen img { width: 100%; }

/* origin ticket: where a picture came from */
.ticket {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin-top: var(--s2);
  width: fit-content;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid var(--edge);
  border-radius: 4px;
  background: rgb(18 18 20 / 0.82);
  color: var(--grey);
  font-size: 0.8125rem;
  line-height: 1.3;
}
.ticket b {
  padding-right: var(--s1);
  border-right: 1px dashed var(--grey);
  color: var(--white);
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}
.wordmark span { color: var(--red); }
.nav nav { display: flex; gap: var(--s3); }
.nav nav a {
  padding: var(--s1) 0;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.nav nav a:hover { text-decoration: underline; text-decoration-color: var(--red-hi); text-underline-offset: 0.5em; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 448px) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: 0 0 var(--s3) var(--gutter);
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3.5rem, 5vw, 4.5rem); font-weight: 900; line-height: 0.9; }
.sub { margin-top: var(--s3); max-width: 38ch; color: #d9d9dc; font-size: 1.1875rem; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.short-disclaimer { margin-top: var(--s2); color: var(--grey); font-size: 0.875rem; }
.hero-screen { margin: 0; }
.hero-screen .screen { border-right: 0; border-radius: 6px 0 0 6px; }
.hero-screen video { aspect-ratio: 1.64; object-fit: cover; }
.hero-screen .ticket { margin: var(--s2) 0 0 var(--s2); }

/* ---------- pricing shelf ---------- */

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 448px) minmax(0, 1fr);
  column-gap: 0;
  align-items: start;
  padding: 0 0 var(--s6) var(--gutter);
}
.pricing-copy { padding-right: var(--s4); }
.label {
  margin-bottom: var(--s2);
  padding-bottom: var(--s1);
  border-bottom: 2px solid var(--red);
  font-size: 1.75rem;
}
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); align-items: stretch; }
.plans-screen {
  padding: var(--s3);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.08) 0, rgb(255 255 255 / 0) 26%), #0a0a0c;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s3);
  border-radius: 6px;
}
.plan h3 { font-size: 1.5rem; color: var(--grey); }
.price { display: flex; flex-direction: column; margin-top: var(--s1); }
.price span {
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.price small { margin-top: 4px; color: var(--grey); font-size: 0.9375rem; }
.plan-note { flex: 1; margin-bottom: var(--s2); color: var(--grey); font-size: 0.9375rem; line-height: 1.45; }
.plan-best {
  padding-top: calc(var(--s3) + var(--s3));
  transform: scale(1.03);
  box-shadow: 0 0 0 3px var(--white);
}
.plan-best h3 { color: var(--white); }
.tag {
  position: absolute;
  top: 0;
  left: var(--s3);
  padding: 6px 12px;
  border-radius: 0 0 6px 6px;
  background: var(--red);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.how h3 { font-size: 1.625rem; }
.how ol { margin: var(--s2) 0 var(--s3); padding: 0; list-style: none; counter-reset: step; }
.how li { position: relative; padding: 0 0 var(--s2) 40px; counter-increment: step; color: #d9d9dc; }
.how li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--grey);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1;
}
.scope { padding-top: var(--s1); color: var(--white); font-size: 0.9375rem; }
.manage { margin-top: var(--s2); font-size: 0.9375rem; font-weight: 600; }
.manage a { color: var(--red-hi); }
.trial-line { grid-column: 1 / -1; padding-right: var(--gutter); margin-top: var(--s4); max-width: 62ch; color: var(--grey); font-size: 0.9375rem; }

/* ---------- built from your own playlist ---------- */

.built { padding: var(--s5) var(--gutter) var(--s6); }
.section-title { max-width: 14ch; margin-bottom: var(--s5); font-size: clamp(3rem, 6.5vw, 6rem); font-weight: 900; line-height: 0.9; }
.feature { display: grid; align-items: center; gap: var(--s5); margin-bottom: var(--s6); }
.feature:last-child { margin-bottom: 0; }
.f-text h3 { margin-bottom: var(--s2); font-size: clamp(2rem, 3.4vw, 3rem); }
.f-text p { max-width: 42ch; color: #d9d9dc; }
.shot { margin: 0; }

.f-home { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.f-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); align-items: start; }
.f-shots .shot:nth-child(2) { margin-top: var(--s5); }
.f-shots .ticket { flex-wrap: wrap; }

.f-guide { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--s6); padding-left: 8%; }
.f-guide .f-text { justify-self: start; }

.f-xray { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.shot-wide { max-width: 1100px; margin-left: auto; width: 100%; }

.f-private { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding-top: var(--s5); border-top: 2px solid var(--red); }
.plain-facts { margin: 0; padding: 0; list-style: none; }
.plain-facts li {
  padding: var(--s2) 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}
.plain-facts li:first-child { padding-top: 0; }

/* ---------- the close ---------- */

.get { padding: var(--s4) var(--gutter) var(--s6); }
.close-screen {
  display: grid;
  justify-items: center;
  gap: var(--s2);
  padding: var(--s5) var(--s3);
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 0%, rgb(255 255 255 / 0.1), transparent 70%),
    linear-gradient(180deg, #1a1a1f, #0c0c0e);
  box-shadow:
    0 2px 0 rgb(255 255 255 / 0.06) inset,
    0 40px 110px -24px hsl(212 90% 52% / 0.5),
    0 20px 60px -20px rgb(229 9 20 / 0.32);
}
.close-mark { width: 88px; height: 88px; border-radius: 20px; }
.get h2 { font-size: clamp(3.25rem, 8vw, 6rem); font-weight: 900; }
.close-sub { color: #d9d9dc; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: var(--s4); margin-top: var(--s3); }
.store { display: grid; justify-items: center; gap: var(--s1); max-width: 28ch; }
.store .btn { min-width: 240px; min-height: 60px; font-size: 1.125rem; }
.store p { color: var(--grey); font-size: 0.9375rem; }
.soon { margin-top: var(--s3); color: #d9d9dc; font-size: 0.9375rem; }

/* ---------- footer ---------- */

.foot {
  display: grid;
  gap: var(--s2);
  padding: var(--s4) var(--gutter) var(--s5);
  border-top: 2px solid var(--red);
  color: var(--grey);
  font-size: 0.875rem;
}
.disclaimer { max-width: 72ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s3); }
.foot nav a { color: var(--white); padding: var(--s1) 0; }
.legal-op { font-size: 0.75rem; }

/* ---------- laptop narrow and tablet ---------- */

@media (max-width: 1100px) {
  .pricing { grid-template-columns: minmax(0, 1fr); padding-right: var(--gutter); }
  .pricing-copy { padding-right: 0; margin-bottom: var(--s4); }
  .plans-screen { border-right: 1px solid rgb(255 255 255 / 0.14); border-radius: 6px; }
  .trial-line { padding-right: 0; }
  .f-home { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .f-guide { padding-left: 0; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: var(--s2) var(--gutter) var(--s5); gap: var(--s4); }
  .hero h1 { font-size: clamp(3.5rem, 15vw, 5rem); }
  .f-xray { grid-template-columns: minmax(0, 1fr); }
  .f-guide, .f-private { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .f-guide .shot { max-width: 320px; }
}

/* ---------- phone ---------- */

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav { padding-top: var(--s2); padding-bottom: var(--s2); }
  .nav nav { gap: var(--s2); }
  .wordmark { font-size: 1.625rem; }
  .brand img { width: 30px; height: 30px; }
  .actions .btn { width: 100%; }
  .pricing, .built, .get { padding-bottom: var(--s5); }
  .plans { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .f-shots { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .f-shots .shot:nth-child(2) { margin-top: 0; }
  .f-shots .shot:nth-child(3) { grid-column: 1 / -1; max-width: 50%; }
  .feature { margin-bottom: var(--s5); }
  .store .btn { width: 100%; min-width: 0; }
  .store { width: 100%; max-width: none; }
  .close-screen { padding: var(--s4) var(--s2); }
}

@media (max-width: 380px) {
  .nav nav { gap: 12px; }
  .nav nav a { font-size: 0.875rem; }
  .wordmark { font-size: 1.5rem; }
  .brand { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn-primary:hover { transform: none; }
}

/* film pause / play */
.film-toggle {
  position: absolute;
  right: var(--s2);
  bottom: var(--s2);
  min-height: 40px;
  padding: 0 var(--s2);
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: 6px;
  background: rgb(5 5 6 / 0.72);
  color: var(--white);
  font: 600 0.875rem/1 var(--body);
  cursor: pointer;
}
.film-toggle:hover { border-color: var(--white); background: rgb(5 5 6 / 0.9); }
.film-toggle[hidden] { display: none; }

/* poster stands in for the film when motion is reduced, even without script */
@media (prefers-reduced-motion: reduce) {
  .hero-screen .screen {
    aspect-ratio: 16 / 9;
    background: #000 url("/assets/video/reveal-poster.jpg") center / cover no-repeat;
  }
  .hero-screen video, .film-toggle { display: none; }
}

/* film toggle: one fixed name, state drawn from aria-pressed */
.film-toggle { display: inline-flex; align-items: center; gap: 10px; }
.film-toggle::before {
  content: "";
  width: 10px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.film-toggle[aria-pressed="true"]::before {
  width: 0;
  height: 0;
  border-left: 11px solid currentColor;
  border-right: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.film-toggle[aria-pressed="true"] { border-color: var(--red-hi); }
