:root {
  --ink: #17211f;
  --muted: #586460;
  --line: #d8dfda;
  --paper: #f6f3ea;
  --panel: #ffffff;
  --green: #0f7a5a;
  --green-dark: #07543e;
  --amber: #b46318;
  --blue: #286a94;
  --rose: #9b4052;
  --shadow: 0 24px 70px rgba(23, 33, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(23, 33, 31, 0.1);
  background: rgba(246, 243, 234, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 9px;
  color: #fff;
  background:
    linear-gradient(145deg, #17233a 0%, #0b1628 48%, #111c31 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 0 22px rgba(56, 189, 248, 0.12);
  font-size: 0;
}

.brand-mark::before {
  content: "B";
  position: relative;
  z-index: 1;
  color: #f8fbff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 6px;
  width: 15px;
  height: 8px;
  border-right: 2px solid #38bdf8;
  border-bottom: 2px solid #f2b84b;
  border-radius: 0 0 7px 0;
  transform: skewX(-18deg);
  opacity: 0.92;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: clamp(46px, 7vw, 92px) clamp(20px, 5vw, 72px) 76px;
}

.seo-hero {
  display: grid;
  align-items: center;
  min-height: 62vh;
  padding: clamp(58px, 8vw, 110px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(246, 243, 234, 0.98), rgba(246, 243, 234, 0.86)),
    url("/assets/brieriq-market-texture.svg");
  background-size: cover;
}

.hero-copy {
  max-width: 680px;
}

.seo-copy {
  max-width: 940px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.4rem, 15vw, 9.8rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.lede {
  max-width: 610px;
  color: #33413d;
  font-size: clamp(1.12rem, 2.2vw, 1.42rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  color: var(--green-dark);
  background: transparent;
}

.analytics-preview {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(23, 33, 31, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    url("/assets/brieriq-market-texture.svg");
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero-disclaimer,
.sample-label,
.pricing-disclaimer {
  color: var(--green-dark);
  font-weight: 800;
}

.hero-disclaimer {
  max-width: 580px;
  margin: 16px 0 0;
  font-size: 0.94rem;
  line-height: 1.45;
}

.sample-label {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 122, 90, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
}

.analytics-app .sample-label {
  align-items: center;
  width: fit-content;
  color: var(--app-secondary);
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preview-toolbar,
.watchlist {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.score-grid article,
.feature-grid article,
.workflow article,
.waitlist-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.score-grid article {
  min-height: 128px;
  padding: 16px;
}

.label,
.delta {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.score-grid strong {
  display: block;
  margin: 14px 0 10px;
  font-size: clamp(1.55rem, 3.5vw, 2.3rem);
  line-height: 1;
}

.delta.good {
  color: var(--green);
  font-weight: 800;
}

.delta.neutral {
  color: var(--blue);
  font-weight: 800;
}

.chart-card {
  position: relative;
  height: min(34vw, 300px);
  min-height: 220px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(23, 33, 31, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 31, 0.07) 1px, transparent 1px),
    #fcfbf7;
  background-size: 100% 25%, 16.666% 100%, auto;
}

.chart-line {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 5px;
  border-radius: 999px;
  transform-origin: left center;
}

.line-a {
  top: 34%;
  background: var(--green);
  transform: rotate(-7deg);
}

.line-b {
  top: 55%;
  background: var(--amber);
  transform: rotate(5deg);
}

.line-c {
  top: 72%;
  background: var(--rose);
  transform: rotate(-2deg);
}

.chart-axis {
  position: absolute;
  inset: auto 8% 18% 8%;
  height: 1px;
  background: rgba(23, 33, 31, 0.28);
}

.watchlist {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
}

.dot.green {
  background: var(--green);
}

.dot.amber {
  background: var(--amber);
}

.dot.blue {
  background: var(--blue);
}

.section {
  padding: 84px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.feature-grid,
.workflow,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.workflow article,
.pricing-card,
.faq-list article,
.text-panel {
  padding: 24px;
}

.feature-grid p,
.workflow p,
.form-copy p,
.section-heading p,
.limited-section p,
.pricing-card p,
.faq-list p,
.text-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.workflow-section {
  background: #e8efe9;
}

.workflow-pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 22px;
  padding: 6px 9px;
  border: 1px solid rgba(15, 122, 90, 0.18);
  border-radius: 8px;
  color: var(--green);
  background: rgba(15, 122, 90, 0.08);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.membership-section {
  background: #f8fbf6;
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.pricing-card.featured {
  border-color: rgba(15, 122, 90, 0.45);
  box-shadow: 0 18px 48px rgba(23, 33, 31, 0.1);
}

.pricing-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.badge {
  flex: none;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--green-dark);
  background: rgba(15, 122, 90, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
}

.price {
  margin: 18px 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.price span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 20px;
  color: #33413d;
  line-height: 1.45;
}

.pricing-card .button {
  margin-top: auto;
}

.pricing-disclaimer {
  margin: 20px 0 0;
  line-height: 1.5;
}

.limited-section {
  background: #17211f;
  color: #fff;
}

.limited-section .eyebrow,
.limited-section p {
  color: #dbe8df;
}

.limited-section p {
  max-width: 840px;
  font-size: 1.08rem;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 820px;
}

.faq-list article,
.text-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.text-panel {
  max-width: 920px;
}

.text-panel p:last-child,
.faq-list p:last-child {
  margin-bottom: 0;
}

.legal-copy {
  display: grid;
  gap: 12px;
}

.legal-copy h2 {
  margin: 8px 0 0;
  font-size: 1.18rem;
}

.legal-copy a {
  color: var(--green-dark);
  font-weight: 800;
}

.document-page {
  color: #e5eef8;
  background:
    radial-gradient(circle at 18% -10%, rgba(79, 70, 229, 0.18), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #0b1628 54%, #07111f 100%);
}

.document-page .site-header {
  border-bottom-color: rgba(148, 163, 184, 0.18);
  background: rgba(7, 17, 31, 0.84);
}

.document-page .site-header nav a,
.document-page .brand {
  color: #e5eef8;
}

.document-hero {
  max-width: 1040px;
  padding: 46px clamp(20px, 5vw, 72px) 28px;
}

.document-hero .eyebrow {
  color: #93c5fd;
}

.document-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 0.98;
}

.document-hero p {
  max-width: 820px;
  color: #94a3b8;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
}

.document-updated,
.document-disclaimer,
.muted-note {
  color: #64748b;
  font-size: 0.92rem;
}

.document-disclaimer {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 10px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
}

.document-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 920px);
  gap: 28px;
  align-items: start;
  max-width: 1220px;
  padding: 8px clamp(20px, 5vw, 72px) 70px;
}

.document-index {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #263248;
  border-radius: 16px;
  background: rgba(17, 28, 49, 0.72);
}

.document-index span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-index a,
.document-card a {
  color: #93c5fd;
  font-weight: 800;
  text-decoration: none;
}

.document-index a:hover,
.document-card a:hover {
  text-decoration: underline;
}

.document-content {
  display: grid;
  gap: 18px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.document-card {
  padding: 22px;
  border: 1px solid #263248;
  border-radius: 18px;
  background: rgba(17, 28, 49, 0.84);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.14);
}

.document-card.legal-review-note {
  border-color: rgba(245, 158, 11, 0.26);
  background: rgba(245, 158, 11, 0.08);
}

.document-card h2 {
  margin: 0 0 10px;
  color: #e5eef8;
  font-size: 1.1rem;
  line-height: 1.25;
}

.document-card h2:not(:first-child) {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.document-card p {
  margin-bottom: 12px;
  color: #94a3b8;
  line-height: 1.7;
}

.document-card p:last-child {
  margin-bottom: 0;
}

.document-card strong {
  color: #dbeafe;
}

.document-page .site-footer {
  color: #94a3b8;
  border-top-color: rgba(148, 163, 184, 0.18);
  background: #07111f;
}

.document-page .site-footer a {
  color: #93c5fd;
}

.document-page .footer-legal {
  color: #64748b;
  border-top-color: rgba(148, 163, 184, 0.14);
}

.early-access {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.72fr);
  gap: clamp(26px, 6vw, 84px);
  align-items: start;
}

.waitlist-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 30px);
}

label {
  display: grid;
  gap: 8px;
  color: #33413d;
  font-size: 0.92rem;
  font-weight: 800;
}

label span {
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c5cec8;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 122, 90, 0.2);
  border-color: var(--green);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 800;
}

.fallback-contact {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.fallback-contact a {
  color: var(--green-dark);
  font-weight: 800;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

/* Analytics app foundation */
.analytics-app {
  --app-bg: #07111f;
  --surface: #0b1628;
  --surface-elevated: #111c31;
  --surface-floating: #17233a;
  --app-border: #263248;
  --app-text: #e5eef8;
  --app-secondary: #94a3b8;
  --app-muted: #64748b;
  --indigo: #7c8cff;
  --amber-app: #f2b84b;
  --blue-app: #38bdf8;
  --green-app: #22c55e;
  --red-app: #ef4444;
  min-height: 100vh;
  color: var(--app-text);
  background: var(--app-bg);
  font-variant-numeric: tabular-nums;
}

.analytics-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.analytics-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid var(--app-border);
  background: #081321;
}

.analytics-sidebar .brand {
  color: var(--app-text);
}

.analytics-sidebar nav {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  font-size: 0.9rem;
}

.analytics-sidebar a {
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--app-secondary);
  text-decoration: none;
}

.analytics-sidebar a:hover,
.analytics-sidebar a.active {
  color: #fff;
  background: rgba(124, 140, 255, 0.14);
}

.analytics-main {
  min-width: 0;
}

.top-utility-bar {
  position: sticky;
  top: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--app-border);
  background: rgba(7, 17, 31, 0.9);
  backdrop-filter: blur(14px);
}

.utility-search,
.market-url-input {
  min-height: 40px;
  border-color: var(--app-border);
  color: var(--app-text);
  background: var(--surface);
}

.icon-placeholder,
.account-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  color: var(--app-secondary);
  background: var(--surface);
}

.analytics-content {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 34px) 48px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.page-header h1 {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.page-header p,
.analytics-card p,
.metric-explanation p,
.empty-state p {
  color: var(--app-secondary);
  line-height: 1.55;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.span-3 {
  grid-column: span 3;
}

.span-2 {
  grid-column: span 2;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-9 {
  grid-column: span 9;
}

.span-12 {
  grid-column: span 12;
}

.analytics-card,
.kpi-card,
.metric-explanation,
.data-table-wrap,
.empty-state {
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--surface);
}

.analytics-card,
.kpi-card,
.empty-state {
  padding: 18px;
}

.kpi-card {
  min-height: 122px;
}

.micro-label {
  display: block;
  margin-bottom: 9px;
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kpi-card strong {
  display: block;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1;
}

.kpi-card small {
  display: block;
  margin-top: 10px;
  color: var(--app-secondary);
}

.status-badge,
.grade-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  color: var(--app-secondary);
  background: var(--surface-elevated);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.badge-amber,
.grade-badge {
  color: var(--amber-app);
  border-color: rgba(242, 184, 75, 0.35);
  background: rgba(242, 184, 75, 0.1);
}

.badge-blue {
  color: var(--blue-app);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
}

.badge-red {
  color: var(--red-app);
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
}

.badge-green {
  color: var(--green-app);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

.metric-explanation {
  padding: 16px;
}

.metric-explanation-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.metric-explanation strong {
  display: block;
  color: #fff;
  font-size: 1.75rem;
}

.metric-relevance {
  padding-left: 12px;
  border-left: 2px solid rgba(56, 189, 248, 0.5);
}

.metric-amber .metric-relevance {
  border-left-color: rgba(242, 184, 75, 0.65);
}

.metric-explanation details {
  margin-top: 12px;
  color: var(--app-secondary);
}

.metric-explanation summary {
  cursor: pointer;
  color: var(--blue-app);
  font-weight: 800;
}

.meaning-list {
  display: grid;
  gap: 10px;
}

.meaning-bullet {
  display: grid;
  grid-template-columns: 10px auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--app-secondary);
}

.meaning-bullet span {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--app-muted);
}

.meaning-bullet strong {
  color: var(--app-text);
}

.meaning-bullet em {
  font-style: normal;
}

.meaning-amber span {
  background: var(--amber-app);
}

.meaning-blue span {
  background: var(--blue-app);
}

.meaning-green span {
  background: var(--green-app);
}

.meaning-red span {
  background: var(--red-app);
}

.meaning-indigo span {
  background: var(--indigo);
}

.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--app-border);
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  color: var(--app-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.data-table td {
  color: var(--app-secondary);
}

.data-table strong {
  color: var(--app-text);
}

.chart-placeholder,
.probability-chart {
  min-height: 300px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background:
    linear-gradient(rgba(229, 238, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 238, 248, 0.06) 1px, transparent 1px),
    var(--surface-elevated);
  background-size: 100% 25%, 12.5% 100%, auto;
}

.probability-chart {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 18px;
}

.probability-bar {
  display: grid;
  grid-template-columns: 150px 1fr 54px;
  gap: 12px;
  align-items: center;
  color: var(--app-secondary);
}

.probability-bar div {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-floating);
}

.probability-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--indigo);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filters input,
.filters select {
  width: auto;
  min-width: 170px;
  border-color: var(--app-border);
  color: var(--app-text);
  background: var(--surface);
}

.app-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--indigo);
  border-radius: 8px;
  color: #fff;
  background: rgba(124, 140, 255, 0.22);
  font-weight: 900;
  text-decoration: none;
}

.education-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
  color: var(--app-secondary);
}

.dashboard-mobile-nav {
  display: none;
}

@media (max-width: 980px) {
  .analytics-shell {
    grid-template-columns: 1fr;
  }

  .analytics-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--app-border);
  }

  .analytics-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-utility-bar {
    grid-template-columns: 1fr;
  }

  .span-3,
  .span-2,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-9,
  .span-12 {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .analytics-content {
    padding-inline: 14px;
  }

  .page-header {
    display: block;
  }

  .probability-bar {
    grid-template-columns: 1fr;
  }
}

