/* PadelArc site design system.
   The palette, radii and type roles come from design-system/tokens.json, the same
   file that generates the iOS and watchOS tokens. Keep the two in step: a colour
   that changes in the app changes here.

   Every animation is decoration. The page reads completely with no JavaScript,
   and prefers-reduced-motion stops every loop. */

:root {
  /* Smoked Champagne palette */
  --bg: #080707;
  --bg-raised: #0f0c0a;
  --glow-primary: #8a6337;
  --glow-secondary: #6b502f;
  --surface: #261f1a;
  --surface-elevated: #32271f;
  --surface-input: #17130f;
  --text: #faf0de;
  --text-muted: #c2b8a8;
  --text-dim: #8e8474;
  --text-inverse: #17130f;
  --gold: #f0c98a;
  --gold-edge: #dbbc8f;
  --gold-deep: #b8894f;
  --gold-wash: #614526;
  --court: #8fb0cf;
  --success: #bbd6a1;
  --danger: #f38d86;

  /* Glass. The tint is the background colour, so the glass grows more
     transparent on a dark ground instead of turning milky. */
  --glass-fill: rgba(38, 31, 26, 0.44);
  --glass-strong: rgba(30, 24, 20, 0.78);
  --glass-edge: rgba(240, 201, 138, 0.16);
  --glass-edge-strong: rgba(240, 201, 138, 0.34);
  --glass-highlight: rgba(250, 240, 222, 0.06);

  --gold-gradient: linear-gradient(135deg, #fbe6bf 0%, #f0c98a 42%, #c7965a 100%);
  --button-gradient: linear-gradient(100deg, #f7e3bf 0%, #efcd95 45%, #d6aa6c 100%);
  --edge-gradient: linear-gradient(160deg, rgba(240, 201, 138, 0.5), rgba(240, 201, 138, 0.06) 42%, rgba(143, 176, 207, 0.14));

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-card: 22px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  --measure: 68ch;
  --gutter: clamp(16px, 5vw, 40px);
  --page: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ui-rounded resolves to SF Pro Rounded on Apple devices, which is the exact
     face the app uses. Nunito carries the rounded feel everywhere else. */
  --font: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* One symmetric floodlight at the top centre. No vignette. The warm hue stays
   inside the glow, exactly as the app draws its field. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 50% -20%, rgba(138, 99, 55, 0.42) 0%, rgba(138, 99, 55, 0.12) 40%, transparent 72%),
    radial-gradient(50% 40% at 50% 0%, rgba(240, 201, 138, 0.1) 0%, transparent 70%);
}

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

img {
  height: auto;
}

figure {
  margin: 0;
}

a {
  color: var(--gold);
  text-decoration-color: rgba(240, 201, 138, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

a:hover {
  text-decoration-color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: rgba(240, 201, 138, 0.32);
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--text-inverse);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Type ---------- */

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 5.6vw, 64px);
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

h3 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 15px;
  letter-spacing: 0;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.lede {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--text-muted);
}

.lede strong,
.hero-lede strong {
  color: var(--text);
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-gradient);
}

.center .eyebrow::after,
.section-head .eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-gradient);
}

.gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.court {
  color: var(--court);
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 14px;
  line-height: 1.55;
}

.center {
  text-align: center;
}

.guide-grid {
  margin-top: 40px;
}

.grid + .center {
  margin-top: clamp(32px, 4vw, 48px);
}

.center .btn-row {
  justify-content: center;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--page) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-narrow {
  max-width: calc(780px + var(--gutter) * 2);
}

.section {
  position: relative;
  padding: clamp(56px, 7.5vw, 108px) 0;
}

.section-tight {
  position: relative;
  padding: clamp(36px, 5vw, 64px) 0;
}

.stack > * + * {
  margin-top: 20px;
}

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

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.section-head {
  max-width: 800px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  text-align: center;
}

.section-head .lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

