/* ============================================================================
   ViziHoop · Visual System
   A dark, restrained product surface for NBA matchup analytics.
   ============================================================================ */

@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/v2-font-0.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/v2-font-1.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/v2-font-2.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/v2-font-3.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/v2-font-4.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/v2-font-5.woff2) format('woff2');
}

:root {
  color-scheme: dark;

  /* Surfaces — deep navy instead of pure black */
  --bg: #0A1426;
  --bg-elev: #0E1A30;
  --surface: #14253E;
  --surface-2: #1B2E4B;
  --surface-3: #243A5C;

  /* Borders */
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.10);
  --line-3: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #EEF3F8;
  --text-1: #FFFFFF;
  --text-2: #A6B4C7;
  --text-3: #6E7E94;
  --text-4: #465670;

  /* Accents — fresh green replaces amber */
  --green: #9FE870;
  --green-bright: #B6F085;
  --green-soft: rgba(159, 232, 112, 0.14);
  --green-line: rgba(159, 232, 112, 0.34);
  --green-deep: #6BC846;
  --steel: #6FA8FF;
  --steel-soft: rgba(111, 168, 255, 0.14);
  --rose: #FF6E6E;
  --rose-soft: rgba(255, 110, 110, 0.14);

  /* Aliases kept for backward compatibility with existing CSS rules */
  --amber: #9FE870;
  --amber-soft: rgba(159, 232, 112, 0.14);
  --amber-line: rgba(159, 232, 112, 0.34);
  --teal: #9FE870;
  --teal-soft: rgba(159, 232, 112, 0.14);

  /* ============================================================
     Semantic color system — every state uses the same color
     across landing and workspace.
     ============================================================ */
  --brand: #9FE870;          /* primary actions, links, focus */
  --brand-bright: #B6F085;
  --brand-soft: rgba(159, 232, 112, 0.12);
  --brand-line: rgba(159, 232, 112, 0.36);

  --success: #5DD6A0;        /* analysis complete, valid data, accuracy */
  --success-bright: #7CE7B5;
  --success-soft: rgba(93, 214, 160, 0.14);
  --success-line: rgba(93, 214, 160, 0.36);

  --warning: #F0C26B;        /* partial data, in progress, attention */
  --warning-bright: #F7D693;
  --warning-soft: rgba(240, 194, 107, 0.12);
  --warning-line: rgba(240, 194, 107, 0.36);

  --error: #F26666;          /* failure, load problem, blocked action */
  --error-bright: #F88888;
  --error-soft: rgba(242, 102, 102, 0.12);
  --error-line: rgba(242, 102, 102, 0.36);

  --info: #6FA8FF;           /* neutral, supportive information */
  --info-soft: rgba(111, 168, 255, 0.12);
  --info-line: rgba(111, 168, 255, 0.36);

  /* Theme-aware helpers (redefined for html[data-theme="light"] in experience.css) */
  --on-brand: #0a140c;       /* text on a solid brand fill */
  --brand-ink: #B6F085;      /* brand-coloured small text */
  --card-bg: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  --card-bg-muted: rgba(255, 255, 255, .015);

  /* Focus ring — high-contrast across both themes */
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand);

  /* Radii */
  --r-1: 6px;
  --r-2: 10px;
  --r-3: 14px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-snap: cubic-bezier(.4, 0, .2, 1);
  --d-fast: 140ms;
  --d-med: 240ms;
  --d-slow: 480ms;

  /* Type scale */
  --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
}

/* ============================================================================
   Reset + base typography
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

button, input, select { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--green); color: var(--on-brand); }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

img { max-width: 100%; display: block; }

/* ============================================================================
   Animated background — slow drifting halos + grid + grain
   ============================================================================ */
body::before, body::after {
  content: '';
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(46vmax 46vmax at 18% 12%, rgba(159, 232, 112, 0.10), transparent 60%),
    radial-gradient(52vmax 52vmax at 84% 86%, rgba(111, 168, 255, 0.10), transparent 60%),
    radial-gradient(36vmax 36vmax at 60% 40%, rgba(159, 232, 112, 0.05), transparent 65%);
  /* static: a 140vmax blurred layer animated forever was repainted every frame */
}
body::after {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 88px 88px, 88px 88px, 4px 4px;
  background-position: -1px -1px, -1px -1px, 0 0;
  opacity: 0.65;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
}

/* ============================================================================
   Skip link + layout primitives
   ============================================================================ */
.skip-link {
  position: fixed; z-index: 200;
  top: -70px; left: 16px;
  padding: 12px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-1);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.workspace {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px clamp(20px, 4.5vw, 56px) 80px;
  min-height: 60vh;
}
.main { padding: 32px clamp(20px, 4.5vw, 56px) 80px; max-width: 1320px; margin: 0 auto; }

#app { min-height: 100vh; }

/* ============================================================================
   Top header (site-header from redesign.js)
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 36px;
  height: 72px;
  padding: 0 clamp(20px, 4.5vw, 56px);
  background: rgba(6, 7, 13, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-mark {
  display: none;
}
.brand small { display: none; }
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  padding: 8px 0;
  transition: color var(--d-fast) var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); }
.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -23px;
  height: 1px;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber-soft);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.language {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: var(--r-1);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--d-fast) var(--ease);
}
.language:hover { color: var(--text); border-color: var(--line-3); }
.language svg { width: 14px; }
.header-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  transition: all var(--d-fast) var(--ease);
}
.header-credit:hover { border-color: var(--amber-line); color: var(--amber); }
.header-credit svg { width: 14px; }
.mobile-menu {
  display: none;
  padding: 8px;
  border-radius: var(--r-1);
  border: 1px solid var(--line);
}
.mobile-menu svg { width: 18px; }

/* ============================================================================
   Demo strip
   ============================================================================ */
.demo-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(20px, 4.5vw, 56px);
  background: rgba(240, 169, 60, 0.04);
  border-bottom: 1px solid var(--amber-line);
  font-size: 12px;
  color: var(--text-3);
}
.demo-strip a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid var(--amber-line);
  padding-bottom: 1px;
}
.demo-strip a:hover { color: #ffd089; }

/* ============================================================================
   Buttons
   ============================================================================ */
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--amber);
  color: var(--on-brand);
  padding: 11px 18px;
  border-radius: var(--r-1);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all var(--d-fast) var(--ease);
  white-space: nowrap;
}
.primary:hover {
  background: var(--green-bright);
  box-shadow: 0 0 0 4px var(--amber-soft);
}
.primary:active { transform: scale(.97); }
.primary svg { width: 16px; }

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 11px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--d-fast) var(--ease);
  white-space: nowrap;
}
.secondary:hover { border-color: var(--line-3); background: var(--surface-2); }
.secondary:active { transform: scale(.97); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 600;
  transition: gap var(--d-fast) var(--ease);
}
.text-link:hover { gap: 10px; color: #ffd089; }
.text-link svg { width: 14px; transition: transform var(--d-fast) var(--ease); }
.text-link:hover svg { transform: translateX(2px); }

/* ============================================================================
   Page headings
   ============================================================================ */
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
}
.page-heading h1 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--text);
}
.page-heading p {
  margin: 0;
  font-size: 14px;
  color: var(--text-3);
  max-width: 56ch;
  line-height: 1.65;
}
.eyebrow, .page-heading .eyebrow { display: none; }

.date-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--d-fast) var(--ease);
}
.date-button:hover { border-color: var(--line-3); color: var(--text); }
.date-button svg { width: 15px; }

/* ============================================================================
   Section headings + filters
   ============================================================================ */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-heading h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.005em;
  color: var(--text);
}
.section-heading h2 span {
  color: var(--text-4);
  font-size: 13px;
  font-weight: 500;
  margin-left: 10px;
}
.section-heading > p {
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
}

.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}
.tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
}
.tabs button {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  padding: 7px 14px;
  border-radius: 4px;
  transition: all var(--d-fast) var(--ease);
}
.tabs button:hover { color: var(--text); }
.tabs button.selected {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line-2) inset;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  transition: border-color var(--d-fast) var(--ease);
  min-width: 220px;
}
.search:focus-within { border-color: var(--amber-line); }
.search svg { width: 14px; color: var(--text-4); }
.search input {
  background: transparent;
  border: 0;
  outline: none;
  width: 100%;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
}
.search input::placeholder { color: var(--text-4); }

/* ============================================================================
   Featured (homepage hero, dashboard featured-game)
   ============================================================================ */
.feature {
  position: relative;
  overflow: hidden;
  height: 280px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  display: flex;
  align-items: center;
  padding: 36px 44px;
  margin-bottom: 32px;
}
.feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 7, 13, 0.92) 0%, rgba(6, 7, 13, 0.7) 50%, rgba(6, 7, 13, 0.3) 100%);
  pointer-events: none;
}
.feature-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 55%;
  opacity: 0.55;
  filter: saturate(.7) contrast(1.05);
}
.feature-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
}
.feature .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 14px;
}
.feature h2 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  text-transform: none;
}
.feature h2 span { color: var(--amber); }
.feature p {
  color: var(--text-2);
  font-size: 14px;
  max-width: 380px;
  line-height: 1.65;
  margin: 0 0 22px;
}
.feature-stamp {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 24px;
  color: var(--text-4);
  font-size: 10px;
  letter-spacing: 0.18em;
  font-family: var(--mono);
}

/* Featured game (redesign.js) */
.featured-game {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  background: var(--bg-elev);
  overflow: hidden;
  margin-bottom: 36px;
}
.featured-name {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border-right: 1px solid var(--line);
}
.featured-name h2 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.featured-name p { margin: 0; font-size: 14px; color: var(--text-3); }
.featured-data {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: space-between;
}
.featured-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.featured-bottom p {
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================================
   Workspace grid + side panels
   ============================================================================ */
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
}
.right-rail { display: flex; flex-direction: column; gap: 18px; }

.side-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 22px 24px;
}
.side-panel h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.side-panel p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
  margin: 0;
}
.side-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-4);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  font-family: var(--mono);
  text-transform: uppercase;
}
.big-number {
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 14px 0 4px;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.big-number span {
  font-size: 18px;
  color: var(--text-3);
  margin-left: 2px;
}

.sparkline {
  width: 100%;
  height: 64px;
  margin: 10px 0 4px;
  display: block;
}
.sparkline path { stroke-width: 1.5; }

.chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-4);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.side-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
.side-stats strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}
.side-stats small {
  font-size: 11px;
  color: var(--text-4);
  line-height: 1.4;
}
.side-note {
  font-size: 11px;
  color: var(--text-4);
  margin-top: 16px;
  line-height: 1.55;
}

.insight {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 22px 24px;
  position: relative;
}
.insight::before {
  content: '';
  position: absolute;
  left: 0; top: 22px; bottom: 22px;
  width: 2px;
  background: var(--amber);
  border-radius: 0 2px 2px 0;
}
.insight h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 6px 0 10px;
}
.insight p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================================
   Notices + badges + empty states
   ============================================================================ */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-3);
  font-size: 12px;
  margin: 24px 0 0;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  line-height: 1.55;
}
.notice svg { width: 14px; color: var(--text-4); flex-shrink: 0; margin-top: 1px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  color: var(--text-3);
  white-space: nowrap;
  font-family: var(--mono);
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-soft);
}

.empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-3);
  font-size: 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-2);
  background: var(--bg-elev);
  grid-column: 1 / -1;
}

/* ============================================================================
   Game cards (dashboard grid)
   ============================================================================ */
