/* Tennset · site.css v2
   Layout concept: a tennis court runs behind the whole page. It sits on a fixed
   dark layer that shows through the hero, Safety and the footer; light sheets
   with rounded corners slide over it. Lime only ever marks something you can press. */

/* Literata (OFL), trimmed to weight 650 with the optical-size axis kept for 20–72 px */
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-latin-v1.woff2") format("woff2");
  font-weight: 650;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-wght-latin-v1.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Primitives: Tennset app palette */
  --white: #FFFFFF;
  --soft-100: #F4F6F9;
  --ink-900: #0E1A0E;
  --ink-700: #3D4F3D;
  --ink-500: #7A8F7A;
  --line-200: #E2E8E2;
  --line-300: #C8D4C8;
  --forest-900: #053005;
  --lime-400: #C3FE3E; /* the original tennset.com lime */
  --lime-300: #D6FF80;
  --blue-700: #1565C0;
  --coral-500: #FF4F79;
  --night-900: #1A2028;   /* the hero footage's own backdrop */

  /* Semantic roles: daylight */
  --surface: var(--white);
  --surface-alt: var(--soft-100);
  --text: var(--ink-900);
  --text-muted: var(--ink-700);
  --line-decor: var(--line-200);
  --line-ui: var(--ink-500);
  --label: var(--blue-700);
  --link: var(--forest-900);
  --action: var(--lime-400);
  --action-hover: var(--lime-300);
  --on-action: var(--forest-900);
  --focus: var(--blue-700);
  --tag-bg: var(--coral-500);
  --tag-text: var(--ink-900);
  --chip-line: var(--line-300);
  --chapter: var(--white);

  /* Type */
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-text: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wght-display: 650;
  --wght-ui: 600;
  --wght-text: 400;
  --fs-display-1: clamp(2.35rem, 1.55rem + 3.3vw, 4.4rem);
  --fs-display-2: clamp(1.9rem, 1.45rem + 1.9vw, 3.1rem);
  --fs-display-3: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
  --fs-title: clamp(1.12rem, 1.06rem + 0.3vw, 1.35rem);
  --fs-body-l: clamp(1.08rem, 1.03rem + 0.25vw, 1.25rem);
  --fs-body: clamp(1.0625rem, 1.04rem + 0.1vw, 1.125rem);
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;
  --lh-display-1: 1.06;
  --lh-display-2: 1.1;
  --lh-display-3: 1.18;
  --lh-title: 1.28;
  --lh-body-l: 1.5;
  --lh-body: 1.58;
  --track-display: -0.02em;
  --track-label: 0.1em;
  --measure: 66ch;

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: clamp(2rem, 1.8rem + 0.8vw, 2.5rem);
  --space-7: clamp(2.75rem, 2.4rem + 1.5vw, 4rem);
  --space-8: clamp(4rem, 3.2rem + 3vw, 6.5rem);

  /* Layout */
  --page-max: 75rem;
  --margin: 1.25rem;
  --gutter: 1rem;
  --header-h: 60px;
  --sheet-r: 22px;

  /* Components */
  --phone-w: clamp(232px, 64vw, 300px);
  --badge-h: 48px;
  --target-min: 44px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-device: 38px;
  --shadow-float: 0 18px 40px rgb(14 26 14 / 0.18);

  /* Motion and focus */
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-reveal: 800ms;
  --focus-width: 3px;
  --focus-offset: 3px;
}

@media (min-width: 600px) { :root { --margin: 2rem; --gutter: 1.25rem; } }
@media (min-width: 1000px) { :root { --margin: 2.5rem; --gutter: 1.5rem; --header-h: 68px; --sheet-r: 32px; } }

/* The page colour behind the court lines follows the dark chapter in view */
html[data-chapter="night"] { --chapter: var(--night-900); }
html[data-chapter="forest"] { --chapter: var(--forest-900); }

/* Dark chapters: hero on the footage's night backdrop, Safety and footer on forest. Themes only remap roles. */
.theme-night,
.theme-dusk {
  color-scheme: dark;
  --text: var(--white);
  --text-muted: #D3DBD3;
  --line-decor: rgb(255 255 255 / 0.16);
  --line-ui: rgb(255 255 255 / 0.5);
  --label: var(--lime-400);
  --link: var(--lime-400);
  --focus: var(--lime-400);
  --chip-line: rgb(255 255 255 / 0.32);
}
.theme-night { --text-muted: #D5DCE4; }

@media (prefers-contrast: more) {
  :root { --text-muted: var(--ink-900); --line-decor: var(--ink-500); --label: #0D47A1; }
  .theme-night, .theme-dusk { --text-muted: var(--white); --line-decor: rgb(255 255 255 / 0.5); }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  background: var(--chapter);
  transition: background-color 600ms var(--ease);
}
body {
  margin: 0;
  background: transparent; /* the page colour lives on <html> so the court layer can sit between it and the content */
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--wght-text);
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--white);
}
main, header, footer, section { color: var(--text); }

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
p, li { max-width: var(--measure); }