.display {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--glass-edge-strong), transparent);
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav.is-scrolled,
.nav:focus-within {
  background: rgba(8, 7, 7, 0.72);
  border-bottom-color: rgba(240, 201, 138, 0.1);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 23%;
  box-shadow: 0 0 0 1px rgba(240, 201, 138, 0.22), 0 6px 20px -4px rgba(240, 201, 138, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(240, 201, 138, 0.08);
}

.nav-links .nav-cta {
  white-space: nowrap;
  margin-left: 8px;
  padding: 9px 18px;
  color: var(--text-inverse);
  background: var(--button-gradient);
  box-shadow: 0 6px 22px -6px rgba(240, 201, 138, 0.55);
}

.nav-links .nav-cta:hover {
  color: var(--text-inverse);
  background: var(--button-gradient);
  filter: brightness(1.06);
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, filter 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary {
  color: var(--text-inverse);
  background: var(--button-gradient);
  box-shadow: 0 10px 34px -8px rgba(240, 201, 138, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* A slow light sweep across the gold pill. */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: sheen 5.5s var(--ease-out) 1.5s infinite;
}

.btn-primary:hover {
  box-shadow: 0 16px 44px -8px rgba(240, 201, 138, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-ghost {
  color: var(--text);
  background: rgba(250, 240, 222, 0.05);
  box-shadow: inset 0 0 0 1px var(--glass-edge-strong);
}

.btn-ghost:hover {
  background: rgba(250, 240, 222, 0.1);
}

/* The App Store call to action. Before release it is a status, not a link. */
.store {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 26px 8px 20px;
  border-radius: var(--radius-pill);
  color: var(--text-inverse);
  background: var(--button-gradient);
  box-shadow: 0 14px 40px -10px rgba(240, 201, 138, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  text-decoration: none;
  overflow: hidden;
}

.store::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: sheen 5.5s var(--ease-out) 1s infinite;
}

.store svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.store-text small {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
}

.store-text strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

a.store:hover {
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(240, 201, 138, 0.08);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(38, 31, 26, 0.6);
  box-shadow: inset 0 0 0 1px var(--glass-edge-strong);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  animation: ping 1.8s ease-out infinite;
}

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

.hero {
  position: relative;
  margin-top: -72px;
  padding: calc(72px + clamp(32px, 6vw, 72px)) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

/* The floodlight: one symmetric glow at the top centre, and soft beams. */
.hero-light {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% -8%, rgba(240, 201, 138, 0.26) 0%, rgba(138, 99, 55, 0.22) 30%, transparent 70%),
    radial-gradient(34% 30% at 50% 0%, rgba(255, 236, 200, 0.2) 0%, transparent 70%);
}

.hero-light::before,
.hero-light::after {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  width: 34%;
  height: 120%;
  background: linear-gradient(180deg, rgba(240, 201, 138, 0.14), transparent 70%);
  filter: blur(24px);
  transform-origin: top center;
  animation: beam 9s ease-in-out infinite alternate;
}

.hero-light::before {
  transform: translateX(-120%) rotate(18deg);
}

.hero-light::after {
  transform: translateX(20%) rotate(-18deg);
  animation-delay: -4.5s;
}

/* The court floor in perspective. Its lines draw themselves on load. */
.hero-court {
  position: absolute;
  left: 73%;
  bottom: -8%;
  z-index: -2;
  width: min(940px, 150vw);
  transform: translateX(-50%) perspective(900px) rotateX(64deg);
  transform-origin: bottom center;
  opacity: 0.5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(0deg, #000 30%, transparent 92%);
  mask-image: linear-gradient(0deg, #000 30%, transparent 92%);
}

.hero-court path,
.hero-court rect,
.hero-court line {
  fill: none;
  stroke: rgba(240, 201, 138, 0.55);
  stroke-width: 2;
  stroke-dasharray: 3200;
  stroke-dashoffset: 3200;
  animation: draw 2.6s var(--ease-out) 0.2s forwards;
}

.hero-court .net {
  stroke: rgba(250, 240, 222, 0.8);
  stroke-width: 3;
}

.hero-arc {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin: 22px 0 22px;
  font-size: clamp(44px, 6.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-title .line {
  display: block;
}

.hero-rule {
  width: 72px;
  height: 3px;
  margin: 0 0 24px;
  border: 0;
  border-radius: 3px;
  background: var(--gold-gradient);
  box-shadow: 0 0 16px rgba(240, 201, 138, 0.6);
}

.hero-lede {
  max-width: 540px;
  margin-bottom: 32px;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-facts svg,
.check-list svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--gold);
}

/* Entrance: the copy rises in, line by line. */
.hero-copy > * {
  animation: rise 0.9s var(--ease-out) both;
}

.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }
.hero-copy > :nth-child(6) { animation-delay: 0.4s; }

.hero-devices {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 640px;
  perspective: 1400px;
  animation: rise 1.1s var(--ease-out) 0.2s both;
}

.hero-stage {
  position: relative;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, -6deg));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
}

/* A warm pool of light behind the devices. */
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% -30% 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 201, 138, 0.3), rgba(138, 99, 55, 0.14) 55%, transparent);
  filter: blur(20px);
  animation: pulse-glow 5s ease-in-out infinite;
}

.hero-stage .iphone {
  --w: clamp(230px, 22vw, 300px);
  animation: float 7s ease-in-out infinite;
}

.hero-stage .watch {
  --w: clamp(140px, 13vw, 176px);
  position: absolute;
  left: -46%;
  bottom: 6%;
  transform: translateZ(60px);
  animation: float 6s ease-in-out -2s infinite;
}

.hero-chip {
  position: absolute;
  top: 14%;
  left: -52%;
  white-space: nowrap;
  z-index: 3;
  animation: float 5s ease-in-out -1s infinite;
}

/* Floor shadow under the stage. */
.hero-stage::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -10%;
  bottom: -26px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.8), transparent);
  z-index: -1;
}

