/* Volleyball Rotations — landing, privacy, support and 404 pages. */

:root {
  color-scheme: light dark;
  --navy: #0b1425;
  --orange: #ed7833;
  --orange-press: #d4651f;
  --orange-ink: #b9531a;
  --blue: #215c9e;
  --gold: #ffcc40;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #0b1425;
  --muted: #5b6474;
  --hairline: rgba(11, 20, 37, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070c16;
    --surface: #141d2e;
    --text: #f4f2ec;
    --muted: #98a2b3;
    --hairline: rgba(255, 255, 255, 0.1);
    --orange-ink: #ff9d63;
  }
}

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

html {
  background: var(--navy);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--orange-ink);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
}

/* ------------------------------------------------------------------ nav */

.nav {
  background: var(--navy);
  color: #fff;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding-top: env(safe-area-inset-top);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.brand {
  white-space: nowrap;
}

@media (max-width: 419px) {
  .brand {
    gap: 6px;
    font-size: 14px;
  }

  .brand img {
    width: 26px;
    height: 26px;
  }

  .nav .nav-links {
    gap: 10px;
  }

  .nav .nav-links a {
    font-size: 14px;
  }

  .nav .container {
    gap: 10px;
  }
}

.nav-links a {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: #fff;
}

/* ----------------------------------------------------------------- hero */

.hero {
  background: var(--navy);
  color: #fff;
  padding: 28px 0 44px;
}

.hero .container {
  display: grid;
  gap: 30px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero .lede {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
  text-wrap: pretty;
}

.hero .free {
  color: var(--gold);
  font-weight: 700;
}

.demo {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1120 / 1260;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: var(--blue);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.demo svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 760px) {
  .hero .container {
    grid-template-columns: 1.15fr 1fr;
  }

  .hero {
    padding: 48px 0 64px;
  }
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.btn.btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.btn.btn-ghost:active,
.btn.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.fine {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
}

.fine-dark {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.nav-long {
  display: none;
}

@media (min-width: 560px) {
  .nav-long {
    display: inline;
  }
}

.demo-card {
  margin: 0;
}

.demo-card figcaption {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 380px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.4;
}

.demo-card figcaption strong {
  color: #fff;
}

.demo-card-light figcaption,
.demo-card-light figcaption strong {
  color: var(--muted);
}

.demo-card-light figcaption strong {
  color: var(--text);
}

.demo-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: var(--orange);
  color: #fff;
  font: 800 14px/1 var(--font-round);
}

.court-demo {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1120 / 1260;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: var(--blue);
  box-shadow: 0 14px 40px rgba(11, 20, 37, 0.25);
}

.court-demo svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* -------------------------------------------------------------- sections */

.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--surface);
  box-shadow: inset 0 1px 0 var(--hairline), inset 0 -1px 0 var(--hairline);
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section h3 {
  margin: 26px 0 6px;
  font-size: 20px;
  line-height: 1.25;
}

.section p {
  text-wrap: pretty;
}

.section-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
}

.narrow {
  max-width: 760px;
}

.center {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

.split {
  display: grid;
  gap: 30px;
  align-items: center;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
  }

  .split-reverse {
    grid-template-columns: 1fr 1.1fr;
  }
}

.shot {
  margin: 0;
  text-align: center;
}

.shot img {
  display: inline-block;
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(11, 20, 37, 0.2), 0 0 0 1px var(--hairline);
}

.system-list,
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.system-list li,
.facts li {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  text-align: left;
}

.system-list strong {
  color: var(--orange-ink);
  font: 800 24px/1.1 var(--font-round);
}

.system-list span,
.facts span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.facts {
  margin: 8px 0 24px;
}

.facts strong {
  font-size: 17px;
}

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

.phase-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: phase;
}

.phase-list li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(237, 120, 51, 0.12);
  color: var(--text);
  font-size: 14px;
}

.phase-list strong {
  color: var(--orange-ink);
}

.ticks {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 28px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  transform: rotate(-45deg);
}

.explainer p {
  margin: 0 0 14px;
}

.rule-list {
  margin: 0 0 16px;
  padding-left: 22px;
}

.rule-list li {
  margin: 0 0 8px;
}

.more {
  margin: 18px 0 0;
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 30px;
  padding: 28px;
  border-radius: 22px;
  background: var(--navy);
  color: #fff;
}

.callout h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 4vw, 28px);
}

.callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

/* -------------------------------------------------------------- features */

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

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

.features li {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.features h2,
.features h3 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.25;
}

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

.cta {
  padding: 26px 0 44px;
  text-align: center;
}

.cta p {
  margin: 0 0 12px;
  color: var(--muted);
}

/* Apple's badge, unmodified, 48px tall with clear space. */
.store-badge {
  display: inline-block;
  line-height: 0;
  margin: 6px 0;
  border-radius: 9px;
}

.store-badge picture {
  display: block;
}

.store-badge img {
  display: block;
  width: auto;
  height: 48px;
}

/* ----------------------------------------------------------- page heads */

.page-head {
  background: var(--navy);
  color: #fff;
  padding: 26px 0 30px;
}

.page-head h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.prose {
  max-width: 760px;
  padding-top: 26px;
  padding-bottom: 48px;
}

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

.prose p,
.prose li {
  text-wrap: pretty;
}

.summary {
  padding: 4px 22px 10px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.summary h2 {
  margin-top: 18px;
}

.faq details {
  margin: 0 0 10px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.faq summary {
  padding: 15px 18px;
  font-weight: 700;
  cursor: pointer;
}

.faq .answer {
  padding: 0 18px 8px;
}

.faq .answer p,
.faq .answer ol,
.faq .answer ul {
  margin: 0 0 12px;
}

.contact {
  margin-top: 36px;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 24px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.btn:active {
  background: var(--orange-press);
}

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

.not-found {
  max-width: 520px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}

.not-found .code {
  margin: 0;
  color: var(--orange);
  font: 900 64px/1 var(--font-round);
}

.not-found h1 {
  margin: 10px 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

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

/* --------------------------------------------------------------- footer */

.footer {
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}
