:root {
  --navy: #07184f;
  --night: #060e27;
  --mid-navy: #243a82;
  --light-blue: #55658e;
  --flash: #ff483a;
  --court: #fff8ee;
  --white: #ffffff;
  --ink: #060e27;
  --muted: #55658e;
  --line: rgba(7, 24, 79, 0.12);
  --line-strong: rgba(7, 24, 79, 0.24);
  --font-display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Funnel Sans", "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-pill: 100px;
  --shadow: 0 12px 32px rgba(7, 24, 79, 0.10);
  --container: 1120px;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--court);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--mid-navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.375rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container.narrow {
  max-width: calc(760px + var(--gutter) * 2);
}

.text-center {
  text-align: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flash);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--light-blue);
  max-width: 44rem;
}

.text-center .lede {
  margin-left: auto;
  margin-right: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: var(--court);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--court);
}

.btn-primary:hover {
  background: var(--mid-navy);
  border-color: var(--mid-navy);
  color: var(--white);
}

.btn-flash {
  background: var(--flash);
  border-color: var(--flash);
  color: var(--white);
}

.btn-flash:hover {
  background: #e63b2e;
  border-color: #e63b2e;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
  border-radius: var(--radius-pill);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--court);
}

.btn-outline-light {
  background: transparent;
  border-color: var(--court);
  color: var(--court);
  border-radius: var(--radius-pill);
}

.btn-outline-light:hover {
  background: var(--court);
  color: var(--navy);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9375rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.0625rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-row.center {
  justify-content: center;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo svg {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--night);
  text-decoration: none;
}

.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--flash);
}

.site-nav a.btn-primary {
  color: var(--court);
}

.site-nav a.btn-primary:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Sections */

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-white {
  background: var(--white);
}

.section-navy {
  background: var(--navy);
  color: var(--court);
}

.section-navy h2,
.section-navy h3,
.section-navy h4 {
  color: var(--court);
}

.section-navy .lede {
  color: rgba(255, 248, 238, 0.78);
}

.section-navy a:not(.btn) {
  color: var(--court);
}

.section-night {
  background: var(--night);
  color: var(--court);
}

.section-night h2,
.section-night h3 {
  color: var(--court);
}

.section-heading {
  max-width: 44rem;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading p {
  color: var(--light-blue);
  font-size: 1.125rem;
}

.section-navy .section-heading p {
  color: rgba(255, 248, 238, 0.78);
}

.section-cta {
  padding: 72px 0;
}

.section-cta h2 {
  margin-bottom: 0.5rem;
}

.section-cta .btn {
  margin-top: 8px;
}

/* Page intro (secondary pages) */

.page-intro {
  padding: 80px 0 40px;
}

.page-intro h1 {
  margin-bottom: 0.4em;
}

.page-intro .updated {
  color: var(--light-blue);
  font-size: 0.9375rem;
  margin: 0;
}

/* Hero */

.hero {
  position: relative;
  color: var(--court);
  background: var(--night) url("/assets/img/squash-court.jpg") center / cover no-repeat;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6, 14, 39, 0.94) 0%, rgba(7, 24, 79, 0.86) 55%, rgba(7, 24, 79, 0.62) 100%);
  z-index: -1;
}

.hero-inner {
  padding: 120px 0 128px;
  max-width: 46rem;
}

.hero h1 {
  color: var(--court);
  font-size: clamp(2.75rem, 7vw, 5rem);
  margin-bottom: 0.35em;
}

.hero p {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: rgba(255, 248, 238, 0.86);
  max-width: 40rem;
  margin-bottom: 2rem;
}

.hero .eyebrow {
  color: var(--flash);
}

/* Grids and cards */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.card li {
  padding: 8px 0 8px 26px;
  position: relative;
  border-top: 1px solid var(--line);
}

.card li:first-child {
  border-top: 0;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--flash);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--court);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.pillar h3 {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flash);
  margin-bottom: 0.5rem;
}

