/* Tredia landing — docs/design/screens/25-landing.md.
   Static site without a build: the tokens below are a subset of apps/web/src/design/tokens.css
   («Pabellón 2.0», design-system-v3 §2). Keep them in sync; never invent values here. */

@font-face {
  font-family: 'Instrument Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url('fonts/instrument-sans-latin-wght-normal.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Big Shoulders Display Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/big-shoulders-display-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  color-scheme: light;

  --pb-bg: #f3f5f9;
  --pb-surface: #ffffff;
  --pb-surface-2: #f3f5f9;
  --pb-border: #e3e8f0;
  --pb-text: #0e1a33;
  --pb-text-2: #3f4b66;
  --pb-text-3: #5b6780;

  --pb-hero-bg: #14213d;
  --pb-hero-raised: #24375f;
  --pb-hero-text: #ffffff;
  --pb-hero-text-2: #b8c2d6;
  --pb-hero-accent: #ff8a3d;
  --pb-board-cell: #0b1426;
  --pb-board-border: #2a3c63;

  --pb-accent: #e8590c;
  --pb-accent-fill: #c2410c;
  --pb-on-accent: #ffffff;
  --pb-accent-text: #c2410c;
  --pb-gold: #f5b70a;
  --pb-gold-soft: #fef3c7;
  --pb-gold-text: #92400e;
  --pb-success-text: #15803d;

  --pb-font-ui:
    'Instrument Sans Variable', 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pb-font-display:
    'Big Shoulders Display Variable', 'Big Shoulders Display', 'Arial Narrow', sans-serif;

  --pb-text-sm: 14px;
  --pb-text-md: 16px;
  --pb-text-lg: 18px;
  --pb-text-xl: 22px;
  --pb-display-sm: 32px;
  --pb-display-md: 48px;
  --pb-display-page: 40px;
  --pb-display-claim: 60px;
  --pb-tracking-caps: 0.08em;

  --pb-space-1: 4px;
  --pb-space-2: 8px;
  --pb-space-3: 12px;
  --pb-space-4: 16px;
  --pb-space-5: 20px;
  --pb-space-6: 24px;
  --pb-space-8: 32px;
  --pb-space-10: 40px;
  --pb-space-12: 48px;
  --pb-space-16: 64px;
  --pb-page-gutter: 16px;
  --pb-tap-min: 44px;

  --pb-radius-control: 16px;
  --pb-radius-card: 22px;
  --pb-radius-hero: 24px;
  --pb-radius-pill: 999px;
  --pb-shadow-2: 0 8px 24px rgb(20 33 61 / 0.16);

  --pb-duration-press: 120ms;
  --pb-duration-sheet: 200ms;
  --pb-duration-enter: 320ms;

  /* Sport chips (design-system-v3 §2, «Acento por deporte»). */
  --pb-chip-basketball-bg: #ffe4d2;
  --pb-chip-basketball-text: #9a3412;
  --pb-chip-futsal-bg: #cffafe;
  --pb-chip-futsal-text: #155e75;
  --pb-chip-handball-bg: #ecfccb;
  --pb-chip-handball-text: #3f6212;
  --pb-chip-volleyball-bg: #ede9fe;
  --pb-chip-volleyball-text: #5b21b6;

  --lp-container: 1120px;
  --lp-header-h: 64px;
  --lp-phone-w: 260px;
  --lp-phone-sm-w: 160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--lp-header-h) + var(--pb-space-4));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--pb-bg);
  color: var(--pb-text);
  font-family: var(--pb-font-ui);
  font-size: var(--pb-text-md);
  line-height: 1.5;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

:focus-visible {
  outline: 3px solid var(--pb-accent-fill);
  outline-offset: 3px;
  border-radius: 6px;
}

.lp-skip {
  position: absolute;
  left: var(--pb-space-4);
  top: -100px;
  z-index: 100;
  padding: var(--pb-space-3) var(--pb-space-4);
  background: var(--pb-surface);
  border-radius: var(--pb-radius-control);
  font-weight: 700;
}

.lp-skip:focus {
  top: var(--pb-space-3);
}

.lp-container {
  width: 100%;
  max-width: var(--lp-container);
  margin: 0 auto;
  padding: 0 var(--pb-page-gutter);
}

.lp-narrow {
  max-width: 760px;
}

.lp-center {
  text-align: center;
}

.lp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Typography */

.lp-display {
  font-family: var(--pb-font-display);
  font-size: var(--pb-display-md);
  font-weight: 900;
  line-height: 0.95;
  text-wrap: balance;
}

.lp-title {
  font-family: var(--pb-font-display);
  font-size: var(--pb-display-page);
  font-weight: 900;
  line-height: 1;
  text-wrap: balance;
  margin-bottom: var(--pb-space-8);
}