/* Focused analytics app polish */
.analytics-app {
  --app-bg: #07111f;
  --surface: #0b1628;
  --surface-elevated: #111c31;
  --surface-floating: #17233a;
  --app-border: #263248;
  --app-border-soft: rgba(148, 163, 184, 0.16);
  --app-text: #e5eef8;
  --app-secondary: #94a3b8;
  --app-muted: #64748b;
  --indigo: #7c8cff;
  --indigo-strong: #6675f6;
  --amber-app: #f2b84b;
  --blue-app: #38bdf8;
  --green-app: #22c55e;
  --red-app: #ef4444;
  color: var(--app-text);
  background:
    radial-gradient(circle at 18% -18%, rgba(124, 140, 255, 0.14), transparent 34rem),
    linear-gradient(180deg, #081321 0%, var(--app-bg) 42rem);
}

@supports selector(:has(*)) {
  html:has(body.analytics-app) {
    background: #07111f;
  }
}

html:has(body.home-app) {
  background: #07111f;
}

.analytics-app *:focus-visible {
  outline: 2px solid rgba(124, 140, 255, 0.95);
  outline-offset: 3px;
}

.analytics-app h1,
.analytics-app h2,
.analytics-app h3 {
  color: var(--app-text);
  letter-spacing: 0;
}

.analytics-app h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 0.98;
}

