/* ============================================================
   Fanpick — Landing styles
   "Matchday broadcast" — paleta y tipografía heredadas de la app
   (frontend/src/index.css). Tema oscuro, acentos vivos.
   ============================================================ */

:root {
  /* Stadium palette */
  --stadium-0: #0b1024;
  --stadium-1: #131a3d;
  --stadium-2: #1b2350;
  --stadium-border: #2a3470;

  /* Accents */
  --pick: #00e47a;
  --rival: #ff6b4a;
  --champion: #ffc857;
  --lose: #ef4458;
  --info: #38bdf8;

  /* Text */
  --text-hi: #f4f6ff;
  --text-mid: #a8b0d8;
  --text-low: #6b739d;

  /* Fonts */
  --font-display: "Sora", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout */
  --content-w: 1140px;
  --radius: 16px;
  --radius-sm: 10px;

  /* Elevation */
  --shadow-card: 0 18px 50px -28px rgba(0, 0, 0, 0.85);
  --shadow-glow-pick: 0 14px 40px -16px rgba(0, 228, 122, 0.55);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--stadium-0);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle film grain over the whole page for depth. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.02;
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.12;
}
h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
}
a {
  color: var(--text-hi);
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
img,
svg {
  display: block;
  max-width: 100%;
}

/* ---- A11y helpers ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 12px;
  background: var(--pick);
  color: var(--stadium-0);
  font-weight: 700;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}
:focus-visible {
  outline: 2px solid var(--pick);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Scroll reveal (toggled by script.js via IntersectionObserver) ----
   Hidden state only applies when JS is active (.js on <html>), so visitors
   with JavaScript disabled still see every section. */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: rgba(11, 16, 36, 0.7);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--stadium-border);
  background: rgba(11, 16, 36, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: none;
  margin-left: auto;
  gap: 4px;
}
.site-nav a {
  padding: 8px 12px;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.site-nav a:hover {
  color: var(--text-hi);
  background: var(--stadium-1);
}

.header-cta {
  display: none;
  margin-left: 8px;
  align-items: center;
  gap: 8px;
}
.link-muted {
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
}
.link-muted:hover {
  color: var(--text-hi);
}

/* Mobile hamburger */
.hamburger {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--stadium-border);
  border-radius: 10px;
  padding: 10px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-hi);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 860px) {
  .site-nav,
  .header-cta {
    display: inline-flex;
  }
  .hamburger {
    display: none;
  }
}

/* Mobile menu (drawer below the header when open) */
.site-header[data-open="true"] {
  flex-wrap: wrap;
}
.site-header[data-open="true"] .site-nav,
.site-header[data-open="true"] .header-cta {
  display: flex;
  flex-basis: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin: 12px 0 4px;
  padding-top: 12px;
  border-top: 1px solid var(--stadium-border);
}
.site-header[data-open="true"] .header-cta {
  flex-direction: row;
}
@media (min-width: 860px) {
  .site-header[data-open="true"] {
    flex-wrap: nowrap;
  }
  .site-header[data-open="true"] .site-nav {
    flex-basis: auto;
    flex-direction: row;
    margin: 0;
    padding: 0;
    border-top: 0;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  font-family: var(--font-body);
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.98);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 15px 24px;
  font-size: 1.02rem;
}
.btn-primary {
  background: var(--pick);
  color: var(--stadium-0);
  box-shadow: var(--shadow-glow-pick);
}
.btn-primary:hover {
  background: #1eea88;
  box-shadow: 0 18px 50px -14px rgba(0, 228, 122, 0.7);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(19, 26, 61, 0.5);
  color: var(--text-hi);
  border: 1px solid var(--stadium-border);
}
.btn-ghost:hover {
  background: var(--stadium-1);
  border-color: rgba(0, 228, 122, 0.4);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 24px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
      900px 520px at 82% -12%,
      rgba(255, 200, 87, 0.2),
      transparent 70%
    ),
    radial-gradient(
      720px 500px at -12% 28%,
      rgba(0, 228, 122, 0.14),
      transparent 65%
    ),
    radial-gradient(
      820px 500px at 50% 118%,
      rgba(255, 107, 74, 0.13),
      transparent 60%
    );
  pointer-events: none;
}
/* Stadium pitch lines, faint, behind the hero. */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(42, 52, 112, 0.18) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(42, 52, 112, 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 40px;
}
@media (min-width: 980px) {
  .hero {
    padding: 88px 0 56px;
  }
  .hero-inner {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 56px;
  }
}

/* Hero entrance: staggered fade-up on load. */
.hero-copy > * {
  opacity: 0;
  animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.23s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.41s; }