.lp-title--inverse {
  color: var(--pb-hero-text);
  margin-bottom: var(--pb-space-4);
}

.lp-caps {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--pb-tracking-caps);
  text-transform: uppercase;
  margin-bottom: var(--pb-space-3);
}

.lp-caps--accent {
  color: var(--pb-accent-text);
}

.lp-caps--hero {
  color: var(--pb-hero-accent);
}

.lp-caps--gold {
  color: var(--pb-gold);
}

.lp-lead {
  color: var(--pb-text-2);
  font-size: var(--pb-text-lg);
  margin: calc(var(--pb-space-4) * -1) auto var(--pb-space-8);
  max-width: 560px;
}

/* Buttons (design-system-v3 §4: primary 56 px, radius 16) */

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--pb-space-2);
  min-height: 56px;
  padding: 0 var(--pb-space-6);
  border-radius: var(--pb-radius-control);
  font-size: var(--pb-text-md);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--pb-duration-sheet) ease,
    transform var(--pb-duration-press) ease;
}

.lp-btn:active {
  transform: scale(0.98);
}

.lp-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-btn--primary {
  background: var(--pb-accent-fill);
  color: var(--pb-on-accent);
}

.lp-btn--primary:hover {
  background: #9a3412;
}

.lp-btn--ghost {
  background: var(--pb-hero-raised);
  color: var(--pb-hero-text);
}

.lp-btn--ghost:hover {
  background: var(--pb-board-border);
}

.lp-btn--sm {
  min-height: var(--pb-tap-min);
  padding: 0 var(--pb-space-4);
  font-size: var(--pb-text-sm);
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pb-space-3);
}

.lp-actions--center {
  justify-content: center;
}

/* Header */

.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(243 245 249 / 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--pb-border);
}

.lp-header__inner {
  display: flex;
  align-items: center;
  gap: var(--pb-space-6);
  height: var(--lp-header-h);
}

.lp-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--pb-space-2);
  min-height: var(--pb-tap-min);
  text-decoration: none;
  margin-right: auto;
}

/* Brand lockup image (BR.2): the width/height attributes keep the aspect ratio (no CLS). */
.lp-logo img {
  display: block;
  height: var(--pb-space-8);
  width: auto;
}

.lp-nav {
  display: none;
  gap: var(--pb-space-1);
}

.lp-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--pb-tap-min);
  padding: 0 var(--pb-space-3);
  border-radius: var(--pb-radius-control);
  color: var(--pb-text-2);
  font-size: var(--pb-text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--pb-duration-sheet) ease;
}

.lp-nav a:hover {
  background: var(--pb-surface);
  color: var(--pb-text);
}

/* «Entrar» stays visible at every width (spec 25, «Componentes»). */
.lp-header__login {
  display: inline-flex;
  align-items: center;
  min-height: var(--pb-tap-min);
  font-size: var(--pb-text-sm);
  font-weight: 700;
  text-decoration: none;
}

/* Founders strip */

.lp-founders {
  background: var(--pb-gold-soft);
  color: var(--pb-gold-text);
  font-size: var(--pb-text-sm);
}

.lp-founders__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 var(--pb-space-2);
  padding-block: var(--pb-space-1);
}

.lp-founders svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-founders a {
  display: inline-flex;
  align-items: center;
  min-height: var(--pb-tap-min);
  font-weight: 700;
}

/* Hero */

.lp-hero {
  background: var(--pb-hero-bg);
  color: var(--pb-hero-text);
  padding: var(--pb-space-12) 0 var(--pb-space-16);
}

.lp-hero__inner {
  display: grid;
  gap: var(--pb-space-12);
  align-items: center;
}

.lp-hero__accent {
  display: block;
  color: var(--pb-hero-accent);
}

.lp-hero__lead {
  color: var(--pb-hero-text-2);
  font-size: var(--pb-text-lg);
  margin: var(--pb-space-5) 0 var(--pb-space-8);
  max-width: 520px;
}

/* Link to the families' block: a text link, so «Crea tu club» stays the only primary action. */
.lp-hero__link {
  display: inline-flex;
  align-items: center;
  gap: var(--pb-space-2);
  min-height: var(--pb-tap-min);
  color: var(--pb-hero-text);
  font-weight: 600;
}

.lp-hero__link svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-hero .lp-actions .lp-btn--primary {
  width: 100%;
}

/* Screenshots: device frames are CSS, the <img> keeps its width/height so nothing jumps (LND.R2). */

.lp-media {
  position: relative;
  width: 100%;
  max-width: var(--lp-phone-w);
  margin-inline: auto;
}

