/* cinemaOS comparison and use-case pages (/cinemaos/vs, /cinemaos/for), generated by
   scripts/build-cinemaos-landings.mjs. Standalone: does not load the landing CSS, but
   follows its visual language (black, ivory, red used sparingly, Space Grotesk,
   hairlines, square corners, the green clipped download button). */

@font-face {
  font-family: "Space Grotesk";
  src: url("/cinemaos-release/assets/fonts/SpaceGrotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --lp-font: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lp-bg: #000;
  --lp-ivory: #f4f3ef;
  --lp-soft: #b1b1b8;
  --lp-muted: #85858d;
  --lp-line: rgba(244, 243, 239, .09);
  --lp-line-card: rgba(244, 243, 239, .14);
  --lp-line-hover: rgba(244, 243, 239, .4);
  --lp-line-strong: rgba(244, 243, 239, .2);
  --lp-red: #cc0000;
  --lp-green: #39e56a;
  --lp-green-hot: #64f18a;
  --lp-green-ink: #09140b;
  --lp-gutter: clamp(16px, 4vw, 40px);
  --lp-wide: 1180px;
  --lp-measure: 70ch;
}

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

html {
  background: var(--lp-bg);
  color: var(--lp-ivory);
  font-family: var(--lp-font);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--lp-bg);
  color: var(--lp-ivory);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(244, 243, 239, .25); color: #fff; }
a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--lp-ivory); outline-offset: 3px; }
h1, h2, h3 { margin: 0; color: #fff; font-weight: 600; }

.lp-skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lp-ivory);
  color: #000;
  font-weight: 600;
  text-decoration: none;
}
.lp-skip:focus-visible { top: 12px; }

/* ---------------------------------------------------------------- rail */

.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--lp-line);
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.lp-header__inner {
  display: flex;
  align-items: center;
  gap: 8px 28px;
  max-width: var(--lp-wide);
  min-height: 60px;
  margin: 0 auto;
  padding: 10px var(--lp-gutter);
}
.lp-wordmark {
  flex: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  text-decoration: none;
  color: #fff;
}
.lp-wordmark span { color: var(--lp-red); }
.lp-header__nav { display: flex; flex-wrap: wrap; gap: 4px 22px; min-width: 0; }
.lp-header__nav a {
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--lp-soft);
  transition: color .2s ease;
}
.lp-header__nav a:hover, .lp-header__nav a[aria-current="page"] { color: #fff; }

/* ---------------------------------------------------------------- layout */

.lp-main {
  max-width: var(--lp-wide);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) var(--lp-gutter) clamp(56px, 8vw, 96px);
}
.lp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(22px, 4vw, 40px);
  font-size: 14.5px;
  color: var(--lp-muted);
}
.lp-crumbs a { text-decoration: none; color: var(--lp-soft); }
.lp-crumbs a:hover { color: #fff; }

.lp-eyebrow {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--lp-red);
}

/* ---------------------------------------------------------------- hero + 60 seconds */

.lp-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-bottom: clamp(36px, 6vw, 64px);
  border-bottom: 1px solid var(--lp-line);
}
.lp-hero h1, .lp-hub__head h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.lp-hero__answer {
  max-width: 52ch;
  margin: 18px 0 0;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
  color: var(--lp-soft);
}
.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: clamp(24px, 3vw, 32px);
}
.lp-hero__note { font-size: 15px; color: var(--lp-ivory); }

.lp-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 56px;
  padding: 16px 28px;
  background: var(--lp-green);
  color: var(--lp-green-ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background .22s ease;
}
.lp-download:hover { background: var(--lp-green-hot); }
.lp-download:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--lp-green-ink); }

.lp-text-link {
  font-size: 15.5px;
  font-weight: 500;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--lp-line-strong);
  text-underline-offset: 4px;
}
.lp-text-link:hover { text-decoration-color: #fff; }

.lp-watch { min-width: 0; }
.lp-watch__player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
  border: 1px solid var(--lp-line);
  border-radius: 2px;
}
.lp-watch__player video p { padding: 16px; }
.lp-watch__text { margin-top: 14px; }
.lp-watch__label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--lp-muted);
}
.lp-watch__name {
  margin: 4px 0 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: #fff;
}
.lp-watch__name span {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--lp-muted);
  font-variant-numeric: tabular-nums;
}
.lp-watch__note { margin: 8px 0 0; font-size: 13.5px; color: var(--lp-muted); }

/* ---------------------------------------------------------------- prose */

