/*
 * Racket Coach landing — prototype. Colours, type and sizes come only from the design system's
 * tokens.css (dark theme); the few literal values are layout (widths, vh, transforms).
 */
@font-face { font-family: 'Silka'; src: url('fonts/Silka-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Silka'; src: url('fonts/Silka-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Silka'; src: url('fonts/Silka-SemiBold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Silka'; src: url('fonts/Silka-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
/* Black Italic is the logo's voice — used only for the lime words. */
@font-face { font-family: 'Silka'; src: url('fonts/Silka-BlackItalic.woff') format('woff'); font-weight: 900; font-style: italic; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--static-fill-canvas);
  color: var(--static-text-base);
  font-family: var(--font-family-body);
  font-size: var(--font-size-body-large);
  line-height: var(--line-height-body-large);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
h1, h2, p, figure, blockquote { margin: 0; }
em {
  font-style: italic;
  font-weight: var(--font-weight-black);
  color: var(--dynamic-text-primary-default);
}

/* DS Button hover is keyed on :enabled, which links never match — mirror it for <a>. */
@media (hover: hover) {
  a.rk-button[data-variant="solid"]:hover { --_bg: var(--_fill-hover); }
  a.rk-button[data-variant="outline"]:hover { --_bg: var(--_alpha-hover); --_border: var(--_stroke-hover); }
}
a.rk-button[data-variant="solid"]:active { --_bg: var(--_fill-pressed); }

/* Nav */
/* The bar spans the window; its content sits in a 1280 px container. */
.nav {
  position: sticky; top: 0; z-index: 20;
  padding: var(--padding-medium) var(--padding-xlarge);
  background: color-mix(in srgb, var(--static-fill-canvas) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: var(--border-width-base) solid var(--static-stroke-subtle);
}
.nav__inner { display: flex; align-items: center; gap: var(--gap-header); max-width: 1280px; margin: 0 auto; }
.nav__brand { display: inline-flex; align-items: center; gap: var(--gap-inline); }
.nav__coach {
  font-weight: var(--font-weight-black); font-style: italic;
  font-size: var(--font-size-headings-h3);
  color: var(--dynamic-text-primary-default);
}
.nav__links { display: flex; gap: var(--gap-header); margin-left: auto; font-size: var(--font-size-body-small); color: var(--static-text-subtle); }
.nav__links a:hover { color: var(--static-text-strong); }
.nav__actions { display: flex; gap: var(--eights-0_5); }

/* Shared section rhythm */
section { padding: var(--eights-15) var(--padding-xlarge); }
/* Section titles speak in the logo's voice: Silka Black Italic, white. */
.section-title {
  text-align: center;
  font-size: var(--font-size-web-headers-h2);
  line-height: var(--line-height-web-headers-h2);
  font-weight: var(--font-weight-black); font-style: italic;
  color: var(--static-text-strong);
}
.section-lead { text-align: center; margin-top: var(--gap-small-header); color: var(--static-text-subtle); }

/* Hero */
.hero { text-align: center; padding-top: var(--eights-16); padding-bottom: var(--eights-4); }
.hero__title {
  font-size: clamp(var(--font-size-web-headers-h1), 7vw, 88px);
  line-height: 1.08;
  font-weight: var(--font-weight-black); font-style: italic;
  color: var(--static-text-strong);
  letter-spacing: -0.01em;
}
.hero__lead { max-width: 680px; margin: var(--gap-header) auto 0; color: var(--static-text-subtle); font-size: var(--font-size-web-headers-h6); line-height: var(--line-height-web-headers-h6); }
.hero__cta { margin-top: var(--eights-5); display: flex; flex-direction: column; align-items: center; gap: var(--gap-list); }

/* Video — pinned for two screens of scroll. JS drives --w/--h/--r (grow to full screen), --btn
   (the button fades in once it fills the screen) and --hide (a mask wipes it away from below). */
.video { height: 300vh; padding: 0; }
.video__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.video__frame {
  --hide: 0;
  position: relative; overflow: hidden;
  width: var(--w, 72vw); height: var(--h, 36vw);
  border-radius: var(--r, 38px);
  background: var(--static-fill-base);
  opacity: calc(1 - var(--hide) * 0.4);
  -webkit-mask-image: linear-gradient(to top, transparent calc(var(--hide) * 120% - 20%), #000 calc(var(--hide) * 120%));
  mask-image: linear-gradient(to top, transparent calc(var(--hide) * 120% - 20%), #000 calc(var(--hide) * 120%));
}
.video__media {
  position: absolute; inset: -6%;
  background: url('assets/hero-tennis-night.webp') center 60% / cover;
  animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -3%); } }
.video__scrim { position: absolute; inset: 0; background: linear-gradient(to top, var(--static-fill-canvas), transparent 55%); }
.video__play {
  /* --btn is inherited from the frame (set by JS); --hov is the hover bump. */
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(calc((0.85 + 0.15 * var(--btn, 0)) * var(--hov, 1)));
  opacity: var(--btn, 0);
  pointer-events: none;
  display: inline-flex; align-items: center; gap: var(--gap-list);
  height: var(--components-control-xxlarge);
  padding: 0 var(--padding-large) 0 var(--padding-medium);
  border: var(--border-width-base) solid var(--static-fill-inverse-alpha-strong);
  border-radius: var(--corner-radius-control-full);
  background: color-mix(in srgb, var(--static-fill-canvas) 55%, transparent);
  backdrop-filter: blur(10px);
  color: var(--static-text-strong);
  font: var(--font-weight-button) var(--font-size-body-large)/1 var(--font-family-body);
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease;
}
.video__frame.is-ready .video__play { pointer-events: auto; }
.video__play:hover { --hov: 1.04; border-color: var(--static-text-base); }
/* Just the white play triangle, no disc behind it. */
.video__play-icon { display: grid; place-items: center; color: var(--static-text-strong); font-size: var(--font-size-22); }
.video__muted { position: absolute; right: var(--padding-large); bottom: var(--padding-large); color: var(--static-text-subtle); font-size: var(--font-size-22); }

/* Trust bar */
/* Pulled up a whole screen so the wheel rises over the video while it is being masked away,
   instead of after a black gap. */
.trust {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: var(--eights-8);
  margin-top: -100vh;
  padding: 0 0 var(--eights-12);
  text-align: center;
}

/* Stats wheel: cards sit on a big circle whose centre is below the section, so only the top arc
   shows and each card tilts along it. JS spreads the cards (--a) and turns the ring on scroll. */
.wheel {
  --R: 700px; --cw: 220px; --ch: 280px;
  position: relative; width: 100%;
  height: calc(var(--ch) + 300px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.wheel__ring { position: absolute; left: 50%; top: calc(var(--ch) / 2 + 24px + var(--R)); width: 0; height: 0; will-change: transform; }
.stat {
  position: absolute; left: 0; top: 0; margin: 0;
  width: var(--cw); height: var(--ch);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: var(--padding-large);
  border-radius: var(--corner-radius-container-large);
  border: var(--border-width-base) solid var(--static-stroke-base);
  background: var(--static-fill-canvas);
  overflow: hidden;
  transform: translate(-50%, -50%) rotate(var(--a, 0deg)) translateY(calc(var(--R) * -1));
}
.stat::before { content: ''; position: absolute; inset: 0; background: var(--img) center / cover; opacity: .75; transition: transform 600ms ease, opacity 300ms ease; }
/* The shade under the number is black, not grey. */
.stat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--static-fill-canvas) 12%, transparent 72%); }
.stat:hover::before { transform: scale(1.08); opacity: .9; }
/* A black-and-white photo that takes its colour back on hover. */
.stat--bw::before { filter: grayscale(1); transition: transform 600ms ease, opacity 300ms ease, filter 400ms ease; }
.stat--bw:hover::before { filter: none; }
.stat > * { position: relative; z-index: 1; }
.stat__num {
  font-size: var(--font-size-web-headers-h1); line-height: var(--line-height-web-headers-h1);
  font-weight: var(--font-weight-black); font-style: italic;
  color: var(--static-text-strong);
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--static-text-base); font-size: var(--font-size-body-small); font-weight: var(--font-weight-label); text-align: left; }

/* Partner logos: a full-width band with its own background; the strip never stops, faded at
   both edges. */
.logos {
  display: flex; flex-direction: column; align-items: center; gap: var(--eights-5);
  width: 100%;
  /* The caption sits inside the top padding, so the bottom adds its height and gap: the logos end
     up the same distance from both edges. */
  padding: var(--eights-9) 0 calc(var(--eights-9) + var(--eights-5) + var(--line-height-labels-small));
  background: var(--static-fill-base);
  border-block: var(--border-width-base) solid var(--static-stroke-subtle);
}
.logos__caption { font-size: var(--font-size-labels-small); font-weight: var(--font-weight-label); color: var(--static-text-subtle); letter-spacing: 0.08em; text-transform: uppercase; }
.logos__viewport {
  width: 100%; overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
/* Spacing is each logo's right margin, not gap, so the −50% loop lands exactly on the copy. */
/* Each half holds the set three times (JS), so 90 s for −50% keeps the old pace. */
.logos__track { display: flex; align-items: center; width: max-content; animation: marquee 90s linear infinite; }
.logos__track > * { margin-right: var(--eights-12); }
.logo { display: block; width: auto; opacity: .92; }

/* Story */
/* Five units of scroll at 105vh (four scenes and two holds, landing.js HOLDS), plus the screen. */
.story { height: 625vh; padding: 0; }
.story__sticky {
  --pad-top: var(--eights-12);
  --gutter: var(--padding-xlarge);
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  padding: var(--pad-top) var(--gutter) var(--padding-xlarge);
}
/* Captions lie over the stage, in the same 1120 px box. Scene 0 is centred on the screen; scenes
   1 and 2 sit centred above the full-width Coach window (JS sets --cap-top); scene 3 takes the
   left third, beside the window and the phone. */
.story__captions {
  position: absolute; z-index: 4; pointer-events: none;
  top: var(--pad-top); bottom: var(--padding-xlarge); left: 50%;
  width: min(1120px, calc(100% - 2 * var(--padding-xlarge)));
  transform: translateX(-50%);
}
.story__caption {
  --dx: 0px; --dy: 16px;
  position: absolute; top: 50%; width: 30%;
  /* All in Black Italic. The later captions are smaller than the intro, so the Coach window can
     be big. */
  font-size: clamp(var(--font-size-web-headers-h2), 4vw, 56px); line-height: 1.1;
  font-weight: var(--font-weight-black); font-style: italic; color: var(--static-text-strong);
  text-align: left;
  opacity: 0; transform: translate(var(--dx), calc(-50% + var(--dy)));
  transition: opacity 400ms ease, transform 500ms cubic-bezier(.2,.7,.2,1);
}
.story__caption[data-scene="0"] { left: 0; width: 100%; text-align: center; font-size: clamp(var(--font-size-web-headers-h2), 5.5vw, 80px); }
/* When a caption wraps, it breaks into even lines ("Gracz widzi / to od razu."). */
.story__caption:not([data-scene="0"]) { text-wrap: balance; }
.story__caption[data-scene="1"], .story__caption[data-scene="2"] {
  top: var(--cap-top, 0px); left: 0; width: 100%; text-align: center;
  transform: translate(var(--dx), var(--dy));
}
.story__caption[data-scene="3"] { left: 0; --dx: -24px; --dy: 0px; }
.story__caption.is-on { opacity: 1; --dx: 0px; --dy: 0px; }
.story__stage { position: relative; width: min(1120px, 100%); height: 100%; margin: 0 auto; }

.chip { position: absolute; left: 50%; top: 50%; z-index: 3; will-change: transform, opacity; }
.chip > * { pointer-events: none; }
/* font-size = tile size, so icon glyphs can size themselves in em. */
.chip--app { width: var(--eights-9); height: var(--eights-9); margin: calc(var(--eights-9) / -2); font-size: var(--eights-9); }

/* App icons as the phone shows them: a squircle per app. Brand colours are the apps' own, not
   tokens; the glyphs (assets/apps, Simple Icons) are masks so they take any colour or gradient. */
.appicon {
  display: grid; place-items: center; flex: none;
  width: 100%; height: 100%;
  border-radius: 22.5%;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.appicon--small { width: var(--components-avatar-medium); height: var(--components-avatar-medium); font-size: var(--components-avatar-medium); box-shadow: none; }
.appicon__glyph {
  width: 60%; height: 60%;
  background: #fff;
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
}
.appicon--whatsapp { background: #25D366; --glyph: url('assets/apps/whatsapp.svg'); }
/* Google Calendar and Sheets (2026), Messenger (2025) and Telegram logos (Wikimedia) keep their
   own colours: images on a white tile, not masks. */
.appicon--sheets, .appicon--calendar, .appicon--messenger, .appicon--telegram { background: #fff; }
.appicon__logo { width: 58%; height: auto; }
.appicon--sheets .appicon__logo { width: 64%; }
.appicon--messenger .appicon__logo { width: 62%; }
.appicon--telegram .appicon__logo { width: 66%; }
/* iOS Phone and Messages (Wikimedia): the whole icon is the image, cropped to the tile. */
.appicon--image { background: none; overflow: hidden; }
.appicon--image img { display: block; width: 100%; height: 100%; }
.chip--msg {
  display: flex; align-items: center; gap: var(--gap-list);
  width: max-content; max-width: 280px;
  padding: var(--padding-small) var(--padding-medium) var(--padding-small) var(--padding-small);
  border-radius: var(--corner-radius-container-medium) var(--corner-radius-container-medium) var(--corner-radius-container-medium) var(--eights-0_5);
  background: var(--static-fill-subtle);
  font-size: var(--font-size-body-small); line-height: var(--line-height-body-small);
  color: var(--static-text-strong);
  translate: -50% -50%;
}
.chip--msg > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.chip--msg b { font-size: var(--font-size-labels-small); color: var(--static-text-subtle); font-weight: var(--font-weight-label); }

/* Coach window: the real app screens. The messages shot fades in over the calendar (JS sets
   its opacity); a plain black shadow, no glow. */
.coach {
  position: absolute; left: 50%; top: 50%;
  /* Screen wide. A big screen stops where the window and its caption would outgrow the height,
     never below the shots' 1440 px: they are 2x, so they stay sharp. */
  width: min(calc(100vw - 2 * var(--gutter)), max(1440px, calc((100vh - 240px) * 1440 / 820))); aspect-ratio: 1440 / 820;
  border-radius: var(--corner-radius-container-medium);
  border: var(--border-width-base) solid var(--static-stroke-base);
  background: var(--static-fill-canvas);
  box-shadow: 0 40px 100px -20px #000;
  overflow: hidden;
  will-change: transform, opacity;
}
.coach__screen { position: absolute; inset: 0; }
.coach__screen > img { width: 100%; height: 100%; display: block; object-fit: cover; }
#coachMessages { opacity: 0; }
/* A training or chat step landing on the empty screen: a window onto the full shot at the
   item's place (JS sets place, background and progress). */
.coach__item { position: absolute; background-repeat: no-repeat; opacity: 0; will-change: opacity, transform; }

/* Phone: the Racket app's chat, ported 1:1. Sizes are the app's px ÷ 10 in em, so at 10 px the
   phone is real size (375 × 812, bubble text 14 px on 20 px lines); JS scales it down to fit the
   window. Colours are the app's: grey-80 sheet, grey-70 bubbles and input, lime-80 for your own
   messages. */
.phone { position: absolute; left: 50%; top: 50%; font-size: 10px; will-change: transform, opacity; }
.m-screen {
  position: relative; overflow: hidden;
  width: 37.5em; height: 81.2em;
  border-radius: 4.8em;
  background: #000;
  box-shadow: 0 0 0 0.12em var(--grey-70), 0 3em 6em rgba(0, 0, 0, .45);
  color: var(--static-text-strong);
  font-family: var(--font-family-body);
  /* The app's text line height, unitless: the page's fixed 24 px would set every line of a
     message in this tiny type 24 px apart. */
  line-height: 1.428;
}
.phone .mi { font-family: 'Material Icons'; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; width: 1em; height: 1em; overflow: hidden; flex: none; }
.phone .s16 { font-size: 1.6em; }
.phone .s20 { font-size: 2em; }
.phone .rot { transform: rotate(90deg); }
.m-sbar { position: absolute; top: 0; left: 0; right: 0; height: 4.7em; display: flex; align-items: center; justify-content: space-between; padding: 0 2.6em 0 3.2em; z-index: 7; }
.m-sb-t { font-size: 1.5em; font-weight: var(--font-weight-semibold); }
.m-sb-i { display: flex; gap: .4em; align-items: center; }
.m-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; top: 5.6em;
  display: flex; flex-direction: column;
  padding: .8em 1.6em 5em;
  background: var(--grey-80);
  border: .1em solid var(--grey-70); border-bottom: 0;
  border-radius: 2.4em 2.4em 0 0;
  box-shadow: 0 -.4em 1.2em rgba(0, 0, 0, .16);
}
.m-top { display: flex; align-items: center; gap: .8em; padding-bottom: 1.2em; border-bottom: .1em solid var(--grey-70); }
.m-ib { width: 4.8em; height: 4.8em; border-radius: 50%; display: grid; place-items: center; flex: none; }
.m-top .m-ph { width: 4em; height: 4em; }
.m-top-t { display: flex; flex-direction: column; }
.m-top-t b { font-size: 1.6em; font-weight: var(--font-weight-semibold); line-height: 1.4; }
.m-top-t span { font-size: 1.2em; color: var(--grey-40); line-height: 1.5; }
.m-msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.6em; overflow: hidden; padding-top: 1.2em; }
.m-day { display: flex; flex-direction: column; gap: 1.2em; }
.m-day-t { align-self: center; font-size: 1.2em; font-weight: var(--font-weight-medium); line-height: 1.5; }
.m-g { display: flex; align-items: flex-end; gap: .8em; }
.m-g.me { justify-content: flex-end; gap: 1.2em; }
.m-avb { position: relative; width: 4.4em; height: 4.4em; flex: none; }
.m-ph { width: 4em; height: 4em; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--brand-lime-100); color: var(--brand-lime-40); font-size: 1em; }
.m-avb .m-ph { position: absolute; left: 0; top: 0; font-size: 1.3em; width: 3.1em; height: 3.1em; font-weight: var(--font-weight-semibold); }
/* user_avatar_widget's fallback: account_circle at 20 px (2em; the avatar sets its own 1.3em). */
.m-ph .mi { font-size: 2em; }
.m-avb .m-ph .mi { font-size: calc(2em / 1.3); }
.m-ph.photo { background: none; }
.m-ph.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.42); }
.m-g-c { display: flex; flex-direction: column; gap: .8em; padding-bottom: .4em; align-items: flex-start; min-width: 0; }
.m-g.me .m-g-c { align-items: flex-end; }
.m-g-h { display: flex; align-items: center; gap: .8em; }
.m-g-h span { font-size: 1.4em; color: var(--grey-40); line-height: 1.428; }
.m-dot { width: .4em; height: .4em; border-radius: 50%; background: var(--grey-60); flex: none; }
/* As in messages_group_widget: each bubble is rounded on its open side only, and the group clips
   the other side, so a lone bubble ends up rounded all round. */
.m-g-b { display: flex; flex-direction: column; gap: .4em; align-items: flex-start; border-radius: 1.2em 0 0 1.2em; overflow: hidden; }
.m-g.me .m-g-b { align-items: flex-end; border-radius: 0 1.2em 1.2em 0; }
.m-b { padding: .5em 1.2em; background: var(--grey-70); border-radius: 0 1.2em 1.2em 0; }
/* message_widget: Silka 14 / 1.428, normal weight. A block, so each line is exactly 1.428 of the
   text: inline, the bubble's smaller strut made every line taller than in the app. */
.m-b span { display: block; font-size: 1.4em; line-height: 1.428; font-weight: var(--font-weight-regular, 400); }
.m-g.me .m-b { background: var(--brand-lime-80); border-radius: 1.2em 0 0 1.2em; }
/* The training, as the coach's chat shows it: a card under the day. */
.m-card {
  align-self: center; display: flex; align-items: center; gap: 1.2em;
  padding: 1.2em 1.6em; border-radius: 1.2em;
  background: var(--grey-90); border: .1em solid var(--grey-70);
  color: var(--brand-lime-40);
}
.m-card > span { display: flex; flex-direction: column; color: var(--static-text-strong); }
.m-card b { font-size: 1.4em; font-weight: var(--font-weight-semibold); line-height: 1.428; }
.m-card span span { font-size: 1.3em; color: var(--grey-40); line-height: 1.4; }
.m-inp { padding-top: 2em; }
.m-minp { min-height: 4.4em; border-radius: 2.4em; background: var(--grey-70); padding: 1.2em 1.2em 1.2em 1.6em; display: flex; align-items: center; justify-content: space-between; gap: .8em; }
.m-minp span { font-size: 1.4em; color: var(--grey-40); line-height: 1.428; }
.m-hind { position: absolute; bottom: .8em; left: 50%; transform: translateX(-50%); width: 13.4em; height: .5em; border-radius: 1em; background: #fff; z-index: 7; }
/* Before it lands, the training and Anna's reply aren't there yet. */
#phoneNew, #phoneReply { opacity: 0; transform: translateY(1.6em) scale(.96); transition: opacity 300ms ease, transform 400ms cubic-bezier(.2,.9,.3,1.2); }
.phone.is-landed #phoneNew, .phone.is-replied #phoneReply { opacity: 1; transform: none; }

.ticket {
  position: absolute; left: 0; top: 0; z-index: 5;
  display: inline-flex; align-items: center; gap: var(--gap-inline);
  padding: var(--padding-small) var(--padding-medium);
  border-radius: var(--corner-radius-container-small);
  background: var(--static-fill-base); color: var(--static-text-strong);
  border: var(--border-width-base) solid var(--static-stroke-base);
  box-shadow: 0 16px 40px #000;
  font-size: var(--font-size-labels-small); font-weight: var(--font-weight-label);
  opacity: 0; pointer-events: none;
  will-change: transform, opacity;
}
.ticket i { font-size: var(--font-size-18); color: var(--dynamic-text-primary-default); }

/* Features: a two-column bento. Each card is a line over its real Coach screen, which runs off
   the card's right and bottom edges. The shots are cut so their content starts 24 px in. */
.features__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--eights-1_5);
  max-width: 1120px; margin: var(--gap-section) auto 0;
}
.feature {
  display: flex; flex-direction: column; gap: var(--eights-3);
  padding: var(--eights-3) 0 0 var(--eights-3);
  border-radius: var(--corner-radius-container-large);
  background: var(--static-fill-base);
  overflow: hidden;
}
.feature__text { display: flex; flex-direction: column; gap: var(--eights-1); padding-right: var(--eights-3); }
.feature h3 { margin: 0; font-size: var(--font-size-web-headers-h5); line-height: 1.3; font-weight: var(--font-weight-semibold); color: var(--static-text-strong); }
.feature p { margin: 0; font-size: var(--font-size-body-small); line-height: 1.5; color: var(--static-text-subtle); }
/* A strip of the screen from its top-left corner, cut by the card's right and bottom edges. */
.feature__shot {
  display: block; width: 115%; max-width: none; height: 280px; margin-top: auto;
  object-fit: cover; object-position: left top;
  border-top-left-radius: var(--corner-radius-container-medium);
}
/* The notifications card: pushes on a phone, as in the Racket app's own picture of them. Sizes
   are in em and the scene's font size follows the card's width, so it scales as one piece
   (1em = 16 px on a desktop card). The colours are that picture's, not tokens. */
.feature__push {
  position: relative; overflow: hidden; container-type: inline-size;
  height: 280px; margin-top: auto;
  border-top-left-radius: var(--corner-radius-container-medium);
  background: #0E0F0C;
}
.push-scene { position: absolute; inset: 0; font-size: calc(100cqw / 32.75); }
.push-phone {
  position: absolute; left: 50%; top: 1.25em; width: 23em; height: 30em; margin-left: -11.5em;
  border: .45em solid #15161C; border-radius: 3.4em;
  box-shadow: 0 0 0 .12em #4A4C5A;
  background:
    radial-gradient(60% 40% at 8% 2%, #E9E4E6, transparent),
    radial-gradient(70% 50% at 95% 8%, #1F97CF, transparent),
    radial-gradient(60% 40% at 0% 42%, #F2708E, transparent),
    radial-gradient(70% 45% at 25% 70%, #B02FD0, transparent),
    #3B7FE0;
}
/* The island. */
.push-phone::before {
  content: ""; position: absolute; left: 50%; top: .7em;
  width: 6.8em; height: 1.9em; margin-left: -3.4em;
  border-radius: 1em; background: #000;
}
.push {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: .8em; align-items: center;
  padding: .85em 1em; border-radius: 1.6em;
  color: #111; text-align: left;
  box-shadow: 0 .4em 1.4em rgba(0, 0, 0, .28);
}
.push--main { top: 5em; width: 29.5em; background: linear-gradient(100deg, #D9D2D8, #B7D0D8); }
.push--next { top: 11.4em; width: 27.5em; background: linear-gradient(100deg, #C2B8D6, #A9C3E4); }
.push img { display: block; width: 2.9em; height: 2.9em; border-radius: .7em; }
.push b { display: block; font-size: .95em; line-height: 1.3; font-weight: var(--font-weight-semibold); }
.push span { display: block; font-size: .875em; line-height: 1.35; }
.push small { align-self: start; font-size: .75em; color: #4F6372; white-space: nowrap; }
/* "I więcej": the rest of what Coach does, as a calm row of filled icons and words (the quotes
   strip right below already scrolls). The items come in one after another when the row scrolls
   into view (.reveal sets is-in; --i is each one's place). */
.more { display: flex; flex-direction: column; align-items: center; gap: var(--eights-3); margin-top: var(--eights-7); }
.more__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--eights-2) var(--eights-5); max-width: 1120px; list-style: none; padding: 0; margin: 0; }
.more__list li {
  display: inline-flex; align-items: center; gap: var(--eights-1_5);
  font-size: var(--font-size-web-headers-h6); font-weight: var(--font-weight-semibold); color: var(--static-text-base); white-space: nowrap;
  opacity: 0; transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i) * 90ms);
}
.more.is-in .more__list li { opacity: 1; transform: none; }
.more__list i { font-size: var(--eights-3); color: var(--dynamic-text-primary-default); }

/* Quotes — an endless, pausable strip */
/* The strip is far wider than the screen; clip it here or mobile browsers widen the whole page. */
.quotes { padding-left: 0; padding-right: 0; overflow: hidden; }
/* Spacing is each card's right margin, so the −50% loop lands exactly on the copy (JS sets how
   many copies and the duration). */
.quotes__track {
  display: flex; width: max-content;
  margin-top: var(--eights-7);
  animation: marquee 40s linear infinite;
}
.quotes__track:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.quote {
  display: grid; grid-template-rows: auto 1fr auto; gap: var(--padding-medium);
  width: 300px; padding: var(--padding-medium); margin-right: var(--gap-grid);
  border-radius: var(--corner-radius-container-large);
  background: var(--static-fill-base);
  border: var(--border-width-base) solid var(--static-stroke-subtle);
  transition: transform 300ms ease, border-color 300ms ease;
}
.quote:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--static-stroke-strong); }
/* Photo slot: the portrait fills it edge to edge. */
.quote__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--corner-radius-container-medium);
  background: var(--static-fill-subtle);
}
.quote__photo img { --zoom: 1; display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom)); transition: transform 400ms ease; }
/* Some portraits arrive pre-cut to a circle with transparent corners: zoom by √2 so the circle's
   inner square fills the slot and the corners never show. */
.quote__photo img[data-round] { --zoom: 1.42; }
.quote:hover .quote__photo img { transform: scale(calc(var(--zoom) * 1.05)); }
.quote blockquote { font-size: var(--font-size-web-headers-h6); line-height: var(--line-height-web-headers-h6); font-weight: var(--font-weight-medium); color: var(--static-text-strong); }
.quote figcaption { display: flex; flex-direction: column; font-size: var(--font-size-body-small); color: var(--static-text-subtle); }
.quote figcaption b { color: var(--static-text-base); font-weight: var(--font-weight-label); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: var(--gap-grid); margin-top: var(--eights-6); }
.plan {
  display: flex; flex-direction: column; gap: var(--gap-list);
  padding: var(--padding-large);
  border-radius: var(--corner-radius-container-large);
  background: var(--static-fill-base);
  /* Transparent, so both plans stay the same size. */
  border: var(--border-width-strong) solid transparent;
  transition: transform 300ms ease, border-color 300ms ease;
}
.plan:hover { transform: translateY(-4px); }
/* The yearly plan gets a border; lime is kept for the one action, "Zacznij za darmo" under them. */
.plan--best { border-color: var(--static-stroke-base); }
.plan--best:hover { border-color: var(--static-stroke-strong); }
.plan__name { display: flex; align-items: center; gap: var(--gap-inline); color: var(--static-text-subtle); font-weight: var(--font-weight-label); }
.plan__price { color: var(--static-text-subtle); white-space: nowrap; }
.plan__price b { font-size: var(--font-size-web-headers-h3); line-height: var(--line-height-web-headers-h3); font-weight: var(--font-weight-heading); color: var(--static-text-strong); margin-right: var(--eights-0_5); }
.plan__price s { margin-right: var(--gap-inline); font-size: var(--font-size-web-headers-h5); color: var(--static-text-subtle); text-decoration-thickness: 2px; }
.plan__billed { margin-top: calc(var(--gap-list) * -1); font-size: var(--font-size-others-caption); color: var(--static-text-subtle); }
.plan__trial { display: flex; align-items: center; gap: var(--eights-0_5); font-size: var(--font-size-body-small); color: var(--static-text-base); }
/* The plans only inform (2026-11-16); the one way in sits under them, centred like the hero's. */
.pricing__cta { margin-top: var(--eights-5); display: flex; flex-direction: column; align-items: center; gap: var(--gap-list); }
.pricing__note { font-size: var(--font-size-body-small); color: var(--static-text-subtle); }

/* FAQ */
.faq__list { max-width: 720px; margin: var(--eights-6) auto 0; }
.faq details { border-bottom: var(--border-width-base) solid var(--static-stroke-subtle); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--gap-header);
  padding: var(--padding-large) 0;
  cursor: pointer; list-style: none;
  font-size: var(--font-size-web-headers-h6); font-weight: var(--font-weight-medium); color: var(--static-text-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--static-text-strong); transition: transform 300ms ease; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 0 var(--padding-large); color: var(--static-text-subtle); }