.analytics-app h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.analytics-app h3 {
  font-size: 1.05rem;
}

.analytics-shell {
  grid-template-columns: 236px minmax(0, 1fr);
}

.analytics-sidebar {
  padding: 22px 14px;
  background:
    linear-gradient(180deg, rgba(17, 28, 49, 0.96), rgba(8, 19, 33, 0.96)),
    var(--surface);
  box-shadow: 18px 0 40px rgba(0, 0, 0, 0.12);
}

.analytics-sidebar .brand {
  min-height: 42px;
  padding: 0 8px;
  color: var(--app-text);
  font-size: 1.02rem;
}

.analytics-sidebar .brand-mark {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.analytics-sidebar nav {
  gap: 4px;
  margin-top: 30px;
}

.analytics-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--app-secondary);
  font-size: 0.88rem;
  font-weight: 750;
}

.analytics-sidebar a:hover {
  color: var(--app-text);
  border-color: var(--app-border-soft);
  background: rgba(229, 238, 248, 0.045);
}

.analytics-sidebar a.active {
  color: #fff;
  border-color: rgba(124, 140, 255, 0.34);
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.22), rgba(56, 189, 248, 0.07));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.analytics-sidebar a span:first-child {
  min-width: 0;
}

.sidebar-nav-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: var(--app-muted);
  background: rgba(148, 163, 184, 0.08);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analytics-sidebar-footer {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 14px 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.analytics-sidebar-account {
  display: grid;
  gap: 4px;
}

.analytics-sidebar-account strong {
  color: var(--app-text);
  font-size: 0.9rem;
  line-height: 1.35;
  word-break: break-word;
}

.analytics-sidebar-account small {
  color: var(--app-secondary);
  font-size: 0.78rem;
}

.analytics-sidebar-footer-links {
  display: grid;
  gap: 8px;
}

.analytics-sidebar-footer-links a {
  justify-content: center;
}

.sidebar-logout-button {
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.top-utility-bar {
  min-height: 66px;
  padding: 12px 32px;
  background: rgba(7, 17, 31, 0.86);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025) inset;
}

.analytics-content {
  width: min(100%, 1440px);
  padding: 32px clamp(16px, 2.6vw, 32px) 56px;
}

.page-header {
  align-items: flex-end;
  margin-bottom: 28px;
}

.page-header p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--app-secondary);
  font-size: 1rem;
}

.analytics-grid {
  gap: 18px;
}

.analytics-card,
.kpi-card,
.metric-explanation,
.data-table-wrap,
.empty-state,
.pricing-card {
  border: 1px solid var(--app-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--surface);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.16);
}

.analytics-card,
.kpi-card,
.empty-state,
.pricing-card {
  padding: 22px;
}

.analytics-card {
  min-width: 0;
}

.kpi-card {
  position: relative;
  min-height: 134px;
  overflow: hidden;
}

.kpi-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 72px;
  height: 24px;
  border-bottom: 2px solid rgba(124, 140, 255, 0.42);
  border-radius: 45%;
  opacity: 0.72;
}

.kpi-card strong,
.analytics-card > strong {
  display: block;
  color: #fff;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1;
}

.kpi-card small {
  max-width: 80%;
  color: var(--app-secondary);
  font-size: 0.8rem;
}

.micro-label {
  margin-bottom: 10px;
  color: var(--app-muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.analytics-app input,
.analytics-app select,
.analytics-app textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  color: var(--app-text);
  background: rgba(17, 28, 49, 0.86);
  font: inherit;
  font-size: 0.92rem;
}

.analytics-app textarea {
  min-height: 112px;
  padding-block: 12px;
  resize: vertical;
}

.analytics-app input::placeholder,
.analytics-app textarea::placeholder {
  color: var(--app-muted);
}

.analytics-app input:focus,
.analytics-app select:focus,
.analytics-app textarea:focus {
  border-color: rgba(124, 140, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(124, 140, 255, 0.14);
  outline: 0;
}

.analytics-app label {
  display: grid;
  gap: 8px;
  color: var(--app-secondary);
  font-size: 0.82rem;
  font-weight: 800;
}

.utility-search,
.market-url-input {
  min-height: 46px;
  border-radius: 999px;
}

.icon-placeholder,
.account-placeholder {
  min-height: 42px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.app-cta,
.analytics-app .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 900;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.app-cta,
.analytics-app .button.primary {
  color: #fff;
  border-color: rgba(124, 140, 255, 0.9);
  background: linear-gradient(180deg, var(--indigo), var(--indigo-strong));
}

.app-cta:hover,
.analytics-app .button.primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #8b98ff, var(--indigo-strong));
}

.analytics-app .button.secondary {
  color: var(--app-text);
  border-color: var(--app-border);
  background: rgba(17, 28, 49, 0.8);
}

.analytics-app .button.secondary:hover {
  border-color: rgba(124, 140, 255, 0.45);
  background: rgba(23, 35, 58, 0.96);
}

.filters {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--app-border);
  border-radius: 18px;
  background: rgba(11, 22, 40, 0.86);
}

.filters input,
.filters select {
  flex: 1 1 170px;
  width: auto;
}

.data-table-wrap {
  overflow-x: auto;
  background: var(--surface);
}

.table-scroll-hint {
  margin: 0 0 12px;
  color: var(--app-muted);
  font-size: 0.78rem;
}

.data-table {
  min-width: 820px;
  font-size: 0.84rem;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(38, 50, 72, 0.82);
}

.data-table th {
  color: var(--app-muted);
  background: rgba(17, 28, 49, 0.78);
  font-size: 0.68rem;
  font-weight: 900;
}

.data-table tbody tr:hover {
  background: rgba(124, 140, 255, 0.055);
}

.data-table th:nth-child(n + 3),
.data-table td:nth-child(n + 3) {
  text-align: right;
}

.data-table th:last-child,
.data-table td:last-child {
  text-align: left;
}

.status-badge,
.grade-badge {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.status-badge {
  color: var(--app-secondary);
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(100, 116, 139, 0.1);
}

.meaning-list {
  gap: 12px;
}

.meaning-bullet {
  grid-template-columns: 10px minmax(92px, auto) minmax(0, 1fr);
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(38, 50, 72, 0.72);
  border-radius: 14px;
  background: rgba(17, 28, 49, 0.56);
}

.meaning-bullet span {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  box-shadow: 0 0 18px currentColor;
}

.meaning-bullet strong {
  color: var(--app-text);
  font-size: 0.86rem;
}

.meaning-bullet em {
  color: var(--app-secondary);
  line-height: 1.45;
}

.analytics-card.span-3 .meaning-bullet {
  grid-template-columns: 10px 1fr;
}

.analytics-card.span-3 .meaning-bullet em {
  grid-column: 2;
}

.resolved-flags-section {
  margin-top: 18px;
}

.resolved-flag-card {
  display: grid;
  gap: 18px;
}

.resolved-flag-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.resolved-flag-card h2 {
  margin: 0;
  color: var(--app-text);
  font-size: 1.08rem;
  line-height: 1.25;
}

.resolved-flag-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.resolved-flag-meta div {
  padding: 10px;
  border: 1px solid rgba(38, 50, 72, 0.78);
  border-radius: 12px;
  background: rgba(17, 28, 49, 0.52);
}

.resolved-flag-meta dt {
  margin-bottom: 4px;
  color: var(--app-muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.resolved-flag-meta dd {
  margin: 0;
  color: var(--app-text);
  font-variant-numeric: tabular-nums;
}

.resolved-flag-methodology {
  justify-self: start;
}

.resolved-flags-table {
  min-width: 1080px;
}

.metric-explanation {
  padding: 18px;
}

.metric-explanation-head {
  margin-bottom: 14px;
}

.metric-explanation strong {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.metric-explanation p {
  margin-bottom: 12px;
}

.metric-relevance {
  padding: 12px 14px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-left: 3px solid rgba(56, 189, 248, 0.72);
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.06);
}

.metric-amber .metric-relevance {
  border-color: rgba(242, 184, 75, 0.22);
  border-left-color: rgba(242, 184, 75, 0.78);
  background: rgba(242, 184, 75, 0.07);
}

.metric-explanation details {
  padding-top: 4px;
}

.metric-explanation summary {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  color: var(--blue-app);
}

.metric-explanation details p {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid rgba(38, 50, 72, 0.75);
  border-radius: 12px;
  background: rgba(7, 17, 31, 0.5);
}

.chart-placeholder,
.probability-chart {
  min-height: 300px;
  border-radius: 16px;
  background:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 72% 20%, rgba(124, 140, 255, 0.18), transparent 18rem),
    var(--surface-elevated);
  background-size: 100% 25%, 12.5% 100%, auto, auto;
}

.chart-placeholder::after {
  content: "";
  display: block;
  width: 78%;
  height: 58%;
  margin: 72px auto 0;
  border-bottom: 3px solid rgba(124, 140, 255, 0.75);
  border-left: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 42% 52% 0 12%;
  transform: skewX(-12deg);
}

.pricing-card {
  color: var(--app-secondary);
}

.pricing-card.featured {
  border-color: rgba(124, 140, 255, 0.52);
  background:
    linear-gradient(180deg, rgba(124, 140, 255, 0.1), rgba(124, 140, 255, 0.02)),
    var(--surface);
}

.pricing-card .price {
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 900;
}

.pricing-card .price span {
  color: var(--app-secondary);
  font-size: 0.95rem;
}

.pricing-card li {
  margin-bottom: 8px;
}

.subscription-plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.account-page-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.subscription-plan-card ul {
  margin-bottom: 0;
}

.plan-card-actions {
  margin-top: auto;
  padding-top: 18px;
}

.plan-card-actions .button,
.plan-card-actions .app-cta {
  width: 100%;
}

.empty-state {
  max-width: 760px;
  margin: 56px auto;
  text-align: left;
}

.empty-state h1 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

[data-account-email]:empty,
[data-account-plan]:empty,
[data-subscription-status]:empty,
[data-current-period-end]:empty,
[data-loading-value] {
  display: inline-block;
  min-width: 96px;
  min-height: 1em;
  border-radius: 999px;
  color: transparent;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.24), rgba(148, 163, 184, 0.14));
}

.form-status {
  color: var(--app-secondary);
}

.form-status-error {
  color: var(--red-app);
}

.compliance-note {
  margin-top: 28px;
  color: rgba(148, 163, 184, 0.78);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.55;
}

.analytics-app .compliance-note {
  min-height: 0;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: rgba(148, 163, 184, 0.68);
  font-size: 0.78rem;
  font-weight: 500;
}

.account-helper-text {
  margin-top: 14px;
  color: rgba(148, 163, 184, 0.78);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.55;
}

.support-page .page-header {
  max-width: 900px;
}

.support-form {
  display: grid;
  gap: 16px;
}

.support-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.support-form label span {
  color: var(--app-muted);
  font-weight: 700;
}

.support-form textarea {
  min-height: 180px;
}

.support-sidebar {
  align-self: start;
}

.account-helper-text a,
.support-page a {
  color: var(--blue-app);
  font-weight: 900;
  text-decoration: none;
}

.account-helper-text a:hover,
.support-page a:hover {
  text-decoration: underline;
}

.admin-page .kpi-grid {
  margin-bottom: 24px;
}

.admin-section {
  display: grid;
  gap: 22px;
}

.admin-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 0;
}

