/* ---------- 2026-11-29: fresh look ----------
   A top bar instead of the side menu, Home as a grid of tiles, Geist type with mono labels.
   Brand blue for actions, coral for what needs the person, near-black ink for the results tile.
   Flat: hairline borders, no glass, no rainbow gradients. Loaded last, after every other stylesheet. */
:root {
  --bg: #F3F3F1; --sheet: #F3F3F1; --surface: #FFFFFF; --surface-2: #F6F6F3; --line: #E6E6E2; --line-2: #D3D3CD;
  --fg: #0E0F13; --muted: #6C6F78; --ink-2: #2A2C33; --on-accent: #FFFFFF;
  --indigo: #3D4BD8; --indigo-2: #2F3BB8; --blue-soft: #ECEEFD; --coral: #FF6B4A; --coral-ink: #C2401F; --coral-soft: #FFEDE7;
  --good: #178A4C; --good-soft: #E4F4EA; --warn: #93610A; --warn-soft: #FFF3D6; --bad: #B3261E; --bad-soft: #FCE8E6;
  --ink: #0E0F13; --ink-fg: #FFFFFF; --ink-muted: #9A9DA8; --ink-line: rgba(255,255,255,.12);
  --hero: #0E0F13; --hero-2: #0E0F13; --hero-fg: #FFFFFF; --hero-muted: #A3A6B0; --hero-line: rgba(255,255,255,.12); --hero-accent: #FF8A6B;
  --radius: 18px; --tile: 22px;
  --font: Geist, Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --head: Geist, Inter, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0B0C0F; --sheet: #0B0C0F; --surface: #15161B; --surface-2: #1C1D23; --line: #26272F; --line-2: #383A44;
  --fg: #EDEEF2; --muted: #9A9DA8; --ink-2: #D6D8DF; --on-accent: #FFFFFF;
  --indigo: #8F99FF; --indigo-2: #A8B0FF; --blue-soft: #1E2142; --coral: #FF7A5C; --coral-ink: #FF9C85; --coral-soft: #33201B;
  --good: #5FD08F; --good-soft: #142A1D; --warn: #F2BE5C; --warn-soft: #30260F; --bad: #FF8F84; --bad-soft: #3A1916;
  --ink: #1C1D24; --hero: #1C1D24; --hero-2: #1C1D24;
} }
:root[data-theme="dark"] {
  --bg: #0B0C0F; --sheet: #0B0C0F; --surface: #15161B; --surface-2: #1C1D23; --line: #26272F; --line-2: #383A44;
  --fg: #EDEEF2; --muted: #9A9DA8; --ink-2: #D6D8DF; --on-accent: #FFFFFF;
  --indigo: #8F99FF; --indigo-2: #A8B0FF; --blue-soft: #1E2142; --coral: #FF7A5C; --coral-ink: #FF9C85; --coral-soft: #33201B;
  --good: #5FD08F; --good-soft: #142A1D; --warn: #F2BE5C; --warn-soft: #30260F; --bad: #FF8F84; --bad-soft: #3A1916;
  --ink: #1C1D24; --hero: #1C1D24; --hero-2: #1C1D24;
}
body { background: var(--bg); font-feature-settings: normal; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.03em; }
h2 { font-weight: 600; }

