/*
 * "What should I watch tonight?" visual design (ported from the Lovable mock in
 * hipposbuild/what-to-watch-quiz). ONE stylesheet used by both the static entry
 * page (public/what-to-watch/index.html, via <link>) and the React quiz
 * (src/pages/WhatToWatch.tsx adds the same <link>), so the two never drift.
 * Action green stays reserved for things you can press (brand rule).
 */
@font-face {
  font-family: 'Bernoru';
  src: url('/fonts/bernoru-blackultraexpanded.otf') format('opentype');
  font-display: swap;
}
:root {
  --q-bg: #121210;
  --q-fg: #f3f2ec;
  --q-secondary: #1d1d1b;
  --q-accent: #2a3020;
  --q-border: #333331;
  --q-muted: #9a9a95;
  --q-primary: #6b7c3a;
  --q-primary-light: #8fa44d;
  --q-gold: #e8b948;
  --q-shade: rgba(8, 6, 6, 0.48);
}

body.q-page {
  margin: 0;
  background: var(--q-bg);
  color: var(--q-fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.q-page a {
  text-decoration: none;
}
.q-page button,
.q-page a {
  -webkit-tap-highlight-color: transparent;
}

/* ── Header and footer ─────────────────────────────────────────────────── */
.q-header {
  min-height: 100px;
  padding: 0 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--q-border);
  background: var(--q-bg);
  position: relative;
  z-index: 2;
}
.q-header-left,
.q-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.q-header-right {
  justify-content: flex-end;
}
.q-header-center {
  text-align: center;
  color: var(--q-fg);
}
.q-brand {
  display: block;
  font-family: 'Bernoru', 'DM Sans', sans-serif;
  font-size: 30px;
  line-height: 1;
  color: var(--q-fg);
  letter-spacing: 0.02em;
}
.q-header-note {
  font-size: 12px;
  color: var(--q-muted);
  margin-top: 9px;
}
.q-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--q-muted);
}
.q-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--q-fg);
  font-size: 15px;
  font-weight: 500;
}
.q-link:hover {
  color: var(--q-primary-light);
}
.q-footer {
  border-top: 1px solid var(--q-border);
  padding: 25px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--q-muted);
  font-size: 11px;
  position: relative;
  z-index: 2;
  background: var(--q-bg);
}
.q-footer-left {
  display: flex;
  gap: 18px;
  align-items: center;
}
.q-footer-brand {
  font-family: 'Bernoru', 'DM Sans', sans-serif;
  color: var(--q-fg);
  font-size: 15px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.q-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--q-primary);
  color: #fbfbf4;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.q-btn:hover {
  background: var(--q-primary-light);
}
.q-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.q-btn--outline {
  background: transparent;
  border-color: var(--q-border);
  color: var(--q-fg);
}
.q-btn--outline:hover {
  background: var(--q-secondary);
  border-color: var(--q-muted);
}
.q-btn--ghost {
  background: transparent;
  color: var(--q-muted);
  padding: 0 10px;
}
.q-btn--ghost:hover {
  background: var(--q-secondary);
  color: var(--q-fg);
}
.q-btn--big {
  height: 53px;
  padding: 0 30px;
  font-size: 15px;
}

/* ── Landing hero ──────────────────────────────────────────────────────── */
.q-hero {
  height: 650px;
  position: relative;
  display: flex;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: url('/img/cinema.jpg') center 57% / cover no-repeat;
}
.q-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--q-shade);
}
.q-hero-copy {
  position: relative;
  z-index: 1;
  padding: 79px 22px 0;
  max-width: 680px;
}
.q-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--q-gold);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
}
.q-eyebrow--left {
  justify-content: flex-start;
}
.q-hero h1 {
  font-size: 58px;
  line-height: 1.1;
  font-weight: 700;
  margin: 24px 0 18px;
}
.q-hero h1 span {
  color: var(--q-primary);
  font-style: italic;
}
.q-hero-desc {
  color: var(--q-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 470px;
  margin: 0 auto 26px;
}
.q-hero-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: var(--q-muted);
  margin-top: 20px;
  flex-wrap: wrap;
}
.q-hero-details span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.q-hero-bottom {
  position: absolute;
  bottom: 23px;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--q-muted);
}

