/* ==========================================================================
   PIRlo — pirlosoccer.com rebuild
   Hand-authored design system. Matches the current dark / crimson / gold look.
   Editable source we own. No build framework, no Tailwind — plain CSS.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Brand */
  --crimson:        #c41e3a;
  --crimson-bright: #dc143c;
  --crimson-deep:   #8f132a;
  --gold:           #c9a962;
  --gold-soft:      #ddc488;

  /* Surfaces (near-black, layered) */
  --bg:        #080808;
  --bg-1:      #0a0a0a;
  --bg-2:      #0f0f0f;
  --surface:   #141414;
  --surface-2: #1a1a1a;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  /* Text */
  --text:      #fafafa;
  --text-dim:  rgba(250, 250, 250, 0.66);
  --text-mute: rgba(250, 250, 250, 0.42);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- Layout helpers ------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
.display {
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-dim); max-width: 60ch; }

/* Mono eyebrow label — the "PIRLO // CORE PLATFORM" style */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before { content: "//"; color: var(--crimson); }

.linkish { cursor: pointer; background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.text-crimson { color: var(--crimson-bright); }
.text-gold { color: var(--gold); }
.text-dim { color: var(--text-dim); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--crimson); color: #fff; }
.btn--primary:hover { background: var(--crimson-bright); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--gold { background: var(--gold); color: #14110a; }
.btn--gold:hover { background: var(--gold-soft); }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled], .btn--disabled { opacity: 0.65; cursor: not-allowed; }
.btn[disabled]:hover, .btn--disabled:hover { transform: none; }

/* ---- Cards --------------------------------------------------------------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 92px;
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; letter-spacing: -0.03em; font-size: 1.25rem; }
.nav__brand img { height: 30px; width: auto; }
.nav__brand--wordmark img { height: 64px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
@media (max-width: 600px) { .nav { height: 72px; } .nav__brand--wordmark img { height: 48px; } }
.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__links a, .nav__links .linkish { font-size: 0.92rem; color: var(--text-dim); transition: color 0.2s; }
.nav__links a:hover, .nav__links .linkish:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__cta { display: flex; align-items: center; gap: 0.75rem; }
.nav__toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; align-items: center; justify-content: center; }
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); }
.nav__toggle span::before { top: -6px; } .nav__toggle span::after { top: 6px; }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu {
    border-bottom: 1px solid var(--line);
    background: var(--bg-1);
    padding: 1rem var(--gutter) 1.5rem;
  }
  .mobile-menu a:not(.btn) { display: block; padding: 0.7rem 0; color: var(--text-dim); border-bottom: 1px solid var(--line); }
  .mobile-menu a:not(.btn):last-of-type { border-bottom: none; }
  .mobile-menu .btn { margin-top: 0.75rem; width: 100%; }
  .mobile-menu .btn:first-of-type { margin-top: 1rem; }
}
@media (min-width: 901px) { .mobile-menu { display: none; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-1); }
.footer-cta {
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  padding-block: 3rem;
}
.footer-grid h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-mute); margin-bottom: 1rem; font-family: var(--font-mono); }
.footer-grid a, .footer-grid .linkish { display: block; padding: 0.3rem 0; color: var(--text-dim); font-size: 0.92rem; transition: color 0.2s; text-align: left; }
.footer-grid a:hover, .footer-grid .linkish:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: var(--text-mute); font-size: 0.82rem; }
.footer-bottom nav { display: flex; gap: 1.25rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero { position: relative; padding-block: clamp(4rem, 10vw, 8rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 75% -10%, rgba(196, 30, 58, 0.22), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(201, 169, 98, 0.10), transparent 60%);
}
.hero__inner { max-width: 60rem; position: relative; z-index: 2; }
.hero h1 { margin-block: 1.25rem; }
.hero .lead { margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Photo-backed hero: full-bleed image with a dark, readable gradient over it */
.hero--photo { padding-block: clamp(5rem, 12vw, 9rem); }
.hero--photo .hero__bg {
  position: absolute; inset: -14% 0; height: 128%; z-index: 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero--photo .hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,8,0.94) 0%, rgba(8,8,8,0.78) 42%, rgba(8,8,8,0.35) 100%),
    linear-gradient(0deg, var(--bg) 2%, rgba(8,8,8,0.15) 55%, rgba(8,8,8,0.55) 100%);
}
.hero--photo.hero--tall { min-height: 78vh; display: flex; align-items: center; }
.home-hero { min-height: min(88vh, 760px); display: flex; align-items: center; }

