/* ScoreTap marketing site. Tokens mirror src/theme.css in the app so the site
   and the scoreboard read as one product. */

@font-face {
  font-family: "Fredoka Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/fonts/fredoka-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fredoka Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/fonts/fredoka-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/fonts/nunito-vietnamese-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Nunito Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --plum-950: #1b1730;
  --plum-900: #221c3a;
  --plum-800: #2b2446;
  --plum-700: #3a3160;
  --plum-600: #4b4079;
  --plum-500: #6a5ea3;
  --lavender: #ab9ff2;
  --lavender-2: #c9c0f8;
  --blush: #ffd9e3;
  --lemon: #ffe45c;
  --cream: #fffbb2;
  --tangerine: #ff7b45;
  --sky: #4b8bf5;
  --sky-2: #6ea3ff;
  --sky-ink: #173a7a;
  --mint: #2dbe86;
  --mint-2: #4fd7a0;
  --mint-ink: #0d553a;
  --ink: #1b1730;
  --text: #f6f3ff;
  --muted: #b8b0dc;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-press: 0 5px 0 rgba(27, 23, 48, 0.4);
  --shadow-float: 0 18px 40px rgba(12, 8, 30, 0.45);
  --font: "Fredoka Variable", "Fredoka", "Nunito", "Segoe UI Rounded", system-ui, sans-serif;
  --container: 1120px;
  --gutter: clamp(18px, 4vw, 32px);
  --section: clamp(56px, 9vw, 112px);
  color-scheme: dark;
}

/* Fredoka ships no Vietnamese glyphs; Vietnamese pages use Nunito, a rounded
   face with full diacritics, so words never mix two fonts. */
:root:lang(vi) {
  --font: "Nunito Variable", "Nunito", "Segoe UI", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--plum-800);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: var(--lavender-2);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cream);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(36px, 6.4vw, 66px);
}

h2 {
  font-size: clamp(28px, 4.2vw, 42px);
}

h3 {
  font-size: clamp(20px, 2.4vw, 24px);
}

p {
  margin: 0;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lemon);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-press);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  filter: brightness(1.06);
  color: inherit;
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(27, 23, 48, 0.4);
}

.btn-primary {
  background: var(--lavender);
  color: var(--ink);
}

.btn-primary:hover {
  color: var(--ink);
}

.btn-blue {
  background: var(--sky);
}

.btn-green {
  background: var(--mint);
}

.btn-lemon {
  background: var(--lemon);
  color: var(--ink);
}

.btn-lemon:hover {
  color: var(--ink);
}

.btn-ghost {
  background: var(--plum-700);
  color: var(--text);
  border-color: var(--plum-600);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--plum-500);
}

.btn-sm {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 15px;
  box-shadow: 0 3px 0 rgba(27, 23, 48, 0.4);
}

.btn.is-soon {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

.btn.is-soon:active {
  transform: none;
}

.btn-icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-buttons .btn {
  flex: 0 1 auto;
  min-width: 232px;
}

@media (max-width: 560px) {
  .store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-buttons .btn {
    width: 100%;
    max-width: 340px;
  }
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(43, 36, 70, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(75, 64, 121, 0.5);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.brand img {
  width: 36px;
  height: 36px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav > a:not(.btn) {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
}

.site-nav > a:not(.btn):hover,
.site-nav > a[aria-current="page"] {
  color: var(--text);
  background: var(--plum-700);
}

.site-nav .btn {
  margin-left: 8px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 2;
}

.site-nav {
  margin-left: auto;
}

/* ---- Language switcher ---- */

.lang-switch {
  position: relative;
}

.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--plum-600);
  background: var(--plum-700);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch summary:hover,
.lang-switch[open] summary {
  border-color: var(--lavender);
}

.lang-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.lang-switch ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 180px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: var(--radius-lg);
  background: var(--plum-900);
  border: 2px solid var(--plum-600);
  box-shadow: var(--shadow-float);
}

.lang-switch li a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.lang-switch li a:hover {
  background: var(--plum-700);
  color: var(--text);
}

.lang-switch li a[aria-current="true"] {
  color: var(--lemon);
}

.lang-switch li a[aria-current="true"]::after {
  content: "";
  float: right;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--lemon);
}

.footer-langs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-langs a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.footer-langs a:hover,
.footer-langs a[aria-current="true"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid var(--plum-600);
  border-radius: var(--radius-pill);
  background: var(--plum-700);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px var(--gutter) 18px;
    background: var(--plum-900);
    border-bottom: 1px solid var(--plum-600);
    box-shadow: var(--shadow-float);
  }

  .site-nav > a:not(.btn) {
    padding: 12px 14px;
    font-size: 17px;
  }

  .site-nav .btn {
    margin: 8px 0 0;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---- Decorative blobs ---- */

.blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  width: 46vmin;
  height: 46vmin;
  border-radius: 46% 54% 58% 42% / 44% 40% 60% 56%;
  opacity: 0.22;
  animation: blob-drift 14s ease-in-out infinite alternate;
}

.blob-sky { background: var(--sky); top: -18vmin; left: -14vmin; }
.blob-blush { background: var(--blush); bottom: -20vmin; right: -12vmin; animation-delay: -4s; }
.blob-tangerine { background: var(--tangerine); bottom: -26vmin; left: -8vmin; width: 40vmin; height: 40vmin; animation-delay: -8s; }
.blob-lemon { background: var(--cream); top: -22vmin; right: -16vmin; width: 42vmin; height: 42vmin; animation-delay: -11s; }
.blob-mint { background: var(--mint); top: 30%; right: -20vmin; width: 34vmin; height: 34vmin; animation-delay: -6s; }

@keyframes blob-drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(3vmin, -2vmin, 0) rotate(9deg); }
}

