/* ==========================================================================
   LIVE GYM SCORER - PREMIUM VISUAL LAYER
   Loaded after conversion-refresh.css. Single accent (blue), one neutral
   family (slate/navy), restrained surfaces. Remove this file to revert.
   ========================================================================== */

:root {
  --lgs-accent: #1d5fe6;
  --lgs-accent-hover: #164fc4;
  --lgs-ink: #0b1727;
  --lgs-ink-soft: #3d4b5f;
  --lgs-line: #e3e8ef;
  --lgs-surface: #f6f8fb;
  --lgs-shadow-tint: 11, 23, 39;
  --lgs-section-y: clamp(4rem, 7vw, 6.5rem);
  --lgs-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }
body { background: #ffffff; text-rendering: optimizeLegibility; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* --- Buttons: square-ish, tactile, one accent --- */
.btn {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background-color 0.18s var(--lgs-ease), border-color 0.18s var(--lgs-ease),
    box-shadow 0.18s var(--lgs-ease), transform 0.12s var(--lgs-ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--lgs-accent);
  border-color: var(--lgs-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 16px -6px rgba(29, 95, 230, 0.55);
}
.btn-primary:hover {
  background: var(--lgs-accent-hover);
  border-color: var(--lgs-accent-hover);
}
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--lgs-accent);
  outline-offset: 3px;
}

/* --- Header --- */
.site-header { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav-link { font-weight: 500; letter-spacing: -0.005em; }

/* --- Hero: dark, product framed as the focal point --- */
body #hero {
  background:
    radial-gradient(60rem 36rem at 82% 40%, rgba(29, 95, 230, 0.22), transparent 62%),
    linear-gradient(180deg, #08162a 0%, #0b1727 100%) !important;
  color: #ffffff;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(3.5rem, 6vw, 5.5rem) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body #hero .hero-split-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr) !important;
  gap: clamp(2rem, 5vw, 4.5rem) !important;
  min-height: 0 !important;
  align-items: center !important;
}
body #hero .hero-content-col { padding: 0 !important; }
body #hero .hero-content-col h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 4.4vw, 4.1rem) !important;
  font-weight: 800;
  line-height: 1.04 !important;
  letter-spacing: -0.04em !important;
  text-transform: none !important;
  margin-bottom: 1.5rem !important;
}
body #hero .hero-content-col p {
  color: #b6c3d6 !important;
  font-size: clamp(1.05rem, 1.25vw, 1.2rem) !important;
  line-height: 1.6 !important;
  max-width: 31rem;
  margin-bottom: 2rem !important;
}
body #hero .hero-cta-group { gap: 0.75rem 1rem !important; align-items: center; }
body #hero .hero-cta-group .hero-cta-btn {
  font-size: 0.95rem !important;
  padding: 0.85rem 1.35rem !important;
}
body #hero .btn-secondary {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: none;
}
body #hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}
body #hero .hero-cta-link { color: #9cc0ff; }
body #hero .hero-assurance { color: #8fa1b8; font-size: 0.875rem; margin-top: 1.5rem; }

body #hero .hero-visual-card {
  border-radius: 14px !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 40px 90px -30px rgba(29, 95, 230, 0.45),
    0 24px 48px -24px rgba(0, 0, 0, 0.6) !important;
  background: #0b1727 !important;
}
body #hero .hero-image-wrapper { overflow: hidden !important; border-radius: 0 !important; }
body #hero .hero-arena-img {
  clip-path: none !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 10;
  object-position: 55% center;
}

/* --- Proof band --- */
.proof-section {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  background: #ffffff;
  border-bottom: 1px solid var(--lgs-line);
}
.testimonial-quote-text {
  font-size: clamp(1.3rem, 2vw, 1.75rem) !important;
  line-height: 1.45 !important;
  color: var(--lgs-ink) !important;
  letter-spacing: -0.02em;
}
.testimonial-crest-wrap { border-radius: 10px; }

/* --- Pain strip: calmer, sentence case --- */
.pain-strip-section { padding: clamp(2.5rem, 4vw, 3.5rem) 0; }
.pain-resolution-banner {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  max-width: none;
  padding: 1.5rem 0 0;
}
.pain-resolution-title {
  text-transform: none;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- Section rhythm and headings --- */
.section, .pricing-section-wrap, .wifi-resilience-section {
  padding-top: var(--lgs-section-y) !important;
  padding-bottom: var(--lgs-section-y) !important;
}
.section-title, #how-it-works h2, #day-flow h2, #interactive-demo h2, #faqs h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.7rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.1 !important;
  text-transform: none !important;
  color: var(--lgs-ink);
}
.section-dark .section-title, .section-dark h2 { color: #ffffff; }
.section-description {
  font-size: 1.075rem;
  color: var(--lgs-ink-soft);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.section-alt { background: var(--lgs-surface); }

/* --- How it works: open columns instead of five boxes --- */
#how-it-works .card,
#how-it-works .card-elevated {
  background: transparent !important;
  border: 0 !important;
  border-top: 2px solid var(--lgs-ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1.25rem 0.25rem 0 !important;
}
#how-it-works .card h3 {
  font-size: 1.15rem !important;
  letter-spacing: -0.02em;
}
#how-it-works .card > div:first-child {
  color: var(--lgs-accent) !important;
  letter-spacing: 0.06em;
  font-weight: 700 !important;
}