.lp-media--wide {
  max-width: 100%;
}

.lp-shot {
  box-shadow: var(--pb-shadow-2);
  border-radius: var(--pb-radius-control);
}

.lp-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--pb-radius-control);
}

.lp-shot--phone,
.lp-shot--tablet,
.lp-shot--browser {
  padding: var(--pb-space-2);
  background: var(--pb-board-cell);
  border: 1px solid var(--pb-board-border);
  border-radius: var(--pb-radius-hero);
}

.lp-shot--browser {
  padding-top: 0;
  border-radius: var(--pb-radius-control);
}

.lp-shot--browser img {
  border-radius: var(--pb-space-2);
}

.lp-shot--browser::before {
  content: '';
  display: block;
  height: var(--pb-space-6);
  background:
    radial-gradient(circle at 8px 50%, var(--pb-board-border) 4px, transparent 5px),
    radial-gradient(circle at 24px 50%, var(--pb-board-border) 4px, transparent 5px),
    radial-gradient(circle at 40px 50%, var(--pb-board-border) 4px, transparent 5px);
}

/* Overlaid shot: leans on the bottom corner of the main frame (spec 25, «Variantes»). */
.lp-shot--over {
  position: absolute;
  right: calc(var(--pb-space-6) * -1);
  bottom: calc(var(--pb-space-4) * -1);
  width: 42%;
}

.lp-shot--over.lp-shot--phone {
  padding: var(--pb-space-1);
  border-radius: var(--pb-radius-control);
}

.lp-shot--over.lp-shot--phone img {
  border-radius: var(--pb-space-3);
}

/* Facts strip */

.lp-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--pb-space-6) var(--pb-space-4);
  padding-block: var(--pb-space-8);
}

.lp-facts li {
  color: var(--pb-text-2);
  font-size: var(--pb-text-sm);
  font-weight: 600;
}

.lp-facts .lp-icon {
  margin-bottom: var(--pb-space-2);
}

/* «¿Quién eres?»: links and stacked sections without JS; landing.js turns them into tabs. */

.lp-roles .lp-lead {
  margin-inline: 0;
  margin-bottom: var(--pb-space-6);
}

.lp-tabs {
  position: relative;
  display: flex;
  gap: var(--pb-space-1);
  margin-bottom: var(--pb-space-6);
  overflow-x: auto;
  border-bottom: 1px solid var(--pb-border);
}

.lp-tab {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: var(--pb-tap-min);
  padding: 0 var(--pb-space-3);
  border-bottom: 3px solid transparent;
  color: var(--pb-text-2);
  font-weight: 600;
  text-decoration: none;
}

.lp-tab[aria-selected='true'] {
  border-bottom-color: var(--pb-accent-fill);
  color: var(--pb-text);
  font-weight: 700;
}

.lp-tab:focus-visible {
  outline-offset: -3px;
}

.lp-role-panels {
  display: grid;
  gap: var(--pb-space-6);
}

.lp-role {
  padding: var(--pb-space-6);
  background: var(--pb-surface);
  border-radius: var(--pb-radius-card);
  scroll-margin-top: calc(var(--lp-header-h) + var(--pb-space-4));
}

/* `.lp-feature` sets display: grid, which would otherwise beat the hidden attribute. */
.lp-role[hidden] {
  display: none;
}

.lp-role__access {
  display: grid;
  gap: var(--pb-space-3);
  margin: var(--pb-space-5) 0 0;
}

.lp-role__access dt {
  font-size: var(--pb-text-sm);
  font-weight: 700;
}

.lp-role__access dd {
  margin: 0;
  color: var(--pb-text-2);
}

.lp-role__note {
  margin-top: var(--pb-space-4);
  color: var(--pb-text-2);
}

.lp-role__free {
  margin-top: var(--pb-space-4);
  font-weight: 700;
}

/* Before → with Tredia pairs */

.lp-pairs {
  display: grid;
  gap: var(--pb-space-4);
}

.lp-pair {
  display: grid;
  gap: var(--pb-space-3);
}

.lp-card .lp-pair__before {
  color: var(--pb-text-2);
  text-decoration: line-through;
  text-decoration-color: var(--pb-text-3);
  text-decoration-thickness: 1px;
}

.lp-pair__arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--pb-accent-text);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-card .lp-pair__after {
  color: var(--pb-text);
  font-weight: 600;
}

/* Feature: text, then screenshot; side by side from 1024 */

.lp-feature {
  display: grid;
  gap: var(--pb-space-8);
}

.lp-feature h3,
.lp-day h3,
.lp-tiers h3 {
  font-family: var(--pb-font-display);
  font-size: var(--pb-display-sm);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--pb-space-3);
}

