/* Tactia 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-danger: #dc2626;

  --pb-accent: #e8590c;
  --pb-accent-fill: #c2410c;
  --pb-on-accent: #ffffff;
  --pb-accent-text: #c2410c;
  --pb-gold: #f5b70a;
  --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: #fce7f3;
  --pb-chip-futsal-text: #9d174d;
  --pb-chip-handball-bg: #ede9fe;
  --pb-chip-handball-text: #5b21b6;
  --pb-chip-volleyball-bg: #e0f2fe;
  --pb-chip-volleyball-text: #075985;

  --lp-container: 1120px;
  --lp-header-h: 64px;
}

*,
*::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;
}

/* 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-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);
  font-family: var(--pb-font-display);
  font-size: var(--pb-text-xl);
  font-weight: 900;
  text-decoration: none;
  margin-right: 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);
}

/* 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;
}

.lp-hero__note {
  color: var(--pb-hero-text-2);
  font-size: var(--pb-text-sm);
  margin-top: var(--pb-space-4);
}

/* Hero mock-up: scoreboard + cromo, pure HTML/CSS (decorative) */

.lp-mock {
  display: grid;
  gap: var(--pb-space-4);
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.lp-board {
  background: var(--pb-board-cell);
  border: 1px solid var(--pb-board-border);
  border-radius: var(--pb-radius-hero);
  padding: var(--pb-space-5) var(--pb-space-6);
  text-align: center;
}

.lp-board__live {
  display: inline-flex;
  align-items: center;
  gap: var(--pb-space-2);
  color: var(--pb-hero-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--pb-tracking-caps);
  text-transform: uppercase;
}

.lp-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--pb-radius-pill);
  background: var(--pb-danger);
  animation: lp-pulse 1.6s ease-in-out infinite;
}

.lp-board__score {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--pb-space-5);
  margin: var(--pb-space-3) 0 var(--pb-space-2);
}

.lp-board__team {
  display: block;
  color: var(--pb-hero-text-2);
  font-size: var(--pb-text-sm);
  font-weight: 600;
}

.lp-board__pts,
.lp-board__sep {
  font-family: var(--pb-font-display);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

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

.lp-board__sep {
  color: var(--pb-hero-text-2);
  padding-bottom: var(--pb-space-1);
}

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

.lp-card-mini {
  display: flex;
  align-items: center;
  gap: var(--pb-space-5);
  background: var(--pb-surface);
  color: var(--pb-text);
  border-radius: var(--pb-radius-hero);
  padding: var(--pb-space-5);
  box-shadow: var(--pb-shadow-2);
  transform: rotate(-2deg);
  margin: 0 var(--pb-space-4);
}

.lp-card-mini .lp-caps {
  color: var(--pb-text-3);
  margin-bottom: var(--pb-space-1);
}

.lp-ring {
  flex: none;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: var(--pb-radius-pill);
  background:
    radial-gradient(closest-side, var(--pb-surface) 78%, transparent 80%),
    conic-gradient(var(--pb-accent) 82%, var(--pb-border) 0);
}

.lp-ring span {
  font-family: var(--pb-font-display);
  font-size: var(--pb-display-sm);
  font-weight: 900;
}

.lp-card-mini__name {
  font-size: var(--pb-text-lg);
  font-weight: 700;
}

.lp-card-mini__meta {
  color: var(--pb-text-2);
  font-size: var(--pb-text-sm);
}

.lp-badge-gold {
  display: inline-block;
  margin-top: var(--pb-space-2);
  padding: 2px var(--pb-space-3);
  border-radius: var(--pb-radius-pill);
  background: var(--pb-gold);
  color: var(--pb-text);
  font-size: 12px;
  font-weight: 700;
}

/* 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);
}

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

.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;
}

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

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

/* Navy blocks: Arena 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-arena {
  display: grid;
  gap: var(--pb-space-8);
  border-top: 6px solid var(--pb-gold);
}

.lp-arena__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);
}

/* 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);
}

/* FAQ */

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

.lp-faq details {
  background: var(--pb-surface-2);
  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;
  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 {
  color: var(--pb-text);
  font-size: var(--pb-text-lg);
}

.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;
}

@keyframes lp-pulse {
  50% {
    opacity: 0.35;
  }
}

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

@media (min-width: 768px) {
  .lp-display {
    font-size: var(--pb-display-claim);
  }

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

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

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

@media (min-width: 1024px) {
  /* Five section links only fit from desktop width (spec 25, LND.R1). */
  .lp-nav {
    display: flex;
  }

  .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--4 {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .lp-split,
  .lp-arena {
    grid-template-columns: 1fr 1fr;
    gap: var(--pb-space-12);
    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;
  }
}