/* ---------- Device frames ---------- */

/* iPhone. The screenshot keeps its real 1206 x 2622 ratio. */
.iphone {
  --w: 300px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.175);
  background: linear-gradient(145deg, #4a4139 0%, #1a1613 22%, #0c0a09 50%, #221d19 78%, #4a4139 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 205, 0.28),
    inset 0 0 0 calc(var(--w) * 0.012) #060505,
    0 50px 90px -30px rgba(0, 0, 0, 0.9),
    0 30px 60px -20px rgba(138, 99, 55, 0.35);
}

.iphone::before,
.iphone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5a4f45, #2a241f);
}

.iphone::before {
  left: -3px;
  top: 22%;
  height: 12%;
  box-shadow: 0 calc(var(--w) * 0.2) 0 #3a332d;
}

.iphone::after {
  right: -3px;
  top: 28%;
  height: 16%;
}

.screen {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--w) * 0.14);
  transform: translateZ(0);
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Glass reflection over the screen. */
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0%, transparent 28%, transparent 70%, rgba(255, 255, 255, 0.04) 100%);
}

.iphone-land {
  width: calc(var(--w) * 2.17);
}

.iphone-land .screen {
  aspect-ratio: 2622 / 1206;
}

/* Apple Watch Ultra in black titanium, on a sport band. */
.watch {
  --w: 180px;
  position: relative;
  width: var(--w);
}

.watch-band {
  position: absolute;
  left: 50%;
  width: 72%;
  height: calc(var(--w) * 0.62);
  transform: translateX(-50%);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 5px),
    linear-gradient(90deg, #1b1917, #2c2926 30%, #2c2926 70%, #1b1917);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.watch-band.top {
  top: calc(var(--w) * -0.5);
  border-radius: 14px 14px 4px 4px;
  -webkit-mask-image: linear-gradient(0deg, #000 60%, transparent);
  mask-image: linear-gradient(0deg, #000 60%, transparent);
}

.watch-band.bottom {
  bottom: calc(var(--w) * -0.5);
  border-radius: 4px 4px 14px 14px;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}

.watch-case {
  position: relative;
  padding: calc(var(--w) * 0.075);
  border-radius: calc(var(--w) * 0.27);
  background: linear-gradient(150deg, #56504a 0%, #26221f 30%, #121110 55%, #2d2926 80%, #56504a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 205, 0.22),
    inset 0 0 0 calc(var(--w) * 0.02) #0a0908,
    0 30px 60px -20px rgba(0, 0, 0, 0.9);
}

/* The Digital Crown and the Action button. */
.watch-case::before {
  content: "";
  position: absolute;
  right: calc(var(--w) * -0.055);
  top: 30%;
  width: calc(var(--w) * 0.07);
  height: 20%;
  border-radius: 3px;
  background: repeating-linear-gradient(0deg, #5d5750 0 2px, #2e2a26 2px 4px);
}

.watch-case::after {
  content: "";
  position: absolute;
  left: calc(var(--w) * -0.04);
  top: 36%;
  width: calc(var(--w) * 0.05);
  height: 16%;
  border-radius: 3px;
  background: linear-gradient(90deg, #e2672f, #ff8a4c);
}

.watch .screen {
  aspect-ratio: 422 / 514;
  border-radius: calc(var(--w) * 0.2);
}

/* The score bloom. The script adds is-hit when the ball lands. */
.bloom {
  position: absolute;
  z-index: 2;
  width: 70%;
  aspect-ratio: 1;
  left: var(--bx, 50%);
  top: var(--by, 30%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 228, 170, 0.75), rgba(240, 201, 138, 0.28) 45%, transparent);
  mix-blend-mode: screen;
}

.is-hit .bloom {
  animation: bloom 1.3s var(--ease-out);
}

/* Each glow sits on the score numeral of its own screenshot. */
.hero-stage .iphone .bloom {
  --bx: 80%;
  --by: 27%;
}

.hero-stage .watch .bloom {
  --bx: 22%;
  --by: 31%;
  width: 95%;
}

/* ---------- Marquee ---------- */

.ticker {
  position: relative;
  padding: 26px 0;
  overflow: hidden;
  border-block: 1px solid rgba(240, 201, 138, 0.12);
  background: linear-gradient(180deg, rgba(38, 31, 26, 0.35), rgba(8, 7, 7, 0));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker ul {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0 20px;
  list-style: none;
}

.ticker li {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  font-size: clamp(26px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 201, 138, 0.55);
}

.ticker li:nth-child(odd) {
  color: var(--text);
  -webkit-text-stroke: 0;
}

.ticker li::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6c9, #efd96a 55%, #b9a33c);
  box-shadow: 0 0 14px rgba(239, 217, 106, 0.6);
}

/* ---------- Intro: answer and specifications ---------- */

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

.intro .answer p {
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.45;
  color: var(--text);
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: rgba(240, 201, 138, 0.14);
  box-shadow: 0 0 0 1px rgba(240, 201, 138, 0.14);
}

.specs div {
  padding: 20px 22px;
  background: var(--bg-raised);
}

.specs dt {
  margin-bottom: 4px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.specs dd {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

/* ---------- Platforms ---------- */

.platforms {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(240, 201, 138, 0.16), transparent 60%) padding-box,
    linear-gradient(180deg, rgba(38, 31, 26, 0.72), rgba(20, 16, 13, 0.82)) padding-box,
    linear-gradient(160deg, rgba(240, 201, 138, 0.7), rgba(240, 201, 138, 0.08) 50%) border-box;
}

.platform-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--glass-edge-strong);
}

.platform-icon svg {
  width: 22px;
  height: 22px;
}

.platform-text {
  flex: 1;
}

.platform h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.25;
}

.platform p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.platform-status {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-inverse);
  background: var(--button-gradient);
}

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

  .platform {
    flex-direction: row;
    align-items: center;
    padding: 16px;
  }

  .platform-status {
    align-self: center;
  }
}