.display-1, .display-2, .display-3 {
  font-family: var(--font-display);
  font-weight: var(--wght-display);
  letter-spacing: var(--track-display);
  font-synthesis: none;
  text-wrap: balance;
}
.display-1 { font-size: var(--fs-display-1); line-height: var(--lh-display-1); }
.display-2 { font-size: var(--fs-display-2); line-height: var(--lh-display-2); }
.display-3 { font-size: var(--fs-display-3); line-height: var(--lh-display-3); }
.accent { color: var(--lime-400); }
.title { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--wght-ui); text-wrap: balance; }
.lead { font-size: var(--fs-body-l); line-height: var(--lh-body-l); max-width: 56ch; color: var(--text-muted); }
.small { font-size: var(--fs-small); line-height: 1.5; color: var(--text-muted); }
.eyebrow {
  font-size: var(--fs-label);
  line-height: 1.2;
  font-weight: var(--wght-ui);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--label);
}
.tabular { font-variant-numeric: tabular-nums; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }

.skip-link {
  position: absolute; left: var(--space-4); top: -120px; z-index: 40;
  padding: var(--space-3) var(--space-4);
  background: var(--forest-900); color: var(--white);
  border-radius: 999px; font-weight: var(--wght-ui);
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + var(--space-3)); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(100% - 2 * var(--margin), var(--page-max)); margin-inline: auto; }
.section { padding-block: var(--space-8); }
.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-7); }

/* Court lines: a fixed layer behind every section (drawn by site.js) */
.court-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.court-bg svg { width: 100%; height: 100%; }
.court-bg .ln { fill: rgb(255 255 255 / 0.15); }
.court-bg .ln-key { fill: rgb(255 255 255 / 0.72); }
.court-bg .ln-lime { fill: rgb(195 254 62 / 0.26); }
.court-bg .net { fill: rgb(255 255 255 / 0.035); }
.court-bg .tape { fill: rgb(255 255 255 / 0.34); }
.court-bg .post { fill: rgb(255 255 255 / 0.2); }

/* Light sheets slide over the court; the first and last of a run get rounded corners */
.sheet { position: relative; z-index: 1; background: var(--white); color: var(--ink-900); }
.sheet.surface-alt { background: var(--soft-100); }
.sheet-top { border-radius: var(--sheet-r) var(--sheet-r) 0 0; margin-top: calc(-1 * var(--sheet-r)); }
.sheet-bottom { border-radius: 0 0 var(--sheet-r) var(--sheet-r); }
.sheet-top.sheet-bottom { border-radius: var(--sheet-r); }
.chapter-dark { position: relative; background: transparent; }

/* Launch state: one attribute on <html> swaps the pre-launch buttons for store badges */
html[data-launch="pre"] .when-live,
html[data-launch="live"] .when-pre { display: none !important; }

/* Buttons: pills, like the logo and the app */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.6rem;
  border-radius: 999px; border: 1.5px solid transparent;
  background: var(--action); color: var(--on-action);
  font: inherit; font-size: 1.0625rem; font-weight: var(--wght-ui);
  text-decoration: none; cursor: pointer; text-align: center; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur-base) var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: var(--target-min); padding: 0 1.15rem; font-size: 0.9375rem; }
.btn--outline { background: transparent; color: var(--text); border-color: currentColor; }
.link-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--target-min); padding: 0; border: 0; background: none;
  font: inherit; font-weight: var(--wght-ui); color: var(--text);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; cursor: pointer;
}
.link-btn svg { width: 18px; height: 18px; }
@media (hover: hover) {
  a:hover { text-decoration-thickness: 2px; }
  .btn:hover { background: var(--action-hover); }
  .btn:hover svg { transform: translateX(3px); }
  .btn--outline:hover { background: rgb(255 255 255 / 0.08); }
  .link-btn:hover { text-decoration-thickness: 2px; }
}

