@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 800;
  font-style: italic;
  font-display: swap;
  src: url('fonts/barlow-condensed-800-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/barlow-condensed-700.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600.woff2') format('woff2');
}

/* Same tokens as theme/ in the app. */
:root {
  --ink: #14102b;
  --volt: #d7ff3a;
  --coral: #ff4d6d;
  --sky: #3dd6f5;
  --grape: #7b3ff2;
  --chalk: #f7f6fb;
  --bg: var(--chalk);
  --surface: #fff;
  --text: var(--ink);
  --muted: #5b5575;
  --line: #dcd8ea;
  --bubble: #ece9f6;
  --accent: #6a2fe0;
  --sweep: linear-gradient(90deg, var(--grape), var(--coral), var(--sky));
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --surface: #1f1940;
    --text: var(--chalk);
    --muted: #b4add0;
    --line: #3b3268;
    --bubble: #2b2354;
    --accent: #bba0ff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    400 1.0625rem/1.6 Inter,
    system-ui,
    sans-serif;
  overflow-x: clip;
}
h1,
h2,
h3,
p,
ul,
ol,
figure,
ul,
ol {
  list-style: none;
}
h1,
h2,
h3 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.98;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}
h3 {
  font-size: 1.75rem;
}
p {
  max-width: 62ch;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 4px;
  border-radius: 2px;
}
[id] {
  scroll-margin-top: 1.5rem;
}
.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 9;
  background: var(--volt);
  color: var(--ink);
  padding: 0.75rem 1rem;
}
.skip:focus {
  top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.75rem 2rem;
  background: var(--volt);
  color: var(--ink);
  font:
    700 1.375rem/1 'Barlow Condensed',
    sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transform: skewX(-12deg);
  border-radius: 4px;
  transition: transform 160ms cubic-bezier(0.3, 1.6, 0.6, 1);
}
.button span {
  transform: skewX(12deg);
}
.button:hover {
  transform: skewX(-12deg) translateX(6px);
}
.button:active {
  transform: skewX(-12deg) scale(0.96);
}
.button.dark {
  background: var(--ink);
  color: var(--volt);
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
}

/* Hero: ink in both themes */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--chalk);
  padding-bottom: clamp(6rem, 12vw, 9rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: calc(5vw + 8px);
  background: var(--sweep);
  clip-path: polygon(0 calc(100% - 8px), 100% 0, 100% 8px, 0 100%);
}
.nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.25rem;
}
.nav ul {
  display: flex;
  gap: 2rem;
}
.nav li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.nav li a:hover {
  color: var(--volt);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  color: #fff;
  text-decoration: none;
  font:
    italic 800 2rem/1 'Barlow Condensed',
    sans-serif;
  text-transform: uppercase;
}
.logo svg {
  width: 2.5rem;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-top: clamp(2rem, 6vw, 5rem);
}
.eyebrow {
  color: var(--volt);
  font:
    700 1.25rem/1.2 'Barlow Condensed',
    sans-serif;
}
h1 {
  font-size: clamp(3.75rem, 10vw, 7.5rem);
  line-height: 0.88;
  margin: 0.75rem 0 1.5rem;
  color: #fff;
}
.lede {
  font-size: 1.1875rem;
  max-width: 34rem;
  color: #dcd7ee;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.25rem;
  margin-top: 2rem;
  padding-left: 0.4rem;
}

