/* CreatorRoots — homepage styles. Every rule is scoped under body.home so nothing leaks into
   Developers, Privacy or Terms. Loaded only by index.html; does not depend on site.css. */

body.home {
  --bg: #0d1315;
  --bg-raised: #131b1e;
  --surface: #182125;
  --surface-2: #1e2a2e;
  --line: #2b393e;
  --text: #f3f6f7;
  --text-2: #cfd8db;
  --text-3: #9fabaf;
  --teal: #19d1cb;
  --teal-ink: #05191a;
  --leaf: #7bbf56;
  --amber: #f2b648;
  --focus: #7fe3ee;
  --radius: 16px;
  --wrap: 1120px;

  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.home *,
body.home *::before,
body.home *::after { box-sizing: border-box; }

body.home img,
body.home svg { display: block; max-width: 100%; }

body.home a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.home a:hover { color: var(--text); }

body.home :focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

body.home .wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

body.home .skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--teal);
  color: var(--teal-ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
body.home .skip-link:focus { top: 1rem; color: var(--teal-ink); }

/* ---------- Header ---------- */

body.home .hm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 19, 21, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

body.home .hm-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

body.home .hm-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}
body.home .hm-brand:hover { color: var(--text); }
body.home .hm-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f8f8f9;
}

body.home .hm-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.home .hm-nav a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.95rem;
  text-decoration: none;
}
body.home .hm-nav a:hover { color: var(--text); background: var(--surface); }

body.home .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 650;
  white-space: nowrap;
}
body.home .status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(25, 209, 203, 0.18);
}

body.home .nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
body.home .nav-toggle .bars,
body.home .nav-toggle .bars::before,
body.home .nav-toggle .bars::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}
body.home .nav-toggle .bars { position: relative; }
body.home .nav-toggle .bars::before,
body.home .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
body.home .nav-toggle .bars::before { top: -5px; }
body.home .nav-toggle .bars::after { top: 5px; }
body.home .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
body.home .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
body.home .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Shared pieces ---------- */

body.home .eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.home h1,
body.home h2,
body.home h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
body.home h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 780; }
body.home h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }

body.home p { margin: 0; }
body.home .lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-2); max-width: 60ch; }
body.home .fine { font-size: 0.875rem; color: var(--text-3); }

body.home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
body.home .btn-primary { background: var(--teal); color: var(--teal-ink); }
body.home .btn-primary:hover { background: #4ee3dd; color: var(--teal-ink); transform: translateY(-1px); }
body.home .btn-ghost { border-color: var(--line); background: var(--surface); color: var(--text); }
body.home .btn-ghost:hover { border-color: var(--text-3); color: var(--text); }

body.home .section { padding: clamp(4rem, 9vw, 7rem) 0; scroll-margin-top: 68px; }
body.home .section-head { max-width: 46rem; margin-bottom: 3rem; }
body.home .section-head h2 + p { margin-top: 1.1rem; }

/* Sample-data window used for product previews */
body.home .window {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
body.home .window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--text-3);
}
body.home .window-bar strong { color: var(--text); font-weight: 650; }
body.home .sample-tag {
  padding: 0.15rem 0.6rem;
  border: 1px dashed var(--amber);
  border-radius: 999px;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
body.home .window-body { padding: 1.25rem; }

body.home .chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-2);
}
body.home .chart-legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
body.home .swatch { width: 18px; height: 4px; border-radius: 2px; background: var(--teal); }
body.home .chart { width: 100%; height: auto; }
body.home .chart .grid { stroke: var(--line); stroke-width: 1; }
body.home .chart .axis { fill: var(--text-3); font-size: 11px; font-family: inherit; }
body.home .chart .viewers { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
body.home .chart .viewers-fill { fill: url(#viewersFade); }

/* ---------- Hero ---------- */

body.home .hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(25, 209, 203, 0.13), transparent 70%),
    radial-gradient(45% 50% at 0% 90%, rgba(123, 191, 86, 0.1), transparent 70%);
  overflow: hidden;
}
body.home .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
body.home .hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
}
body.home .hero h1 em { font-style: normal; color: var(--teal); }
body.home .hero .lede { margin-top: 1.4rem; }
body.home .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1rem; margin-top: 2rem; }
body.home .hero .lede + .fine { margin-top: 1.1rem; }

