/* cinestripe.app — dark, quiet chrome so the film colours carry the page. */

:root {
  --bg: #0c0b0d;
  --surface: #151318;
  --surface-2: #1c1a20;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f4eee6;
  --muted: #a49d96;
  --red: #c8202c;
  --red-hover: #dc2f3b;
  --cream: #fdefd9;
  --good: #52c47a;
  --bad: #ef6a5e;
  --radius: 16px;
  --wrap: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--cream);
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 21px/1 var(--serif);
  letter-spacing: -0.02em;
}

.brand svg {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

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

.nav__link {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.nav__link:hover {
  color: var(--ink);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: 700 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--red);
  color: #fff;
}

.btn--primary:hover {
  background: var(--red-hover);
}

.btn--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.btn--lg {
  min-height: 56px;
  padding: 0 30px;
  font-size: 17px;
}

.btn svg {
  width: 14px;
  height: 14px;
}

/* Hero */

.hero {
  padding: clamp(48px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
}

.hero__grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

@media (min-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr 1.05fr;
  }
}

.hero h1 {
  font-size: clamp(44px, 7vw, 80px);
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(
    90deg,
    #e8b23a,
    #e2492f 35%,
    #c8202c 55%,
    #1f8a9a 80%,
    #3d64c4
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.hero__lede {
  margin-top: 22px;
  max-width: 30em;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 34px;
}

.hero__soon {
  color: var(--muted);
  font-size: 14px;
}

/* Teaser */

.teaser {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.teaser__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.teaser__count {
  font-variant-numeric: tabular-nums;
}

.strip {
  display: flex;
  height: clamp(120px, 18vw, 180px);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.strip span {
  flex: 1 1 0;
  min-width: 0;
}

.teaser__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.option {
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: 600 15px/1.25 var(--sans);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.option:hover:not(:disabled) {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.option:disabled {
  cursor: default;
}

.option.is-right {
  border-color: var(--good);
  background: color-mix(in srgb, var(--good) 14%, transparent);
}

.option.is-wrong {
  border-color: var(--bad);
  background: color-mix(in srgb, var(--bad) 12%, transparent);
}

.option.is-dim {
  opacity: 0.45;
}

.teaser__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  margin-top: 14px;
}

.teaser__result {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.teaser__next {
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 700 15px/1 var(--sans);
  cursor: pointer;
  visibility: hidden;
}

.teaser__next.is-on {
  visibility: visible;
}

.teaser__next:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Strip wall */

.wall {
  display: grid;
  gap: 6px;
  padding: 6px 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.wall__row {
  display: flex;
  gap: 6px;
  width: max-content;
  animation: drift 90s linear infinite;
}

.wall__row:nth-child(2) {
  animation-direction: reverse;
  animation-duration: 110s;
}

.wall .strip {
  width: 360px;
  height: 46px;
  border-radius: 6px;
  flex: none;
}

@keyframes drift {
  to {
    transform: translateX(-50%);
  }
}

/* Sections */

.section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.section__head {
  max-width: 38rem;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section__head h2 {
  font-size: clamp(32px, 4.4vw, 48px);
}

.section__head p {
  margin-top: 14px;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--cream);
  color: #1a1412;
  font: 700 15px/1 var(--sans);
}

.steps h3,
.modes h3 {
  font-size: 22px;
}

.steps p,
.modes p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.modes {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .modes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .modes {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mode {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.mode .strip {
  height: 72px;
  border-radius: 0;
}

.mode__body {
  padding: 22px 22px 24px;
}

/* Final call */

.cta {
  padding: clamp(56px, 8vw, 96px) 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(
      120% 140% at 50% 120%,
      color-mix(in srgb, var(--red) 34%, transparent),
      transparent 60%
    ),
    var(--surface);
  text-align: center;
}

.cta h2 {
  font-size: clamp(32px, 5vw, 56px);
}

.cta p {
  margin: 14px auto 30px;
  max-width: 28rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

/* Policy pages */

.doc {
  max-width: 44rem;
  padding: clamp(48px, 8vw, 88px) 0 64px;
}

.doc h1 {
  font-size: clamp(38px, 6vw, 56px);
}

.doc .updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

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

.doc p,
.doc li {
  color: color-mix(in srgb, var(--ink) 86%, var(--bg));
}

.doc p + p {
  margin-top: 14px;
}

.doc > p:first-of-type:not(.updated),
.doc .updated + p {
  margin-top: 28px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 10px;
}

.doc a {
  color: var(--cream);
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .nav__link {
    display: none;
  }

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

  .option {
    min-height: 48px;
  }
}

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

  .wall__row {
    animation: none;
  }
}
