/* Fancy Giveaways · November 2026 redesign · Freecash-style layout in the app's colours, dark only
 * Sections: header, hero (copy, illustration, App Store card, stats bar), "what's the catch" timeline,
 * bento of ways to earn, reward ladder and payout options, App Store reviews, $5,000,000+ counter, FAQ, footer.
 * Also styles the rules, legal and 404 pages. Colours and type scale live in tokens.css.
 */

@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

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

html, body { overflow-x: clip; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  min-width: 0;
}

h1 em, h2 em, h3 em { font-style: normal; color: var(--gold); }

/* keyword line above a slogan heading (part of the heading for search engines) */
.kicker {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--violet);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.hero h1 .kicker { margin-bottom: 1rem; font-size: 1rem; letter-spacing: 0; }

p { margin: 0; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.center { text-align: center; }

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

.text-link {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

/* ---------- buttons and the App Store badge ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.125rem;
  border-radius: 0.75rem;
  background: var(--orange);
  color: var(--on-orange);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.btn:hover { background: #FF8550; }
.btn:active { transform: translateY(1px); }

.btn--lg { min-height: 3.25rem; padding: 0.75rem 1.75rem; border-radius: 0.875rem; font-size: 1rem; }

/* Apple's badge artwork, never restyled */
.badge { display: inline-flex; min-height: 2.75rem; }
.badge img { height: 3.25rem; width: auto; }

/* ---------- header ---------- */

.top { border-bottom: 1px solid var(--line-soft); }

.top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.875rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}

.brand img { width: 2.25rem; height: 2.25rem; border-radius: 0.55rem; }

.top__nav { display: none; }

.top__nav a { color: var(--ink-2); text-decoration: none; }
.top__nav a:hover { color: var(--ink); }

.brand, .top .btn { white-space: nowrap; }

@media (max-width: 29.99rem) {
  .top__row { gap: 0.75rem; }
  .brand { gap: 0.5rem; font-size: 1rem; }
  .brand img { width: 2rem; height: 2rem; }
  .top .btn--sm { padding: 0 0.875rem; font-size: 0.875rem; }
}

@media (max-width: 22.4rem) {
  .brand span { display: none; }
}

/* ---------- hero ---------- */

.hero { padding-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }

.hero__grid {
  display: grid;
  grid-template-areas: "copy" "art" "get";
  gap: 2rem;
  align-items: center;
}

.hero__copy { grid-area: copy; }

.hero h1 { font-size: var(--text-h1); line-height: 1.08; letter-spacing: -0.02em; }

.hero h1 .line { display: block; }

.lede { margin-top: 1.25rem; max-width: 30rem; color: var(--ink-2); font-size: var(--text-lg); }

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.625rem;
  margin-top: 1.5rem;
}

.rating__stars { display: flex; gap: 3px; }
.rating__stars svg { width: 1.25rem; height: 1.25rem; fill: var(--gold); }
.rating strong { font-weight: 700; }
.rating span:last-child { color: var(--ink-2); font-size: var(--text-sm); }

.hero__art { grid-area: art; display: flex; justify-content: center; }

.hero__art img {
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 1 / 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}