.admin-section-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.admin-table {
  min-width: 1080px;
}

.admin-table td {
  vertical-align: top;
}

.admin-action-button {
  min-height: 30px;
  margin: 0 6px 6px 0;
  padding: 0 10px;
  border: 1px solid rgba(124, 140, 255, 0.38);
  border-radius: 999px;
  color: var(--app-text);
  background: rgba(17, 28, 49, 0.86);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: capitalize;
  cursor: pointer;
}

.admin-action-button:hover {
  border-color: rgba(124, 140, 255, 0.72);
  background: rgba(124, 140, 255, 0.14);
}

.admin-action-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.admin-empty {
  padding: 18px;
  color: var(--app-secondary);
}

.sports-watch-board-module {
  margin: 18px 0 24px;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(8, 19, 33, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.sports-watch-module-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.82);
}

.sports-watch-module-header h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.sports-watch-module-header p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #cbd5e1;
}

.sports-watch-module-status,
.sports-watch-safety-row,
.sports-watch-badge-row,
.sports-watch-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sports-watch-module-status {
  justify-content: flex-end;
  min-width: 260px;
}

.sports-watch-board-module .status-badge {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(30, 64, 175, 0.22);
}

.sports-watch-board-module .micro-label {
  color: #93c5fd;
}

.sports-watch-safety-row {
  padding: 18px 22px 0;
}

.sports-watch-summary-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  gap: 10px;
  padding: 18px 22px 22px;
}

.sports-watch-summary-card,
.sports-watch-item-card,
.sports-watch-parent-card,
.sports-watch-hidden-card,
.sports-watch-diagnostics,
.sports-watch-artifact-meta {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(17, 28, 49, 0.92);
}

.sports-watch-summary-card {
  min-height: 104px;
  padding: 14px;
}

.sports-watch-summary-card strong {
  display: block;
  color: #f8fbff;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  line-height: 1.05;
}

.sports-watch-summary-card small {
  display: block;
  margin-top: 8px;
  color: #cbd5e1;
}

.sports-watch-section {
  padding: 0 22px 24px;
}

.sports-watch-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.sports-watch-section-heading h3,
.sports-watch-item-card h3,
.sports-watch-parent-card h3,
.sports-watch-hidden-card h3 {
  margin: 0;
  color: #f8fbff;
}

.sports-watch-section-heading > span {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 800;
}

.sports-watch-item-card {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 16px;
}

.sports-watch-rank {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(56, 189, 248, 0.14);
  font-weight: 950;
}

.sports-watch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sports-watch-item-title-row,
.sports-watch-parent-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sports-watch-item-title-row p,
.sports-watch-parent-card p,
.sports-watch-hidden-card p,
.sports-watch-rationale,
.sports-watch-meta {
  margin: 6px 0 0;
  color: #cbd5e1;
}

.sports-watch-score,
.sports-watch-parent-heading strong,
.sports-watch-hidden-card > strong {
  color: #facc15;
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sports-watch-badge-row {
  margin-top: 12px;
}

.sports-watch-lean-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.56);
  font-size: 0.86rem;
  line-height: 1.45;
}

.sports-watch-lean-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(96, 165, 250, 0.36);
  border-radius: 8px;
  color: #dbeafe;
  background: rgba(30, 64, 175, 0.18);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sports-watch-lean-badge.favorite-lean {
  border-color: rgba(99, 102, 241, 0.46);
  color: #c7d2fe;
  background: rgba(67, 56, 202, 0.24);
}

.sports-watch-lean-badge.volatility-watch {
  border-color: rgba(245, 158, 11, 0.42);
  color: #fde68a;
  background: rgba(120, 53, 15, 0.2);
}

.sports-watch-lean-badge.no-lean-yet {
  border-color: rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
  background: rgba(71, 85, 105, 0.18);
}

.sports-watch-reasons {
  margin-top: 12px;
}

