/*
  Sysie: site (sysie.com.br)
  Static, no build step. Tokens mirror apps/mobile/lib/design_system/tokens.
  Fonts are self-hosted OFL subsets (licences: OFL.txt next to each font file).
  Cache busting: pages link this file as site.css?v=N. Bump N when it changes,
  because /assets/* is served with a one-year immutable cache (_headers).
*/

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/inter/inter-800.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter/inter-700.woff2") format("woff2");
}
/* Subset of Lato 2.015, renamed as the OFL requires for the reserved name. */
@font-face {
  font-family: "Sysie Body";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/sysie-body/sysie-body-400.woff2") format("woff2");
}
@font-face {
  font-family: "Sysie Body";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/sysie-body/sysie-body-700.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  /* Brand (SysieColors) */
  --navy: #1a1930;
  --navy-raised: #2c2b47;
  --navy-deep: #12111f;
  --ball: #f9804c;
  --chalk: #eae8e6;
  --chalk-muted: #a9a7b8;
  --chalk-line: rgba(234, 232, 230, 0.16);

  /* Page (switches in dark mode) */
  --page: #eff1f7;
  --card: #ffffff;
  --text: #1a1930;
  --muted: #5e5d72;
  --line: #dde0ea;
  --link: #b04a18;
  /* Focus ring: 3:1 or more against the surface it sits on (WCAG 1.4.11). */
  --focus: #b04a18;
  --ball-soft: #fde7dc;
  --shadow: 0 1px 2px rgba(26, 25, 48, 0.05), 0 12px 32px rgba(26, 25, 48, 0.08);
  --band-a: #ffffff;
  --band-b: #eff1f7;

  /* App mock-ups: always light, like the app itself */
  --app-surface: #eff1f7;
  --app-card: #ffffff;
  --app-text: #1a1930;
  --app-muted: #5e5d72;
  --app-line: #dde0ea;
  --app-track: #e2e5ef;
  --ok: #1e7a4f;
  --ok-soft: #dff2e8;
  --warn: #8a5a00;
  --warn-soft: #fcefd3;
  --bad: #b42318;
  --bad-soft: #fbe4e1;
  --info: #3b47a0;
  --info-soft: #e5e8f8;
  --violet: #6a3da6;
  --violet-soft: #efe7fa;
  --accent-strong: #b04a18;
  --accent-soft: #fde7dc;
  --on-accent: #ffffff;

  --font-display: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Sysie Body", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-card: 16px;
  --radius-control: 12px;
  --radius-sheet: 24px;
  --gutter: 16px;
  --max: 1200px;

  /* Legal document grid (table of contents, gap, body) */
  --doc-toc: 264px;
  --doc-gap: 72px;
  --doc-body: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #12111f;
    --card: #1b1a32;
    --text: #eae8e6;
    --muted: #a9a7b8;
    --line: #34334f;
    --link: #f9804c;
    --focus: var(--ball);
    --ball-soft: rgba(249, 128, 76, 0.16);
    --shadow: none;
    --band-a: #12111f;
    --band-b: #1b1a32;
  }
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--navy);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: inherit;
}