.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.game-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 22px;
  transition: border-color var(--d-med) var(--ease), transform var(--d-med) var(--ease);
}
.game-card:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
}
.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-4);
  font-size: 11px;
  letter-spacing: 0.06em;
  font-family: var(--mono);
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 8px;
}
.game-meta .tag {
  color: var(--amber);
  padding: 4px 9px;
  background: var(--amber-soft);
  border-radius: var(--r-pill);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.matchup {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  text-align: center;
  margin: 22px 0;
}
.team-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border: 1px solid var(--line-3);
  border-radius: 50%;
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}
.team-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
}
/* Show don't tell: real NBA team logos cropped from the nba-teams.png sheet.
   Sheet is 1160x900 with a 5x6 grid → cell ≈ 232x150, so each cell offset is -col*46.4% / -row*25%.
   Team → (col,row): BOS(1,0) LAL(3,2) DEN(2,1) GSW(4,1) NYK(4,3) MIL(1,3) PHX(3,4) DAL(1,1). */
.team-logo.bos,
.team-logo.lal,
.team-logo.den,
.team-logo.gsw,
.team-logo.nyk,
.team-logo.mil,
.team-logo.phx,
.team-logo.dal {
  background: none;
  border-color: var(--line);
  color: transparent;
  font-size: 0;
  text-indent: -9999px;
}
.team-logo.bos::after,
.team-logo.lal::after,
.team-logo.den::after,
.team-logo.gsw::after,
.team-logo.nyk::after,
.team-logo.mil::after,
.team-logo.phx::after,
.team-logo.dal::after {
  content: '';
  position: absolute;
  inset: 6%;
  background-image: none;
  background-size: 500% 600%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
  transition: transform var(--d-med, 280ms) var(--ease);
}
.team-logo.bos::after  { background-position: -20% 0%; }
.team-logo.lal::after  { background-position: -60% -33.33%; }
.team-logo.den::after  { background-position: -40% -16.67%; }
.team-logo.gsw::after  { background-position: -80% -16.67%; }
.team-logo.nyk::after  { background-position: -80% -50%; }
.team-logo.mil::after  { background-position: -20% -50%; }
.team-logo.phx::after  { background-position: -60% -66.67%; }
.team-logo.dal::after  { background-position: -20% -16.67%; }
.team-logo:hover::after { transform: scale(1.04); }

.team-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}
.team-city {
  font-size: 11px;
  color: var(--text-4);
  margin-top: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.versus {
  color: var(--text-4);
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.15em;
}

.prob-label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: baseline;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 8px;
}
.prob-label strong {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--mono);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.prob-label strong:first-child { color: var(--amber); }
.prob-label strong:last-child { color: var(--text-2); }
.prob-label span {
  text-align: center;
  font-size: 10px;
  color: var(--text-4);
  letter-spacing: 0.1em;
  font-family: var(--mono);
}

.prob-bar {
  display: flex;
  gap: 3px;
  height: 6px;
  margin: 12px 0 18px;
  background: var(--bg-elev);
  border-radius: var(--r-pill);
  overflow: hidden;
  padding: 1px;
}
.prob-bar i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  transition: width var(--d-slow) var(--ease);
}
.prob-bar i:first-child {
  background: linear-gradient(90deg, var(--amber), var(--green-bright));
  box-shadow: 0 0 12px var(--amber-soft);
}
.prob-bar i:last-child {
  background: var(--surface-3);
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.card-bottom small {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.card-bottom button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--r-1);
  transition: all var(--d-fast) var(--ease);
}
.card-bottom button:hover { background: var(--surface-2); color: var(--amber); }
.card-bottom button svg { width: 14px; }

/* ============================================================================
   Game row (alternative compact listing)
   ============================================================================ */
.match-rows { display: flex; flex-direction: column; }
.game-row {
  display: grid;
  grid-template-columns: 60px minmax(220px, 1.4fr) minmax(160px, 1fr) 110px 110px;
  gap: 24px;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: background var(--d-fast) var(--ease);
}
.game-row:hover { background: var(--surface); margin: 0 -16px; padding: 20px 16px; border-radius: var(--r-1); }
.row-time {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.row-time small {
  display: block;
  font-size: 10px;
  color: var(--text-4);
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.row-teams {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row-emblems { display: grid; gap: 4px; }
.row-emblem {
  font-size: 10px;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  padding: 5px 8px;
  text-align: center;
  width: 44px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  font-family: var(--mono);
}
.row-team-names {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}
.row-team-names span { display: block; }
.row-team-names span:first-child { color: var(--text); }
.row-team-names span:last-child { color: var(--text-3); font-size: 13px; }

.row-probability { display: flex; flex-direction: column; gap: 6px; }
.row-probability .prob-label strong { font-size: 14px; }
.row-probability .prob-bar { height: 4px; margin: 0; }

.row-edge {
  font-size: 14px;
  color: var(--text);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.row-edge small {
  display: block;
  font-size: 10px;
  color: var(--text-4);
  margin-bottom: 3px;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 0;
  transition: color var(--d-fast) var(--ease);
}
.row-action:hover { color: var(--amber); }
.row-action svg { width: 15px; transition: transform var(--d-fast) var(--ease); }
.row-action:hover svg { transform: translateX(2px); }

/* ============================================================================
   Detail / match analysis page
   ============================================================================ */
.detail-top {
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  padding: 32px 40px;
  position: relative;
  overflow: hidden;
}
.detail-top::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 60%; height: 180%;
  background: radial-gradient(ellipse at center, var(--amber-soft) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.5;
}
.detail-top .game-meta {
  position: relative;
  z-index: 1;
  color: var(--text-3);
  margin-bottom: 24px;
}
.detail-top .game-meta span:first-child {
  color: var(--amber);
  font-weight: 600;
}
.detail-top .matchup {
  max-width: 580px;
  margin: 28px auto;
  position: relative;
  z-index: 1;
}
.detail-top .team-logo { width: 80px; height: 80px; font-size: 28px; }
.detail-top .team-name { font-size: 22px; font-weight: 600; }
.detail-top .team-city { font-size: 12px; margin-top: 4px; }
.detail-prob {
  max-width: 720px;
  margin: 32px auto 0;
  position: relative;
  z-index: 1;
  padding-bottom: 16px;
}
.detail-prob .prob-label strong { font-size: 36px; }
.detail-prob .prob-label strong:first-child { color: var(--amber); }
.detail-prob .prob-bar { height: 10px; margin: 16px 0; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 13px;
  margin-bottom: 20px;
  transition: color var(--d-fast) var(--ease);
}
.back:hover { color: var(--text); }
.back svg { width: 14px; transform: rotate(180deg); }

.detail-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

/* ============================================================================
   Panels (used in match detail, method, etc.)
   ============================================================================ */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 28px 30px;
}
.panel h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.comparison-row {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  gap: 18px;
  align-items: center;
  margin: 22px 0;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.comparison-row > strong {
  font-size: 16px;
  font-weight: 600;
}
.comparison-row > strong:first-child { color: var(--amber); }
.comparison-row > strong:last-child { text-align: right; color: var(--text-2); }
.comparison-row label {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono);
  font-weight: 500;
}
.comparison-track {
  height: 4px;
  background: var(--bg-elev);
  border-radius: var(--r-pill);
  overflow: hidden;
  position: relative;
}
.comparison-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--green-bright));
  border-radius: var(--r-pill);
  transition: width var(--d-slow) var(--ease);
}

.context-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 13px;
  align-items: baseline;
}
.context-row:last-of-type { border-bottom: 0; }
.context-row span {
  color: var(--text-3);
}
.context-row strong {
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.context-copy {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.7;
  margin-top: 18px;
}
.demo-inline {
  font-size: 11px;
  color: var(--text-4);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ============================================================================
   Stats grid (history, method)
   ============================================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.stat {
  padding: 26px 28px;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat p {
  font-size: 11px;
  color: var(--text-3);
  margin: 0 0 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono);
  font-weight: 500;
}
.stat strong {
  display: block;
  font-size: 38px;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: -0.025em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.stat small {
  font-size: 12px;
  color: var(--text-4);
  margin-top: 6px;
  display: block;
}

/* ============================================================================
   Tables
   ============================================================================ */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--bg-elev);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg-elev);
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono);
  position: sticky;
  top: 0;
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background var(--d-fast) var(--ease); }
tbody tr:hover { background: var(--surface); }
td em {
  font-style: normal;
  color: var(--amber);
  font-size: 12px;
  font-weight: 500;
}

/* ============================================================================
   Plans / pricing
   ============================================================================ */
.plans {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 28px 0;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--d-fast) var(--ease);
}
.plan:hover { border-color: var(--line-3); }
.plan.featured {
  border-color: var(--amber-line);
  background: linear-gradient(180deg, rgba(240, 169, 60, 0.06) 0%, var(--surface) 100%);
}
.plan h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}
.plan .amount {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan p {
  font-size: 12px;
  color: var(--text-3);
  margin: 6px 0 0;
}
.plan .price {
  font-size: 18px;
  font-weight: 600;
  margin: 22px 0 4px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.plan .secondary, .plan .primary {
  width: 100%;
  margin-top: 18px;
  font-size: 13px;
  padding: 10px 8px;
}
.plan.featured .primary {
  background: var(--amber);
  color: var(--on-brand);
}
.plan.featured .primary:hover {
  background: var(--green-bright);
  box-shadow: 0 0 0 4px var(--amber-soft);
}
.recommended {
  position: absolute;
  top: -10px;
  left: 16px;
  padding: 4px 9px;
  background: var(--amber);
  color: var(--on-brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  text-transform: uppercase;
}

.balance-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--r-2);
  background: var(--surface);
  border: 1px solid var(--line-2);
  padding: 26px 30px;
  margin-bottom: 12px;
}
.balance-banner p {
  font-size: 11px;
  color: var(--text-3);
  margin: 0 0 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.balance-banner strong {
  font-size: 32px;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.balance-banner span { font-size: 13px; color: var(--text-3); margin-left: 4px; font-weight: 400; }
.balance-banner svg { width: 28px; height: 28px; color: var(--amber); }

/* ============================================================================
   Method page
   ============================================================================ */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.method-grid .panel p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.75;
  margin: 0;
}
.method-grid .panel h2 {
  font-size: 19px;
  margin-bottom: 14px;
}
.step {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Redesign.js method page */
.method-intro {
  max-width: 780px;
  margin-bottom: 56px;
}
.method-intro h1 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 24px;
}
.method-intro p {
  color: var(--text-3);
  font-size: 16px;
  line-height: 1.75;
  max-width: 44em;
}
.method-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.method-row h2 {
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
  font-weight: 600;
}
.method-row p {
  color: var(--text-3);
  line-height: 1.75;
  font-size: 14px;
  margin: 0;
}
.method-evidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--surface);
  color: var(--text);
  padding: 36px;
  margin-top: 48px;
  border-radius: var(--r-2);
  border: 1px solid var(--line);
}
.method-evidence h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.method-evidence p {
  margin: 0;
  color: var(--text-3);
  line-height: 1.75;
  font-size: 14px;
}

/* ============================================================================
   Home — cinematic story + intro + match preview + belief + closing
   ============================================================================ */