.cta { display: grid; gap: var(--space-3); justify-items: start; }
.badges { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.badge-slot { display: inline-block; line-height: 0; border-radius: 10px; }
.badge-slot img { height: var(--badge-h); width: auto; }
.qr__img { width: 112px; height: 112px; border-radius: var(--radius-sm); }
.reassure { font-size: var(--fs-small); color: var(--text-muted); max-width: 46ch; }

.tag {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.25em 0.7em; border-radius: 999px;
  background: var(--tag-bg); color: var(--tag-text);
  font-size: 0.72rem; font-weight: var(--wght-ui); letter-spacing: 0.06em; text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--white); color: var(--ink-900);
  border-bottom: 1px solid var(--line-200);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
.wordmark { display: inline-flex; flex: none; border-radius: 4px; }
.wordmark img { width: 112px; height: auto; }
.site-nav { display: none; margin-left: auto; }
.site-nav ul { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink-900); text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding-block: var(--space-2); }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.site-header .btn { margin-left: auto; --focus: var(--blue-700); }
@media (min-width: 1000px) {
  .site-nav { display: block; }
  .site-header .btn { margin-left: var(--space-3); }
  .wordmark img { width: 124px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__media { position: relative; }
.hero__frame { position: relative; aspect-ratio: 4 / 5; max-height: 64svh; width: 100%; overflow: hidden; }
.hero__frame picture, .hero__frame img, .hero__frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%;
}
.hero__frame video { background: transparent; }
.hero__frame::after {
  content: ""; position: absolute; inset: auto 0 0; height: 34%;
  background: linear-gradient(to bottom, rgb(26 32 40 / 0), var(--night-900));
  pointer-events: none;
}
.pause-btn {
  position: absolute; right: var(--space-4); top: var(--space-4); z-index: 2;
  display: inline-grid; place-items: center;
  width: var(--target-min); height: var(--target-min);
  border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.45); cursor: pointer;
  background: rgb(14 26 14 / 0.6); color: var(--white);
}
.pause-btn svg { width: 18px; height: 18px; }
.pause-btn .i-play { display: none; }
.pause-btn[data-state="paused"] .i-play { display: block; }
.pause-btn[data-state="paused"] .i-pause { display: none; }
.no-js .pause-btn { display: none; }

.hero__body { display: grid; gap: var(--space-5); padding-block: var(--space-5) calc(var(--space-8) + var(--sheet-r)); position: relative; z-index: 1; margin-top: calc(-1 * var(--space-7)); }
.hero__copy { display: grid; gap: var(--space-4); justify-items: start; }
.hero h1 { color: var(--white); }
.hero__act { display: grid; gap: var(--space-5); align-content: start; }
.pill-label {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.5em 1em; border: 1px solid rgb(195 254 62 / 0.45); border-radius: 999px;
  background: rgb(195 254 62 / 0.06);
  font-size: var(--fs-label); font-weight: var(--wght-ui); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--lime-400);
}
.pill-label::before { content: ""; width: 0.8em; height: 0.8em; border-radius: 50%; background: var(--lime-400); box-shadow: inset -0.18em -0.1em 0 rgb(14 26 14 / 0.25); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips li {
  padding: 0.3em 0.85em; border: 1px solid var(--chip-line); border-radius: 999px;
  font-size: 0.875rem; color: var(--text-muted); max-width: none;
}

@media (min-width: 1000px) {
  .hero__grid {
    display: grid; position: relative;
    grid-template-columns: [full-start] minmax(var(--margin), 1fr) [content-start] minmax(0, calc(var(--page-max) * 0.52)) [split] minmax(0, calc(var(--page-max) * 0.48)) [content-end] minmax(var(--margin), 1fr) [full-end];
    --box: clamp(560px, 46vw, 680px);
  }
  .hero__media { grid-column: split / full-end; grid-row: 1; display: flex; justify-content: flex-start; }
  .hero__frame {
    width: var(--box); height: var(--box); aspect-ratio: auto; max-height: none; flex: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%, #000 86%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 24%, #000 86%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
    mask-composite: intersect;
  }
  .hero__frame picture, .hero__frame img, .hero__frame video { object-position: 50% 50%; }
  .hero__frame::after { display: none; }
  .hero__body {
    grid-column: content-start / split; grid-row: 1; width: auto; margin-inline: 0;
    margin-top: 0; padding-block: 0; min-height: var(--box);
    grid-template-rows: calc(var(--box) * 0.743) auto; gap: 0; /* the first row ends exactly on the film's court line */
    padding-right: var(--space-6);
  }
  .hero__copy { align-content: end; padding-bottom: var(--space-5); }
  .hero__act { padding-top: var(--space-5); gap: var(--space-4); }
  .hero__grid { padding-bottom: calc(var(--sheet-r) + var(--space-6)); }
  .pause-btn { top: auto; right: calc(14% + var(--space-4)); bottom: calc(20% + var(--space-4)); }
  .hero .lead { font-size: clamp(1rem, 0.75rem + 0.4vw, 1.2rem); }
}

/* App tour */
.tour__grid { display: grid; gap: var(--space-6); align-items: center; }
.tour__grid > *, .who__grid > *, .how__grid > *, .levels__grid > *, .circle__grid > *, .final__grid > * { min-width: 0; }
.tour__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-top: var(--space-5); }
.tour__tab {
  min-height: var(--target-min);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line-300); border-radius: 999px;
  background: var(--white); color: var(--ink-900);
  font: inherit; font-weight: var(--wght-ui); font-size: 0.9375rem; cursor: pointer;
}
.tour__tab[aria-selected="true"] { background: var(--forest-900); border-color: var(--forest-900); color: var(--white); }
.tour__tab .tour__cap { display: none; }
.tour__stage { display: grid; justify-items: center; gap: var(--space-4); }
.tour__caption { text-align: center; color: var(--text-muted); min-height: 3em; }
@media (min-width: 1000px) {
  .tour__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 5fr); }
  .tour__intro { grid-column: 1; }
  .tour__stage { grid-column: 3; }
  .tour__tabs { display: flex; flex-direction: column; gap: 0; margin-top: var(--space-6); border-top: 1px solid var(--line-200); }
  .tour__tab {
    display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5); text-align: left;
    border: 0; border-bottom: 1px solid var(--line-200); border-radius: 0; background: transparent; position: relative;
  }
  .tour__tab::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
  .tour__tab[aria-selected="true"] { background: var(--surface-alt); color: var(--ink-900); }
  .tour__tab[aria-selected="true"]::before { background: var(--lime-400); }
  .tour__tab .tour__name { font-size: 1.0625rem; }
  .tour__tab .tour__cap { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.9375rem; }
  .tour__caption { display: none; }
}

