/* Shared styles for the SEO landing pages (ppa-fantasy, mlp-fantasy,
   how-it-works). Values mirror index.html's inline styles so these pages
   read as the same site; index.html keeps its own inline copy. */
:root {
  --bg: #0d111a;
  --bg-card: #161d27;
  --text: #e8edf3;
  --muted: #8b98a9;
  --green: #4caf7d;
  --green-bright: #5ecb8f;
  --rule: #232c38;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }
a { color: var(--green-bright); }

.top { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brandline { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; }
.brandline img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 0.9rem; }
.top nav a { text-decoration: none; padding: 8px 2px; display: inline-block; }
/* Phones: brand on its own row, the three guides on one even row below
   (they used to wrap into two ragged lines beside the logo). */
@media (max-width: 560px) {
  .top { padding: 12px 0 4px; }
  .top .wrap { flex-wrap: wrap; row-gap: 2px; }
  .top nav { width: 100%; justify-content: space-between; flex-wrap: nowrap; font-size: 0.86rem; }
}

.intro {
  padding: 52px 0 28px;
  background:
    radial-gradient(ellipse 60% 60% at 10% 0%, rgba(16, 70, 40, 0.5), transparent),
    var(--bg);
}
h1 {
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}
h1 .accent { color: var(--green-bright); }
.lede { color: #a9b4c2; font-size: 1.08rem; margin-top: 14px; max-width: 640px; }
/* Visible near the headline on every page that names a tour (legal memo
   2026-05-11: a footer-only disclaimer is not enough). */
.affiliation {
  margin-top: 14px; max-width: 640px;
  font-size: 0.85rem; color: #a7b3c2;
  border-left: 3px solid var(--rule); padding: 2px 0 2px 12px;
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.play-now {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 14px 22px; border-radius: 12px;
  background: var(--green); color: #08130c; font-weight: 800; text-decoration: none;
}
.play-now:hover { background: var(--green-bright); }
.web-line { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.web-line a { font-weight: 700; display: inline-block; padding: 8px 2px; }

section { padding: 36px 0; }
h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 16px;
}
section > p, .prose p { color: var(--muted); margin-bottom: 12px; }
section > p strong, .prose strong { color: var(--text); }

.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 680px) { .grid { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 22px;
}
.card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--green-bright); text-transform: uppercase; letter-spacing: 0.5px; }
.card p { color: var(--muted); font-size: 0.95rem; }

ol.steps { list-style: none; counter-reset: s; }
ol.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 16px 44px;
  color: var(--muted);
}
ol.steps li strong { color: var(--text); }
ol.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--rule);
  color: var(--green-bright); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.score-row {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px dashed var(--rule);
  padding: 7px 2px; font-size: 0.92rem; color: var(--muted);
}
.score-row:last-of-type { border-bottom: none; }
.score-row .pts { color: var(--green-bright); font-weight: 700; }
.note { margin-top: 12px; font-size: 0.9rem; }

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 30px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--green-bright); font-weight: 800; font-size: 1.2rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 0.95rem; padding: 0 0 16px; }

.closing { text-align: center; padding-bottom: 48px; }
.closing .actions { justify-content: center; }
.closing p { color: var(--muted); }

footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0 44px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.foot-links { margin-bottom: 14px; display: flex; gap: 8px 20px; justify-content: center; flex-wrap: wrap; }
.foot-links a { display: inline-block; padding: 11px 4px; }
.disclaimer { max-width: 720px; margin: 12px auto 0; font-size: 0.78rem; color: #93a1b3; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 2px; }

/* ---------- Motion pass: product video + live UI scenes (no mascots) ---------- */
.intro.hero-split { padding-top: 40px; overflow: hidden; }
.hero-split .wrap { display: grid; gap: 30px; align-items: center; }
@media (min-width: 860px) {
  .hero-split .wrap { grid-template-columns: 1.2fr 0.8fr; max-width: 1040px; }
}

/* Hero explainer video in a phone-shaped frame. */
.hero-video {
  position: relative; width: min(270px, 70vw); margin: 0 auto;
  aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden;
  border: 6px solid #1e2633; background: #0b0f17;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px #2c3747, 0 0 60px rgba(76, 175, 125, 0.18);
}
@media (min-width: 860px) { .hero-video { width: 300px; } }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid-toggle {
  position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(8, 12, 18, 0.65); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}
.vid-toggle:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 2px; }