@media (max-width: 640px) {
  .platform {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    column-gap: 14px;
    row-gap: 10px;
  }

  .platform-icon {
    grid-row: span 2;
  }

  .platform-status {
    grid-column: 2;
    justify-self: start;
  }
}

/* ---------- Surfaces ---------- */

.card,
.feature,
.tile {
  position: relative;
  padding: 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(38, 31, 26, 0.72), rgba(20, 16, 13, 0.82)) padding-box,
    var(--edge-gradient) border-box;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
  isolation: isolate;
}

.card > :last-child,
.feature > :last-child,
.tile > :last-child {
  margin-bottom: 0;
}

.card h3,
.feature h3,
.tile h3 {
  margin-bottom: 10px;
}

.card p,
.feature p,
.tile p {
  color: var(--text-muted);
}

.card-gold {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(240, 201, 138, 0.16), transparent 60%) padding-box,
    linear-gradient(180deg, rgba(38, 31, 26, 0.72), rgba(20, 16, 13, 0.82)) padding-box,
    linear-gradient(160deg, rgba(240, 201, 138, 0.7), rgba(240, 201, 138, 0.08) 50%) border-box;
}

.card-court {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(143, 176, 207, 0.14), transparent 60%) padding-box,
    linear-gradient(180deg, rgba(38, 31, 26, 0.72), rgba(20, 16, 13, 0.82)) padding-box,
    linear-gradient(160deg, rgba(143, 176, 207, 0.6), rgba(143, 176, 207, 0.08) 50%) border-box;
}

/* A soft light that follows the pointer. The script sets --mx and --my. */
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(240, 201, 138, 0.13), transparent 45%);
  transition: opacity 0.35s;
}

.spot:hover::before {
  opacity: 1;
}

.feature {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out);
}

.feature:hover {
  transform: translateY(-4px);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 16px;
  color: var(--gold);
  background: radial-gradient(circle at 30% 20%, rgba(240, 201, 138, 0.3), rgba(97, 69, 38, 0.3));
  box-shadow: inset 0 0 0 1px rgba(240, 201, 138, 0.3), 0 8px 26px -8px rgba(240, 201, 138, 0.45);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature .small {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(240, 201, 138, 0.1);
  color: var(--text-dim);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.answer + .btn-row {
  margin-top: 24px;
}

.answer {
  position: relative;
  padding: 24px 28px 24px 30px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(240, 201, 138, 0.1), rgba(38, 31, 26, 0.5));
  box-shadow: inset 0 0 0 1px var(--glass-edge);
  overflow: hidden;
}

.answer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--gold-gradient);
  box-shadow: 0 0 14px rgba(240, 201, 138, 0.6);
}

.answer .eyebrow {
  margin-bottom: 10px;
}

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

.note {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(143, 176, 207, 0.06);
  box-shadow: inset 0 0 0 1px rgba(143, 176, 207, 0.2);
  color: var(--text-muted);
  font-size: 15px;
}

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

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-figure {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Story: one match, start to finish ---------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
}

.story-device {
  position: sticky;
  top: calc(50vh - 330px);
  display: grid;
  place-items: center;
  height: 660px;
}

.story-device .iphone {
  --w: 290px;
  transition: transform 0.9s var(--ease-out);
}

.story-device .screen img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.9s var(--ease-out);
}

.story-device .screen img.is-active {
  opacity: 1;
  transform: none;
}

/* The landscape step turns the phone on its side. */
.story-device[data-step="2"] .iphone {
  transform: rotate(90deg) scale(0.74);
}

.story-device::before {
  content: "";
  position: absolute;
  inset: 12% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 201, 138, 0.22), transparent);
  filter: blur(10px);
}

.story-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-steps > li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78vh;
  padding: 40px 0;
}