/* ---- Sections ---- */

.section {
  position: relative;
  padding-block: var(--section);
}

.section-alt {
  background: var(--plum-900);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 19px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--lemon);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.eyebrow img {
  width: 20px;
  height: 20px;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 96px);
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(171, 159, 242, 0.18), transparent 70%),
    var(--plum-800);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.hero-copy .sub {
  margin-top: 20px;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 21px);
}

.hero-copy .btn-row {
  margin-top: 30px;
}

.hero h1 em {
  font-style: normal;
  color: var(--lemon);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.trust li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--mint-2);
  vertical-align: middle;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-mascot {
  position: absolute;
  width: clamp(110px, 16vw, 170px);
  right: -6%;
  bottom: -4%;
  z-index: 2;
  filter: drop-shadow(0 16px 24px rgba(12, 8, 30, 0.45));
  animation: mascot-bob 3.2s ease-in-out infinite;
}

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-top: 8px;
  }
}

/* ---- Phone mockup: a CSS rendition of the real court screen ---- */

.phone {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 9 / 19;
  padding: 12px;
  border-radius: 46px;
  background: var(--plum-950);
  box-shadow:
    inset 0 0 0 2px var(--plum-600),
    var(--shadow-float);
}

.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 34%;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  background: var(--plum-950);
  z-index: 3;
}

.screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 44px 10px 14px;
  border-radius: 36px;
  background: var(--plum-800);
  overflow: hidden;
}

.screen-toolbar {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.screen-toolbar span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--plum-600);
  background: var(--plum-700);
}

.screen-toolbar span.on {
  background: var(--lemon);
  border-color: var(--lemon);
}

.screen-call {
  text-align: center;
  color: var(--lemon);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.court {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative;
}

.court::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6%;
  bottom: 6%;
  border-left: 3px dashed rgba(246, 243, 255, 0.35);
  transform: translateX(-50%);
}

.court-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  color: #fff;
}

.court-side.blue {
  background: var(--sky);
}

.court-side.green {
  background: var(--mint);
}

.court-score {
  font-size: clamp(64px, 20vw, 92px);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 4px 0 rgba(27, 23, 48, 0.25);
}

.court-tag {
  position: absolute;
  bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
}

.serving {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--lemon);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.remote-float {
  position: absolute;
  left: -8%;
  top: 12%;
  display: block;
  width: clamp(84px, 12vw, 120px);
  padding: 10px;
  border-radius: var(--radius-lg);
  background: var(--plum-700);
  border: 2px solid var(--plum-600);
  box-shadow: var(--shadow-float);
  z-index: 2;
  animation: remote-float 4s ease-in-out infinite;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.remote-float:hover {
  border-color: var(--plum-500);
  transform: scale(1.05);
}

.remote-float img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes remote-float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-8px) rotate(-5deg); }
}

.bubble {
  position: absolute;
  right: -4%;
  top: 26%;
  z-index: 2;
  max-width: 150px;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 4px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  box-shadow: var(--shadow-float);
}