.story-shell {
  height: 420vh;
  position: relative;
}
.story-stage {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  border-radius: var(--r-2);
  margin: 0 clamp(20px, 4.5vw, 56px);
  border: 1px solid var(--line-2);
}
.story-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 50%;
  transform: scale(1.32);
  filter: saturate(.45) brightness(.55) contrast(1.1);
  z-index: -2;
}
.story-shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 7, 13, 0.94) 0%, rgba(6, 7, 13, 0.4) 50%, rgba(6, 7, 13, 0.15) 100%);
  opacity: 0;
  z-index: -1;
}
.story-paper {
  position: absolute;
  inset: 0 auto 0 0;
  width: 54%;
  background: linear-gradient(120deg, rgba(6, 7, 13, 0.96) 0%, rgba(6, 7, 13, 0.88) 100%);
  backdrop-filter: blur(12px);
  transform-origin: left;
  z-index: -1;
  border-right: 1px solid var(--line);
}
.opening-copy {
  position: absolute;
  inset: 0 auto 0 0;
  width: 54%;
  padding: clamp(40px, 5vw, 80px) clamp(28px, 5%, 7%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.opening-copy h1 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 5.5vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 9em;
  color: var(--text);
}
.opening-copy p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 30em;
  color: var(--text-2);
  margin: 0 0 28px;
}
.scene-caption {
  position: absolute;
  bottom: 80px;
  right: 4.5%;
  width: 32%;
  display: flex;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.6;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.scene-caption span:last-child {
  max-width: 150px;
  text-align: right;
  color: var(--text-2);
}
.chapter-dock {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 4.5%;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  background: rgba(6, 7, 13, 0.85);
  backdrop-filter: blur(8px);
}
.chapter-dock button {
  color: var(--text-3);
  font-size: 12px;
  padding: 10px 0;
  font-weight: 500;
  transition: color var(--d-fast) var(--ease);
}
.chapter-dock button:hover { color: var(--text); }
.chapter-dock button.active {
  color: var(--text);
  display: inline-flex;
  align-items: center;
}
.chapter-dock button.active::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  margin-right: 9px;
  box-shadow: 0 0 8px var(--amber-soft);
}
.scroll-cue {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
.story-progress {
  position: absolute;
  height: 2px;
  background: var(--amber);
  bottom: 0;
  left: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 12px var(--amber-soft);
}
.reading-copy {
  position: absolute;
  left: 4.5%;
  top: 18%;
  width: 36%;
  opacity: 0;
  pointer-events: none;
  color: var(--text);
  transform: translateY(25px);
}
.reading-copy h2 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}
.reading-copy p {
  max-width: 30em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}
.reading-copy .secondary {
  border-color: var(--line-3);
  color: var(--text);
  margin-top: 18px;
  background: transparent;
}
.reading-copy .secondary:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.film-analysis {
  position: absolute;
  width: 32%;
  right: 4.5%;
  top: 22%;
  background: var(--bg-elev);
  color: var(--text);
  padding: 28px;
  opacity: 0;
  transform: translateY(40px);
  border-radius: var(--r-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.film-analysis::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-2);
  background: linear-gradient(135deg, var(--amber-soft), transparent 50%);
  pointer-events: none;
  opacity: 0.6;
}
.film-analysis > * { position: relative; }
.film-analysis .film-title {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 24px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.film-analysis .teams-head {
  display: flex;
  justify-content: space-between;
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.film-analysis .prob-bar { height: 8px; margin: 18px 0 10px; padding: 1px; }
.film-analysis .prob-label strong {
  font-family: var(--mono);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.film-analysis p {
  font-size: 12px;
  line-height: 1.6;
  margin: 18px 0 0;
  color: var(--text-3);
}

.intro-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 100px clamp(28px, 5%, 56px);
  align-items: start;
  border-top: 1px solid var(--line);
}
.intro-note h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  max-width: 12em;
}
.intro-note p {
  color: var(--text-3);
  margin: 0;
  line-height: 1.8;
  font-size: 16px;
  max-width: 42em;
}

.match-preview {
  background: var(--bg-elev);
  padding: 72px clamp(28px, 5%, 56px) 88px;
  border-top: 1px solid var(--line);
}
.match-preview h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 0;
}

.belief {
  background: linear-gradient(135deg, #1a1107 0%, #0a0d17 100%);
  color: var(--text);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 96px clamp(28px, 5%, 56px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.belief::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 50%; height: 160%;
  background: radial-gradient(ellipse at center, var(--amber-soft) 0%, transparent 60%);
  pointer-events: none;
}
.belief > * { position: relative; }
.belief h2 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}
.belief p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 26px;
  color: var(--text-2);
}
.belief a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  border-bottom: 1px solid var(--amber-line);
  padding-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: gap var(--d-fast) var(--ease);
}
.belief a:hover { gap: 12px; }

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 88px clamp(28px, 5%, 56px);
}
.closing h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.closing p {
  font-size: 15px;
  color: var(--text-3);
  margin: 0;
  max-width: 40em;
  line-height: 1.65;
}

/* ============================================================================
   Footer
   ============================================================================ */
.site-footer {
  padding: 36px clamp(28px, 5%, 56px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  font-size: 12px;
  line-height: 1.7;
  background: var(--bg);
}
.site-footer .footer-brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.site-footer p {
  color: var(--text-3);
  margin: 0;
  max-width: 36em;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a, .footer-links button {
  color: var(--text-2);
  font-size: 12px;
  transition: color var(--d-fast) var(--ease);
}
.footer-links a:hover, .footer-links button:hover { color: var(--amber); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-4);
  line-height: 1.7;
}
.footer button {
  padding: 0;
  font-size: 11px;
  color: var(--text-3);
  transition: color var(--d-fast) var(--ease);
}
.footer button:hover { color: var(--amber); }

/* ============================================================================
   Style board (tile page)
   ============================================================================ */
.style-board {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px clamp(28px, 5%, 56px);
}
.style-board h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 18px;
}
.style-board .lead {
  max-width: 640px;
  color: var(--text-3);
  line-height: 1.8;
  margin: 0 0 36px;
  font-size: 16px;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 36px 0 48px;
}
.swatch-color {
  height: 100px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  margin-bottom: 12px;
}
.swatch span {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  font-family: var(--mono);
}
.swatch span:last-child { color: var(--text-4); }
.tile-type {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.tile-type h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0;
}
.tile-type h3 {
  font-size: 14px;
  color: var(--text-3);
  font-weight: 500;
  margin: 0 0 12px;
}
.tile-type p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0;
}
.tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 32px 0;
}
.style-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  margin-top: 28px;
  border-radius: var(--r-2);
  border: 1px solid var(--line);
}

/* ============================================================================
   Desk / dashboard heading (from redesign.js)
   ============================================================================ */
.desk-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}
.desk-heading h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  line-height: 1.05;
}
.desk-heading p {
  margin: 0;
  font-size: 14px;
  color: var(--text-3);
  max-width: 50em;
  line-height: 1.65;
}
.desk-balance {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  background: var(--surface);
  transition: border-color var(--d-fast) var(--ease);
}
.desk-balance:hover { border-color: var(--amber-line); }
.desk-balance strong {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
}
.desk-balance {
  font-size: 12px;
  color: var(--text-3);
}

.desk-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.desk-tabs a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  padding: 12px 0;
  position: relative;
  transition: color var(--d-fast) var(--ease);
}
.desk-tabs a:hover { color: var(--text); }
.desk-tabs a.active { color: var(--text); }
.desk-tabs a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber-soft);
}

.desk-note {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  padding: 48px 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.desk-note h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.desk-note p {
  margin: 0;
  color: var(--text-3);
  line-height: 1.75;
  font-size: 14px;
}

/* ============================================================================
   Dialog (modal)
   ============================================================================ */
dialog {
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  max-width: 460px;
  width: calc(100% - 36px);
  padding: 32px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  --modal-scale: .96;
  --modal-open-dur: 220ms;
  --modal-close-dur: 140ms;
  --modal-ease: var(--ease);
}
dialog::backdrop {
  background: rgba(6, 7, 13, 0.78);
  backdrop-filter: blur(8px);
}
.t-modal {
  transform-origin: center;
  transform: scale(var(--modal-scale));
  opacity: 0;
  pointer-events: none;
  transition: transform var(--modal-open-dur) var(--modal-ease), opacity var(--modal-open-dur) var(--modal-ease);
  will-change: transform, opacity;
}
.t-modal.is-open { transform: scale(1); opacity: 1; pointer-events: auto; }
.t-modal.is-closing {
  transform: scale(var(--modal-scale));
  opacity: 0;
  pointer-events: none;
  transition: transform var(--modal-close-dur) var(--modal-ease), opacity var(--modal-close-dur) var(--modal-ease);
}

/* ============================================================================
   Page transition — main content fades + slight rise on each render
   ============================================================================ */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
/* Page entrances are handled once by motion.js (GSAP); a CSS fade here doubled them. */
main.workspace, main.style-board { animation: pageFadeIn 420ms var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  main.workspace, main.style-board { animation: none; }
}
dialog h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  font-weight: 700;
  padding-right: 24px;
}
dialog p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-3);
  margin: 0;
}
dialog .close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--text-3);
  border-radius: var(--r-1);
  transition: all var(--d-fast) var(--ease);
}
dialog .close:hover { background: var(--surface-2); color: var(--text); }
dialog .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

/* ============================================================================
   Toast
   ============================================================================ */
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--surface-3);
  color: var(--text);
  font-size: 13px;
  max-width: 90vw;
  padding: 13px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  opacity: 0;
  pointer-events: none;
  transition: all var(--d-med) var(--ease);
  z-index: 100;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================================
   Sidebar / mobile overlay (legacy from app.js — kept for completeness)
   ============================================================================ */
.sidebar, .mobile-overlay { display: none; }
.mobile-overlay.visible { display: none; }

/* ============================================================================
   Responsive — wide desktop refinement
   ============================================================================ */
@media (min-width: 1700px) {
  .opening-copy { padding-left: 8%; }
  .story-paper, .opening-copy { width: 50%; }
  .story-stage { min-height: 720px; }
  .workspace { max-width: 1340px; }
}

/* ============================================================================
   Responsive — large desktop
   ============================================================================ */
@media (max-width: 1280px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .featured-game { grid-template-columns: 1fr 1fr; }
}

/* ============================================================================
   Responsive — tablet
   ============================================================================ */