body.home .hero-visual { position: relative; }
body.home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0;
}
body.home .hero-stats div { padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
body.home .hero-stats dt { font-size: 0.75rem; color: var(--text-3); }
body.home .hero-stats dd { margin: 0.1rem 0 0; font-size: 1.35rem; font-weight: 750; color: var(--text); letter-spacing: -0.02em; }

body.home .regulars { margin: 1.25rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
body.home .regulars li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
body.home .regulars li:last-child { border-bottom: 0; padding-bottom: 0; }
body.home .avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--leaf);
  font-size: 0.8rem;
  font-weight: 700;
}
body.home .regulars b { color: var(--text); font-weight: 650; }
body.home .regulars .meta { color: var(--text-3); font-size: 0.82rem; }
body.home .regulars .count { color: var(--teal); font-weight: 650; font-size: 0.82rem; white-space: nowrap; }
body.home .regulars-title { margin: 1.25rem 0 0; font-size: 0.85rem; color: var(--text-3); font-weight: 600; }

/* ---------- Analytics ---------- */

body.home .split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
body.home .split.flip > :first-child { order: 2; }

body.home .points { display: grid; gap: 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
body.home .points li { padding-left: 1.25rem; border-left: 3px solid var(--line); }
body.home .points li:hover { border-color: var(--teal); }
body.home .points h3 { margin-bottom: 0.3rem; }
body.home .points p { color: var(--text-2); font-size: 0.98rem; }

body.home .chart-summary { margin-top: 0.9rem; font-size: 0.9rem; color: var(--text-3); }

body.home .coverage {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
  font-size: 0.92rem;
  color: var(--text-2);
}
body.home .coverage strong { color: var(--text); }

/* ---------- Community ---------- */

body.home .community { background: var(--bg-raised); border-block: 1px solid var(--line); }
body.home .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
body.home .card {
  height: 100%;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
body.home .card .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: rgba(123, 191, 86, 0.14);
  color: var(--leaf);
}
body.home .card .icon svg { width: 22px; height: 22px; }
body.home .card p { margin-top: 0.5rem; font-size: 0.97rem; }

body.home .timeline-wrap { margin-top: 1.5rem; }
body.home .timeline { margin: 0; padding: 0; list-style: none; position: relative; }
body.home .timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--leaf), var(--line));
}
body.home .timeline li { position: relative; padding: 0 0 1.25rem 2.75rem; }
body.home .timeline li:last-child { padding-bottom: 0; }
body.home .timeline li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 3px solid var(--leaf);
}
body.home .timeline .when { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
body.home .timeline b { color: var(--text); font-weight: 650; }
body.home .timeline p { font-size: 0.95rem; }

/* ---------- Tools ---------- */

body.home .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
body.home .steps li {
  counter-increment: step;
  position: relative;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
body.home .steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--teal-ink);
  font-weight: 800;
}
body.home .steps p { margin-top: 0.45rem; font-size: 0.97rem; }

body.home .scene {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0f10;
  overflow: hidden;
}
body.home .scene-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-3);
}
body.home .scene-body { display: block; }
body.home .scene-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 340px; /* fixed so switching overlays never changes the card height */
  padding: 1rem;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 12px, transparent 12px 24px),
    #0e1517;
}
body.home .scene-stage .cam {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(18%, 150px);
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-size: 0.8rem;
}
/* Overlay preview: mirrors creator-ui MilestoneCelebrationOverlayPresentation / LoyaltyRecognitionOverlayPresentation
   (defaults: 24px base, white text, rgba(0,0,0,.6) panel, 8px radius, 16px padding, 28rem wide, centered).
   Everything is in em so the whole card scales with one font-size to fit the stage. */