p { margin: 0 0 1em; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

strong, b { font-weight: 700; }

/* Navy areas keep the orange ring (6.6:1 on navy). */
.skip-link, .site-header, .hero, .cta, .site-footer, .masthead, .lost { --focus: var(--ball); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: var(--radius-control);
  background: var(--ball);
  color: var(--navy);
  font: 700 1rem/1 var(--font-display);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* The orange ball of the logo, used as a marker. */
.ball {
  display: inline-block;
  flex: none;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--ball);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 700 0.8125rem/1.3 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow .ball { width: 10px; height: 10px; }

/* ---------- Site header ---------- */

.site-header {
  background: var(--navy);
  color: var(--chalk);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.logo {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}
.logo img { width: auto; height: 44px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--chalk);
  font: 700 0.9375rem/1 var(--font-display);
  text-decoration: none;
}
.site-nav a:hover { background: var(--navy-raised); }
.site-nav .is-anchor { display: none; }
@media (min-width: 800px) {
  .site-nav .is-anchor { display: list-item; }
}
.site-nav .back::before {
  content: "←";
  margin-right: 8px;
  font-family: var(--font-body);
}

/* ---------- Store availability (no store marks: launch pending) ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.store {
  display: inline-flex;
  flex: 1 1 150px;
  flex-direction: column;
  justify-content: center;
  max-width: 220px;
  min-height: 60px;
  padding: 8px 20px;
  border: 1.5px solid rgba(234, 232, 230, 0.32);
  border-radius: 14px;
  color: var(--chalk);
}
.store small {
  font: 700 0.6875rem/1.3 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk-muted);
}
.store b {
  font: 800 1.125rem/1.25 var(--font-display);
  letter-spacing: -0.01em;
}

.free-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  color: var(--chalk-muted);
  font-size: 1rem;
}
.free-note .ball { width: 8px; height: 8px; }
.free-note strong { color: var(--chalk); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy) url("/assets/img/court-v.svg") center / min(100%, 560px) auto no-repeat;
  color: var(--chalk);
  padding: 32px 0 72px;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero__copy { max-width: 36rem; }
.hero .eyebrow { color: var(--chalk-muted); }
.hero h1 {
  margin: 20px 0 24px;
  font-size: clamp(2.5rem, 1.2rem + 5.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero h1 .punch { display: block; color: var(--ball); }
.hero__lead {
  max-width: 32rem;
  margin: 0 0 32px;
  color: var(--chalk-muted);
  font-size: 1.1875rem;
  line-height: 1.55;
}
.hero__lead strong { color: var(--chalk); font-weight: 700; }

@media (min-width: 960px) {
  .hero {
    background-image: url("/assets/img/court-h.svg");
    background-size: auto 100%;
    padding: 56px 0 104px;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(64px, 7.8vw, 112px);
  }
  .hero h1 { font-size: clamp(3.25rem, 0.5rem + 4.6vw, 4.75rem); }
}

/* ---------- App mock-ups (illustrations of the real screens) ---------- */

.mock {
  color: var(--app-text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.35;
}
.mock-figure { margin: 0; }

.screen {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  padding-bottom: 104px;
  border-radius: 32px;
  background: var(--app-surface);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(234, 232, 230, 0.08);
}
.screen__head {
  padding: 20px 20px 16px;
  border-radius: 32px 32px var(--radius-sheet) var(--radius-sheet);
  background: var(--navy);
  color: var(--chalk);
  box-shadow: inset 0 0 0 1px rgba(234, 232, 230, 0.1);
}
.screen__date {
  margin: 0;
  color: var(--chalk-muted);
  font: 700 0.8125rem/1.3 var(--font-body);
  letter-spacing: 0.02em;
}
.screen__title {
  margin: 2px 0 14px;
  font: 800 1.5rem/1.15 var(--font-display);
}

.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.days li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 10px;
  border-radius: var(--radius-control);
  background: var(--navy-raised);
  color: var(--chalk-muted);
  font: 700 0.6875rem/1.2 var(--font-body);
  text-transform: uppercase;
}
.days b {
  color: var(--chalk);
  font: 800 1.0625rem/1.2 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.days .is-today { background: var(--ball); color: var(--on-accent); }
.days .is-today b { color: var(--on-accent); }
.days .is-today::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--on-accent);
}

.lessons {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px 16px 0;
  list-style: none;
}
.lesson {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 14px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--app-card);
  box-shadow: 0 1px 2px rgba(26, 25, 48, 0.06);
}
.lesson.is-next::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--ball);
}
.lesson__time {
  display: flex;
  flex-direction: column;
  font: 700 1rem/1.25 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.lesson__time small {
  color: var(--app-muted);
  font: 400 0.8125rem/1.3 var(--font-body);
}
.lesson__who {
  display: block;
  font-weight: 700;
  line-height: 1.25;
}
.lesson__where {
  display: block;
  margin-top: 4px;
  color: var(--app-muted);
  font-size: 0.8125rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font: 700 0.75rem/1.2 var(--font-body);
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }
.badge--info { background: var(--info-soft); color: var(--info); }

.alert {
  position: absolute;
  left: 50%;
  bottom: -28px;
  /* Full width of the lesson cards, like the app's modal: none peeks out. */
  width: calc(100% - 24px);
  transform: translateX(-50%);
  padding: 20px;
  border-radius: 20px;
  background: var(--app-card);
  box-shadow: 0 24px 48px rgba(10, 10, 25, 0.35);
  text-align: center;
}
.alert__title {
  margin: 0 0 6px;
  font: 800 1.125rem/1.25 var(--font-display);
}
.alert__text { margin: 0 0 4px; color: var(--app-muted); font-size: 0.875rem; }
.alert__slot {
  margin: 0 0 16px;
  font: 700 0.9375rem/1.3 var(--font-body);
}
.alert__slot span { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

.mock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font: 700 0.9375rem/1.2 var(--font-display);
}
.mock-btn + .mock-btn { margin-top: 8px; }
.mock-btn--primary { background: var(--ball); color: var(--on-accent); }
.mock-btn--ghost { box-shadow: inset 0 0 0 2px var(--ball); color: var(--navy); }

@media (min-width: 960px) {
  .alert {
    left: auto;
    right: -16px;
    bottom: -36px;
    width: min(340px, calc(100% - 24px));
    transform: none;
    text-align: left;
  }
}
@media (min-width: 1280px) {
  .alert { right: -40px; }
}

/* Load sequence: the day fills in, then the conflict warning lands. */
@media (prefers-reduced-motion: no-preference) {
  .hero .lesson,
  .hero .alert {
    animation: rise 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero .lesson:nth-child(1) { animation-delay: 120ms; }
  .hero .lesson:nth-child(2) { animation-delay: 220ms; }
  .hero .lesson:nth-child(3) { animation-delay: 320ms; }
  .hero .alert { animation-name: land; animation-delay: 700ms; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes land {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

/* ---------- Sections (landing) ---------- */

.section { padding: 80px 0; }
.section--card { background: var(--band-a); }
.section--page { background: var(--band-b); }
@media (min-width: 960px) {
  .section { padding: 120px 0; }
}

.section__head { max-width: 40rem; margin-bottom: 48px; }
.section__head .eyebrow { color: var(--link); margin-bottom: 16px; }
.section__title {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section__lead {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.1875rem;
  line-height: 1.55;
}

/* Features: copy on one side, the real piece of the app on the other. */
.features {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.feature {
  display: grid;
  gap: 28px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.feature h3 {
  margin: 0 0 12px;
  text-wrap: balance;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.feature p { margin: 0; color: var(--muted); font-size: 1.0625rem; }
.feature__tag {
  display: block;
  margin-bottom: 10px;
  color: var(--link);
  font: 700 0.8125rem/1.3 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (min-width: 880px) {
  .feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
    align-items: center;
    padding: 56px 0;
  }
}

.frag {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
  background: var(--app-surface);
  box-shadow: inset 0 0 0 1px var(--app-line);
}
@media (min-width: 600px) {
  .frag { padding: 28px; }
}
/* .feature .frag__label: must beat .feature p (the copy column). */
.feature .frag__label {
  margin: 0 0 2px;
  color: var(--app-muted);
  font: 700 0.75rem/1.3 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sheet {
  padding: 20px;
  border-radius: 20px;
  background: var(--app-card);
  box-shadow: 0 1px 2px rgba(26, 25, 48, 0.06);
}
.sheet .alert__title { margin-bottom: 6px; }
.sheet__actions { display: grid; gap: 8px; margin-top: 16px; }
.sheet__actions .mock-btn + .mock-btn { margin-top: 0; }
@media (min-width: 480px) {
  .sheet__actions { grid-template-columns: 1fr 1fr; }
}

.row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-card);
  background: var(--app-card);
  box-shadow: 0 1px 2px rgba(26, 25, 48, 0.06);
}
.row--plain { grid-template-columns: minmax(0, 1fr) auto; }
.row__title { display: block; font-weight: 700; line-height: 1.25; }
.row__meta { display: block; margin-top: 2px; color: var(--app-muted); font-size: 0.8125rem; }
.row__value {
  font: 700 1rem/1.2 var(--font-display);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.row__value .badge { margin-top: 6px; }

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font: 800 0.875rem/1 var(--font-display);
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 40px));
  justify-content: space-between;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.weekdays li {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--app-card);
  box-shadow: inset 0 0 0 1px var(--app-line);
  color: var(--app-text);
  font: 700 0.875rem/1 var(--font-body);
}
.weekdays .is-on { background: var(--ball); box-shadow: none; color: var(--on-accent); }

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.metric {
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--app-card);
  box-shadow: 0 1px 2px rgba(26, 25, 48, 0.06);
}
.metric--wide {
  grid-column: 1 / -1;
  background: var(--navy);
  color: var(--chalk);
}
.metric__label { display: block; color: var(--app-muted); font-size: 0.8125rem; }
.metric--wide .metric__label { color: var(--chalk-muted); }
.metric__value {
  display: block;
  margin-top: 4px;
  font: 800 1.5rem/1.15 var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.metric--wide .metric__value { font-size: 2rem; }
.metric__value--bad { color: var(--bad); }

/* Steps: a real sequence, so it is numbered. */
.steps {
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step { position: relative; counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--ball);
  color: var(--navy);
  font: 800 1.375rem/1 var(--font-display);
}
.step h3 {
  margin: 0 0 10px;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.step p { margin: 0; color: var(--muted); }
@media (min-width: 880px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  /* The baseline the three balls sit on. */
  .steps::before {
    content: "";
    grid-row: 1;
    grid-column: 1 / -1;
    align-self: start;
    height: 2px;
    margin-top: 25px;
    background: var(--line);
  }
  .step { grid-row: 1; }
  .step:nth-child(1) { grid-column: 1; }
  .step:nth-child(2) { grid-column: 2; }
  .step:nth-child(3) { grid-column: 3; }
}

/* FAQ: the grid gap spaces the head from the list (48px, as in the other sections). */
.faq-layout { display: grid; gap: 48px; }
.faq-layout .section__head { margin-bottom: 0; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; }
}
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 48px 16px 0;
  cursor: pointer;
  list-style: none;
  font: 700 1.125rem/1.35 var(--font-display);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--link);
  transition: transform 200ms ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:focus-visible { outline-offset: 2px; }
.faq__answer { padding: 0 0 24px; color: var(--muted); }
.faq__answer p:last-child { margin-bottom: 0; }
.faq__answer strong { color: var(--text); }

/* Closing call to action */
.cta {
  background: var(--navy);
  color: var(--chalk);
  padding: 88px 0;
  text-align: left;
}
.cta__inner { display: grid; gap: 32px; align-items: end; }
.cta__title {
  font-size: clamp(2.25rem, 1.3rem + 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.cta__title span { display: block; color: var(--ball); }
.cta p { margin: 16px 0 0; color: var(--chalk-muted); font-size: 1.125rem; max-width: 32rem; }
.cta a { color: var(--chalk); }
@media (min-width: 960px) {
  .cta { padding: 112px 0; }
  .cta__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 456px); gap: 64px; }
  .cta .stores { justify-content: flex-end; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--chalk-muted);
  padding: 56px 0 40px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  font-size: 0.9375rem;
}
.site-footer a { color: var(--chalk); }
.footer__grid { display: grid; gap: 32px; }
.footer__brand img { width: auto; height: 64px; margin-bottom: 16px; }
.footer__brand p { max-width: 22rem; margin: 0; }
.footer__col h2 {
  margin: 0 0 8px;
  color: var(--chalk);
  font: 700 0.8125rem/1.3 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer__col ul { margin: 0; padding: 0; list-style: none; }
.footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.footer__col a:hover { text-decoration: underline; }
.footer__legal {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(234, 232, 230, 0.12);
}
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
}
/* Dark mode: the page is --navy-deep too, so give the footer its own edge. */
@media (prefers-color-scheme: dark) {
  .site-footer {
    background: #0b0a16;
    border-top: 1px solid var(--chalk-line);
  }
}

/* ---------- Inner pages: masthead ---------- */

.masthead {
  background: var(--navy) url("/assets/img/court-h.svg") 50% 38% / 2400px auto no-repeat;
  color: var(--chalk);
  padding: 40px 0 56px;
}
.masthead .eyebrow { color: var(--chalk-muted); }
.masthead h1 {
  margin: 16px 0 16px;
  max-width: 20ch;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.masthead__meta { margin: 0; color: var(--chalk-muted); font-size: 1rem; }
.masthead__lead {
  max-width: 38rem;
  margin: 0;
  color: var(--chalk-muted);
  font-size: 1.1875rem;
  line-height: 1.55;
}
@media (min-width: 960px) {
  .masthead { padding: 64px 0 80px; }
}
/* Legal pages: the title starts at the table of contents' left edge. */
@media (min-width: 1024px) {
  .wrap--doc {
    max-width: calc(var(--doc-toc) + var(--doc-gap) + var(--doc-body) + 2 * var(--gutter));
  }
}

/* ---------- Inner pages: document layout ---------- */

.doc {
  display: grid;
  grid-template-areas: "lead" "toc" "body";
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 80px;
}
.doc__lead { grid-area: lead; }
.doc__toc { grid-area: toc; }
.doc__body { grid-area: body; min-width: 0; }
@media (min-width: 1024px) {
  .doc {
    grid-template-columns: var(--doc-toc) minmax(0, var(--doc-body));
    grid-template-areas: "toc lead" "toc body";
    grid-template-rows: auto 1fr;
    justify-content: center;
    column-gap: var(--doc-gap);
    row-gap: 8px;
    padding-top: 56px;
  }
  .doc__toc { align-self: start; }
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.balls { margin: 16px 0 0; padding: 0; list-style: none; }
.balls li { position: relative; margin: 0 0 12px; padding-left: 24px; }
.balls li:last-child { margin-bottom: 0; }
.balls li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ball);
}

.toc ol { margin: 8px 0 0; padding: 0; list-style: none; }
.toc a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 48px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.toc li:first-child a { border-top: 0; }
.toc a:hover { color: var(--link); }
.toc .n {
  min-width: 1.6em;
  color: var(--link);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 1024px) {
  .toc {
    position: sticky;
    top: 24px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .toc h2 {
    color: var(--muted);
    font: 700 0.8125rem/1.3 var(--font-display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .toc a { min-height: 40px; padding: 9px 0; font-size: 0.9375rem; }
}

/* Long-form text (legal, support, account deletion) */
.prose section { padding-top: 48px; scroll-margin-top: 16px; }
.prose > section:first-child { padding-top: 24px; }
.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.prose h2 .n {
  min-width: 1.4em;
  color: var(--link);
  font-variant-numeric: tabular-nums;
}
.prose h3 {
  margin: 32px 0 10px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  scroll-margin-top: 16px;
}
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--link); font-weight: 700; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.path {
  display: inline;
  padding: 1px 8px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: 999px;
  background: var(--ball-soft);
  font-weight: 700;
  white-space: nowrap;
}
.tbc {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--ball-soft);
  box-shadow: inset 0 -2px 0 var(--ball);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.note {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--ball);
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
  background: var(--ball-soft);
}
.note p:last-child { margin-bottom: 0; }

.facts { display: grid; gap: 12px; margin: 16px 0 24px; }
.fact {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--card);
}
.prose .fact h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.fact dl { margin: 0; }
.fact dt {
  margin-top: 12px;
  color: var(--muted);
  font: 700 0.75rem/1.4 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fact dd { margin: 2px 0 0; }

.doc-end {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
.doc-end nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.doc-end nav a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }

/* ---------- Support and account deletion ---------- */

.page-body { padding-bottom: 96px; }
.page-grid { display: grid; gap: 24px; }
.page-grid__aside { display: grid; gap: 24px; align-content: start; }
.page-title {
  margin: 0 0 16px;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.faq-more { margin: 24px 0 0; }
.masthead--tall { padding-bottom: 88px; }
@media (min-width: 960px) {
  .masthead--tall { padding-bottom: 120px; }
}
@media (min-width: 1024px) {
  .page-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 72px;
    align-items: start;
  }
  .page-grid__aside { grid-column: 2; grid-row: 1; }
  .page-grid__main { grid-column: 1; grid-row: 1; padding-top: 56px; }
}

.lift { margin-top: -32px; position: relative; }
@media (min-width: 960px) {
  .lift { margin-top: -48px; }
}

.contact { padding: 28px; container-type: inline-size; }
.contact h2, .facts-card h2 { font-size: 1.25rem; }
.facts-card p { margin: 16px 0 0; font-size: 0.9375rem; }
/* One line that fits the card: 8cqi keeps the address within the card's width.
   The first size is the fallback without container units (iOS 15), small
   enough for a 320px screen. */
.contact__email {
  display: inline-block;
  margin: 12px 0 8px;
  font: 800 1.125rem/1.2 var(--font-display);
  font-size: min(1.875rem, 8cqi);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.contact__time { margin: 0 0 20px; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ball);
  color: var(--navy);
  font: 700 1rem/1.2 var(--font-display);
  text-decoration: none;
}
.btn:hover { background: #ff9566; text-decoration: none; }
.btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--ball);
  color: var(--text);
}
.btn--ghost:hover { background: var(--ball-soft); }

.callout-list { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.callout-list li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.callout-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.25em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ball);
}
.callout-list strong { color: var(--text); }

.howto {
  display: grid;
  gap: 0;
  margin: 8px 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: howto;
}
.howto li {
  position: relative;
  min-height: 56px;
  padding: 6px 0 22px 60px;
  counter-increment: howto;
}
.howto li::before {
  content: counter(howto);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ball);
  color: var(--navy);
  font: 800 1.0625rem/1 var(--font-display);
}
.howto li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}
.howto strong { display: block; font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.35; }
.howto li > span { display: block; margin-top: 2px; color: var(--muted); }

.data-list {
  display: grid;
  gap: 0;
  margin: 8px 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.data-list li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.data-list b { font-family: var(--font-display); }
.data-list span { color: var(--muted); }
@media (min-width: 600px) {
  .data-list li { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
}

.keep {
  display: grid;
  gap: 12px;
  margin: 8px 0 24px;
}
.keep__item {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--card);
}
.keep__period {
  color: var(--link);
  font: 800 1.125rem/1.3 var(--font-display);
}
.keep__item p { margin: 0; color: var(--muted); }
.keep__item h3 { margin: 0; font-size: 1.0625rem; font-weight: 700; }

.prose .howto,
.prose .data-list { padding-left: 0; }
.prose .howto li,
.prose .data-list li { margin: 0; }

.facts-card dl { display: grid; gap: 0; margin: 12px 0 0; }
.facts-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.facts-card dt { color: var(--muted); }
.facts-card dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- 404 ---------- */

.lost {
  display: grid;
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  place-items: center;
  padding: 48px 0 96px;
  /* Pushed down so the dashed net passes below the buttons, not through the copy. */
  background: var(--navy) url("/assets/img/court-v.svg") center calc(50% + 220px) / min(100%, 560px) auto no-repeat;
  color: var(--chalk);
  text-align: center;
}
.lost h1 {
  margin: 16px 0;
  font-size: clamp(3rem, 1.6rem + 7vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.lost h1 span { color: var(--ball); white-space: nowrap; }
.lost p { max-width: 28rem; margin: 0 auto 32px; color: var(--chalk-muted); font-size: 1.1875rem; }
.lost .eyebrow { justify-content: center; color: var(--chalk-muted); }
.lost__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lost .btn--ghost { color: var(--chalk); }
.lost .btn--ghost:hover { background: var(--navy-raised); }
@media (min-width: 960px) {
  .lost {
    background-image: url("/assets/img/court-h.svg");
    background-position: center;
    background-size: auto 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::before,
  .faq summary::after { transition: none; }
}

/* ---------- Print ---------- */

@media print {
  html, body { background: #fff; color: #000; }
  body { font-size: 11pt; }
  .site-header, .site-footer, .doc__toc, .skip-link, .doc-end nav { display: none; }
  .masthead { background: none; color: #000; padding: 0 0 12pt; }
  .masthead .eyebrow, .masthead__meta { color: #333; }
  .doc { display: block; padding: 0; }
  .card, .fact, .keep__item { box-shadow: none; border-color: #bbb; background: #fff; }
  a { color: #000; }
}