.sports-watch-reasons span {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

.sports-watch-child-updates {
  margin-top: 12px;
  color: #e5eef8;
}

.sports-watch-child-updates summary {
  cursor: pointer;
  color: #bfdbfe;
  font-weight: 900;
}

.sports-watch-child-updates ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 18px;
}

.sports-watch-child-updates li span {
  display: block;
  color: #cbd5e1;
  font-size: 0.86rem;
}

.sports-watch-parent-grid,
.sports-watch-hidden-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sports-watch-parent-card,
.sports-watch-hidden-card {
  padding: 16px;
}

.sports-watch-hidden-card {
  display: grid;
  gap: 8px;
}

.sports-watch-hidden-card h3 {
  font-size: 1rem;
}

.sports-watch-hidden-card small {
  color: #94a3b8;
  font-weight: 800;
}

.sports-watch-secondary {
  padding-bottom: 22px;
}

.sports-watch-diagnostics {
  padding: 12px 14px;
  color: #cbd5e1;
}

.sports-watch-diagnostics summary {
  cursor: pointer;
  color: #bfdbfe;
  font-weight: 900;
}

.sports-watch-diagnostics div,
.sports-watch-artifact-meta {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.sports-watch-artifact-meta {
  padding: 12px 14px;
  color: #cbd5e1;
}

.sports-watch-artifact-meta strong,
.sports-watch-diagnostics code {
  color: #f8fbff;
}

.watched-opportunities-page {
  display: grid;
  gap: 20px;
}

.watched-opportunities-hero {
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 19, 33, 0.98)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 42%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  padding: clamp(24px, 4vw, 38px);
}

.watched-opportunities-hero h1 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.watched-opportunities-hero p {
  max-width: 820px;
  margin: 14px 0 0;
  color: #dbeafe;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.watched-opportunities-helper {
  color: #facc15 !important;
  font-weight: 850;
}

.watched-opportunities-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: #cbd5e1;
}

.watched-opportunities-module {
  margin-top: 0;
}

.watched-opportunities-module .sports-watch-summary-strip {
  padding-top: 22px;
  padding-bottom: 18px;
}

.watched-terminal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.72fr);
  gap: 0;
  align-items: start;
}

.watched-terminal-main {
  min-width: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
}

.watched-terminal-rail {
  min-width: 0;
}

.watched-terminal-rail .sports-watch-section {
  padding-left: 18px;
}

.watched-terminal-rail .sports-watch-section-heading {
  margin-bottom: 8px;
}

.watched-terminal-rail .sports-watch-section-heading h2 {
  font-size: 1rem;
}

.watched-rail-subtitle {
  margin: -2px 0 12px;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.watched-terminal-rail .sports-watch-hidden-grid {
  grid-template-columns: 1fr;
}

.watched-category-group {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.watched-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.watched-category-heading h3 {
  margin: 0;
  color: #e0f2fe;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watched-category-heading span {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 850;
}

.watched-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.watched-priority-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(250, 204, 21, 0.32);
  border-radius: 8px;
  color: #fde68a;
  background: rgba(113, 63, 18, 0.22);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.watched-opportunity-card {
  border-color: rgba(56, 189, 248, 0.24);
  background:
    linear-gradient(180deg, rgba(17, 34, 58, 0.98), rgba(11, 22, 40, 0.98));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.watched-opportunity-card:hover {
  border-color: rgba(56, 189, 248, 0.48);
  background: rgba(17, 34, 58, 0.96);
  transform: translateY(-1px);
}

.watched-pipeline-health {
  margin-bottom: 12px;
}

.watched-health-list {
  display: grid;
  gap: 8px;
}

.watched-health-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
}

.watched-health-list strong {
  color: #f8fbff;
}

.watched-health-details {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.52);
}

.watched-health-details summary {
  cursor: pointer;
  color: #bfdbfe;
  font-weight: 900;
}

.watched-health-details span {
  display: block;
  margin-top: 8px;
}

.watched-safety-status {
  padding: 14px;
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 8px;
  background: rgba(20, 83, 45, 0.14);
}

.watched-safety-status strong {
  display: block;
  margin-bottom: 10px;
  color: #f8fbff;
}

.watched-safety-status p {
  margin: 10px 0 0;
  color: #cbd5e1;
}

.watched-safety-warning {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.2);
}

@media (max-width: 1100px) {
  .sports-watch-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sports-watch-parent-grid,
  .sports-watch-hidden-grid,
  .watched-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sports-watch-module-header,
  .sports-watch-item-title-row,
  .sports-watch-parent-heading,
  .sports-watch-lean-row {
    display: grid;
  }

  .sports-watch-module-status {
    justify-content: flex-start;
    min-width: 0;
  }

  .sports-watch-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.utility-context {
  color: var(--app-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

.brier-compact-header {
  margin-bottom: 18px;
}

.brier-compact-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 8px;
}

.brier-compact-header p {
  max-width: 720px;
}

.brier-primary-card,
.brier-summary-card {
  height: 100%;
}

.brier-form-stack {
  display: block;
}

.tool-section {
  display: grid;
  gap: 14px;
}

.brier-guided-flow {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.brier-flow-block {
  display: grid;
  gap: 14px;
}

.brier-block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.manual-probability-field {
  display: grid;
  gap: 8px;
}

.brier-lookup-status {
  min-height: 1.35em;
  margin: 0;
  font-size: 0.9rem;
}

.brier-lookup-status[hidden] {
  display: none;
}

.empty-chart-state {
  display: flex;
  min-height: 140px;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  color: rgba(148, 163, 184, 0.82);
  background: rgba(11, 22, 40, 0.48);
  font-size: 0.92rem;
}

.tool-section h2,
.brier-summary-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.brier-input-grid label {
  display: grid;
  gap: 8px;
}

.brier-result-intro {
  margin-bottom: 18px;
  color: var(--app-secondary);
}

.brier-summary-table {
  min-width: 0;
  margin-top: 16px;
}

.brier-side-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

.brier-save-card {
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.72));
}

.brier-save-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.brier-save-card p {
  margin: 0;
  color: rgba(148, 163, 184, 0.82);
  font-size: 0.92rem;
}

.collapsible-card {
  padding: 0;
  overflow: hidden;
}

.collapsible-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--app-text);
  outline: none;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.collapsible-card summary:hover {
  background: rgba(15, 23, 42, 0.38);
}

.collapsible-card summary:focus,
.collapsible-card summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.45), 0 0 0 3px rgba(59, 130, 246, 0.14);
  background: rgba(15, 23, 42, 0.42);
}

.collapsible-card summary::-webkit-details-marker {
  display: none;
}

.accordion-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(148, 163, 184, 0.9);
  border-bottom: 2px solid rgba(148, 163, 184, 0.9);
  transform: rotate(45deg);
  transition: transform 160ms ease;
  flex: 0 0 auto;
}

.collapsible-card[open] .accordion-chevron {
  transform: rotate(225deg);
}

