/* RallySpace website. Layout: a night session at the club. Ink ground with faint court lines,
   condensed sport headings, the real app inside device frames; club
   management first, then events, then open play in depth. */
:root {
  --ink: #0d1218; /* page ground */
  --ink-2: #141b23; /* raised band */
  --ink-3: #1c2530; /* cards, frames */
  --line: #263240; /* hairlines, court lines */
  --chalk: #eef1ec; /* primary text */
  --mute: #9aa6b2; /* secondary text */
  --yellow: #f4c440; /* brand accent */
  --yellow-ink: #1a1405; /* text on yellow */
  --display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --util: "Saira", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--ink);
}
a {
  color: inherit;
}
img,
video {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
  letter-spacing: 0.005em;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--util);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}
.lede {
  color: var(--mute);
  font-size: 19px;
  max-width: 36em;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 16px/1 var(--body);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--yellow);
  color: var(--yellow-ink);
}
.btn-primary:hover {
  background: #ffd35c;
}
.btn-ghost {
  border-color: var(--line);
  color: var(--chalk);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--mute);
}
.h2 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 14px;
}
.section-head {
  max-width: 780px;
}
.section-head .lede,
.copy .lede {
  margin-top: 18px;
}

/* open play: the term people may not know, explained where it appears */
.term {
  display: inline;
  color: var(--chalk);
  font-weight: 600;
  border-bottom: 1px dashed color-mix(in srgb, var(--yellow) 70%, transparent);
}
.define {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  max-width: 640px;
}
.define .q {
  font: 700 12px/1.4 var(--util);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  padding-top: 3px;
}
.define p {
  color: var(--chalk);
  font-size: 16px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}
.brand img {
  height: 22px;
  width: auto;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-actions .btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}
@media (max-width: 420px) {
  .brand img {
    height: 16px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .btn {
    padding: 0 14px;
    min-height: 40px;
    font-size: 14px;
  }
}

/* ---------- hero ---------- */
.court-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(90deg, var(--line), var(--line)) 0 62% / 100% 1px no-repeat;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(
    ellipse at 70% 40%,
    #000 0%,
    transparent 70%
  );
}
.hero {
  position: relative;
  padding-block: 72px 80px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -160px;
  top: -200px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--yellow) 20%, transparent),
    transparent 62%
  );
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(50px, 7.4vw, 96px);
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}
.hero .lede {
  margin-top: 22px;
}
.hero .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.sports-line {
  margin-top: 18px;
  color: var(--mute);
  font: 600 13px/1.7 var(--util);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-block: 48px 56px;
  }
}

/* device frames */
.tablet,
.phone {
  background: #05080b;
  border: 1px solid #2c3742;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.tablet {
  border-radius: 26px;
  padding: 12px;
}
.tablet .screen {
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 1280 / 800;
  background: var(--ink-3);
}
.phone {
  border-radius: 34px;
  padding: 9px;
}
.phone .screen {
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 540 / 1200;
  background: var(--ink-3);
}
.screen video,
.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage {
  position: relative;
  padding-bottom: 6%;
}
.stage .tablet {
  width: 92%;
}
.stage .phone {
  position: absolute;
  width: 30%;
  right: -2%;
  bottom: -4%;
}

/* ---------- sections ---------- */
section.block {
  padding-block: 104px;
  position: relative;
}
section.band {
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.split.flip > :first-child {
  order: 2;
}
@media (max-width: 900px) {
  .split,
  .split.flip {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split.flip > :first-child {
    order: 0;
  }
}

.points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.points li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
}
.points li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 3px;
  border: 2px solid var(--yellow);
}
.points b {
  display: block;
  font-weight: 600;
  color: var(--chalk);
}
.points span {
  color: var(--mute);
}

.phones {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-end;
}
.phones .phone {
  width: min(31%, 220px);
}
.phones .phone:nth-child(2) {
  transform: translateY(-28px);
}

.tour {
  margin-top: 44px;
}
.tour .frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  aspect-ratio: 16 / 9;
  background: #000;
}
.tour video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tour .caption {
  margin-top: 14px;
  color: var(--mute);
  font-size: 14px;
}

/* events overview */
.event-types {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.etype {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--ink-3);
  padding: 28px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.etype .status {
  justify-self: start;
  font: 600 11px/1 var(--util);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 10px;
}
.etype .status.now {
  background: var(--yellow);
  color: var(--yellow-ink);
}
.etype .status.soon {
  border: 1px solid var(--line);
  color: var(--mute);
}
.etype h3 {
  font-size: 34px;
  font-weight: 800;
  text-transform: uppercase;
}
.etype p {
  color: var(--mute);
}
.etype a {
  color: var(--yellow);
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 760px) {
  .event-types {
    grid-template-columns: 1fr;
  }
}

/* open play steps: a real sequence, so it is numbered */
.steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.step {
  display: grid;
  gap: 18px;
  align-content: start;
}
.step .phone {
  width: min(100%, 250px);
  justify-self: center;
}
.step .n {
  font: 600 13px/1 var(--util);
  letter-spacing: 0.14em;
  color: var(--yellow);
}
.step h3 {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 6px;
}
.step p {
  color: var(--mute);
  margin-top: 8px;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .step .phone {
    width: min(70%, 250px);
  }
}

.courts-wide {
  margin-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 48px;
  align-items: center;
}
.courts-wide h3 {
  font-size: 40px;
  font-weight: 800;
  text-transform: uppercase;
}
.courts-wide p {
  color: var(--mute);
  margin-top: 14px;
}
@media (max-width: 900px) {
  .courts-wide {
    grid-template-columns: 1fr;
  }
}

/* tournaments */
.tourney {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--yellow) 10%, var(--ink-3)),
    var(--ink-3) 55%
  );
  padding: clamp(28px, 5vw, 56px);
}
.tourney .lede {
  margin-top: 16px;
}
.formats {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.format {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.format h3 {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
}
.format p {
  color: var(--mute);
  font-size: 15px;
}
@media (max-width: 900px) {
  .formats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .formats {
    grid-template-columns: 1fr;
  }
}

/* get started */
.start {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.start .h2 {
  margin-top: 0;
}
.start .lede {
  margin-inline: auto;
}
.start .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}

/* faq */
.faq {
  margin-top: 40px;
  display: grid;
  border-top: 1px solid var(--line);
  max-width: 860px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-weight: 600;
  font-size: 18px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font: 500 28px/1 var(--util);
  color: var(--yellow);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: var(--mute);
  padding-bottom: 22px;
  max-width: 64ch;
}

/* footer */
footer.site {
  border-top: 1px solid var(--line);
  padding-block: 48px 40px;
  color: var(--mute);
  font-size: 15px;
}
footer.site .wrap {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
footer.site h4 {
  font: 600 12px/1 var(--util);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk);
  margin: 0 0 14px;
}
footer.site ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
footer.site a {
  text-decoration: none;
}
footer.site a:hover {
  color: var(--chalk);
}
footer.site .brandcol img {
  height: 20px;
  width: auto;
  margin-bottom: 16px;
}
footer.site .brandcol p {
  max-width: 36em;
}
footer.site .legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 13px;
}
.selectable {
  user-select: all;
  color: var(--chalk);
}
@media (max-width: 760px) {
  footer.site .wrap {
    grid-template-columns: 1fr 1fr;
  }
  footer.site .brandcol {
    grid-column: 1 / -1;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  background: var(--chalk);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 40;
  max-width: calc(100% - 32px);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