.get-card {
  grid-area: get;
  justify-self: center;
  width: 100%;
  max-width: 24rem;
  padding: 1.625rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.get-card h2 { font-size: 1.375rem; text-align: center; }

.get-card .badge { display: flex; justify-content: center; margin-top: 1.25rem; }

.get-card__or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.375rem 0 1.125rem;
  color: var(--ink-3);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.get-card__or::before, .get-card__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.get-card__qr { display: flex; align-items: center; gap: 0.875rem; }

.get-card__qr img {
  flex-shrink: 0;
  width: 5.75rem;
  height: 5.75rem;
  padding: 0.375rem;
  background: #FFFFFF;
  border-radius: 0.625rem;
}

.get-card__qr p { color: var(--ink-2); font-size: var(--text-sm); line-height: 1.5; }

.get-card__small { margin-top: 1.25rem; color: var(--ink-3); font-size: var(--text-xs); line-height: 1.5; text-align: center; }

/* a QR code is no use on the phone you would scan it with */
@media (max-width: 47.99rem) {
  .get-card__or, .get-card__qr { display: none; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  align-items: center;
  max-width: var(--page-narrow);
  margin: 3rem auto 0;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.stats__lead { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.stat__n { font-size: 1.75rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.stat__l { margin-top: 0.125rem; color: var(--gold); font-size: 0.8125rem; font-weight: 600; }

/* ---------- sections ---------- */

.section { padding-block: var(--space-2xl); }
.section--alt { background: var(--bg-alt); }

.section h2 { font-size: var(--text-h2); }
h2.center, .center h2 { max-width: 42rem; margin-inline: auto; }

.intro { margin-top: 1rem; max-width: 42rem; color: var(--ink-2); }
.center .intro, .intro.center { margin-inline: auto; }

/* ---------- what's the catch: timeline ---------- */

.steps { list-style: none; max-width: var(--page-narrow); margin: 3.5rem auto 0; padding: 0; }

.step {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  grid-template-areas: "rail card" "rail art";
  column-gap: 1rem;
}

.step__card {
  grid-area: card;
  padding: 1.5rem 1.625rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.125rem;
}

.step__card h3 { font-size: var(--text-h3); line-height: 1.3; }
.step__card p { margin-top: 0.625rem; color: var(--ink-2); font-size: 0.9375rem; }

.step__rail { grid-area: rail; display: flex; flex-direction: column; align-items: center; }
.step__rail::after { content: ""; flex: 1; width: 2px; background: var(--rail); }
.step--last .step__rail::after { display: none; }

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--violet);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9375rem;
}

.step__art { grid-area: art; display: flex; justify-content: center; padding: 1.5rem 0 3rem; }
.step--last .step__art { padding-bottom: 0; }

.step__games { width: 100%; max-width: 17rem; }

.ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13.75rem;
  height: 13.75rem;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.ring::before { content: ""; position: absolute; inset: 1.375rem; border-radius: 50%; border: 1px dashed #3B3260; }
.ring img { position: relative; width: 6.5rem; height: 6.5rem; border-radius: 1.5rem; }

.chip { position: absolute; padding: 0.375rem 0.75rem; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.875rem; line-height: 1.2; }
.chip--gold { top: 1.125rem; right: -0.375rem; background: var(--gold); color: var(--on-orange); }
.chip--violet { bottom: 1.375rem; left: -0.875rem; background: var(--violet); color: var(--bg); }

.fan { position: relative; width: min(17.5rem, 100%); aspect-ratio: 280 / 208; }
.fan__card { position: absolute; width: 74%; height: 63%; border-radius: 1rem; }
.fan__card--violet { left: 6%; top: 16%; background: var(--violet-2); transform: rotate(-14deg); }
.fan__card--orange { left: 14%; top: 11%; background: var(--orange); transform: rotate(-5deg); }
.fan__prize { position: absolute; left: 18%; top: 14%; width: 81%; transform: rotate(6deg); }
.fan__coins { position: absolute; left: 30%; top: 8%; width: 48%; }

/* ---------- ways to earn: bento ---------- */

.bento {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 3rem 0 0;
  padding: 0;
}

.tile {
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.tile__icon { width: 4.75rem; height: 4.75rem; }
.tile h3 { margin-top: 1.125rem; font-size: var(--text-h3); line-height: 1.3; }
.tile p { margin-top: 0.625rem; color: var(--ink-2); font-size: 0.9375rem; }
.tile .tile__more { margin-top: 0.875rem; font-size: var(--text-sm); }

.tile--wide { display: flex; flex-wrap: wrap; gap: 1.5rem; padding-bottom: 0; overflow: hidden; }
.tile--wide h3 { font-size: 1.375rem; }
.tile__copy { flex: 1 1 16rem; min-width: 0; padding-bottom: 1.75rem; }
.tile__shot { flex: 1 1 12rem; display: flex; justify-content: center; align-items: flex-start; height: 18.75rem; overflow: hidden; }
.tile__shot img { width: 13.75rem; }

/* ---------- rewards ---------- */

.ladder {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.5rem 0 0;
  padding: 0;
}

.ladder li { min-width: 6rem; padding: 0.875rem 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: 0.875rem; }
.ladder strong { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.ladder span { color: var(--ink-2); font-size: var(--text-xs); white-space: nowrap; }
.ladder .chip-top { border-color: var(--gold); }
.ladder .chip-top strong { color: var(--gold); }

.payouts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.875rem;
  margin: 1.75rem 0 0;
  padding: 0;
}

.payouts li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.25rem;
  padding: 0.75rem;
  background: var(--card-2);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.3;
}

.payouts .more { color: var(--gold); }

.rewards__notes { display: grid; gap: 0.625rem; max-width: 45rem; margin: 1.75rem auto 0; color: var(--ink-3); font-size: var(--text-sm); }
.rewards__notes strong { color: var(--ink-2); }

/* ---------- App Store reviews ---------- */

.review-grid { list-style: none; columns: 3 18rem; column-gap: 1rem; margin: 2.5rem 0 0; padding: 0; }

.review {
  break-inside: avoid;
  margin-bottom: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review__head { display: flex; align-items: center; gap: 0.75rem; }

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  background: var(--line);
  color: var(--gold);
  font-weight: 700;
}

.review__who { flex: 1; min-width: 0; }
.review__author { font-size: var(--text-sm); font-weight: 600; overflow-wrap: anywhere; }
.review__meta { color: var(--ink-3); font-size: var(--text-xs); }
.review__stars { color: var(--gold); font-size: 0.8125rem; letter-spacing: 0.08em; white-space: nowrap; }
.review h3 { margin-top: 0.875rem; font-size: 0.9375rem; line-height: 1.4; }
.review__text { margin-top: 0.375rem; color: var(--ink-review); font-size: var(--text-sm); }

.reviews__all { margin-top: 1.5rem; font-size: var(--text-sm); }

/* ---------- counter ---------- */

.odometer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0.375rem;
  margin-top: 2rem;
  font-weight: 700;
  font-size: clamp(1.25rem, 0.9rem + 1.3vw, 2rem);
  line-height: 1;
}

.odo__d {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(1.9rem, 1.3rem + 2vw, 3.1rem);
  height: clamp(2.6rem, 1.8rem + 2.6vw, 4rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.625rem;
}

.odo__d:nth-child(-n+2) { color: var(--gold); }
.odo__s { padding-bottom: 0.25em; color: var(--gold); }

.count .btn { margin-top: 2.25rem; }

/* ---------- FAQ ---------- */

.faq__wrap { max-width: 47.5rem; }

.faq__list { display: grid; gap: 0.75rem; margin-top: 2.5rem; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 0.875rem; }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  padding: 1.125rem 1.25rem;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.4;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; width: 1.25rem; height: 1.25rem; color: var(--ink-2); transition: transform 200ms ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq summary:hover svg { color: var(--ink); }

.faq .answer { display: grid; gap: 0.625rem; padding: 0 1.25rem 1.125rem; color: var(--ink-2); font-size: 0.9375rem; }

.faq__aside { margin-top: 1.5rem; color: var(--ink-3); font-size: var(--text-sm); }

/* ---------- footer ---------- */

.foot { padding: 3.5rem 0 2rem; background: var(--bg-foot); }

.foot__cols { display: flex; flex-wrap: wrap; gap: 2.5rem; }

.foot__brand { flex: 2 1 16rem; }
.foot__tagline { max-width: 18rem; margin-top: 0.75rem; color: var(--ink-2); font-size: var(--text-sm); }

.foot__col { flex: 1 1 9rem; }
.foot__h { color: var(--gold); font-size: var(--text-sm); font-weight: 700; }
.foot__col ul { list-style: none; display: grid; gap: 0.625rem; margin: 0.875rem 0 0; padding: 0; font-size: var(--text-sm); }
.foot__col a { color: var(--ink-2); text-decoration: none; }
.foot__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }

.langs ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line-soft);
  font-size: var(--text-sm);
}

.langs a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.langs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.langs [aria-current] { color: var(--ink); font-weight: 700; }

.foot__small { display: grid; gap: 0.5rem; max-width: 50rem; margin-top: 1.5rem; color: var(--ink-3); font-size: var(--text-xs); line-height: 1.6; }

/* ---------- documents: official rules, legal pages, 404 ---------- */

.doc .wrap { max-width: 46rem; padding-block: 2rem 5rem; }

.doc h1 { margin-top: 1rem; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; }

.doc__back { font-size: var(--text-sm); }

.doc__intro { margin-top: 1rem; color: var(--ink-2); font-size: var(--text-lg); }

.doc section { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.doc h2 { font-size: 1.375rem; line-height: 1.3; }

.doc section p, .doc section ul { margin-top: 0.75rem; color: var(--ink-2); }

.doc section ul { display: grid; gap: 0.5rem; padding-left: 1.25rem; }

.doc__langs { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: 2rem 0 0; padding: 0; font-size: var(--text-lg); }

.legal { margin-top: 2rem; }

.legal h2 { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 1.375rem; line-height: 1.3; }

.legal h3 { margin-top: 2rem; font-size: var(--text-lg); line-height: 1.35; }

.legal p, .legal ul, .legal ol { margin-top: 0.75rem; color: var(--ink-2); }

.legal ul, .legal ol { display: grid; gap: 0.5rem; padding-left: 1.25rem; }

.legal a { color: var(--link); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

.table-scroll { margin-top: 1.5rem; overflow-x: auto; }

.legal table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--text-sm); }

.legal th, .legal td { padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); text-align: left; vertical-align: top; }