/* Phone frame */
.phone {
  position: relative; width: var(--phone-w); padding: 9px;
  border-radius: var(--radius-device); background: #10140F;
  box-shadow: var(--shadow-float);
}
.phone__screen { border-radius: calc(var(--radius-device) - 9px); overflow: hidden; background: var(--soft-100); aspect-ratio: 510 / 1082; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .tag { position: absolute; top: 18%; left: -16px; box-shadow: 0 2px 6px rgb(14 26 14 / 0.25); }

/* Who it's for */
.who__grid { display: grid; gap: var(--space-6); }
.who__list { border-top: 1px solid var(--line-ui); }
.who__item { display: grid; gap: var(--space-2); padding-block: var(--space-5); border-bottom: 1px solid var(--line-ui); }
.who__item h3 { font-family: var(--font-display); font-weight: var(--wght-display); font-synthesis: none; font-size: var(--fs-display-3); line-height: var(--lh-display-3); letter-spacing: var(--track-display); }
.who__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); max-height: 420px; }
@media (min-width: 800px) {
  .who__item { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-5); align-items: baseline; }
}
@media (min-width: 1000px) {
  .who__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-7); align-items: start; }
  .who__photo { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
  .who__photo img { max-height: none; }
}

/* How it works */
.how__grid { display: grid; gap: var(--space-6); }
.steps { border-top: 1px solid var(--line-ui); }
.step { border-bottom: 1px solid var(--line-ui); }
.step summary {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: center;
  min-height: 64px; padding-block: var(--space-4); cursor: pointer; list-style: none;
}
.step summary::-webkit-details-marker { display: none; }
.step__num {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 1.5px solid var(--ink-900); border-radius: 50%;
  font-weight: 700; font-variant-numeric: tabular-nums; font-size: 0.9375rem;
}
.step[open] .step__num { background: var(--lime-400); border-color: var(--lime-400); color: var(--forest-900); }
.step__chev { width: 20px; height: 20px; transition: transform var(--dur-base) var(--ease); }
.step[open] .step__chev { transform: rotate(180deg); }
.step__body { display: grid; gap: var(--space-5); padding: 0 0 var(--space-6) calc(38px + var(--space-4)); }
.step__body .phone { --phone-w: clamp(200px, 56vw, 250px); }
.how__side { display: none; }
.how__cta { margin-top: var(--space-6); }
@media (min-width: 1000px) {
  .how__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 1fr) minmax(0, 5fr); align-items: start; }
  .how__main { grid-column: 1; }
  .how__side { display: grid; justify-items: center; grid-column: 3; position: sticky; top: calc(var(--header-h) + var(--space-6)); }
  .js .step__visual { display: none; }
}

