/* padelpapi.app: the scroll-driven home page and the shared base of the new
   sub-page chrome (pages.css builds on it). Ported from the motion mockup
   Amaro approved on 2026-09-28.

   Tokens are a SECOND copy of the ones in site.css (which mirrors
   PadelPapi/Utilities/Theme.swift + BrandTokens.swift): brand #148C59, deep
   #0A6642, the atmosphere ramp, tint 10% / 28%. site.css stays the stylesheet
   of go.html, the generated guide and the coachPreview/academyPreview
   renderers; this file is loaded only by index.html, the tournament pages and
   the legal/support pages. Change a token there, change it here too.

   Everything that moves is animated with transform/opacity, except the court
   lines and the key-word underline, which draw with stroke-dashoffset on
   small SVGs. Motion runs only under (prefers-reduced-motion: no-preference)
   with JS (html.motion); the static layout is the default path. */

:root {
  --brand: #148C59;
  --deep: #0A6642;
  --ink: #1C2B24;
  --ink-brand: #0A6642;
  --muted: #4E6157;
  --bg: #F6FAF7;
  --card: #FFFFFF;
  --hairline: #DDE8E1;
  --kicker: #0A6642;
  --dot-accent: #CFF5DF;
  --atm-top: #FBFDFC;
  --atm-bot: #F2F6F4;
  --glow-peak: rgba(20, 140, 89, 0.11);
  --tint-fill: rgba(20, 140, 89, 0.10);
  --tint-edge: rgba(20, 140, 89, 0.28);
  --bezel: #121815;
  --bezel-edge: #2B3630;
  --phone-shadow: 0 30px 60px -20px rgba(10, 60, 40, 0.45), 0 12px 24px -12px rgba(10, 60, 40, 0.3);
  --rail-off: rgba(20, 140, 89, 0.18);
  --ball: #E4F25C;
  --grad: linear-gradient(160deg, #148C59 0%, #0A6642 100%);
  --r: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #52CC8C; --deep: #29855C; --ink: #E4EFE8; --ink-brand: #52CC8C;
    --muted: #9DB3A7; --bg: #101614; --card: #17201C; --hairline: #26332C;
    --kicker: #59A784; --dot-accent: #CFF5DF; --atm-top: #101613; --atm-bot: #000000;
    --glow-peak: rgba(20, 140, 89, 0.24);
    --tint-fill: rgba(82, 204, 140, 0.10); --tint-edge: rgba(82, 204, 140, 0.28);
    --bezel: #050706; --bezel-edge: #3A4A41;
    --phone-shadow: 0 30px 70px -20px rgba(82, 204, 140, 0.22), 0 12px 24px -12px rgba(0, 0, 0, 0.8);
    --rail-off: rgba(82, 204, 140, 0.2);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #52CC8C; --deep: #29855C; --ink: #E4EFE8; --ink-brand: #52CC8C;
  --muted: #9DB3A7; --bg: #101614; --card: #17201C; --hairline: #26332C;
  --kicker: #59A784; --dot-accent: #CFF5DF; --atm-top: #101613; --atm-bot: #000000;
  --glow-peak: rgba(20, 140, 89, 0.24);
  --tint-fill: rgba(82, 204, 140, 0.10); --tint-edge: rgba(82, 204, 140, 0.28);
  --bezel: #050706; --bezel-edge: #3A4A41;
  --phone-shadow: 0 30px 70px -20px rgba(82, 204, 140, 0.22), 0 12px 24px -12px rgba(0, 0, 0, 0.8);
  --rail-off: rgba(82, 204, 140, 0.2);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #148C59; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.5;
  background: linear-gradient(180deg, var(--atm-top) 0%, var(--atm-bot) 60%);
}
img, svg { max-width: 100%; }
a { color: inherit; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: var(--grad);
  padding: calc(64px + env(safe-area-inset-top)) 16px 88px;
  overflow: clip;
}
.hero > * { position: relative; z-index: 1; }
.hero .court, .hero .sweep, .hero .ball-wrap { position: absolute; z-index: 0; }

.topbar {
  position: absolute !important;
  top: env(safe-area-inset-top); left: 0; right: 0;
  display: flex; justify-content: flex-end; align-items: center;
  padding: 14px 16px;
  font-size: 13px; font-weight: 600;
}
.topbar nav { display: flex; gap: 4px; }
.topbar nav a {
  text-decoration: none; padding: 6px 8px; border-radius: 8px; opacity: 0.8;
  min-width: 36px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center;
}
.topbar nav a[aria-current="true"] { opacity: 1; background: rgba(255, 255, 255, 0.18); }
.topbar-link {
  margin-right: auto; text-decoration: none; color: #fff; font-weight: 700; opacity: 0.9;
  padding: 6px 10px; border-radius: 8px; min-height: 32px; min-width: 36px;
  display: inline-flex; align-items: center; justify-content: center;
}

.court {
  inset: 50% auto auto 50%;
  width: min(86vw, 440px);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  pointer-events: none;
}
.court .ln { stroke: #fff; stroke-width: 0.7; fill: none; }

.sweep {
  inset: 0; pointer-events: none; overflow: hidden;
}
.sweep i {
  position: absolute; top: -20%; left: 0; width: 40%; height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent);
  transform: translateX(-120%) skewX(-14deg);
  will-change: transform;
}

.ball-wrap { inset: 0; pointer-events: none; }
.ball {
  position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F6FFB0, var(--ball) 55%, #B9C93A);
  box-shadow: 0 0 12px rgba(228, 242, 92, 0.45);
  opacity: 0; will-change: transform, opacity;
}

.mark { display: block; width: 112px; color: #fff; will-change: transform; }
.mark svg { display: block; width: 100%; height: auto; overflow: visible; }

.hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 6px; line-height: 1.1; }
.hero h1 .ch { display: inline-block; will-change: transform, opacity; }
.tagline { font-size: 20px; font-weight: 700; margin: 0 auto; max-width: 19em; line-height: 1.35; text-wrap: balance; }

/* word masks: the inner span rides up from under the line */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.w > span { display: inline-block; will-change: transform; }

.beta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; width: 100%; max-width: 440px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex: 1 1 170px; min-height: 48px; padding: 12px 18px;
  border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none;
  background: #fff; color: #0A6642;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.35);
}
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.9); box-shadow: none; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.ghost .robot-icon { --robot-eye: #0A6642; }

.scroll-cue {
  position: absolute !important; bottom: calc(18px + env(safe-area-inset-bottom)); left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85;
}
.scroll-cue svg { width: 18px; height: 18px; }

/* ---------- CHAPTER 1: motion stage ---------- */
.ch1 { position: relative; overflow-x: clip; }
.stage {
  height: 100svh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  justify-items: center;
  padding: calc(14px + env(safe-area-inset-top)) 16px calc(14px + env(safe-area-inset-bottom));
  text-align: center;
  position: relative;
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 48% at 50% -8%, var(--glow-peak), transparent 70%);
}
.kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--kicker); }
.keyline {
  margin: 4px 0 10px; font-size: clamp(26px, 7.2vw, 46px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12;
  color: var(--ink); text-wrap: balance;
}
.keyline .key { position: relative; color: var(--ink-brand); }
.keyline .key .ul {
  position: absolute; left: -2%; right: -2%; bottom: -0.16em; width: 104%; height: 0.32em; overflow: visible;
}
.keyline .key .ul path { fill: none; stroke: var(--brand); stroke-width: 5; stroke-linecap: round; }

.stage-body {
  min-height: 0; width: 100%; max-width: 980px;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 12px;
}
.phone {
  height: 100%; max-height: 640px; min-height: 0;
  aspect-ratio: 406 / 860;
  position: relative;
  border-radius: 13% / 6.2%;
  background: var(--bezel);
  padding: 8px;
  box-shadow: 0 0 0 1.5px var(--bezel-edge), var(--phone-shadow);
  will-change: transform;
}
.phone::after { /* island */
  content: ""; position: absolute; top: 2.6%; left: 50%; width: 28%; height: 3.4%;
  transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 3;
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 11.5% / 5.4%; overflow: hidden; background: #F4F8F6; isolation: isolate; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform, opacity; }
.tap {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: rgba(20, 140, 89, 0.35); border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(20, 140, 89, 0.25);
  opacity: 0; z-index: 2; pointer-events: none; will-change: transform, opacity;
}

.copy { width: 100%; max-width: 420px; }
.rail { list-style: none; display: flex; gap: 6px; margin: 0 auto 10px; padding: 0; max-width: 220px; }
.rail li { flex: 1; height: 4px; border-radius: 4px; background: var(--rail-off); overflow: hidden; position: relative; }
.rail li i { position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; will-change: transform; }
.lines { position: relative; height: 5.4em; }
.line { position: absolute; inset: 0; will-change: transform, opacity; }
.line h3 { margin: 0 0 2px; font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.line p { margin: 0 auto; font-size: 15px; color: var(--muted); max-width: 30em; line-height: 1.4; text-wrap: balance; }
.line .n { color: var(--ink-brand); margin-right: 6px; font-variant-numeric: tabular-nums; }

@media (min-width: 820px) {
  .stage-body { grid-template-columns: auto minmax(0, 420px); grid-template-rows: minmax(0, 1fr); column-gap: 56px; align-items: center; justify-items: start; }
  .phone { justify-self: end; }
  .copy { text-align: left; }
  .rail { margin-left: 0; }
  .line p { margin: 0; }
  .line h3 { font-size: 30px; }
  .line p { font-size: 18px; }
  .lines { height: 7em; }
}

/* ---------- CHAPTER 1: static / reduced-motion ---------- */
.ch1-static { display: none; padding: 48px 16px 24px; max-width: 980px; margin: 0 auto; text-align: center; }
.ch1-static .steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 40px; }
.ch1-static .step img {
  width: min(62vw, 250px); height: auto; aspect-ratio: 390 / 844; display: block; margin: 0 auto 14px;
  border-radius: 28px; border: 7px solid var(--bezel); box-shadow: 0 0 0 1.5px var(--bezel-edge), var(--phone-shadow);
}
.ch1-static h3 { margin: 0 0 4px; font-size: 19px; }
.ch1-static p { margin: 0 auto; color: var(--muted); max-width: 30em; }
@media (min-width: 820px) { .ch1-static .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

html:not(.motion) .ch1 { display: none; }
html:not(.motion) .ch1-static { display: block; }

/* reduced motion: nothing moves; a short opacity fade on the hero only */
@media (prefers-reduced-motion: reduce) {
  .hero > .fade { animation: fadein 0.5s ease-out both; }
  .scroll-cue { display: none; }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
}

/* ================= DOWNLOAD CTA (round 2) ================= */
:root { --gb-h: 64px; --gb-bg: rgba(255, 255, 255, 0.97); --gb-shadow: 0 -8px 28px -10px rgba(10, 60, 40, 0.28); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --gb-bg: rgba(23, 32, 28, 0.97); --gb-shadow: 0 -8px 28px -10px rgba(0, 0, 0, 0.7); } }
:root[data-theme="dark"] { --gb-bg: rgba(23, 32, 28, 0.97); --gb-shadow: 0 -8px 28px -10px rgba(0, 0, 0, 0.7); }

/* the bar overlays; the page reserves its height up front so nothing shifts */
html.motion .stage { padding-bottom: calc(10px + var(--gb-h) + env(safe-area-inset-bottom)); }

.getbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  min-height: calc(var(--gb-h) + env(safe-area-inset-bottom));
  padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--gb-bg); border-top: 1px solid var(--hairline); box-shadow: var(--gb-shadow);
  transform: translateY(calc(100% + 24px)); visibility: hidden;
  transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.25, 1.15), visibility 0s linear 0.42s;
  will-change: transform;
}
.getbar.show { transform: translateY(0); visibility: visible; transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.15), visibility 0s; }
.gb-mark { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--grad); color: #fff; padding: 5px; }
.gb-mark svg { display: block; width: 100%; height: 100%; }
.gb-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.gb-text strong { font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-text small { font-size: 12.5px; color: var(--muted); }
.gb-btns { display: flex; gap: 8px; flex: none; }
.gb-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px;
  border-radius: 12px; background: var(--grad); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.gb-btn svg { width: 19px; height: 19px; flex: none; }
.gb-btn .robot-icon { --robot-eye: #0A6642; }
.gb-btn[hidden] { display: none; }
/* desktop shows both, smaller */
.getbar.both .gb-btn { padding: 0 12px; font-size: 14px; }
.getbar.both .gb-btn + .gb-btn { background: transparent; color: var(--ink-brand); box-shadow: inset 0 0 0 1.5px var(--ink-brand); }
.getbar.both .gb-btn + .gb-btn .robot-icon { --robot-eye: var(--gb-bg); }
@media (min-width: 820px) { .getbar { justify-content: center; } .gb-text { flex: 0 1 auto; margin-right: 24px; } }

/* "Try it" after the last step */
.try {
  position: relative; display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
  height: 32px; padding: 0 12px 0 14px; border-radius: 999px;
  background: var(--tint-fill); box-shadow: inset 0 0 0 1px var(--tint-edge);
  color: var(--ink-brand); font-weight: 700; font-size: 14px; text-decoration: none;
}
.try::before { content: ""; position: absolute; inset: -6px -4px; } /* 44px hit area */
.try svg { width: 16px; height: 16px; }
.lines { height: 6.2em; }
.ch1-static .try { margin-top: 10px; }

/* closing CTA */
.finale {
  position: relative; overflow: clip; text-align: center; color: #fff; background: var(--grad);
  padding: 72px 16px calc(48px + var(--gb-h) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center;
}
.finale > * { position: relative; z-index: 1; }
.finale > .court { position: absolute; z-index: 0; opacity: 0.14; }
.finale .court .ln { stroke-dasharray: none; }
.finale-mark { width: 96px; }
.finale-h { font-size: clamp(30px, 8.6vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 18px auto 10px; max-width: 12em; text-wrap: balance; }
.finale-sub { margin: 0 auto; font-size: 17px; font-weight: 600; opacity: 0.92; max-width: 24em; text-wrap: balance; }
.finale-buttons { margin-top: 26px; }
.android-how { margin-top: 22px; max-width: 440px; width: 100%; text-align: left; font-size: 14px; color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 14px; padding: 12px 16px 12px 14px; }
.android-how-h { margin: 0 0 4px; font-weight: 700; }
.android-how ol { margin: 0; padding-left: 20px; }
.android-how a { color: #fff; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .getbar, .getbar.show { transform: none; opacity: 0; transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
  .getbar.show { opacity: 1; transition: opacity 0.3s ease, visibility 0s; }
}

/* ================= PINNED COMPOSITION (round 3) =================
   One 8px rhythm. The outer margin at the top mirrors the gap above the
   sticky bar (--edge), so the frame reads balanced; inner gaps step down
   24 / 20 / 12 / 6. The phone takes whatever is left, never the margins. */
:root { --edge: clamp(24px, 4.2svh, 40px); }
html.motion .stage {
  padding-top: calc(env(safe-area-inset-top) + var(--edge));
  padding-bottom: calc(var(--gb-h) + env(safe-area-inset-bottom) + var(--edge));
}
.stage .keyline { margin: 6px 0 clamp(16px, 2.8svh, 24px); }
.stage .stage-body { gap: clamp(14px, 2.4svh, 20px); }
.stage .rail { margin-bottom: 12px; }
.stage .lines { height: 5.5em; }
.stage .line p { font-size: 15px; }
.stage .try { margin-top: 6px; }
@media (max-height: 700px) {
  .stage .keyline { font-size: clamp(24px, 6.6vw, 40px); }
  .stage .line h3 { font-size: 17px; }
  .stage .line p { font-size: 14px; }
}

/* ================= CHAPTERS 2-4 (round 4) ================= */
.chapter { position: relative; overflow-x: clip; }
html:not(.motion) .chapter { display: none; }
html:not(.motion) .ch-static { display: block; }
.ch-static { display: none; padding: 48px 16px 24px; max-width: 980px; margin: 0 auto; text-align: center; }
.ch-static .steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 40px; }
.ch-static .step img {
  width: min(62vw, 250px); height: auto; aspect-ratio: 390 / 844; display: block; margin: 0 auto 14px;
  border-radius: 28px; border: 7px solid var(--bezel); box-shadow: 0 0 0 1.5px var(--bezel-edge), var(--phone-shadow);
}
.ch-static h3 { margin: 0 0 4px; font-size: 19px; }
.ch-static p { margin: 0 auto; color: var(--muted); max-width: 30em; }
@media (min-width: 820px) { .ch-static .steps-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.ch-static + .finale, .ch1-static + .ch-static { margin-top: 0; }

/* alternate chapter grounds so each reads as its own scene */
.ch3 .stage::before { background: radial-gradient(120% 55% at 50% 108%, var(--glow-peak), transparent 70%); }

.phone-wrap { position: relative; height: 100%; max-height: 640px; min-height: 0; aspect-ratio: 406 / 860; }
.phone-wrap .phone { height: 100%; max-height: none; }
@media (min-width: 820px) { .phone-wrap { justify-self: end; } }

/* a piece of a real capture, placed where it sits on the frame */
.crop { position: absolute; display: block; background-repeat: no-repeat; will-change: transform, opacity; }

/* ch2: tiles assemble the week grid; a session card drags into its slot */
.tiles { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(12, 1fr); pointer-events: none; }
.tiles i { display: block; background-repeat: no-repeat; will-change: transform, opacity; }
.ch2 .patch { z-index: 4; opacity: 0; }
.ch2 .dragcard { z-index: 5; opacity: 0; border-radius: 10px; box-shadow: 0 18px 30px -12px rgba(10, 60, 40, 0.55); }

/* ch4: a ring draws behind the phone; a match result pops out of it */
.ring { max-width: none; position: absolute; left: 50%; top: 50%; width: 150%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-90deg); overflow: visible; pointer-events: none; }
.ring circle { fill: none; stroke-width: 9; }
.ring-track { stroke: var(--rail-off); }
.ring-arc { stroke: var(--brand); stroke-linecap: round; }
.ch4 .resultpop {
  z-index: 6; opacity: 0; border-radius: 14px; box-shadow: 0 0 0 1px var(--tint-edge), 0 22px 40px -14px rgba(10, 60, 40, 0.6);
  background-color: #EEF5F1;
}

/* ================= SITE CONTENT (round 5) ================= */
/* reveal: hidden only when JS runs; transform/opacity only */
html.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
html.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .rv { transform: none; transition: opacity 0.4s ease; } }

.coach-link { margin-top: 14px; color: #fff; font-weight: 700; font-size: 15px; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }

/* the tournament, as a ticket between the hero and chapter 1 */
.event { padding: 40px 16px 8px; display: flex; justify-content: center; overflow-x: clip; }
.ticket {
  position: relative; display: block; width: 100%; max-width: 520px; text-decoration: none; color: #fff; text-align: left;
  background: linear-gradient(150deg, #1B2A22 0%, #0E1A14 100%); border-radius: 22px; padding: 20px 20px 18px;
  box-shadow: 0 24px 50px -24px rgba(10, 60, 40, 0.6); overflow: hidden;
}
.ticket::before, .ticket::after { /* the ticket's punched notches */
  content: ""; position: absolute; top: 58%; width: 22px; height: 22px; border-radius: 50%; background: var(--atm-top);
}
.ticket::before { left: -11px; } .ticket::after { right: -11px; }
.ticket-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; color: #9FE3BF; }
.ticket-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #52CC8C; box-shadow: 0 0 0 0 rgba(82, 204, 140, 0.6); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(82, 204, 140, 0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(82, 204, 140, 0); } }
.ticket-h { margin: 6px 0 14px; font-size: clamp(30px, 9vw, 44px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.days li { border-radius: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); padding: 8px 0 6px; text-align: center; line-height: 1; }
html.js .days li.rv { transform: rotateX(-80deg) translateY(10px); transform-origin: 50% 0; }
html.js .days li.rv.in { transform: none; }
.days b { display: block; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.days small { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.days li.today { background: #52CC8C; color: #0E1A14; border-color: #52CC8C; }
.ticket-line { margin: 16px 0 0; font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, 0.88); border-top: 1.5px dashed rgba(255, 255, 255, 0.22); padding-top: 14px; }
.ticket-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px; }
.pill-closed { font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 5px 11px; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); }
.ticket-cta { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: #52CC8C; color: #0E1A14; font-weight: 800; font-size: 15px; }
.ticket-cta svg { width: 18px; height: 18px; }

/* everything in the app */
.more { max-width: 720px; margin: 0 auto; padding: 56px 16px 24px; overflow-x: clip; }
.more-h { font-size: 28px; margin: 4px 0 18px; letter-spacing: -0.02em; color: var(--ink); }
.group { margin-top: 30px; }
.group-h { font-size: 21px; margin: 0 0 4px; color: var(--ink); }
.group-intro { margin: 0 0 18px; max-width: 30em; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.pill {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-brand); background: var(--tint-fill); border: 1px solid var(--tint-edge); border-radius: 999px; padding: 4px 11px; margin-bottom: 8px;
}
.card { background: var(--tint-fill); border: 1px solid var(--tint-edge); border-radius: var(--r); padding: 16px; margin: 12px 0; display: flex; gap: 12px; align-items: flex-start; }
.card h3 { margin: 0 0 4px; font-size: 1.02rem; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.ill { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--tint-fill); border: 1px solid var(--tint-edge); display: grid; place-items: center; color: var(--ink-brand); }
.ill svg { width: 24px; height: 24px; display: block; }
.demo { margin: 0; }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; background: #0E1A14; box-shadow: var(--phone-shadow); }
.demo-caption { color: var(--muted); font-size: 15px; text-align: center; margin: 12px 0 0; }

/* ---------- MERCH (coming soon) ---------- */
.merch { max-width: 480px; margin: 0 auto; padding: 12px 16px 48px; text-align: center; }
.merch-mark { width: 60px; margin: 0 auto 14px; color: var(--brand); }
.merch-h { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--ink); }
.merch-soon {
  display: inline-block; margin: 0 0 10px; padding: 5px 14px; border-radius: 999px;
  background: var(--tint-fill); box-shadow: inset 0 0 0 1px var(--tint-edge);
  color: var(--ink-brand); font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
}
.merch-line { margin: 0 auto; max-width: 30em; color: var(--muted); font-size: 15px; }

/* closing CTA extras */
.finale-money { margin: 18px auto 0; font-size: 16px; font-weight: 600; max-width: 24em; display: flex; align-items: center; gap: 10px; justify-content: center; text-align: left; }
.finale-money .zero { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; flex: none; }
.finale-badges { margin: 10px 0 0; }
.badge { display: inline-block; background: #fff; color: #0A6642; font-size: 0.78rem; font-weight: 800; border-radius: 999px; padding: 4px 10px; }
.finale-coach { margin: 16px 0 0; font-size: 14px; font-weight: 600; opacity: 0.9; }
.finale { padding-bottom: 56px; }

/* footer */
.site-footer { max-width: 720px; margin: 0 auto; padding: 28px 16px calc(28px + var(--gb-h) + env(safe-area-inset-bottom)); color: var(--muted); font-size: 0.88rem; text-align: center; }
.foot-mark { display: inline-block; width: 40px; height: 40px; color: var(--ink-brand); }
.foot-mark svg { width: 100%; height: 100%; }
.site-footer p { margin: 8px 0; }
.site-footer a { color: var(--muted); }
.site-footer .langs a { color: var(--ink-brand); font-weight: 700; text-decoration: none; margin: 0 8px; display: inline-block; min-height: 44px; line-height: 44px; }
.site-footer .langs a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-footer .credit { font-size: 0.72rem; opacity: 0.75; }

/* ================= round 7: overlays never cover capture content ================= */
.screen { container-type: size; }
/* ch3: the roll-up happens ON the card's own figure, then hands back to the capture */
.figure-patch {
  position: absolute; z-index: 4; left: 40%; width: 19.5%; top: 35.43%; height: 3.4%;
  display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden;
  background: linear-gradient(90deg, rgb(58, 123, 85), rgb(54, 117, 81));
  color: #fff; font-weight: 700; font-size: 3.85cqh; letter-spacing: -0.01em; line-height: 1; font-variant-numeric: tabular-nums;
}
.figure-patch::after { content: ""; position: absolute; left: 49.5%; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.13); }
.figure-patch b { position: relative; z-index: 1; font-weight: 700; }
/* ch3: 0% commission lands in the caption's clear space, under the line */
.zero-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; height: 34px; padding: 0 14px 0 12px; border-radius: 999px;
  background: var(--grad); color: #fff; box-shadow: 0 10px 20px -10px rgba(10, 60, 40, 0.6); will-change: transform, opacity;
}
.zero-pill b { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.zero-pill span { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
/* ch4: the result card lifts off its own spot and lands back on it */
.ch4 .resultpop { box-shadow: none; border-radius: 12px; }
.figure-patch { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }

/* ================= round 8: beta buttons are one centred icon+label unit ================= */
.beta-buttons { flex-direction: column; align-items: stretch; gap: 12px; max-width: 420px; margin-left: auto; margin-right: auto; }
.beta-buttons .btn { flex: none; width: 100%; height: 56px; min-height: 56px; padding: 0 20px; border-radius: 14px; justify-content: center; gap: 10px; white-space: nowrap; font-size: 17px; }
.beta-buttons .btn span { white-space: nowrap; }
.beta-buttons .btn.ghost { border-width: 1.5px; }
@media (min-width: 600px) {
  .beta-buttons { flex-direction: row; max-width: 600px; }
  .beta-buttons .btn { flex: 1 1 0; width: auto; }
}
.hero .coach-link { margin-top: 16px; }

/* round 8: registration status folds into the status row; not a button shape */
.ticket-status { flex-wrap: wrap; row-gap: 2px; }
.ticket-status .sep { color: rgba(255, 255, 255, 0.35); }
.ticket-status .closed, .status-row .closed { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; letter-spacing: 0; color: rgba(255, 255, 255, 0.62); }
.closed .lock { width: 13px; height: 13px; flex: none; }
.ticket-foot { justify-content: flex-start; }
.pill-closed { display: none; }
.ticket-status { flex-wrap: nowrap; white-space: nowrap; letter-spacing: 0.02em; }

/* ================= round 9: the hero leads with the three-tap promise ================= */
.lockup { display: flex; align-items: center; justify-content: center; gap: 10px; }
.lockup .mark { width: 52px; }
.lockup .wordmark { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.lockup .wordmark .ch { display: inline-block; }
.promise { font-size: clamp(34px, 9.6vw, 62px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; margin: 18px auto 0; max-width: 11em; text-wrap: balance; }
.taps { list-style: none; margin: 22px auto 0; padding: 0; display: flex; gap: 8px; justify-content: center; flex-wrap: nowrap; }
.tapchip {
  position: relative; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px 0 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32); color: #fff;
  font-size: 14.5px; font-weight: 700; white-space: nowrap; will-change: transform;
}
.tapchip .tn { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 900; background: rgba(255, 255, 255, 0.2); }
.tapchip .tick { width: 0; height: 16px; opacity: 0; color: #0A6642; }
.tapchip::after { /* the tap ripple */
  content: ""; position: absolute; left: 20px; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9); opacity: 0; pointer-events: none;
}
.caveat { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, 0.78); }
/* lit state, reached in sequence and looped gently (motion only) */
.hero.taps-on .tapchip { animation: chipLit 5.2s cubic-bezier(0.3, 0.7, 0.3, 1) infinite; animation-delay: calc(var(--k) * 0.55s); }
.hero.taps-on .tapchip::after { animation: chipRipple 5.2s ease-out infinite; animation-delay: calc(var(--k) * 0.55s); }
.hero.taps-on .tapchip:nth-child(3) .tick { animation: chipTick 5.2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; animation-delay: 1.1s; }
.hero.taps-paused .tapchip, .hero.taps-paused .tapchip::after, .hero.taps-paused .tick { animation-play-state: paused; }
@keyframes chipLit {
  0%, 4% { transform: scale(1); background-color: rgba(255, 255, 255, 0.12); color: #fff; }
  7% { transform: scale(0.92); }
  12% { transform: scale(1.04); background-color: #fff; color: #0A6642; }
  16%, 72% { transform: scale(1); background-color: #fff; color: #0A6642; }
  82%, 100% { transform: scale(1); background-color: rgba(255, 255, 255, 0.12); color: #fff; }
}
@keyframes chipRipple { 0%, 5% { opacity: 0; transform: scale(0.4); } 7% { opacity: 0.9; transform: scale(0.6); } 16%, 100% { opacity: 0; transform: scale(1.7); } }
@keyframes chipTick { 0%, 10% { width: 0; opacity: 0; transform: scale(0); } 16%, 66% { width: 16px; opacity: 1; transform: scale(1); } 74%, 100% { width: 0; opacity: 0; transform: scale(0); } }
.hero.taps-on .tapchip .tn { transition: none; }
/* reduced motion / no JS: static chips, all shown plainly, tick visible on the last */
html:not(.motion) .tapchip:nth-child(3) .tick { width: 16px; opacity: 1; color: #fff; }

/* chapter 1 captions carry the tap count */
.line .n.tapl, .ch-static .n.tapl, .ch1-static .n.tapl {
  display: inline-block; vertical-align: 3px; margin-right: 8px; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-brand); background: var(--tint-fill); box-shadow: inset 0 0 0 1px var(--tint-edge);
}
.line .n.tapl.done, .ch1-static .n.tapl.done { color: #fff; background: #0A6642; box-shadow: none; } /* deep, pinned in both modes: white on --brand is 4.26:1 light, 2.02:1 dark */

/* closing section: the €0 line stacks, chips breathe, the page ends clear of Safari's toolbar */
.finale-money { flex-direction: column; gap: 4px; text-align: center; margin-top: 22px; }
.finale-money .zero { font-size: 52px; line-height: 1; }
.finale-money span { max-width: 20em; }
.finale-badges { margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.finale-badges .badge { padding: 6px 14px; font-size: 0.82rem; }
.site-footer { padding-bottom: calc(64px + var(--gb-h) + env(safe-area-inset-bottom)); }

/* ================= round 10: hero polish ================= */
.hero { padding-top: calc(60px + env(safe-area-inset-top)); padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
.promise { margin-top: 14px; }
.taps { gap: 14px; margin-top: 20px; max-width: calc(100vw - 32px); }
.tapchip { height: 36px; padding: 0 12px 0 5px; gap: 6px; font-size: 14px; }
.tapchip + .tapchip::before { content: ""; position: absolute; left: -12px; top: 50%; width: 10px; height: 1.5px; background: rgba(255, 255, 255, 0.5); }
.tapchip .tn { position: relative; width: 26px; height: 26px; font-size: 13px; background: rgba(255, 255, 255, 0.22); color: #fff; }
.tapchip .tn b { font-weight: 900; }
.tapchip .tn .tick { position: absolute; inset: 0; margin: auto; width: 15px; height: 15px; opacity: 0; color: #fff; }
.tapchip::after { left: 18px; }
.hero.taps-on .tapchip .tn { animation: tnLit 5.2s cubic-bezier(0.3, 0.7, 0.3, 1) infinite; animation-delay: calc(var(--k) * 0.55s); }
@keyframes tnLit {
  0%, 9% { background-color: rgba(255, 255, 255, 0.22); color: #fff; }
  12%, 72% { background-color: #148C59; color: #fff; }
  82%, 100% { background-color: rgba(255, 255, 255, 0.22); color: #fff; }
}
.hero.taps-on .tapchip.last .tn .tick { animation: tickIn 5.2s ease infinite; animation-delay: 1.1s; }
.hero.taps-on .tapchip.last .tn b { animation: numOut 5.2s ease infinite; animation-delay: 1.1s; }
@keyframes tickIn { 0%, 14% { opacity: 0; transform: scale(0.4); } 18%, 68% { opacity: 1; transform: scale(1); } 74%, 100% { opacity: 0; transform: scale(0.4); } }
@keyframes numOut { 0%, 14% { opacity: 1; } 17%, 69% { opacity: 0; } 74%, 100% { opacity: 1; } }
.hero.taps-paused .tn, .hero.taps-paused .tn b, .hero.taps-paused .tn .tick { animation-play-state: paused; }
html:not(.motion) .tapchip.last .tn .tick { opacity: 0; }
.caveat { margin-top: 14px; }
.hero .beta-buttons { margin-top: 22px; }
.hero .coach-link { margin-top: 8px; }
.hero > .court { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 13%, rgba(0, 0, 0, 0.06) 24%, rgba(0, 0, 0, 0.06) 80%, #000 90%, #000 100%); mask-image: linear-gradient(180deg, #000 0%, #000 13%, rgba(0, 0, 0, 0.06) 24%, rgba(0, 0, 0, 0.06) 80%, #000 90%, #000 100%); }

/* ================= round 11: no court line crosses text or a card ================= */
.finale > .court { opacity: 0.14; -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 5%, rgba(0,0,0,0.04) 13%, rgba(0,0,0,0.04) 87%, #000 95%, #000 100%); mask-image: linear-gradient(90deg, #000 0%, #000 5%, rgba(0,0,0,0.04) 13%, rgba(0,0,0,0.04) 87%, #000 95%, #000 100%); }
.android-how { background: #117A4E; border-color: rgba(255, 255, 255, 0.24); }
.site-footer { padding-bottom: calc(110px + var(--gb-h) + env(safe-area-inset-bottom)); }
/* round 11b: in the closing section the court only shows above and below the content column */
.finale > .court { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 6%, transparent 14%, transparent 90%, #000 97%, #000 100%); mask-image: linear-gradient(180deg, #000 0%, #000 6%, transparent 14%, transparent 90%, #000 97%, #000 100%); }
/* round 11c: masks tuned by pixel-diff in WebKit (court on vs off inside every text box) */
.hero > .court { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 4%, transparent 8%, transparent 89%, #000 95%, #000 100%); mask-image: linear-gradient(180deg, #000 0%, #000 4%, transparent 8%, transparent 89%, #000 95%, #000 100%); }
.finale > .court { -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 90%, #000 97%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, transparent 90%, #000 97%, #000 100%); }
/* round 12: no court drawing in the closing section at all; the coach line is a link like the hero's */
.finale > .court { display: none; }
.finale .finale-coach { margin-top: 16px; opacity: 1; font-size: 15px; }
.finale { padding-bottom: 48px; }

/* live port: a narrow window on a desktop browser gets both buttons, which
   leaves the title one letter wide; drop the title there (the bar keeps its
   aria-label). Phones get one button and keep the title. */
@media (max-width: 480px) { .getbar.both .gb-text { display: none; } .getbar.both .gb-btns { flex: 1; justify-content: center; } }
/* live port: the letter-split wordmark never wraps between its letters */
.lockup .wordmark { white-space: nowrap; }
/* live port: under 360px the three tap chips no longer fit one row; let them wrap */
@media (max-width: 359px) {
  .taps { flex-wrap: wrap; gap: 8px; }
  .tapchip + .tapchip::before { display: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* keyboard focus reads on the green bands and the dark ticket */
.hero a:focus-visible, .finale a:focus-visible, .ticket:focus-visible, .page-hero a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
a:focus-visible { outline-offset: 2px; }

/* ================= live port: contrast on the gradient =================
   Measured by sampling the rendered pixels behind each text run (axe cannot
   score text over a gradient). White on the gradient's HIGH stop #148C59 is
   4.26:1, so small text on the hero cannot sit on a LIGHTER fill or at
   reduced opacity. Resting chips darken the band instead of lightening it
   (white 5.2:1 and up), the lit numeral sits on deep #0A6642 (7.02:1), the
   caveat and the language links are full white, and the language links
   reach 44px. */
.tapchip { background: rgba(0, 0, 0, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.tapchip .tn { background: rgba(0, 0, 0, 0.22); }
@keyframes chipLit {
  0%, 4% { transform: scale(1); background-color: rgba(0, 0, 0, 0.14); color: #fff; }
  7% { transform: scale(0.92); }
  12% { transform: scale(1.04); background-color: #fff; color: #0A6642; }
  16%, 72% { transform: scale(1); background-color: #fff; color: #0A6642; }
  82%, 100% { transform: scale(1); background-color: rgba(0, 0, 0, 0.14); color: #fff; }
}
@keyframes tnLit {
  0%, 9% { background-color: rgba(0, 0, 0, 0.22); color: #fff; }
  12%, 72% { background-color: #0A6642; color: #fff; }
  82%, 100% { background-color: rgba(0, 0, 0, 0.22); color: #fff; }
}
.caveat { color: #fff; }
.topbar nav a { opacity: 1; min-height: 44px; min-width: 44px; }
.topbar nav a[aria-current="true"] { background: rgba(0, 0, 0, 0.2); }
.topbar nav a { background: rgba(0, 0, 0, 0.12); }
.topbar-link { opacity: 1; min-height: 44px; background: rgba(0, 0, 0, 0.12); }
.topbar nav a[aria-current="true"] { background: rgba(0, 0, 0, 0.26); }
/* the caption sat inside the video's drop shadow, where muted ink read 3.9:1 */
.demo-caption { margin-top: 30px; }

/* ================= one nav on every page (2026-10-06): Coaches · Tournaments · FAQ · Merch ================= */
.topbar-links { display: flex; margin-right: auto; }
.topbar-links .topbar-link { margin-right: 0; padding: 6px 7px; }
.sitebar-link { white-space: nowrap; }
@media (max-width: 480px) { .sitebar .nav-faq { display: none; } }
/* Home hero top bar as plain text (2026-10-06): seven tinted boxes edge to edge read as cramped on a
   phone. Links and languages are white text with a 44px tap height; the current language is underlined. */
.topbar { padding: 6px 10px; }
.topbar-links .topbar-link, .topbar nav a { background: none !important; border-radius: 0; min-width: 0; min-height: 44px; padding: 0 9px; }
.topbar-links .topbar-link { opacity: 0.95; }
.topbar nav { gap: 0; margin-left: 6px; }
.topbar nav a { opacity: 0.7; font-weight: 700; }
.topbar nav a[aria-current="true"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.topbar-links .topbar-link:hover, .topbar nav a:hover { opacity: 1; }
@media (max-width: 400px) { .topbar-links .topbar-link, .topbar nav a { padding: 0 6px; } .topbar { padding: 6px 4px; } }