.story-steps > li:first-child {
  min-height: 60vh;
}

.story-steps > li:last-child {
  min-height: 66vh;
}

.js .story-steps > li {
  opacity: 0.3;
  transition: opacity 0.5s;
}

.js .story-steps > li.is-active {
  opacity: 1;
}

.step-number {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(240, 201, 138, 0.6);
}

.story-steps h3 {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em;
}

.story-steps p {
  max-width: 480px;
  color: var(--text-muted);
  font-size: 18px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
  font-size: 16px;
}

.check-list svg {
  margin-top: 3px;
}

/* Small inline shots for narrow screens. Hidden and never loaded on desktop. */
.step-shot {
  display: none;
}

/* ---------- Apple Watch ---------- */

.watch-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.watch-hero-device {
  position: relative;
  display: grid;
  place-items: center;
  padding: 120px 0;
}

.watch-hero-device::before {
  content: "";
  position: absolute;
  width: 110%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(240, 201, 138, 0.1) 0 1px, transparent 1px 34px);
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent);
  mask-image: radial-gradient(closest-side, #000 40%, transparent);
  animation: spin 60s linear infinite;
}

.watch-hero-device::after {
  content: "";
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 201, 138, 0.28), transparent);
  filter: blur(14px);
}

.watch-hero-device .watch {
  --w: clamp(190px, 20vw, 250px);
}

.watch-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  gap: clamp(18px, 2.4vw, 34px);
  margin: clamp(48px, 7vw, 88px) 0 0;
  padding: 0;
  list-style: none;
}

.watch-row li {
  flex: none;
  width: clamp(150px, 14vw, 190px);
  text-align: center;
  transition: transform 0.6s var(--ease-out);
}

.watch-row .screen {
  aspect-ratio: 422 / 514;
  border-radius: 24%;
  box-shadow:
    0 0 0 7px #151210,
    0 0 0 8px rgba(255, 236, 205, 0.2),
    0 0 0 10px #0a0908,
    0 34px 60px -24px rgba(0, 0, 0, 0.95),
    0 20px 60px -30px rgba(240, 201, 138, 0.35);
}

.watch-row li:nth-child(1),
.watch-row li:nth-child(5) { transform: translateY(40px) scale(0.9); }
.watch-row li:nth-child(2),
.watch-row li:nth-child(4) { transform: translateY(14px) scale(0.96); }
.watch-row li:nth-child(3) { position: relative; z-index: 2; transform: scale(1.06); }

.watch-row li:hover {
  transform: translateY(-6px) scale(1.08);
  z-index: 3;
}

.watch-row figcaption,
.shot-caption {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Shared scoreboard: the live browser viewer ---------- */

.viewer {
  position: relative;
  margin: 0 0 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #16120f, #0c0a09);
  box-shadow: 0 0 0 1px rgba(240, 201, 138, 0.16), 0 50px 90px -40px rgba(0, 0, 0, 0.9), 0 0 120px -40px rgba(240, 201, 138, 0.3);
  overflow: hidden;
}

.viewer-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(240, 201, 138, 0.1);
  background: rgba(38, 31, 26, 0.5);
}

.viewer-dots {
  display: flex;
  gap: 7px;
}

.viewer-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a322b;
}

.viewer-url {
  flex: 1;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(8, 7, 7, 0.6);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.viewer-body {
  padding: 26px;
}

.viewer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.viewer-head .chip {
  font-size: 11px;
  letter-spacing: 0.08em;
}

.viewer-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 26px 20px;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(50, 39, 31, 0.8), rgba(26, 21, 17, 0.9));
  box-shadow: inset 0 0 0 1px rgba(240, 201, 138, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}