/* Example after-game card (step 5) */
.feedback-card {
  width: var(--phone-w); padding: var(--space-5);
  border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line-300);
  display: grid; gap: var(--space-4); box-shadow: var(--shadow-float); color: var(--ink-900);
}
.feedback-card .tag { justify-self: start; }
.feedback-card h4 { font-size: 1rem; }
.feedback-card .q { display: grid; gap: var(--space-2); font-size: 0.875rem; }
.feedback-card .opts { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.feedback-card .opts span { padding: 0.25em 0.7em; border-radius: 999px; background: var(--soft-100); font-size: 0.8125rem; }
.feedback-card .opts .on { background: var(--lime-400); }

/* Levels */
.levels__band { margin-bottom: var(--space-7); }
.levels__band img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--radius-md); }
.levels__grid { display: grid; gap: var(--space-6); }
.court { border: 2px solid var(--ink-900); border-radius: 2px; background: var(--white); display: grid; }
.court__zone {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 60px; padding: var(--space-3) var(--space-4);
  border: 0; border-bottom: 1px solid var(--line-300); background: transparent;
  font: inherit; text-align: left; color: var(--ink-900); cursor: pointer;
}
.court__zone:last-child { border-bottom: 0; }
.court__zone span { font-weight: var(--wght-ui); font-size: 1.0625rem; }
.court__zone[aria-selected="true"] { background: var(--lime-400); }
.court__zone[aria-selected="true"] .court__check { display: inline-block; }
.court__check { display: none; width: 18px; height: 18px; margin-right: var(--space-1); vertical-align: -3px; }
.court__net { height: 10px; background: repeating-linear-gradient(90deg, var(--ink-900) 0 1px, transparent 1px 6px), repeating-linear-gradient(0deg, var(--ink-900) 0 1px, transparent 1px 5px); border-top: 2px solid var(--ink-900); opacity: 0.55; }
.level-panel { display: grid; gap: var(--space-4); align-content: start; }
.level-panel h3 { font-family: var(--font-display); font-weight: var(--wght-display); font-synthesis: none; font-size: var(--fs-display-3); line-height: var(--lh-display-3); }
.level-panel .quote { font-size: var(--fs-body-l); }
.sees { display: grid; gap: var(--space-2); }
.sees ul { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; }
.sees li { padding: 0.2em 0.75em; border: 1px solid var(--ink-500); border-radius: 999px; font-size: 0.875rem; }
.sees li.is-you { background: var(--forest-900); border-color: var(--forest-900); color: var(--white); }
.example-card {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); align-items: center;
  padding: var(--space-4); border: 1px solid var(--ink-500); border-radius: var(--radius-md); background: var(--white);
  max-width: 26rem;
}
.example-card .tag { grid-column: 1 / -1; justify-self: start; }
.example-card dt { font-size: 0.8125rem; color: var(--text-muted); }
.example-card dd { font-weight: var(--wght-ui); }
.levels__notes { display: grid; gap: var(--space-4); margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--line-ui); }
@media (min-width: 1000px) {
  .levels__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr); align-items: start; }
  .levels__court { grid-column: 1; }
  .levels__panels { grid-column: 3; }
  .levels__notes { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}

/* Your circle */
.circle__grid { display: grid; gap: var(--space-6); align-items: center; }
.circle__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); }
.points { border-top: 1px solid var(--line-ui); }
.points li { display: grid; gap: var(--space-1); padding-block: var(--space-4); border-bottom: 1px solid var(--line-ui); max-width: none; }
.points h3 { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: 700; }
.circle__close { margin-top: var(--space-5); font-weight: 500; }
@media (min-width: 1000px) { .circle__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-7); } }

/* Safety (sits on the court, forest chapter) */
.safety { padding-block: calc(var(--space-8) + var(--space-4)); }
.safety__grid { display: grid; gap: 0; border-top: 1px solid var(--line-decor); }
.safety__item { display: grid; align-content: start; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--line-decor); }
.safety__item svg { width: 26px; height: 26px; color: var(--lime-400); grid-row: span 2; margin-top: 2px; }
.safety__item h3 { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: 700; }
.safety__item p { color: var(--text-muted); }
.safety__link { margin-top: var(--space-6); }
@media (min-width: 700px) { .safety__grid { grid-template-columns: 1fr 1fr; column-gap: var(--space-6); } }
@media (min-width: 1100px) {
  .safety__grid { grid-template-columns: repeat(3, 1fr); }
  .safety__item { grid-template-columns: 1fr; padding: var(--space-5) var(--space-5) var(--space-6) 0; }
  .safety__item svg { grid-row: auto; }
}

/* FAQ */
.faq__wrap { width: min(100% - 2 * var(--margin), 50rem); margin-inline: auto; }
.faq-list { border-top: 1px solid var(--line-ui); margin-top: var(--space-6); }
.faq-item { border-bottom: 1px solid var(--line-ui); }
.faq-item summary {
  display: flex; justify-content: space-between; gap: var(--space-4); align-items: center;
  min-height: 60px; padding-block: var(--space-4); cursor: pointer; list-style: none;
  font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--wght-ui);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 22px; height: 22px; flex: none; transition: transform var(--dur-base) var(--ease); }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item p { padding-bottom: var(--space-5); color: var(--text-muted); }

