/* The landing at maratoon.app (EP-19 T-136, decision 48). Colors are the roles of
   docs/design/tokens.md, light and dark; titles in Baloo 2 (OFL), body in the system font. */

@font-face {
  font-family: "Baloo 2";
  font-weight: 700;
  font-display: swap;
  src: url("/site/baloo2-bold.woff2?v=a00e4520") format("woff2");
}

@font-face {
  font-family: "Baloo 2";
  font-weight: 800;
  font-display: swap;
  src: url("/site/baloo2-extrabold.woff2?v=57496cb0") format("woff2");
}

:root {
  color-scheme: light dark;
  --canvas: #F1EEFA;
  --surface: #FFFFFF;
  --surface-raised: #EEEAF8;
  --line: #DDD8EE;
  --ink: #17132B;
  --ink-muted: #6C668D;
  --brand: #8D4DFF;
  --brand-deep: #5E2BC9;
  --brand-text: #7F39FF;
  --on-brand: #FFFFFF;
  --progress: #00D5F9;
  --progress-text: #007589;
  --gold: #F1BC25;
  --gold-text: #866609;
  --success: #00D897;
  --success-text: #007A55;
  --danger: #EC0415;
  --epic: #E65FDE;
  --chest: #FF8A3D;
  --bevel: #BFB6DE;
  --tier-ink: #17132B;
  --phone: #17132B;
  --title: "Baloo 2", ui-rounded, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #141129;
    --surface: #1D1A3A;
    --surface-raised: #282350;
    --line: #3A3466;
    --ink: #F1EDFB;
    --ink-muted: #A9A3C8;
    --brand-text: #A574FF;
    --progress-text: #00D5F9;
    --gold-text: #F1BC25;
    --success-text: #00D897;
    --chest: #FF9A52;
    --bevel: #0E0B1A;
    --phone: #0E0B1A;
  }
}

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

html {
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 1.0625rem/1.6 var(--body);
  overflow-wrap: break-word;
}

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

img {
  height: auto;
}

a {
  color: var(--brand-text);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--title);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 800;
}

h3 {
  font-size: 1.3125rem;
  font-weight: 700;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}

.skip:focus {
  top: 1rem;
}

/* Top bar */

.top {
  padding: 1rem 0;
}

.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  font: 800 1.5rem/1 var(--title);
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 3px 0 var(--bevel);
}

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.lang:hover {
  border-color: var(--brand-text);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0 3.5rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
}

.hero::before {
  width: 520px;
  height: 520px;
  right: -180px;
  top: -60px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 45%, transparent), transparent 68%);
}

.hero::after {
  width: 420px;
  height: 420px;
  left: -200px;
  bottom: -140px;
  background: radial-gradient(circle, color-mix(in srgb, var(--progress) 35%, transparent), transparent 68%);
}

.hero-in {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  box-shadow: 0 5px 0 var(--bevel), 0 18px 40px -16px color-mix(in srgb, var(--brand) 60%, transparent);
}

.pill {
  display: inline-block;
  margin: 1.25rem 0 0.75rem;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  /* brandText over surface: 5.3:1 light, 5.2:1 dark (tokens.md); the ring is decorative. */
  background: var(--surface);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 35%, transparent);
  color: var(--brand-text);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(3rem, 2.2rem + 4vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}

.tagline {
  margin-top: 0.5rem;
  font: 700 clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem)/1.15 var(--title);
}

.tagline em {
  font-style: normal;
  color: var(--brand-text);
}

.lead {
  margin-top: 1rem;
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 16px;
  font: 700 1.125rem/1 var(--title);
  text-decoration: none;
}

.button-primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  color: var(--on-brand);
  box-shadow: 0 4px 0 var(--brand-deep), inset 0 1px 0 rgb(255 255 255 / 0.35);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--bevel), inset 0 0 0 2px var(--line);
}

.button:active {
  transform: translateY(3px);
}

.button-primary:active {
  box-shadow: 0 1px 0 var(--brand-deep), inset 0 1px 0 rgb(255 255 255 / 0.35);
}

.button-secondary:active {
  box-shadow: 0 1px 0 var(--bevel), inset 0 0 0 2px var(--line);
}

.hero-shot {
  position: relative;
  justify-self: center;
  width: min(300px, 78vw);
}

.chip {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 700 0.9375rem/1.2 var(--title);
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--bevel), 0 12px 24px -12px rgb(23 19 43 / 0.35);
}