.faq details[open] p { animation: drop 300ms ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* Closing CTA */
/* The net photo is the section's background: the section is as tall as the title and button
   plus 192 px above and below, and the photo covers it from its top edge down, its black top
   softly blended into the page. JS settles a slight zoom as it scrolls in (--lift), anchored at
   the top too. */
.final { --lift: 0; position: relative; padding: 0; overflow: hidden; text-align: center; }
.final__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%);
  mask-image: linear-gradient(to bottom, transparent, #000 10%);
  transform-origin: 50% 0;
  transform: scale(calc(1.06 - 0.06 * var(--lift)));
}
.final__content {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: var(--eights-5);
  padding: var(--eights-24) var(--padding-xlarge);
}
.final__title { font-size: clamp(var(--font-size-web-headers-h2), 6vw, 72px); line-height: 1.1; font-weight: var(--font-weight-black); font-style: italic; color: var(--static-text-strong); text-shadow: 0 2px 24px #000; }

.footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-header);
  padding: var(--padding-xlarge);
  border-top: var(--border-width-base) solid var(--static-stroke-subtle);
  font-size: var(--font-size-body-small); color: var(--static-text-subtle);
}
.footer nav { display: flex; flex-wrap: wrap; gap: var(--gap-header); margin-right: auto; }
.footer a:hover { color: var(--static-text-strong); }