.streaks {
  position: absolute;
  inset: 0;
  transform: rotate(-14deg) scale(1.2);
  pointer-events: none;
}
.streaks i {
  position: absolute;
  right: -8%;
  border-radius: 0 99px 99px 0;
  transform-origin: left;
  animation: shoot 250ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.streaks i:nth-child(1) {
  top: 12%;
  width: 42%;
  height: 26px;
  background: linear-gradient(90deg, transparent, var(--coral));
}
.streaks i:nth-child(2) {
  top: 50%;
  width: 30%;
  height: 9px;
  background: linear-gradient(90deg, transparent, var(--volt));
  animation-delay: 50ms;
}
.streaks i:nth-child(3) {
  top: 36%;
  width: 46%;
  height: 44px;
  background: linear-gradient(90deg, transparent, var(--grape));
  animation-delay: 100ms;
}
.streaks i:nth-child(4) {
  top: 62%;
  width: 36%;
  height: 20px;
  background: linear-gradient(90deg, transparent, var(--sky));
  animation-delay: 150ms;
}
.streaks i:nth-child(5) {
  top: 78%;
  width: 50%;
  height: 34px;
  background: linear-gradient(90deg, transparent, var(--coral));
  animation-delay: 200ms;
}
@keyframes shoot {
  from {
    transform: translateX(-60%) scaleX(0.3);
    opacity: 0;
  }
}

.game {
  background: var(--surface);
  color: var(--text);
  border-radius: 18px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 2rem 4rem rgb(0 0 0 / 0.45);
}
.game-head {
  position: relative;
  padding: 1.5rem 1.5rem 2.5rem;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 0 100%);
}
.game-head p {
  font:
    700 1.125rem/1.3 'Barlow Condensed',
    sans-serif;
}
.game-head h2 {
  font-size: 2rem;
  max-width: 11ch;
}
.game-body {
  padding: 1.25rem 1.5rem 0.75rem;
}
.spots {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}
.spots li {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--grape);
  animation: fill 220ms cubic-bezier(0.3, 1.7, 0.6, 1) both;
}
.spots li:nth-child(3n + 1) {
  background: var(--coral);
}
.spots li:nth-child(3n + 2) {
  background: var(--sky);
}
.spots li:last-child {
  background: var(--volt);
  box-shadow: 0 0 0 3px var(--ink);
}
.spots li:nth-child(1) {
  animation-delay: 0.3s;
}
.spots li:nth-child(2) {
  animation-delay: 0.4s;
}
.spots li:nth-child(3) {
  animation-delay: 0.5s;
}
.spots li:nth-child(4) {
  animation-delay: 0.6s;
}
.spots li:nth-child(5) {
  animation-delay: 0.7s;
}
.spots li:nth-child(6) {
  animation-delay: 0.8s;
}
.spots li:nth-child(7) {
  animation-delay: 0.9s;
}
.spots li:nth-child(8) {
  animation-delay: 1s;
}
.spots li:nth-child(9) {
  animation-delay: 1.1s;
}
.spots li:nth-child(10) {
  animation-delay: 1.2s;
}
.spots li:nth-child(11) {
  animation-delay: 1.3s;
}
.spots li:nth-child(12) {
  animation-delay: 1.4s;
}
.spots li:nth-child(13) {
  animation-delay: 1.5s;
}
.spots li:nth-child(14) {
  animation-delay: 1.9s;
}
@keyframes fill {
  from {
    background: var(--line);
    transform: scale(0.6);
  }
}
.game-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
}
.price {
  background: var(--volt);
  color: var(--ink);
  padding: 0.25rem 1.5rem;
  transform: skewX(-12deg);
  border-radius: 4px;
  font:
    italic 800 2.25rem/1.2 'Barlow Condensed',
    sans-serif;
}
.price span {
  display: block;
  transform: skewX(12deg);
}
.in {
  font:
    italic 800 2.25rem/1 'Barlow Condensed',
    sans-serif;
  text-transform: uppercase;
  animation: pop 250ms 2.05s cubic-bezier(0.3, 1.7, 0.6, 1) both;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
}
.game figcaption {
  padding: 0 1.5rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

section {
  padding-block: clamp(4rem, 9vw, 7rem);
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: start;
}
.chat,
.sorted {
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.chat {
  border: 1px solid var(--line);
}
.chat ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.chat li {
  background: var(--bubble);
  border-radius: 14px 14px 14px 3px;
  padding: 0.6rem 1rem;
  max-width: 85%;
}
.chat li.right {
  align-self: flex-end;
  border-radius: 14px 14px 3px 14px;
}
.sorted {
  background: var(--ink);
  color: var(--chalk);
  border: 1px solid var(--line);
}
.sorted h3 {
  color: var(--volt);
  font-size: 2.25rem;
}
.sorted ul,
.ticks {
  margin-top: 1.25rem;
}
.sorted li,
.ticks li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2rem;
}
.sorted li::before,
.ticks li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 1.05rem;
  width: 1rem;
  height: 0.5rem;
  border: solid currentColor;
  border-width: 0 0 3px 3px;
  transform: rotate(-45deg);
}
.sorted li::before {
  border-color: var(--volt);
}

