/* Self-hosted fonts (SIL OFL 1.1, see /fonts/LICENSE-*.txt). No requests to Google. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #0E1116;
  --card: #161B22;
  --card-2: #1B212A;
  --line: #262D38;
  --text: #E6EAF0;
  --text-2: #B8C1CD;
  --muted: #9AA4B2;
  --muted-2: #8A94A3;
  --accent: #FB7185;
  --accent-ink: #0E1116;
  --good: #6FD3A6;
  --good-bg: #16352A;
  --win: #3D8FE6;
  --loss: #E2683A;
  --link: #60A5FA;
  --danger: #FF8A8A;
  --radius: 18px;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-reduced-motion: reduce) { :root { --ease: linear; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s var(--ease); }
a:hover { color: #B3D4FF; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Text links draw their underline in on hover instead of always showing one. */
.underline-draw {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%; background-repeat: no-repeat; background-size: 0% 1px;
  text-decoration: none; transition: background-size .2s var(--ease), color .15s var(--ease);
}
.underline-draw:hover { background-size: 100% 1px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 24px 16px 56px; display: flex; flex-direction: column; gap: 48px; }
@media (min-width: 720px) { .wrap { padding: 32px 24px 64px; } }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 50; margin: 0 -16px; padding: 16px; background: rgba(14, 17, 22, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
@media (min-width: 720px) { .site-header { margin: 0 -24px; padding: 16px 24px; } }
body.scrolled .site-header { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); transition: opacity .15s var(--ease); }
.brand:hover { color: var(--text); opacity: .85; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--accent);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(251, 113, 133, 0.25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.player-chip { font-size: 14px; color: var(--muted); }

.nav-menu { position: relative; }
.nav-menu-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 190px;
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px; box-shadow: var(--shadow-lg);
}
.nav-menu-panel a {
  color: var(--text-2); text-decoration: none; font-size: 15px; padding: 9px 12px; border-radius: 8px;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav-menu-panel a:hover { background: var(--card-2); color: var(--text); }
.nav-menu-close {
  display: flex; align-items: center; gap: 6px; background: none; border: 0; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 13px; padding: 6px 12px 10px; margin-bottom: 4px; cursor: pointer;
  transition: color .15s var(--ease);
}
.nav-menu-close:hover { color: var(--text); }

/* Generic */
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card-lift { transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease); }
.card-lift:hover { transform: translateY(-2px); border-color: #3A4350; box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .card-lift:hover { transform: none; } }
.section { display: flex; flex-direction: column; gap: 16px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.section-head h2 { font-size: 24px; }
.section-head p { font-size: 15px; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.btn {
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: transform .12s var(--ease), filter .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { filter: brightness(1.08); color: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(.98); filter: brightness(1.02); box-shadow: var(--shadow-sm); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { color: var(--text); background: var(--card-2); border-color: #3A4350; }
@media (prefers-reduced-motion: reduce) { .btn:hover, .btn:active { transform: none; } }

/* Landing */
.hero { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.hero h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.05; }
.hero .lead { font-size: clamp(17px, 2.4vw, 19px); color: var(--text-2); }

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hero-fact { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.hero-fact b { font-family: var(--display); font-size: 20px; line-height: 1; color: var(--text); }
.hero-fact span { font-size: 12px; color: var(--muted); }

/* A quiet radial glow behind the first screen; tech/software kind only, never a caption. */
.glow-ground { position: relative; isolation: isolate; z-index: 0; }
.glow-ground::before {
  content: ''; position: absolute; z-index: -1; inset: -120px -24px auto; height: 560px;
  background: radial-gradient(60% 100% at 18% 0%, rgba(251, 113, 133, 0.16), transparent 70%),
              radial-gradient(45% 80% at 85% 10%, rgba(96, 165, 250, 0.12), transparent 70%);
  pointer-events: none;
}

[data-enter] { animation: enter .5s var(--ease) both; }
[data-enter] .hero-card, [data-enter-child] { animation: enter .5s var(--ease) both; animation-delay: .08s; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { [data-enter], [data-enter] .hero-card, [data-enter-child] { animation: none; } }

.search { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; }
@media (min-width: 640px) { .search { grid-template-columns: 1fr auto auto; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); }
.input, .select {
  min-height: 52px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 17px; width: 100%;
}
.input::placeholder { color: #6E7887; }
.select { padding-right: 36px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 23px, calc(100% - 15px) 23px; background-size: 5px 5px; background-repeat: no-repeat; }
.search .btn { min-height: 52px; align-self: end; }
.form-note { font-size: 14px; color: var(--muted); }
.form-error { color: var(--danger); font-size: 15px; min-height: 1.5em; }
.hero .form-error:empty { min-height: 0; margin-top: -16px; }

.steps-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.how { display: flex; flex-direction: column; gap: 10px; }
.how .n { width: 32px; height: 32px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.how h3 { font-size: 19px; }
.how p { color: var(--text-2); font-size: 15px; }

.offer { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 820px) { .offer { grid-template-columns: 1.1fr 1fr; } }
.price { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; }
.price small { font-size: 16px; color: var(--muted); font-family: var(--body); font-weight: 500; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { flex-shrink: 0; margin-top: 3px; }
.waitlist { display: flex; flex-direction: column; gap: 12px; }
.waitlist .row { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 520px) { .waitlist .row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex-shrink: 0; }
.ok { color: var(--good); }

.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; box-shadow: var(--shadow-sm); transition: border-color .15s var(--ease); }
.faq details:hover { border-color: #3A4350; }
.faq summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; color: var(--muted); font-size: 20px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 18px; color: var(--text-2); }

/* Report */
.r-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.r-hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.r-hero-text h1 { font-size: clamp(38px, 7vw, 52px); line-height: 1.05; }
.r-hero-text p { font-size: clamp(17px, 2.4vw, 19px); color: var(--text-2); }
.hero-card { flex: 1 1 280px; max-width: 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: 20px; box-shadow: var(--shadow-lg); }
.hero-card .big { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 9vw, 64px); line-height: 1; color: var(--good); }

.tile { display: flex; flex-direction: column; gap: 14px; }
.tile-head { display: flex; align-items: center; gap: 12px; }
.tile-head h3 { font-size: 21px; line-height: 1.2; }
.badge { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; }
.badge-good { background: var(--good-bg); }
.badge-step { background: var(--accent); color: var(--accent-ink); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .v { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.1; }
.stat .v.good { color: var(--good); }
.stat .v.step { color: var(--accent); }
.stat .l { font-size: 15px; color: var(--muted); }
.tile .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.tile .why { font-size: 15px; color: var(--text-2); }
.goal { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.goal strong { color: var(--text); font-weight: 600; }

/* Chart */
.chart-card { padding: 20px 16px 16px; }
@media (min-width: 720px) { .chart-card { padding: 24px; } }
@media (max-width: 719px) { .hero-card { max-width: none; } .data-table th, .data-table td { padding: 10px 6px; } }
abbr[title] { text-decoration: none; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.chart { position: relative; width: 100%; margin-top: 12px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--muted); font-size: 12px; font-family: var(--body); }
.chart .lbl { fill: var(--text); font-size: 13px; font-weight: 600; }
.tooltip {
  position: absolute; pointer-events: none; background: #0B0E13; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font-size: 13px; line-height: 1.45; white-space: nowrap; transform: translate(-50%, -100%); opacity: 0; transition: opacity .1s;
}
.tooltip .sw { display: inline-block; width: 10px; height: 10px; border-radius: 999px; margin-right: 6px; vertical-align: -1px; }
.chart-caption { font-size: 15px; color: var(--text-2); margin-top: 12px; }
.table-toggle { margin-top: 12px; font-size: 14px; }
.table-toggle summary { cursor: pointer; color: var(--link); min-height: 32px; display: inline-flex; align-items: center; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table th { color: var(--muted); font-weight: 500; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }

/* Games strip */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.game { background: var(--card); border-radius: 14px; border-top: 4px solid var(--line); padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.game.w { border-top-color: var(--win); }
.game.l { border-top-color: var(--loss); }
.game .res { font-size: 13px; font-weight: 600; color: var(--text-2); }
.game .icon { width: 36px; height: 36px; border-radius: 8px; background: var(--card-2); }
.game .d { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.1; }
.game .meta { font-size: 12px; color: var(--muted); }

.cta { background: var(--card); border-radius: var(--radius); padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); }
.cta p { flex: 1 1 380px; min-width: 0; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.notice { border-left: 0; background: var(--card-2); border-radius: 12px; padding: 14px 16px; font-size: 15px; color: var(--text-2); }

/* Loading / error */
.state { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; }
.spinner { width: 44px; height: 44px; border-radius: 999px; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.state h1 { font-size: 28px; }
.state p { color: var(--text-2); max-width: 520px; }

/* Footer */
.site-footer { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted-2); border-top: 1px solid var(--line); padding-top: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); }

/* Prose pages */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.prose h1 { font-size: 36px; }
.prose h2 { font-size: 22px; margin-top: 16px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
[hidden] { display: none !important; }

.coach-comment { display: flex; flex-direction: column; gap: 12px; }
.coach-comment > p:first-of-type { font-size: 17px; color: var(--text); }
.ai-tag { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

/* ---------------------------------------------------------------- membership */
.header-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.member-area { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.link-btn { background: none; border: none; padding: 6px 2px; color: var(--link); cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.link-btn:hover { color: #B3D4FF; }
.tier-badge { font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 3px 10px; }

.dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(5, 7, 10, 0.7); }
.dialog-body { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------------------------------------------------------------- premium */
.progress-card { display: flex; flex-direction: column; gap: 12px; border-color: #3A4350; }
.progress { height: 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.goal-rows { display: flex; flex-direction: column; gap: 8px; }
.goal-row { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
@media (min-width: 720px) { .goal-row { grid-template-columns: 1.6fr 1fr auto; } }
.goal-main { display: flex; flex-direction: column; gap: 2px; }
.goal-vals { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-family: var(--display); font-weight: 700; }
.status-pill { justify-self: start; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 12px; border: 1px solid var(--line); }
.status-pill.ok { color: var(--good); border-color: #2C5E49; background: var(--good-bg); }
.status-pill.mid { color: var(--accent); border-color: #5C2A33; background: #2A1619; }
.status-pill.no { color: var(--text-2); }
.status-pill.na { color: var(--muted); }

.deeper { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.deeper-label { font-size: 12px; font-weight: 600; color: var(--accent); }
.deeper ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--text-2); }

.playstyle { display: flex; flex-direction: column; gap: 14px; }
.playstyle h3 { font-size: 26px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
@media (max-width: 480px) { .mini-stat { padding: 10px; } .mini-stat .v { font-size: 20px; } }
.stat-grid.compact { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.mini-stat { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm); }
.mini-stat .v { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.1; }
.mini-stat .l { font-size: 13px; color: var(--text-2); }
.mini-stat .d { font-size: 12px; color: var(--muted); }
.insight { font-size: 15px; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 12px; }

.map-card { display: flex; flex-direction: column; gap: 12px; }
.map-wrap { width: 100%; max-width: 520px; margin: 0 auto; border-radius: 12px; overflow: hidden; background: var(--card-2); }
.map-wrap svg { display: block; width: 100%; height: auto; }
.dot-sw { width: 12px; height: 12px; border-radius: 999px; display: inline-block; }

.match-list { display: flex; flex-direction: column; gap: 8px; }
.match { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.match summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 12px 16px; min-height: 52px; }
.match summary::-webkit-details-marker { display: none; }
.match .m-date { grid-column: 2 / -1; font-size: 13px; }
@media (min-width: 720px) { .match summary { grid-template-columns: auto 1fr auto auto auto; } .match .m-date { grid-column: auto; } }
.match .m-res { font-size: 14px; color: var(--text-2); }
.match .m-kda { font-family: var(--display); font-weight: 700; }
.res-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--line); }
.res-dot.w { background: var(--win); }
.res-dot.l { background: var(--loss); }
.match[open] summary { border-bottom: 1px solid var(--line); }
.match-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.h4 { font-size: 16px; }
.death-list { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.death-list li { display: flex; gap: 10px; }
.death-list .t { font-family: var(--display); font-weight: 700; min-width: 44px; }

.chat { display: flex; flex-direction: column; gap: 12px; }
.chat-log { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.bubble.me { align-self: flex-end; background: #233046; border: 1px solid #2F4060; }
.bubble.coach { align-self: flex-start; background: var(--card-2); border: 1px solid var(--line); }
.bubble.typing { color: var(--muted); }
.bubble.error { color: var(--danger); }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.chat-form textarea { min-height: 52px; padding: 12px 14px; resize: vertical; font-size: 16px; }
.chat-ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { background: var(--card-2); border: 1px solid var(--line); color: var(--text-2); border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; min-height: 40px; transition: transform .12s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.chip-btn:hover { color: var(--text); border-color: #3A4350; transform: translateY(-1px); }
.chip-btn:active { transform: translateY(0) scale(.97); }
@media (prefers-reduced-motion: reduce) { .chip-btn:hover, .chip-btn:active { transform: none; } }

.locked-tile { opacity: 0.92; }
.lock-badge { background: var(--card-2); border: 1px solid var(--line); color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Admin */
.admin-table td, .admin-table th { white-space: normal; }
.code-box { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card-2); border: 1px solid var(--accent); border-radius: 10px; padding: 12px; word-break: break-all; }
.legend i.dot-sw { width: 12px; height: 12px; border-radius: 999px; }

/* Personalised report: profile, level, game plan, win factors, guides */
.profile-line { font-size: 15px; color: var(--text-2); margin-top: 6px; }
.profile-line strong { color: var(--text); }
.level-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--muted); }
.level-chip, .tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; border: 1px solid #5C2A33; background: #2A1619; color: var(--accent); white-space: nowrap; }
.tag.muted-tag { border-color: var(--line); background: var(--card-2); color: var(--text-2); }
.tag.curve-early { border-color: #6A3A28; background: #2E1B14; color: #F0A27F; }
.tag.curve-mid { border-color: #5C2A33; background: #2A1619; color: var(--accent); }
.tag.curve-late { border-color: #4A3A6A; background: #211A31; color: #C6A9F0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.job-box { background: var(--card-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--text-2); }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.link-row:empty { display: none; }
.guide-link { background: none; border: 0; padding: 6px 0; color: var(--link); font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.guide-link:hover { color: #B3D4FF; text-decoration: underline; }
.guide-link.locked { color: var(--muted); }
.guide-link.locked:hover { color: var(--text-2); }

.plan-card { display: flex; flex-direction: column; gap: 16px; }
.plan-card + .plan-card { margin-top: 16px; }
.plan-head { display: flex; align-items: center; gap: 14px; }
.plan-title { display: flex; flex-direction: column; gap: 6px; }
.plan-title h3 { font-size: 24px; }
.plan-icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); flex-shrink: 0; }
.plan-icon.ph { display: inline-flex; align-items: center; justify-content: center; background: var(--card-2); font-weight: 700; color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.plan-grid > div { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--text-2); }
@media (min-width: 720px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
.matchups { display: flex; flex-wrap: wrap; gap: 8px; }
.mu { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); min-width: 56px; }
.mu .plan-icon { width: 32px; height: 32px; border-radius: 8px; border-width: 2px; }
.mu.w .plan-icon { border-color: var(--win); }
.mu.l .plan-icon { border-color: var(--loss); }
.mu-gd { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }

.wf-card { display: flex; flex-direction: column; gap: 16px; }
.wf-head { font-size: 20px; }
.wf-rows { display: flex; flex-direction: column; gap: 10px; }
.wf-row { display: grid; grid-template-columns: 1fr; gap: 6px; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.wf-label { font-weight: 600; }
.wf-val { display: grid; grid-template-columns: 30px 1fr 64px; align-items: center; gap: 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.wf-val > span:last-child { text-align: right; }
.wf-bar { height: 10px; background: #232A34; border-radius: 999px; overflow: hidden; }
.wf-bar > span { display: block; height: 100%; border-radius: 999px; }
.wf-bar.yes > span { background: var(--win); }
.wf-bar.no > span { background: #5A6472; }
@media (min-width: 820px) { .wf-row { grid-template-columns: 1.3fr 1fr 1fr; align-items: center; gap: 18px; } }

.guide-card { text-align: left; color: inherit; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease); }
.guide-card h3 { font-size: 19px; }
.guide-card p { font-size: 14px; color: var(--text-2); }
.guide-card:hover { border-color: #3A4350; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.guide-cta { margin-top: auto; padding-top: 6px; color: var(--link); font-size: 14px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .guide-card:hover { transform: none; } }

.guide-dialog { width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
.guide-dialog .dialog-body { max-height: calc(100vh - 34px); overflow-y: auto; gap: 16px; }
.guide-top { display: flex; justify-content: space-between; align-items: center; }
.icon-btn { background: var(--card-2); border: 1px solid var(--line); color: var(--text-2); border-radius: 999px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); }
.icon-btn:hover { color: var(--text); border-color: #3A4350; }
.icon-btn:active { transform: scale(.94); }
.icon-btn:disabled { opacity: .55; cursor: progress; }
.icon-btn:disabled svg { animation: spin .8s linear infinite; }
#refresh-report-btn { width: 34px; height: 34px; }
@media (prefers-reduced-motion: reduce) { .icon-btn:disabled svg { animation-duration: 3s; } }
.guide-sec { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.guide-sec h3 { font-size: 18px; color: var(--text); }
.guide-sec strong { color: var(--text); }
.guide-tips { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.guide-ahead { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card-2); }
.guide-ahead summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.guide-ahead .guide-sec:first-of-type { margin-top: 10px; }

/* Knowledge library: sidebar + reading pane */
.lib-entry { display: flex; flex-direction: column; gap: 18px; }
.lib-feature { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-decoration: none; color: inherit; background: var(--card-2); border: 1px solid #5C2A33; border-radius: 14px; padding: 16px; transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease); }
.lib-feature:hover { border-color: var(--accent); color: inherit; transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .lib-feature:hover { transform: none; } }
.lib-feature h3 { font-size: 20px; }
.lib-feature p { color: var(--text-2); font-size: 15px; }
.lib-cats { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .lib-cats { grid-template-columns: 1fr 1fr; } }
.lib-cat-block { display: flex; flex-direction: column; gap: 8px; }
a.chip-btn { text-decoration: none; display: inline-flex; align-items: center; }
.chip-btn.linked { border-color: #5C2A33; color: var(--accent); }

.lib-wrap { gap: 20px; }
.lib-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.lib-back { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; min-height: 40px; }
.lib { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.lib-nav { display: flex; flex-direction: column; gap: 12px; }
.lib-nav-title { font-family: var(--display); font-weight: 700; font-size: 20px; }
.lib-groups { display: none; }
.lib-select { width: 100%; }
.lib-group { display: flex; flex-direction: column; gap: 4px; }
.lib-group + .lib-group { margin-top: 14px; }
.lib-cat { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 0 10px; }
.lib-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lib-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 15px; }
.lib-item:hover { background: var(--card-2); color: var(--text); }
.lib-item.active { background: var(--card-2); color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.lib-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex-shrink: 0; }
.lib-sub { margin: 4px 0 6px 14px !important; padding-left: 10px !important; border-left: 1px solid var(--line); }
.lib-sub a { display: block; padding: 5px 8px; font-size: 14px; color: var(--muted); text-decoration: none; border-radius: 8px; }
.lib-sub a:hover { color: var(--text); background: var(--card-2); }
.lib-content { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lib-content:focus { outline: none; }
.lib-content h1 { font-size: 30px; }
.lib-summary { font-size: 17px; color: var(--text-2); }
.lib-content .guide-sec { scroll-margin-top: 16px; }
.lib-content .guide-sec:focus { outline: none; }
.lib-content .guide-sec h2 { font-size: 21px; color: var(--text); }
.lib-content .guide-sec p, .lib-content .guide-tips { font-size: 16px; line-height: 1.6; }
.lib-table th[scope="row"] { text-align: left; font-weight: 500; color: var(--text-2); }
.lib-table td:nth-child(2) { color: var(--text); font-weight: 600; }
.lib-toc { gap: 6px; }
.lib-toc .chip-btn { font-size: 13px; min-height: 34px; padding: 6px 12px; }
.lib-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.lib-page { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text); background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 600; transition: transform .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease); }
.lib-page:hover { border-color: #3A4350; color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .lib-page:hover { transform: none; } }
.lib-page.next { text-align: right; }
@media (min-width: 900px) {
  .lib { grid-template-columns: 260px 1fr; gap: 28px; }
  .lib-nav { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding-right: 4px; }
  .lib-select, .lib-toc { display: none; }
  .lib-groups { display: block; }
  .lib-content { padding: 32px; }
}

/* App shell: report with a sidebar menu */
body.app-mode .wrap { max-width: 1320px; }
.app { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.app-main { min-width: 0; }
.app-main:focus { outline: none; }
.view { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.view-head { display: flex; flex-direction: column; gap: 6px; }
.view-head h1 { font-size: clamp(28px, 4vw, 36px); }
.view-head p { color: var(--text-2); font-size: 16px; }
.ps-title { font-size: 26px; }
.plan-title h2 { font-size: 24px; }
.wf-head { font-size: 20px; }

.app-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 600; cursor: pointer; }
.menu-btn:hover { border-color: #3A4350; }
.app-bar-title { font-family: var(--display); font-weight: 700; font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; padding: 16px 12px; overflow-y: auto; transform: translateX(-105%); transition: transform 0.2s ease; visibility: hidden; }
.sidebar.open { transform: none; visibility: visible; }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(5, 7, 10, 0.65); }
body.drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }

.sb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); }
.sb-player { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sb-player strong { font-family: var(--display); font-size: 17px; overflow-wrap: anywhere; }
.sb-close { width: 36px; height: 36px; flex-shrink: 0; }
.sb-nav { display: flex; flex-direction: column; gap: 18px; }
.sb-group { display: flex; flex-direction: column; gap: 4px; }
.sb-group-name { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 0 10px 2px; }
.sb-group-name .tag { text-transform: none; letter-spacing: 0; font-size: 11px; padding: 1px 8px; }
.sb-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.sb-sub-head { font-size: 12px; color: var(--muted-2); padding: 8px 10px 2px; }
.sb-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 38px; padding: 7px 10px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 15px; line-height: 1.3; transition: background-color .15s var(--ease), color .15s var(--ease); }
.sb-link:hover { background: var(--card-2); color: var(--text); }
.sb-link.active { background: var(--card-2); color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.sb-link.locked { color: var(--muted); }
.sb-link.locked:hover { color: var(--text-2); }
.sb-lock { display: inline-flex; color: var(--muted); flex-shrink: 0; }
.sb-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex-shrink: 0; }
.sb-sections { list-style: none; margin: 2px 0 6px 14px !important; padding: 0 0 0 10px !important; border-left: 1px solid var(--line); }
.sb-sections a { display: block; padding: 5px 8px; font-size: 13.5px; color: var(--muted); text-decoration: none; border-radius: 8px; }
.sb-sections a:hover { color: var(--text); background: var(--card-2); }
.sb-new { margin-top: auto; padding: 12px 10px 4px; font-size: 14px; border-top: 1px solid var(--line); }

@media (min-width: 900px) {
  .app { grid-template-columns: 272px minmax(0, 1fr); gap: 40px; }
  .app-bar, .scrim, .sb-close { display: none !important; }
  .sidebar { position: sticky; top: 16px; z-index: auto; width: auto; max-height: calc(100vh - 32px); transform: none; visibility: visible; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: none; }
}

.locked-view { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; max-width: 720px; }
.locked-view h1 { font-size: clamp(26px, 4vw, 34px); }
.locked-view > p { color: var(--text-2); }
.big-lock { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.big-lock svg { width: 20px; height: 20px; }
.locked-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.locked-list li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.guide-body { display: flex; flex-direction: column; gap: 16px; }
.guide-body .guide-sec:first-child { border-top: 0; padding-top: 0; }
.lib-content { gap: 16px; }
.lib-content h1 { font-size: clamp(28px, 4vw, 36px); }
.lib-toc { display: flex; }
@media (min-width: 900px) { .lib-toc { display: none; } }

/* Glossary: underlined terms, popup and diagrams */
.term { background: none; border: 0; border-bottom: 1px dotted var(--accent); padding: 0; color: inherit; font: inherit; cursor: help; }
.term:hover { color: var(--accent); }
.term:focus-visible { outline-offset: 1px; }
.diagram { margin: 4px 0 8px; display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.diagram svg { width: 100%; height: auto; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; }
.diagram figcaption { font-size: 14px; color: var(--text-2); }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.term-card { display: flex; flex-direction: column; gap: 10px; }
.term-card[hidden] { display: none; }
.term-card h2 { font-size: 19px; }
.term-card p { font-size: 15px; color: var(--text-2); }
.term-example { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
#term-content { display: flex; flex-direction: column; gap: 10px; }
#term-content h2 { font-size: 22px; }

.checkout-status { position: relative; z-index: 1; }

#premium, #about { scroll-margin-top: 84px; }

.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.compare-table th[scope="row"] { text-align: left; font-weight: 500; color: var(--text-2); }
.compare-table thead th { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.compare-table thead th:nth-child(3) { color: var(--accent); }
.compare-table td.yes { color: var(--good); font-weight: 600; }
.compare-table td.no { color: var(--muted-2); }

/* Subscribe card on the landing page (replaces the waitlist as the primary premium CTA) */
.subscribe-card { display: flex; flex-direction: column; gap: 14px; }
.subscribe-card .btn { width: 100%; }
.subscribe-card .link-btn { align-self: flex-start; }
#subscribe-embed-wrap { display: flex; flex-direction: column; gap: 10px; }
#subscribe-embed { min-height: 420px; border-radius: 10px; overflow: hidden; }
#subscribe-embed-back { align-self: flex-start; }
#subscribe-done .code-box { margin: 6px 0; }
#already-premium { display: flex; flex-direction: column; gap: 10px; }
.waitlist-toggle { margin-top: 4px; }
.waitlist-toggle summary { cursor: pointer; color: var(--link); font-size: 14px; list-style: none; }
.waitlist-toggle summary::-webkit-details-marker { display: none; }
.waitlist-toggle[open] summary { margin-bottom: 14px; }
.waitlist-toggle .waitlist { display: flex; flex-direction: column; gap: 12px; }