.bubble small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ---- Cards & grids ---- */

.grid {
  display: grid;
  gap: 18px;
}

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

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

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-xl);
  background: var(--plum-700);
  border: 2px solid rgba(75, 64, 121, 0.6);
}

.card h3 {
  margin-top: 16px;
}

.card p {
  margin-top: 10px;
  color: var(--muted);
}

.card-icon {
  width: 72px;
  height: 72px;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: var(--plum-800);
}

.card-lift {
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card-lift:hover {
  transform: translateY(-4px);
  border-color: var(--plum-500);
}

/* ---- Steps ---- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--radius-xl);
  background: var(--plum-800);
  border: 2px solid var(--plum-600);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--lemon);
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
}

.steps h3 {
  font-size: 20px;
}

.steps p {
  margin-top: 8px;
  color: var(--muted);
}

@media (max-width: 800px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---- Sports chips ---- */

.sport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sport-grid li {
  display: flex;
  min-width: 0;
}

.sport-chip {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--plum-700);
  border: 2px solid transparent;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.sport-chip:hover {
  color: var(--text);
  border-color: var(--lavender);
  transform: translateY(-2px);
}

.sport-chip img {
  width: 36px;
  height: 36px;
  flex: none;
}

.sport-chip span {
  min-width: 0;
  overflow-wrap: break-word;
  line-height: 1.25;
}

.sport-chip.is-hero {
  border-color: var(--lemon);
}

/* ---- Sport detail list ---- */

.sport-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sport-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 22px;
  border-radius: var(--radius-xl);
  background: var(--plum-700);
}

.sport-item-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.sport-item img {
  width: 48px;
  height: 48px;
  flex: none;
}

.sport-item h3 {
  font-size: 19px;
}

.sport-item .cat {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--plum-800);
  color: var(--lavender-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sport-item p {
  color: var(--muted);
}

.sport-item .tags {
  margin-top: auto;
  padding-top: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--plum-800);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ---- Language pills ---- */

.lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.lang-row li {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--plum-800);
  border: 2px solid var(--plum-600);
  font-weight: 600;
}

/* ---- Install platform cards ---- */

.platform {
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-xl);
  background: var(--plum-700);
  border: 2px solid rgba(75, 64, 121, 0.6);
}

.platform.is-current {
  border-color: var(--lemon);
}

.platform .badge {
  display: none;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--lemon);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  vertical-align: middle;
}

.platform.is-current .badge {
  display: inline-block;
}

.platform ol {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.platform li {
  margin-bottom: 8px;
}

.platform li strong {
  color: var(--text);
}

.platform .btn-row {
  margin-top: 20px;
}

.platform-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-head svg {
  width: 40px;
  height: 40px;
  flex: none;
}

.note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--plum-800);
  border-left: 4px solid var(--lemon);
  color: var(--muted);
  font-size: 15px;
}

.note strong {
  color: var(--text);
}

kbd {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 8px;
  background: var(--plum-800);
  border: 1px solid var(--plum-600);
  font: inherit;
  font-size: 0.9em;
  font-weight: 600;
}

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

.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq details {
  border-radius: var(--radius-lg);
  background: var(--plum-700);
  border: 2px solid transparent;
}

.faq details[open] {
  border-color: var(--plum-500);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 54px 18px 22px;
  position: relative;
  font-weight: 700;
  font-size: 18px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--plum-800);
  color: var(--lemon);
  font-size: 22px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq .answer {
  padding: 0 22px 20px;
  color: var(--muted);
}

/* ---- CTA band ---- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 64px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--plum-700), var(--plum-900));
  border: 2px solid var(--plum-600);
  text-align: center;
}

.cta-band h2 {
  position: relative;
  z-index: 1;
}

.cta-band p {
  position: relative;
  z-index: 1;
  margin: 12px auto 0;
  max-width: 560px;
  color: var(--muted);
}

.cta-band .btn-row {
  position: relative;
  z-index: 1;
  justify-content: center;
  margin-top: 26px;
}

/* ---- Hero image band ---- */

.court-band {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--plum-600);
  background: var(--plum-900);
}

.ring-visual {
  position: relative;
}