/* Full-bleed photo CTA band */
.photo-band { position: relative; overflow: hidden; }
.photo-band__bg { position: absolute; inset: -16% 0; height: 132%; background-size: cover; background-position: center 35%; will-change: transform; }
.photo-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,8,0.82), rgba(8,8,8,0.66)), radial-gradient(800px 400px at 80% 0%, rgba(196,30,58,0.28), transparent 65%); }
.photo-band__inner { position: relative; z-index: 2; padding-block: clamp(4rem, 9vw, 7rem); text-align: center; }

/* Marquee ticker */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-1); padding-block: 0.9rem; }
.marquee__track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); display: inline-flex; gap: 2.5rem; }
.marquee__track span::after { content: "//"; color: var(--crimson); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ==========================================================================
   Generic grids
   ========================================================================== */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .h2 { margin-top: 0.75rem; }
.section-head--center { margin-inline: auto; text-align: center; }

/* Capability / platform card */
.feature { display: flex; flex-direction: column; height: 100%; }
.feature__num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.18em; color: var(--crimson-bright); margin-bottom: 0.5rem; }
.feature__kicker { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.feature h3 { margin: 0.4rem 0 0.6rem; }
.feature p { color: var(--text-dim); font-size: 0.95rem; }
.feature__list { margin-top: 1rem; display: grid; gap: 0.5rem; }
.feature__list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--text-dim); }
.feature__list li::before { content: "▸"; color: var(--crimson-bright); }
.feature .btn { margin-top: auto; align-self: flex-start; }

/* ==========================================================================
   Team grid (about)
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { text-align: center; }
.team-card__photo {
  aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface-2);
  filter: grayscale(0.15);
}
.team-card h3 { font-size: 1.05rem; margin-top: 0.9rem; }
.team-card p { font-size: 0.82rem; color: var(--gold); font-family: var(--font-mono); letter-spacing: 0.04em; }

/* Percentile bars (home report preview) */
.pct { display: grid; gap: 0.85rem; }
.pct__row { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 0.75rem; align-items: center; }
.pct__row > span { font-size: 0.86rem; color: var(--text-dim); }
.pct__row > b { font-size: 0.86rem; color: var(--text); font-variant-numeric: tabular-nums; }
.pct__bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pct__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--crimson), var(--gold)); border-radius: 999px; }
.rating-box { padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.rating-box .stat__num { font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-soft { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.78rem; color: var(--text-dim); font-family: var(--font-mono); }

/* ==========================================================================
   Why-PIRlo comparison
   ========================================================================== */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare__col { padding: clamp(1.25rem, 3vw, 2rem); }
.compare__col--old { background: var(--bg-2); }
.compare__col--new { background: linear-gradient(180deg, rgba(196,30,58,0.10), transparent); border-left: 1px solid var(--line); }
.compare__col h3 { font-size: 1rem; font-family: var(--font-mono); letter-spacing: 0.06em; margin-bottom: 1rem; }
.compare__col--old h3 { color: var(--text-mute); }
.compare__col--new h3 { color: var(--gold); }
.compare__row { padding: 0.75rem 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.compare__col--old .compare__row { color: var(--text-dim); }
.compare__col--new .compare__row { color: var(--text); display: flex; gap: 0.55rem; }
.compare__col--new .compare__row::before { content: "✓"; color: var(--crimson-bright); font-weight: 700; }

/* ==========================================================================
   Stat band
   ========================================================================== */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 680px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 1.25rem; }
.stat__num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--gold); letter-spacing: -0.03em; }
.stat__label { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.25rem; }

/* ==========================================================================
   League coverage
   ========================================================================== */
.league-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
@media (max-width: 880px) { .league-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .league-grid { grid-template-columns: repeat(2, 1fr); } }
.league-chip { border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem; background: var(--bg-2); transition: border-color 0.2s; }
.league-chip:hover { border-color: var(--gold); }
.league-chip strong { display: block; font-size: 0.95rem; }
.league-chip span { font-size: 0.76rem; color: var(--text-mute); font-family: var(--font-mono); }

/* ==========================================================================
   Pro Data — datawrapper embeds
   ========================================================================== */