.lp-feature__lead {
  color: var(--pb-text-2);
  font-size: var(--pb-text-lg);
  margin-bottom: var(--pb-space-5);
}

.lp-feature .lp-checks {
  gap: var(--pb-space-3);
}

.lp-feature .lp-checks li {
  font-size: var(--pb-text-md);
}

/* «Una semana con Tredia»: vertical timeline on mobile, one dot per moment on the line. */

.lp-week {
  display: grid;
}

.lp-day {
  position: relative;
  display: grid;
  gap: var(--pb-space-6);
  padding: 0 0 var(--pb-space-12) var(--pb-space-8);
  border-left: 2px solid var(--pb-border);
}

.lp-day:last-child {
  padding-bottom: 0;
}

.lp-day__when {
  color: var(--pb-accent-text);
}

.lp-day__when::before {
  content: '';
  position: absolute;
  top: 0;
  left: -9px;
  width: var(--pb-space-4);
  height: var(--pb-space-4);
  border-radius: var(--pb-radius-pill);
  background: var(--pb-accent-fill);
  box-shadow: 0 0 0 var(--pb-space-1) var(--pb-bg);
}

.lp-day__note {
  color: var(--pb-text-2);
}

/* Sections, cards, grids */

.lp-section {
  padding: var(--pb-space-16) 0;
}

.lp-section--alt {
  background: var(--pb-surface);
}

.lp-section--alt .lp-card {
  background: var(--pb-surface-2);
}

.lp-grid {
  display: grid;
  gap: var(--pb-space-4);
}

.lp-card {
  background: var(--pb-surface);
  border-radius: var(--pb-radius-card);
  padding: var(--pb-space-6);
}

.lp-card p {
  color: var(--pb-text-2);
}

.lp-card h3 {
  font-size: var(--pb-text-lg);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--pb-space-2);
}

.lp-icon {
  width: 28px;
  height: 28px;
  margin-bottom: var(--pb-space-4);
  fill: none;
  stroke: var(--pb-text-3);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-icon--accent {
  stroke: var(--pb-accent-text);
}

/* ── Confianza (LND.R3e2) ── */
/* 5 guarantees: 1 column, 2 from 768, 3 + 2 from 1024 (spec 25, «Variantes»). */

.lp-trust {
  gap: var(--pb-space-4);
  margin-top: var(--pb-space-8);
}

.lp-trust .lp-icon {
  margin-bottom: var(--pb-space-3);
}

.lp-trust__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--pb-space-2);
  margin-top: var(--pb-space-6);
  color: var(--pb-text-3);
}

.lp-trust__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--pb-tap-min);
  font-weight: 600;
  color: var(--pb-text-2);
}

@media (min-width: 768px) {
  .lp-trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .lp-trust {
    grid-template-columns: repeat(6, 1fr);
  }

  .lp-trust li {
    grid-column: span 2;
  }

  .lp-trust li:nth-child(n + 4) {
    grid-column: span 3;
  }
}

.lp-checks {
  display: grid;
  gap: var(--pb-space-4);
}

.lp-checks li {
  position: relative;
  padding-left: var(--pb-space-10);
  color: var(--pb-text-2);
  font-size: var(--pb-text-lg);
}

.lp-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: var(--pb-radius-pill);
  background: var(--pb-success-text)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

/* Not included (Gratis card): the neutral «—» of the plan table instead of the green check. */
.lp-checks li.lp-checks__no::before {
  content: '—';
  background: none;
  color: var(--pb-text-3);
  font-weight: 700;
  text-align: center;
  line-height: var(--pb-space-6);
}

.lp-checks--inverse li.lp-checks__no::before {
  color: var(--pb-hero-text);
}

/* «Próximamente» next to a feature that is not live yet (as the volleyball chip). */
.lp-soon {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  white-space: nowrap;
}

.lp-checks--inverse li {
  color: var(--pb-hero-text);
}

.lp-checks--inverse li::before {
  background-color: var(--pb-hero-raised);
}

/* Hero guarantees: a compact row, a column below 400 px (spec 25, wireframe). */

.lp-checks--guarantees {
  gap: var(--pb-space-2);
  margin-top: var(--pb-space-5);
}

.lp-checks--guarantees li {
  padding-left: var(--pb-space-6);
  font-size: var(--pb-text-sm);
}

.lp-checks--guarantees li::before {
  width: var(--pb-space-5);
  height: var(--pb-space-5);
  top: 0;
  background-size: var(--pb-space-3);
}

/* Navy blocks: families and final CTA */

