/* SportsClubHub365 marketing site (sportsclubhub365.com).
   Family style from ClubHub365: night ground, big light Archivo, Atkinson for
   reading, Outfit for the name with 365 in green. SportsClubHub's colour runs
   from black into pitch green, as its icon does.
   The one moving thing: the hero's browser frame shows the same site design in
   three invented clubs' colours, in turn. No scripts. */

:root {
  --night: #040605;
  --night-2: #08130f;
  --ink: #eef4ee;
  --ink-soft: #a9bcb1;
  --ink-faint: #74897d;
  --line: rgba(233, 242, 234, 0.14);
  --green: #6fd39b;
  --leaf: #66983f;
  --deep: #0b6049;

  --measure: 62ch;
  --page: min(100% - 2.5rem, 76rem);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #a6ecc4;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: inherit;
}

.wrap {
  width: var(--page);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--night);
}

.skip:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── type ─────────────────────────────────────────────────────────────── */
.display {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 250;
  font-stretch: 100%;
  font-size: clamp(3.4rem, 9vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.display-2 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 250;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.section-title {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 1.6rem 0 0;
}

.section-lede {
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 1.2rem 0 0;
}

/* ── brand, top bar ───────────────────────────────────────────────────── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand .mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  outline: 1px solid rgba(111, 211, 155, 0.25);
  outline-offset: -1px;
}

.word {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.word span {
  color: var(--green);
}

.topbar {
  width: var(--page);
  margin-inline: auto;
  padding-block: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a:not(.talk):hover,
.nav a[aria-current='page'] {
  color: var(--green);
}

.talk {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.3rem;
  border-radius: 999px;
  background: var(--green);
  color: #062113 !important;
}

.talk:hover {
  background: #a6ecc4;
}

/* ── buttons ──────────────────────────────────────────────────────────── */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.1rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
  background: rgba(238, 244, 238, 0.05);
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #062113;
}

.button.primary:hover {
  background: #a6ecc4;
  color: #062113;
}

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--night);
}

.glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70vmax 50vmax at 88% 70%, rgba(20, 128, 90, 0.42), transparent 62%),
    radial-gradient(50vmax 36vmax at 10% 0%, rgba(40, 52, 46, 0.5), transparent 60%),
    linear-gradient(135deg, #040605 0%, #08130f 50%, #0a2e24 100%);
}

.hero-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(1.5rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem);
}

/* The browser frame and the three clubs. */
.browser {
  margin: 0;
  border-radius: 14px;
  background: #11161a;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-9deg) rotateX(3deg);
  transform-origin: 30% 50%;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.9rem;
  background: #1a2025;
}

.dots {
  display: flex;
  gap: 0.4rem;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a434b;
}

.address {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #0d1114;
  font-size: 0.82rem;
  color: #c9d3cc;
}

.lock {
  flex: none;
  width: 9px;
  height: 8px;
  border-radius: 2px;
  background: var(--green);
  position: relative;
  top: 2px;
}

.lock::before {
  content: '';
  position: absolute;
  left: 1.5px;
  top: -5px;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--green);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  box-sizing: border-box;
}

.hosts {
  position: relative;
  flex: 1;
  height: 1.3em;
  min-width: 0;
}

.hosts span {
  position: absolute;
  inset: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sites {
  position: relative;
  aspect-ratio: 4 / 3.1;
}

.site {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--tint);
  color: #15201a;
}

.site-1 { --c1: #0f6b47; --c2: #8cc63f; --btn: #0e6a45; --crest: #0e6a45; --tint: #eef5ef; }
.site-2 { --c1: #14275e; --c2: #3a6fd0; --btn: #14275e; --crest: #f2b632; --tint: #eef1f8; }
.site-3 { --c1: #6d1834; --c2: #d0497a; --btn: #6d1834; --crest: #6d1834; --tint: #f8eef2; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
}

.site-nav b {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--crest);
  margin-right: auto;
}

.site-nav i {
  width: 2.6rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(21, 32, 26, 0.16);
}

.site-banner {
  margin: 0 1rem;
  height: 34%;
  border-radius: 10px;
  background: linear-gradient(110deg, var(--c1), var(--c2));
  overflow: hidden;
}

.site-banner svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 1.6rem 1.4rem 1rem;
}

.crest {
  position: absolute;
  top: -1.6rem;
  right: 1.6rem;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--crest);
  color: #fff;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 0 0 0 4px var(--tint);
}

.site-2 .crest {
  color: #14275e;
}