.league-block { margin-top: 1.5rem; }
.league-block.is-hidden { display: none; }
.league-tabs {
  position: sticky; top: 92px; z-index: 20;
  background: #060606;
  padding: 0.85rem 0; margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch;
}
.league-tabs::-webkit-scrollbar { height: 0; }
.league-tabs .filter-btn { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 600px) { .league-tabs { top: 72px; } }
.league-block__head { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.league-block__head h3 { font-size: 1.35rem; }
.league-block__head span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-mute); }
.dw-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.dw-embed iframe { width: 100% !important; border: 0; display: block; }
.dw-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.dw-placeholder { padding: 2.5rem; text-align: center; color: var(--text-mute); border: 1px dashed var(--line-2); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.85rem; }

/* ==========================================================================
   Blog
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-btn { padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.85rem; color: var(--text-dim); transition: all 0.2s; }
.filter-btn:hover { color: var(--text); }
.filter-btn[aria-pressed="true"] { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card__img { aspect-ratio: 16/9; width: 100%; object-fit: cover; background: var(--surface-2); }
.post-card__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; gap: 0.75rem; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-mute); margin-bottom: 0.6rem; }
.tag { background: rgba(196,30,58,0.16); color: var(--crimson-bright); padding: 0.15rem 0.55rem; border-radius: 6px; letter-spacing: 0.04em; }
.post-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.post-card p { font-size: 0.9rem; color: var(--text-dim); flex: 1; }
.post-card__more { margin-top: 1rem; color: var(--gold); font-size: 0.85rem; font-weight: 600; display: inline-flex; gap: 0.4rem; }

/* ==========================================================================
   Order / pricing
   ========================================================================== */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: stretch; }
@media (max-width: 1080px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card--featured { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201,169,98,0.25); }
.price-card__badge { position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%); background: var(--gold); color: #14110a; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.25rem 0.75rem; border-radius: 999px; white-space: nowrap; }
.price-card h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.price-card__price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.price-card__price small { font-size: 0.85rem; font-weight: 500; color: var(--text-mute); display: block; font-family: var(--font-mono); letter-spacing: 0.02em; }
.price-card__price--soon { font-size: 1.5rem; color: var(--gold); }
.price-card__desc { font-size: 0.88rem; color: var(--text-dim); margin: 0.75rem 0 1rem; }
.price-card__list { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
.price-card__list li { display: flex; gap: 0.55rem; font-size: 0.86rem; color: var(--text-dim); }
.price-card__list li::before { content: "✓"; color: var(--crimson-bright); font-weight: 700; }
.price-card__note { font-size: 0.78rem; color: var(--gold); margin-bottom: 1rem; }
.price-card .btn { margin-top: auto; }

/* Form */
.form-shell { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); padding: clamp(1.5rem, 4vw, 2.5rem); margin-top: 3rem; }
.fieldset { margin-bottom: 2rem; }
.fieldset > legend { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; padding: 0; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 620px) { .field-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; color: var(--text-dim); }
.field .opt { color: var(--text-mute); }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 0.7rem 0.85rem; color: var(--text); transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.order-note { font-size: 0.82rem; color: var(--text-mute); margin-top: 1rem; text-align: center; }