/* Final call to action */
.final__grid { display: grid; gap: var(--space-6); align-items: center; }
.final__copy { display: grid; gap: var(--space-5); justify-items: start; }
.final__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); }
.share { display: grid; gap: var(--space-1); justify-items: start; }
.share output { font-size: var(--fs-small); color: var(--text-muted); min-height: 1.4em; }
.abroad { padding-top: var(--space-4); border-top: 1px solid var(--line-300); width: 100%; font-size: var(--fs-small); color: var(--text-muted); }
.qr-row { display: none; gap: var(--space-5); }
.qr { display: grid; gap: var(--space-2); justify-items: center; font-size: 0.8125rem; color: var(--text-muted); }
.qr__slot { width: 112px; height: 112px; border: 1.5px dashed var(--line-ui); border-radius: var(--radius-sm); display: grid; place-items: center; text-align: center; font-size: 0.75rem; padding: var(--space-2); }
@media (min-width: 1000px) {
  .final__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-7); }
  html[data-launch="live"] .qr-row { display: flex; }
}

/* Footer (forest chapter, on the court) */
.site-footer { padding-block: var(--space-8) var(--space-6); --text-muted: rgb(255 255 255 / 0.72); background: var(--forest-900); }
html[data-chapter] .site-footer { background: transparent; }
.footer-grid { display: grid; gap: var(--space-6); padding-bottom: var(--space-6); border-bottom: 1px solid var(--line-decor); }
.footer-brand { display: grid; gap: var(--space-4); align-content: start; }
.footer-brand img { width: 120px; }
.footer-brand p { color: var(--text-muted); max-width: 34ch; }
.footer-h { font-size: 0.75rem; font-weight: var(--wght-ui); letter-spacing: var(--track-label); text-transform: uppercase; color: rgb(255 255 255 / 0.6); margin-bottom: var(--space-3); }
.footer-col ul { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: grid; gap: var(--space-4); padding-top: var(--space-5); font-size: 0.875rem; color: rgb(255 255 255 / 0.66); }
.footer-bottom strong { color: rgb(255 255 255 / 0.8); font-weight: var(--wght-ui); }
.footer-note { font-size: 0.8125rem; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: end; }
}

/* Dialog (desktop QR sheet) */
dialog.qr-sheet {
  border: 0; border-radius: var(--radius-md); padding: var(--space-6); max-width: min(92vw, 30rem);
  background: var(--white); color: var(--ink-900); box-shadow: var(--shadow-float);
}
dialog.qr-sheet::backdrop { background: rgb(14 26 14 / 0.5); }
.qr-sheet__head { display: flex; justify-content: space-between; align-items: start; gap: var(--space-4); margin-bottom: var(--space-4); }
.icon-btn { display: inline-grid; place-items: center; width: var(--target-min); height: var(--target-min); border-radius: 50%; border: 1px solid var(--line-300); background: var(--white); cursor: pointer; }

/* Simple pages: invite and 404 */
.page-simple { padding-block: var(--space-8); }
.page-simple__inner { width: min(100% - 2 * var(--margin), 44rem); margin-inline: auto; display: grid; gap: var(--space-5); justify-items: start; }
.page-simple__inner .small { margin-top: var(--space-3); }
.page-404 { padding-block: var(--space-8) calc(var(--space-8) + var(--space-6)); }
.illustration-404 { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; object-position: 50% 46%; }

/* Legal pages */
.legal { width: min(100% - 2 * var(--margin), 46rem); margin-inline: auto; padding-block: var(--space-7) var(--space-8); }
.legal h1 { margin-bottom: var(--space-3); }
.legal h2 { font-size: var(--fs-title); line-height: var(--lh-title); margin-top: var(--space-6); margin-bottom: var(--space-3); scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
.legal h3 { font-size: 1.0625rem; margin-top: var(--space-5); margin-bottom: var(--space-2); }
.legal p, .legal ul, .legal ol { margin-bottom: var(--space-3); }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: var(--space-2); }
.legal address { font-style: normal; margin-bottom: var(--space-4); }
.legal .table-wrap { overflow-x: auto; margin-block: var(--space-4); }
.legal table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 0.9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line-300); }
.legal th { font-weight: var(--wght-ui); }
.legal .toc { padding: var(--space-4) var(--space-5); background: var(--surface-alt); border-radius: var(--radius-md); margin-block: var(--space-5); }
.legal .toc ol { margin: var(--space-2) 0 0; columns: 2 14rem; }
.legal .meta { color: var(--text-muted); margin-bottom: 0; }
.preview-mark { background: #FFF1A8; color: var(--ink-900); padding: 0 2px; }
p.preview-mark { padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); margin-top: var(--space-4); }