.viewer-team {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.viewer-names {
  display: block;
  color: var(--text-dim);
  font-size: 12px;
}

.viewer-point {
  display: block;
  margin: 10px 0 6px;
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  text-shadow: 0 0 34px rgba(240, 201, 138, 0.45);
}

.viewer-point.them {
  color: var(--court);
  text-shadow: 0 0 34px rgba(143, 176, 207, 0.35);
}

.viewer-point.is-new {
  animation: tick 0.7s var(--ease-out);
}

.viewer-games {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
}

.viewer-vs {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.viewer-serve {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.viewer-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 12px;
}

.viewer-watchers {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.viewer-people {
  display: inline-flex;
  padding-left: 8px;
}

.viewer-people span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid #0c0a09;
  background: linear-gradient(135deg, #3a2e24, #1a1512);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
  background: rgba(240, 201, 138, 0.08);
  box-shadow: inset 0 0 0 1.5px rgba(240, 201, 138, 0.5), 0 0 22px -6px rgba(240, 201, 138, 0.5);
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: -16px;
  width: 2px;
  background: linear-gradient(180deg, rgba(240, 201, 138, 0.4), transparent);
}

.steps h3 {
  margin: 10px 0 4px;
  font-size: 18px;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------- Progress bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px 30px 0;
}

.tile-wide {
  grid-column: span 7;
}

.tile-tall {
  grid-column: span 5;
}

.tile-third {
  grid-column: span 4;
}

.tile-text {
  grid-column: span 12;
  padding-bottom: 30px;
}

/* The phone rises out of the bottom edge of the tile. */
.peek {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 26px;
  height: 360px;
  overflow: hidden;
}

.peek .iphone {
  --w: 250px;
  align-self: flex-start;
  transition: transform 0.7s var(--ease-out);
}

.tile:hover .peek .iphone {
  transform: translateY(-14px);
}

.peek::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(0deg, rgba(14, 11, 9, 0.95), transparent);
  pointer-events: none;
}

.poster {
  width: min(250px, 80%);
  margin: 26px auto 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 0 0 1px rgba(240, 201, 138, 0.2), 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  transform: rotate(-3deg) translateY(16px);
  transition: transform 0.7s var(--ease-out);
}

.tile:hover .poster {
  transform: rotate(0deg) translateY(0);
}

.tile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.tile-facts h3 {
  font-size: 18px;
}

.tile-facts p {
  margin: 0;
  font-size: 15px;
}

/* ---------- Social sessions: the rotating partners ---------- */

.rotation {
  position: relative;
  width: min(360px, 100%);
  margin: 0 auto;
}

.rotation-court {
  position: relative;
  aspect-ratio: 10 / 16;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(143, 176, 207, 0.08), rgba(240, 201, 138, 0.06)),
    #0f0c0a;
  box-shadow: inset 0 0 0 2px rgba(250, 240, 222, 0.5), 0 0 0 10px rgba(38, 31, 26, 0.6), 0 0 0 11px rgba(240, 201, 138, 0.2), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}

/* The net, the service lines and the centre lines. */
.rotation-court::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: rgba(250, 240, 222, 0.85);
  box-shadow: 0 0 12px rgba(250, 240, 222, 0.5);
}

.rotation-court::after {
  content: "";
  position: absolute;
  inset: 21.9% 0;
  border-block: 2px solid rgba(250, 240, 222, 0.4);
  background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(250, 240, 222, 0.4) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
}

.player {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-inverse);
  animation: 9s var(--ease-out) infinite;
}

.player.p1 { left: 28%; top: 25%; background: var(--gold); box-shadow: 0 0 24px rgba(240, 201, 138, 0.6); }
.player.p2 { animation-name: rotate-p2; }
.player.p3 { animation-name: rotate-p3; }
.player.p4 { animation-name: rotate-p4; }

.round-label {
  position: relative;
  height: 28px;
  margin-top: 30px;
  text-align: center;
}

.round-label span {
  position: absolute;
  inset: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  animation: 9s linear infinite;
}

.round-label span:nth-child(1) { animation-name: round-1; }
.round-label span:nth-child(2) { animation-name: round-2; }
.round-label span:nth-child(3) { animation-name: round-3; }

/* ---------- Privacy ---------- */

.privacy {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(240, 201, 138, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(38, 31, 26, 0.7), rgba(16, 13, 11, 0.9));
  box-shadow: inset 0 0 0 1px rgba(240, 201, 138, 0.2);
  overflow: hidden;
}

.shield {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(120px, 14vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle at 35% 30%, rgba(240, 201, 138, 0.3), rgba(97, 69, 38, 0.25) 60%, transparent 72%);
  box-shadow: inset 0 0 0 1px rgba(240, 201, 138, 0.35);
}

.shield::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(240, 201, 138, 0.3);
  animation: spin 30s linear infinite;
}

.shield svg {
  width: 44%;
  height: 44%;
  filter: drop-shadow(0 0 14px rgba(240, 201, 138, 0.6));
}

.privacy .check-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 24px 0;
}

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

.faq {
  border-top: 1px solid rgba(240, 201, 138, 0.16);
}

.faq details {
  border-bottom: 1px solid rgba(240, 201, 138, 0.16);
  transition: background 0.3s;
}

.faq details[open] {
  background: linear-gradient(90deg, rgba(240, 201, 138, 0.05), transparent);
}

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 8px 22px 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 12px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 2px 12px no-repeat,
    rgba(240, 201, 138, 0.08);
  box-shadow: inset 0 0 0 1px rgba(240, 201, 138, 0.3);
  transition: transform 0.35s var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 60px 22px 4px;
  color: var(--text-muted);
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Guides teaser and guide cards ---------- */

.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(38, 31, 26, 0.72), rgba(20, 16, 13, 0.82)) padding-box,
    var(--edge-gradient) border-box;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  isolation: isolate;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(240, 201, 138, 0.35);
}

.guide-card h2,
.guide-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.guide-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.guide-card .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.guide-card .more::after {
  content: "\2192";
  transition: transform 0.3s var(--ease-out);
}

.guide-card:hover .more::after {
  transform: translateX(4px);
}