/* Promo banner + order submission states (order form) */
.promo-banner { border: 1px solid rgba(201,169,98,0.45); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.6rem; background: rgba(201,169,98,0.10); font-size: 0.95rem; line-height: 1.5; }
.promo-banner strong { color: var(--gold); }
.promo-banner__note { color: var(--text-mute); font-size: 0.85rem; }
.order-note--error { color: #e4596f; }
.order-success { text-align: center; }
.order-success .h3 { margin-bottom: 0.6rem; }
.order-success p { margin-bottom: 0.9rem; }

/* Consent checkboxes (order form) — same crimson-on-check language as .choice */
.consent-check { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; padding: 0.85rem 0.95rem; margin-bottom: 0.6rem; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; transition: border-color 0.15s, background 0.15s; font-size: 0.9rem; line-height: 1.45; min-width: 0; }
.consent-check:last-child { margin-bottom: 0; }
.consent-check:hover { background: rgba(255,255,255,0.025); }
.consent-check input { appearance: none; -webkit-appearance: none; width: 1.15rem; height: 1.15rem; margin-top: 0.12rem; border: 1px solid var(--line-2); border-radius: 5px; background: transparent; cursor: pointer; position: relative; transition: border-color 0.15s, background 0.15s; }
.consent-check:has(input:checked) { border-color: var(--crimson); background: rgba(196,30,58,0.09); }
.consent-check input:checked { border-color: var(--crimson); background: var(--crimson); }
.consent-check input:checked::after { content: ""; position: absolute; left: 0.36rem; top: 0.12rem; width: 0.28rem; height: 0.55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.consent-check input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.consent-check__note { display: inline-block; color: var(--text-mute); font-size: 0.82rem; margin-top: 0.15rem; }
.selected-package { background: rgba(201,169,98,0.10); border: 1px solid rgba(201,169,98,0.3); border-radius: 10px; padding: 0.9rem 1.1rem; font-size: 0.9rem; margin-bottom: 1.25rem; }
.selected-package strong { color: var(--gold); }

/* ==========================================================================
   Sample report wrapper
   ========================================================================== */
.report-frame { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #0a0a0a; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.report-frame iframe { width: 100%; height: 1200px; border: 0; display: block; }

/* ==========================================================================
   Stub / legal pages
   ========================================================================== */
.legal { max-width: 50rem; }
.legal h1 { margin-bottom: 1rem; }
.legal p { color: var(--text-dim); margin-bottom: 1rem; }
.legal-date { font-size: 0.95rem; margin-bottom: 2rem; }
.legal-body h2 { color: var(--text); font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.legal-body p { color: var(--text-dim); margin-bottom: 1rem; line-height: 1.7; }
.legal-body p.legal-sublabel { color: var(--text); margin-bottom: 0.5rem; }
.legal-body ul, .legal-body ol { color: var(--text-dim); margin: 0 0 1.25rem 1.25rem; padding-left: 0.75rem; line-height: 1.7; }
.legal-body li { margin-bottom: 0.6rem; }
.legal-body li::marker { color: var(--gold); }
.legal-body strong { color: var(--text); }
.legal-body hr { border: none; border-top: 1px solid var(--line-2); margin: 1.75rem 0; }
.legal-body a { color: var(--gold); }
.notice { border: 1px solid var(--line-2); border-left: 3px solid var(--gold); border-radius: 10px; padding: 1.25rem 1.5rem; background: var(--bg-2); color: var(--text-dim); }

/* ==========================================================================
   Misc / reveal
   ========================================================================== */
.divider { height: 1px; background: var(--line); border: 0; margin-block: 0; }

/* ==========================================================================
   Contact modal (Talk to Us)
   ========================================================================== */
.contact-modal[hidden] { display: none; }
.contact-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(1rem, 6vh, 5rem) 1rem;
  background: rgba(4, 4, 4, 0.86);
  overflow-y: auto;
  animation: fade-in 0.2s var(--ease);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.contact-modal.is-closing { animation: fade-out 0.15s var(--ease) forwards; }
.contact-modal.is-closing .contact-card { animation: pop-out 0.15s var(--ease) forwards; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop-out { to { opacity: 0; transform: translateY(8px) scale(0.985); } }
@media (prefers-reduced-motion: reduce) {
  .contact-modal, .contact-card, .contact-modal.is-closing, .contact-modal.is-closing .contact-card { animation: none !important; }
}
.contact-card {
  width: 100%; max-width: 32rem;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  animation: pop-in 0.25s var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.contact-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.contact-card__head h2 { font-size: 1.5rem; }
.contact-card__head p { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.35rem; }
.contact-close { width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 1.1rem; color: var(--text-dim); flex-shrink: 0; transition: all 0.2s; }
.contact-close:hover { color: var(--text); border-color: var(--gold); }
.contact-form { display: grid; gap: 0.9rem; }
.contact-form .field { min-width: 0; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; min-width: 0; box-sizing: border-box; }
.contact-form .field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 460px) { .contact-form .field--row { grid-template-columns: 1fr; } }
.contact-form textarea { min-height: 96px; resize: vertical; }

/* Selectable radio cards (audience / timeline) */
.choice-block { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-block legend { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.7rem; padding: 0; }
.choice-grid { display: grid; gap: 0.6rem; }
.choice-grid--2 { grid-template-columns: 1fr 1fr; }
.choice-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) { .choice-grid--2, .choice-grid--3 { grid-template-columns: 1fr; } }
.choice { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0.65rem; align-items: start; padding: 0.85rem 0.95rem; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.choice:hover { background: rgba(255,255,255,0.025); }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice__radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); margin-top: 1px; flex-shrink: 0; transition: border-color 0.15s; position: relative; }
.choice__body strong { display: block; font-size: 0.92rem; color: var(--text); line-height: 1.25; }
.choice__body span { display: block; font-size: 0.8rem; color: var(--text-dim); margin-top: 0.2rem; }
.choice:has(input:checked) { border-color: var(--crimson); background: rgba(196,30,58,0.09); }
.choice:has(input:checked) .choice__radio { border-color: var(--crimson); }
.choice:has(input:checked) .choice__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--crimson); }
.choice input:focus-visible + .choice__radio { outline: 2px solid var(--gold); outline-offset: 2px; }
.contact-note { font-size: 0.78rem; color: var(--text-mute); text-align: center; margin-top: 0.25rem; }
.contact-note--error { color: var(--crimson-bright); }
/* Honeypot — kept in the DOM (so bots fill it) but hidden from real users. */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-success { text-align: center; padding: 1.5rem 0.5rem; }
.contact-success[hidden] { display: none; }
.contact-success__check { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: rgba(0,199,88,0.14); color: #00c758; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.contact-success h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.contact-success p { color: var(--text-dim); margin-bottom: 1.25rem; }

/* ==========================================================================
   Lazy Datawrapper embeds — placeholder shown until scrolled into view
   ========================================================================== */
.dw-embed { position: relative; min-height: 140px; }
.dw-embed.is-loading::before {
  content: "Loading leaderboard…";
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-mute);
}

/* ==========================================================================
   Native PIRlo leaderboard tables (Pro Data)
   ========================================================================== */
.ptable {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
}
.ptable__bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ptable__search {
  flex: 1; min-width: 180px; background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 0.5rem 1rem; color: var(--text); font-size: 0.85rem;
}
.ptable__search:focus { outline: none; border-color: var(--gold); }
.ptable__select {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 0.5rem 2rem 0.5rem 1rem; color: var(--text); font-size: 0.85rem; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c9a962' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center;
}
.ptable__select:focus { outline: none; border-color: var(--gold); }
.ptable__select option { background: var(--bg); color: var(--text); }
.ptable__clear {
  background: none; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 0.5rem 0.9rem; color: var(--text-dim); font-size: 0.78rem; cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}
.ptable__clear:hover { border-color: var(--gold); color: var(--gold); }
.ptable__clear.is-hidden { display: none; }
.ptable__count { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-mute); letter-spacing: 0.04em; white-space: nowrap; }
.ptable__scroll { max-height: 600px; overflow: auto; -webkit-overflow-scrolling: touch; }
.ptable table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; table-layout: fixed; }
.ptable col.c-rank { width: 64px; }
.ptable col.c-pos { width: 78px; }
.ptable col.c-rating { width: 132px; }
.ptable td:nth-child(4) { overflow: visible; text-overflow: clip; }
.ptable thead th {
  position: sticky; top: 0; z-index: 1;
  background: #0c0c0c; color: var(--text-mute);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line-2); font-weight: 500;
}
/* iOS Safari is fragile with sticky table headers inside overflow scrolling. */
@supports (-webkit-touch-callout: none) {
  .ptable thead th { position: static; }
}
@media (max-width: 600px) { .ptable thead th { position: static; } }
.ptable thead th.num, .ptable td.rating { text-align: right; }
.ptable tbody tr { border-bottom: 1px solid var(--line); transition: background 0.12s; }
.ptable tbody tr:last-child { border-bottom: 0; }
.ptable tbody tr:hover { background: rgba(255,255,255,0.025); }
.ptable td { padding: 0.6rem 1rem; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptable .rank { font-family: var(--font-mono); color: var(--text-mute); font-size: 0.82rem; }
.ptable .rank__all { font-size: 0.62rem; color: var(--text-mute); opacity: 0.6; font-weight: 400; }
.ptable.is-filtered col.c-rank { width: 92px; }
.ptable tr[data-top="1"] .rank { color: var(--gold); font-weight: 700; }
.ptable tr[data-top="2"] .rank, .ptable tr[data-top="3"] .rank { color: var(--gold-soft); font-weight: 600; }
.ptable .player { font-weight: 600; color: var(--text); }
.ptable .club { color: var(--text-dim); }
.ptable .pos { display: inline-block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.05em; color: var(--gold); background: rgba(201,169,98,0.10); border: 1px solid rgba(201,169,98,0.22); border-radius: 6px; padding: 0.1rem 0.4rem; }
.ptable .rating__wrap { display: flex; align-items: center; gap: 0.55rem; justify-content: flex-end; }
.ptable .rating__val { font-family: var(--font-mono); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.ptable .rating__bar { flex: 1; max-width: 64px; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ptable .rating__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--crimson), var(--gold)); }
.ptable tbody tr.is-hidden { display: none; }
.ptable__foot { padding: 0.75rem 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.ptable__src { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-mute); }
.ptable__empty { padding: 1.5rem 1rem; text-align: center; color: var(--text-mute); font-family: var(--font-mono); font-size: 0.82rem; }
@media (max-width: 560px) {
  .ptable__scroll { overflow-x: auto; }
  .ptable table { min-width: 560px; }
  .ptable td, .ptable thead th { padding-left: 0.6rem; padding-right: 0.6rem; }
  .ptable .rating__bar { display: none; }
  .ptable col.c-pos { width: 54px; }
  .ptable col.c-rating { width: 92px; }
}
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ============================== CONSENT ============================== */
/* /consent — e-sign form. Document text is the legal source verbatim;
   these styles only shape the inputs woven into it. */
