/* Growth Score static report · Leadio design system v1.0 tokens, owner density.
   One deliberate light look (no dark theme): white page, a single reading column, sections separated by space and hairlines.
   Boxes only where an object must stand apart (the number one move, the answer reader). Status = a dot and a word. */
:root {
  color-scheme: light;
  --blue-700: #3568c3; --blue-500: #528ff5; --blue-300: #95b7f7; --blue-100: #dce8fd; --blue-50: #ecf3fe;
  --green-700: #247a49; --green-500: #33ae68; --green-300: #91d6af; --green-100: #ddf3e7; --green-50: #f2faf5;
  --gold-700: #84650e; --gold-500: #bf9315; --gold-300: #ddc57b; --gold-100: #f2e9cc; --gold-50: #fbf8ee;
  --error-700: #b63b46; --error-500: #e6535d; --error-300: #f29aa1; --error-100: #f9dadd; --error-50: #fff1f2;
  --insight-700: #6d4c91; --insight-500: #8d67b5;
  --n900: #121826; --n800: #1e293b; --n600: #475569; --n500: #64748b; --n400: #94a3b8; --n300: #cbd5e1; --n200: #d9e0ea; --n100: #eef2f7; --n50: #f7f9fc;

  --bg: #ffffff; --soft: var(--n50); --line: #e6ebf1; --line-2: var(--n300);
  --fg: var(--n800); --fg-strong: var(--n900); --muted: var(--n600); --subtle: var(--n500);
  --link: var(--blue-700); --primary: var(--blue-700); --focus: var(--blue-500); --value: var(--gold-700);
  --ok: var(--green-500); --ok-ink: var(--green-700);
  --warn: var(--gold-500); --warn-ink: var(--gold-700);
  --bad: var(--error-500); --bad-ink: var(--error-700);
  --info: var(--blue-500); --info-ink: var(--blue-700);
  --none: var(--n400); --none-ink: var(--n600);
  --ai-ink: var(--insight-700); --ai-dot: var(--insight-500);
  --heat-1: #5cc48a; --heat-2: #e7d496; --heat-3: #f5b6bb; --heat-0: var(--n100); --heat-ink: var(--n900); --heat-0-ink: var(--n500);
  --series: var(--blue-500); --series-2: var(--n400); --grid: var(--n100);
  --map-land: #f3f6fa; --map-water: #e4edfb; --map-road: #ffffff; --map-ring: var(--blue-300);

  --font-ui: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-sm: 8px; --r-md: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--font-ui); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--fg-strong); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; }
h1, h2, h3 { color: var(--fg-strong); margin: 0; text-wrap: balance; }
h1 { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.005em; }
h3 { font-size: 16px; line-height: 1.4; font-weight: 600; }
p { margin: 0; max-width: 64ch; }
.num, td { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 13px; }
.cap { font-size: 13px; line-height: 1.45; color: var(--subtle); }
.muted { color: var(--muted); }
.lede { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }

/* Shell */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.topbar-in, .tabs, .wrap { max-width: 980px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.topbar-in { padding-block: 12px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg-strong); min-width: 0; }
.brand b { font-size: 15px; font-weight: 600; }
.brand span { font-size: 13px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1 1 auto; }
.tabs { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 8px 0 10px; border-bottom: 2px solid transparent; color: var(--subtle); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.tab:hover { color: var(--fg-strong); }
.tab[aria-current="page"] { color: var(--fg-strong); border-bottom-color: var(--fg-strong); }
.wrap { padding-block: 40px 120px; display: flex; flex-direction: column; gap: 56px; }
.view { display: flex; flex-direction: column; gap: 56px; }
.section { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.section + .section { padding-top: 0; }
.rule { border-top: 1px solid var(--line); padding-top: 40px; }
.intro { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 40px 48px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap-row { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* The few boxes */
.box { background: var(--soft); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.box.blue { background: var(--blue-50); }
.note { font-size: 14px; color: var(--muted); background: var(--soft); border-radius: var(--r-sm); padding: 10px 14px; }
.note.sample { background: var(--gold-50); color: var(--gold-700); }

/* Status: a dot and a word */
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: currentColor; flex: none; }
.st.ok { color: var(--ok-ink); } .st.warn { color: var(--warn-ink); } .st.bad { color: var(--bad-ink); } .st.info { color: var(--info-ink); } .st.none { color: var(--none-ink); }
.st.ok::before { background: var(--ok); } .st.warn::before { background: var(--warn); } .st.bad::before { background: var(--bad); } .st.info::before { background: var(--info); } .st.none::before { background: var(--none); }
.ai-by { font-size: 13px; color: var(--ai-ink); display: inline-flex; gap: 7px; align-items: center; }
.ai-by::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--ai-dot); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); font: 500 15px/1 var(--font-ui); text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { color: #fff; background: #2d5aab; }
.btn-secondary { background: #fff; color: var(--fg); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--subtle); color: var(--fg-strong); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; color: var(--fg); font: 500 14px var(--font-ui); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--fg-strong); color: #fff; border-color: var(--fg-strong); }
.tag { display: inline-flex; padding: 3px 10px; border-radius: 99px; font-size: 13px; background: var(--soft); color: var(--muted); }

/* Numbers */
.score { font-size: 88px; line-height: .9; font-weight: 600; letter-spacing: -.04em; color: var(--fg-strong); }
.num-lg { font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; color: var(--fg-strong); }
.of { font-size: 15px; font-weight: 500; color: var(--subtle); letter-spacing: 0; }
.value { color: var(--value); }
.bar { height: 6px; border-radius: 99px; background: var(--n100); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--series); }

/* Score parts list */
.parts { display: flex; flex-direction: column; }
.part { display: grid; grid-template-columns: minmax(150px, 1.1fr) 64px minmax(80px, 1fr) minmax(0, 2.2fr); gap: 8px 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.part:first-child { border-top: 1px solid var(--line); }
.part:hover .pname { color: var(--link); }
.pname { font-weight: 600; color: var(--fg-strong); }
.ppts { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; color: var(--fg-strong); }
.ppts span { color: var(--subtle); font-weight: 400; }
.pfind { font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .part { grid-template-columns: 1fr auto; } .part .bar { grid-column: 1 / -1; } .part .pfind { grid-column: 1 / -1; } }

/* Tables */
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th { text-align: left; font-size: 13px; font-weight: 500; color: var(--subtle); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.you td { font-weight: 600; color: var(--fg-strong); }
td.r, th.r { text-align: right; }

/* Simple lists */
.list { display: flex; flex-direction: column; }
.li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.li:first-child { border-top: 1px solid var(--line); }
.li .x { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }

/* Maps */
.heat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: 100%; max-width: 168px; }
.heat .c { aspect-ratio: 1; border-radius: 7px; display: flex; align-items: center; justify-content: center; font: 600 14px var(--font-mono); color: var(--heat-ink); }
.h1 { background: var(--heat-1); } .h2 { background: var(--heat-2); } .h3 { background: var(--heat-3); } .h0 { background: var(--heat-0); color: var(--heat-0-ink) !important; }
.heat .c.me { box-shadow: inset 0 0 0 2px var(--fg-strong); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }

/* AI */
.matrix { display: grid; grid-template-columns: minmax(220px, 1.7fr) repeat(4, minmax(104px, 1fr)); min-width: 680px; }
.matrix > div { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.matrix .mh { font-size: 13px; color: var(--subtle); font-weight: 500; }
.cellbtn { width: 100%; text-align: left; border: 1px solid transparent; background: transparent; border-radius: var(--r-sm); padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.cellbtn:hover { background: var(--soft); }
.cellbtn[aria-pressed="true"] { background: var(--blue-50); border-color: var(--blue-100); }
.answer { background: var(--soft); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.answer blockquote { margin: 0; font-size: 17px; line-height: 1.65; color: var(--fg); max-width: 66ch; }
.answer mark { background: transparent; color: var(--fg-strong); font-weight: 600; }
.answer mark.you { background: var(--green-100); padding: 0 3px; border-radius: 3px; }

/* Plan */
.plan-item { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.plan-item:first-child { border-top: 1px solid var(--line); }
.plan-item input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--green-700); }
.plan-item .title { font-size: 17px; font-weight: 600; color: var(--fg-strong); }
.plan-item.done .title { color: var(--subtle); text-decoration: line-through; }
details > summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--link); width: fit-content; list-style-position: inside; }
details ol { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
details.how { border-top: 1px solid var(--line); padding-top: 18px; }
details.how > summary { color: var(--muted); }
details.how .qa { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
details.how .qa p { font-size: 15px; color: var(--muted); }
.src { font-size: 13px; color: var(--subtle); }

/* CTA */
.cta { border-top: 1px solid var(--line); padding-top: 40px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.cta p { color: var(--muted); }

/* Outline screenshots */
.shot { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; margin: 0; }
.shot-bar { height: 24px; background: var(--soft); display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.shot-bar i { width: 7px; height: 7px; border-radius: 99px; background: var(--n300); }
.shot-bar span { font: 11px var(--font-mono); color: var(--subtle); margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

footer.foot { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: var(--subtle); }

@media (max-width: 640px) {
  h1 { font-size: 26px; }
  .score { font-size: 72px; }
  .wrap, .view { gap: 44px; }
  .topbar .hide-sm { display: none; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .topbar, .no-print { display: none !important; } }