.court-phone-float {
  position: absolute;
  right: 4%;
  bottom: -12%;
  z-index: 2;
  width: clamp(84px, 14vw, 168px);
  aspect-ratio: 9 / 16;
  padding: 7px;
  border-radius: 24px;
  background: var(--plum-950);
  box-shadow: inset 0 0 0 2px var(--plum-600), var(--shadow-float);
  animation: remote-float 4.6s ease-in-out infinite;
}

.court-phone-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 17px;
  display: block;
}

@media (max-width: 640px) {
  .court-phone-float {
    right: 5%;
    bottom: -8%;
    width: clamp(64px, 20vw, 96px);
  }

  .court-band figcaption {
    padding-right: 100px;
  }
}

.court-band img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.court-band figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 22px;
  background: linear-gradient(to top, rgba(27, 23, 48, 0.92), transparent);
  color: var(--text);
  font-weight: 600;
}

/* ---- Product photo (real photography, not an icon) ---- */

.product-shot {
  width: min(360px, 100%);
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--plum-600);
  background: #f4f4f8;
  box-shadow: var(--shadow-float);
  text-align: center;
}

.product-shot img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.product-shot figcaption {
  padding: 12px 16px;
  background: var(--plum-700);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}

/* ---- Prose (guides, legal) ---- */

.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px);
  background: var(--plum-900);
}

.page-head .container {
  position: relative;
  z-index: 1;
}

.page-head .lede {
  margin-top: 16px;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
}

.page-head .meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  opacity: 0.5;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
}

.prose {
  max-width: 760px;
  padding-block: clamp(32px, 5vw, 56px) var(--section);
}

.prose h2 {
  margin: 44px 0 12px;
  font-size: clamp(24px, 3vw, 30px);
}

.prose h3 {
  margin: 28px 0 8px;
}

.prose p,
.prose li {
  color: #dcd6f5;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 8px;
}

.prose li::marker {
  color: var(--lemon);
}

.prose strong {
  color: var(--text);
}

.prose .translation-note {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--plum-900);
  border-left: 4px solid var(--lavender);
  color: var(--muted);
  font-size: 15px;
}

.prose .summary {
  padding: 20px 22px;
  margin: 0 0 24px;
  border-radius: var(--radius-lg);
  background: var(--plum-700);
  border: 2px solid var(--plum-600);
  color: var(--text);
}

.prose .summary p:last-child {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  margin: 0 0 22px;
  border-collapse: collapse;
  font-size: 15px;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 22px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--plum-600);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--lemon);
  font-weight: 700;
}

.prose .contact {
  display: inline-block;
  margin-top: 4px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--plum-700);
  border: 2px solid var(--plum-600);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.prose .contact:hover {
  border-color: var(--lavender);
}

.score-example {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
  padding: 8px 14px;
  margin: 4px 0 16px;
  border-radius: var(--radius-lg);
  background: var(--plum-950);
  color: var(--lemon);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
}

.qa {
  margin: 0 0 22px;
}

.qa dt {
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  margin-top: 24px;
}

.qa dt::before {
  content: "Q. ";
  color: var(--lemon);
}

.qa dd {
  margin: 8px 0 0;
  color: #dcd6f5;
}

/* ---- Footer ---- */

.site-footer {
  padding-block: clamp(40px, 6vw, 64px) 40px;
  background: var(--plum-950);
  border-top: 1px solid var(--plum-600);
  color: var(--muted);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 460px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--plum-700);
  font-size: 13px;
}

.footer-meta p + p {
  margin-top: 8px;
}

.footer-meta a {
  color: var(--lavender-2);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  min-width: 150px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--plum-800);
  border: 2px solid var(--plum-600);
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.store-badge:hover {
  color: var(--text);
  border-color: var(--lavender);
}

.store-badge.is-soon {
  opacity: 0.55;
}

.store-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--plum-800);
  border: 2px solid var(--plum-600);
  color: var(--text);
  text-decoration: none;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  color: var(--text);
  border-color: var(--lavender);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Ring page: offer, countdown scoreboard, reservation form ---- */

.preorder-form[hidden],
.preorder-success[hidden],
.field-error[hidden],
.form-status[hidden] {
  display: none;
}

.btn-block {
  width: 100%;
  white-space: normal;
  text-align: center;
}

.ring-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(28px, 4vw, 48px) clamp(48px, 7vw, 88px);
  background:
    radial-gradient(55% 45% at 85% 0%, rgba(255, 228, 92, 0.1), transparent 70%),
    var(--plum-900);
}