.consent-wrap { max-width: 50rem; }
.consent-form { margin-top: 1.5rem; }
.consent-doc h2 { margin-top: 2.25rem; }
.consent-fields { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0.75rem 0 1.5rem; }
.consent-fields--signature { margin-top: 1.25rem; }
.initial-row { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; padding: 0.85rem 0.95rem; margin-bottom: 0.6rem; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 0.92rem; line-height: 1.55; color: var(--text-dim); }
.initial-row:focus-within { border-color: var(--gold); }
.initial-box { width: 5.2rem; text-align: center; text-transform: uppercase; background: var(--bg-1, rgba(255,255,255,0.04)); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text); padding: 0.45rem 0.4rem; font-size: 0.9rem; }
.initial-box:focus { border-color: var(--gold); outline: none; }
.consent-doc-footer p { font-size: 0.82rem; color: var(--text-mute); margin-bottom: 0.5rem; }
.consent-audit { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line-2); }
.consent-audit p { font-size: 0.8rem; color: var(--text-mute); margin-bottom: 0.35rem; }
.consent-audit code { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); }
.consent-sign-actions { margin-top: 1.5rem; }
.consent-success { margin-top: 1.5rem; border-color: var(--gold); }
.consent-filled { display: inline-block; min-height: 1.4em; padding: 0.2rem 0.4rem; border-bottom: 1px solid var(--line-2); color: var(--text); font-weight: 500; }
.consent-filled--initials { min-width: 3.5rem; text-align: center; text-transform: uppercase; }

