/* ==========================================================================
   The Pointbox — landing page
   Brand tokens derived from mijnpadelvideo (app.css) + pointbox-os,
   refined for marketing use. Font: Figtree (replaces Avenir Next).
   ========================================================================== */

:root {
  /* Brand */
  --pb-blue: #2455a1;
  --pb-blue-dark: #183665;
  --pb-navy: #0a1832;        /* page base — deeper than mpv's #040b14 for warmth with the photos */
  --pb-navy-soft: #102449;   /* raised surfaces */
  --pb-lime: #dff20a;        /* ACTION ONLY: CTAs and the single accent */
  --pb-orange: #f29100;
  --pb-blue-tint: #9ec3f5;   /* icon strokes — a lighter shade of the brand blue, never lime */
  --pb-white: #ffffff;
  --pb-ink: #0b1220;         /* text on lime */

  /* Text */
  --text-primary: #f2f6fc;
  --text-secondary: rgba(242, 246, 252, 0.74);
  --text-faint: rgba(242, 246, 252, 0.5);

  /* Type scale (fluid, 1.25 ratio at desktop) */
  --fs-900: clamp(2.1rem, 1.4rem + 3.2vw, 3.55rem);
  --fs-800: clamp(1.7rem, 1.25rem + 2vw, 2.6rem);
  --fs-700: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem);
  --fs-600: 1.17rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;

  /* Spacing (8px grid) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --section-pad: clamp(64px, 6vw + 32px, 120px);

  --radius: 16px;
  --radius-lg: 24px;
  --container: 1140px;
  --shadow-card: 0 12px 40px rgba(2, 8, 20, 0.35);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--pb-navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--space-2); letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--fs-900); font-weight: 800; }
h2 { font-size: var(--fs-800); font-weight: 800; }
h3 { font-size: var(--fs-600); font-weight: 700; }
p { margin: 0 0 var(--space-2); }
figure { margin: 0; }

.container {
  width: min(100% - 2 * clamp(20px, 4vw, 40px), var(--container));
  margin-inline: auto;
}

.eyebrow {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pb-lime);
  margin-bottom: var(--space-2);
}

.section-head { max-width: 760px; margin-bottom: var(--space-8); }
.section-cta { margin-top: var(--space-6); }

/* ---------- Buttons ----------
   Lime = action. Nothing else on the page is lime. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font: 700 1rem/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--pb-lime); outline-offset: 3px; }
.btn-primary {
  background: var(--pb-lime);
  color: var(--pb-ink);
  box-shadow: 0 8px 28px rgba(223, 242, 10, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(223, 242, 10, 0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  border-color: rgba(242, 246, 252, 0.35);
  color: var(--text-primary);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--text-primary); background: rgba(255, 255, 255, 0.06); }
.btn-sm { padding: 11px 22px; font-size: 0.92rem; }
.btn-block { width: 100%; }

.play-icon {
  width: 0; height: 0;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* ---------- Inline icons (SVG sprite) ---------- */
.icon-sprite { position: absolute; }
.ic {
  width: 26px;
  height: 26px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 24, 50, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: 14px;
}
.brand-logo { width: 132px; height: auto; }
.header-nav {
  display: flex;
  gap: var(--space-3);
  margin-left: auto;
}
.header-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.header-nav a:hover { color: var(--text-primary); }
@media (max-width: 760px) {
  .header-nav { display: none; }
  /* Tighten the header so logo + CTA + switcher fit one line on phones. */
  .header-inner { gap: 14px; }
  .brand-logo { width: 116px; }
  .btn-sm { padding: 10px 16px; }
  /* nav carries margin-left:auto on desktop; with it hidden, push the
     CTA + switcher group right. The switcher is last, so it stays flush-right
     and the CTA reveals into the reserved gap to its left (no shift). */
  .header-cta { margin-left: auto; }
  /* Compact, icon-only language switcher (the active language shows in the menu). */
  .lang-switcher-code,
  .lang-switcher-caret { display: none; }
  .lang-switcher summary { padding: 8px; gap: 0; }
}