.legal th { color: var(--ink); font-weight: 700; border-bottom-color: var(--rail); }

.doc--404 .wrap { padding-block: 5rem 7rem; }

/* ---------- wider screens ---------- */

@media (min-width: 48rem) {
  .stats { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { grid-column: span 2; }
}

/* two columns: the invite tile closes its row instead of leaving a hole */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .bento > .tile:nth-child(6) { grid-column: span 2; }
}

@media (min-width: 52rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-areas: "copy art" "get art";
    column-gap: 2.5rem;
  }
  .get-card { justify-self: start; }

  .step {
    grid-template-columns: minmax(0, 1fr) 6rem minmax(0, 1fr);
    grid-template-areas: "card rail art";
    align-items: start;
  }
  .step--flip { grid-template-areas: "art rail card"; }
  .step__card { margin-bottom: 3.5rem; }
  .step__art { padding: 0 0 3.5rem; }
  .step--last .step__card, .step--last .step__art { margin-bottom: 0; padding-bottom: 0; }
  .step__rail { align-self: stretch; }
}

@media (min-width: 60rem) {
  .top__nav { display: flex; gap: 1.75rem; font-size: 0.9375rem; font-weight: 500; }
}

@media (min-width: 64rem) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 72rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.82fr);
    grid-template-areas: "copy art get";
    column-gap: 2rem;
  }
  .get-card { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