.lp-block {
  background: var(--pb-hero-bg);
  color: var(--pb-hero-text);
  border-radius: var(--pb-radius-hero);
  padding: var(--pb-space-10) var(--pb-space-6);
}

.lp-block__lead {
  color: var(--pb-hero-text-2);
  font-size: var(--pb-text-lg);
}

.lp-family {
  border-top: 6px solid var(--pb-gold);
}

.lp-family .lp-block__lead {
  margin-bottom: var(--pb-space-5);
}

/* Arena by age: three tiers, one column on mobile, three from 768 (spec 25, wireframe). */
.lp-tiers {
  margin-top: var(--pb-space-12);
}

.lp-tiers h3 {
  margin-bottom: var(--pb-space-5);
}

.lp-tiers__list {
  display: grid;
  gap: var(--pb-space-4);
}

.lp-tier {
  padding: var(--pb-space-6);
  background: var(--pb-hero-raised);
  border-radius: var(--pb-radius-card);
}

.lp-tier h4 {
  margin: 0 0 var(--pb-space-2);
  color: var(--pb-gold);
  font-size: var(--pb-text-lg);
}

.lp-tier p {
  color: var(--pb-hero-text-2);
}

.lp-media--small {
  max-width: var(--lp-phone-sm-w);
  margin: var(--pb-space-5) 0 0;
}

.lp-family .lp-family__note {
  margin: var(--pb-space-8) 0 0;
}

.lp-family__free {
  margin-top: var(--pb-space-6);
  font-family: var(--pb-font-display);
  font-size: var(--pb-display-sm);
  font-weight: 900;
  line-height: 1;
  color: var(--pb-gold);
}

.lp-cta {
  text-align: center;
  padding: var(--pb-space-12) var(--pb-space-6);
}

.lp-cta .lp-title {
  margin-bottom: var(--pb-space-8);
}

/* Sports */

.lp-sports {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--pb-space-3);
}

.lp-sport {
  display: inline-flex;
  align-items: center;
  gap: var(--pb-space-3);
  min-height: var(--pb-tap-min);
  padding: var(--pb-space-2) var(--pb-space-5);
  border-radius: var(--pb-radius-pill);
  font-weight: 700;
}

.lp-sport__state {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}

.lp-sport--basketball {
  background: var(--pb-chip-basketball-bg);
  color: var(--pb-chip-basketball-text);
}

.lp-sport--futsal {
  background: var(--pb-chip-futsal-bg);
  color: var(--pb-chip-futsal-text);
}

.lp-sport--handball {
  background: var(--pb-chip-handball-bg);
  color: var(--pb-chip-handball-text);
}

.lp-sport--volleyball {
  background: var(--pb-chip-volleyball-bg);
  color: var(--pb-chip-volleyball-text);
}

/* Sport showcase (10.9, spec 25 «Deportes»): tabs like the roles, one panel per available sport. The accent of
   the active tab and of the panel checks comes from the sport chip tokens, never from a colour of its own. */

[data-sport='basketball'] {
  --lp-sport-accent: var(--pb-chip-basketball-text);
}

[data-sport='futsal'] {
  --lp-sport-accent: var(--pb-chip-futsal-text);
}

[data-sport='handball'] {
  --lp-sport-accent: var(--pb-chip-handball-text);
}

/* Centred with auto margins, not justify-content: when the three tabs (11.7) overflow a narrow phone, the strip
   still scrolls from its first tab instead of cutting it off on the left. */
.lp-tabs--sports .lp-tab {
  padding-inline: var(--pb-space-3);
  font-size: var(--pb-text-md);
}

.lp-tabs--sports .lp-tab:first-child {
  margin-inline-start: auto;
}

.lp-tabs--sports .lp-tab:last-child {
  margin-inline-end: auto;
}

@media (min-width: 768px) {
  .lp-tabs--sports .lp-tab {
    padding-inline: var(--pb-space-5);
    font-size: var(--pb-text-lg);
  }
}

.lp-tabs--sports .lp-tab[aria-selected='true'] {
  border-bottom-color: var(--lp-sport-accent);
  color: var(--lp-sport-accent);
}

.lp-sport-panel {
  display: grid;
  gap: var(--pb-space-8);
  margin-bottom: var(--pb-space-8);
  padding: var(--pb-space-6);
  background: var(--pb-surface);
  border-top: 6px solid var(--lp-sport-accent);
  border-radius: var(--pb-radius-card);
  scroll-margin-top: calc(var(--lp-header-h) + var(--pb-space-4));
}

.lp-sport-panel[hidden] {
  display: none;
}

.lp-sport-panel h3 {
  font-family: var(--pb-font-display);
  font-size: var(--pb-display-sm);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--pb-space-3);
}