.guide-number {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

/* ---------- Finale ---------- */

.finale {
  position: relative;
  padding: clamp(120px, 16vw, 200px) 0 clamp(80px, 10vw, 128px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

/* The arc: a lob traced across the top of the section. */
.finale::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 60px;
  z-index: -1;
  width: max(1400px, 150vw);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  border-top: 2px solid rgba(240, 201, 138, 0.7);
  background: radial-gradient(60% 30% at 50% 0%, rgba(240, 201, 138, 0.18), transparent 70%), linear-gradient(180deg, #120e0b, var(--bg) 30%);
  box-shadow: 0 -20px 80px -20px rgba(240, 201, 138, 0.35);
}

.finale-icon {
  width: clamp(104px, 11vw, 136px);
  height: auto;
  margin: 0 auto 32px;
  border-radius: 23%;
  box-shadow: 0 0 0 1px rgba(240, 201, 138, 0.3), 0 20px 60px -10px rgba(240, 201, 138, 0.55), 0 0 120px rgba(240, 201, 138, 0.25);
  animation: float 6s ease-in-out infinite;
}

.finale .btn-row {
  justify-content: center;
  margin: 32px 0 24px;
}

/* ---------- Long form: guides and policies ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(240, 201, 138, 0.35);
}

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

.breadcrumb a:hover {
  color: var(--gold);
}

.wrap-narrow > h1 {
  margin-bottom: 24px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 18px 0 28px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.toc {
  margin: 32px 0;
  padding: 24px 28px;
  border-radius: var(--radius-card);
  background: rgba(38, 31, 26, 0.45);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.toc ol,
.toc ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.toc li::marker {
  color: var(--gold-deep);
  font-weight: 700;
}

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

.toc a:hover {
  color: var(--gold);
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin: 56px 0 16px;
  font-size: clamp(26px, 3vw, 34px);
}

.prose h3 {
  margin: 32px 0 10px;
}

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

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 22px;
}

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

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

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

.table-scroll {
  margin: 24px 0 28px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
  background: rgba(38, 31, 26, 0.35);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(240, 201, 138, 0.1);
}

th {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(240, 201, 138, 0.05);
}

tr:last-child td {
  border-bottom: 0;
}

td {
  color: #e2d8c6;
}

caption {
  padding: 14px 18px 0;
  color: var(--text-dim);
  font-size: 13px;
  text-align: left;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(240, 201, 138, 0.08);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ---------- Scoreboard demo, used inside the guides ---------- */

.scoreboard {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 24px;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(50, 39, 31, 0.75), rgba(20, 16, 13, 0.9));
  box-shadow: inset 0 0 0 1px rgba(240, 201, 138, 0.2), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

.score-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(8, 7, 7, 0.45);
  box-shadow: inset 0 0 0 1px rgba(240, 201, 138, 0.1);
}

.score-row-us {
  background: linear-gradient(90deg, rgba(240, 201, 138, 0.16), rgba(8, 7, 7, 0.45) 60%);
}

.score-row-them {
  background: linear-gradient(90deg, rgba(143, 176, 207, 0.14), rgba(8, 7, 7, 0.45) 60%);
}

.score-team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.score-serve {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.score-values {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  font-variant-numeric: tabular-nums;
}

.score-set {
  min-width: 18px;
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.score-point {
  min-width: 70px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
  color: var(--gold);
  text-shadow: 0 0 26px rgba(240, 201, 138, 0.45);
}

.score-row-them .score-point {
  color: var(--court);
  text-shadow: 0 0 26px rgba(143, 176, 207, 0.35);
}

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

.footer {
  position: relative;
  padding: 72px 0 40px;
  border-top: 1px solid rgba(240, 201, 138, 0.12);
  background: linear-gradient(180deg, rgba(38, 31, 26, 0.25), transparent 60%);
}

.footer .grid-4 {
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-tagline {
  max-width: 280px;
  margin-top: 16px;
  color: var(--text-muted);
}

.footer h4 {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a:not(.brand) {
  color: var(--text-muted);
  font-size: 15px;
  text-decoration: none;
}

.footer a:not(.brand):hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(240, 201, 138, 0.1);
  color: var(--text-dim);
  font-size: 13px;
}

/* ---------- Scroll reveal ---------- */

/* Pure CSS, so a crawler and a reader without JavaScript see every element.
   A browser without scroll-driven animations shows the content at once. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

/* ---------- Keyframes ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(48px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes beam {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes sheen {
  0%, 60% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes ping {
  from { transform: scale(0.6); opacity: 1; }
  to { transform: scale(2.2); opacity: 0; }
}

@keyframes bloom {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes tick {
  0% { transform: translateY(12px) scale(0.9); opacity: 0; filter: blur(4px); }
  60% { text-shadow: 0 0 60px rgba(240, 201, 138, 0.9); }
  100% { transform: none; opacity: 1; filter: none; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Americano: the partners rotate every round. Player 1 stays on the gold side. */
@keyframes rotate-p2 {
  0%, 30% { left: 72%; top: 25%; background: var(--gold); }
  36%, 63% { left: 28%; top: 75%; background: var(--court); }
  69%, 96% { left: 28%; top: 75%; background: var(--court); }
  100% { left: 72%; top: 25%; background: var(--gold); }
}

@keyframes rotate-p3 {
  0%, 30% { left: 28%; top: 75%; background: var(--court); }
  36%, 63% { left: 72%; top: 25%; background: var(--gold); }
  69%, 96% { left: 72%; top: 75%; background: var(--court); }
  100% { left: 28%; top: 75%; background: var(--court); }
}

@keyframes rotate-p4 {
  0%, 30% { left: 72%; top: 75%; background: var(--court); }
  36%, 63% { left: 72%; top: 75%; background: var(--court); }
  69%, 96% { left: 72%; top: 25%; background: var(--gold); }
  100% { left: 72%; top: 75%; background: var(--court); }
}

@keyframes round-1 {
  0%, 30% { opacity: 1; }
  33%, 97% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes round-2 {
  0%, 32% { opacity: 0; }
  36%, 63% { opacity: 1; }
  66%, 100% { opacity: 0; }
}

@keyframes round-3 {
  0%, 65% { opacity: 0; }
  69%, 96% { opacity: 1; }
  99%, 100% { opacity: 0; }
}

/* ---------- Responsive ---------- */

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

  .tile-wide,
  .tile-tall {
    grid-column: span 6;
  }

  .tile-third {
    grid-column: span 6;
  }

  .tile-third:last-of-type {
    grid-column: span 12;
  }
}

@media (max-width: 900px) {
  .hero {
    text-align: center;
  }

  .hero-grid,
  .intro,
  .watch-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .btn-row,
  .hero-facts {
    justify-content: center;
  }

  .hero-rule {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-devices {
    min-height: 0;
    padding: 40px 0 20px;
  }

  .hero-stage {
    transform: none;
    margin-left: 22%;
  }

  .hero-stage .iphone {
    --w: min(250px, 58vw);
  }

  .hero-stage .watch {
    --w: min(140px, 32vw);
    left: -38%;
  }

  /* The chip sits above the phone, so it never leaves a narrow screen. */
  .hero-chip {
    left: 50%;
    top: -34px;
    transform: translateX(-50%);
  }

  .hero-court {
    left: 50%;
    width: min(1100px, 170vw);
  }

  /* The story becomes a list with one shot per step. */
  .story {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-device {
    display: none;
  }

  .js .story-steps > li {
    opacity: 1;
  }

  .story-steps > li,
  .story-steps > li:first-child {
    min-height: 0;
    padding: 28px 0;
  }

  .step-shot {
    display: flex;
    justify-content: center;
    margin-top: 28px;
  }

  .step-shot .iphone {
    --w: min(260px, 66vw);
  }

  .step-shot .iphone-land {
    --w: min(150px, 38vw);
  }

  .watch-hero-device {
    order: -1;
    padding: 110px 0;
  }

  .watch-row {
    justify-content: flex-start;
    gap: 18px;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding: 20px var(--gutter) 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .watch-row li,
  .watch-row li:nth-child(n) {
    width: 150px;
    margin-top: 10px;
    transform: none;
    scroll-snap-align: center;
  }

  .tile-wide,
  .tile-tall,
  .tile-third,
  .tile-third:last-of-type {
    grid-column: span 12;
  }

  .tile-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .privacy {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

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

  .footer .grid-4 > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .nav-inner {
    flex-wrap: wrap;
    gap: 6px 12px;
    min-height: 60px;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .hero {
    margin-top: -104px;
    padding-top: calc(104px + 28px);
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 14px;
  }

  .nav-links .nav-cta {
    margin-left: 0;
    padding: 8px 14px;
  }

  /* The brand already links home, so the Home link gives its room to the others. */
  .nav-links li:first-child {
    display: none;
  }

  .feature-grid,
  .specs,
  .privacy .check-list {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .specs div {
    padding: 16px;
  }

  .specs dd {
    font-size: 16px;
  }

  .card,
  .feature {
    padding: 24px;
  }

  .tile {
    padding: 24px 24px 0;
  }

  .tile-text {
    padding-bottom: 24px;
  }

  .viewer-body {
    padding: 18px;
  }

  .viewer-board {
    padding: 20px 12px;
  }

  .faq summary {
    font-size: 17px;
  }

  .faq-body {
    padding-right: 8px;
  }

  .score-values {
    gap: 12px;
  }

  .score-point {
    min-width: 56px;
    font-size: 36px;
  }

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

/* Reduced motion: every loop stops and each element keeps its final state. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    animation: none !important;
  }

  .ticker-track {
    animation: none !important;
    flex-wrap: wrap;
  }
}