@media (max-width: 1080px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .right-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .insight { margin: 0; }
  .detail-columns { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .intro-note { gap: 40px; padding: 80px 5%; }
  .belief { gap: 48px; padding: 72px 5%; }
  .closing { padding: 64px 5%; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .tile-type { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
  .story-stage { margin: 0 20px; }
  .scene-caption { right: 5%; }
  .reading-copy { left: 5%; width: 38%; }
  .film-analysis { right: 5%; width: 38%; }
  .method-evidence { grid-template-columns: 1fr; gap: 22px; }
  .method-row { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
  .desk-note { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
}

/* ============================================================================
   Responsive — small tablet
   ============================================================================ */
@media (max-width: 880px) {
  .site-header { gap: 16px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px clamp(20px, 4.5vw, 40px);
    border-bottom: 1px solid var(--line);
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .site-nav.open a {
    width: 100%;
    padding: 12px 0;
    font-size: 15px;
  }
  .site-nav.open a.active::after { display: none; }
  .mobile-menu { display: inline-flex; }
  .opening-copy h1 { font-size: 48px; }
  .opening-copy { width: 56%; padding: 36px 5% 80px; }
  .story-paper { width: 56%; }
  .story-stage { top: 72px; height: calc(100vh - 72px); }
  .game-row {
    grid-template-columns: 50px minmax(180px, 1.4fr) minmax(130px, 1fr) 95px 100px;
    gap: 16px;
  }
  .row-edge { display: none; }
  .featured-game { grid-template-columns: 1fr; }
  .featured-name { border-right: 0; border-bottom: 1px solid var(--line); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat { padding: 22px 4px; }
  .featured-name, .featured-data { padding: 26px; }
  .workspace-grid .right-rail { grid-template-columns: 1fr; }
}

/* ============================================================================
   Responsive — mobile
   ============================================================================ */
@media (max-width: 640px) {
  .site-header {
    gap: 8px;
    padding: 0 16px;
    height: 64px;
  }
  .brand { font-size: 16px; gap: 8px; }
  .vh-logo-header { height: 44px; gap: 10px; }
  .vh-logo-header .vh-logo-wordmark { font-size: 17px; }
  .brand-mark { width: 26px; height: 26px; font-size: 13px; }
  .header-tools { gap: 8px; }
  .header-credit { padding: 7px 10px; font-size: 12px; }
  .header-credit svg { display: none; }
  .language { padding: 7px 9px; font-size: 11px; }
  .demo-strip { padding: 8px 16px; font-size: 11px; flex-wrap: wrap; gap: 6px; }
  .story-shell { height: 340vh; }
  .story-stage {
    top: 64px;
    height: calc(100vh - 64px);
    min-height: 560px;
    margin: 0 12px;
    border-radius: var(--r-1);
  }
  .story-image { object-position: 65% 50%; transform: scale(1.1); }
  .story-paper { width: 100%; height: 56%; }
  .opening-copy {
    width: 100%;
    height: 56%;
    padding: 32px 22px 22px;
    justify-content: flex-start;
  }
  .opening-copy h1 {
    font-size: clamp(36px, 9.5vw, 52px);
    line-height: 1;
    margin-bottom: 16px;
    max-width: 9em;
  }
  .opening-copy p {
    font-size: 14px;
    line-height: 1.65;
    max-width: 30em;
    margin-bottom: 18px;
  }
  .opening-copy .primary { padding: 10px 14px; font-size: 13px; }
  .scene-caption {
    bottom: 64px;
    right: 22px;
    left: 22px;
    width: auto;
    font-size: 10px;
  }
  .scene-caption span:last-child { max-width: 160px; }
  .chapter-dock {
    padding: 0 18px;
    justify-content: space-between;
    gap: 8px;
    height: 48px;
  }
  .chapter-dock button { font-size: 11px; }
  .scroll-cue { display: none; }
  .reading-copy {
    left: 22px;
    right: 22px;
    top: 30px;
    width: auto;
  }
  .reading-copy h2 { font-size: 32px; margin-bottom: 14px; }
  .reading-copy p { font-size: 14px; }
  .reading-copy .secondary { display: none; }
  .film-analysis {
    top: auto;
    bottom: 80px;
    left: 22px;
    right: 22px;
    width: auto;
    padding: 22px;
  }
  .film-analysis .teams-head { font-size: 20px; }
  .film-analysis .prob-label strong { font-size: 22px; }
  .intro-note {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 56px 22px;
  }
  .intro-note h2 { font-size: 28px; }
  .match-preview { padding: 48px 22px 56px; }
  .match-preview h2 { font-size: 26px; }
  .game-row {
    grid-template-columns: 1fr 90px;
    gap: 12px;
    padding: 20px 0;
  }
  .row-time { display: none; }
  .row-teams { gap: 10px; }
  .row-team-names { font-size: 13px; }
  .row-team-names span:last-child { font-size: 12px; }
  .row-emblem { width: 38px; padding: 4px 6px; }
  .row-probability { grid-column: 1; grid-row: auto; }
  .row-action {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-content: flex-end;
    font-size: 12px;
  }
  .belief {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 56px 22px;
  }
  .belief h2 { font-size: 34px; }
  .closing {
    flex-direction: column;
    align-items: flex-start;
    padding: 56px 22px;
    gap: 24px;
  }
  .closing h2 { font-size: 28px; }
  .site-footer {
    padding: 28px 22px;
    flex-direction: column;
    font-size: 11px;
    gap: 22px;
  }
  .workspace { padding: 28px 18px 56px; }
  .desk-heading { gap: 14px; flex-wrap: wrap; }
  .desk-heading h1 { font-size: 30px; }
  .desk-balance { font-size: 11px; padding: 8px 10px; }
  .desk-balance strong { font-size: 16px; }
  .desk-tabs { gap: 18px; overflow-x: auto; white-space: nowrap; padding-bottom: 0; }
  .desk-tabs a { font-size: 13px; flex-shrink: 0; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 span { display: inline; }
  .filters { width: 100%; margin: 0; justify-content: space-between; }
  .search { min-width: 0; max-width: 50%; }
  .tabs button { font-size: 12px; padding: 6px 10px; }
  .page-heading { flex-wrap: wrap; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .page-heading h1 { font-size: 28px; }
  .date-button { padding: 8px 10px; font-size: 12px; }
  .date-button svg { display: none; }
  .feature { height: auto; min-height: 320px; padding: 26px 22px; }
  .feature h2 { font-size: 36px; }
  .feature p { max-width: 280px; font-size: 13px; }
  .feature-stamp { display: none; }
  .games { grid-template-columns: 1fr; gap: 12px; }
  .game-card { padding: 18px; }
  .team-logo { width: 44px; height: 44px; font-size: 16px; }
  .team-name { font-size: 13px; }
  .team-city { font-size: 10px; }
  .prob-label strong { font-size: 16px; }
  .right-rail { grid-template-columns: 1fr; }
  .side-panel, .insight { padding: 18px; }
  .big-number { font-size: 36px; }
  .notice { font-size: 12px; padding: 12px 14px; }
  .footer { font-size: 10px; flex-wrap: wrap; line-height: 1.7; }
  .detail-top { padding: 22px 16px; border-radius: var(--r-2); }
  .detail-top .team-name { font-size: 17px; }
  .detail-top .team-logo { width: 56px; height: 56px; font-size: 22px; }
  .detail-prob .prob-label strong { font-size: 26px; }
  .panel { padding: 22px 18px; }
  .panel h2 { font-size: 17px; }
  .comparison-row { gap: 10px; grid-template-columns: 56px 1fr 56px; }
  .comparison-row > strong { font-size: 14px; }
  .context-row { font-size: 12px; }
  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stat { padding: 22px 0; }
  .stat strong { font-size: 32px; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 22px 18px; }
  .balance-banner { padding: 22px; flex-wrap: wrap; gap: 12px; }
  .balance-banner strong { font-size: 26px; }
  .method-intro h1 { font-size: 32px; }
  .method-row { padding: 22px 0; }
  .method-row h2 { font-size: 19px; }
  .method-evidence { padding: 24px; }
  .style-board { padding: 40px 22px; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .swatch-color { height: 84px; }
  .style-photo { height: 180px; }
  dialog { padding: 24px; }
  dialog h2 { font-size: 17px; }
}

/* ============================================================================
   Reduced motion
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body::before, body::after { animation: none; }
  .story-shell { height: auto; }
  .story-stage {
    position: relative;
    top: 0;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-elev);
  }
  .story-paper, .story-shadow, .scene-caption, .chapter-dock { display: none; }
  .story-image {
    position: relative;
    height: 320px;
    order: 2;
    transform: none !important;
    opacity: 1 !important;
    object-position: center;
    filter: saturate(.5) brightness(.6);
  }
  .opening-copy {
    position: relative;
    width: 100%;
    height: auto;
    order: 1;
    padding: 48px 5%;
    background: var(--bg-elev);
    opacity: 1 !important;
    transform: none !important;
  }
  .reading-copy {
    position: relative;
    order: 3;
    inset: auto;
    width: auto;
    padding: 40px 5% 24px;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
  }
  .film-analysis {
    position: relative;
    order: 4;
    inset: auto;
    width: auto;
    margin: 16px 5% 40px;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================================
   Hero — editorial opening (replaces the cinematic scroll story)
   ============================================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: clamp(64px, 9vw, 120px) clamp(24px, 5vw, 56px) clamp(64px, 9vw, 120px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('assets/court.jpg');
  background-size: cover;
  background-position: 68% 55%;
  opacity: 0.34;
  filter: saturate(.35) brightness(.7) contrast(1.05);
  z-index: 0;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,7,13,.7) 0%, rgba(6,7,13,.5) 50%, rgba(6,7,13,.92) 100%),
    linear-gradient(90deg, rgba(6,7,13,.92) 0%, rgba(6,7,13,.55) 50%, rgba(6,7,13,.2) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 6px 12px;
  border: 1px solid var(--amber-line);
  border-radius: var(--r-pill);
  background: rgba(240, 169, 60, 0.06);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}
.hero h1 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--text);
  max-width: 12em;
  text-wrap: balance;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 38em;
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Trust badge — the dark pill from the reference */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px 9px 12px;
  background: rgba(20, 27, 45, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--text);
}
.trust-badge-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--green-bright), var(--green-deep));
  border-radius: 50%;
  flex-shrink: 0;
}
.trust-badge-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--on-brand);
  stroke: var(--on-brand);
  stroke-width: 1.2;
}
.trust-badge-text strong {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

/* ============================================================================
   Leagues section — centered title + 2 logos, nothing else
   ============================================================================ */
.leagues {
  padding: clamp(72px, 8vw, 120px) clamp(24px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
  text-align: center;
}
.leagues-title {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
}
.leagues-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(64px, 12vw, 160px);
}
.league-mark-bw {
  height: clamp(56px, 7vw, 84px);
  width: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.45));
  opacity: 0.95;
  transition: opacity var(--d-med, 280ms) var(--ease), transform var(--d-med, 280ms) var(--ease);
}
.league-mark-bw:hover { opacity: 1; transform: translateY(-3px); }
.league-band-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-4);
  text-align: center;
  margin-top: 18px;
}
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 0.05em;
}

/* ============================================================================
   Stats section — "Numbers don't lie" (Nakula-style)
   ============================================================================ */
.stats-banner {
  position: relative;
  padding: clamp(72px, 9vw, 120px) clamp(24px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.stats-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/court.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.10;
  filter: saturate(.4) brightness(.5) contrast(1.05);
  z-index: -1;
}
.stats-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
  z-index: -1;
}
.stats-head {
  max-width: 720px;
  margin: 0 0 48px;
}
.stats-head .leagues-eyebrow { display: block; }
.stats-head h2 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: var(--text);
}
.stats-head p {
  margin: 0;
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 38em;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
}
.stat-cell {
  background: var(--bg);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: background var(--d-med, 280ms) var(--ease);
}
.stat-cell:hover { background: var(--surface); }
.stat-number {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-variant-numeric: tabular-nums;
  opacity: 1;
  transform: none;
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.stat-cell.is-revealed .stat-number { opacity: 1; transform: translateY(0); }
.stat-cell:nth-child(1) .stat-number { transition-delay: 0ms; }
.stat-cell:nth-child(2) .stat-number { transition-delay: 80ms; }
.stat-cell:nth-child(3) .stat-number { transition-delay: 160ms; }
.stat-cell:nth-child(4) .stat-number { transition-delay: 240ms; }
.stat-suffix {
  color: var(--green);
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.7em;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-4);
  margin: 0;
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--ease) 250ms, transform 500ms var(--ease) 250ms;
}
.stat-cell.is-revealed .stat-label { opacity: 1; transform: translateY(0); }
.stat-foot {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-4);
}
@media (max-width: 1080px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { padding: 24px 22px; }
  .stat-number { font-size: 44px; }
}

/* ============================================================================
   FAQ section — native <details> accordion
   ============================================================================ */
.faq {
  padding: clamp(72px, 8vw, 112px) clamp(24px, 5vw, 56px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.faq-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}
.faq-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.faq-head h2 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--teal);
}
.faq-head p {
  margin: 0;
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 38em;
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item details {
  padding: 0;
}
.faq-item summary {
  display: grid;
  grid-template-columns: 56px 1fr 32px;
  align-items: center;
  gap: 18px;
  padding: 24px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
  user-select: none;
  transition: color var(--d-fast) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--teal); }