.lp-sport-panel .lp-checks {
  gap: var(--pb-space-3);
}

.lp-sport-panel .lp-checks li {
  font-size: var(--pb-text-md);
}

.lp-sport-panel .lp-checks li::before {
  background-color: var(--lp-sport-accent);
}

/* Phone: the three screenshots scroll sideways, one snap each; side by side from 1024. */
.lp-sport-panel__shots {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--pb-radius-control);
}

.lp-sport-panel__shots:focus-visible {
  outline-offset: var(--pb-space-1);
}

.lp-sport-panel__shots ul {
  display: flex;
  align-items: center;
  gap: var(--pb-space-4);
  margin: 0;
  padding: var(--pb-space-2) var(--pb-space-2) var(--pb-space-4);
  list-style: none;
}

.lp-sport-panel__shots li {
  flex: 0 0 60%;
  scroll-snap-align: center;
}

.lp-sport-panel__shots li:last-child {
  flex-basis: 90%;
}

/* Demo video (10.9, spec 25 «Vídeo de demo»): in the same phone frame as the stills, a pause/play button below. */

.lp-video {
  display: grid;
  justify-items: center;
  gap: var(--pb-space-3);
  margin: 0;
}

.lp-video .lp-shot {
  width: 100%;
}

.lp-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--pb-radius-control);
  background: var(--pb-board-cell);
}

.lp-video__toggle {
  border: 0;
  background: var(--pb-surface-2);
  color: var(--pb-text);
  font-family: inherit;
}

.lp-video__toggle:hover {
  background: var(--pb-border);
}

.lp-video__toggle[hidden] {
  display: none;
}

/* Steps */

.lp-step__num {
  display: block;
  font-family: var(--pb-font-display);
  font-size: var(--pb-display-md);
  font-weight: 900;
  line-height: 1;
  color: var(--pb-accent);
  margin-bottom: var(--pb-space-3);
}

/* ── Precio (LND.R3e1) ── */

/* Period switch: native radios, shown by landing.js (spec 25, «Interacciones» 4). */
.lp-period {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--pb-space-1);
  margin: 0 0 var(--pb-space-8);
  padding: var(--pb-space-1);
  border: 0;
  border-radius: var(--pb-radius-card);
  background: var(--pb-surface-2);
}

.lp-period[hidden] {
  display: none;
}

.lp-period__option {
  display: inline-flex;
  align-items: center;
  gap: var(--pb-space-2);
  min-height: var(--pb-tap-min);
  padding: 0 var(--pb-space-4);
  border-radius: var(--pb-radius-control);
  color: var(--pb-text-2);
  font-weight: 600;
  cursor: pointer;
}

.lp-period__option input {
  width: var(--pb-space-5);
  height: var(--pb-space-5);
  margin: 0;
  accent-color: var(--pb-accent-fill);
}

.lp-period__option:has(input:checked) {
  background: var(--pb-surface);
  color: var(--pb-text);
  box-shadow: var(--pb-shadow-2);
}

/* Plan cards: one colour per plan, always with a text label next to it. */
.lp-plans {
  display: grid;
  gap: var(--pb-space-4);
  text-align: left;
}

.lp-plan {
  display: flex;
  flex-direction: column;
  gap: var(--pb-space-4);
  border: 2px solid var(--pb-border);
}

.lp-plans .lp-plan--club {
  border-color: var(--pb-accent);
  box-shadow: var(--pb-shadow-2);
}

.lp-plans .lp-plan--plus {
  background: var(--pb-hero-bg);
  border-color: var(--pb-hero-bg);
  color: var(--pb-hero-text);
}

.lp-plans .lp-plan--plus p {
  color: var(--pb-hero-text-2);
}

.lp-plans .lp-plan--founder {
  border-color: var(--pb-gold);
}

.lp-plan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--pb-space-2);
}

.lp-plan .lp-plan__name {
  margin: 0;
  font-size: var(--pb-text-xl);
}

.lp-plan__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pb-space-2);
}

.lp-plan__tag {
  padding: var(--pb-space-1) var(--pb-space-3);
  border-radius: var(--pb-radius-pill);
  background: var(--pb-border);
  color: var(--pb-text-2);
  font-size: var(--pb-text-sm);
  font-weight: 700;
}

.lp-plan__tag--recommended {
  background: var(--pb-accent-fill);
  color: var(--pb-on-accent);
}

.lp-plan__tag--founder {
  background: var(--pb-gold-soft);
  color: var(--pb-gold-text);
}

.lp-plan--plus .lp-plan__tag {
  background: var(--pb-hero-raised);
  color: var(--pb-hero-text);
}