.band {
  background: var(--surface);
  clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
}
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 3rem;
  margin-top: 3rem;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: block;
  font:
    italic 800 5.5rem/0.85 'Barlow Condensed',
    sans-serif;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.steps p {
  color: var(--muted);
  margin-top: 0.5rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.split article {
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.split .volt {
  background: var(--volt);
  color: var(--ink);
  border-color: var(--volt);
}
.split .button {
  margin: 1.75rem 0 0 0.4rem;
}

.grape {
  background: var(--grape);
  color: #fff;
}
.price-copy p {
  margin-top: 1.25rem;
  font-size: 1.125rem;
}

.questions h2 {
  margin-bottom: 1.5rem;
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 4rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  font:
    700 2rem/1 'Barlow Condensed',
    sans-serif;
  color: var(--accent);
}
details[open] summary::after {
  content: '–';
}
details p {
  padding-bottom: 1.5rem;
  color: var(--muted);
}

.final {
  color: #fff;
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
  padding-block: clamp(6rem, 12vw, 9rem) clamp(4rem, 8vw, 6rem);
}
.final h2 {
  font-size: clamp(3rem, 8vw, 5.5rem);
}
.final p {
  margin: 1rem 0 2rem;
  max-width: 24rem;
}
.final .button {
  margin-left: 0.4rem;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-right: 1.25rem;
}
.foot p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.page {
  padding-block: 3rem 5rem;
}
.page h1 {
  color: var(--text);
  font-size: clamp(3rem, 8vw, 5rem);
}
.page h2 {
  font-size: 1.75rem;
  margin: 2rem 0 0.5rem;
}
.plain-head {
  background: var(--ink);
  border-bottom: 6px solid;
  border-image: var(--sweep) 1;
}

@media (max-width: 52rem) {
  .hero-grid,
  .compare-grid,
  .split,
  .steps {
    grid-template-columns: 1fr;
  }
  .game {
    transform: none;
    max-width: 26rem;
  }
  .streaks {
    opacity: 0.35;
  }
  .steps li {
    display: grid;
    grid-template-columns: 4rem 1fr;
  }
  .steps li::before {
    grid-row: span 2;
    font-size: 4.5rem;
  }
}
@media (max-width: 34rem) {
  .nav ul {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Stripes fade out to the left, away from text. */
.final {
  position: relative;
  background: var(--ink);
}
.final::before {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: 45%;
  background: repeating-linear-gradient(120deg, transparent 0 22px, var(--grape) 22px 38px);
  -webkit-mask-image: linear-gradient(90deg, transparent, rgb(0 0 0 / 0.7));
  mask-image: linear-gradient(90deg, transparent, rgb(0 0 0 / 0.7));
}
.final .wrap {
  position: relative;
}
.game-head {
  background: var(--grape);
}
.game-head::before {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: 50%;
  background: repeating-linear-gradient(120deg, transparent 0 14px, #fff 14px 24px);
  -webkit-mask-image: linear-gradient(90deg, transparent, rgb(0 0 0 / 0.4));
  mask-image: linear-gradient(90deg, transparent, rgb(0 0 0 / 0.4));
}
.game-head > * {
  position: relative;
}
.split {
  align-items: start;
}
@media (max-width: 52rem) {
  .streaks {
    inset: 0 0 auto;
    height: 9rem;
    transform: rotate(-14deg);
    opacity: 0.8;
  }
  .streaks i {
    right: -35%;
  }
  .streaks i:nth-child(n) {
    width: 62%;
  }
  .streaks i:nth-child(2) {
    top: 24%;
  }
  .streaks i:nth-child(3) {
    height: 18px;
    top: 48%;
  }
  .streaks i:nth-child(n + 4) {
    display: none;
  }
  .final::before {
    display: none;
  }
}