.collapsible-card-body {
  padding: 0 24px 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

@media (max-width: 1120px) {
  .span-2,
  .span-3 {
    grid-column: span 4;
  }
}

@media (max-width: 980px) {
  .analytics-shell {
    grid-template-columns: 1fr;
  }

  .analytics-sidebar {
    position: static;
    height: auto;
    padding: 14px 16px;
  }

  .analytics-sidebar nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .analytics-sidebar a {
    flex: 0 0 auto;
  }

  .top-utility-bar {
    position: static;
    grid-template-columns: 1fr auto auto;
    padding-inline: 16px;
  }

  .span-2,
  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-9 {
    grid-column: span 6;
  }

  .brier-guided-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .analytics-app h1,
  .page-header h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .page-header {
    display: grid;
    gap: 16px;
  }

  .top-utility-bar {
    grid-template-columns: 1fr;
  }

  .analytics-content {
    padding: 22px 16px 42px;
  }

  .span-2,
  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-9,
  .span-12 {
    grid-column: span 12;
  }

  .meaning-bullet {
    grid-template-columns: 10px 1fr;
  }

  .meaning-bullet em {
    grid-column: 2;
  }

  .resolved-flag-card-header {
    display: grid;
  }

  .resolved-flag-meta {
    grid-template-columns: 1fr;
  }

  .support-form-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  padding: 34px clamp(20px, 5vw, 72px) 30px;
  color: var(--muted);
  border-top: 1px solid rgba(23, 33, 31, 0.1);
  background: #f8f6ef;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-brand p,
.footer-legal {
  margin: 0;
}

.footer-brand p {
  max-width: 340px;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-nav .secondary-resource {
  flex-basis: 100%;
  color: #6d7774;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: right;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 33, 31, 0.08);
  color: #6d7774;
  font-size: 0.84rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hero,
  .early-access {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .analytics-preview {
    order: -1;
  }

  .pricing-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-nav .secondary-resource {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-grid,
  .feature-grid,
  .workflow,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(4.2rem, 22vw, 6.4rem);
  }
}

/* Dark public homepage */
.home-app {
  --home-bg: #07111f;
  --home-surface: #0b1628;
  --home-elevated: #111c31;
  --home-floating: #17233a;
  --home-border: #263248;
  --home-border-soft: rgba(148, 163, 184, 0.16);
  --home-text: #e5eef8;
  --home-secondary: #94a3b8;
  --home-muted: #64748b;
  --home-indigo: #7c8cff;
  --home-indigo-strong: #6675f6;
  --home-amber: #f2b84b;
  --home-blue: #38bdf8;
  --home-green: #22c55e;
  --home-red: #ef4444;
  --app-bg: var(--home-bg);
  --surface: var(--home-surface);
  --surface-elevated: var(--home-elevated);
  --surface-floating: var(--home-floating);
  --app-border: var(--home-border);
  --app-text: var(--home-text);
  --app-secondary: var(--home-secondary);
  --app-muted: var(--home-muted);
  --indigo: var(--home-indigo);
  --amber-app: var(--home-amber);
  --blue-app: var(--home-blue);
  --green-app: var(--home-green);
  --red-app: var(--home-red);
  min-height: 100vh;
  color: var(--home-text);
  background:
    radial-gradient(circle at 72% -12%, rgba(124, 140, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 10% 8%, rgba(56, 189, 248, 0.08), transparent 28rem),
    linear-gradient(180deg, #081321 0%, var(--home-bg) 44rem, #050d18 100%);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

html:has(body.home-app) {
  background: #07111f;
}

.home-app *:focus-visible {
  outline: 2px solid rgba(124, 140, 255, 0.95);
  outline-offset: 3px;
}

.home-app h1,
.home-app h2,
.home-app h3,
.home-app p {
  margin-top: 0;
}

.home-app h1,
.home-app h2,
.home-app h3 {
  color: var(--home-text);
  letter-spacing: 0;
}

.home-app h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 0.96;
}

.home-app h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1;
}

.home-app h3 {
  margin-bottom: 10px;
  font-size: 1.04rem;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--home-border);
  background: rgba(7, 17, 31, 0.84);
  backdrop-filter: blur(16px);
}

.home-header .brand {
  color: var(--home-text);
}

.home-header nav,
.home-header-actions,
.home-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.home-header nav {
  justify-content: center;
}

.home-header a,
.home-footer a {
  color: var(--home-secondary);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.home-header a:hover,
.home-footer a:hover {
  color: var(--home-text);
}

.home-header-actions {
  justify-content: flex-end;
  gap: 12px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid var(--home-border);
  border-radius: 12px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.home-button:hover {
  transform: translateY(-1px);
}

.home-button-primary {
  color: #fff;
  border-color: rgba(124, 140, 255, 0.9);
  background: linear-gradient(180deg, var(--home-indigo), var(--home-indigo-strong));
}

.home-button-secondary {
  color: var(--home-text);
  background: rgba(17, 28, 49, 0.76);
}

.home-button-secondary:hover {
  border-color: rgba(124, 140, 255, 0.45);
  background: rgba(23, 35, 58, 0.96);
}

.home-hero,
.home-section,
.home-footer {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 56px);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(440px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding-top: clamp(54px, 7vw, 94px);
  padding-bottom: clamp(46px, 6vw, 84px);
}

.home-hero-copy {
  min-width: 0;
}

.home-hero > *,
.split-section > *,
.early-access-panel > *,
.preview-body-grid > * {
  min-width: 0;
}

.home-eyebrow {
  margin: 0 0 14px;
  color: var(--home-blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-lede {
  max-width: 760px;
  color: var(--home-secondary);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.55;
}

.home-thesis {
  display: inline-flex;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 8px 11px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
  color: var(--home-text);
  background: rgba(56, 189, 248, 0.07);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: normal;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-disclaimer {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--home-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.home-preview-card,
.metric-preview-card,
.large-dashboard-preview,
.thesis-strip article,
.home-feature-grid article,
.audience-grid article,
.early-access-panel,
.home-waitlist-form {
  border: 1px solid var(--home-border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--home-surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.home-preview-card {
  overflow: hidden;
  padding: 20px;
}

.preview-topline,
.metric-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--home-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.large-dashboard-preview .home-kpi-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-kpi-strip article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--home-border);
  border-radius: 16px;
  background: rgba(17, 28, 49, 0.74);
}

.home-kpi-strip span {
  display: block;
  margin-bottom: 10px;
  color: var(--home-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-kpi-strip strong {
  display: block;
  color: #fff;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1;
}

.home-kpi-strip em {
  display: block;
  margin-top: 8px;
  color: var(--home-secondary);
  font-size: 0.8rem;
  font-style: normal;
}

.positive {
  color: var(--home-green) !important;
}

.amber-text {
  color: var(--home-amber) !important;
}

.preview-chart {
  position: relative;
  min-height: 210px;
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: 18px;
  background:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(124, 140, 255, 0.2), transparent 16rem),
    var(--home-elevated);
  background-size: 100% 25%, 16.666% 100%, auto, auto;
}

.preview-chart span {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 44%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home-blue), var(--home-indigo), var(--home-amber));
  box-shadow: 0 0 32px rgba(124, 140, 255, 0.36);
}

.preview-table {
  overflow-x: auto;
  border: 1px solid var(--home-border);
  border-radius: 16px;
}

.preview-table > div {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) minmax(110px, 0.8fr) minmax(96px, 0.6fr);
  min-width: 460px;
  border-bottom: 1px solid rgba(38, 50, 72, 0.82);
}

.large-dashboard-preview .preview-table > div {
  grid-template-columns: minmax(180px, 1.3fr) minmax(130px, 0.8fr) minmax(100px, 0.7fr) minmax(100px, 0.7fr);
}

.preview-table > div:last-child {
  border-bottom: 0;
}

.preview-table span,
.preview-table strong {
  padding: 12px 14px;
}

.preview-table div:first-child span {
  color: var(--home-muted);
  background: rgba(17, 28, 49, 0.78);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-table strong {
  color: var(--home-text);
  font-size: 0.88rem;
}

.preview-table div:not(:first-child) span {
  color: var(--home-secondary);
  font-size: 0.86rem;
}

.home-section {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(28px, 5vw, 58px);
}

.thesis-strip,
.home-feature-grid,
.audience-grid {
  display: grid;
  gap: 18px;
}

.thesis-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.thesis-strip article,
.home-feature-grid article,
.audience-grid article {
  padding: 22px;
}

.thesis-strip p,
.home-feature-grid p,
.audience-grid p,
.split-section p,
.early-access-panel p,
.metric-preview-card p {
  color: var(--home-secondary);
  line-height: 1.55;
}

.home-card-marker {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--home-muted);
  box-shadow: 0 0 24px currentColor;
}

.marker-blue {
  color: var(--home-blue);
  background: var(--home-blue);
}

.marker-amber {
  color: var(--home-amber);
  background: var(--home-amber);
}

.marker-slate {
  color: var(--home-muted);
  background: var(--home-muted);
}

.marker-indigo {
  color: var(--home-indigo);
  background: var(--home-indigo);
}

.marker-green {
  color: var(--home-green);
  background: var(--home-green);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 28px;
  align-items: center;
}

.split-section > div {
  max-width: 780px;
}

.metric-preview-card {
  padding: 24px;
}

.metric-preview-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--home-amber);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
}

.metric-method {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(242, 184, 75, 0.24);
  border-left: 3px solid var(--home-amber);
  border-radius: 14px;
  color: var(--home-secondary);
  background: rgba(242, 184, 75, 0.07);
}

.home-section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

.home-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-preview-section {
  padding-bottom: clamp(50px, 7vw, 86px);
}

.large-dashboard-preview {
  padding: 22px;
}

.preview-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  margin: 18px 0;
}

.preview-chart.tall {
  min-height: 280px;
  margin: 0;
}

.meaning-preview {
  display: grid;
  gap: 12px;
}

.audience-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.early-access-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  margin-bottom: clamp(54px, 8vw, 96px);
}

.home-waitlist-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  box-shadow: none;
}

.home-waitlist-form label {
  display: grid;
  gap: 8px;
  color: var(--home-secondary);
  font-size: 0.82rem;
  font-weight: 900;
}

.home-waitlist-form label span {
  color: var(--home-muted);
  font-weight: 700;
}

.home-waitlist-form input,
.home-waitlist-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--home-border);
  border-radius: 12px;
  color: var(--home-text);
  background: rgba(17, 28, 49, 0.86);
  font: inherit;
}

.home-waitlist-form input::placeholder {
  color: var(--home-muted);
}

.home-waitlist-form input:focus,
.home-waitlist-form select:focus {
  border-color: rgba(124, 140, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(124, 140, 255, 0.14);
  outline: 0;
}

.home-app .fallback-contact,
.home-app .form-status {
  margin: 0;
  color: var(--home-secondary);
  font-size: 0.86rem;
  line-height: 1.45;
}

.home-app .fallback-contact a {
  color: var(--home-blue);
  font-weight: 900;
}

.home-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(360px, 1.3fr);
  gap: 26px;
  padding-top: 34px;
  padding-bottom: 32px;
  border-top: 1px solid var(--home-border);
  color: var(--home-secondary);
}

.home-footer .brand {
  color: var(--home-text);
}

.home-footer p {
  margin: 12px 0 0;
  line-height: 1.55;
}

.home-footer nav {
  justify-content: flex-end;
}

.home-footer-legal {
  grid-column: 1 / -1;
  max-width: 1160px;
  padding-top: 20px;
  border-top: 1px solid var(--home-border-soft);
  color: var(--home-muted);
  font-size: 0.86rem;
}

@media (max-width: 1050px) {
  .home-header {
    grid-template-columns: 1fr;
  }

  .home-header nav,
  .home-header-actions {
    justify-content: flex-start;
  }

  .home-hero,
  .split-section,
  .early-access-panel,
  .preview-body-grid {
    grid-template-columns: 1fr;
  }

  .home-preview-card {
    order: -1;
  }

  .home-feature-grid,
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-footer {
    grid-template-columns: 1fr;
  }

  .home-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .home-app h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .home-app h2 {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
  }

  .home-hero {
    min-height: auto;
    padding-top: 30px;
  }

  .home-eyebrow {
    font-size: 0.66rem;
    overflow-wrap: anywhere;
  }

  .home-lede,
  .home-thesis {
    overflow-wrap: anywhere;
  }

  .home-preview-card {
    order: 0;
  }

  .home-header {
    position: static;
  }

  .home-header nav,
  .home-header-actions,
  .home-actions,
  .home-button {
    width: 100%;
  }

  .home-kpi-strip,
  .large-dashboard-preview .home-kpi-strip,
  .thesis-strip,
  .home-feature-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .home-preview-card,
  .large-dashboard-preview,
  .early-access-panel {
    border-radius: 18px;
  }

  .preview-table > div,
  .large-dashboard-preview .preview-table > div {
    grid-template-columns: minmax(120px, 1.2fr) minmax(92px, 0.8fr) minmax(72px, 0.6fr);
    min-width: 340px;
  }

  .large-dashboard-preview .preview-table > div {
    grid-template-columns: minmax(130px, 1.2fr) minmax(96px, 0.8fr) minmax(78px, 0.7fr) minmax(84px, 0.7fr);
    min-width: 430px;
  }

  .preview-table span,
  .preview-table strong {
    padding: 11px 10px;
  }
}

@media (max-width: 900px) {
  .document-shell {
    grid-template-columns: 1fr;
  }

  .document-index {
    position: static;
    grid-template-columns: repeat(4, max-content);
    overflow-x: auto;
  }

  .document-index span {
    grid-column: 1 / -1;
  }

  .document-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .document-page .site-header {
    position: static;
    align-items: flex-start;
  }

  .document-hero {
    padding-top: 30px;
  }

  .document-shell {
    padding-bottom: 46px;
  }

  .document-card {
    padding: 18px;
    border-radius: 14px;
  }

  .document-index {
    grid-template-columns: 1fr 1fr;
  }
}

/* Shared legal/document page layout.
   Kept at the end of the cascade so older global marketing rules cannot
   inflate legal page headings or reintroduce the retired palette. */
.document-page {
  --doc-bg: #07111f;
  --doc-surface: #0b1628;
  --doc-elevated: #111c31;
  --doc-floating: #17233a;
  --doc-border: #263248;
  --doc-border-soft: rgba(148, 163, 184, 0.16);
  --doc-text: #e5eef8;
  --doc-secondary: #94a3b8;
  --doc-muted: #64748b;
  --doc-indigo: #7c8cff;
  --doc-indigo-strong: #6675f6;
  --doc-amber: #f2b84b;
  --doc-blue: #38bdf8;
  min-height: 100vh;
  color: var(--doc-text);
  background:
    radial-gradient(circle at 70% -14%, rgba(124, 140, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 12% 4%, rgba(56, 189, 248, 0.08), transparent 28rem),
    linear-gradient(180deg, #081321 0%, var(--doc-bg) 44rem, #050d18 100%);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

html:has(body.document-page) {
  background: #07111f;
}

.document-page * {
  box-sizing: border-box;
}

.document-page *:focus-visible {
  outline: 2px solid rgba(124, 140, 255, 0.95);
  outline-offset: 3px;
}

.document-page h1,
.document-page h2,
.document-page h3,
.document-page p {
  max-width: 100%;
  margin-top: 0;
  overflow-wrap: anywhere;
}

.document-page .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--doc-border);
  background: rgba(7, 17, 31, 0.84);
  backdrop-filter: blur(16px);
}

.document-page .site-header .brand,
.document-page .site-footer .brand {
  color: var(--doc-text);
}

.document-page .site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.document-page .site-header a,
.document-page .site-footer a {
  color: var(--doc-secondary);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.document-page .site-header a:hover,
.document-page .site-footer a:hover,
.document-page .document-card a:hover,
.document-page .document-index a:hover {
  color: var(--doc-text);
}

.document-page .brand-mark {
  color: var(--doc-text);
  border-color: rgba(124, 140, 255, 0.42);
  background:
    linear-gradient(145deg, rgba(124, 140, 255, 0.34), rgba(56, 189, 248, 0.12)),
    var(--doc-floating);
  box-shadow: inset 0 0 0 1px rgba(229, 238, 248, 0.08);
}

.document-page .document-hero {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 64px) clamp(18px, 4vw, 32px) 22px;
}

.document-page .document-hero .eyebrow {
  margin-bottom: 14px;
  color: var(--doc-blue);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.document-page .document-hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--doc-text);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.document-page .document-hero p {
  max-width: 820px;
  color: var(--doc-secondary);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
}

.document-page .document-updated,
.document-page .document-disclaimer,
.document-page .muted-note {
  color: var(--doc-muted);
  font-size: 0.92rem;
}

.document-page .document-disclaimer,
.document-page .legal-review-note {
  border-color: rgba(242, 184, 75, 0.28);
  background: rgba(242, 184, 75, 0.08);
}

.document-page .document-disclaimer {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 8px 11px;
  border: 1px solid rgba(242, 184, 75, 0.28);
  border-radius: 999px;
  color: #f8d58a;
}

.document-page .document-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 8px clamp(18px, 4vw, 32px) 74px;
}

.document-page .document-content {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 920px;
}

.document-page .document-index {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--doc-border);
  border-radius: 16px;
  background: rgba(17, 28, 49, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.14);
}