.lp-plans .lp-plan__amount {
  color: var(--pb-text);
  font-family: var(--pb-font-display);
  font-size: var(--pb-display-sm);
  font-weight: 900;
  line-height: 1.1;
}

.lp-plans .lp-plan--plus .lp-plan__amount {
  color: var(--pb-hero-text);
}

.lp-plan__checks {
  gap: var(--pb-space-3);
}

.lp-plan__checks li {
  padding-left: var(--pb-space-8);
  font-size: var(--pb-text-md);
}

.lp-plan__checks li::before {
  top: 0;
  width: var(--pb-space-6);
  height: var(--pb-space-6);
  background-size: var(--pb-space-4);
}

/* «Pide tu plaza»: a link that looks like a secondary button. */
.lp-plan__cta {
  margin-top: auto;
  border: 2px solid var(--pb-text);
  background: var(--pb-surface);
  color: var(--pb-text);
}

.lp-plan__cta:hover {
  background: var(--pb-gold-soft);
}

.lp-plan-note {
  display: grid;
  gap: var(--pb-space-1);
  margin-top: var(--pb-space-6);
  color: var(--pb-text-2);
  font-size: var(--pb-text-sm);
}

/* Plan table: scrolls inside its own region below 768 px. */
.lp-plan-table {
  --lp-plan-table-min: 720px;

  margin-top: var(--pb-space-12);
  text-align: left;
}

.lp-plan-table__scroll {
  /* Containing block for the visually hidden «Incluido» spans, or they escape the scroll. */
  position: relative;
  overflow-x: auto;
}

.lp-plan-table table {
  width: 100%;
  min-width: var(--lp-plan-table-min);
  border-collapse: collapse;
  font-size: var(--pb-text-sm);
}

.lp-plan-table caption {
  padding-bottom: var(--pb-space-4);
  color: var(--pb-text);
  font-size: var(--pb-text-xl);
  font-weight: 700;
  text-align: left;
}

.lp-plan-table th,
.lp-plan-table td {
  padding: var(--pb-space-3) var(--pb-space-4);
  border-bottom: 1px solid var(--pb-border);
  color: var(--pb-text-2);
  text-align: center;
}

.lp-plan-table thead th {
  color: var(--pb-text);
  font-size: var(--pb-text-md);
}

.lp-plan-table tbody th {
  color: var(--pb-text);
  font-weight: 600;
  text-align: left;
}

.lp-plan-table td span[aria-hidden] {
  color: var(--pb-success-text);
  font-size: var(--pb-text-lg);
  font-weight: 700;
}

.lp-plan-table td span.lp-plan-table__no {
  color: var(--pb-text-3);
}

.lp-plan-table__note {
  margin-top: var(--pb-space-3);
  color: var(--pb-text-2);
  font-size: var(--pb-text-sm);
}

/* «Qué pasa si…» */
.lp-whatif {
  display: grid;
  gap: var(--pb-space-3);
  margin-top: var(--pb-space-12);
  text-align: left;
}

.lp-whatif h3 {
  font-size: var(--pb-text-xl);
}

.lp-whatif details {
  border-radius: var(--pb-radius-card);
  background: var(--pb-surface-2);
}

.lp-whatif summary {
  min-height: var(--pb-tap-min);
  padding: var(--pb-space-3) var(--pb-space-6);
  font-weight: 700;
  cursor: pointer;
}

.lp-whatif details p {
  padding: 0 var(--pb-space-6) var(--pb-space-5);
  color: var(--pb-text-2);
}

.lp-price-end {
  display: grid;
  justify-items: center;
  gap: var(--pb-space-4);
  margin-top: var(--pb-space-12);
  color: var(--pb-text-2);
}

.lp-price-end__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--pb-tap-min);
  color: var(--pb-text);
  font-weight: 600;
}

@media (min-width: 768px) {
  .lp-plans {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Four plans in a row (ADR-021); the founder place, which ends, gets the whole row below. */
  .lp-plans .lp-plan--founder {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .lp-plans {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Preguntas (LND.R3e4) ── */

.lp-faq {
  display: grid;
  gap: var(--pb-space-3);
  align-items: start;
}

@media (min-width: 768px) {
  .lp-faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--pb-space-6);
  }
}

.lp-faq details {
  background: var(--pb-surface);
  border-radius: var(--pb-radius-card);
}

.lp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pb-space-4);
  min-height: 56px;
  padding: var(--pb-space-4) var(--pb-space-6);
  font-size: var(--pb-text-lg);
  font-weight: 700;
  border-radius: var(--pb-radius-card);
  cursor: pointer;
  list-style: none;
}

.lp-faq summary::-webkit-details-marker {
  display: none;
}

