:root {
  color-scheme: light;
  --court: #2B6FD6;
  --court-edge: #1E4FA3;
  --court-line: rgba(255, 255, 255, 0.9);
  --action: #D8FF3A;
  --ink: #0F172A;
  --muted: #4B5563;
  --link: #1A4FB8;
  --bg: #EEF1F5;
  --surface: #FFFFFF;
  --line: #CBD5E1;
  --page: 720px;
  --radius-card: 20px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

@font-face {
  font-family: "Space Grotesk";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/space-grotesk-500.ttf") format("truetype");
}

@font-face {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/space-grotesk-700.ttf") format("truetype");
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 24px 16px 48px;
  background: var(--bg);
  color: var(--ink);
  font: 500 17px/1.55 "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.home { --page: 1040px; }

main { max-width: var(--page); margin: 0 auto; }

img, video { max-width: 100%; height: auto; }

a { color: var(--link); }
a:hover { color: var(--court-edge); }

h1 { font-size: 32px; line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.8px; }
h2 { font-size: 24px; line-height: 1.2; margin: 0 0 20px; letter-spacing: -0.4px; }
h3 { font-size: 18px; margin: 24px 0 4px; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin: 6px 0; }

.note { color: var(--muted); font-size: 15px; }

/* Header and footer shared by every page */

.site-header {
  max-width: var(--page);
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.site-header .wordmark img { width: 40px; height: 40px; border-radius: 10px; }

.site-header nav a { margin-left: 16px; text-decoration: none; font-weight: 700; }

.site-footer {
  max-width: var(--page);
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a { color: var(--muted); }

.site-footer .note { flex-basis: 100%; font-size: 13px; margin-top: 4px; }

/* Home page */

main > section + section { margin-top: 64px; }

.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 8px 0 0;
}

@media (min-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 24px; }
}

.hero h1 { font-size: 34px; }

@media (min-width: 560px) { .hero h1 { font-size: 44px; } }

.hero .tagline { font-size: 20px; line-height: 1.4; color: var(--muted); margin-bottom: 16px; }

.hero .lead { max-width: 560px; margin-bottom: 28px; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.badge img { height: 56px; width: auto; display: block; }

.button-primary,
.button-secondary {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.button-primary { background: var(--action); color: var(--ink); }
.button-primary:hover { background: var(--ink); color: var(--action); }

.button-secondary { border: 2px solid var(--court); color: var(--court); padding: 12px 22px; }
.button-secondary:hover { background: var(--court); color: #fff; }

.hero-video { margin: 0; text-align: center; }

.hero-video video {
  display: block;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 480 / 854;
  margin: 0 auto;
  background: var(--court);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-video figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }

.button-video {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.button-video:hover { background: var(--ink); color: #fff; }

/* Cards drawn the way the app draws them: white, rounded, no hairline borders. */

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 20px;
}

.formats { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }

@media (min-width: 560px) { .formats { grid-template-columns: 1fr 1fr; } }

@media (min-width: 960px) { .formats { grid-template-columns: repeat(4, 1fr); } }

.formats li { margin: 0; }

.court-strip {
  height: 64px;
  border-radius: 12px;
  margin-bottom: 16px;
  background-color: var(--court);
  border: 2px solid var(--court-edge);
  background-image:
    linear-gradient(to right, transparent calc(50% - 1.5px), var(--court-line) calc(50% - 1.5px), var(--court-line) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(to bottom, transparent calc(50% - 1px), rgba(255, 255, 255, 0.8) calc(50% - 1px), rgba(255, 255, 255, 0.8) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to right, transparent calc(24% - 1px), rgba(255, 255, 255, 0.8) calc(24% - 1px), rgba(255, 255, 255, 0.8) calc(24% + 1px), transparent calc(24% + 1px)),
    linear-gradient(to right, transparent calc(76% - 1px), rgba(255, 255, 255, 0.8) calc(76% - 1px), rgba(255, 255, 255, 0.8) calc(76% + 1px), transparent calc(76% + 1px));
}

.formats a { display: block; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; margin-bottom: 6px; }

.formats a:hover { color: var(--link); }

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

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

@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.steps li { margin: 0; counter-increment: step; padding: 24px 20px; }

.steps li::before {
  content: counter(step);
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--court);
  margin-bottom: 12px;
}

.steps strong { display: block; font-size: 18px; margin-bottom: 6px; }

.steps li span { color: var(--muted); font-size: 15px; }

.narrow { max-width: 720px; }

.faq h3 { margin-top: 24px; }

.faq p { color: var(--muted); }

/* Article pages */

.breadcrumb { font-size: 15px; color: var(--muted); margin-bottom: 12px; }

.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }

.breadcrumb li + li::before { content: "\203A"; margin-right: 4px; }

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

.prose { background: var(--surface); border-radius: var(--radius-card); padding: 24px 20px; }

.prose h2 { font-size: 22px; margin: 32px 0 8px; }

.prose h2:first-child { margin-top: 0; }

@media (min-width: 560px) { .prose { padding: 32px 36px; } }