/* Scroll reveals: content fades and rises into place (only when motion is allowed and script runs) */
.reveal-on [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Language links ---------- */
.lang-nav { display: none; }
.lang-nav ul, .footer-langs ul { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); list-style: none; margin: 0; padding: 0; }
.lang-nav a { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 2px; font-size: 0.8125rem; font-weight: var(--wght-ui); letter-spacing: 0.04em; color: var(--ink-700); text-decoration: none; }
.lang-nav a:hover { color: var(--ink-900); text-decoration: underline; text-underline-offset: 0.3em; }
.lang-nav a[aria-current] { color: var(--ink-900); text-decoration: underline; text-decoration-color: var(--lime-400); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
@media (min-width: 1000px) { .lang-nav { display: block; } .site-nav ul { gap: var(--space-4); } }
.footer-end { display: grid; gap: var(--space-3); justify-items: start; }
@media (min-width: 800px) { .footer-end { justify-items: end; text-align: right; } }
.footer-langs a { display: inline-flex; align-items: center; min-height: 40px; color: rgb(255 255 255 / 0.72); text-decoration: none; }
.footer-langs a:hover { color: var(--white); text-decoration: underline; }
.footer-langs a[aria-current] { color: var(--white); font-weight: var(--wght-ui); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.1fr 1fr; } }