/* ---------- Language switcher ---------- */
.lang-switcher { position: relative; }
.lang-switcher summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher summary:hover { color: var(--text-primary); border-color: rgba(255, 255, 255, 0.28); }
.lang-switcher summary:focus-visible { outline: 2px solid var(--pb-blue-tint); outline-offset: 2px; }
.lang-switcher-globe { width: 18px; height: 18px; }
.lang-switcher-code { letter-spacing: 0.03em; }
.lang-switcher-caret { width: 13px; height: 13px; transform: rotate(90deg); transition: transform 0.2s ease; opacity: 0.7; }
.lang-switcher[open] summary .lang-switcher-caret { transform: rotate(-90deg); }
.lang-switcher-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--pb-navy-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}
.lang-switcher-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: 600;
}
.lang-switcher-menu a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); }
.lang-switcher-menu a[aria-current="true"] { color: var(--pb-white); background: rgba(36, 85, 161, 0.32); }

/* ---------- Language suggestion banner (injected by js/i18n-banner.js) ---------- */
.lang-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 16px;
  background: var(--pb-blue);
  color: #fff;
  font-size: var(--fs-small);
  text-align: center;
}
.lang-banner-text { font-weight: 500; }
.lang-banner-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.lang-banner-link:hover { text-decoration: none; }
.lang-banner-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.8;
}
.lang-banner-close:hover { opacity: 1; }

/* Header CTA reveals only once the hero CTA has scrolled out of view (JS-driven).
   Gated behind .js so it stays visible if JavaScript is unavailable. */
.js .header-cta {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.js .header-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .js .header-cta { transform: none; transition: opacity 0.25s ease, visibility 0.25s; }
}

/* ---------- Hero (photo background + overlaid copy) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 78vh, 760px);
  padding-block: clamp(90px, 12vh, 132px) clamp(48px, 8vh, 92px);
  overflow: hidden;
  background: var(--pb-navy);
}
.hero-bg { position: absolute; inset: 0; margin: 0; z-index: 0; }
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 26%; /* her face + the Pointbox stay in frame, racket below */
}
/* Scrim: dark on the left for legible copy, clearing to the right to reveal the box;
   plus a soft fade to navy at the bottom so the hero melts into the logo strip. */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, var(--pb-navy) 0%, rgba(10, 24, 50, 0.94) 26%, rgba(10, 24, 50, 0.55) 54%, rgba(10, 24, 50, 0.2) 78%, rgba(10, 24, 50, 0.1) 100%),
    linear-gradient(to top, var(--pb-navy) 0%, rgba(10, 24, 50, 0) 32%);
}
.hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: 660px; }
.hero-copy .lead {
  font-size: var(--fs-700);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 40em;
  margin-bottom: var(--space-4);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
@media (max-width: 720px) {
  /* Photo stays a background here too. We serve the 4:5 crop (via <picture>) so the box
     is present, and keep the hero short enough that cover-cropping favours her + the box. */
  .hero {
    min-height: clamp(480px, 70vh, 600px);
    padding-block: clamp(92px, 15vh, 124px) clamp(40px, 7vh, 72px);
  }
  .hero-bg img { object-position: 80% 28%; }
  .hero-copy { max-width: none; }
  /* darker on the left/bottom for the copy, clearing toward the upper right so the box reads */
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(10, 24, 50, 0.28) 0%, rgba(10, 24, 50, 0.62) 72%, var(--pb-navy) 100%),
      linear-gradient(105deg, rgba(10, 24, 50, 0.8) 0%, rgba(10, 24, 50, 0.45) 48%, rgba(10, 24, 50, 0.12) 100%);
  }
}