.hero-art {
  opacity: 0;
  animation: hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--champion);
  background: rgba(255, 200, 87, 0.1);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 87, 0.28);
  margin-bottom: 20px;
}
.eyebrow .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--rival);
  box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.6);
  animation: live-pulse 1.7s ease-out infinite;
}
@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.55);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 107, 74, 0);
  }
}
.grad-text {
  background: linear-gradient(110deg, var(--pick), var(--info));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  color: var(--text-mid);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  margin: 20px 0 26px;
  max-width: 54ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  color: var(--text-mid);
  font-size: 0.92rem;
}
.hero-bullets li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}
.dot-pick {
  background: var(--pick);
  box-shadow: 0 0 12px rgba(0, 228, 122, 0.6);
}
.dot-champ {
  background: var(--champion);
  box-shadow: 0 0 12px rgba(255, 200, 87, 0.6);
}
.dot-rival {
  background: var(--rival);
  box-shadow: 0 0 12px rgba(255, 107, 74, 0.55);
}

/* ---- Phone mock ---- */
.hero-art {
  display: flex;
  justify-content: center;
  position: relative;
}
.phone {
  width: min(320px, 90%);
  padding: 12px;
  border-radius: 40px;
  background: linear-gradient(180deg, #1d2657, #0e1432);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px var(--stadium-border);
  position: relative;
  animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.phone-screen {
  background: var(--stadium-0);
  border-radius: 28px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--stadium-border);
}
.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
}
.phone-header .bar {
  width: 24px;
  height: 4px;
  background: var(--stadium-border);
  border-radius: 4px;
}
.phone-title {
  font-size: 0.85rem;
  color: var(--text-mid);
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-pick {
  background: rgba(0, 228, 122, 0.15);
  color: var(--pick);
  border: 1px solid rgba(0, 228, 122, 0.35);
}
.muted {
  color: var(--text-mid);
}
.small {
  font-size: 0.8rem;
}

.phone-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-hi);
}
.team-crest {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--stadium-border);
}
.vs {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-low);
}

.phone-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pick {
  background: var(--stadium-1);
  color: var(--text-mid);
  border: 1px solid var(--stadium-border);
  border-radius: 12px;
  padding: 12px 8px;
  font-weight: 700;
  font-size: 0.85rem;
}
.pick-selected {
  background: var(--pick);
  color: var(--stadium-0);
  border-color: var(--pick);
}

.phone-mini-rank {
  border-top: 1px solid var(--stadium-border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rank-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.medal {
  font-size: 1rem;
}
.pts {
  color: var(--text-mid);
  font-weight: 700;
  font-size: 0.8rem;
}

/* Floating chips around the phone */
.hero-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(19, 26, 61, 0.92);
  border: 1px solid var(--stadium-border);
  box-shadow: var(--shadow-card);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-hi);
  backdrop-filter: blur(6px);
  animation: chip-bob 5s ease-in-out infinite;
}
.hero-chip .chip-emoji {
  font-size: 1.05rem;
}
.hero-chip-1 {
  top: 10%;
  left: 0;
  animation-delay: 0.4s;
}
.hero-chip-2 {
  bottom: 16%;
  right: 2%;
  animation-delay: 1.2s;
}
@keyframes chip-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}
@media (max-width: 560px) {
  .hero-chip {
    display: none;
  }
}

/* ============================================================
   LIVE TICKER (scoreboard marquee)
   ============================================================ */
.ticker {
  border-top: 1px solid var(--stadium-border);
  border-bottom: 1px solid var(--stadium-border);
  background: rgba(19, 26, 61, 0.45);
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: ticker-scroll 38s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-mid);
  white-space: nowrap;
  border-right: 1px solid var(--stadium-border);
}
.ticker-item .t-teams {
  color: var(--text-hi);
}
.ticker-item .t-score {
  color: var(--pick);
  font-feature-settings: "tnum" 1;
}
.ticker-item .t-live {
  color: var(--rival);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 84px 0;
}
.section-alt {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(19, 26, 61, 0.55),
    transparent
  );
}
.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 48px;
}
.section-head p {
  color: var(--text-mid);
  margin-top: 12px;
}
.kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pick);
  margin-bottom: 14px;
}

/* ---- Grids ---- */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 {
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Feature cards ---- */
.feature-card {
  position: relative;
  background: var(--stadium-1);
  border: 1px solid var(--stadium-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease,
    box-shadow 0.25s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pick), var(--info));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 228, 122, 0.4);
  box-shadow: var(--shadow-card);
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--stadium-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  border: 1px solid var(--stadium-border);
}
.feature-card h3 {
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-mid);
}

/* ---- Steps ---- */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 780px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1080px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.steps li {
  background: var(--stadium-1);
  border: 1px solid var(--stadium-border);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.steps li:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pick), var(--info));
  color: var(--stadium-0);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px -8px rgba(0, 228, 122, 0.7);
}
.steps h3 {
  margin-bottom: 6px;
}
.steps p {
  color: var(--text-mid);
  font-size: 0.92rem;
}

