/* Landing page only. Tokens come from styles.css. */

/* Hero: wall of real posters behind a flat dark overlay, no gradient.
   Its columns drift slowly, each one against its neighbours; still for reduced motion. */
.hero { position: relative; display: grid; align-content: center; min-height: 100svh; overflow: hidden; padding-block: 96px 64px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .72); }
.hero-wall { position: absolute; inset: -96px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; gap: 12px; transform: rotate(-6deg); pointer-events: none; }
.hero-wall > div { display: grid; gap: 12px; animation: drift 60s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; will-change: transform; }
.hero-wall > div:nth-child(even) { animation-direction: alternate-reverse; }
.hero-wall > div:nth-child(n+5) { display: none; }
.hero-wall img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: 8px; object-fit: cover; }
@keyframes drift { to { transform: translateY(-15%); } }
.hero > .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 680px; margin: 24px auto 0; padding-bottom: 4px; background: linear-gradient(90deg, #FFFFFF, #9B9B9B); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.875rem; line-height: 2.25rem; }
.lede { max-width: 680px; margin: 24px auto 0; color: #D4D4D4; font-size: 1.125rem; line-height: 1.75rem; }
.proof { margin-top: 32px; }
.proof figcaption { margin-top: 4px; }
@media (min-width: 768px) {
  .hero-wall { grid-template-columns: repeat(8, 1fr); }
  .hero-wall > div:nth-child(n+5) { display: grid; }
  .hero h1 { font-size: 3.75rem; line-height: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wall > div { animation: none; }
}

/* Email signup, Netflix style: one field, one button */
.join { display: grid; gap: 12px; max-width: 560px; margin: 32px auto 0; text-align: left; }
.join label { color: var(--text); text-align: center; }
.join-row { display: flex; flex-direction: column; gap: 8px; }
.join input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid #4A4A4A; border-radius: 12px; background: rgba(0, 0, 0, .6); color: var(--text); font: inherit; transition: border-color .3s var(--ease); }
.join input::placeholder { color: #8A8A8A; }
.join input:hover { border-color: #6B6B6B; }
.join input[aria-invalid="true"] { border-color: var(--danger); }
.join .btn { padding-block: 12px; }
.join .small { text-align: center; }
@media (min-width: 640px) {
  .join-row { flex-direction: row; }
}

/* Trailer */
.frame { padding: 8px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.frame figcaption { padding: 12px 8px 4px; }

/* Tagline reveal (B11) */
.tagline { max-width: 680px; margin-inline: auto; font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; }
.js .tagline .w { opacity: .3; transition: opacity .5s var(--ease); }
.js .tagline .w.on { opacity: 1; }
@media (min-width: 768px) {
  .tagline { font-size: 3rem; line-height: 1; }
  .tagline .line { display: block; }
}

/* Row headings are bigger on the landing page */
.row-head h2 { font-size: 1.875rem; line-height: 2.25rem; }
.row-gap { margin-top: 64px; }
@media (min-width: 768px) {
  .row-head h2 { font-size: 2.25rem; line-height: 2.5rem; }
}

/* How it works, reviews, pricing */
.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 9999px; background: var(--surface-3); color: var(--accent); font-weight: 600; }
.quote blockquote { font-size: 1.125rem; line-height: 1.75rem; }
.quote figcaption { margin-top: 16px; color: var(--muted); font-size: .875rem; line-height: 1.25rem; }
.quote figcaption strong { display: block; color: var(--text); font-weight: 600; }
.card .price { margin-top: 16px; color: var(--text); font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; }
.price span { color: var(--muted); font-size: 1rem; line-height: 1.5rem; font-weight: 400; }
.plan .btn { width: 100%; margin-top: 24px; }
.plan .small { margin-top: 24px; }

/* FAQ */
.faq { display: grid; gap: 8px; max-width: 768px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-radius: 16px; font-weight: 500; list-style: none; cursor: pointer; transition: background-color .3s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }
.faq summary .ph { flex: none; font-size: 1.25rem; transition: transform .5s var(--ease); }
.faq details[open] summary .ph { transform: rotate(45deg); }
.faq details p { padding: 0 24px 24px; color: var(--muted); }

/* Final CTA */
.final { padding: 48px 24px; text-align: center; }
.final h2 { font-size: 1.875rem; line-height: 2.25rem; }
.final .join { margin-top: 24px; }
.final .join p { margin: 0; }
@media (min-width: 768px) {
  .final h2 { font-size: 2.25rem; line-height: 2.5rem; }
}