.faq-item summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 4px; }

.faq-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-4);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}
.faq-q {
  font-size: 16px;
  font-weight: 500;
}
.faq-toggle {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  transition: all var(--d-fast) var(--ease);
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background: var(--text-2);
  border-radius: 1px;
  transition: transform var(--d-med) var(--ease), background-color var(--d-fast) var(--ease);
}
.faq-toggle::before { width: 12px; height: 1.5px; }
.faq-toggle::after  { width: 1.5px; height: 12px; }
.faq-item details[open] .faq-toggle {
  border-color: var(--teal);
  background: var(--teal-soft);
}
.faq-item details[open] .faq-toggle::before,
.faq-item details[open] .faq-toggle::after {
  background: var(--teal);
}
.faq-item details[open] .faq-toggle::after {
  transform: rotate(90deg);
}
.faq-item details[open] .faq-num { color: var(--teal); }

.faq-answer {
  margin: 0 0 24px 74px;
  padding-right: 56px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-3);
  max-width: 56em;
}

/* ============================================================================
   Responsive — hero, leagues, FAQ
   ============================================================================ */
@media (max-width: 1080px) {
  .leagues-head, .faq-head { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 1080px) {
  .leagues-band { gap: 48px; }
  .league-mark-bw { height: 56px; }
}
@media (max-width: 880px) {
  .hero { min-height: 520px; padding-top: 56px; padding-bottom: 56px; }
  .hero-eyebrow { margin-bottom: 22px; }
  .faq-item summary { grid-template-columns: 40px 1fr 28px; gap: 12px; padding: 20px 0; font-size: 15px; }
  .faq-answer { margin-left: 52px; padding-right: 0; }
}
@media (max-width: 640px) {
  .hero { min-height: 460px; padding-top: 48px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .hero-sub { font-size: 14px; }
  .hero-actions { gap: 14px; margin-bottom: 32px; }
  .trust-badge { font-size: 13px; padding: 8px 14px 8px 10px; }
  .leagues-band { gap: 32px; }
  .league-mark-bw { height: 44px; }
  .faq-head { margin-bottom: 36px; }
  .faq-item summary { grid-template-columns: 32px 1fr 24px; padding: 18px 0; font-size: 14px; }
  .faq-q { font-size: 14px; }
  .faq-answer { margin-left: 44px; font-size: 13px; }
  .faq-num { font-size: 11px; }
}

/* ============================================================================
   Hero — Visifoot-inspired (big bold headline + search bar + stats line)
   ============================================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: clamp(72px, 9vw, 120px) clamp(24px, 5vw, 56px) clamp(72px, 9vw, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('assets/court.jpg');
  background-size: cover;
  background-position: 68% 55%;
  opacity: 0.42;
  filter: saturate(.4) brightness(.65) contrast(1.05);
  z-index: 0;
}
.hero-spotlight {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60vmax 60vmax at 50% -10%, rgba(159, 232, 112, 0.18), transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,20,38,.4) 0%, rgba(10,20,38,.55) 60%, rgba(10,20,38,.95) 100%),
    linear-gradient(90deg, rgba(10,20,38,.92) 0%, rgba(10,20,38,.55) 50%, rgba(10,20,38,.25) 100%);
  z-index: 2;
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.hero .trust-badge { margin-bottom: 6px; }
.hero h1 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
.hero h1 span {
  color: var(--green);
}
.hero-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 38em;
  margin: 0;
}

.hero-search {
  margin-top: 12px;
  width: 100%;
  max-width: 580px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  background: rgba(20, 37, 62, 0.55);
  border: 1px solid var(--green-line);
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 0 4px rgba(159, 232, 112, 0.06);
  transition: box-shadow var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
.hero-search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}
.hero-search-icon { color: var(--green); display: grid; place-items: center; }
.hero-search-icon svg { width: 16px; }
.hero-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 15px;
  padding: 14px 0;
}
.hero-search input::placeholder { color: var(--text-3); }
.hero-search button {
  background: var(--green);
  color: var(--on-brand);
  padding: 11px 18px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background var(--d-fast) var(--ease);
}
.hero-search button:hover { background: var(--green-bright); }

.hero-footline {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-3);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.hero-footline strong {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 22px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ============================================================================
   Hero workspace preview — tangible "this is the app" panel
   ============================================================================ */
.hero-workspace {
  position: relative;
  z-index: 2;
  margin: 36px auto 0;
  max-width: 720px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 70%), var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.hero-workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}
.hero-workspace-tabs {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero-workspace-tabs span { padding: 3px 8px; border-radius: 4px; }
.hero-workspace-tabs span.active { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 380px) {
  .hero-workspace-bar { flex-wrap: wrap; }
  .hero-workspace-tabs { width: 100%; justify-content: space-between; gap: 0; }
}
.hero-workspace-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-workspace-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
}
.hero-workspace-card.alt { /* keep base style, no offset */ }
.hwp-team { display: inline-flex; align-items: center; gap: 8px; }
.hwp-team strong { display: block; font-family: 'Manrope', sans-serif; font-size: 13px; color: var(--text); font-weight: 600; line-height: 1; }
.hwp-team small { display: block; font-size: 10px; color: var(--text-4); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }
.hwp-logo {
  width: 30px; height: 30px; border-radius: 50%;
  background-color: var(--surface-2);
  background-image: none;
  background-size: 500% 600%;
  background-repeat: no-repeat;
  border: 1px solid var(--line-2);
  flex-shrink: 0;
}
.hwp-logo.hwp-bos { background-position: -20% 0%; }
.hwp-logo.hwp-lal { background-position: -60% -33.33%; }
.hwp-stats { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hwp-stats span { font-family: 'Manrope', sans-serif; font-size: 13px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.hwp-stats small { font-size: 9px; color: var(--text-4); letter-spacing: 0.1em; }
.hwp-prob { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding-left: 6px; border-left: 1px solid var(--line); }
.hwp-prob strong { font-family: 'Manrope', sans-serif; font-size: 16px; color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-workspace-card.alt .hwp-prob strong { color: var(--text-2); }
.hwp-prob span { font-size: 9px; color: var(--text-4); letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 640px) {
  .hero-workspace-card { grid-template-columns: auto 1fr; gap: 8px; padding: 10px 12px; font-size: 11px; }
  .hero-workspace-card .hwp-stats, .hero-workspace-card .hwp-prob { display: none; }
  .hero-workspace-row { grid-template-columns: 1fr; }
}

/* ============================================================================
   Featured matchup — two team cards facing each other with center stats
   ============================================================================ */
.matchup-feature {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 112px) clamp(24px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.matchup-feature-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/court.jpg');
  background-size: cover;
  background-position: center 55%;
  opacity: 0.18;
  filter: saturate(.4) brightness(.6) contrast(1.05);
}
.matchup-feature-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,20,38,.6) 0%, rgba(10,20,38,.95) 100%);
}
.matchup-feature-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}
.matchup-feature-meta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 18px;
}
.matchup-feature-title {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 56px;
  text-align: center;
}
.matchup-feature-title span {
  color: var(--text-4);
  font-size: 0.5em;
  margin: 0 12px;
  vertical-align: 0.2em;
}

.matchup-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

.matchup-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.matchup-emblem {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.02em;
  position: relative;
  border: 2px solid var(--line-3);
  overflow: hidden;
  background: var(--surface);
  transition: transform var(--d-med, 280ms) var(--ease), box-shadow var(--d-med, 280ms) var(--ease), border-color var(--d-med, 280ms) var(--ease);
}
.matchup-side:hover .matchup-emblem { transform: scale(1.04); border-color: var(--green-line, rgba(159,232,112,.45)); box-shadow: 0 0 0 6px rgba(159,232,112,.06), 0 18px 40px rgba(0,0,0,.45); }
.matchup-emblem::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.10) 50%, transparent 70%);
}
/* Real NBA logo variant for the featured matchup */
.matchup-emblem.real {
  font-size: 0;
  color: transparent;
  text-indent: -9999px;
}
.matchup-emblem.real::after {
  content: '';
  position: absolute;
  inset: 8%;
  background-image: none;
  background-size: 500% 600%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
}
.matchup-emblem.real.bos::after { background-position: -20% 0%; }
.matchup-emblem.real.lal::after { background-position: -60% -33.33%; }
.matchup-emblem.real.den::after { background-position: -40% -16.67%; }
.matchup-emblem.real.gsw::after { background-position: -80% -16.67%; }
.matchup-emblem.real.nyk::after { background-position: -80% -50%; }
.matchup-emblem.real.mil::after { background-position: -20% -50%; }
.matchup-emblem.real.phx::after { background-position: -60% -66.67%; }
.matchup-emblem.real.dal::after { background-position: -20% -16.67%; }
.matchup-emblem.bos { background: radial-gradient(circle at 30% 30%, #1a5d3e, #0d3a25); color: #d4e89a; border-color: #2a5a3e; }
.matchup-emblem.lal { background: radial-gradient(circle at 30% 30%, #6b4520, #3a2410); color: #f0c987; border-color: #8a5a30; }
.matchup-name {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.matchup-city {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  font-family: var(--mono);
  text-transform: uppercase;
  margin-top: -8px;
}
.matchup-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 24px;
  padding: 0;
  font-variant-numeric: tabular-nums;
}
.matchup-stats div { display: flex; flex-direction: column; gap: 4px; }
.matchup-stats dt {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-4);
  letter-spacing: 0.1em;
  margin: 0;
}
.matchup-stats dd {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

.matchup-feature-center {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}
.matchup-feature-prob {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.matchup-feature-prob strong {
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.matchup-feature-prob.alt strong { color: var(--text-2); }
.matchup-feature-prob span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 0.1em;
}
.matchup-feature-bar {
  display: flex;
  gap: 3px;
  height: 8px;
  background: var(--bg-elev);
  border-radius: var(--r-pill);
  overflow: hidden;
  padding: 1px;
}
.matchup-feature-bar i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
}
.matchup-feature-bar i:first-child {
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  box-shadow: 0 0 14px var(--green-soft);
}
.matchup-feature-bar i:last-child { background: var(--surface-3); }
.matchup-feature-edge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  align-items: center;
}
.matchup-feature-edge small {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.matchup-feature-edge strong {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.matchup-feature-center .primary {
  width: 100%;
  justify-content: center;
}

/* ============================================================================
   Method visualisation — 39 variables grid
   ============================================================================ */
.method-grid-visu {
  padding: clamp(72px, 8vw, 112px) clamp(24px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.method-grid-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.method-grid-head .leagues-eyebrow { display: block; margin-bottom: 12px; }
.method-grid-head h2 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.method-grid-head p {
  margin: 0;
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.65;
}
.variable-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.variable {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding: 14px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-2);
  text-align: center;
  transition: all var(--d-fast) var(--ease);
}
.variable small { font-size: 11px; font-weight: 400; color: var(--text-2); }
.variable.core {
  background: var(--green-soft);
  border-color: var(--green-line);
  color: var(--green);
  font-weight: 600;
  position: relative;
}
.variable.core::before {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}
.variable-legend {
  max-width: 880px;
  margin: 32px auto 0;
  display: flex;
  justify-content: center;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.variable-legend span { display: inline-flex; align-items: center; gap: 8px; }
.variable-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-3);
}
.variable-legend .dot.core {
  background: var(--green);
  box-shadow: 0 0 8px var(--green-soft);
}

/* ============================================================================
   Sources banner — "+220 sources" over court photo
   ============================================================================ */
.sources-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 140px) clamp(24px, 5vw, 56px);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.sources-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/court.jpg');
  background-size: cover;
  background-position: center 50%;
  opacity: 0.32;
  filter: saturate(.5) brightness(.55) contrast(1.1) hue-rotate(15deg);
}
.sources-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,20,38,.45) 0%, rgba(10,20,38,.92) 100%),
    linear-gradient(0deg, rgba(159,232,112,0.06), transparent 40%);
}
.sources-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.sources-inner h2 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--green);
}
.sources-inner h2 span {
  color: var(--text);
}
.sources-inner p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 38em;
  margin: 0 auto 32px;
}
.sources-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.sources-tags span {
  padding: 8px 16px;
  border: 1px solid var(--green-line);
  background: var(--green-soft);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--text);
}

