@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-latin-800-italic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("fonts/barlow-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --burgundy: #5C1A2B;
  --burgundy-deep: #3E1019;
  --claret: #8A2A40;
  --gold: #E5C143;
  --rose: #E8C9CF;
  --mauve: #A9848C;
  --ivory: #F3E9DC;
  --card: #FBF6EF;
  --line: #E2D5C4;
  --ink: #2A1016;
  --muted: #6E4A52;
  --graphite: #1E2126;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 104px);
  --display: "Barlow Condensed", Barlow, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Barlow, -apple-system, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; }

:focus-visible { outline: 2px solid var(--claret); outline-offset: 2px; }
.band-burgundy :focus-visible,
.band-deep :focus-visible { outline-color: var(--ivory); }

h1, h2, h3, p, ol, ul { margin: 0; }

h1, h2 {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(64px, 9vw, 144px);
  line-height: 0.86;
}

h2 {
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.95;
  color: var(--burgundy);
}

h3 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.band-burgundy { background: var(--burgundy); color: var(--ivory); }
.band-deep { background: var(--burgundy-deep); color: var(--ivory); }
.band-burgundy h2,
.band-deep h2 { color: var(--ivory); }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: 600 18px/1.2 Barlow, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: #EDCF62; }

.button-small {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 16px;
}

.button-outline {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--mauve);
}

.button-outline:hover { background: rgba(243, 233, 220, 0.08); }

.button-ivory { background: var(--ivory); color: var(--burgundy); }
.button-ivory:hover { background: #FFFFFF; }

.button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Header */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  font-style: italic;
  text-decoration: none;
}

.mark { width: 40px; height: 40px; flex: none; }

.nav nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 16px;
  font-weight: 500;
}

.nav nav a:not(.button) {
  padding: 10px 0;
  text-decoration: none;
}

.nav nav a:not(.button):hover { color: var(--gold); }

/* Hero and demo */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 88px;
}

.hero-copy {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--burgundy-deep);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.lead {
  max-width: 560px;
  font-size: 22px;
  line-height: 1.45;
  color: var(--rose);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.demo {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 0 0 10px #2A2C30, 0 30px 60px rgba(20, 4, 8, 0.45);
}

.demo-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 0 4px;
}

.demo-head strong {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}

.demo-head span { font-size: 15px; color: var(--rose); }

.zones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zone {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "top top" "games point";
  align-items: end;
  gap: 4px 12px;
  min-height: 132px;
  padding: 16px 18px;
  border: 0;
  border-radius: 18px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.zone:active { opacity: 0.8; }
.zone-a { background: var(--claret); color: #FFFFFF; }
.zone-b { background: var(--graphite); color: #FFFFFF; }

.zone-top {
  grid-area: top;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
}

.serving { color: var(--gold); }
.serving[hidden] { display: none; }

.point {
  grid-area: point;
  font-family: var(--display);
  font-size: 84px;
  font-weight: 800;
  font-style: italic;
  line-height: 0.85;
}

.games {
  grid-area: games;
  font-size: 15px;
  color: var(--rose);
}

.zone-b .games { color: #C4C8CE; }

.net {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--ivory);
}

.demo-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 4px;
  font-size: 15px;
  color: var(--rose);
}

.demo-foot strong { color: #FFFFFF; }

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li,
.rules > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--display);
  font-size: 56px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: var(--claret);
}

.steps p,
.rules p { color: var(--muted); }

/* Rules */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: start;
}

.rules {
  display: grid;
  gap: 16px;
}

/* Formats */

.formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 20px;
}

.format {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px;
  border-radius: 28px;
  color: var(--ivory);
}

.format-padel { background: var(--burgundy); }
.format-tennis { background: var(--claret); color: #FFFFFF; }

.format h3 {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1;
}

.format ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.format li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.format li::before {
  content: "●";
  color: var(--gold);
}

.solo {
  max-width: 640px;
  font-size: 20px;
  color: var(--muted);
}

/* Courtside scoreboard */

.courtside { gap: 48px; }

.board-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.board-intro h2 { flex: 1 1 420px; }
.board-intro p { flex: 0 1 420px; color: var(--rose); }

.board {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 3vw, 32px);
  border-radius: 28px;
  background: var(--burgundy);
  box-shadow: 0 0 0 10px var(--graphite);
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
}

.board-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, clamp(28px, 6vw, 64px)) clamp(68px, 12vw, 128px);
  gap: 0 8px;
  align-items: center;
  text-align: center;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.1;
}

.board-head {
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--rose);
}

.board-row > :first-child { text-align: left; }

.board-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: clamp(18px, 3vw, 34px);
  overflow-wrap: anywhere;
}

.board-team .dot { width: 12px; height: 12px; flex: none; }

.board .won { color: var(--gold); }
.board .dim { color: var(--mauve); }

.board-point {
  border-radius: 14px;
  background: var(--burgundy-deep);
  font-size: clamp(36px, 6vw, 76px);
}

.board-point-a { background: var(--claret); }

/* Get the app */

.get {
  align-items: center;
  text-align: center;
  padding-top: 112px;
  padding-bottom: 112px;
}

.get h2 { font-size: clamp(48px, 6vw, 96px); line-height: 0.9; }
.get p { max-width: 520px; font-size: 20px; color: var(--muted); }
.get strong { color: var(--ink); }

/* Footer */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 15px;
  color: var(--rose);
}

.footer .wordmark { font-size: 24px; color: var(--ivory); }
.footer .mark { width: 30px; height: 30px; }