body.home .scene-stage { container-type: inline-size; }
body.home .ov-stage { position: relative; z-index: 1; width: 100%; display: flex; justify-content: center; }
/* Hide the camera placeholder once the stage is too narrow for it to clear the centered overlay. */
@container (max-width: 780px) { body.home .scene-stage .cam { display: none; } }
body.home .ov-card {
  --u: min(24px, max(14px, calc((100cqw - 2rem) / 18.667)));
  font-size: var(--u);
  width: 18.667em;
  max-width: 100%;
  padding: 0.6667em;
  border-radius: 0.3333em;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
  line-height: 1.5;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  overflow-wrap: anywhere;
}
body.home .ov-card[hidden] { display: none; }
body.home .ov-card p { margin: 0; }
body.home .ov-kicker { font-size: max(0.5em, 9px); font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.6; }
body.home .ov-title,
body.home .ov-name { margin-top: 0.25em !important; font-size: 1em; font-weight: 700; line-height: 1.25; }
body.home .ov-meta { font-size: max(0.5em, 9px); }
body.home .ov-desc { margin-top: 0.5em !important; opacity: 0.8; }
body.home .ov-value { margin-top: 0.5em !important; font-size: 0.75em; font-weight: 600; font-variant-numeric: tabular-nums; }
body.home .ov-goal { margin-top: 0.25em !important; opacity: 0.6; font-variant-numeric: tabular-nums; }
body.home .ov-tenure { margin-top: 0.5em !important; font-size: 0.7em; font-weight: 600; opacity: 0.9; }

body.home .overlay-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin-top: 2rem; }
body.home .overlay-picker[hidden] { display: none; }
body.home .overlay-picker label { color: var(--text); font-weight: 650; font-size: 0.95rem; }
body.home .overlay-picker select {
  min-height: 44px;
  min-width: 14rem;
  padding: 0.5rem 2.25rem 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--surface);
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  -webkit-appearance: none;
  appearance: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
body.home .overlay-picker select:hover { border-color: var(--text-3); }
body.home .overlay-picker select option { background: var(--surface); color: var(--text); }

body.home .sponsor-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}
body.home .sponsor-note p { font-size: 0.97rem; }
body.home .sponsor-note strong { color: var(--text); }

/* ---------- Closing CTA ---------- */

body.home .closing { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 9vw, 7rem); }
body.home .closing-card {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.25rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(25, 209, 203, 0.16), transparent 70%),
    var(--bg-raised);
}
body.home .closing-card h2 { max-width: 20ch; margin: 0 auto; }
body.home .closing-card .lede { margin: 1.1rem auto 0; }
body.home .closing-card .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