/* ============================================================================
   Scroll-driven text reveal — "type-on" / "scrub" effect like Nakula
   ============================================================================ */
[data-reveal] > span,
.reveal-line > span {
  display: inline-block;
  transform: translate3d(0, 0, 0);
}

[data-reveal] > span {
  clip-path: none;
}
[data-reveal].is-revealed > span {
  clip-path: none;
}
[data-reveal].is-revealed > span:nth-child(1) { transition-delay: 0ms; }
[data-reveal].is-revealed > span:nth-child(2) { transition-delay: 90ms; }
[data-reveal].is-revealed > span:nth-child(3) { transition-delay: 180ms; }
[data-reveal].is-revealed > span:nth-child(4) { transition-delay: 270ms; }
[data-reveal].is-revealed > span:nth-child(5) { transition-delay: 360ms; }
[data-reveal].is-revealed > span:nth-child(6) { transition-delay: 450ms; }

/* Word reveal (char-by-char type) */
.reveal-words > span {
  display: inline-block;
  opacity: 1;
  transform: none;
  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
}
.reveal-words.is-revealed > span {
  opacity: 1;
  transform: translateY(0);
}

/* Number counter reveal */
.reveal-num {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.reveal-num.is-revealed { opacity: 1; transform: translateY(0); }

/* Fade up simple */
.reveal-up {
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.reveal-up.is-revealed { opacity: 1; transform: translateY(0); }

/* Soft parallax — used on team silhouettes / large visual elements */
.parallax-soft { will-change: transform; }

/* ============================================================================
   Skeleton loaders — calm shimmer, no spinners, no layout shift
   ============================================================================ */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  display: block;
  background: linear-gradient(90deg,
    var(--surface-2) 0%,
    var(--surface-3) 30%,
    var(--surface-2) 60%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 1.6s linear infinite;
  color: transparent;
  user-select: none;
  pointer-events: none;
}
.skeleton-line { height: 12px; margin: 6px 0; }
.skeleton-line.tall { height: 18px; }
.skeleton-line.huge { height: 28px; }
.skeleton-circle { border-radius: 50%; width: 40px; height: 40px; }
.skeleton-block { height: 96px; border-radius: var(--r-2); }
.skeleton-card { height: 140px; border-radius: var(--r-2); }
.skeleton-stat { height: 64px; border-radius: var(--r-2); }
.skeleton-table-row { height: 56px; border-radius: 6px; margin-bottom: 8px; }
/* Page-level skeleton container — used while data is "loading" */
.skeleton-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
}
.skeleton-page.is-loaded .skeleton { animation: none; opacity: 0; }
.skeleton-page.is-loaded > * { transition: opacity 320ms var(--ease); }
.skeleton-page .fade-in { opacity: 0; }
.skeleton-page.is-loaded .fade-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; background: var(--surface-2); }
}

/* ============================================================================
   Focus ring — uniform across landing + workspace
   ============================================================================ */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
/* Keep ring subtle on the hero search bar where outline would clash */
.hero-search:focus-within { box-shadow: 0 0 0 2px var(--brand); }

/* ============================================================================
   Semantic state — success / warning / error / info helpers
   ============================================================================ */
.state-success { color: var(--success); }
.state-warning { color: var(--warning); }
.state-error   { color: var(--error); }
.state-info    { color: var(--info); }
.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text-2);
}
.state-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}
.state-pill.success { color: var(--success); border-color: var(--success-line); background: var(--success-soft); }
.state-pill.warning { color: var(--warning); border-color: var(--warning-line); background: var(--warning-soft); }
.state-pill.error   { color: var(--error);   border-color: var(--error-line);   background: var(--error-soft); }
.state-pill.info    { color: var(--info);    border-color: var(--info-line);    background: var(--info-soft); }
.state-pill.brand   { color: var(--brand);   border-color: var(--brand-line);   background: var(--brand-soft); }

/* Trust badge keeps brand color (it's a brand signal, not a success state) */
.trust-badge { /* inherits brand colors from earlier rule */ }

/* Workspace skeleton overlay — calm perception of "the app is loading" */
.workspace-skeleton {
  position: absolute;
  inset: 0;
  z-index: 5;
  padding: 32px clamp(20px, 4.5vw, 56px) 80px;
  background: var(--bg);
  pointer-events: none;
  opacity: 1;
  transition: opacity 320ms var(--ease);
}
.workspace-skeleton.is-done { opacity: 0; }

/* Hero parallax: subtle scale + downward drift as you scroll the hero */
.hero-photo { will-change: transform; transform: scale(1.06); transform-origin: center 40%; transition: transform 80ms linear; }
.hero-silhouette { will-change: transform; }

/* Section heading eyebrow → text reveal stagger */
.section-heading h2,
.leagues-head h2,
.method-grid-head h2,
.stats-head h2,
.faq-head h2,
.sources-inner h2,
.belief h2,
.closing h2,
.matchup-feature-title {
  clip-path: none;
}

/* Hero title em accent — soft glow on reveal */
.hero h1 span em { font-style: normal; position: relative; }
.hero h1 span em::after {
  content: '';
  position: absolute;
  inset: -8% -4% -8% -4%;
  background: radial-gradient(50% 60% at 50% 50%, rgba(159,232,112,.18), transparent 70%);
  opacity: 0;
  transition: opacity 800ms var(--ease) 600ms;
  pointer-events: none;
}
.hero.is-revealed h1 span em::after { opacity: 1; }

/* ============================================================================
   Real team logos (cropped from the nba-teams.png sheet)
   Sheet is 1160x900 with a 5x6 grid → cell ≈ 232x150
   ============================================================================ */
.team-logo.real {
  background: none;
  border: 0;
  color: transparent;
  overflow: hidden;
  position: relative;
}
.team-logo.real::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: 232px 150px;
  background-repeat: no-repeat;
  background-position: var(--logo-x, 0) var(--logo-y, 0);
}
/* 5 cols × 6 rows: col 0..4, row 0..5; offset = -col*46.4%, -row*25% of 1160/900 */
.team-logo.real.bos { --logo-x: -20%; --logo-y:   0%; }
.team-logo.real.lal { --logo-x: -60%; --logo-y: -33.33%; }
.team-logo.real.den { --logo-x: -40%; --logo-y: -16.67%; }
.team-logo.real.gsw { --logo-x: -80%; --logo-y: -16.67%; }
.team-logo.real.nyk { --logo-x: -80%; --logo-y: -50%; }
.team-logo.real.mil { --logo-x: -20%; --logo-y: -50%; }
.team-logo.real.phx { --logo-x: -60%; --logo-y: -66.67%; }
.team-logo.real.dal { --logo-x: -20%; --logo-y: -16.67%; }

/* ============================================================================
   Silhouette / mark visual elements
   ============================================================================ */
.silhouette {
  position: relative;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  opacity: 0.92;
  pointer-events: none;
}
.silhouette.nba {
  background-image: 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");
}
.silhouette.ncaa {
  background-image: 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%3Cpath%20d%3D%22m12%2046%2048-22%2048%2022-48%2022Z%20M30%2055v26q30%2022%2060%200V55%20M108%2046v34%22%2F%3E%3Ccircle%20cx%3D%22108%22%20cy%3D%2286%22%20r%3D%224%22%2F%3E%3C%2Fsvg%3E");
}
.silhouette.large { width: 220px; height: 220px; }
.silhouette.medium { width: 140px; height: 140px; }
.silhouette.small { width: 72px; height: 72px; }

.silhouette.invert { filter: invert(1) drop-shadow(0 12px 28px rgba(0,0,0,0.45)); }

/* ============================================================================
   Team sheet banner — "all 30 teams" visual
   ============================================================================ */
.teams-sheet {
  position: relative;
  height: 200px;
  background-image: none;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
  filter: saturate(0) brightness(1.4);
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
}


@media (max-width: 1080px) {
  .matchup-feature-grid { grid-template-columns: 1fr; gap: 28px; }
  .matchup-side { flex-direction: row; text-align: left; gap: 24px; }
  .matchup-side:nth-child(3) { flex-direction: row-reverse; }
  .matchup-emblem { width: 90px; height: 90px; font-size: 26px; }
  .matchup-stats { gap: 18px; }
  .method-grid-head { margin-bottom: 36px; }
}
@media (max-width: 880px) {
  .hero { min-height: 540px; padding-top: 60px; padding-bottom: 60px; }
  .hero h1 { font-size: clamp(36px, 8vw, 56px); }
  .hero-search { flex-wrap: wrap; padding: 6px; }
  .hero-search input { width: 100%; padding: 10px 12px; }
  .hero-search button { width: 100%; padding: 12px; }
  .matchup-side { flex-direction: column !important; text-align: center; }
  .matchup-feature-title { margin-bottom: 32px; }
  .matchup-feature-prob strong { font-size: 32px; }
}
@media (max-width: 640px) {
  .hero { min-height: 480px; padding-top: 48px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(32px, 9vw, 46px); }
  .hero-sub { font-size: 14px; }
  .hero-footline { font-size: 13px; flex-wrap: wrap; justify-content: center; text-align: center; }
  .hero-footline strong { font-size: 18px; }
  .matchup-emblem { width: 100px; height: 100px; font-size: 28px; }
  .matchup-feature-bar { height: 6px; }
  .matchup-feature-prob strong { font-size: 26px; }
  .matchup-feature-center .primary { padding: 12px; font-size: 13px; }
  .sources-inner h2 { font-size: clamp(36px, 9vw, 50px); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .variable-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .variable { padding: 12px 8px; font-size: 12px; }
  .variable-legend { flex-direction: column; gap: 8px; align-items: center; }
}




/* ============================================================================
   Pricing / Sign in / Sign up / Account
   ============================================================================ */

/* Header user chip (signed-in) */
.header-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  transition: border-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
  text-decoration: none;
}
.header-user:hover { border-color: var(--brand-line); color: var(--brand); }
.header-user .avatar-mini {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-bright) 100%);
  color: var(--on-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.header-user .plan-chip {
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-1);
  transition: border-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
  cursor: pointer;
  text-decoration: none;
}
.header-cta:hover { border-color: var(--brand-line); color: var(--brand); }
.header-cta.primary {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}
.header-cta.primary:hover { background: var(--brand-bright); border-color: var(--brand-bright); }
.header-cta:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Page header (eyebrow + title + sub) — used by pricing/signin/signup/account */
.page-hero {
  padding: 96px 0 48px;
  text-align: center;
  position: relative;
}
.page-hero .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0 auto 18px;
  max-width: 18ch;
  font-family: var(--sans);
}
.page-hero h1 em { color: var(--brand); font-style: normal; }
.page-hero p {
  font-size: 16px;
  color: var(--text-2);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.55;
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 56px 0 32px;
}
.pricing-grid-dash {
  margin: 12px 0 32px;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 28px 24px 24px;
  transition: border-color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.tier:hover { border-color: var(--line-3); transform: translateY(-2px); }
.tier.recommended {
  border-color: var(--brand-line);
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--surface) 60%);
}
.tier.recommended::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 var(--brand-line);
}
.tier-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.tier-name {
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 12px;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.tier-price .amount {
  font-family: 'Archivo Black', sans-serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}
.tier-price .currency {
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
}
.tier-price .period {
  font-size: 13px;
  color: var(--text-2);
  margin-left: 4px;
}
.tier-price.free .amount {
  font-size: 28px;
  letter-spacing: -0.02em;
}
.tier-tagline {
  font-size: 13px;
  color: var(--text);
  margin: 8px 0 20px;
  line-height: 1.45;
}
.tier-tokens {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 8px 12px;
  background: var(--brand-soft);
  border-radius: var(--r-pill);
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 18px;
}
.tier-tokens.neutral {
  background: var(--surface-2);
  color: var(--text-2);
}
.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.tier-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
}
.tier-features li.missing {
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-color: var(--line-3);
}
.tier-features li .check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--brand);
}
.tier-features li.missing .check {
  color: var(--line-3);
}
.tier-cta {
  width: 100%;
  padding: 12px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-1);
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}
.tier-cta:hover { border-color: var(--brand-line); color: var(--brand); }
.tier-cta.primary {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}
.tier-cta.primary:hover { background: var(--brand-bright); border-color: var(--brand-bright); }
.tier-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.tier-cta:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tier-current {
  width: 100%;
  padding: 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* Pricing comparison table */
.comparison-wrap {
  margin: 64px 0 32px;
}
.comparison-head {
  text-align: center;
  margin-bottom: 24px;
}
.comparison-head h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.comparison-head p {
  font-size: 14px;
  color: var(--text-3);
  margin: 0;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
}
.comparison-table th, .comparison-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.comparison-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-2);
  font-weight: 600;
}
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table .feat-name { color: var(--text-1); font-weight: 500; }
.comparison-table td.col-tier { text-align: center; color: var(--text-2); }
.comparison-table td.col-tier.recommended {
  color: var(--brand);
  font-weight: 600;
}
.comparison-table .check, .comparison-table .cross {
  display: inline-block;
  width: 18px; height: 18px;
  vertical-align: middle;
}
.comparison-table .check { color: var(--brand); }
.comparison-table .cross { color: var(--line-3); }

