/* ============================================================================
   brand.css — logo scale, league marks, green team logos, service section.
   Loaded after style.css so it wins without touching legacy rules.
   ============================================================================ */

/* ---------- ViziHoop mark (trimmed PNG, no inner margin) ---------- */
.vh-logo-img { aspect-ratio: auto; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
a:hover .vh-logo-img, .vh-logo:hover .vh-logo-img { transform: rotate(-6deg) scale(1.06); }
.vh-logo-header { height: 40px; gap: 12px; }
.vh-logo-header .vh-logo-wordmark { font-size: 21px; }
.vh-logo-sidebar { height: 42px; gap: 12px; }
.vh-logo-sidebar .vh-logo-wordmark { font-size: 22px; }
.sidebar-brand { padding-block: 6px 18px; }
.vh-logo-auth { height: 72px; }
.vh-logo-compact { height: 22px; }
.vh-logo-icon { height: 30px; }
@media (max-width: 900px) {
  .vh-logo-header { height: 34px; }
  .vh-logo-header .vh-logo-wordmark { font-size: 18px; }
}

/* ---------- Leagues band ---------- */
.leagues-band { gap: clamp(20px, 5vw, 56px); flex-wrap: wrap; perspective: 900px; }
.league-card {
  position: relative;
  width: min(300px, 80vw);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  border: 1px solid rgba(159, 232, 112, .16);
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(159, 232, 112, .10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  overflow: hidden;
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--ts, 1));
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s;
  will-change: transform;
}
.league-card.is-tilting { --ts: 1.035; transition: transform .14s ease-out, border-color .3s, box-shadow .3s; }
.league-card::before {
  content: ''; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(159,232,112,.35) 80%, transparent 90%);
  animation: vh-spin 6s linear infinite; animation-play-state: paused; opacity: 0; transition: opacity .4s;
}
.league-card::after { content: ''; position: absolute; inset: 1px; border-radius: 17px; background: var(--bg, #070b0a); z-index: 0; opacity: .92; }
.league-card:hover { border-color: rgba(159,232,112,.5); box-shadow: 0 20px 60px -20px rgba(159,232,112,.35); }
.league-card:hover::before { opacity: 1; animation-play-state: running; }
.league-wordmark { position: relative; z-index: 1; margin-bottom: 24px; font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: clamp(54px, 6vw, 76px); line-height: 1; letter-spacing: -.025em; color: #edf4ed; }
.league-wordmark-pro { transform: scaleX(.82); letter-spacing: .025em; }
.league-wordmark-college { font-size: clamp(46px, 5.2vw, 62px); transform: skewX(-7deg); }
.league-card figcaption { position: absolute; z-index: 1; bottom: 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3, #9aa7a0); }
@keyframes vh-spin { to { transform: rotate(360deg); } }

/* ---------- Original team identifiers (all components) ---------- */
:where(.team-logo, .team-pick-logo, .dash-player-logo, .matchup-emblem, .hwp-logo, .row-emblem.has-logo) { --team-logo: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20120%20120%22%20fill%3D%22none%22%20stroke%3D%22%23b6f085%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%2260%22%20r%3D%2238%22%2F%3E%3Cpath%20d%3D%22M22%2060h76M60%2022v76M33%2033c30%204%2050%2024%2054%2054M33%2087c4-30%2024-50%2054-54%22%2F%3E%3C%2Fsvg%3E"); }
.team-logo, .team-pick-logo, .dash-player-logo, .matchup-emblem, .hwp-logo, .row-emblem.has-logo {
  --team-logo-size: 96%;

  background: transparent !important;
  border: 1px solid transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  border-radius: 8px;
  transition: box-shadow .3s, border-color .3s, transform .3s;
}
.team-logo::after, .team-pick-logo::after, .dash-player-logo::after, .matchup-emblem::after, .hwp-logo::after, .row-emblem.has-logo::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--team-logo, none) center / var(--team-logo-size) no-repeat !important;
  filter: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.team-logo::before, .matchup-emblem::before { z-index: 1; pointer-events: none; }
.team-pick:hover .team-pick-logo, .matchup-side:hover .matchup-emblem, .dash-player-row:hover .dash-player-logo, .game-row:hover .row-emblem.has-logo {
  border-color: rgba(159, 232, 112, .6) !important;
  box-shadow: 0 0 0 4px rgba(159,232,112,.08), 0 0 24px rgba(159,232,112,.18);
}
.team-pick:hover .team-pick-logo::after, .matchup-side:hover .matchup-emblem::after { transform: scale(1.08); }
.team-pick-logo, .dash-player-logo { display: block; }
.team-pick-logo { width: 46px; height: 46px; }
.dash-player-logo { width: 42px; height: 42px; }
.hwp-logo { width: 34px; height: 34px; }
.matchup-emblem { --team-logo-size: 66%; }
.row-emblems { grid-auto-flow: column; gap: 6px; }
.row-emblem.has-logo { width: 36px; height: 36px; padding: 0; border-radius: 6px; display: block; }

/* ---------- Service section ---------- */

.vh-logo-white { color: #fff; }
.vh-logo-white .vh-logo-wordmark { color: currentColor; }
.vh-logo-white .vh-logo-img { width: 52px; height: 30px; }
html[data-theme="light"] .sidebar .vh-logo-white { color: var(--text-1); }
.ap-story { max-width: 1320px; margin: auto; padding: clamp(64px,8vw,112px) clamp(20px,5vw,64px); }
.ap-full { padding: 16px 0 24px; }
.ap-heading { max-width: 850px; margin: 0 auto 40px; text-align: center; }
.ap-heading h1,.ap-heading h2 { font-family: var(--sans); font-size: clamp(24px,2.5vw,33px); font-weight: 700; line-height: 1.4; letter-spacing: -.015em; margin: 0; position: relative; top: -6px; color: var(--text-1); }
.ap-demo { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--brand); }
.ap-step { display: grid; grid-template-columns: minmax(0,1fr); justify-items: center; gap: 28px; padding: 40px 0 48px; border-top: 1px solid var(--line-2); }
.ap-copy h3 { font-size: clamp(26px,3vw,40px); line-height: 1.2; letter-spacing: -.025em; margin: 0; text-align: center; }
.ap-action { text-align: center; }
.ap-action .text-link { display: inline-flex; justify-content: center; }
.ap-visual { width: min(100%, 640px); min-width: 0; margin: 0; padding: clamp(20px,3vw,32px); border: 1px solid var(--line-2); background: #0d1720; border-radius: 14px; }
.ap-visual-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.ap-visual-head span { color: #aebccd; font-size: 11px; }
.ap-visual .ap-court { display: block; width: 100%; height: auto; max-height: 260px; margin: 24px 0; color: #a1b5bd; }
.ap-visual figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #aebccd; font-size: 11px; line-height: 1.6; }
.ap-sequence { display: flex; gap: 14px; align-items: center; font-size: 11px; color: #aebccd; margin-top: 18px; }
.ap-sequence i { height: 6px; flex: 1; background: linear-gradient(90deg,var(--brand) 66.67%,#283846 66.67%); border-radius: 3px; }
.ap-engine-flow { display: flex; justify-content: space-between; gap: 8px; padding: 36px 0 24px; color: #b8c4d3; font-size: 12px; }
.ap-logo-stage { display: grid; place-items: center; min-height: 180px; position: relative; border-block: 1px solid #32473c; background: radial-gradient(ellipse at center,#1c3225 0%,transparent 70%); }
.ap-logo-stage::before,.ap-logo-stage::after { content: ''; height: 24px; width: 1px; position: absolute; left: 50%; background: var(--brand); }
.ap-logo-stage::before { top: 0; }.ap-logo-stage::after { bottom: 0; }
.ap-logo-stage .vh-logo { flex-direction: column; gap: 14px; }.ap-logo-stage .vh-logo-img { width: 100px; height: 55px; }.ap-logo-stage .vh-logo-wordmark { font-size: 24px; }
.ap-engine-output { display: flex; justify-content: center; gap: 10px; color: var(--brand); font-size: 13px; padding: 26px 0; }
.ap-result { display: flex; flex-direction: column; gap: 8px; margin: 36px 0 20px; }.ap-result strong { font-size: 46px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }.ap-result span { font-size: 13px; color: #b8c4d3; }
.ap-meter { height: 6px; background: #283846; overflow: hidden; }.ap-meter i { display: block; width: 66.6667%; height: 100%; background: var(--brand); transform-origin: left; }
.ap-insight dl { margin: 24px 0; }.ap-insight dl div { margin: 20px 0; }.ap-insight dt { font-size: 12px; color: var(--brand); margin-bottom: 6px; }.ap-insight dd { margin: 0; color: #c4cedb; font-size: 14px; line-height: 1.6; }
.ap-limits { border-top: 1px solid var(--line-2); margin-bottom: 40px; }
.ap-limits summary { cursor: pointer; padding: 24px 0; color: var(--text-2); font-size: 14px; }
.ap-limits summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.ap-limits > div { max-width: 70ch; padding-bottom: 16px; color: var(--text-2); font-size: 14px; line-height: 1.8; }

@media(max-width:700px) { .ap-step { grid-template-columns: 1fr; gap: 28px; padding: 32px 0 44px; }.ap-heading { margin-bottom: 36px; }.ap-engine-flow { font-size: 11px; }.ap-full { padding-top: 12px; }.ap-copy h3 br { display: none; } }

/* ---------- Pricing (public #plans + dashboard #pricing) ---------- */
.px { max-width: 1180px; margin: 0 auto; }
.px-public { padding: clamp(96px, 12vw, 150px) clamp(20px, 5vw, 56px) clamp(72px, 9vw, 110px); }
.px-dash { padding-block: 8px 40px; }
.px-intro { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); }
.px-eyebrow { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.px-title { font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: clamp(34px, 5vw, 62px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 20px; color: var(--text-1); }
.px-dash .px-title { font-size: clamp(30px, 3.6vw, 44px); }
.px-sub { margin: 0 auto; max-width: 34em; color: var(--text-2); font-size: 16px; line-height: 1.7; }

.px-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
@media (max-width: 1100px) { .px-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .px-grid { grid-template-columns: 1fr; } }

.px-card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 24px 24px; border-radius: 16px; --plan-accent: var(--text-2); --plan-tint: var(--card-bg);
  border: 1.2px solid var(--line-2);
  background: var(--plan-tint);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.px-card:hover { border-color: var(--line-3); }
.px-card.is-rec {
  border-color: var(--brand-line);
  background: radial-gradient(120% 70% at 50% 0%, rgba(159,232,112,.13), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  box-shadow: 0 30px 80px -40px rgba(159,232,112,.45);
}
.px-card.is-rec:hover { border-color: var(--brand); }
.px-head { display: flex; align-items: center; min-height: 34px; }
.px-name { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 700; color: var(--text-1); }
.px-plan-icon { display: grid; place-items: center; width: 34px; height: 34px; color: var(--plan-accent); }
.px-plan-icon svg { width: 25px; height: 25px; }
.px-card[data-tier="starter"] { --plan-accent: #65d4d0; --plan-tint: linear-gradient(155deg,#142330,#102a29); border-color: #2c6565; }
html[data-theme="light"] .px-card[data-tier="starter"] { --plan-accent: #176967; --plan-tint: #effaf8; border-color: #71aaa5; }
.px-card.is-rec .px-name { color: var(--brand); }
.px-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 2; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.px-price { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 6px; }
.px-amount { font-family: 'Archivo Black', sans-serif; font-size: clamp(40px, 3.6vw, 50px); line-height: 1; letter-spacing: -.03em; color: var(--text-1); font-variant-numeric: tabular-nums; }
.px-period { color: var(--text-3); font-size: 14px; }
.px-quota { margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); color: var(--text); font-size: 14px; font-weight: 600; }
.px-features { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; flex: 1; align-content: start; }
.px-features li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.px-features li.px-inherit { display: block; color: var(--text-3); font-size: 13px; }
.px-features .check { width: 16px; height: 16px; margin-top: 2px; color: var(--plan-accent); }
.px-features .px-locked { color: #f38c8c; font-size: 13px; }
.px-locked > svg { width: 16px; height: 16px; margin-top: 2px; color: #ff7777; }
.px-locked s { text-decoration-thickness: 1px; }
html[data-theme="light"] .px-features .px-locked,html[data-theme="light"] .px-locked > svg { color: #ac3030; }
.px-card[data-tier="starter"] .px-cta:not(.is-current) { background: linear-gradient(110deg,#17c4d1,#26cd88); color: #062625; border-color: transparent; }
.px-cta {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px;
  border-radius: 12px; border: 1px solid var(--line-3); background: transparent;
  color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.px-cta:hover { border-color: var(--brand-line); background: var(--brand-soft); color: var(--text-1); }
.px-cta.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.px-cta.primary:hover { background: var(--brand-bright); transform: translateY(-1px); }
.px-cta:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.px-cta.is-current { cursor: default; color: var(--brand-ink); border-style: dashed; border-color: var(--brand-line); }

.px-compare { margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line-2); }
.px-compare summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 22px 0; color: var(--text-2); font-size: 14px; font-weight: 600;
}
.px-compare summary::-webkit-details-marker { display: none; }
.px-compare summary:hover { color: var(--text-1); }
.px-compare summary svg { width: 16px; height: 16px; transition: transform .3s; }
.px-compare[open] summary svg { transform: rotate(180deg); }
.px-table-wrap { overflow-x: auto; }
.px-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.px-table th, .px-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.px-table thead th { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.px-table tbody th { text-align: left; font-weight: 400; color: var(--text-2); }
.px-table td { color: var(--text); }
.px-table .is-rec { background: rgba(159,232,112,.05); }
.px-table thead .is-rec { color: var(--brand); }
.px-yes .check { width: 16px; height: 16px; color: var(--brand); vertical-align: middle; }
.px-no { color: var(--text-3); }
.px-foot { margin: 28px auto 0; max-width: 46em; text-align: center; font-size: 12px; line-height: 1.6; color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .px-card, .px-cta, .px-compare summary svg { transition: none; } }

/* ---------- Charts: never inherit the 20px icon sizing ---------- */
.chart-host svg { width: 100% !important; height: auto !important; max-height: 280px; overflow: visible; }
.chart-host svg[viewBox="0 0 168 168"] { width: 168px !important; max-width: 100%; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  .league-card::before { animation: none; }
  .vh-logo-img, .team-logo::after, .service-card { transition: none; }
}