.pillar p {
  font-size: 1.125rem;
  color: var(--navy);
  margin: 0;
}

/* CTA band */

.cta-band {
  background: var(--navy);
  color: var(--court);
  padding: 56px 0;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--court);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 0.25rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 248, 238, 0.78);
}

/* Testimonials */

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial {
  background: rgba(255, 248, 238, 0.06);
  border: 1px solid rgba(255, 248, 238, 0.14);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial blockquote {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  flex: 1;
}

.testimonial blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--flash);
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 248, 238, 0.4);
}

.testimonial-author strong {
  display: block;
  font-family: var(--font-display);
}

.testimonial-author span {
  font-size: 0.9375rem;
  color: rgba(255, 248, 238, 0.7);
}

/* Client logos */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.logo-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 128px;
  display: grid;
  place-items: center;
  padding: 24px;
}

.logo-tile img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.stat-number small {
  font-size: 0.55em;
  color: var(--flash);
  vertical-align: 0.25em;
  margin-left: 2px;
}

.stat-label {
  margin: 12px 0 0;
  color: var(--light-blue);
  font-weight: 500;
}

/* Feature rows */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}

.feature-row + .feature-row {
  border-top: 1px solid var(--line);
}

.feature-row.reverse .feature-media {
  order: 2;
}

.feature-media {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.feature-media img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

.feature-copy h2 {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
}

.feature-copy .kicker {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--flash);
  margin-bottom: 0.5rem;
}

/* Premium page */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tier {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.tier.featured {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}

.tier img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.tier-body {
  padding: 28px 28px 32px;
}

.tier-body .eyebrow {
  margin-bottom: 0.25rem;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.highlight {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.highlight h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.highlight p {
  margin: 0;
  color: var(--light-blue);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare th,
.compare td {
  padding: 14px 20px;
  text-align: left;
  border-top: 1px solid var(--line);
}

.compare thead th {
  border-top: 0;
  font-family: var(--font-display);
  background: var(--navy);
  color: var(--court);
}

.compare th:not(:first-child),
.compare td:not(:first-child) {
  text-align: center;
  width: 22%;
}

.compare .yes {
  color: var(--navy);
  font-weight: 700;
}

.compare .no {
  color: var(--line-strong);
}

.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}

/* FAQ */

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--navy);
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--flash);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-answer {
  padding: 0 0 24px;
  max-width: 44rem;
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

/* Legal content */

.page-legal .page-intro {
  padding-bottom: 8px;
}

.page-legal .section {
  padding-top: 24px;
}

.legal-content {
  font-size: 1rem;
}

.legal-content h2 {
  font-size: 1.375rem;
  margin: 2.25rem 0 0.75rem;
}

.legal-content p {
  margin-bottom: 1.1em;
}

.legal-content a {
  word-break: break-word;
}

/* Footer */

.site-footer {
  background: var(--night);
  color: rgba(255, 248, 238, 0.82);
  padding: 72px 0 32px;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 26rem;
}

.footer-mark {
  width: 48px;
  margin-bottom: 16px;
}

.footer-heading {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--court);
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a {
  color: rgba(255, 248, 238, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--flash);
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 248, 238, 0.14);
  color: rgba(255, 248, 238, 0.55);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}

/* Responsive */

@media (max-width: 960px) {
  .grid-3,
  .grid-4,
  .stats,
  .logo-grid,
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-row.reverse .feature-media {
    order: 0;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }

  .hero-inner {
    padding: 80px 0 88px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .stats,
  .pillars,
  .testimonials,
  .tier-grid,
  .highlights {
    grid-template-columns: 1fr;
  }

  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .logo-tile {
    height: 104px;
    padding: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    box-shadow: var(--shadow);
  }

  .site-nav a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .site-nav a.btn {
    margin-top: 12px;
    border-top: 0;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