/* ── Landing sections (how it works, questions) ───────────────────────── */
.q-section {
  max-width: 1480px;
  margin: auto;
  padding: 48px clamp(24px, 5vw, 72px) 56px;
  position: relative;
  z-index: 2;
}
.q-section h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 6px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.q-section .q-section-sub {
  font-size: 13px;
  color: var(--q-muted);
  margin: 0 0 24px;
}
.q-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.q-step {
  background: var(--q-secondary);
  border: 1px solid var(--q-border);
  border-radius: 8px;
  padding: 24px;
}
.q-step .q-num {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--q-primary);
  text-transform: uppercase;
  font-weight: 600;
}
.q-step h3 {
  font-size: 21px;
  margin: 8px 0 8px;
  font-weight: 600;
}
.q-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--q-muted);
}
.q-faq details {
  background: var(--q-secondary);
  border: 1px solid var(--q-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.q-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}
.q-faq details p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--q-muted);
}

/* ── Quiz stage ────────────────────────────────────────────────────────── */
.q-stage {
  min-height: 700px;
  position: relative;
  display: flex;
  justify-content: center;
  padding: 58px 24px 70px;
  overflow: hidden;
}
.q-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/img/cinema.jpg') center 57% / cover no-repeat;
  opacity: 0.21;
}
.q-content {
  position: relative;
  width: 100%;
  max-width: 640px;
  z-index: 1;
}
.q-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.q-progress {
  display: flex;
  gap: 7px;
  margin-bottom: 50px;
}
.q-progress span {
  flex: 1;
  height: 3px;
  background: var(--q-border);
}
.q-progress span.complete {
  background: var(--q-primary);
}
.q-count {
  color: var(--q-primary);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.q-title {
  font-size: 37px;
  line-height: 1.2;
  margin: 15px 0 12px;
  font-weight: 700;
}
.q-sub {
  font-size: 14px;
  color: var(--q-muted);
  margin: 0 0 28px;
}
.q-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.q-answer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 106px;
  padding: 20px;
  text-align: left;
  border-radius: 8px;
  border: 1px solid var(--q-border);
  background: rgba(29, 29, 27, 0.9);
  color: var(--q-fg);
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.12s;
}
.q-answer:hover {
  border-color: var(--q-primary);
  background: var(--q-accent);
}
.q-answer.picked,
.q-answer:active {
  border-color: var(--q-primary-light);
  background: var(--q-accent);
  transform: scale(0.98);
}
.q-answer svg {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  color: var(--q-primary);
}
.q-answer-label {
  font-size: 16px;
  display: block;
  font-weight: 500;
}
.q-answer-sub {
  display: block;
  font-size: 11px;
  color: var(--q-muted);
  margin-top: 5px;
}
.q-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.q-chip {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--q-border);
  background: rgba(29, 29, 27, 0.9);
  color: var(--q-fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s;
}
.q-chip:hover {
  border-color: var(--q-primary);
}
.q-chip[aria-pressed='true'] {
  color: #fff;
  border-color: transparent;
}
.q-fine {
  color: var(--q-muted);
  font-size: 11px;
  text-align: center;
  margin-top: 28px;
}

/* ── Result ────────────────────────────────────────────────────────────── */
.q-result {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  margin-top: 28px;
}
.q-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  background: var(--q-secondary);
}
.q-cover img,
.q-cover-fallback {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.q-cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--q-muted);
}
.q-format {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--q-primary);
  text-transform: uppercase;
  font-weight: 600;
}
.q-name {
  font-size: 38px;
  line-height: 1.1;
  margin: 10px 0;
  font-weight: 700;
}
.q-meta {
  font-size: 12px;
  color: var(--q-muted);
  margin: 0 0 6px;
}
.q-meta a {
  color: var(--q-primary-light);
  text-decoration: underline;
}
.q-vibe {
  font-size: 13px;
  color: var(--q-gold);
  margin: 0 0 10px;
}
.q-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}
.q-pills li {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.q-synopsis {
  font-size: 14px;
  line-height: 1.8;
  color: var(--q-muted);
  margin-top: 14px;
}
.q-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  flex-wrap: wrap;
}
.q-also {
  margin-top: 40px;
}
.q-also h2 {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--q-muted);
  margin: 0 0 14px;
  font-weight: 600;
}
.q-also ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.q-also li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: start;
}
.q-also .q-pick-title {
  font-size: 17px;
  font-weight: 600;
  margin: 6px 0 4px;
}
.q-box {
  margin-top: 36px;
  border: 1px solid var(--q-border);
  border-radius: 8px;
  padding: 18px;
  background: rgba(29, 29, 27, 0.7);
}
.q-box p {
  margin: 0;
}
.q-box .q-box-sub {
  font-size: 12px;
  color: var(--q-muted);
  margin: 4px 0 14px;
  line-height: 1.6;
}
.q-notice {
  font-size: 12px;
  color: var(--q-gold);
  margin: 0 0 14px;
}
.q-alert {
  font-size: 13px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}