/* Frame: top bar, then the page at full width */
.shell.tb { display: block; min-height: 100vh; background: var(--bg); }
.tbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 36px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); }
.tbar .brand { margin: 0 14px 0 0; font: 700 19px var(--head); letter-spacing: -.035em; display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; flex: none; }
.tbar .brand img { width: 28px; height: 28px; }
.pills { display: flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pills a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; }
.pills a:hover { color: var(--fg); background: var(--surface-2); }
.pills a.on { background: var(--fg); color: var(--bg); }
.pills .count { background: var(--coral); color: #fff; font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; }
.tsp { flex: 1; }
.tbar .modesw { flex: none; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.tbar .modesw button { border-radius: 999px; font-family: var(--font); }
.modesw button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0,.06); }
.tbar .jump { margin: 0; width: auto; border-radius: 999px; background: var(--surface); }
.menu { position: relative; flex: none; }
.menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.menu > summary::-webkit-details-marker { display: none; }
.bizmenu > summary { padding: 7px 12px 7px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; max-width: 240px; }
.bizmenu > summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bizmenu .chev { width: 16px; height: 16px; flex: none; color: var(--muted); }
.usermenu > summary { border-radius: 50%; }
.usermenu > summary:focus-visible, .bizmenu > summary:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.menu .drop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; max-height: 70vh; overflow: auto; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(14,15,19,.14); display: grid; gap: 1px; }
.menu .drop a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--fg); text-decoration: none; font-size: 14px; font-weight: 500; box-shadow: none; }
.menu .drop a:hover { background: var(--surface-2); }
.menu .drop a.on { background: var(--surface-2); color: var(--fg); font-weight: 650; box-shadow: none; }
.menu .drop a > span:not(.count) { flex: 1; }
main, :root[data-mode="expert"] main { background: transparent; border: 0; margin: 0 auto; border-radius: 0; padding: 4px 36px 72px; max-width: 1440px; min-height: 0; }
.topbar { position: static; background: transparent; border: 0; margin: 0 0 6px; padding: 6px 0 0; border-radius: 0; }
.crumb { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.crumb b { color: var(--fg); font-weight: 500; }
main > .topbar:has(.crumb > b:only-child) { display: none; }

/* Type */
.hello { margin: 18px 0 24px; }
.hello h1 { font: 700 44px/1.06 var(--head); letter-spacing: -.045em; margin: 0 0 10px; }
.hello h1 span { color: var(--muted); }
.hello p { font-size: 16px; }
h1 { font-weight: 700; letter-spacing: -.04em; font-size: 32px; }
:root[data-mode="expert"] h1 { font-size: 28px; }
:root[data-mode="expert"] .hello h1 { font-size: 34px; }
.eyebrow, .tlab, .nav .sep { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.eyebrow { color: var(--coral-ink); }
.kpi b, .nums b, .strip .cell b, .imp-big b, .big, .hero-nums dd, .sum-nums dd { font-family: var(--head) !important; font-weight: 600 !important; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

/* Surfaces and controls */
.card { border-radius: var(--radius); border-color: var(--line); box-shadow: none; }
.card:hover { border-color: var(--line); }
.btn { border-radius: 999px; font-weight: 600; }
.btn.primary { background: var(--fg); border-color: var(--fg); color: var(--bg); box-shadow: none; }
.btn.primary:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn.coral { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn:hover { border-color: var(--fg); color: var(--fg); }
.btn.on { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn.white { background: #fff; border-color: #fff; color: #0E0F13; }
.btn.white:hover { background: #fff; color: #0E0F13; border-color: #fff; opacity: .92; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn.ghost:hover { border-color: #fff; color: #fff; }
.pill { border-radius: 6px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.tabs { gap: 4px; border: 0; margin: 6px 0 16px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; }
.tabs a { border: 0 !important; border-radius: 999px; padding: 7px 14px; font-weight: 500; color: var(--muted); }
.tabs a:hover { color: var(--fg); }
.tabs a.on { background: var(--fg); color: var(--bg) !important; }
.subtabs a.on { color: var(--fg); }
.toggle a.on { background: var(--fg); color: var(--bg); }
input, select, textarea { border-radius: 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--fg); outline: none; }

/* Home tiles */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.tile { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--tile); padding: 22px; min-width: 0; }
.tlab { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); }
.tag { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); white-space: nowrap; }
.tag.good { background: var(--good-soft); color: var(--good); }
.tile.results { grid-column: span 8; grid-row: span 2; background: var(--ink); color: var(--ink-fg); border: 0; padding: 28px 28px 0; display: flex; flex-direction: column; min-height: 440px; }
.tile.results .tlab { color: var(--ink-muted); }
.tile.results .tag { background: rgba(255,190,90,.16); color: #FFD08A; }
.tile.results h2 { font: 600 32px/1.16 var(--head); letter-spacing: -.035em; margin: 18px 0 0; max-width: 24ch; color: #fff; }
.tile.results h2 b { color: var(--hero-accent); font-weight: 600; }
.tnums { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 26px 0 0; }
.tnums dt { font-size: 13px; color: var(--ink-muted); }
.tnums dd { margin: 4px 0 2px; font: 600 40px/1 var(--head); letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: #fff; }
.tnums .up { color: #7BE0A6; font-weight: 600; font-size: 13px; } .tnums .down { color: #FFA897; font-weight: 600; font-size: 13px; }
.tnote { margin: 18px 0 0; font-size: 13px; color: var(--ink-muted); max-width: 60ch; }
.tchart { display: block; width: calc(100% + 56px); height: 150px; margin: auto -28px 0; padding-top: 20px; }
.tchart .ta { fill: rgba(255,107,74,.18); } .tchart .tl { fill: none; stroke: #FF7A5C; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.tile.ok { grid-column: span 4; display: flex; flex-direction: column; }
.tile.ok h3 { font: 600 24px/1.18 var(--head); letter-spacing: -.03em; margin: 14px 0 6px; }
.tile.ok p { margin: 0 0 16px; }
.tile.ok .row { margin-top: auto; }
.tile.coral { background: var(--coral); color: #fff; border: 0; }
.tile.coral .tlab { color: rgba(255,255,255,.85); }
.tile.coral p { color: rgba(255,255,255,.92); }
.tile.coral .tmore { color: #fff; }
.tile.calm h3 { color: var(--fg); }
.tile.calm p { color: var(--muted); }
.tile.calm .btn { margin-top: auto; align-self: flex-start; }
.tile.feedt { grid-column: span 4; }
.tmore { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--fg); }
.feed { list-style: none; padding: 0; margin: 12px 0 0; }
.feed li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.feed li:first-child { border-top: 0; }
.feed i { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 13px; background: var(--blue-soft); color: var(--indigo); }
.feed i.good { background: var(--good-soft); color: var(--good); }
.feed small { display: block; color: var(--muted); font-size: 12.5px; }
.feedt > .muted { margin: 12px 0 0; font-size: 14px; }

/* Getting started as a wide tile with the steps side by side */
.firstrun { border-radius: var(--tile); box-shadow: none; padding: 22px; display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); gap: 24px; align-items: stretch; margin-bottom: 14px; }
.fr-head { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
.fr-head h2 { font: 600 22px/1.2 var(--head); letter-spacing: -.03em; }
.fr-head p { font-size: 14px; }
.fr-bar { width: 100%; height: 6px; border-radius: 99px; } .fr-bar span { background: var(--good); border-radius: 99px; }
.fr-steps { margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.fr-steps li { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px; border: 0; border-radius: 14px; background: var(--surface-2); min-height: 128px; }
.fr-steps li b { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.fr-steps li .pill { display: none; }
.fr-steps li > .btn { white-space: nowrap; }
.fr-n { width: auto; height: auto; background: none !important; box-shadow: none !important; font: 500 12px var(--mono); color: var(--muted); }
.fr-steps li.done { background: var(--good-soft); }
.fr-steps li.done .fr-n, .fr-steps li.done b { color: var(--good); }
.fr-steps li.done b { text-decoration: none; font-weight: 600; }
.fr-steps li.now { grid-column: span 2; background: #3D4BD8; color: #fff; padding: 16px; }
.fr-steps li.now .fr-n { color: rgba(255,255,255,.75); }
.fr-steps li.now p { color: rgba(255,255,255,.85); font-size: 13px; }
.fr-steps li.now .btn.primary { background: #fff; border-color: #fff; color: #2F3BB8; }

/* Business tiles */
.bizgrid { gap: 14px; }
.bizcard { border-radius: var(--tile); padding: 22px; gap: 14px; transition: border-color .15s, transform .15s; }
.bizcard:hover { border-color: var(--fg); transform: translateY(-1px); }
.bizcard h3 { font: 600 20px var(--head); letter-spacing: -.03em; }
.bizcard .nums { display: flex; gap: 28px; }
.bizcard .nums b { font-size: 30px; line-height: 1.05; }
.bizcard .sp.wide { width: 100%; } .bizcard .sp.wide svg { width: 100%; height: 44px; }
.bizcard .say { margin: 0; padding: 10px 12px; background: var(--surface-2); border-radius: 12px; font-size: 14px; }
.grade { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 700 18px var(--head); }
.grade.gA { background: var(--good-soft); color: var(--good); } .grade.gB { background: var(--blue-soft); color: var(--indigo); }
.grade.gC { background: var(--warn-soft); color: var(--warn); } .grade.gD { background: var(--coral-soft); color: var(--coral-ink); }
.grade.gn { background: var(--surface-2); color: var(--muted); }
.block > .row h2 { font-size: 20px; }

/* Business summary: the results panel matches the Home tile */
.hero { border-radius: var(--tile); background: var(--hero); }
.hero::before { background: none; }
.hero h2 { font: 600 32px/1.16 var(--head); letter-spacing: -.035em; }
.hero h2 b { font-weight: 600; }
.hero-kicker, .hero-tag { font-family: var(--mono); font-weight: 500; }
.bizhead h1 { font-size: 34px; letter-spacing: -.04em; }
.strip { border-radius: var(--radius); }
.strip .cell > span { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.imp-big { border-radius: 16px; }
.chart .ln { stroke: var(--fg); } .chart .area { fill: var(--fg); opacity: .05; }
.chart .bar { fill: var(--coral); opacity: .75; }
.lg.ln { background: var(--fg); } .lg.bc { background: var(--coral); }
.chart .tip { border-radius: 12px; }

/* Sign-in */
body:has(.auth) { background: var(--bg); }
body:has(.auth)::before { display: none; }
.auth.card { border-radius: 24px; padding: 32px; }
.auth h1 { font-size: 30px; }

/* Narrower screens */
@media (max-width: 1100px) {
  .tile.results { grid-column: span 12; grid-row: auto; min-height: 380px; }
  .tile.ok, .tile.feedt { grid-column: span 6; }
  .firstrun { grid-template-columns: 1fr; }
  .fr-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .tbar { flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
  .tbar .brand { margin-right: auto; }
  .tsp { display: none; }
  .tbar .jump { display: none; }
  .pills { order: 5; flex: 1 1 calc(100% - 150px); min-width: 0; }
  .tbar .modesw { order: 6; }
  .tbar .modesw button { padding: 5px 9px; }
  .bizmenu > summary { max-width: 150px; }
  .menu .drop { position: fixed; left: 12px; right: 12px; top: 64px; min-width: 0; }
  main, :root[data-mode="expert"] main { padding: 4px 16px 56px; }
  .hello h1 { font-size: 32px; }
  .bento { gap: 10px; }
  .tile.ok, .tile.feedt { grid-column: span 12; }
  .tile.results { padding: 22px 20px 0; min-height: 0; }
  .tile.results h2 { font-size: 24px; }
  .tnums { gap: 12px 26px; } .tnums dd { font-size: 30px; }
  .tchart { width: calc(100% + 40px); margin: 20px -20px 0; height: 110px; }
  .fr-steps { grid-template-columns: 1fr; }
  .fr-steps li { min-height: 0; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .fr-steps li > div { flex: 1 1 calc(100% - 40px); }
  .fr-steps li.now { grid-column: auto; }
  .tabs { width: auto; }
}

/* Full width inside the page frame */
main > :not(.topbar) { max-width: none; }
.bizgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.bizmenu > summary, .menu > summary { color: var(--fg); }
.tile.calm .nextstep { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.tile.calm .nextstep small { display: block; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.tile.calm .nextstep b { display: block; margin-bottom: 12px; }

/* Laptop widths: the search shrinks to its icon so the main pills never get cut off */
@media (max-width: 1400px) { .tbar .jump span, .tbar .jump kbd { display: none; } .tbar .jump { padding: 8px 10px; } }