/* Auth form layout (signin / signup) */
.auth-wrap {
  display: grid;
  place-items: center;
  padding: 80px 0 96px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 36px 32px;
  box-shadow: 0 24px 64px -32px rgba(0, 0, 0, 0.5);
}
.auth-card .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.auth-card h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.15;
}
.auth-card .sub {
  font-size: 14px;
  color: var(--text-2);
  margin: 0 0 28px;
  line-height: 1.5;
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.field input {
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  color: var(--text-1);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.field input::placeholder { color: var(--text-3); }
.field input:hover { border-color: var(--line-3); }
.field input:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.field input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.field input[aria-invalid="true"] {
  border-color: var(--error-line);
  background: var(--error-soft);
}
.field .field-error {
  font-size: 12px;
  color: var(--error-bright);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.field .field-error::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--error-bright);
}
.auth-submit {
  margin-top: 8px;
  width: 100%;
  padding: 13px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--on-brand);
  border: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.auth-submit:hover { background: var(--brand-bright); }
.auth-submit:active { transform: scale(0.98); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-submit:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.auth-switch {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-3);
}
.auth-switch a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}
.auth-switch a:hover { text-decoration: underline; }
.auth-hint {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 18px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: var(--r-1);
  border: 1px solid var(--line);
  line-height: 1.45;
}
.auth-error {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--error-soft);
  border: 1px solid var(--error-line);
  border-radius: var(--r-1);
  color: var(--error-bright);
  font-size: 13px;
  margin-bottom: 16px;
}
.auth-error svg { flex-shrink: 0; margin-top: 1px; }

/* Account workspace */
.account-wrap {
  padding: 80px 0 96px;
  max-width: 920px;
  margin: 0 auto;
}
.account-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}
.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-bright) 100%);
  color: var(--on-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--mono);
  flex-shrink: 0;
}
.account-head .meta h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.account-head .meta .email {
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--mono);
}
.account-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.account-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 24px 24px 22px;
}
.account-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.account-card-head .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.account-card-head .pill {
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.account-card-head .pill.neutral {
  background: var(--surface-2);
  color: var(--text-2);
}
.plan-name-large {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.plan-tagline { font-size: 13px; color: var(--text-2); margin: 0 0 18px; line-height: 1.45; }
.tokens-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.tokens-display .current {
  font-family: 'Archivo Black', sans-serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}
.tokens-display .total {
  font-size: 14px;
  color: var(--text-3);
}
.token-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin: 10px 0 14px;
}
.token-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-bright) 100%);
  border-radius: var(--r-pill);
  transition: width var(--d-slow) var(--ease);
}
.token-bar.low > i {
  background: linear-gradient(90deg, var(--warning) 0%, var(--warning-bright) 100%);
}
.token-bar.empty > i {
  background: var(--error);
}
.token-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.renewal-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.renewal-row:last-of-type { border-bottom: 0; }
.renewal-row span { color: var(--text-3); }
.renewal-row strong { color: var(--text-1); font-weight: 600; }
.account-cta-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.account-cta-row a, .account-cta-row button {
  flex: 1;
  padding: 11px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-1);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--d-fast) var(--ease);
}
.account-cta-row a:hover, .account-cta-row button:hover { border-color: var(--brand-line); color: var(--brand); }
.account-cta-row .primary {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}
.account-cta-row .primary:hover { background: var(--brand-bright); border-color: var(--brand-bright); }
.account-cta-row .ghost.danger { color: var(--text-3); }
.account-cta-row .ghost.danger:hover { color: var(--error-bright); border-color: var(--error-line); }
.empty-workspace {
  text-align: center;
  padding: 48px 0 80px;
  color: var(--text-2);
  font-size: 15px;
}
.empty-workspace a {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

/* Mobile responsiveness for new pages */
@media (max-width: 1080px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .page-hero { padding: 80px 0 36px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .tier { padding: 24px 20px; }
  .tier-price .amount { font-size: 36px; }
  .auth-card { padding: 28px 22px; }
  .comparison-table th:nth-child(n+4), .comparison-table td:nth-child(n+4) { display: none; }
  .header-user { padding: 4px 8px 4px 4px; }
  .header-user .user-name { display: none; }
  .header-cta { padding: 7px 12px; font-size: 12px; }
  .account-head { gap: 14px; }
  .account-avatar { width: 48px; height: 48px; font-size: 17px; }
}

/* Closing CTA row (used on pricing + reusable) */
.closing-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.closing-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px;
}
.closing-cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.closing-cta-row .primary, .closing-cta-row .secondary {
  padding: 12px 22px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .account-cta-row { flex-direction: column; }
  .tier-cta, .auth-submit { font-size: 14px; }
  .tier-badge { font-size: 9px; padding: 3px 8px; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; font-size: 12px; }
}


/* ============================================================================
   Dashboard layout — sidebar + content area (Visifoot-inspired)
   ============================================================================ */
.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--bg);
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 28px 20px 22px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  z-index: 5;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  text-decoration: none;
  color: var(--text-1);
}
.sidebar-brand small {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.sidebar-section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 14px 10px 6px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-1);
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background var(--d-fast) var(--ease), color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
.sidebar-link:hover {
  background: var(--surface);
  color: var(--text-1);
}
.sidebar-link.active {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-line);
}
.sidebar-link-ic {
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
}
.sidebar-link-ic svg { width: 18px; height: 18px; }
.sidebar-link-label { flex-grow: 1; }
.sidebar-badge {
  font-size: 9px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: var(--r-pill);
  background: var(--amber);
  color: var(--on-brand);
  font-weight: 700;
}
.sidebar-spacer { flex-grow: 1; min-height: 24px; }

.sidebar-quota {
  padding: 14px 12px;
  border-radius: var(--r-1);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.sidebar-quota-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.sidebar-quota-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.sidebar-quota-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.sidebar-quota-bar {
  height: 5px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: 8px;
}
.sidebar-quota-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-bright) 100%);
  border-radius: var(--r-pill);
  transition: width var(--d-slow) var(--ease);
}
.sidebar-quota-bar.low > i {
  background: linear-gradient(90deg, var(--warning) 0%, var(--warning-bright) 100%);
}
.sidebar-quota-bar.out > i { background: var(--error); }
.sidebar-quota-caption {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--r-1);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text-1);
  margin-bottom: 8px;
  transition: border-color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.sidebar-user:hover { border-color: var(--brand-line); background: var(--surface-2); }
.sidebar-user-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sidebar-user-meta strong {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-meta small {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.sidebar-secondary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.sidebar-secondary .sidebar-link {
  font-size: 12px;
  padding: 8px 12px;
  color: var(--text-3);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d-fast) var(--ease);
  z-index: 4;
}
.sidebar-overlay.is-open { opacity: 1; pointer-events: auto; }

.dashboard-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 36px;
  border-bottom: 1px solid var(--line);
  background: var(--bg); /* opaque: backdrop blur re-rendered the whole dashboard while scrolling */
}
.dashboard-topbar-meta { flex-grow: 1; min-width: 0; }
.dashboard-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
  margin-bottom: 4px;
}
.dashboard-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-topbar-tools { display: flex; align-items: center; gap: 12px; }
.sidebar-mobile {
  display: none;
  width: 38px; height: 38px;
  border-radius: var(--r-1);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-1);
  cursor: pointer;
}
.dashboard-content {
  flex-grow: 1;
  padding: 36px;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}

/* Dashboard hero (welcome band) */
.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.dash-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 8px;
}
.dash-h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
}
.dash-sub { font-size: 14px; color: var(--text-2); margin: 0; }
.dash-cta { padding: 12px 22px; }

/* Dashboard stat grid */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.dash-stat {
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  transition: border-color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.dash-stat:hover { border-color: var(--line-3); transform: translateY(-2px); }
.dash-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.dash-stat-value {
  font-family: 'Archivo Black', sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.dash-stat-value.is-text {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.dash-stat-meta {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* Recent activity / sections */
.dash-section { margin-bottom: 36px; }
.dash-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.dash-section-head h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}
.dash-section-meta {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.dash-recent-list {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
}
.dash-recent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text-1);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: background var(--d-fast) var(--ease);
}
.dash-recent-row:last-child { border-bottom: 0; }
.dash-recent-row:hover { background: var(--surface-2); }
.dash-recent-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.dash-recent-name { flex-grow: 1; font-weight: 500; }
.dash-recent-meta { font-size: 12px; color: var(--text-3); font-family: var(--mono); letter-spacing: 0.02em; }
.dash-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.dash-link:hover { text-decoration: underline; }
.dash-link svg { width: 14px; height: 14px; }

/* Empty state card */
.dash-empty,
.dash-empty-card {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.dash-empty-card { padding: 64px 32px; }
.dash-empty-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 4px;
}
.dash-empty-icon svg { width: 24px; height: 24px; }
.dash-empty h3, .dash-empty-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}
.dash-empty p, .dash-empty-card p {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
  max-width: 42ch;
  line-height: 1.5;
}
.dash-empty-card .primary,
.dash-empty .primary {
  margin-top: 8px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* New-analysis / shared page hero */
.ana-hero { margin-bottom: 28px; }
.ana-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 10px;
}
.ana-h1 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 10px;
}
.ana-sub {
  font-size: 15px;
  color: var(--text-2);
  margin: 0;
  max-width: 64ch;
  line-height: 1.55;
}