.q-enter {
  animation: q-enter 0.4s ease-out;
}
@keyframes q-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .q-enter {
    animation: none;
  }
  .q-answer,
  .q-btn,
  .q-chip {
    transition: none;
  }
}

/* ── Phone ─────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .q-header {
    min-height: 83px;
    padding: 12px 22px;
    grid-template-columns: 70px 1fr 70px;
  }
  .q-header-left .q-label,
  .q-header-right .q-link-text {
    display: none;
  }
  .q-brand {
    font-size: 24px;
  }
  .q-header-note {
    font-size: 10px;
  }
  .q-hero {
    height: 605px;
    background-position: center;
  }
  .q-hero-copy {
    padding: 80px 22px 0;
  }
  .q-hero h1 {
    font-size: 42px;
  }
  .q-hero-desc {
    font-size: 14px;
    max-width: 330px;
  }
  .q-hero-details {
    gap: 12px;
    font-size: 10px;
  }
  .q-section {
    padding: 30px 22px 35px;
  }
  .q-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .q-footer {
    padding: 24px 22px;
    align-items: flex-start;
  }
  .q-footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .q-stage {
    padding-top: 30px;
    min-height: 690px;
  }
  .q-progress {
    margin-bottom: 35px;
  }
  .q-title {
    font-size: 30px;
  }
  .q-answers {
    grid-template-columns: 1fr;
  }
  .q-answer {
    min-height: 77px;
  }
  .q-chips {
    grid-template-columns: 1fr 1fr;
  }
  .q-result {
    grid-template-columns: 125px 1fr;
    gap: 18px;
  }
  .q-name {
    font-size: 28px;
  }
  .q-synopsis {
    font-size: 12px;
  }
  .q-actions {
    grid-column: 1 / -1;
  }
  .q-also ul {
    grid-template-columns: 1fr;
  }
}

/* ── Info pages (how it works, FAQ, for filmmakers) ───────────────────────── */
.q-hero--page {
  /* The photo ends right after the buttons. */
  height: auto;
  min-height: 0;
  padding-bottom: 56px;
}
.q-hero--page .q-hero-copy {
  padding-top: 84px;
  max-width: 780px;
}
.q-hero--page h1 {
  font-size: 52px;
}
.q-hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.q-steps--2 {
  grid-template-columns: repeat(2, 1fr);
}
.q-step--wide {
  grid-column: 1 / -1;
  background: var(--q-accent);
}
.q-step ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--q-muted);
}
.q-step strong,
.q-faq strong {
  color: var(--q-fg);
}
.q-step a,
.q-faq a:not(.q-btn) {
  color: var(--q-primary-light);
  text-decoration: underline;
}
.q-faq details ul {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  font-size: 14px;
  line-height: 1.7;
  color: var(--q-muted);
}
.q-faq details > p + p,
.q-faq details > p + ul {
  margin-top: 10px;
}
.q-cta-band {
  margin-top: 36px;
  text-align: center;
}
.q-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.q-footer-links a {
  color: inherit;
}
.q-footer-links a:hover {
  color: var(--q-fg);
}
@media (max-width: 700px) {
  .q-hero--page {
    padding-bottom: 40px;
  }
  .q-hero--page .q-hero-copy {
    padding-top: 56px;
  }
  .q-hero--page h1 {
    font-size: 34px;
  }
  .q-steps--2 {
    grid-template-columns: 1fr;
  }
}

/* FAQ: accordions side by side on wide screens (open one does not stretch its neighbor). */
@media (min-width: 900px) {
  .q-faq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
    align-items: start;
  }
  .q-faq details {
    margin-bottom: 0;
  }
  .q-faq .q-cta-band {
    grid-column: 1 / -1;
  }
}