/* ============================================================
   INSTALL — "Llévala a tu pantalla de inicio"
   ============================================================ */
.install {
  position: relative;
  overflow: hidden;
}
.install-wrap {
  max-width: 980px;
  margin: 0 auto;
}
.install-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin: 0 auto 28px;
  border-radius: 14px;
  background: var(--stadium-1);
  border: 1px solid var(--stadium-border);
}
.install-tabs-wrap {
  display: flex;
  justify-content: center;
}
.install-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-mid);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.18s ease, background 0.18s ease;
}
.install-tab svg {
  width: 18px;
  height: 18px;
}
.install-tab:hover {
  color: var(--text-hi);
}
.install-tab[aria-selected="true"] {
  background: var(--pick);
  color: var(--stadium-0);
  box-shadow: var(--shadow-glow-pick);
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 880px) {
  .install-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
}

.install-panel[hidden] {
  display: none;
}
.install-panel {
  animation: panel-fade 0.35s ease;
}
@keyframes panel-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.install-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.install-panel h3 .install-platform {
  color: var(--pick);
}

.install-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: istep;
}
.install-steps li {
  position: relative;
  padding: 0 0 22px 56px;
  counter-increment: istep;
}
.install-steps li::before {
  content: counter(istep);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--stadium-2);
  border: 1px solid var(--stadium-border);
  color: var(--text-hi);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}
/* vertical connector line */
.install-steps li::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 38px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    var(--stadium-border),
    rgba(42, 52, 112, 0)
  );
}
.install-steps li:last-child {
  padding-bottom: 0;
}
.install-steps li:last-child::after {
  display: none;
}
.install-steps li strong {
  color: var(--text-hi);
  font-weight: 700;
}
.install-steps li p {
  color: var(--text-mid);
  font-size: 0.95rem;
}
.install-steps .step-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 3px;
}
/* inline UI glyph (share / menu) shown beside a step */
.ui-glyph {
  display: inline-flex;
  vertical-align: -4px;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0 2px;
  border-radius: 6px;
  background: var(--stadium-2);
  border: 1px solid var(--stadium-border);
  color: var(--info);
}
.ui-glyph svg {
  width: 13px;
  height: 13px;
}

.install-note {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 228, 122, 0.07);
  border: 1px solid rgba(0, 228, 122, 0.25);
  color: var(--text-mid);
  font-size: 0.88rem;
}
.install-note strong {
  color: var(--pick);
}

