/* BranBoos shared theme: used by every page except the landing page, which inlines its own copy */
:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f7f5ef;
  --ink-2: rgba(247, 245, 239, .74);
  --muted: rgba(247, 245, 239, .5);
  --line: rgba(255, 255, 255, .13);
  --gold: #ecd062;
  --rainbow: linear-gradient(90deg, #ff4d1f 0%, #ff9a00 18%, #ffd500 36%, #8bd32f 54%, #13c6e8 76%, #2b5cff 100%);
  --f-display: 'Unbounded', system-ui, sans-serif;
  --f-body: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(16px, 4.2vw, 64px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  /* charts: same validated slots as the home page dashboard */
  --viz-surface: #0e0e10; --viz-grid: #2c2c2a; --viz-axis: #383835; --viz-muted: #898781; --good: #0ca30c;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70;
  --f1: #9ec5f4; --f2: #6da7ec; --f3: #3987e5; --f4: #256abf;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Background: stars + faint VIBGYOR haze, as on the home page */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.glows { position: fixed; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; overflow: hidden; }
.glows i { position: absolute; width: 74vmax; height: 74vmax; border-radius: 50%; filter: blur(80px); background: conic-gradient(from 0deg, #8b00ff, #4b0082, #1f4bff, #00a86b, #ffd400, #ff7f00, #ff2a2a, #8b00ff); }
.glows .g1 { left: -46vmax; top: -48vmax; opacity: .2; animation: turn1 90s linear infinite; }
.glows .g2 { right: -48vmax; bottom: -50vmax; opacity: .14; animation: turn2 110s linear infinite; }
@keyframes turn1 { to { transform: rotate(360deg); } }
@keyframes turn2 { to { transform: rotate(-360deg); } }
.grain { position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
main, footer { position: relative; z-index: 3; }
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60; background: var(--rainbow); transform-origin: left; transform: scaleX(0); }

/* Nav (same as home) */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--pad); transition: background .4s, padding .4s; }
.nav.scrolled { background: rgba(0,0,0,.55); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 16px; font-size: 14px; letter-spacing: .02em; color: var(--ink-2); border-radius: 999px; transition: color .25s, background .25s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); position: relative; cursor: pointer; }
.menu-btn i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: #fff; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn i:nth-child(1) { top: 19px; } .menu-btn i:nth-child(2) { top: 26px; }
.nav.open .menu-btn i:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav.open .menu-btn i:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px; font-size: 15px; font-weight: 500; border: 0; background: none; cursor: pointer; white-space: nowrap; transition: transform .35s var(--ease), background .3s; }
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn-primary { background: #fff; color: #000; }
.btn-primary::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; background: var(--rainbow); z-index: -1; opacity: 0; filter: blur(14px); transition: opacity .4s; }
.btn-primary:hover::before { opacity: .85; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.03); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 11px 18px; font-size: 14px; }

/* Type */
.display { font-family: var(--f-display); font-weight: 300; font-size: clamp(36px, 5.6vw, 100px); line-height: .98; letter-spacing: -.05em; margin: 0; }
.display-2 { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 4.6vw, 76px); line-height: 1.02; letter-spacing: -.045em; margin: 0; }
.neon { font-style: italic; font-weight: 400; color: #fff; text-shadow: 0 0 3px rgba(255,255,255,.95), 0 0 12px rgba(255,255,255,.7), 0 0 30px rgba(255,244,214,.5), 0 0 70px rgba(255,214,120,.3); }
.lead { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; margin: 0; }
.body { font-size: clamp(16px, 1.15vw, 18px); color: var(--ink-2); font-weight: 300; margin: 0; }
.reveal { opacity: 0; transform: translateY(30px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sample-badge { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px dashed rgba(255,255,255,.25); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }


/* Dashboards */
.dash { border: 1px solid var(--line); border-radius: 26px; padding: clamp(16px, 2vw, 26px); background: rgba(14,14,16,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-top h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(16px, 1.3vw, 19px); letter-spacing: -.03em; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--viz-surface); min-width: 0; }
.kpi-label { font-size: 12.5px; color: var(--ink-2); margin: 0 0 6px; }
.kpi-value { font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.kpi-note { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.kpi-note.good { color: var(--good); }
.viz { margin: 0; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--viz-surface); position: relative; min-width: 0; }
.viz + .viz, .viz-row + .viz, .viz + .viz-row { margin-top: 10px; }
.viz-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.viz-row .viz + .viz { margin-top: 0; }
.viz figcaption h4 { font-size: 15px; font-weight: 500; margin: 0; }
.viz figcaption p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 2px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 2px; border-radius: 2px; }
.legend i.box { height: 10px; width: 10px; border-radius: 3px; }
.plot { position: relative; margin-top: 10px; }
.plot svg { display: block; width: 100%; overflow: visible; }
.plot text { font-family: var(--f-body); }
.plot svg:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.tip { position: absolute; z-index: 5; pointer-events: none; min-width: 140px; padding: 10px 12px; border-radius: 12px; background: rgba(24,24,27,.96); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 30px rgba(0,0,0,.5); font-size: 13px; opacity: 0; transition: opacity .15s; }
.tip.show { opacity: 1; }
.tip-h { color: var(--muted); margin-bottom: 6px; font-size: 12px; }
.tip-r { display: flex; align-items: center; gap: 8px; line-height: 1.7; }
.tip-r i { width: 12px; height: 2px; border-radius: 2px; flex: none; }
.tip-r strong { font-weight: 600; color: #fff; min-width: 44px; font-variant-numeric: tabular-nums; }
.tip-r span { color: var(--ink-2); }
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.gauge { text-align: center; }
.gauge svg { width: 100%; max-width: 110px; margin: 0 auto; display: block; }
.gauge span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.tbl { margin-top: 10px; }
.tbl summary { cursor: pointer; font-size: 13px; color: var(--ink-2); width: fit-content; }
.tbl summary:hover { color: #fff; }
.tbl-wrap { overflow-x: auto; margin-top: 8px; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: right; padding: 6px 10px; border-bottom: 1px solid var(--viz-grid); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { color: var(--muted); font-weight: 500; }

/* CTA + footer */
.cta { padding: 16vh 0 10vh; text-align: center; }
.cta .lead { margin: 26px auto 0; max-width: 560px; color: var(--ink-2); font-weight: 300; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
footer { padding: 30px var(--pad) 34px; }
.foot-bar { height: 3px; background: var(--rainbow); border-radius: 3px; margin-bottom: 26px; opacity: .9; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); max-width: var(--max); margin: 0 auto; }
.foot img { height: 30px; width: auto; }

/* Shared page hero */
.page-hero { padding: 22vh 0 6vh; }
.page-hero .lead { margin-top: 28px; max-width: 700px; color: var(--ink-2); font-weight: 300; }
.section { padding: 12vh 0 4vh; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 4vw; flex-wrap: wrap; margin-bottom: 34px; }
.section-head .body { max-width: 480px; }
.h-bold { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 3vw, 46px); line-height: 1.04; letter-spacing: -.045em; margin: 0; }
.glass { border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); background: rgba(255,255,255,.03); }
.cursor { display: none; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav-links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 8px; background: rgba(0,0,0,.92); backdrop-filter: blur(16px); opacity: 0; pointer-events: none; transition: opacity .4s; }
  .nav-links a { font-family: var(--f-display); font-size: 26px; font-weight: 300; color: #fff; }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .menu-btn { display: block; }
  .nav .btn-sm { display: none; }
  .nav-logo img { height: 30px; }
  .kpis { grid-template-columns: 1fr; }
  .viz-row { grid-template-columns: 1fr; }
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