.ring-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  grid-template-areas:
    "copy offer"
    "photo offer";
  align-items: start;
  gap: 28px clamp(28px, 5vw, 64px);
  margin-top: 8px;
}

.ring-hero-copy {
  grid-area: copy;
}

.ring-hero-copy .lede {
  margin-top: 18px;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
}

.ring-hero .ring-hero-photo {
  grid-area: photo;
  width: min(320px, 100%);
  margin: 0;
}

.offer {
  grid-area: offer;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-xl);
  background: var(--plum-950);
  border: 2px solid var(--plum-600);
  box-shadow: var(--shadow-float);
}

/* The countdown is drawn as the app's court screen: blue and green halves
   split by a dashed net, so the clock reads as a ScoreTap scoreboard. */
.board-wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.board-closes {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--lemon);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
}

.board {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.board::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10%;
  bottom: 10%;
  border-left: 3px dashed rgba(246, 243, 255, 0.45);
  transform: translateX(-50%);
}

.board-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px 4px 12px;
  border-radius: 22px;
  color: var(--ink);
}

.board-half.blue {
  background: var(--sky);
}

.board-half.green {
  background: var(--mint);
}

.board-unit {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.board-num {
  font-size: clamp(34px, 9vw, 54px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.board-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.board-wrap.is-closed .board {
  opacity: 0.45;
}

.board-wrap.is-closed .board-closes {
  background: var(--plum-600);
  color: var(--text);
}

.offer-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.offer-price-amount {
  color: var(--lemon);
  font-size: clamp(52px, 8vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.offer-price-label {
  font-size: 18px;
  font-weight: 700;
}

.offer-note {
  margin-top: -10px;
  color: var(--muted);
  font-size: 15px;
}

.no-pay {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(45, 190, 134, 0.12);
  border: 2px solid var(--mint);
}

.no-pay-icon {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--mint-2);
}

.no-pay strong {
  display: block;
  font-size: 18px;
}

.no-pay p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 15px;
}

.no-pay-compact {
  align-items: center;
  padding: 10px 14px;
}

@media (max-width: 900px) {
  .ring-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "offer"
      "photo";
  }

  .ring-hero .ring-hero-photo {
    margin-inline: auto;
  }
}

#reserve {
  scroll-margin-top: 80px;
}

.reserve-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
}

.reserve-lede {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 19px);
}

.reserve-steps-h {
  margin-top: 32px;
  font-size: 20px;
}

.reserve-steps {
  counter-reset: reserve;
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.reserve-steps li {
  position: relative;
  min-height: 36px;
  padding: 5px 0 0 52px;
  color: #dcd6f5;
}

.reserve-steps li::before {
  counter-increment: reserve;
  content: counter(reserve);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lemon);
  color: var(--ink);
  font-weight: 700;
}

.reserve-steps strong {
  color: var(--mint-2);
}

.reserve-card {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-xl);
  background: var(--plum-700);
  border: 2px solid var(--plum-600);
}

.preorder-form {
  display: grid;
  gap: 16px;
}

.form-required,
.field-hint,
.form-note {
  color: var(--muted);
  font-size: 14px;
}

.form-note {
  text-align: center;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 700;
}

.req {
  color: var(--lemon);
}

.field-input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--plum-500);
  background: var(--plum-900);
  color: var(--text);
  font: inherit;
  font-size: 17px;
}

.field-input::placeholder {
  color: #8f87b8;
}

.field-input:focus-visible {
  border-color: var(--lavender);
  outline-offset: 2px;
}

.field-input[aria-invalid="true"] {
  border-color: var(--tangerine);
}

.field-error,
.form-status {
  color: #ffb08f;
  font-size: 15px;
  font-weight: 700;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.preorder-success {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(45, 190, 134, 0.12);
  border: 2px solid var(--mint);
}

.preorder-success h3 {
  font-size: 22px;
}

.preorder-success p {
  margin-top: 8px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .reserve-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- 404 ---- */

.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--section);
}

.notfound img {
  width: 140px;
  margin: 0 auto 20px;
}

.notfound p {
  margin: 14px auto 24px;
  color: var(--muted);
  max-width: 460px;
}

/* ---- Motion ---- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .blob,
  .hero-mascot,
  .remote-float {
    animation: none;
  }

  .btn,
  .card-lift,
  .sport-chip {
    transition: none;
  }
}