body.home .hm-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; font-size: 0.92rem; color: var(--text-3); }
body.home .hm-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
body.home .hm-footer .foot-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 650; }
body.home .hm-footer .foot-brand img { width: 28px; height: 28px; border-radius: 8px; background: #f8f8f9; }
body.home .hm-footer ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
body.home .hm-footer a { color: var(--text-2); text-decoration: none; }
body.home .hm-footer a:hover { color: var(--teal); text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  body.home .hero-grid,
  body.home .split { grid-template-columns: minmax(0, 1fr); }
  body.home .split.flip > :first-child { order: 0; }
  body.home .cards,
  body.home .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  body.home .hm-header .wrap { flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  body.home .hm-brand { order: 1; }
  body.home .status-pill { order: 2; }
  /* Collapsible menu only when JavaScript is available; otherwise the links just wrap below the brand. */
  html.js body.home .nav-toggle { display: inline-flex; order: 3; }
  body.home .hm-nav { order: 4; flex-basis: 100%; }
  body.home .hm-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0 0.75rem; }
  body.home .hm-nav a { padding: 0.85rem 0.5rem; font-size: 1.05rem; border-top: 1px solid var(--line); border-radius: 0; }
  html.js body.home .hm-nav[hidden] { display: none; }
}

@media (max-width: 560px) {
  body.home .wrap { padding: 0 1.1rem; }
  body.home .hero-stats { grid-template-columns: 1fr; }
  body.home .hero-stats div { display: flex; justify-content: space-between; align-items: baseline; }
    body.home .hero-actions .btn { width: 100%; }
  body.home .sponsor-note { flex-direction: column; }
  body.home .status-pill { font-size: 0.78rem; padding: 0.35rem 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  body.home *, body.home *::before, body.home *::after { transition: none !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- AI insights sample ---------- */
/* Mirrors creator-ui AiReportView / AiFindingCard / AiRecommendationCard / AiValueTiles (dark theme tokens). */

body.home .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.home .ai-window, body.home .vt-window { container-type: inline-size; }
body.home .ai-window .window-body { display: grid; gap: 0.75rem; }
body.home .ai-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
}
body.home .ai-heading::before { content: ""; width: 4px; height: 16px; border-radius: 999px; background: #19d1cb; }
body.home .ai-heading:not(:first-child) { margin-top: 0.75rem; }

body.home .ai-finding {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #344247;
  border-radius: 12px;
  background: linear-gradient(to bottom, rgba(36, 47, 51, 0.5), #192124);
}
body.home .ai-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; margin: 0; }
body.home .ai-badge { padding: 0.125rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500; line-height: 1.33; }
body.home .ai-badge-fact { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
body.home .ai-conf { font-size: 0.75rem; color: #a3aeb2; }
body.home .ai-title { margin: 0.5rem 0 0; color: var(--text); font-size: 1rem; font-weight: 600; line-height: 1.375; letter-spacing: 0; overflow-wrap: anywhere; }
body.home .ai-text { margin: 0.25rem 0 0; max-width: 65ch; font-size: 0.875rem; line-height: 1.625; color: #d3dbde; }

body.home .ai-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
body.home .ai-tile { min-width: 0; padding: 0.625rem 0.75rem; border: 1px solid #344247; border-radius: 8px; background: rgba(36, 47, 51, 0.6); }
body.home .ai-tile-latest { border-color: rgba(25, 209, 203, 0.4); background: linear-gradient(to bottom right, rgba(25, 209, 203, 0.15), transparent); }
body.home .ai-tile p { margin: 0; }
body.home .ai-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.375rem; line-height: 1.25; }
body.home .ai-num > span:first-child { color: #5dd7de; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
body.home .ai-unit { color: #d3dbde; font-size: 0.75rem; font-weight: 500; }
body.home .ai-tile-label { margin-top: 0.25rem !important; color: var(--text); font-size: 0.75rem; font-weight: 500; line-height: 1.33; }
body.home .ai-tile-meta { color: #a3aeb2; font-size: 0.75rem; line-height: 1.33; }

body.home .ai-rec {
  display: flex;
  gap: 0.75rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(25, 209, 203, 0.4);
  border-radius: 12px;
  background: linear-gradient(to bottom right, rgba(25, 209, 203, 0.15), rgba(14, 116, 144, 0.05), transparent);
}
body.home .ai-rec-bar { flex: none; align-self: stretch; width: 4px; border-radius: 999px; background: #19d1cb; }
body.home .ai-rec-body { min-width: 0; flex: 1; }
body.home .ai-rec p { margin: 0; }
body.home .ai-rank { color: #5dd7de; font-size: 0.75rem; font-weight: 600; line-height: 1.33; }
body.home .ai-rec .ai-title { margin-top: 0.125rem; }
body.home .ai-action { margin-top: 0.25rem !important; max-width: 65ch; color: var(--text); font-size: 0.875rem; line-height: 1.625; }
body.home .ai-eval { margin-top: 0.5rem !important; color: #5dd7de; font-size: 0.75rem; font-weight: 500; line-height: 1.33; }

body.home .ai-details { margin-top: 0.5rem; }
body.home .ai-details summary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 32px;
  padding: 0.25rem 0.5rem 0.25rem 0;
  border-radius: 6px;
  color: #5dd7de;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
body.home .ai-details summary::-webkit-details-marker { display: none; }
body.home .ai-details summary:hover { color: var(--text); }
body.home .ai-details svg { width: 16px; height: 16px; flex: none; transition: transform 0.15s; }
body.home .ai-details[open] svg { transform: rotate(180deg); }
body.home .ai-why { display: grid; gap: 0.75rem; max-width: 65ch; margin-top: 0.5rem; font-size: 0.875rem; }
body.home .ai-why h5 { margin: 0; color: #a3aeb2; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; line-height: 1.33; }
body.home .ai-why p { margin: 0; color: #d3dbde; line-height: 1.625; }

@container (min-width: 420px) {
  body.home .ai-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .ai-title { font-size: 1.125rem; }
  body.home .ai-num > span:first-child { font-size: 1.875rem; }
}

/* ---------- Shared viewer trend sample ---------- */
/* Mirrors creator-ui BroadcastViewerTrendChart (dark theme): series toggles, 3-tick Y axis, plot with left/bottom border,
   per-sample dots, elapsed-clock X axis. Line colors/dashes are the app's: Twitch purple solid, YouTube red 3,2, Kick green 1,2. */

body.home .vt-window .window-body { display: block; }
body.home .vt-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; }
body.home .vt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 28px;
  padding: 0.25rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #242f33;
  color: #d3dbde;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.33;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
body.home .vt-toggle[aria-pressed="false"] { border-color: #344247; background: transparent; color: #8a969a; }
body.home .vt-toggle[aria-pressed="false"] .vt-dot { background: #5f6b6f; }
html:not(.js) body.home .vt-toggle { cursor: default; }
body.home .vt-dot { width: 8px; height: 8px; border-radius: 50%; }
body.home .vt-dot.vt-twitch { background: #ad46ff; }
body.home .vt-dot.vt-youtube { background: #fb2c36; }
body.home .vt-dot.vt-kick { background: #00c950; }
body.home .vt-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
body.home .vt-area { stroke: none; }
/* Round caps would close the small 3,2 / 1,2 dash gaps, so the dashed series keep flat caps to stay distinguishable. */
body.home .vt-line.vt-youtube, body.home .vt-line.vt-kick { stroke-linecap: butt; }
body.home .vt-line.vt-twitch { stroke: #ad46ff; }
body.home .vt-line.vt-youtube { stroke: #fb2c36; }
body.home .vt-line.vt-kick { stroke: #00c950; }
body.home .vt-gridline { stroke: #344247; stroke-width: 1; opacity: 0.6; vector-effect: non-scaling-stroke; }

body.home .vt-chart { margin-top: 1rem; }
body.home .vt-grid { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.75rem; }
body.home .vt-y { display: flex; flex-direction: column; justify-content: space-between; height: 224px; text-align: right; font-size: 0.75rem; line-height: 1.33; color: #a3aeb2; font-variant-numeric: tabular-nums; }
body.home .vt-main { min-width: 0; }
body.home .vt-plot { position: relative; height: 224px; }
body.home .vt-plot svg { width: 100%; height: 100%; overflow: visible; }
body.home .vt-points[hidden], body.home g[data-series][hidden] { display: none; }
/* Sample dots appear only on hover/focus-within, in a 24px hit area, like the app. */
body.home .vt-hit { position: absolute; display: block; width: 24px; height: 24px; border-radius: 50%; transform: translate(-50%, -50%); background: none !important; }
body.home .vt-hit::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: currentColor; opacity: 0; transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s; }
body.home .vt-hit:hover::after { opacity: 1; transform: scale(1.25); box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 25%, transparent); }
body.home .vt-hit.vt-twitch { color: #ad46ff; }
body.home .vt-hit.vt-youtube { color: #fb2c36; }
body.home .vt-hit.vt-kick { color: #00c950; }
body.home .vt-x { position: relative; height: 1rem; margin-top: 0.5rem; font-size: 11px; line-height: 1.2; color: #a3aeb2; }
body.home .vt-x span { position: absolute; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
@container (min-width: 420px) {
  body.home .vt-y, body.home .vt-plot { height: 256px; }
  body.home .vt-grid { grid-template-columns: 3.5rem minmax(0, 1fr); }
}