/* --- Wi-Fi notice: quiet inline note, not a dark slab --- */
.wifi-resilience-box {
  background: var(--lgs-surface) !important;
  border: 1px solid var(--lgs-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
.wifi-resilience-box h2 { color: var(--lgs-ink) !important; }
.wifi-resilience-box p { color: var(--lgs-ink-soft) !important; }
.wifi-resilience-box .wifi-icon-large {
  background: #ffffff !important;
  color: var(--lgs-accent) !important;
  border: 1px solid var(--lgs-line) !important;
}

/* --- Pricing --- */
.pricing-card {
  border: 1px solid var(--lgs-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
  transition: border-color 0.2s var(--lgs-ease), box-shadow 0.2s var(--lgs-ease);
}
.pricing-card:hover { box-shadow: 0 18px 40px -24px rgba(var(--lgs-shadow-tint), 0.35); }
.pricing-card-featured {
  border: 1.5px solid var(--lgs-accent);
  box-shadow: 0 28px 60px -32px rgba(29, 95, 230, 0.5);
}
.free-test-banner { border-radius: 12px; }

/* --- FAQ and footer-adjacent surfaces --- */
.faq-item { border-color: var(--lgs-line); }

@media (max-width: 900px) {
  body #hero .hero-split-grid { grid-template-columns: 1fr !important; }
  body #hero .hero-content-col h1 { font-size: clamp(2.2rem, 9vw, 2.8rem) !important; }
  body #hero .hero-arena-img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .pricing-card { transition: none; }
}

/* Older hero rules stretch the card to full column height; size to the image. */
body #hero .hero-stats-col { align-self: center !important; display: block !important; }
body #hero .hero-visual-card,
body #hero .hero-image-wrapper { height: auto !important; max-height: none !important; }
body #hero .hero-arena-img { min-height: 0 !important; height: auto !important; }

/* --- Trusted by: scrolling logo banner --- */
.trusted-label {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--lgs-ink-soft) !important;
  margin: 0 0 1.75rem !important;
}
.trusted-label::after { content: ":"; }

.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: lgs-marquee 36s linear infinite;
}
.logo-marquee:hover .logo-marquee-track,
.logo-marquee:focus-within .logo-marquee-track { animation-play-state: paused; }
.logo-marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 clamp(1.5rem, 3.5vw, 3rem);
}
.logo-item img,
.testimonial-card-logo img {
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.logo-item img, .testimonial-card-logo img { height: 64px; border-radius: 10px; }
/* South Essex crest is transparent line art: seat it on a matching white tile */
img[src$="south-essex-official.webp"] { background: #ffffff; border: 1px solid var(--lgs-line); padding: 3px; box-sizing: border-box; width: 64px; }
.logo-item img { transition: transform 0.2s var(--lgs-ease); }
.logo-item img:hover { transform: translateY(-2px); }
.logo-wordmark {
  display: inline-flex;
  align-items: center;
  height: 64px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lgs-ink-soft);
  white-space: nowrap;
}
@keyframes lgs-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Testimonials: centred cards in a scrollable carousel --- */
.testimonial-carousel { position: relative; max-width: 1080px; margin: 0 auto; }
.testimonial-grid {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 6px;
  outline-offset: 4px;
}
.testimonial-grid::-webkit-scrollbar { display: none; }
.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -22px;
  color: var(--lgs-ink);
  background: #ffffff;
  border: 1px solid var(--lgs-line);
  border-radius: 10px;
  box-shadow: 0 10px 24px -12px rgba(var(--lgs-shadow-tint), 0.45);
  cursor: pointer;
  transition: opacity 0.18s var(--lgs-ease), transform 0.12s var(--lgs-ease), border-color 0.18s var(--lgs-ease);
}
.carousel-btn:hover:not(:disabled) { border-color: var(--lgs-ink-soft); }
.carousel-btn:active:not(:disabled) { transform: scale(0.95); }
.carousel-btn:disabled { opacity: 0; pointer-events: none; }
.carousel-prev { left: 6px; }
.carousel-next { right: 6px; }
@media (min-width: 1180px) {
  .carousel-prev { left: -22px; }
  .carousel-next { right: -22px; }
}
.testimonial-card {
  flex: 0 0 min(380px, 82%);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  margin: 0;
  padding: 2rem 1.75rem;
  text-align: center;
  background: var(--lgs-surface);
  border: 1px solid var(--lgs-line);
  border-radius: 14px;
}
.testimonial-card-logo { display: flex; align-items: center; justify-content: center; height: 64px; }
.testimonial-card-quote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--lgs-ink);
  text-wrap: pretty;
}
.testimonial-card-name {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lgs-ink-soft);
}
.testimonial-card[data-placeholder] .testimonial-card-quote { color: var(--lgs-ink-soft); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
  .logo-marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .logo-marquee-group[aria-hidden="true"] { display: none; }
}

/* --- Skip link: visible on keyboard focus only --- */
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--lgs-accent);
  border-radius: 8px;
  transform: translateY(-200%);
  transition: transform 0.15s var(--lgs-ease);
}
.skip-link:focus { transform: translateY(0); outline: 2px solid #ffffff; outline-offset: 2px; }

/* --- Real-venue photo band --- */
.venue-section { padding: var(--lgs-section-y) 0; background: var(--lgs-surface); border-bottom: 1px solid var(--lgs-line); }
.venue-title { text-align: center; margin: 0 0 clamp(1.75rem, 3vw, 2.5rem) !important; }
.venue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.venue-figure { margin: 0; }
.venue-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--lgs-line);
  box-shadow: 0 24px 48px -32px rgba(var(--lgs-shadow-tint), 0.45);
}
.venue-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lgs-ink-soft);
  text-align: center;
}
@media (max-width: 900px) {
  .venue-grid { grid-template-columns: 1fr; max-width: 520px; }
  .venue-grid li:nth-child(n) { margin-top: 0; }
  .venue-figure img { aspect-ratio: 4 / 3; }
}