/* Feature rows: copy beside a live scene, alternating sides. */
.feature { display: grid; gap: 22px; align-items: center; padding: 30px 0; }
@media (min-width: 760px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 52px; }
  .feature.flip .feature-media { order: -1; }
}
.feature .num {
  display: inline-block; font-weight: 900; color: var(--green-bright);
  font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px;
}
.feature h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 900; line-height: 1.15; margin-bottom: 10px; }
.feature p { color: #a9b4c2; font-size: 1.02rem; }

/* Scenes share the app's card language: dark panel, thin rule, green = you. */
.scene {
  background: linear-gradient(165deg, #172030, #10161f 60%);
  border: 1px solid #263142; border-radius: 18px; padding: 16px;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.42);
  font-size: 0.86rem; font-variant-numeric: tabular-nums;
}
.scene-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 800; letter-spacing: 0.4px; margin-bottom: 12px;
}
.scene-head .tag { font-size: 0.72rem; letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: #ff6b6b; font-size: 0.72rem; letter-spacing: 1.2px; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff6b6b; animation: pulse 1.6s ease-in-out infinite; }

/* Draft board */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.board .col-h { font-size: 0.68rem; color: var(--muted); text-align: center; padding-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .col-h.me { color: var(--green-bright); font-weight: 800; }
.slot {
  height: 38px; border-radius: 9px; border: 1px dashed #2c3747;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.78rem; color: transparent;
}
.slot.filled { border-style: solid; border-color: #34425a; background: #1b2433; color: var(--text); animation: drop 0.4s ease-out; }
.slot.filled.me { background: #173326; border-color: #2f7a52; color: #c9f5dc; }
.slot.next { border-color: var(--green-bright); box-shadow: 0 0 0 2px rgba(94, 203, 143, 0.25) inset; }
@keyframes drop { 0% { transform: translateY(-10px) scale(0.92); opacity: 0; } 100% { transform: none; opacity: 1; } }
.on-clock { margin-top: 12px; display: flex; justify-content: space-between; color: var(--muted); font-size: 0.8rem; }
.on-clock b { color: var(--green-bright); }

/* Live matchup */
.mu-teams { display: flex; justify-content: space-between; align-items: flex-end; }
.mu-team .name { font-size: 0.75rem; color: var(--muted); font-weight: 700; }
.mu-team .tot { font-size: 1.9rem; font-weight: 900; line-height: 1; }
.mu-team.me .tot { color: var(--green-bright); }
.mu-team.them { text-align: right; }
.tug { height: 8px; border-radius: 4px; background: #3a2a33; margin: 10px 0 12px; overflow: hidden; }
.tug span { display: block; height: 100%; width: 50%; background: linear-gradient(90deg, #2f9a64, var(--green-bright)); transition: width 0.5s ease; }
.mu-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px dashed #263142; }
.mu-row.solo { grid-template-columns: 1fr 64px; }
.mu-row.solo .slotname { text-align: right; }
.mu-row .p { display: flex; justify-content: space-between; gap: 6px; font-weight: 700; }
.mu-row .p.them { flex-direction: row-reverse; }
.mu-row .slotname { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.pts { position: relative; font-weight: 900; color: var(--text); }
.p.me .pts { color: var(--green-bright); }
/* The +1 rises beside the score, on the name side, so it never lands on the
   row divider, the tug bar or the slot label. */
.pop {
  position: absolute; top: 0; right: 100%; margin-right: 5px;
  font-size: 0.75rem; font-weight: 900; color: var(--green-bright); opacity: 0; pointer-events: none;
}
.p.them .pop { color: #ff8fa3; right: auto; left: 100%; margin: 0 0 0 5px; }
.pop.go { animation: pop 0.9s ease-out; }
@keyframes pop {
  0% { opacity: 0; transform: translateY(6px); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-12px); }
}
@keyframes pulse { 50% { opacity: 0.35; } }
.bump { display: inline-block; animation: bump 0.35s ease-out; }
@keyframes bump { 40% { transform: scale(1.15); } }

/* Standings that re-sort as points land */
.standings { position: relative; height: 176px; }
.st-row {
  position: absolute; left: 0; right: 0; height: 40px;
  display: grid; grid-template-columns: 26px 1fr 44px 52px; align-items: center; gap: 8px;
  padding: 0 10px; border-radius: 10px; background: #1a2230;
  transition: top 0.6s cubic-bezier(.2, .8, .2, 1), background 0.3s;
}
/* Static positions for no-JS / reduced motion; the script sets top as rows re-sort. */
.st-row:nth-child(2) { top: 44px; }
.st-row:nth-child(3) { top: 88px; }
.st-row:nth-child(4) { top: 132px; }
.st-row.me { background: #173326; box-shadow: 0 0 0 1px #2f7a52 inset; }
.st-row .rk { font-weight: 900; color: var(--muted); }
.st-row.me .rk, .st-row.me .pt { color: var(--green-bright); }
.st-row .tm { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-row .wl { color: var(--muted); font-size: 0.78rem; text-align: right; }
.st-row .pt { font-weight: 900; text-align: right; }

/* Hero scene (pages whose hero is a live scene rather than the video). */
.hero-scene { width: min(360px, 100%); margin: 0 auto; }

/* Points race: bars grow and the order re-sorts. */
.race { position: relative; }
/* Static stacked rows without JS; the script switches to absolute rows that re-sort. */
.race.live .race-row { position: absolute; margin: 0; }
.race-row {
  position: relative; left: 0; right: 0; height: 30px; margin-bottom: 6px;
  display: grid; grid-template-columns: 98px 1fr 40px; align-items: center; gap: 8px;
  transition: top 0.6s cubic-bezier(.2, .8, .2, 1);
}
.race-row .tm { font-weight: 800; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-row .bar { height: 14px; border-radius: 7px; background: #263142; overflow: hidden; }
.race-row .bar span { display: block; height: 100%; border-radius: 7px; background: #4a5a73; transition: width 0.6s ease; }
.race-row.me .bar span { background: linear-gradient(90deg, #2f9a64, var(--green-bright)); }
.race-row.me .tm, .race-row.me .pt { color: var(--green-bright); }
.race-row .pt { font-weight: 900; text-align: right; font-size: 0.85rem; }

/* Championship bracket: winners advance step by step. */
.bracket { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 10px; align-items: center; }
.br-col { display: grid; gap: 8px; }
.br-col .lbl { font-size: 0.66rem; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; }
.br-pair { display: grid; gap: 4px; margin-bottom: 6px; }
.br-team {
  height: 32px; border-radius: 8px; background: #1a2230; border: 1px solid #263142;
  display: flex; align-items: center; gap: 6px; padding: 0 8px;
  font-weight: 800; font-size: 0.76rem; white-space: nowrap; overflow: hidden;
  transition: background 0.3s, border-color 0.3s, opacity 0.3s;
}
.br-team .sd { color: var(--muted); font-size: 0.68rem; }
.br-team.win { border-color: #2f7a52; background: #173326; color: #c9f5dc; }
.br-team.out { opacity: 0.4; }
.br-team.empty { border-style: dashed; color: transparent; background: transparent; }
.br-team.empty .sd { visibility: hidden; }
.br-team.champ { border-color: var(--green-bright); background: #173326; color: var(--green-bright); box-shadow: 0 0 22px rgba(94, 203, 143, 0.25); }

/* Scroll reveal. Content is visible without JS; the class is added by script. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .live-dot::before, .pop.go, .bump, .slot.filled { animation: none; }
  .st-row, .tug span { transition: none; }
}