/* ---------- Logo strip (auto-scrolling marquee) ---------- */
.logo-strip {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-6);
  background: var(--pb-navy);
  overflow: hidden;
}
.logo-strip-label {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.logo-marquee {
  position: relative;
  overflow: hidden; /* clip the track to the container width */
  /* fade the logos in/out at both edges */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.logo-track {
  display: flex;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: logo-scroll 40s linear infinite;
}
/* uniform trailing space (incl. after the 7th + 14th item) so translateX(-50%) loops seamlessly */
.logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-right: clamp(40px, 6vw, 84px);
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* Club logos — normalised to one white tint so the mixed-brand wall reads cohesively.
   brightness(0) invert(1) recolours any logo (light, dark or colour) to solid white. */
.logo-item img {
  height: 44px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
/* Round emblem: white-flatten would erase its inner detail, so desaturate to grey
   instead — colour-free, but the text/ball stay legible. Capped a touch smaller. */
.logo-item img.logo-img--badge {
  height: 40px;
  filter: grayscale(1) brightness(1.55) contrast(0.95);
}
.logo-marquee:hover .logo-item img { opacity: 0.95; }
.logo-strip-stat { margin: var(--space-4) 0 0; font-size: var(--fs-small); color: var(--text-faint); }
.logo-strip-stat strong { color: var(--text-secondary); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
  }
  .logo-item { margin-right: 0; }
  .logo-item--dup { display: none; } /* drop the duplicate set when not animating */
}

/* ---------- Problem ---------- */
.problem { padding-block: var(--section-pad); background: var(--pb-blue-dark); }
.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(var(--space-4), 5vw, var(--space-12));
  align-items: center;
}
.pain-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  display: grid;
  gap: var(--space-2);
  color: var(--text-secondary);
}
.pain-list li { padding-left: 28px; position: relative; }
.pain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 2px;
  background: var(--pb-orange);
}
.pivot { font-size: var(--fs-700); font-weight: 700; color: var(--pb-white); }
.problem-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (max-width: 880px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* ---------- How it works ---------- */
.how { padding-block: var(--section-pad); }
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-3), 3vw, var(--space-6));
}
.step figure { margin-bottom: var(--space-3); }
.step img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pb-blue);
  color: var(--pb-white);
  font-weight: 800;
  margin-bottom: var(--space-2);
}
.step p { color: var(--text-secondary); margin: 0; }
.privacy-note {
  margin-top: var(--space-6);
  color: var(--text-faint);
  font-size: var(--fs-small);
}
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; max-width: 560px; }
  .step { display: grid; grid-template-columns: 1fr; }
}

/* ---------- Benefits ---------- */
.benefits { padding-block: var(--section-pad); background: var(--pb-blue-dark); }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.benefit-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  background: var(--pb-navy-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(36, 85, 161, 0.22);
  border: 1px solid rgba(110, 160, 232, 0.25);
  color: var(--pb-blue-tint);
  margin-bottom: var(--space-2);
}
.benefit-card h3 { margin: 0; font-size: var(--fs-700); }
.benefit-card p { color: var(--text-secondary); margin: 0; }
@media (max-width: 760px) {
  .benefit-grid { grid-template-columns: 1fr; }
}

/* ---------- Sponsor band (monetisation spotlight) ---------- */
.sponsor {
  padding-block: var(--section-pad);
  background:
    radial-gradient(700px 500px at 90% 8%, rgba(36, 85, 161, 0.55), transparent 60%),
    linear-gradient(160deg, #1c437f 0%, #142f59 100%);
}
.sponsor-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(var(--space-4), 5vw, var(--space-12));
  align-items: center;
}
.sponsor-copy p {
  color: rgba(242, 246, 252, 0.82);
  font-size: var(--fs-600);
  margin-bottom: var(--space-4);
}
.sponsor-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
@media (max-width: 880px) {
  .sponsor-grid { grid-template-columns: 1fr; }
  .sponsor-media { order: -1; }
}

/* ---------- Proof ---------- */
.proof {
  position: relative;
  padding-block: var(--section-pad);
  overflow: hidden;
  background: var(--pb-navy); /* shown on mobile below the photo band; hidden behind the cover on desktop */
}
.proof-bg { position: absolute; inset: 0; }
.proof-bg picture { display: block; width: 100%; height: 100%; }
.proof-bg img { width: 100%; height: 100%; object-fit: cover; }
.proof-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 24, 50, 0.93) 0%, rgba(10, 24, 50, 0.82) 100%);
}
.proof-inner { position: relative; }

/* Mobile: a full cover would clip the box, so the photo (via <picture>) backs only the
   heading — a compact "header card". The box sits behind the title and fades into the
   testimonials below; no dedicated photo block eating vertical space. */