/* ---------- Guides ---------- */
.guide-hero { padding-block: var(--space-7) calc(var(--sheet-r) + var(--space-7)); }
.guide-hero__inner { display: grid; gap: var(--space-4); justify-items: start; max-width: min(100% - 2 * var(--margin), 52rem); margin-inline: auto; }
@media (min-width: 1000px) { .guide-hero__inner { max-width: min(100% - 2 * var(--margin), 63rem); } .guide-hero h1 { max-width: 20ch; } }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); color: rgb(255 255 255 / 0.72); }
.crumbs li + li::before { content: "›"; margin-right: var(--space-2); color: rgb(255 255 255 / 0.5); }
.crumbs a { color: rgb(255 255 255 / 0.85); }
.answer { width: 100%; max-width: 46rem; padding: var(--space-4) var(--space-5); border: 1px solid rgb(255 255 255 / 0.16); border-left: 3px solid var(--lime-400); border-radius: var(--radius-md); background: rgb(255 255 255 / 0.06); }
.answer p { color: rgb(255 255 255 / 0.9); font-size: var(--fs-body-l); line-height: var(--lh-body-l); max-width: none; }
.answer .answer__label { font-size: var(--fs-label); font-weight: var(--wght-ui); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--lime-400); margin-bottom: var(--space-2); }
.guide-meta { font-size: var(--fs-small); color: rgb(255 255 255 / 0.66); }
.guide { padding-block: var(--space-7) var(--space-8); }
.guide__layout { display: grid; gap: var(--space-6); }
.guide__toc { padding: var(--space-4) var(--space-5); background: var(--surface-alt); border-radius: var(--radius-md); }
.guide__toc ol { margin: var(--space-2) 0 0; padding-left: 1.3em; display: grid; gap: var(--space-1); }
.guide__toc a { color: var(--ink-900); }
@media (min-width: 1000px) {
  .guide__layout { grid-template-columns: 14rem minmax(0, 46rem); gap: var(--space-8); justify-content: center; }
  .guide__toc { position: sticky; top: calc(var(--header-h) + var(--space-5)); align-self: start; padding: 0; background: none; }
  .guide__toc ol { padding-left: 0; list-style: none; border-left: 2px solid var(--line-300); }
  .guide__toc li a { display: block; padding: var(--space-1) var(--space-3); text-decoration: none; color: var(--ink-700); font-size: 0.9375rem; }
  .guide__toc li a:hover { color: var(--ink-900); text-decoration: underline; }
}
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--font-display); font-weight: var(--wght-display); font-synthesis: none; letter-spacing: var(--track-display); font-size: var(--fs-display-3); line-height: var(--lh-display-3); margin: var(--space-7) 0 var(--space-3); scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
.prose h3 { font-size: var(--fs-title); line-height: var(--lh-title); margin: var(--space-5) 0 var(--space-2); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--space-4); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: var(--space-2); }
.prose .best { padding: var(--space-3) var(--space-4); background: var(--surface-alt); border-radius: var(--radius-sm); max-width: none; }
.prose .guide-scope { padding-left: var(--space-4); border-left: 3px solid var(--lime-400); color: var(--ink-700); }
.prose .table-wrap { overflow-x: auto; margin-block: var(--space-4) var(--space-5); }
.prose table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line-300); }
.prose thead th { font-weight: var(--wght-ui); border-bottom-width: 2px; }
.prose tbody th { font-weight: var(--wght-ui); }
.fit { margin-block: var(--space-5); padding: var(--space-5); background: var(--forest-900); color: var(--white); border-radius: var(--radius-md); }
.fit p { color: rgb(255 255 255 / 0.9); max-width: none; margin: 0; }
.fit .fit__label { font-size: var(--fs-label); font-weight: var(--wght-ui); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--lime-400); margin-bottom: var(--space-2); }
.sources { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line-300); }
.sources h2 { font-family: var(--font-text); font-size: var(--fs-title); letter-spacing: 0; margin-top: 0; }
.sources ol { font-size: var(--fs-small); }
.guide-end__grid { display: grid; gap: var(--space-7); }
.guide-end__cta { display: grid; gap: var(--space-4); justify-items: start; }
.guide-end__h { color: var(--ink-700); }
@media (min-width: 1000px) { .guide-end__grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.guide-cards { display: grid; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.guide-card { display: grid; grid-template-columns: 1fr auto; column-gap: var(--space-4); row-gap: var(--space-1); align-items: center; padding: var(--space-4) var(--space-5); background: var(--white); border: 1px solid var(--line-300); border-radius: var(--radius-md); color: var(--ink-900); text-decoration: none; }
.guide-card:hover { border-color: var(--ink-900); }
.guide-card__t { font-weight: var(--wght-ui); }
.guide-card__d { grid-column: 1; font-size: var(--fs-small); color: var(--ink-700); }
.guide-card svg { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; transition: transform 200ms var(--ease-out); }
.guide-card:hover svg { transform: translateX(3px); }
.faq-guides { margin-top: var(--space-7); display: grid; gap: var(--space-4); }
@media (min-width: 800px) { .faq-guides .guide-cards { grid-template-columns: 1fr 1fr; } }
.guide__layout > * { min-width: 0; }

/* German, French and Italian headlines run longer: keep the hero copy above the court line */
html:not([lang="en-GB"]) .hero h1 { font-size: clamp(2.2rem, 1.45rem + 2.7vw, 3.7rem); }
html:not([lang="en-GB"]) .hero .lead { font-size: var(--fs-body); }
/* Narrow desktops (1000–1279 px): the film box is smaller, so the hero copy steps down to stay between header and court line */
@media (min-width: 1000px) and (max-width: 1279px) {
  .hero h1 { font-size: 3rem; }
  .hero .lead, html:not([lang="en-GB"]) .hero .lead { font-size: 0.95rem; }
  html:not([lang="en-GB"]) .hero h1 { font-size: 2.5rem; }
}

/* ---------- Header menu: four dots open the links, nothing else sits next to the button ---------- */
.site-header__inner { position: relative; }
.site-header .menu-btn {
  display: inline-grid; grid-template-columns: repeat(2, 7px); gap: 5px; place-content: center end;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; cursor: pointer; flex: none;
}
.menu-btn span { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--forest-900); }
.menu-btn span { transition: transform .15s ease; }
.menu-btn:hover span, .menu-btn[aria-expanded="true"] span { transform: scale(1.15); }
.site-header .menu-btn:focus-visible { outline: 2px solid var(--forest-900); outline-offset: 2px; }
.site-header .btn { margin-left: auto; }
.site-header .menu-btn { margin-left: var(--space-3); }
.site-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70;
  width: min(280px, calc(100vw - 32px)); padding: var(--space-3);
  background: var(--white); border: 1px solid var(--line-300); border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgb(5 48 5 / 0.14);
}
.site-menu[hidden] { display: none; }
.site-menu__links { list-style: none; margin: 0; padding: 0; display: grid; }
.site-menu__links a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--ink-900); text-decoration: none; font-weight: 500; }
.site-menu__links a:hover { background: var(--soft-100); }
.site-menu .lang-nav { display: block; margin-top: var(--space-2); padding: var(--space-2) var(--space-3) 0; border-top: 1px solid var(--line-300); }
.site-menu .lang-nav ul { gap: var(--space-4); }
@media (max-width: 599px) {
  .site-header__inner { gap: var(--space-2); }
  .site-header .menu-btn { margin-left: var(--space-2); }
}
@media (max-width: 389px) {
  .site-header .btn--small { padding: 0 0.8rem; }
  .wordmark img { width: 100px; }
}
.hero__copy, .hero__act { min-width: 0; }
.hero__act .btn { max-width: 100%; }
@media (max-width: 389px) { .hero__act .btn { white-space: normal; padding-block: 0.6rem; } }
@media (max-width: 389px) { main .btn { white-space: normal; max-width: 100%; padding-block: 0.6rem; } main .cta, main .share { min-width: 0; } }
@media (max-width: 359px) {
  .wordmark img { width: 84px; }
  .site-header .btn--small { padding: 0 0.6rem; font-size: 0.875rem; }
  .site-header .menu-btn { width: 36px; height: 44px; margin-left: 4px; }
  .site-header__inner { gap: 6px; }
}
/* Dots sit close to the button; the tap area overhangs into the page margin so the dots line up with the content edge */
.site-header .menu-btn { place-content: center; margin-left: calc(var(--space-2) - var(--space-5)); margin-right: -12px; }
@media (min-width: 1000px) { .site-header .btn { margin-left: auto; } }
@media (max-width: 599px) { .site-header .menu-btn { margin-left: 0; } }
@media (max-width: 359px) { .site-header .menu-btn { margin-left: 0; margin-right: -8px; } }
/* Android: email for the link until the Play listing is public */
.android-link { margin-top: var(--space-2); font-size: 0.9375rem; }
.android-link a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