/* Device illustration: a home screen with the Fanpick icon highlighted */
.install-device {
  display: flex;
  justify-content: center;
}
.home-phone {
  width: min(280px, 88%);
  padding: 11px;
  border-radius: 38px;
  background: linear-gradient(180deg, #1d2657, #0e1432);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px var(--stadium-border);
}
.home-screen {
  border-radius: 28px;
  padding: 20px 18px 26px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  background: radial-gradient(
      120% 60% at 50% 0%,
      rgba(255, 200, 87, 0.16),
      transparent 60%
    ),
    radial-gradient(120% 70% at 50% 100%, rgba(0, 228, 122, 0.14), transparent 60%),
    linear-gradient(180deg, #0c1230, #0a0f24);
  border: 1px solid var(--stadium-border);
}
.home-notch {
  width: 110px;
  height: 22px;
  border-radius: 0 0 14px 14px;
  background: #060a18;
  margin: -20px auto 14px;
}
.home-time {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: -0.03em;
  color: var(--text-hi);
}
.home-date {
  text-align: center;
  color: var(--text-mid);
  font-size: 0.82rem;
  margin-bottom: auto;
}
.home-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 12px;
  margin-top: 22px;
}
.home-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.home-app .app-tile {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.home-app .app-label {
  font-size: 0.62rem;
  color: var(--text-mid);
}
.home-app.is-fanpick .app-tile {
  background: linear-gradient(160deg, #131a3d, #070b1c);
  border: 1px solid rgba(0, 228, 122, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 228, 122, 0.18),
    0 10px 26px -8px rgba(0, 228, 122, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: app-pop 2.4s ease-in-out infinite;
}
.home-app.is-fanpick .app-label {
  color: var(--pick);
  font-weight: 700;
}
@keyframes app-pop {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.04);
  }
}
.home-app .app-mark {
  width: 60%;
  height: 60%;
}

/* ---- Manual (accordion) ---- */
.manual {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}
.manual details {
  background: var(--stadium-1);
  border: 1px solid var(--stadium-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.manual details[open] {
  border-color: rgba(0, 228, 122, 0.35);
}
.manual summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}
.manual summary::-webkit-details-marker {
  display: none;
}
.manual summary::after {
  content: "+";
  color: var(--text-mid);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.manual details[open] summary::after {
  content: "−";
  color: var(--pick);
}
.manual-body {
  padding: 0 22px 20px;
  color: var(--text-mid);
}
.manual-body ol,
.manual-body ul {
  margin: 8px 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.manual-body strong {
  color: var(--text-hi);
}
.manual-body a {
  color: var(--pick);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- FAQ ---- */
.faq-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.faq-item {
  background: var(--stadium-1);
  border: 1px solid var(--stadium-border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.18s ease;
}
.faq-item:hover {
  border-color: rgba(0, 228, 122, 0.3);
}
.faq-item h3 {
  margin-bottom: 6px;
}
.faq-item p {
  color: var(--text-mid);
}

/* ---- CTA final ---- */
.cta-final {
  position: relative;
  padding: 92px 0;
  text-align: center;
  background: radial-gradient(
      620px 340px at 50% 0%,
      rgba(0, 228, 122, 0.2),
      transparent 70%
    ),
    var(--stadium-1);
  border-top: 1px solid var(--stadium-border);
  border-bottom: 1px solid var(--stadium-border);
  overflow: hidden;
}
.cta-final h2 {
  margin-bottom: 10px;
}
.cta-final p {
  color: var(--text-mid);
  margin-bottom: 28px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 40px 0;
  background: var(--stadium-0);
}
.footer-inner {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 780px) {
  .footer-inner {
    grid-template-columns: 1fr auto 1fr;
  }
}
.footer-brand .brand-text {
  font-size: 1.2rem;
}
.footer-brand p {
  margin-top: 4px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.site-footer nav a {
  color: var(--text-mid);
  font-size: 0.9rem;
}
.site-footer nav a:hover {
  color: var(--text-hi);
}
.site-footer .muted.small {
  color: var(--text-low);
  text-align: right;
}
@media (max-width: 779px) {
  .site-footer .muted.small {
    text-align: center;
  }
}

/* ---- Motion (respect prefers-reduced) ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   LEGAL PAGES (terms.html, privacy.html, contact.html)
   ============================================================ */
.legal-page {
  padding: 56px 0 80px;
}
.legal-page h1 {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  margin: 0.4em 0 0.5em;
}
.legal-page h2 {
  margin-top: 2em;
  font-size: 1.3rem;
}
.legal-page p,
.legal-page li {
  color: var(--text-mid);
  line-height: 1.7;
  font-size: 0.96rem;
}
.legal-page ol,
.legal-page ul {
  margin: 0.8em 0 0.8em 1.4em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-page strong { color: var(--text-hi); }
.legal-page em { color: var(--text-mid); }
.legal-page code {
  background: var(--stadium-1);
  border: 1px solid var(--stadium-border);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
}
.legal-page a { color: var(--pick); text-decoration: underline; text-underline-offset: 3px; }
.legal-page a:hover { color: var(--text-hi); }
.legal-page blockquote {
  border-left: 3px solid var(--champion);
  background: rgba(255, 200, 87, 0.06);
  padding: 0.7em 1em;
  margin: 1.2em 0;
  color: var(--text-mid);
  border-radius: 0 6px 6px 0;
}
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.9rem;
}
.legal-page td {
  border: 1px solid var(--stadium-border);
  padding: 0.55em 0.8em;
  vertical-align: top;
}
.legal-page tr:first-child td {
  background: var(--stadium-1);
  color: var(--text-hi);
  font-weight: 600;
}
.legal-meta {
  font-size: 0.8rem;
  color: var(--text-low);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4em;
}

.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 24px;
}
@media (min-width: 780px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
.contact-card {
  background: var(--stadium-1);
  border: 1px solid var(--stadium-border);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-eyebrow {
  font-size: 0.7rem;
  color: var(--text-low);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-email {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pick);
  text-decoration: none;
  margin-bottom: 8px;
}
.contact-email:hover { text-decoration: underline; }
.contact-email-lg {
  font-size: 1.55rem;
  margin: 4px 0 14px;
}
.contact-card-solo {
  max-width: 640px;
  margin: 24px auto 0;
}
.contact-usefor { margin-top: 6px; }
.contact-list {
  margin: 8px 0 16px 1.4em;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.6;
}
.contact-list strong { color: var(--text-hi); }
.contact-arco {
  border-top: 1px solid var(--stadium-border);
  padding-top: 12px;
  margin-top: 16px;
}
.contact-arco code {
  background: var(--stadium-2);
  border: 1px solid var(--stadium-border);
  padding: 0.1em 0.45em;
  border-radius: 4px;
  font-size: 0.85em;
}

.footer-impi {
  margin-top: 6px;
  color: var(--champion);
}
.footer-impi strong { color: var(--champion); }