.site-body strong {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.site-body em {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(21, 32, 26, 0.62);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0.4rem;
}

.pills i {
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(21, 32, 26, 0.16);
}

.pills i.on {
  background: var(--btn);
  border-color: var(--btn);
  color: #fff;
}

.rows {
  display: grid;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.5rem;
}

.rows i {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(21, 32, 26, 0.1);
}

.rows i:nth-child(2) { width: 82%; }
.rows i:nth-child(3) { width: 64%; }

/* Fifteen seconds a round, five per club. */
@media (prefers-reduced-motion: no-preference) {
  .site,
  .hosts span {
    animation: club 15s ease-in-out infinite both;
  }

  .site-2,
  .hosts span:nth-child(2) { animation-delay: 5s; }

  .site-3,
  .hosts span:nth-child(3) { animation-delay: 10s; }

  @keyframes club {
    0% { opacity: 0; }
    4%, 31% { opacity: 1; }
    35%, 100% { opacity: 0; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site:not(.site-1),
  .hosts span:not(:first-child) { display: none; }
}

/* ── bands ────────────────────────────────────────────────────────────── */
.band {
  padding-block: clamp(4.5rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
}

.band-alt {
  background: var(--night-2);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.prose {
  max-width: var(--measure);
  color: var(--ink-soft);
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose strong {
  color: var(--ink);
}

.lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem 2.4rem;
  margin: 0;
}

.lists dt,
.addresses dt {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  padding-top: 0.8rem;
  border-top: 2px solid var(--deep);
}

.lists dd,
.addresses dd {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}

.phones-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.6rem);
  margin-top: clamp(3rem, 7vw, 5rem);
}

.phone {
  margin: 0;
  padding: 7px;
  border-radius: 26px;
  background: #0b0f12;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px #2b3440;
}

.phone img {
  display: block;
  border-radius: 20px;
}

.phones-row .phone:nth-child(even) {
  transform: translateY(2.2rem);
}

.screen {
  margin-top: clamp(3rem, 7vw, 5rem);
}

.screen img {
  display: block;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.addresses {
  display: grid;
  gap: 1.4rem;
  margin: 1.6rem 0 1.8rem;
}

.addresses dd b {
  color: var(--green);
  font-weight: 700;
}

.tree,
.tree ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tree {
  margin: 1.6rem 0 1.8rem;
  color: var(--ink);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.1rem;
}

.tree ol {
  margin-left: 0.6rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--deep);
}

.tree li {
  padding-top: 0.55rem;
}

.first {
  padding-block: clamp(5rem, 12vw, 9rem);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60vmax 40vmax at 85% 100%, rgba(20, 128, 90, 0.35), transparent 60%),
    var(--night);
}

/* ── inner pages ──────────────────────────────────────────────────────── */
.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}

.page-body {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(4rem, 9vw, 7rem);
}

.page-body h2 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 2.4rem 0 0.8rem;
}

.page-body ul {
  padding-left: 1.2rem;
}

/* ── footer ───────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.9rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}

.footer a {
  color: var(--ink-soft);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.footer-top p {
  margin: 0.9rem 0 0;
  max-width: 34ch;
}

.footer h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.7rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li + li {
  margin-top: 0.45rem;
}

.footer-cert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1.6rem;
}

.ce-badge {
  width: 84px;
  height: 84px;
  border: 0;
  flex: none;
}

.footer-legal {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
}

.footer-legal p {
  margin: 0;
  line-height: 1.7;
}

.footer-maker img {
  display: block;
  width: 121px;
  height: auto;
}

/* ── small screens ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-body,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .browser {
    transform: none;
  }

  .phones-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 1rem;
  }

  .nav .nav-extra {
    display: none;
  }

  .word {
    font-size: 1.1rem;
  }

  .brand .mark {
    width: 34px;
    height: 34px;
  }

  .talk {
    padding: 0 1rem;
  }

  .lists {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-legal {
    flex-direction: column;
  }
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.page-body .prose {
  width: var(--page);
  max-width: none;
}

.page-body .prose > * {
  max-width: var(--measure);
}

/* ── sign-up form ─────────────────────────────────────────────────────── */
.first-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.first-alt {
  margin-top: 1.6rem;
  color: var(--ink-faint);
  font-size: 0.95rem;
}

.first-alt a {
  color: var(--ink-soft);
}

.signup {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(8, 19, 15, 0.72);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.signup label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.signup .optional {
  font-weight: 400;
  color: var(--ink-faint);
}

.signup input,
.signup select,
.signup textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--night);
  color: var(--ink);
  font: inherit;
}

.signup textarea {
  resize: vertical;
}

.signup input::placeholder,
.signup textarea::placeholder {
  color: var(--ink-faint);
}

.signup input:focus-visible,
.signup select:focus-visible,
.signup textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: transparent;
}

.signup .consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-weight: 400;
  color: var(--ink-soft);
}

.signup .consent input {
  width: 1.15rem;
  min-height: 0;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--green);
}

.signup .consent a {
  color: var(--ink);
}

.signup .button {
  justify-self: start;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .first-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.footer a {
  overflow-wrap: anywhere;
}

.demo-sports {
  margin-top: 1.1rem;
  color: var(--ink-faint);
  font-size: 0.95rem;
}

.demo-sports a {
  color: var(--ink-soft);
}