.lp-faq summary::after {
  content: '+';
  flex: none;
  font-family: var(--pb-font-display);
  font-size: var(--pb-display-sm);
  line-height: 1;
  color: var(--pb-accent-text);
  transition: transform var(--pb-duration-sheet) ease;
}

.lp-faq details[open] summary::after {
  transform: rotate(45deg);
}

.lp-faq details p {
  padding: 0 var(--pb-space-6) var(--pb-space-5);
  color: var(--pb-text-2);
}

/* Footer */

.lp-footer {
  padding: var(--pb-space-8) 0 var(--pb-space-12);
  color: var(--pb-text-3);
  font-size: var(--pb-text-sm);
}

.lp-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pb-space-6);
}

.lp-logo--footer img {
  height: var(--pb-space-6);
}

.lp-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--pb-tap-min);
  font-weight: 600;
  color: var(--pb-text-2);
}

/* Reveal on scroll: only when JS marks the page ready and motion is allowed */

.lp-js .lp-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--pb-duration-enter) ease-out,
    transform var(--pb-duration-enter) ease-out;
}

.lp-js .lp-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Breakpoints: 768 (tablet), 1024 (desktop) — design-system-v2 §3 */

@media (min-width: 400px) {
  .lp-checks--guarantees {
    display: flex;
    flex-wrap: wrap;
    gap: var(--pb-space-2) var(--pb-space-4);
  }
}

@media (min-width: 768px) {
  .lp-hero {
    margin: var(--pb-space-4) var(--pb-page-gutter) 0;
    border-radius: var(--pb-radius-hero);
  }

  .lp-hero .lp-actions .lp-btn--primary {
    width: auto;
  }

  .lp-hero .lp-actions {
    align-items: center;
    gap: var(--pb-space-5);
  }

  .lp-facts {
    grid-template-columns: repeat(4, 1fr);
  }

  .lp-pairs {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-display {
    font-size: var(--pb-display-claim);
  }

  .lp-title {
    font-size: var(--pb-display-md);
  }

  .lp-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-tiers__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .lp-block {
    padding: var(--pb-space-12);
  }
}

@media (min-width: 1024px) {
  :root {
    --lp-phone-w: 300px;
  }

  /* The section links only fit from desktop width (spec 25). */
  .lp-nav {
    display: flex;
  }

  .lp-header .lp-logo img {
    height: calc(var(--pb-space-8) + var(--pb-space-1));
  }

  .lp-hero {
    padding: var(--pb-space-16) 0;
  }

  .lp-hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .lp-display {
    font-size: 76px;
  }

  .lp-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .lp-feature {
    grid-template-columns: 1fr 1fr;
    gap: var(--pb-space-16);
    align-items: center;
  }

  .lp-feature--flip .lp-media {
    order: -1;
  }

  .lp-sport-panel {
    padding: var(--pb-space-10);
  }

  .lp-sport-panel__copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--pb-space-16);
  }

  .lp-sport-panel__copy .lp-checks {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .lp-sport-panel__shots {
    overflow: visible;
  }

  .lp-sport-panel__shots ul {
    display: grid;
    grid-template-columns: 1fr 1fr 2.4fr;
    gap: var(--pb-space-6);
    padding: 0;
  }

  /* Week: a horizontal rule on top of each moment, text | screenshot alternating (zigzag). */
  .lp-week {
    gap: var(--pb-space-16);
  }

  .lp-day {
    grid-template-columns: 1fr 1fr;
    gap: var(--pb-space-16);
    padding: var(--pb-space-8) 0 0;
    border-left: 0;
    border-top: 2px solid var(--pb-border);
  }

  .lp-day:nth-child(even) .lp-media {
    order: -1;
  }

  .lp-day__copy {
    position: relative;
  }

  .lp-day__when::before {
    top: calc(var(--pb-space-8) * -1 - 9px);
    left: 0;
  }
}

/* ── Cómo empezar y enlace (LND.R3e3) ── */
.lp-how {
  display: grid;
  gap: var(--pb-space-6);
}

.lp-invite {
  display: grid;
  gap: var(--pb-space-4);
  align-content: start;
  scroll-margin-top: calc(var(--lp-header-h) + var(--pb-space-4));
}

.lp-invite h3,
.lp-invite p {
  margin-bottom: 0;
}

.lp-invite__login {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: var(--pb-tap-min);
  color: var(--pb-accent-text);
  font-weight: 600;
}

/* Spec 25 desktop: the three steps on the left, the link card on the right. */
@media (min-width: 1024px) {
  .lp-how {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .lp-js .lp-reveal {
    opacity: 1;
    transform: none;
  }
}