/* New analysis card */
.ana-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  margin-bottom: 16px;
}
.ana-step-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.ana-pickers {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}
.ana-pick-label {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.ana-pick-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-1);
  color: var(--text-2);
  font-size: 14px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: border-color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.ana-pick-trigger:hover { border-color: var(--brand-line); border-style: solid; }
.ana-pick-trigger[data-empty="false"] {
  border-style: solid;
  border-color: var(--brand-line);
  background: var(--surface);
  color: var(--text-1);
}
.ana-pick-trigger:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.ana-pick-placeholder { color: var(--text-3); }
.ana-pick-meta-inline {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.ana-pick-meta-inline strong { font-size: 15px; font-weight: 700; }
.ana-pick-meta-inline small { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.ana-pick-sep {
  align-self: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  padding: 0 4px;
}
.ana-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.ana-cost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
}
.ana-cost-meta { font-size: 12px; color: var(--text-3); font-family: var(--mono); letter-spacing: 0.02em; }
.ana-submit {
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ana-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ana-note {
  margin: 0;
  padding: 14px 18px;
  font-size: 12px;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
}

/* Team picker (league-grouped grid of clickable teams) */
.team-picker-league { margin-top: 22px; }
.team-picker-league-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.team-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.team-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  text-align: left;
  cursor: pointer;
  color: var(--text-1);
  font: inherit;
  transition: border-color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.team-pick:hover { border-color: var(--brand-line); background: var(--surface); }
.team-pick:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.team-pick.disabled { cursor: default; opacity: 0.85; }
.team-pick.disabled:hover { border-color: var(--line); background: var(--surface-2); }
.team-pick-logo {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  flex-shrink: 0;
  background-size: 232px 150px;
  background-repeat: no-repeat;
  background-color: var(--bg);
}
.team-pick-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.team-pick-meta strong {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-pick-meta small {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* Analyses table */
.dash-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
}
.dash-table {
  width: 100%;
  border-collapse: collapse;
}
.dash-table th, .dash-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.dash-table thead th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-2);
  font-weight: 600;
}
.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-table tbody tr:hover { background: var(--surface-2); }
.dash-table strong { font-weight: 600; }
.dash-table .dash-link { margin-top: 0; }

/* Mobile responsiveness for dashboard */
@media (max-width: 1080px) {
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .ana-pickers { grid-template-columns: 1fr; }
  .ana-pick-sep { padding: 6px 0; }
}
@media (max-width: 880px) {
  .dashboard { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 280px;
    transform: translateX(-100%);
    transition: transform var(--d-base) var(--ease);
    z-index: 6;
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-mobile { display: inline-flex; align-items: center; justify-content: center; }
  .dashboard-topbar { padding: 16px 20px; gap: 12px; }
  .dashboard-content { padding: 24px 18px; }
  .dash-hero { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-stat-value { font-size: 26px; }
  .ana-card { padding: 20px 18px; }
  .ana-footer { flex-direction: column; align-items: stretch; }
  .ana-submit { width: 100%; justify-content: center; }
}


/* ============================================================================
   Dashboard v2 — KPI cards, charts, sections
   ============================================================================ */

/* Demo data flag */
.dash-demo-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 10px;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--warning-bright);
  background: var(--warning-soft);
  border: 1px solid var(--warning-line);
  border-radius: var(--r-pill);
}

/* KPI card v2 — sparkline-aware, with delta + total meta */
.dash-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  transition: border-color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
  position: relative;
  overflow: hidden;
}
.dash-stat:hover { border-color: var(--line-3); transform: translateY(-2px); }
.dash-stat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.dash-stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0;
}
.dash-stat-delta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.dash-stat-delta.positive {
  color: var(--success-bright);
  background: var(--success-soft);
}
.dash-stat-delta.negative {
  color: var(--error-bright);
  background: var(--error-soft);
}
.dash-stat-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-stat-value {
  font-family: 'Archivo Black', sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dash-stat-value.is-text {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.dash-stat-suffix {
  font-size: 18px;
  color: var(--text-2);
  font-weight: 500;
}
.dash-stat-total {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  margin-left: auto;
}
.dash-stat-spark {
  margin-top: 4px;
  width: 100%;
  display: block;
  opacity: 0.9;
}
.dash-stat-spark svg { display: block; width: 100%; height: 36px; }

/* Period toggle (7d / 30d / 90d) */
.period-toggle {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  gap: 2px;
}
.period-toggle button {
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
.period-toggle button:hover { color: var(--text-1); }
.period-toggle button.active {
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 600;
}
.period-toggle button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Generic chart card */
.dash-section-row { margin-bottom: 32px; }
.dash-section-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}
.dash-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.dash-card-head h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.dash-card-head p {
  font-size: 12px;
  color: var(--text-3);
  margin: 0;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.dash-card-body { min-height: 200px; }
.chart-host { width: 100%; }
.chart-host svg { width: 100%; display: block; }

/* Skeleton + empty states for charts */
.chart-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-1);
  background: var(--surface-2);
}
.chart-empty-icon {
  font-size: 18px;
  color: var(--line-3);
}

/* Donut chart wrapper */
.vh-donut-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 6px;
}
.vh-donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  text-align: center;
  pointer-events: none;
}
.vh-donut-center strong {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.vh-donut-center span {
  display: block;
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}
.vh-donut-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  font-size: 12px;
  color: var(--text-2);
  width: 100%;
  justify-content: center;
}
.vh-donut-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.vh-donut-legend-item i {
  width: 10px; height: 10px;
  border-radius: 2px;
  display: inline-block;
}
.vh-donut-legend-item strong {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  color: var(--text);
  font-size: 13px;
  margin-left: 2px;
}

/* Top players list */
.dash-player-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
}
.dash-player-row {
  display: grid;
  grid-template-columns: 28px 36px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  font-size: 13px;
  transition: background var(--d-fast) var(--ease);
}
.dash-player-row:hover { background: var(--surface-2); }
.dash-player-rank {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.dash-player-logo {
  width: 32px; height: 32px;
  border-radius: 50%;
  background-size: 232px 150px;
  background-repeat: no-repeat;
  background-color: var(--bg);
  flex-shrink: 0;
}
.dash-player-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.dash-player-meta strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-player-meta small {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.dash-player-conf {
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.dash-player-trend {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.dash-player-trend.positive {
  color: var(--success-bright);
  background: var(--success-soft);
}
.dash-player-trend.negative {
  color: var(--error-bright);
  background: var(--error-soft);
}

/* Recent analyses v2 */
.dash-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
}
.dash-recent-list .dash-recent-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-decoration: none;
  color: var(--text-1);
  transition: background var(--d-fast) var(--ease);
}
.dash-recent-list .dash-recent-row:last-child { border-bottom: 0; }
.dash-recent-list .dash-recent-row:hover { background: var(--surface-2); }
.dash-recent-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.dash-recent-dot.in-progress {
  background: var(--warning);
  animation: vh-blink 1.4s ease-in-out infinite;
}
@keyframes vh-blink { 0%, 100% { opacity: 1 } 50% { opacity: 0.35 } }
.dash-recent-meta-col { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.dash-recent-meta-col strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.dash-recent-meta-col small {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.dash-recent-conf {
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.dash-recent-name { font-size: 13px; font-weight: 500; }
.dash-recent-meta { font-size: 12px; color: var(--text-3); font-family: var(--mono); }

/* Pricing hero + footer */
.pricing-hero { text-align: center; }
.pricing-foot {
  margin: 32px auto 0;
  max-width: 64ch;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* Tier card v2 — icon + name + big price + tagline + features + CTA */
.tier-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}
.tier-icon.brand   { background: var(--brand-soft);   color: var(--brand); }
.tier-icon.success { background: var(--success-soft); color: var(--success-bright); }
.tier-icon.info    { background: var(--info-soft);    color: var(--info); }
.tier-icon.warning { background: var(--warning-soft); color: var(--warning-bright); }

.tier .tier-name { color: var(--text); font-weight: 600; font-size: 14px; }
.tier .tier-tagline { color: var(--text-2); }
.tier .tier-cta { transition: transform var(--d-fast) var(--ease), background var(--d-fast) var(--ease); }
.tier .tier-cta:hover { transform: translateY(-1px); }

/* Responsive */
@media (max-width: 1080px) {
  .dash-section-split { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-player-row { grid-template-columns: 24px 32px 1fr auto; }
  .dash-player-trend { display: none; }
  .dash-card { padding: 18px 18px 14px; }
  .dash-card-body { min-height: 180px; }
}
@media (max-width: 640px) {
  .dash-stat { padding: 18px 16px 14px; }
  .dash-stat-value { font-size: 26px; }
  .period-toggle button { padding: 5px 10px; font-size: 11px; }
}


/* ============================================================================
   ViziHoopLogo component — single source for the brand mark
   ============================================================================ */
.vh-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font: inherit;
  user-select: none;
  /* Defensive: never let the flex host collapse below the image height. */
  min-height: 1px;
}
.vh-logo-img {
  display: block;
  /* Force the rendered box to a square by combining explicit height (from
     the parent variant) and an aspect-ratio. Width stays auto so the
     intrinsic ratio still wins, but we add min/max widths so the element
     can never collapse to 0px wide. */
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1;
  min-width: 1px;
  max-width: 100%;
  flex-shrink: 0;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  object-fit: contain;
  /* Render the PNG with normal smoothing (default), then a gentle
     sharpening filter that survives in every engine. The previous
     non-standard `image-rendering: -webkit-optimize-contrast` was
     suppressing the image in some Chromium builds. */
  image-rendering: auto;
}
.vh-logo-wordmark {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  white-space: nowrap;
}

/* --- Variant: header (public landing top bar) ---
   28px → 60px (×2.14) — the brand mark now anchors the top bar with
   real presence. Wordmark scales so the pair still reads as one unit. */
.vh-logo-header {
  height: 60px;
  gap: 14px;
}
.vh-logo-header .vh-logo-wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* --- Variant: sidebar (dashboard) ---
   38px → 84px (×2.21) — the brand mark dominates the sidebar top so
   the workspace reads as a real product shell, not a navigation rail. */
.vh-logo-sidebar {
  height: 84px;
  gap: 16px;
}
.vh-logo-sidebar .vh-logo-wordmark {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* --- Variant: auth (signin / signup pages) --- */
.vh-logo-auth {
  height: 56px;
  gap: 12px;
  margin: 0 auto 28px;
  display: flex;
  justify-content: center;
}
.vh-logo-auth .vh-logo-wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* --- Variant: compact (inline / small) --- */
.vh-logo-compact {
  height: 22px;
  gap: 8px;
}
.vh-logo-compact .vh-logo-wordmark {
  font-size: 13px;
  font-weight: 600;
}

/* --- Variant: icon-only (no wordmark) --- */
.vh-logo-icon {
  height: 28px;
  gap: 0;
}

/* --- Auth page logo link --- */
.vh-auth-logo {
  display: inline-flex;
  align-self: center;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--d-fast) var(--ease);
}
.vh-auth-logo:hover { opacity: 0.85; }
.vh-auth-logo:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 8px;
}

/* The legacy .brand-mark and .sidebar-brand .brand-mark rules are now
   superseded by the .vh-logo component above. We keep the .brand-mark
   class as a no-op fallback for any leftover inline element so the
   layout doesn't break unexpectedly. */
.brand-mark {
  display: none;
}
