/* RepForge site: the app's look (dark violet-charcoal, purple accent, Plus Jakarta Sans). */
:root {
  --bg: #0d0b1d;
  --surface: #17142c;
  --surface-2: #1e1a38;
  --line: rgba(185, 182, 230, 0.14);
  --text: #f4f2ff;
  --muted: #a5a2c2;
  --accent: #9a7cf0;
  --accent-light: #b9a3f7;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(154, 124, 240, 0.22), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--accent-light); text-underline-offset: 3px; }
a:hover { color: #fff; }

.wrap { margin: 0 auto; max-width: 760px; padding: 0 20px; }

/* Header: fixed to the top, its line running the full width. */
html { scroll-padding-top: 88px; }
body { overflow-x: clip; padding-top: 72px; }
.topbar {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(13, 11, 29, 0.82);
  border-bottom: 1px solid var(--line);
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
}
.top {
  align-items: center;
  display: flex;
  gap: 16px;
  height: 72px;
  justify-content: space-between;
}
.brand {
  align-items: center;
  color: var(--text);
  display: flex;
  font-family: 'Nunito', 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 900;
  gap: 10px;
  text-decoration: none;
}
/* As the app's word mark: "Forge" in the light violet. */
.wordmark span { color: #c3b0f2; }
.brand img { border-radius: 10px; height: 36px; width: 36px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 32px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }
.nav { align-items: center; }
.nav .nav-cta {
  font-weight: 700 !important;
  letter-spacing: 0.4px !important;
  background: var(--violet-fill);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 0 8px rgba(120, 70, 200, 0.28);
  color: #fff;
  font-family: 'Nunito', 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: filter 0.15s, transform 0.1s;
  font-size: 15px;
  padding: 9px 16px;
}
.nav .nav-cta:hover, .button:hover { color: #fff; filter: brightness(1.1); }
.nav .nav-cta:active, .button:active { opacity: 0.85; transform: scale(0.98); }

/* Page body */
main { padding: 0 0 56px; }
h1, h2, h3, .cta h2, .feature h2 { font-family: 'Nunito', 'Plus Jakarta Sans', sans-serif; font-weight: 900; letter-spacing: 0; }
h1 { font-size: clamp(30px, 6vw, 42px); letter-spacing: -0.02em; line-height: 1.15; margin: 18px 0 8px; }
h2 { font-size: 21px; letter-spacing: -0.01em; margin: 40px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, li { color: #dcd9f2; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
.lead { color: var(--muted); font-size: 18px; margin-top: 0; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 20px 0;
  padding: 18px 22px;
}
.card p:first-child, .card h3:first-child { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  margin: 12px 0;
  padding-left: 44px;
  position: relative;
}
.steps li::before {
  align-items: center;
  background: linear-gradient(180deg, #ae95f6, #8a69e6);
  border-radius: 50%;
  color: #fff;
  content: counter(step);
  display: flex;
  font-size: 14px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  width: 28px;
}

.button {
  background: var(--violet-fill);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 0 8px rgba(120, 70, 200, 0.28);
  color: #fff;
  font-family: 'Nunito', 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: filter 0.15s, transform 0.1s;
  display: inline-block;
  font-size: 17px;
  padding: 13px 22px;
  text-decoration: none;
}

/* Home */
.wrap.wide { max-width: 1060px; }
html { scroll-behavior: smooth; }

.hero {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: 1.1fr 0.9fr;
  /* With the fixed navbar, exactly one screen tall. */
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  padding: 32px 0;
}
.hero h1, h2, h3, .cta h2, .feature h2 { font-family: 'Nunito', 'Plus Jakarta Sans', sans-serif; font-weight: 900; letter-spacing: 0; }
h1 { font-size: clamp(36px, 6vw, 58px); margin: 0 0 14px; }
.hero .lead { font-size: 19px; margin: 0 0 28px; max-width: 480px; }
.soon { color: var(--muted); font-size: 14px; font-weight: 600; margin: 14px 0 0; }
.hero-phone { justify-self: center; }

/* Store badges: not live yet, so they lead nowhere. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores { align-items: center; }
/* The official badges, as Apple and Google supply them: no restyling, no hover effect. */
.store { display: block; line-height: 0; }
.store img { display: block; height: 50px; width: auto; }

/* A screenshot in an iPhone (devices.css's iPhone 14 Pro: Dynamic Island, same look as the 16).
   The frame is drawn at 428 x 868 and scaled with zoom, which also scales its layout box. */
.phone { --phone-zoom: 0.68; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 60px rgba(154, 124, 240, 0.18)); }
.phone .device { zoom: var(--phone-zoom); }
.phone .device-screen { object-position: top center; }
.hero-phone { --phone-zoom: 0.72; }

/* Features: picture and words, swapping sides as you go down. */
.showcase { display: flex; flex-direction: column; gap: 96px; padding: 80px 0 40px; }
.feature {
  align-items: center;
  display: grid;
  gap: 64px;
  grid-template-columns: 1fr 1fr;
}
.feature > :first-child { justify-self: center; }
.feature:nth-child(even) > :first-child { order: 2; }
.feature-copy { max-width: 440px; }
.feature:nth-child(odd) .feature-copy { justify-self: start; }
.feature:nth-child(even) .feature-copy { justify-self: end; }
/* Section labels as the app's chips: a faint fill, a hairline edge, rounded corners. */
.eyebrow {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(185, 182, 230, 0.14);
  border-radius: 10px;
  color: var(--accent-light);
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  padding: 4px 10px;
}
.feature h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin: 18px 0 18px; }
.feature p { color: var(--muted); font-size: 17px; line-height: 1.8; margin: 0; }

.cta {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 28px;
  margin: 24px 0 0;
  padding: 48px 24px;
  text-align: center;
}
.cta h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; }
.cta p { color: var(--muted); margin: 0 0 24px; }
.cta .stores { justify-content: center; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .stores { justify-content: center; }
  .showcase { gap: 72px; padding-top: 56px; }
  .feature { gap: 28px; grid-template-columns: 1fr; text-align: center; }
  .feature:nth-child(even) > :first-child { order: 0; }
  /* Words first on phones: the hero ends on a picture, so each section opens with its heading. */
  .feature > .feature-copy { order: -1; }
  .feature .feature-copy { justify-self: center; }
  .phone { --phone-zoom: 0.6; }
  .hero-phone { --phone-zoom: 0.66; }
}

/* Footer */
.footerbar { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; margin-top: 72px; }
footer .nav { margin-bottom: 8px; }

/* Two phones with an arrow between (before and after), and three fanned out (outfits). */
.phone.small { --phone-zoom: 0.46; }
figure.phone { margin: 0; position: relative; }
/* Captions as big bold words, no pill: "Day one" white, "Ready to Ascend" violet. */
figure.phone figcaption {
  bottom: -50px; color: var(--text); font-family: 'Nunito', 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 900;
  left: 50%; letter-spacing: -0.01em; position: absolute; transform: translateX(-50%); white-space: nowrap;
}
.duo figure.phone:last-child figcaption {
  background: linear-gradient(90deg, #C3B0F2, #9A7CF0); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.duo { align-items: center; display: flex; gap: 14px; justify-content: center; justify-self: stretch; padding-bottom: 56px; width: 100%; }
.duo .phone { flex: none; }
.duo-arrow { color: var(--accent-light); filter: drop-shadow(0 0 8px rgba(154, 124, 240, 0.5)); flex: none; height: 40px; margin-top: -34px; overflow: visible; width: 104px; }
.trio { display: flex; justify-content: center; justify-self: stretch; width: 100%; }
.trio .phone { flex: none; }
.trio .phone:nth-child(1) { margin-right: -46px; transform: rotate(-7deg) scale(0.9); z-index: 1; }
.trio .phone:nth-child(2) { z-index: 2; }
.trio .phone:nth-child(3) { margin-left: -46px; transform: rotate(7deg) scale(0.9); z-index: 1; }
@media (max-width: 760px) {
  .duo { gap: 8px; }
  .duo .phone.small { --phone-zoom: 0.34; }
  .duo { min-width: 0; }
  figure.phone figcaption { bottom: -38px; font-size: 17px; }
  .duo-arrow { height: 25px; margin-top: -24px; width: 64px; }
  .trio .phone { --phone-zoom: 0.29; }
  .trio .phone:nth-child(1) { margin-right: -26px; }
  .trio .phone:nth-child(3) { margin-left: -26px; }
}

@media (max-width: 760px) {
  .top { height: 64px; }
  body { padding-top: 64px; }
  .brand { font-size: 19px; }
  .brand img { height: 32px; width: 32px; }
  .nav a:not(.nav-cta) { display: none; }
  .nav .nav-cta { font-size: 14px; padding: 8px 14px; }
}

/* ------------------------------------------------------------ background -- */
/* A faint dot grid over the whole page, fading out towards the bottom of each screen. */
body::before {
  background-image: radial-gradient(rgba(185, 182, 230, 0.12) 1px, transparent 1.4px);
  background-size: 26px 26px;
  content: '';
  inset: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 900px);
  mask-image: linear-gradient(180deg, #000 0, transparent 900px);
  pointer-events: none;
  position: absolute;
  z-index: -1;
}
body { position: relative; isolation: isolate; }

/* Hero: violet and blue glows behind the phone, and confetti chips like the app's. */
.hero { position: relative; }
.hero-deco { inset: -40px 0 -160px; pointer-events: none; position: absolute; z-index: -1; }
.hero-deco::before, .hero-deco::after { border-radius: 50%; content: ''; filter: blur(70px); position: absolute; }
.hero-deco::before { background: rgba(154, 124, 240, 0.35); height: 420px; right: 8%; top: 60px; width: 420px; }
.hero-deco::after { background: rgba(61, 139, 255, 0.22); height: 300px; right: 30%; top: 330px; width: 300px; }
.chip { border-radius: 2px; display: block; height: 9px; opacity: 0.7; position: absolute; width: 16px; animation: drift 9s ease-in-out infinite alternate; }
.chip.c1 { background: #ffc23d; left: 8%; top: 12%; transform: rotate(24deg); }
.chip.c2 { background: #9a7cf0; left: 44%; top: 6%; transform: rotate(-30deg); animation-delay: -2s; }
.chip.c3 { background: #4c85ff; left: 3%; top: 78%; transform: rotate(60deg); animation-delay: -4s; opacity: 0.45; }
.chip.c4 { background: #ffe07a; right: 4%; top: 18%; transform: rotate(-12deg); animation-delay: -1s; }
.chip.c5 { background: #c3b0f2; right: 9%; top: 82%; transform: rotate(40deg); animation-delay: -6s; }
.chip.c6 { background: #7aa7ff; left: 38%; top: 88%; transform: rotate(-50deg); animation-delay: -3s; opacity: 0.45; }
.chip.c7 { background: #9a7cf0; right: 40%; top: 40%; transform: rotate(15deg); animation-delay: -5s; opacity: 0.35; width: 11px; height: 6px; }
.chip.c8 { background: #ffc23d; left: 22%; top: 52%; transform: rotate(75deg); animation-delay: -7s; opacity: 0.35; width: 11px; height: 6px; }
.chip.c9 { background: #4c85ff; right: 2%; top: 55%; transform: rotate(-70deg); animation-delay: -2.5s; }
@keyframes drift { to { translate: 0 -14px; } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }

/* Each section: a soft glow behind its phones, on the side they sit. */
.feature { position: relative; }
.feature > :first-child { position: relative; }
.feature > :first-child::before {
  background: radial-gradient(closest-side, rgba(154, 124, 240, 0.42), transparent);
  content: '';
  height: 520px;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  z-index: -1;
}
.feature:nth-child(3n+2) > :first-child::before { background: radial-gradient(closest-side, rgba(61, 139, 255, 0.34), transparent); }
.feature:nth-child(3n) > :first-child::before { background: radial-gradient(closest-side, rgba(255, 194, 61, 0.2), transparent); }
.cta { position: relative; overflow: visible; }

.cta { isolation: isolate; }
@media (max-width: 760px) {
  .feature > :first-child::before { height: 340px; width: 340px; }
  .hero-deco { inset: -20px 0 -120px; }
}

/* The store badges in the footer, a size down. */

/* ---------------------------------------------------------------- footer -- */
/* Two rows: the name and the links, then a thin full-width line and the small print with the badges. */
.footerbar { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; margin-top: 72px; }
.footer-row { align-items: center; display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; }
.footer-top { padding-bottom: 40px; padding-top: 44px; }
.footer-brand p { color: var(--muted); margin: 12px 0 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-links a { color: var(--muted); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-base { border-top: 1px solid var(--line); }
.footer-base .footer-row { padding-bottom: 96px; padding-top: 40px; }
.footer-legal { font-size: 13px; margin: 0; }
.footer-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; }
.footer-stores { gap: 8px; }
.footer-stores .store img { height: 36px; }
.socials { display: flex; gap: 22px; }
/* Plain filled white glyphs, no tile and no hover effect. */
.social { display: flex; }
.social svg { fill: #fff; height: 22px; width: 22px; }
@media (max-width: 760px) {
  .footer-row { align-items: flex-start; flex-direction: column; }
  .footer-base .footer-actions { order: -1; }
}

/* The streak's flame: the app's own fire icon, glowing and flickering. */
.flame {
  animation: flicker 1.6s ease-in-out infinite alternate;
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(255, 120, 40, 0.85)) drop-shadow(0 0 26px rgba(255, 70, 30, 0.55));
  height: 1em;
  margin-left: 0.12em;
  transform-origin: 50% 90%;
  vertical-align: -0.1em;
  width: 0.75em;
}
@keyframes flicker {
  0% { transform: scale(1) rotate(-2deg); filter: drop-shadow(0 0 8px rgba(255, 120, 40, 0.75)) drop-shadow(0 0 20px rgba(255, 70, 30, 0.45)); }
  50% { transform: scale(1.06, 1.1) rotate(1deg); }
  100% { transform: scale(0.98, 1.04) rotate(2deg); filter: drop-shadow(0 0 14px rgba(255, 140, 50, 0.95)) drop-shadow(0 0 34px rgba(255, 80, 30, 0.65)); }
}
@media (prefers-reduced-motion: reduce) { .flame { animation: none; } }

.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------ cta banner -- */
.cta {
  align-items: center; display: grid; margin-top: 150px !important; gap: 12px 40px; grid-template-columns: 0.8fr 1.2fr;
  padding: 40px 48px; text-align: left;
  background:
    radial-gradient(420px 300px at 18% 70%, rgba(124, 58, 237, 0.45), transparent 70%),
    radial-gradient(520px 260px at 85% 10%, rgba(147, 51, 234, 0.35), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cta-mascot { align-self: end; filter: drop-shadow(0 0 40px rgba(124, 58, 237, 0.45)); height: 470px; justify-self: center; margin: -190px 0 -40px; position: relative; width: auto; z-index: 2; }
.cta .cta-copy h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; margin: 0 0 12px; }
.cta .cta-copy p { margin: 0 0 24px; }
.cta .stores { justify-content: flex-start; }
@media (max-width: 760px) {
  .cta { grid-template-columns: 1fr; padding: 32px 22px 36px; text-align: center; }
  .cta-mascot { align-self: center; height: 280px; margin: -130px 0 0; }
  .cta .stores { justify-content: center; }
}

/* ---------------------------------------------------------- locker stage -- */
.locker-stage { align-items: center; display: flex; justify-content: center; justify-self: center; position: relative; }
.locker-stage .phone { position: relative; z-index: 2; }
.locker { filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55)); position: absolute; z-index: 1; }
.l-bronze { bottom: 132px; height: 232px; left: -84px; transform: rotate(-4deg) scaleX(-1); z-index: 3; }
.l-silver { bottom: 0; height: 225px; left: -96px; transform: rotate(5deg) scaleX(-1); z-index: 3; }
.l-gold { bottom: 205px; height: 222px; right: -76px; transform: rotate(7deg); z-index: 3; }
.l-open { bottom: 0; height: 225px; right: -112px; transform: rotate(-5deg); z-index: 3; }
/* The floor they stand on. */
.locker-stage::after {
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  bottom: -22px; content: ''; height: 70px; left: -200px; position: absolute; right: -200px; z-index: 0;
}
@media (max-width: 760px) {
  .l-bronze { bottom: 70px; height: 125px; left: -52px; }
  .l-silver { height: 130px; left: -38px; }
  .l-gold { bottom: 118px; height: 125px; right: -52px; }
  .l-open { height: 130px; right: -44px; }
  .locker-stage::after { left: -70px; right: -70px; }
}


/* ---------------------------------------------------------- league stage -- */
.league-stage { justify-self: center; position: relative; width: 100%; }
.pair { gap: 18px; padding-bottom: 0; }
.emblem { --size: 92px; height: var(--size); pointer-events: none; position: relative; width: var(--size); }
/* As the app's: a soft glow in the league's colour, a shine sweeping across now and then, specks rising. */
.emblem-glow {
  background: var(--glow); display: block; height: 220%; left: -60%; opacity: 0.55; position: absolute; top: -60%; width: 220%;
  -webkit-mask: url(leagues/glow.png) center / contain no-repeat; mask: url(leagues/glow.png) center / contain no-repeat;
  animation: pulse 2.8s ease-in-out infinite alternate;
}
.emblem-body { height: 100%; position: relative; width: 100%; }
.emblem-body img { display: block; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); height: 100%; width: 100%; }
.emblem-shine {
  background: var(--shine) 0 0 / 1600% 100% no-repeat; display: block; inset: 0; position: absolute;
  -webkit-mask: var(--mask) center / contain no-repeat; mask: var(--mask) center / contain no-repeat;
  animation: shine 4.4s steps(1) infinite;
}
.e2 .emblem-shine { animation-delay: -1.2s; } .e3 .emblem-shine { animation-delay: -2.4s; } .e4 .emblem-shine { animation-delay: -3.3s; }
.speck { animation: rise 3.2s linear infinite; background: var(--glow); border-radius: 50%; bottom: 20%; display: block; height: 5px; opacity: 0; position: absolute; width: 5px; }
.speck.s1 { left: 6%; } .speck.s2 { animation-delay: -1.1s; right: 8%; } .speck.s3 { animation-delay: -2.2s; left: 78%; height: 4px; width: 4px; }
@keyframes pulse { to { opacity: 0.8; transform: scale(1.06); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 0.9; } 75% { opacity: 0.6; } 100% { opacity: 0; transform: translateY(-70px); } }
/* 16 frames across the sheet over the first ~15% of the loop, then a rest. */
@keyframes shine {
  0.0% { background-position: 0.0% 0; }
  0.938% { background-position: 6.6667% 0; }
  1.875% { background-position: 13.3333% 0; }
  2.812% { background-position: 20.0% 0; }
  3.75% { background-position: 26.6667% 0; }
  4.688% { background-position: 33.3333% 0; }
  5.625% { background-position: 40.0% 0; }
  6.562% { background-position: 46.6667% 0; }
  7.5% { background-position: 53.3333% 0; }
  8.438% { background-position: 60.0% 0; }
  9.375% { background-position: 66.6667% 0; }
  10.312% { background-position: 73.3333% 0; }
  11.25% { background-position: 80.0% 0; }
  12.188% { background-position: 86.6667% 0; }
  13.125% { background-position: 93.3333% 0; }
  14.062% { background-position: 100.0% 0; }
  15.1%, 100% { background-position: 100% 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .emblem-glow, .emblem-shine, .speck { animation: none; } }
@media (max-width: 760px) {
  .emblem { --size: 62px; }
  .emblem-fan .emblem + .emblem { margin-left: -26px; }
  .pair { gap: 10px; }
}

/* The four emblems held together like a fanned hand of cards. */
/* Over the tops of the two phones, where the islands are, centred between them. */
.emblem-fan { display: flex; justify-content: center; left: 50%; position: absolute; top: -19px; transform: translateX(-50%); z-index: 5; }
.league-stage { padding-top: 50px; }
.emblem-fan .emblem + .emblem { margin-left: -38px; }
.emblem-fan .e1 { transform: translateY(30px) rotate(-28deg); z-index: 1; }
.emblem-fan .e2 { transform: translateY(2px) rotate(-10deg); z-index: 2; }
.emblem-fan .e3 { transform: translateY(2px) rotate(10deg); z-index: 3; }
.emblem-fan .e4 { transform: translateY(30px) rotate(28deg); z-index: 4; }

@media (max-width: 760px) { .emblem-fan { top: -10px; } .league-stage { padding-top: 34px; } }

/* No word left alone on a line: headings balance their lines, paragraphs avoid a last-line orphan. */
h1, h2, h3, .footer-line { text-wrap: balance; }
p, .lead, li { text-wrap: pretty; }

/* Nothing on the site can be highlighted, and clicks or taps leave no focus outline
   (keyboard users still see where they are, so Tab keeps working for them). */
html { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
img, svg { -webkit-user-drag: none; user-drag: none; }
:focus:not(:focus-visible) { outline: none; }
a:focus-visible { border-radius: 8px; outline: 2px solid var(--accent-light); outline-offset: 3px; }

/* The app's violet button face (VioletLayers): deep violet warming to mauve along a slight diagonal,
   a touch darker along the bottom, with the same soft glow. */
:root {
  --violet-fill:
    linear-gradient(180deg, rgba(20, 10, 48, 0) 45%, rgba(20, 10, 48, 0.22) 100%),
    linear-gradient(82deg, #5832B2 0%, #7444BC 50%, #8E5AC4 85%, #A266C9 100%);
}

/* The app's lit card edge on the banner: a 1px hairline, brightest on top and fading towards the bottom. */
.cta::before {
  background: linear-gradient(180deg, rgba(185, 182, 230, 0.42), rgba(185, 182, 230, 0.08));
  border-radius: inherit; content: ''; inset: 0; padding: 1px; pointer-events: none; position: absolute; z-index: 1;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.cta { border-color: transparent; }

/* Small phones: the before/after pair, its arrow and captions shrink to fit side by side. */
@media (max-width: 420px) {
  .duo { gap: 6px; }
  .duo .phone.small { --phone-zoom: 0.29; }
  .duo-arrow { height: 18px; margin-top: -20px; width: 44px; }
  figure.phone figcaption { bottom: -34px; font-size: 15px; }
}
@media (max-width: 340px) {
  .duo .phone.small { --phone-zoom: 0.25; }
  .duo-arrow { width: 34px; }
  figure.phone figcaption { font-size: 13px; }
}

/* Short desktop screens: the hero phone shrinks so the hero still fits exactly one screen under the navbar
   (the phone is 868px tall at full size, plus the hero's 64px of padding and the 72px navbar). */
@media (min-width: 761px) and (max-height: 760px) { .hero-phone { --phone-zoom: 0.66; } }
@media (min-width: 761px) and (max-height: 708px) { .hero-phone { --phone-zoom: 0.6; } }
@media (min-width: 761px) and (max-height: 656px) { .hero-phone { --phone-zoom: 0.54; } }
@media (min-width: 761px) and (max-height: 604px) { .hero-phone { --phone-zoom: 0.48; } .hero { padding: 20px 0; } }
/* Phones: the lockers' floor shadow stays inside the screen. */
@media (max-width: 760px) { .locker-stage::after { left: -50px; right: -50px; } }
/* Phones: the hero opens with more room under the navbar, and its paragraph balances its lines so no short tail hangs. */
@media (max-width: 760px) {
  .hero { padding-top: 56px; }
  .hero .lead { text-wrap: balance; }
}

/* Narrow desktop and tablet widths (two columns, little room): the locker stage and its phone a size down. */
.locker-stage::after { left: -140px; right: -140px; }
@media (min-width: 761px) and (max-width: 1100px) {
  .locker-stage .phone { --phone-zoom: 0.54; }
  .l-bronze { bottom: 100px; height: 180px; left: -60px; }
  .l-silver { height: 180px; left: -62px; }
  .l-gold { bottom: 165px; height: 175px; right: -54px; }
  .l-open { height: 180px; right: -50px; }
  .locker-stage::after { left: -60px; right: -60px; }
}

/* The smallest phones (about 320px). */
@media (max-width: 360px) {
  .nav .nav-cta { font-size: 13px; padding: 7px 11px; }
  .brand .wordmark { font-size: 19px; }
  .brand img { height: 30px; width: 30px; }
  .trio .phone { --phone-zoom: 0.25; }
  .l-bronze { left: -26px; }
  .l-silver { left: -20px; }
  .l-gold { right: -24px; }
  .l-open { right: -24px; }
  .locker-stage::after { left: -20px; right: -20px; }
}

/* Up to 1100px the page is edge to edge: background glows are cut at the screen edge, not scrollable. */
@media (max-width: 1100px) { .wrap.wide { overflow-x: clip; } }

/* The hero's glows span the full screen width, not just the content column. */
.hero-deco { left: 50%; right: auto; transform: translateX(-50%); width: 100vw; }

/* Confetti on phones: all thirteen chips, placed round the edges of the text and the phone, and in the gap between them. */
.chip.c10, .chip.c11, .chip.c12, .chip.c13 { display: none; }
@media (max-width: 760px) {
  .chip { height: 8px; opacity: 0.75; width: 15px; inset: auto; }
  .chip.c10, .chip.c11, .chip.c12, .chip.c13 { display: block; }
  .chip.c1  { left: 5%;  top: 5%; }
  .chip.c2  { right: 7%; top: 2.5%; }
  .chip.c3  { left: 3%;  top: 29%; opacity: 0.6; }
  .chip.c4  { right: 3%; top: 21%; }
  .chip.c5  { right: 4%; top: 46%; }
  .chip.c6  { left: 5%;  top: 49%; opacity: 0.6; }
  .chip.c7  { left: 2%;  top: 64%; height: 6px; opacity: 0.55; width: 11px; }
  .chip.c8  { right: 2%; top: 71%; height: 6px; opacity: 0.55; width: 11px; }
  .chip.c9  { left: 4%;  top: 86%; }
  .chip.c10 { background: #ffe07a; right: 6%; top: 91%; transform: rotate(35deg); animation-delay: -3.5s; }
  .chip.c11 { background: #4c85ff; left: 32%; top: 1%; transform: rotate(-20deg); animation-delay: -1.5s; opacity: 0.6; }
  .chip.c12 { background: #ffc23d; left: 13%; top: 39%; transform: rotate(55deg); animation-delay: -4.5s; }
  .chip.c13 { background: #9a7cf0; right: 17%; top: 38%; transform: rotate(-35deg); animation-delay: -6.5s; }
}

/* Phones: one locker each side, bigger, overlapping the phone and kept inside the screen. */
@media (max-width: 760px) {
  .l-bronze, .l-gold { display: none; }
  .l-silver { bottom: -6px; height: 175px; left: -42px; }
  .l-open { bottom: -6px; height: 175px; right: -46px; }
  .locker-stage::after { left: -40px; right: -40px; }
}
@media (max-width: 360px) {
  .l-silver { height: 145px; left: -16px; }
  .l-open { height: 145px; right: -16px; }
}

/* Section paragraphs balance their lines at every width, so no short tail of a word or two hangs off the end. */
.feature p, .hero .lead, .cta p { text-wrap: balance; }

/* Phones: the emblem fan spread wider with a gentler arc (the desktop arc is too steep at this size). */
@media (max-width: 760px) {
  .emblem-fan .emblem + .emblem { margin-left: -17px; }
  .emblem-fan .e1 { transform: translateY(12px) rotate(-16deg); }
  .emblem-fan .e2 { transform: translateY(1px) rotate(-6deg); }
  .emblem-fan .e3 { transform: translateY(1px) rotate(6deg); }
  .emblem-fan .e4 { transform: translateY(12px) rotate(16deg); }
}

/* Phones: the footer centred like the rest of the page. Name, line and socials stacked; the links in a
   tidy two-by-two grid; then the badges and the small print, centred under a full-width line. */
@media (max-width: 760px) {
  .footer-row { align-items: center; text-align: center; }
  .footer-top { gap: 30px; padding-bottom: 36px; padding-top: 48px; }
  .footer-brand { align-items: center; display: flex; flex-direction: column; }
  .footer-brand p { margin: 10px 0 20px; }
  .footer-links { display: grid; gap: 16px 40px; grid-template-columns: auto auto; justify-content: center; }
  .footer-links a { font-size: 15px; }
  .footer-base .footer-row { gap: 20px; padding-bottom: 72px; padding-top: 32px; }
  .footer-base .footer-actions { justify-content: center; }
}

/* Phones, footer: roomier, the links as a centred run (Support, Privacy, Terms, then Delete account under them),
   and the store badges further apart. */
@media (max-width: 760px) {
  .footer-top { gap: 40px; padding-bottom: 52px; padding-top: 64px; }
  .footer-brand p { margin: 14px 0 26px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: center; max-width: 300px; }
  .footer-base .footer-row { gap: 28px; padding-top: 44px; }
  .footer-stores { gap: 18px; }
}

/* Support, privacy, terms and delete-account pages: room between the navbar and the page title. */
main > h1:first-child { margin-top: 56px; }
@media (max-width: 760px) { main > h1:first-child { margin-top: 40px; } }

/* Page cards (support, privacy, terms, delete account): the app's lit card edge, as on the banner. */
.card { border-color: transparent; position: relative; }
.card::before {
  background: linear-gradient(180deg, rgba(185, 182, 230, 0.42), rgba(185, 182, 230, 0.08));
  border-radius: inherit; content: ''; inset: -1px; padding: 1px; pointer-events: none; position: absolute;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* Numbered steps in one of the app's lit cards: a row per step, split by hairlines, each number in a violet badge. */
.steps {
  background: linear-gradient(135deg, #1E1B3C, #12132B); border-radius: 18px; box-shadow: 0 6px 14px rgba(3, 3, 14, 0.45);
  display: block; margin: 18px 0; padding: 6px 0; position: relative;
}
.steps::after {
  background: linear-gradient(180deg, rgba(185, 182, 230, 0.42), rgba(185, 182, 230, 0.08));
  border-radius: inherit; content: ''; inset: 0; padding: 1px; pointer-events: none; position: absolute;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.steps li { display: block; margin: 0 18px; padding: 16px 0 16px 48px; }
.steps li + li { border-top: 1px solid rgba(185, 182, 230, 0.1); }
.steps li::before {
  background: var(--violet-fill); border-radius: 10px; box-shadow: 0 0 8px rgba(120, 70, 200, 0.28);
  font-family: 'Nunito', 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 900;
  height: 34px; left: 0; top: 50%; transform: translateY(-50%); width: 34px;
}

/* An app icon inside a line of text, sized and seated like a letter. */
.inline-icon { height: 0.95em; margin-right: 1px; vertical-align: -0.12em; width: 0.95em; }

/* A warning card, in amber: an amber-tinted face and edge, and the alert icon by the heading. */
.card.warning { background: linear-gradient(135deg, rgba(255, 194, 61, 0.12), rgba(255, 194, 61, 0.04)), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.card.warning::before { background: linear-gradient(180deg, rgba(255, 194, 61, 0.65), rgba(255, 194, 61, 0.18)); }
.card.warning h3 { align-items: center; color: #FFD27A; display: flex; gap: 10px; }
.warn-icon { color: #FFC23D; flex: none; height: 20px; width: 20px; }

/* Tablets in portrait (iPad and similar, 761-960px): sections stack like on phones, words first then the
   phones, so the two-phone and three-phone pictures get the full width and the headings aren't squeezed. */
@media (min-width: 761px) and (max-width: 960px) {
  .showcase { gap: 96px; }
  .feature { gap: 36px; grid-template-columns: 1fr; text-align: center; }
  .feature:nth-child(even) > :first-child { order: 0; }
  .feature > .feature-copy { order: -1; }
  .feature .feature-copy, .feature:nth-child(odd) .feature-copy, .feature:nth-child(even) .feature-copy { justify-self: center; max-width: 560px; }
  .locker-stage .phone { --phone-zoom: 0.62; }
}

/* Tablets and up: every page (navbar, content and footer) keeps at least 44px at the sides. */
@media (min-width: 761px) {
  .wrap { padding-left: 44px; padding-right: 44px; }
}
/* Tablets in portrait: the hero's store badges a touch smaller so both sit on one row beside the phone. */
@media (min-width: 761px) and (max-width: 960px) { .hero .store img { height: 44px; } .hero { gap: 28px; } }

/* Confetti on desktop and tablets: all thirteen chips, a size up, spread through the open space around
   the heading and the phone (the top band, both margins, the gap between them and below). */
@media (min-width: 761px) {
  .chip { height: 10px; inset: auto; opacity: 0.8; width: 18px; }
  .chip.c10, .chip.c11, .chip.c12, .chip.c13 { display: block; }
  .chip.c1  { left: 6%;   top: 10%; }
  .chip.c2  { left: 30%;  top: 7%; }
  .chip.c3  { left: 3%;   top: 50%; opacity: 0.6; }
  .chip.c4  { right: 12%; top: 9%; }
  .chip.c5  { right: 6%;  top: 62%; }
  .chip.c6  { left: 22%;  top: 79%; opacity: 0.6; }
  .chip.c7  { left: 47%;  top: 22%; height: 7px; opacity: 0.6; width: 13px; }
  .chip.c8  { left: 49%;  top: 58%; height: 7px; opacity: 0.6; width: 13px; }
  .chip.c9  { right: 3%;  top: 34%; }
  .chip.c10 { background: #ffe07a; left: 14%; top: 28%; transform: rotate(35deg); animation-delay: -3.5s; height: 7px; width: 13px; }
  .chip.c11 { background: #4c85ff; left: 40%; top: 73%; transform: rotate(-20deg); animation-delay: -1.5s; opacity: 0.6; }
  .chip.c12 { background: #ffc23d; right: 20%; top: 83%; transform: rotate(55deg); animation-delay: -4.5s; }
  .chip.c13 { background: #9a7cf0; left: 8%; top: 70%; transform: rotate(-35deg); animation-delay: -6.5s; }
}
/* Desktop confetti dialled back a touch: ten chips, slightly softer. */
@media (min-width: 761px) { .chip.c7, .chip.c11, .chip.c13 { display: none; } .chip { opacity: 0.7; } }