.document-page .document-index span {
  color: var(--doc-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.document-page .document-index a,
.document-page .document-card a {
  color: #93c5fd;
  font-weight: 800;
  text-decoration: none;
}

.document-page .document-index a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  width: fit-content;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  color: var(--doc-secondary);
  background: rgba(11, 22, 40, 0.72);
}

.document-page .document-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--doc-border);
  border-radius: 18px;
  background: rgba(17, 28, 49, 0.84);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.14);
}

.document-page .document-card h2 {
  margin: 0 0 12px;
  color: var(--doc-text);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.document-page .document-card.legal-review-note h2 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.document-page .document-card h2:not(:first-child) {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.document-page .document-card p {
  margin-bottom: 13px;
  color: var(--doc-secondary);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.75;
}

.document-page .document-card p:last-child {
  margin-bottom: 0;
}

.document-page .document-card strong {
  color: #dbeafe;
}

.document-page .document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.document-page .site-footer {
  margin-top: 0;
  color: var(--doc-secondary);
  border-top: 1px solid var(--doc-border);
  background: #07111f;
}

.document-page .footer-legal {
  color: var(--doc-muted);
  border-top-color: rgba(148, 163, 184, 0.14);
}

@media (max-width: 900px) {
  .document-page .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .document-page .site-header nav {
    justify-content: flex-start;
  }

  .document-page .document-shell {
    grid-template-columns: 1fr;
  }

  .document-page .document-index {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
  }

  .document-page .document-index span {
    flex-basis: 100%;
  }

  .document-page .document-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .document-page .site-header {
    position: static;
    padding: 14px 16px;
  }

  .document-page .site-header nav,
  .document-page .site-header a {
    max-width: 100%;
  }

  .document-page .document-hero {
    padding: 30px 16px 18px;
  }

  .document-page .document-hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.25rem);
  }

  .document-page .document-shell {
    padding: 0 16px 48px;
  }

  .document-page .document-card {
    border-radius: 14px;
  }

  .document-page .document-index a {
    width: 100%;
  }
}

