/* Roolly site — one stylesheet for the landing page and the legal documents.
   Palette and type mirror the app's "Backlot" design tokens: a near-black
   canvas, one violet lamp, Fraunces for the brand voice and DM Sans for
   everything else, rounded rectangles (never pills), cards one step lighter
   than the page with a hairline, captions below the pictures. */

:root {
  --canvas: #0b0b10;
  --surface: #15151b;
  --raised: #1f1f27;
  --line: #27272f;
  --text: #f2f1f8;
  --text2: #b4b2c2;
  --text3: #7b7989;
  --accent: #8b63ff;
  --accent-deep: #6a47e0;
  --accent-soft: #261f45;
  --accent-text: #b9a3ff;
  --energy: #f5a524;
  --energy-soft: #2c2213;
  --success: #3dd68c;
  --danger: #ff5c5c;
  --cta: linear-gradient(135deg, #8b63ff 0%, #5e7cff 100%);
  --glow: 0 8px 18px rgba(139, 99, 255, 0.45);
  --card-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans:
    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shell: 1080px;
  --gutter: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
}

p a,
li a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

h1,
h2,
.serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-text);
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.eyebrow,
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
}

/* ---------- header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 11, 16, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar .shell {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
}

.brand .mark {
  width: 30px;
  height: 30px;
  color: var(--text);
}

.topnav {
  display: flex;
  gap: 26px;
  font-size: 15px;
}

.topnav a {
  color: var(--text2);
  transition: color 0.15s;
}

.topnav a:hover {
  color: var(--text);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.15s,
    opacity 0.15s;
}

.btn:hover {
  opacity: 0.92;
}

.btn:active {
  transform: scale(0.965);
}

.btn-primary {
  background: var(--cta);
  color: #ffffff;
  box-shadow: var(--glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--text3);
  opacity: 1;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn.is-soon {
  background: var(--raised);
  color: var(--text2);
  box-shadow: none;
  cursor: default;
}

.btn.is-soon:active {
  transform: none;
}

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

.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
}

.hero::before {
  /* The lamp: one violet pool of light behind the headline. */
  content: '';
  position: absolute;
  top: -220px;
  left: 50%;
  width: 900px;
  height: 600px;
  transform: translateX(-70%);
  background: radial-gradient(closest-side, rgba(139, 99, 255, 0.22), rgba(139, 99, 255, 0));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin: 14px 0 20px;
}

.lede {
  font-size: 18px;
  color: var(--text2);
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cta-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text3);
}

/* The fan of tilted posters — the Welcome screen's picture. */
.fan {
  position: relative;
  height: 520px;
}

.fan img {
  position: absolute;
  top: 50%;
  width: 46%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  background: var(--raised);
}

.fan .f1 {
  left: 0;
  transform: translateY(-46%) rotate(-9deg);
}

.fan .f2 {
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -54%);
}

.fan .f3 {
  right: 0;
  transform: translateY(-46%) rotate(9deg);
}

/* ---------- bands ---------- */

.band {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.band h2 {
  font-size: clamp(30px, 4vw, 40px);
  margin: 10px 0 14px;
}

.section-sub {
  color: var(--text2);
  font-size: 17px;
  max-width: 40em;
}

.section-head {
  margin-bottom: 32px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}

.card .num {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: var(--accent-text);
  margin-bottom: 18px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--text2);
  font-size: 15px;
}

/* ---------- posters ---------- */

.posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.poster .pic {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: var(--raised);
  border: 1px solid var(--line);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag {
  display: inline-block;
  border-radius: 10px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.tag-stage {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 11, 16, 0.72);
  color: var(--text);
  backdrop-filter: blur(6px);
}

.poster b,
.sample b {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 16px;
}

.poster span,
.sample span {
  display: block;
  font-size: 14px;
  color: var(--text3);
}

/* ---------- sample films ---------- */

.samples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: center;
  gap: 24px;
}

.sample .pic {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--line);
}

.sample video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.play i {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow);
  transition: transform 0.15s;
}

.play:hover i {
  transform: scale(1.05);
}

.play svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
  margin-left: 3px;
}

.sample.is-playing .play {
  display: none;
}

/* ---------- split + checks ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.checks {
  display: grid;
  gap: 10px;
}

.check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
}

.check svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check b {
  display: block;
  font-weight: 600;
}

.check span {
  display: block;
  font-size: 14px;
  color: var(--text2);
}

.check-energy svg {
  stroke: var(--energy);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 20px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--text3);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  color: var(--text2);
  padding: 0 0 18px;
}

/* ---------- closing ---------- */

.closing {
  text-align: center;
  background: var(--accent-soft);
  border: 1px solid rgba(139, 99, 255, 0.35);
  border-radius: 28px;
  padding: 56px 24px;
}

.closing .section-label {
  color: var(--accent-text);
}

.closing p {
  color: var(--text2);
  margin-bottom: 24px;
}

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

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 14px;
  color: var(--text3);
}

footer .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

footer .brand {
  font-size: 22px;
  margin: 0 0 6px;
}

footer .brand .mark {
  width: 24px;
  height: 24px;
}

.legal-links {
  display: flex;
  gap: 22px;
}

.legal-links a {
  color: var(--text2);
}

.legal-links a:hover {
  color: var(--text);
}

/* ---------- legal pages ---------- */

.legal-head {
  padding: 56px 0 28px;
}

.legal-head h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin: 10px 0 12px;
}

.legal-head p {
  color: var(--text2);
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
}

.legal-body .lead {
  font-size: 18px;
  color: var(--text);
}

.legal-body h2 {
  font-size: 24px;
  margin: 40px 0 12px;
}

.legal-body p,
.legal-body li {
  color: var(--text2);
  margin-bottom: 14px;
}

.legal-body strong {
  color: var(--text);
  font-weight: 600;
}

.legal-body ul {
  padding-left: 22px;
}

.legal-body li {
  margin-bottom: 10px;
}

.legal-back {
  display: inline-block;
  margin-top: 32px;
  color: var(--accent-text);
}

.notice {
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--surface);
  padding: 18px 20px;
  margin: 18px 0 22px;
}

.notice p {
  color: var(--text);
  margin-bottom: 0;
}

.notice p + p {
  margin-top: 10px;
}

/* ---------- 404 ---------- */

.lost {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 72px 0;
}

.lost h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin: 10px 0 12px;
}

.lost p {
  color: var(--text2);
  margin-bottom: 24px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .topnav {
    display: none;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    padding-top: 48px;
  }

  .fan {
    /* An explicit width: a grid item with auto margins and only absolutely
       positioned children would otherwise collapse to nothing. */
    width: 100%;
    max-width: 440px;
    height: 400px;
    margin: 0 auto;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .posters {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .samples {
    grid-template-columns: repeat(2, minmax(0, 300px));
  }
}

@media (max-width: 560px) {
  .band {
    padding: 56px 0;
  }

  .fan {
    height: 320px;
  }

  .samples {
    grid-template-columns: minmax(0, 300px);
  }

  .cta-row .btn,
  .closing .btn {
    width: 100%;
  }

  footer .shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .play i {
    transition: none;
  }
}
