:root {
  color-scheme: light;
  --ink: #081e35;
  --muted: #455b72;
  --blue: #007aff;
  --action: #005dc7;
  --sky: #66b2ff;
  --yellow: #ffcc00;
  --line: #dce6f1;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #f5f9ff;
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.shell { width: min(100% - 72px, 1240px); margin-inline: auto; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header { min-height: 80px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 780; text-decoration: none; letter-spacing: -.035em; }
.brand img { border-radius: 24%; }
nav { display: flex; align-items: center; gap: clamp(14px, 4vw, 32px); font-size: .88rem; font-weight: 680; }
nav a { text-decoration: none; }
.nav-download { border: 1px solid #c9d9eb; padding: 10px 16px; border-radius: 99px; white-space: nowrap; }
nav a:hover, .footer a:hover, .text-link:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(28px, 5vw, 76px); padding-block: 40px 66px; }
.eyebrow, .step { font-size: .72rem; font-weight: 800; line-height: 1.4; letter-spacing: .13em; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #16538b; }
.ball { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); flex: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.065em; }
h1 { font-size: clamp(4rem, 8.4vw, 8rem); line-height: .89; margin-block: 23px 24px; }
h1 em { color: var(--action); font-style: normal; }
h2 { font-size: clamp(2.65rem, 5.2vw, 5.1rem); line-height: .98; margin-block: 12px 20px; max-width: 14ch; }
.intro { color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.19rem); line-height: 1.55; max-width: 38ch; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 20px; margin-top: 26px; }
.store-badge { display: inline-block; border-radius: 8px; }
.text-link { font-size: .88rem; font-weight: 750; text-decoration: none; }
.note { margin-top: 14px; color: var(--muted); font-size: .82rem; }

.court { position: relative; isolation: isolate; aspect-ratio: 1.08; overflow: hidden; border-radius: clamp(20px, 3vw, 38px); background: linear-gradient(145deg, #e2f4ff 5%, var(--sky) 76%, #4199f3); }
.court-lines { position: absolute; inset: 13% -11% 4% 12%; transform: rotate(-16deg); border: 1px solid #ffffff9c; border-radius: 2px; }
.court-lines::before { content: ""; position: absolute; inset: 0 15%; border-inline: 1px solid #ffffff9c; }
.court-lines::after { content: ""; position: absolute; inset: 28% 15%; border-block: 1px solid #ffffff9c; }
.court-lines span { position: absolute; inset: 28% 50%; border-left: 1px solid #ffffff9c; }
.phone, .watch { position: absolute; overflow: hidden; box-shadow: 0 18px 42px #0a407953; border: 1px solid #ffffff9c; border-radius: clamp(9px, 2vw, 23px); }
.phone { width: 37%; left: 20%; top: 5%; transform: rotate(-8deg); }
.watch { width: 34%; left: 57%; top: 31%; transform: rotate(11deg); }
.court figcaption { position: absolute; bottom: 4%; right: 4%; display: flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 99px; background: #081e35; color: #fff; font-size: clamp(.6rem, 1.2vw, .79rem); font-weight: 700; }
.court figcaption .ball { width: 7px; height: 7px; }

.features { padding-block: clamp(48px, 7vw, 90px); background: #fff; border-block: 1px solid var(--line); }
.feature-grid, .gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.feature-grid { margin-top: 30px; }
.feature { display: flex; flex-direction: column; padding: clamp(16px, 2.3vw, 29px) clamp(14px, 2vw, 27px) 0; border-radius: 24px; overflow: hidden; background: #edf6ff; }
.feature:nth-child(2) { background: #092440; color: #fff; }
.feature:nth-child(3) { background: #e1eeff; }
.step { color: #235f94; }
.feature:nth-child(2) .step { color: #a5d5ff; }
.feature h3 { margin-top: 9px; font-size: clamp(1.38rem, 2.6vw, 2.25rem); }
.feature p { margin-block: 9px 21px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.feature:nth-child(2) p { color: #d0e5fb; }
.screen { margin-top: auto; display: flex; justify-content: center; height: clamp(164px, 21vw, 270px); }
.screen img { width: min(66%, 195px); height: auto; align-self: flex-start; border-radius: 15px 15px 0 0; box-shadow: 0 7px 24px #15396130; }
.score { align-items: end; padding-bottom: 17px; }
.score img { width: auto; height: 100%; max-width: 91%; align-self: end; object-fit: contain; border-radius: 15px; }

.examples { padding-block: clamp(48px, 7vw, 90px); border-bottom: 1px solid var(--line); }
.example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.example { padding: clamp(16px, 2vw, 24px); border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.example h3 { margin-block: 8px; font-size: 1.28rem; letter-spacing: -.04em; }
.example p { color: var(--muted); font-size: .92rem; line-height: 1.55; }

.gallery { padding-block: clamp(48px, 7vw, 90px); }
.gallery-copy { display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: 6px 28px; }
.gallery-copy .eyebrow { grid-column: 1 / -1; }
.gallery-copy h2 { margin-bottom: 0; }
.gallery-grid { margin-top: 30px; }
.gallery-image { display: grid; place-items: center; padding: clamp(12px, 2vw, 24px); background: #e8f2ff; border-radius: 24px; }
.gallery-image img { height: clamp(225px, 34vw, 405px); width: auto; object-fit: contain; border-radius: 13px; box-shadow: 0 7px 24px #15396125; }
.gallery figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: baseline; margin: 12px 4px 0; font-size: .9rem; font-weight: 740; }
.gallery figcaption span { color: var(--muted); font-size: .78rem; font-weight: 500; }
.download { padding-bottom: 52px; }
.download-panel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(24px, 5vw, 60px); background: #092440; border-radius: clamp(20px, 3vw, 32px); color: white; }
.download-panel .eyebrow { color: #a5d5ff; }
.download-panel p:not(.eyebrow) { color: #d0e5fb; }
.download-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.store-placeholder { display: grid; align-content: center; gap: 2px; min-height: 48px; padding: 5px 13px; border: 1px dashed #89a4bf; border-radius: 8px; font-size: .83rem; }
.store-placeholder span { font-size: .73rem; }
.footer { flex-wrap: wrap; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: .83rem; color: var(--muted); }
.footer > a:last-child { text-decoration: none; }

[data-screenshot] { cursor: zoom-in; }
.screen:focus-visible { outline-offset: -4px; }
body:has(.screenshot-viewer[open]) { overflow: hidden; }
.screenshot-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: #081525;
  color: white;
}
.screenshot-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
.screenshot-close {
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid #7893b2;
  border-radius: 50%;
  background: #173452;
  color: inherit;
  font: 1.65rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.screenshot-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.screenshot-full { place-self: center; max-height: 100%; object-fit: contain; }

@media (max-width: 850px) {
  .shell { width: calc(100% - 48px); }
  .hero { gap: 22px; }
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .header { min-height: 66px; }
  .nav-feature { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 30px 44px; gap: 25px; }
  h1 { font-size: clamp(3.8rem, 14vw, 6.2rem); }
  .court { width: min(100%, 500px); }
  .feature-grid, .example-grid, .gallery-copy { grid-template-columns: 1fr; }
  .gallery-copy { gap: 12px; }
  .gallery-copy h2 { margin-top: 0; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-image { border-radius: 16px; }
  .gallery-image img { height: auto; width: min(100%, 160px); }
  .screen { height: 215px; }
}
@media (max-width: 350px) {
  .brand { font-size: .84rem; }
  .nav-download { font-size: .77rem; padding-inline: 10px; }
}