.lp-prose {
  margin-top: clamp(36px, 6vw, 64px);
  font-size: 17px;
  line-height: 1.65;
  color: var(--lp-ivory);
}
.lp-prose > p, .lp-prose > ul, .lp-prose > ol, .lp-prose > h2, .lp-prose > h3, .lp-prose > blockquote { max-width: var(--lp-measure); }
.lp-prose p { margin: 0 0 1.1em; }
.lp-prose h2 {
  margin: 2.2em 0 .7em;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.lp-prose > h2:first-child { margin-top: 0; }
.lp-prose h3 {
  margin: 1.6em 0 .45em;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.lp-prose ol, .lp-prose ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.lp-prose li { margin: 0 0 .65em; padding-left: .25em; }
.lp-prose li::marker { color: var(--lp-muted); }
.lp-prose strong { color: #fff; font-weight: 600; }
.lp-prose a { color: #fff; text-decoration: underline; text-decoration-color: var(--lp-line-strong); text-underline-offset: 3px; }
.lp-prose a:hover { text-decoration-color: #fff; }
.lp-prose code {
  padding: .1em .35em;
  background: rgba(255, 255, 255, .07);
  border-radius: 2px;
  font-family: inherit;
  font-size: .95em;
}
.lp-prose blockquote {
  margin: 1.4em 0;
  padding: 0 0 0 18px;
  border-left: 1px solid var(--lp-line-strong);
  color: var(--lp-soft);
}

/* Side by side: one row per dimension, hairlines, no boxes. */
.lp-compare {
  margin: 8px 0 2em;
  border-top: 1px solid var(--lp-line-strong);
}
.lp-row {
  display: grid;
  grid-template-columns: minmax(140px, .55fr) minmax(0, 1fr);
  gap: 8px 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--lp-line);
}
.lp-prose .lp-row__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -.015em;
  color: #fff;
}
.lp-row__cells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  margin: 0;
}
.lp-row__cell { min-width: 0; }
.lp-row__cell dt {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--lp-muted);
}
.lp-row__cell:first-child dt { color: var(--lp-ivory); }
.lp-row__cell dd {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--lp-soft);
}
.lp-row__cell:first-child dd { color: var(--lp-ivory); }

/* ---------------------------------------------------------------- related */

.lp-related { margin-top: clamp(48px, 7vw, 80px); }
.lp-related > h2, .lp-langs__title {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.025em;
  color: var(--lp-ivory);
}
.lp-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--lp-line);
}
.lp-links li { min-width: 0; border-bottom: 1px solid var(--lp-line); }
.lp-links a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px 0 18px;
  text-decoration: none;
}
.lp-links__kind { font-size: 13.5px; color: var(--lp-muted); }
.lp-links__title {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: #fff;
}
.lp-links a:hover .lp-links__title { text-decoration: underline; text-decoration-color: var(--lp-line-hover); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- cta */

.lp-cta {
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(28px, 4vw, 44px) 0 0;
  border-top: 1px solid var(--lp-line);
}
.lp-cta h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.lp-cta > p:not(.lp-fine) {
  max-width: 56ch;
  margin: 12px 0 24px;
  font-size: 17px;
  color: var(--lp-soft);
}
.lp-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.lp-fine { max-width: 64ch; margin: 18px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--lp-muted); }

/* ---------------------------------------------------------------- hubs */

.lp-hub__head { max-width: 820px; padding-bottom: clamp(32px, 5vw, 52px); }
.lp-hub__empty { margin: 14px 0 0; font-size: 15px; color: var(--lp-muted); }
.lp-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--lp-line-strong);
}
.lp-card { min-width: 0; border-bottom: 1px solid var(--lp-line); }
.lp-card a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 22px 0 24px;
  text-decoration: none;
}
.lp-card__title {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -.03em;
}
.lp-card__desc { font-size: 15.5px; line-height: 1.55; color: var(--lp-soft); }
.lp-card a:hover .lp-card__title { text-decoration: underline; text-decoration-color: var(--lp-line-hover); text-underline-offset: 4px; }
.lp-hub__other { margin: 32px 0 0; font-size: 15.5px; color: var(--lp-soft); }

/* ---------------------------------------------------------------- languages + footer */

.lp-langs { margin-top: clamp(48px, 7vw, 72px); }
.lp-langs__title { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--lp-muted); }
.lp-langs ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.lp-langs a { font-size: 14.5px; text-decoration: none; color: var(--lp-soft); }
.lp-langs a:hover, .lp-langs a[aria-current="true"] { color: #fff; }
.lp-langs a[aria-current="true"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--lp-red); }

.lp-footer { border-top: 1px solid var(--lp-line); }
.lp-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: var(--lp-wide);
  margin: 0 auto;
  padding: 28px var(--lp-gutter) 36px;
  font-size: 14px;
  color: var(--lp-muted);
}
.lp-footer p { margin: 0; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.lp-footer a { text-decoration: none; color: var(--lp-soft); }
.lp-footer a:hover { color: #fff; }

/* ---------------------------------------------------------------- smaller screens */

@media (max-width: 960px) {
  .lp-top { grid-template-columns: 1fr; }
  .lp-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .lp-row { grid-template-columns: 1fr; padding: 18px 0; }
  .lp-row__cells { grid-template-columns: 1fr; gap: 12px; }
  .lp-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .lp-header__inner { gap: 8px 16px; }
  .lp-header__nav { gap: 4px 16px; }
  .lp-header__nav a { font-size: 14.5px; }
  .lp-header__wide { display: none; }
  .lp-prose { font-size: 16.5px; }
  .lp-download { width: 100%; }
  .lp-hero__actions { gap: 10px; }
  .lp-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .lp-header { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