@media (max-width: 720px) {
  .proof {
    padding-top: 0;
    background:
      radial-gradient(640px 440px at 82% 12%, rgba(36, 85, 161, 0.25), transparent 60%),
      var(--pb-navy);
  }
  .proof-bg { bottom: auto; height: clamp(228px, 60vw, 288px); }
  .proof-bg img { object-position: center 40%; }
  .proof-bg::after {
    background: linear-gradient(180deg, rgba(10, 24, 50, 0.16) 0%, rgba(10, 24, 50, 0.5) 56%, var(--pb-navy) 100%);
  }
  .proof .section-head {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(228px, 60vw, 288px);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-2);
  }
}

/* Testimonial carousel — one card in view, the next peeks + fades to signal more */
/* Fills the container like every other section; one card leads, the next peeks wide. */
.testi { position: relative; margin: 0 0 var(--space-8); }
.testi-viewport {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* fade only the right edge, where the peeking card is actually clipped */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent);
}
.testi-viewport::-webkit-scrollbar { display: none; }
.testi-track {
  display: flex;
  align-items: stretch;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.testi-card {
  flex: 0 0 64%; /* one card leads; the next peeks ~half on wide screens */
  scroll-snap-align: start;
  display: flex;
}
.testi-card blockquote {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: var(--space-4);
  background: rgba(16, 36, 73, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
}
.testi-quote {
  font-size: var(--fs-700);
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 var(--space-3);
}
.testi-author { display: flex; align-items: center; gap: var(--space-2); margin-top: auto; }
.testimonial-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--pb-blue); /* fallback while the portrait loads */
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.testi-author div { display: grid; line-height: 1.3; }
.testi-author span:last-child { color: var(--text-faint); font-size: var(--fs-small); }

/* Controls: dots (position) on the left, prev/next arrows on the right.
   JS-only — the cards stay swipe/scrollable without it. */
.testi-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.js .testi-controls { display: flex; }
.testi-dots { display: flex; align-items: center; gap: 10px; }
.testi-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.testi-dot:hover { background: rgba(255, 255, 255, 0.5); }
.testi-dot[aria-current="true"] { width: 24px; background: var(--pb-white); }
.testi-dot:focus-visible { outline: 3px solid var(--pb-lime); outline-offset: 3px; }

.testi-arrows { display: flex; gap: var(--space-1); }
.testi-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.testi-arrow:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.35); }
.testi-arrow:focus-visible { outline: 3px solid var(--pb-lime); outline-offset: 3px; }
.testi-arrow:disabled { opacity: 0.3; cursor: default; }
.testi-arrow .ic { width: 20px; height: 20px; }
.testi-prev .ic { transform: rotate(180deg); }
@media (max-width: 880px) {
  .testi-card { flex-basis: 76%; }
}
@media (max-width: 560px) {
  .testi-card { flex-basis: 88%; }
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin: 0;
  max-width: 820px;
}
.stats-band div {
  background: rgba(16, 36, 73, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-align: center;
}
.stats-band dt {
  font-size: var(--fs-small);
  color: var(--text-faint);
  order: 2;
}
.stats-band dd {
  margin: 0 0 4px;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 800;
  color: var(--pb-white);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .stats-band { grid-template-columns: 1fr; }
}

/* ---------- System ---------- */
.system { padding-block: var(--section-pad); background: var(--pb-blue-dark); }
.system-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(var(--space-4), 5vw, var(--space-8));
  align-items: center;
  margin-bottom: var(--space-8);
}
.system-photo img {
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 2; /* close to the wide installation shot — keeps all hardware in frame */
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
.component-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.component-list li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}
.component-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(36, 85, 161, 0.25);
  border: 1px solid rgba(110, 160, 232, 0.22);
  color: var(--pb-blue-tint);
}
.component-list h3 { margin: 0 0 2px; font-size: var(--fs-600); }
.component-list p { margin: 0; color: var(--text-secondary); }
.system-features-head { margin-bottom: var(--space-4); }
.system-features-title { margin: 0; font-size: var(--fs-700); }
.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-2);
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  background: var(--pb-navy-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(36, 85, 161, 0.22);
  border: 1px solid rgba(110, 160, 232, 0.25);
  color: var(--pb-blue-tint);
  margin-bottom: var(--space-1);
}
.feature-icon .ic { width: 22px; height: 22px; }
.feature-card h4 {
  margin: 0;
  font-size: var(--fs-600);
  line-height: 1.2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.feature-card p { margin: 0; color: var(--text-secondary); font-size: var(--fs-small); }
.feature-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--pb-blue-tint);
  background: rgba(110, 160, 232, 0.14);
  border: 1px solid rgba(110, 160, 232, 0.3);
}
/* Collapsible "show more": the extra features animate open via a 0fr→1fr grid
   row. Gated behind .js so the full list is always visible without JavaScript. */
