:root {
  --ink: #14202e;
  --ink-2: #243247;
  --paper: #ffffff;
  --paper-soft: #f6f8fb;
  --line: #dfe5ec;
  --coral: #f45f5f;
  --coral-dark: #cf3f46;
  --teal: #18b99e;
  --gold: #f5b641;
  --blue: #1f6fb2;
  --navy: #07111f;
  --muted: #64748b;
  --shadow: 0 18px 48px rgba(20, 32, 46, 0.14);
  --radius: 8px;
  --shell: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.narrow {
  max-width: 790px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 229, 236, 0.8);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--paper);
  background: linear-gradient(135deg, var(--coral), var(--teal));
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(244, 95, 95, 0.3);
}

.brand-text {
  overflow-wrap: anywhere;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  padding: 10px 12px;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a[aria-current="page"] {
  color: var(--coral-dark);
  background: #fff1f1;
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle-line {
  width: 20px;
  height: 2px;
  display: block;
  background: var(--ink);
  margin: 3px 0;
}

.hero {
  position: relative;
  min-height: clamp(500px, 70svh, 620px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
  background-image: url("../assets/movie-trivia-hero.png");
  background-size: cover;
  background-position: center right;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.94) 0%, rgba(7, 17, 31, 0.82) 36%, rgba(7, 17, 31, 0.16) 100%),
    linear-gradient(180deg, rgba(7, 17, 31, 0.08) 0%, rgba(7, 17, 31, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 48px 0 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.85rem, 6vw, 5.4rem);
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.6rem);
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0;
  color: var(--muted);
}

.hero-copy {
  max-width: 650px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.03rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.button-primary {
  color: var(--paper);
  background: var(--coral);
  box-shadow: 0 12px 30px rgba(244, 95, 95, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--coral-dark);
  outline: none;
}

.button-ghost {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.09);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.metric-strip div {
  padding: 18px;
  background: rgba(7, 17, 31, 0.44);
}

.metric-strip strong {
  display: block;
  color: var(--paper);
  font-size: 1.55rem;
  line-height: 1;
}

.metric-strip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.section {
  padding: clamp(64px, 9vw, 108px) 0;
}

.section-light {
  background: var(--paper);
}

.section-muted {
  background: var(--paper-soft);
}

.section-ink {
  color: var(--paper);
  background: var(--navy);
}

.section-ink p {
  color: rgba(255, 255, 255, 0.78);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: start;
  gap: clamp(32px, 6vw, 72px);
}

.split-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
}

.split h2 + p,
.section-heading h2 + p {
  margin-top: 18px;
}

.split p + p {
  margin-top: 16px;
}

.feature-grid {
  display: grid;
  gap: 18px;
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.info-panel,
.contact-panel,
.support-form,
.statement-panel,
.accordion,
.legal-content,
.legal-nav {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(20, 32, 46, 0.06);
}

.feature-card {
  padding: 24px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
  font-weight: 900;
}

.feature-card:nth-child(2n) .feature-icon {
  background: var(--teal);
}

.feature-card:nth-child(3n) .feature-icon {
  background: var(--gold);
  color: var(--ink);
}

.feature-card p {
  margin-top: 10px;
}

.statement-panel {
  padding: clamp(28px, 4vw, 46px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.check-list {
  display: grid;
  gap: 16px;
}

.check-list div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.check-list span {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 0 0 6px var(--navy);
}

.callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.contact-tiles {
  display: grid;
  gap: 10px;
}

.contact-tiles a,
.contact-method a,
.details-list a,
.legal-content a,
.accordion a {
  color: var(--blue);
  font-weight: 800;
}

.contact-tiles a {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}

.page-hero {
  padding: clamp(74px, 11vw, 132px) 0 clamp(54px, 8vw, 92px);
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.94), rgba(20, 32, 46, 0.86)),
    url("../assets/movie-trivia-hero.png");
  background-size: cover;
  background-position: center right;
}

.page-hero p {
  max-width: 750px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.legal-hero {
  padding-bottom: clamp(42px, 7vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.info-panel,
.contact-panel,
.support-form {
  padding: clamp(24px, 4vw, 36px);
}

.details-list {
  display: grid;
  gap: 18px;
  margin: 22px 0 0;
}

.details-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.details-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.details-list dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.details-list dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mode-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.mode-row {
  display: grid;
  grid-template-columns: 1fr 2fr 0.7fr 0.8fr;
  gap: 1px;
  border-bottom: 1px solid var(--line);
}

.mode-row:last-child {
  border-bottom: 0;
}

.mode-row span {
  padding: 18px;
  background: var(--paper);
  overflow-wrap: anywhere;
}

.mode-head span {
  color: var(--paper);
  background: var(--ink);
  font-weight: 900;
}

.mode-row:not(.mode-head) span:first-child {
  font-weight: 900;
}

.contact-panel {
  display: grid;
  gap: 18px;
}

.contact-method {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.contact-method span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.support-form {
  display: grid;
  gap: 10px;
}

.support-form label {
  margin-top: 8px;
  font-weight: 900;
}

.support-form input,
.support-form textarea,
.support-form select {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.support-form input:focus,
.support-form textarea:focus,
.support-form select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(31, 111, 178, 0.14);
}

.support-form .button {
  margin-top: 10px;
}

.form-status {
  min-height: 24px;
  font-weight: 800;
}

.form-status.is-error {
  color: var(--coral-dark);
}

.form-status.is-success {
  color: #0f826e;
}

.faq-list {
  max-width: 880px;
}

.accordion {
  margin-bottom: 14px;
  overflow: hidden;
}

.accordion button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-weight: 900;
}

.accordion button:focus-visible {
  outline: 3px solid rgba(31, 111, 178, 0.22);
  outline-offset: -3px;
}

.accordion-panel {
  display: none;
  padding: 0 22px 22px;
}

.accordion.is-open .accordion-panel {
  display: block;
}

.accordion.is-open button span:last-child {
  transform: rotate(45deg);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 96px;
  display: grid;
  padding: 12px;
  box-shadow: none;
}

.legal-nav a {
  padding: 12px 14px;
  color: var(--ink-2);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 900;
}

.legal-nav a:hover,
.legal-nav a:focus-visible,
.legal-nav a[aria-current="page"] {
  color: var(--coral-dark);
  background: #fff1f1;
  outline: none;
}

.legal-content {
  padding: clamp(24px, 5vw, 48px);
}

.legal-content section + section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-content p {
  margin-top: 12px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0 34px;
}

.footer-brand {
  color: var(--paper);
}

.site-footer p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.66);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--paper);
  font-size: 1rem;
}

.site-footer div:not(.shell):not(.footer-grid):not(.footer-bottom) a,
.footer-grid > div:nth-child(2) a,
.footer-grid > div:nth-child(3) a {
  display: block;
  margin: 8px 0;
}

.footer-bottom {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
  }

  .nav-menu {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: grid;
  }

  .nav-menu a {
    padding: 12px;
  }

  .hero {
    min-height: 620px;
    background-position: 68% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 17, 31, 0.96) 0%, rgba(7, 17, 31, 0.86) 44%, rgba(7, 17, 31, 0.5) 100%),
      linear-gradient(90deg, rgba(7, 17, 31, 0.7), rgba(7, 17, 31, 0.34));
  }

  .split,
  .split-reverse,
  .callout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid.three,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-nav {
    position: static;
  }

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

@media (max-width: 640px) {
  :root {
    --shell: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 66px;
  }

  .brand-text {
    max-width: 190px;
    line-height: 1.1;
  }

  .hero {
    min-height: 610px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .hero-content {
    padding: 34px 0 40px;
  }

  .metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-strip div {
    padding: 10px 8px;
  }

  .metric-strip strong {
    font-size: 1.08rem;
  }

  .metric-strip span {
    font-size: 0.78rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 148px;
  }

  .support-form .button {
    width: 100%;
  }

  .feature-grid.three,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .mode-table {
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .mode-row,
  .mode-head {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .mode-head {
    display: none;
  }

  .mode-row span {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .mode-row span:last-child {
    border-bottom: 0;
  }

  .contact-tiles a {
    white-space: normal;
  }

  .page-hero {
    background-position: 68% center;
  }
}