/* Print = the parent's take-home copy of the (signed) form. Light page,
   chrome hidden, document + entered values only. */
@media print {
  body.consent-page { background: #fff !important; color: #000 !important; }
  body.consent-page .site-header,
  body.consent-page .site-footer,
  body.consent-page .contact-modal,
  body.consent-page .consent-success,
  body.consent-page .consent-sign-actions,
  body.consent-page .eyebrow { display: none !important; }
  body.consent-page .form-shell { border: none; background: none; padding: 0; margin: 0; }
  body.consent-page h1, body.consent-page .display { color: #000 !important; font-size: 1.6rem !important; }
  body.consent-page .consent-doc, body.consent-page .consent-doc * { color: #000 !important; background: none !important; }
  body.consent-page .initial-row, body.consent-page .consent-check { border-color: #999; }
  body.consent-page .consent-filled { border-bottom-color: #666; }
  body.consent-page .field label { color: #333; }
  body.consent-page .field input { color: #000; background: none; border: none; border-bottom: 1px solid #666; border-radius: 0; }
  body.consent-page .initial-box { background: none; border-color: #666; }
}

/* Invite-linked consent (Phase D): "Signing for" banner / invalid-invite notice. */
.consent-invite-banner { margin-top: 1.5rem; padding: 0.9rem 1.1rem; border: 1px solid var(--gold); border-radius: var(--radius); background: rgba(201,169,98,0.08); color: var(--text); font-weight: 500; }
.consent-invite-banner--error { border-color: var(--crimson); background: rgba(196,30,58,0.08); color: var(--text-dim); font-weight: 400; }
@media print { .consent-invite-banner { display: none !important; } }