/* Full video with sound */
.player {
  width: min(1100px, 92vw); padding: 0; overflow: hidden;
  border: 0; border-radius: var(--corner-radius-container-large);
  background: var(--static-fill-base); color: var(--static-text-strong);
}
/* The sign-up popup: the app's form in a frame, as tall as the form says it is (landing.js). */
.signup {
  width: min(440px, calc(100vw - 2 * var(--padding-medium))); max-height: calc(100dvh - 2 * var(--padding-medium));
  padding: 0; border: 0; overflow: auto;
  border-radius: var(--corner-radius-container-large);
  background: var(--static-fill-canvas);
  box-shadow: 0 40px 100px -20px #000;
}
.signup::backdrop { background: var(--static-shadow-scrim); backdrop-filter: blur(6px); }
.signup[open] { animation: zoom 300ms cubic-bezier(.2,.9,.3,1.1); }
.signup__frame { display: block; width: 100%; height: 420px; border: 0; opacity: 0; color-scheme: dark; transition: opacity 200ms ease; }
.signup.is-ready .signup__frame { opacity: 1; }
.signup__spinner {
  position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px;
  border: 3px solid var(--dynamic-fill-primary-default); border-top-color: transparent; border-radius: 50%;
  animation: signup-spin 800ms linear infinite;
}
.signup.is-ready .signup__spinner { display: none; }
@keyframes signup-spin { to { transform: rotate(360deg); } }
.player::backdrop { background: var(--static-shadow-scrim); backdrop-filter: blur(6px); }
.player[open] { animation: zoom 300ms cubic-bezier(.2,.9,.3,1.1); }
@keyframes zoom { from { opacity: 0; transform: scale(.94); } }
.player__media { aspect-ratio: 16 / 9; background: url('assets/hero-tennis-night.webp') center 60% / cover; }
.player__bar { display: flex; align-items: center; gap: var(--gap-header); padding: var(--padding-medium) var(--padding-large); font-size: var(--font-size-22); }
.player__progress { flex: 1; height: 4px; border-radius: var(--radius-full); background: var(--static-fill-strong); overflow: hidden; }
.player__progress span { display: block; height: 100%; width: 0; background: var(--dynamic-fill-primary-default); }
.player[open] .player__progress span { animation: progress 60s linear forwards; }
@keyframes progress { to { width: 100%; } }
.player__close {
  position: absolute; top: var(--padding-medium); right: var(--padding-medium);
  display: grid; place-items: center;
  width: var(--components-control-medium); height: var(--components-control-medium);
  border: 0; border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--static-fill-canvas) 60%, transparent);
  color: var(--static-text-strong); font-size: var(--font-size-22); cursor: pointer;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Phone width: tighter gutters, the Coach window loses its labels, the phone shrinks. */