/* Controlled-beta design tightening */
.home-app .sample-label,
.document-page .sample-label {
  align-items: center;
  width: fit-content;
  color: var(--home-amber, #f2b84b);
  border-color: rgba(242, 184, 75, 0.34);
  background: rgba(242, 184, 75, 0.08);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero {
  min-height: min(760px, calc(100vh - 74px));
}

.home-lede {
  max-width: 700px;
}

.home-thesis {
  color: #dbeafe;
  border-color: rgba(124, 140, 255, 0.3);
  background: rgba(124, 140, 255, 0.1);
}

.home-preview-card,
.large-dashboard-preview,
.metric-preview-card,
.thesis-strip article,
.home-feature-grid article,
.audience-grid article,
.early-access-panel,
.home-waitlist-form,
.analytics-card,
.kpi-card,
.metric-explanation,
.data-table-wrap,
.empty-state,
.pricing-card {
  backdrop-filter: blur(10px);
}

.home-feature-grid article,
.audience-grid article,
.thesis-strip article {
  min-height: 190px;
}

.pricing-card {
  gap: 12px;
}

.pricing-card h2,
.pricing-card h3 {
  margin-bottom: 4px;
}

.pricing-card .status-badge {
  width: fit-content;
  margin-bottom: 4px;
}

.analytics-app .sample-label {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--amber-app);
  font-size: 0.66rem;
  font-weight: 950;
}

.analytics-app .page-header {
  padding: 22px;
  border: 1px solid rgba(38, 50, 72, 0.72);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(124, 140, 255, 0.12), transparent 26rem),
    rgba(11, 22, 40, 0.54);
}

.analytics-app .page-header .sample-label {
  margin-top: 14px;
  margin-bottom: 0;
}

.beta-note-card {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(124, 140, 255, 0.24);
  border-radius: 16px;
  background: rgba(124, 140, 255, 0.07);
}

.beta-note-card p {
  margin: 0;
  color: var(--app-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.support-form {
  gap: 18px;
}

.support-form .app-cta {
  width: fit-content;
}

.resolved-flag-card .sample-label {
  margin-bottom: 12px;
}

.resolved-flags-table {
  margin-top: 4px;
}

.document-page .seo-hero {
  min-height: auto;
  padding: 54px clamp(20px, 5vw, 72px) 34px;
  background:
    radial-gradient(circle at 20% -20%, rgba(124, 140, 255, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(7, 17, 31, 0.98), rgba(11, 22, 40, 0.96));
}

.document-page .seo-copy {
  max-width: 980px;
}

.document-page .seo-hero h1 {
  margin-bottom: 14px;
  color: #e5eef8;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 0.98;
}

.document-page .seo-hero .lede,
.document-page .seo-hero p {
  color: #94a3b8;
}

.document-page .section {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: 36px clamp(20px, 5vw, 72px);
}

.document-page .feature-grid article,
.document-page .faq-list article,
.document-page .text-panel {
  border-color: #263248;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    rgba(17, 28, 49, 0.84);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.14);
}

.document-page .feature-grid h3,
.document-page .faq-list h3,
.document-page .text-panel h2 {
  color: #e5eef8;
}

.document-page .feature-grid p,
.document-page .faq-list p,
.document-page .text-panel p {
  color: #94a3b8;
}

.document-page .faq-list {
  max-width: 960px;
}

.document-page .faq-list a,
.document-page .text-panel a {
  color: #93c5fd;
  font-weight: 900;
  text-decoration: none;
}

.document-page .faq-list a:hover,
.document-page .text-panel a:hover {
  text-decoration: underline;
}

.document-page .hero-disclaimer {
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.08);
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .analytics-app .page-header {
    padding: 18px;
  }

  .home-feature-grid article,
  .audience-grid article,
  .thesis-strip article {
    min-height: auto;
  }

  .document-shell {
    grid-template-columns: 1fr;
  }

  .document-index {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-header {
    gap: 16px;
    padding-block: 16px;
  }

  .home-header nav {
    gap: 10px 14px;
  }

  .home-hero {
    gap: 24px;
    padding-bottom: 42px;
  }

  .home-actions .home-button {
    justify-content: center;
  }

  .analytics-sidebar nav {
    grid-template-columns: 1fr;
  }

  .analytics-app .page-header {
    border-radius: 18px;
  }

  .support-form-grid,
  .resolved-flag-meta,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .support-form .app-cta {
    width: 100%;
  }

  .document-index {
    grid-template-columns: 1fr;
  }

  .document-page .section {
    padding-block: 28px;
  }
}