.chip i {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.chip-gold {
  left: -14%;
  top: 18%;
}

.chip-gold i {
  background: var(--gold);
}

.chip-progress {
  right: -12%;
  bottom: 22%;
}

.chip-progress i {
  background: var(--progress);
}

/* Phone frames */

.phone {
  margin: 0;
  padding: 9px;
  border-radius: 46px;
  background: var(--phone);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 12%, transparent), 0 28px 50px -24px rgb(23 19 43 / 0.55);
}

.phone img {
  width: 100%;
  border-radius: 37px;
  background: var(--canvas);
}

.hero-shot .phone {
  transform: rotate(2.5deg);
}

/* Sections */

.section {
  padding: 3.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head p {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
}

/* As specific as `.section-head p`, and after it, so the kicker keeps its own look. */
.section-head .eyebrow {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--brand-text);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel {
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 4px 0 var(--bevel);
}

/* Steps */

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

.step {
  position: relative;
  padding: 1.5rem;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #F6C835, #FF8918);
  color: var(--tier-ink);
  font: 800 1.375rem/1 var(--title);
  box-shadow: 0 3px 0 #B98A0E;
}

.step p {
  margin-top: 0.5rem;
  color: var(--ink-muted);
}

/* Screenshots */

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shots figure {
  margin: 0;
}

.shots .phone {
  padding: 6px;
  border-radius: 30px;
}

.shots .phone img {
  border-radius: 24px;
}

.shots figcaption {
  margin-top: 0.875rem;
  text-align: center;
  font: 700 1.0625rem/1.25 var(--title);
}

/* Features */

.features {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 1.5rem;
}

.feature p {
  margin-top: 0.5rem;
  color: var(--ink-muted);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  color: var(--on-brand);
}

.feature-icon svg {
  width: 1.625rem;
  height: 1.625rem;
}

.f-items {
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
}

.f-events {
  background: linear-gradient(180deg, #FFA45C, #E06A1B);
}

.f-duels {
  background: linear-gradient(180deg, #F27BEA, #BA1DB1);
}

.f-leagues {
  background: linear-gradient(180deg, #F6C835, #FF8918);
  color: var(--tier-ink);
}

.f-streaks {
  background: linear-gradient(180deg, #2BE3AB, #00996A);
  color: var(--tier-ink);
}

.f-friends {
  background: linear-gradient(180deg, #00D5F9, #9D67FF);
  color: var(--tier-ink);
}

/* Privacy */

.privacy {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
}

.privacy svg {
  flex: none;
  width: 2rem;
  height: 2rem;
  color: var(--success-text);
}

.privacy a {
  font-weight: 700;
  white-space: nowrap;
}

/* Alpha */

.alpha {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--brand), var(--brand-deep));
  color: var(--on-brand);
  box-shadow: 0 5px 0 #43209A;
}

.alpha::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 36px solid rgb(255 255 255 / 0.08);
}

.alpha h2 {
  color: var(--on-brand);
}

.alpha > p {
  position: relative;
  max-width: 36rem;
  margin-top: 0.75rem;
  font-size: 1.125rem;
}

.alpha a {
  color: var(--on-brand);
  font-weight: 700;
}

/* The violet ring would vanish on the violet card. */
.alpha :focus-visible {
  outline-color: var(--on-brand);
}

.stores {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
  padding: 0;
  list-style: none;
}

.store {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 11rem;
  min-height: 60px;
  padding: 0.5rem 1.25rem;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 4px 0 #43209A;
}

.alpha a.store {
  color: var(--ink);
}

.store small {
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.store strong {
  font: 700 1.1875rem/1.2 var(--title);
}

/* A dark veil keeps white text above 4.5:1 over the whole gradient. */
.store-soon {
  background: rgb(14 11 26 / 0.28);
  color: var(--on-brand);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.45);
}

.store-soon small {
  color: var(--on-brand);
}

/* Footer */

.footer {
  margin-top: 1.5rem;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.footer-in {
  display: grid;
  gap: 1.25rem;
}

.footer .logo {
  font-size: 1.25rem;
}

.footer .logo img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer ul a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--ink);
  font-weight: 600;
}

/* Wider screens */

@media (min-width: 640px) {
  .wrap {
    padding: 0 1.5rem;
  }

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

  .alpha {
    padding: 2.75rem;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 2.5rem 0 5rem;
  }

  .hero-in {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
  }

  .hero-shot {
    width: 320px;
  }

  .section {
    padding: 4.5rem 0;
  }

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

  .shots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

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

  .footer-in {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .footer ul {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .lang {
    transition: transform 80ms ease-out, box-shadow 80ms ease-out, border-color 120ms ease-out;
  }
}

@media (forced-colors: active) {
  .button,
  .store,
  .panel,
  .chip {
    border: 2px solid CanvasText;
  }
}