.feature-extra-inner { padding-top: var(--space-2); }
.js .feature-extra {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s ease;
}
.js .feature-extra[data-open="true"] { grid-template-rows: 1fr; }
.js .feature-extra-inner { overflow: hidden; min-height: 0; }
.feature-toggle-row {
  display: none; /* JS-only control */
  justify-content: center;
  margin-top: var(--space-3);
}
.js .feature-toggle-row { display: flex; }
.feature-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--pb-white);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.feature-toggle:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.feature-toggle:focus-visible { outline: 2px solid var(--pb-blue-tint); outline-offset: 2px; }
.feature-toggle-chev {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}
.feature-toggle[aria-expanded="true"] .feature-toggle-chev { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) {
  .js .feature-extra { transition: none; }
  .feature-toggle-chev { transition: none; }
}
@media (max-width: 760px) {
  .system-grid { grid-template-columns: 1fr; }
}

/* ---------- Pricing + FAQ ---------- */
.pricing-faq { padding-block: var(--section-pad); background: var(--pb-navy); }
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(var(--space-4), 5vw, var(--space-12));
  align-items: start;
}
.pricing-copy p:not(.eyebrow) { color: var(--text-secondary); margin-bottom: var(--space-2); }
.pricing-copy p:not(.eyebrow):last-of-type { margin-bottom: var(--space-4); }
.faq-title { margin-bottom: var(--space-3); }
.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--pb-lime);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-secondary); padding-bottom: var(--space-2); margin: 0; }
@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding-block: var(--section-pad);
  background:
    radial-gradient(800px 500px at 50% 120%, rgba(36, 85, 161, 0.55), transparent 70%),
    var(--pb-navy);
}
.cta-inner {
  display: grid;
  gap: var(--space-4);
  justify-items: center;
  text-align: center;
}
.cta-copy { max-width: 660px; }
.cta-copy p { color: var(--text-secondary); font-size: var(--fs-600); }
.cta-booking {
  width: 100%;
  max-width: 480px;
  margin-top: var(--space-3);
  background: #fff; /* Calendly free plan renders a light widget; white card makes it intentional */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden; /* clip the Calendly iframe to the card's rounded corners */
}
.cta-booking .calendly-inline-widget { border-radius: inherit; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.07); padding-block: var(--space-6); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}
.footer-logo { width: 110px; opacity: 0.85; }
.site-footer nav { display: flex; gap: var(--space-3); margin-left: auto; }
.site-footer nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: 600;
}
.site-footer nav a:hover { color: var(--text-primary); }
.footer-legal { width: 100%; display: grid; gap: 6px; }
.footer-meta {
  margin: 0;
  font-style: normal; /* <address> defaults to italic */
  color: var(--text-faint);
  font-size: var(--fs-small);
  line-height: 1.6;
  overflow-wrap: break-word;
}
.footer-meta a { color: var(--text-secondary); text-decoration: none; }
.footer-meta a:hover { color: var(--text-primary); }
.footer-copy { margin: 0; color: var(--text-faint); font-size: var(--fs-small); }
@media (max-width: 560px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .site-footer nav { margin-left: 0; flex-wrap: wrap; }
}

/* ---------- Reveal on scroll (subtle, content never hidden without JS) ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .faq summary::after { transition: none; }
  .testi-viewport { scroll-behavior: auto; }
  .testi-dot { transition: none; }
}
