/* Home page layout. Colours, type and components come from /design/ (see design/README.md). */
/* ---------- top bar ---------- */
.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 22px var(--gutter);
}
.top-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.top-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
}
.top-nav a:hover {
  color: var(--ink);
}
.top-account {
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

/* ---------- hero ---------- */
body::before {
  /* a faint wash of colour behind the top of the page */
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 780px;
  background: radial-gradient(60% 90% at 20% 0%, #ece7ff 0%, transparent 70%), radial-gradient(50% 80% at 85% 5%, #ffe9f1 0%, transparent 70%);
  pointer-events: none;
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 640px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2.5vw, 44px);
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(20px, 4vh, 48px) var(--gutter) clamp(36px, 6vh, 64px);
}
.hero-copy {
  text-align: center;
}
.hero h1 {
  margin-top: 22px;
  font-size: var(--size-hero);
  font-weight: var(--weight-heading);
  line-height: var(--lead-heading);
  letter-spacing: var(--track-display);
  text-wrap: balance;
}
.lead {
  max-width: 46ch;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  text-wrap: pretty;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.shots {
  position: relative;
  display: grid;
  justify-items: center;
}
.shot {
  aspect-ratio: 9 / 18;
  object-fit: cover;
  border-radius: 28px;
}
.shot-big {
  width: min(100%, 220px);
  /* white frame, then thin TikTok-coloured edges on two sides */
  box-shadow: var(--shadow-float), 0 0 0 6px #fff, -5px 5px 0 6px var(--tt-cyan), 5px -5px 0 6px var(--tt-red);
}
.shot-small {
  width: min(62%, 136px);
  margin-top: -64px;
  border-radius: 22px;
  box-shadow: 0 24px 48px rgba(24, 20, 70, 0.26), 0 0 0 5px #fff, 0 0 0 6px var(--line);
}
.shots-left .shot-big {
  transform: rotate(-5deg);
}
.shots-left .shot-small {
  justify-self: end;
  transform: rotate(4deg) translateX(8%);
}
.shots-right .shot-big {
  transform: rotate(5deg);
}
.shots-right .shot-small {
  justify-self: start;
  transform: rotate(-4deg) translateX(-8%);
}

/* ---------- numbers under the hero ---------- */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.stats li {
  padding: 22px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}
.stats b {
  display: block;
  color: var(--ink);
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: var(--weight-heading);
  line-height: 1.1;
  letter-spacing: var(--track-heading);
}
.stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- sections ---------- */
.block {
  padding: clamp(64px, 8vw, 112px) var(--gutter);
}
.block > * {
  max-width: var(--wide);
  margin-left: auto;
  margin-right: auto;
}
.block > h2,
.block > .sub {
  text-align: center;
}
.sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}
.tinted {
  background: var(--surface);
}

/* ---------- comparison ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 980px;
  margin-top: 40px;
}
.compare-card {
  padding: 30px;
  border-radius: var(--radius);
}
.compare-card ul {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.compare-card li {
  position: relative;
  padding-left: 30px;
}
.compare-old {
  background: var(--surface);
  color: var(--muted);
}
.compare-old h3 {
  color: var(--ink);
}
/* a drawn cross for the old way */
.compare-old li::before,
.compare-old li::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.72em;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--no);
}
.compare-old li::before {
  transform: rotate(45deg);
}
.compare-old li::after {
  transform: rotate(-45deg);
}
.compare-new {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--violet), var(--shadow-lift);
}
.compare-new li::before {
  left: 3px;
  top: 0.75em;
  width: 11px;
  height: 6px;
}

/* ---------- steps (a real sequence, so numbered) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--violet);
  color: #fff;
  font-weight: var(--weight-heading);
}
.steps p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- reasons ---------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.reasons li {
  padding: 26px 24px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
}
.reasons svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: var(--radius-s);
  background: var(--violet-tint);
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reasons p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- games ---------- */
.games {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.game {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.game-live {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 22px;
}
.game-live img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 18px;
}
.game-body h3 {
  font-size: 28px;
  font-weight: var(--weight-heading);
  letter-spacing: var(--track-heading);
}
.game-body > p {
  margin-top: 10px;
  color: var(--muted);
}
.game-soon {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 26px 24px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.game-soon p {
  color: var(--muted);
  font-size: 16px;
}

/* ---------- pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.plan {
  position: relative;
  display: grid;
  align-content: start;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan-best {
  box-shadow: inset 0 0 0 2px var(--violet), var(--shadow-lift);
}
.plan-flag {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--violet);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.price {
  margin-top: 10px;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: var(--weight-heading);
  line-height: 1.1;
  letter-spacing: var(--track-display);
}
.price span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}
.plan .btn {
  justify-self: start;
}

/* ---------- questions ---------- */
.faq {
  max-width: 760px;
  margin-top: 32px;
}
.faq details {
  margin-top: 10px;
  padding: 0 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.faq summary {
  padding: 18px 0;
  font-weight: 700;
  cursor: pointer;
}
.faq details p {
  padding-bottom: 20px;
  color: var(--muted);
}

/* ---------- closing call ---------- */
.closing {
  margin: clamp(48px, 7vw, 96px) var(--gutter);
  padding: clamp(40px, 6vw, 72px) 24px;
  border-radius: 32px;
  background: var(--violet);
  color: #fff;
  text-align: center;
}
.closing p {
  margin-top: 10px;
  color: #dcd5ff;
  font-size: 18px;
}

/* ---------- footer ---------- */
.foot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 40px;
  align-items: baseline;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 32px var(--gutter) 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.foot-brand {
  color: var(--ink);
  font-size: 21px;
  font-weight: var(--weight-heading);
  letter-spacing: var(--track-display);
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: flex-end;
}
.foot-note {
  grid-column: 1 / -1;
}

/* ---------- smaller screens ---------- */
@media (max-width: 1040px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .game-live {
    grid-column: 1 / -1;
  }
}
@media (max-width: 860px) {
  .top-nav {
    display: none;
  }
  .top-account {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  /* one row of two screenshots under the text; the right-hand pair is dropped */
  .shots-right {
    display: none;
  }
  .shots-left {
    order: 2;
    grid-template-columns: repeat(2, minmax(0, 150px));
    justify-content: center;
    gap: 18px;
    margin-top: 8px;
  }
  .shots-left .shot-big,
  .shots-left .shot-small {
    width: 100%;
    margin-top: 0;
    justify-self: center;
  }
  .shots-left .shot-small {
    transform: rotate(4deg);
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compare-grid,
  .plans {
    grid-template-columns: 1fr;
  }
  .foot {
    grid-template-columns: 1fr;
  }
  .foot-nav {
    justify-content: flex-start;
  }
}
@media (max-width: 560px) {
  .steps,
  .reasons,
  .games {
    grid-template-columns: 1fr;
  }
  .game-live {
    grid-template-columns: 1fr;
  }
  .game-live img {
    max-width: 220px;
    margin: 0 auto;
  }
  .cta .btn {
    flex: 1 1 100%;
  }
}