@media (max-width: 767.98px) {
  .wheel { --R: 440px; --cw: 160px; --ch: 210px; height: calc(var(--ch) + 150px); }
  .stat { padding: var(--padding-medium); }
  .nav { padding: var(--padding-small) var(--padding-medium); }
  .nav__inner { gap: var(--gap-inline); }
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__brand img { width: 64px; height: auto; }
  .nav__coach { font-size: var(--font-size-16); }
  /* Mobile tokens make every control 48 px tall; two of them don't fit beside the logo. */
  .nav .rk-button { --_h: var(--eights-4); --_px: var(--eights-1_5); --_font-size: var(--font-size-labels-small); }
  section { padding: var(--eights-10) var(--padding-medium); }
  .hero { padding-top: var(--eights-10); }
  /* No room for side by side: after the centred intro, captions sit on top, the picture below. */
  .story__sticky { --pad-top: var(--eights-10); --gutter: var(--padding-medium); padding: var(--pad-top) var(--gutter) var(--padding-medium); }
  .story__captions { width: calc(100% - 2 * var(--padding-medium)); }
  .story__caption[data-scene="1"], .story__caption[data-scene="2"], .story__caption[data-scene="3"] {
    top: 0; left: 0; right: 0; width: 100%; text-align: center;
    --dx: 0px; --dy: 16px; transform: translate(var(--dx), var(--dy));
  }
  .story__caption.is-on[data-scene] { --dy: 0px; }
  .chip--app { width: var(--eights-7); height: var(--eights-7); margin: calc(var(--eights-7) / -2); font-size: var(--eights-7); }
  .chip--msg { max-width: 180px; font-size: var(--font-size-12); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .features__grid { grid-template-columns: minmax(0, 1fr); }
  .feature__shot, .feature__push { height: 220px; }
  .final__photo { object-position: 55% 0; }
  .quote { width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .video__media, .quotes__track, .logos__track { animation: none; }
  .more__list li { transition: none; opacity: 1; transform: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* Scrollbars, as in the app (2026-11-16): a thin grey bar from the design system, no track. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: var(--dynamic-stroke-neutral-hover);
  border: 2px solid transparent;
  border-radius: 9999px;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--dynamic-stroke-neutral-strong-hover); }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--dynamic-stroke-neutral-hover) transparent; }
}
