/* Tallyscope marketing pages. Mobile-first, no external fonts (system stack). Every rule is scoped to .site (landing pages) or .seo-shell (the fallback inside the app's #root), because the app's own CSS also defines .btn, .card and .chip. */
.site,.seo-shell{--bg:#f4f2ed;--surface:#fff;--surface2:#faf9f6;--line:#e2ded4;--line2:#cfc9bb;--ink:#0e2038;--ink2:#4a5a70;--accent:#0f9b86;--accentfg:#0b7565;--accentsoft:#e0f3ef;--amber:#f2a62e;--warnbg:#fdf1d9;--warn:#7a5200}
.site,.seo-shell{margin:0;background:var(--bg);color:var(--ink);font:16px/1.65 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased}
.site *,.seo-shell *{box-sizing:border-box}
:is(.site,.seo-shell) a{color:var(--accentfg);text-underline-offset:2px}
:is(.site,.seo-shell) a:hover{color:var(--ink)}
:is(.site,.seo-shell) :focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}
:is(.site,.seo-shell) .skip{position:absolute;left:-999px;top:0;background:var(--ink);color:#fff;padding:8px 12px;z-index:10}
:is(.site,.seo-shell) .skip:focus{left:8px;top:8px}
:is(.site,.seo-shell) .wrap{max-width:1040px;margin:0 auto;padding:0 16px}
:is(.site,.seo-shell) .hdr{background:var(--surface);border-bottom:1px solid var(--line)}
:is(.site,.seo-shell) .hdr .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;padding-top:10px;padding-bottom:10px}
:is(.site,.seo-shell) .brand{display:flex;align-items:center;gap:9px;font-weight:700;font-size:18px;color:var(--ink)!important;text-decoration:none}
:is(.site,.seo-shell) .brand img{width:30px;height:30px;display:block}
:is(.site,.seo-shell) .nav{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:14px}
:is(.site,.seo-shell) .nav a{color:var(--ink2);text-decoration:none;padding:4px 0}
:is(.site,.seo-shell) .nav a:hover,:is(.site,.seo-shell) .nav a[aria-current=page]{color:var(--ink);text-decoration:underline}
:is(.site,.seo-shell) .btn{display:inline-block;background:var(--accent);color:var(--ink)!important;font-weight:600;text-decoration:none;border-radius:7px;padding:11px 20px;border:1px solid var(--accent)}
:is(.site,.seo-shell) .btn:hover{filter:brightness(1.1)}
:is(.site,.seo-shell) .btn.alt{background:var(--surface);border-color:var(--line2)}
:is(.site,.seo-shell) .btn.sm{padding:7px 14px;font-size:14px}
:is(.site,.seo-shell) .crumbs{font-size:13px;color:var(--ink2);padding:14px 0 0}
:is(.site,.seo-shell) .crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px}
:is(.site,.seo-shell) .crumbs li+li::before{content:"/";margin-right:4px;color:var(--line2)}
:is(.site,.seo-shell) .hero{padding:28px 0 20px}
:is(.site,.seo-shell) h1{font-size:clamp(28px,5vw,42px);line-height:1.15;margin:8px 0 14px;letter-spacing:-.01em}
:is(.site,.seo-shell) h2{font-size:clamp(21px,3.2vw,26px);line-height:1.25;margin:34px 0 10px}
:is(.site,.seo-shell) h3{font-size:17px;margin:20px 0 6px}
:is(.site,.seo-shell) .lead{font-size:18px;color:var(--ink2);max-width:46em;margin:0 0 20px}
:is(.site,.seo-shell) .cta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:18px 0}
:is(.site,.seo-shell) .note{font-size:14px;color:var(--ink2)}
:is(.site,.seo-shell) main p,:is(.site,.seo-shell) main li{max-width:46em}
:is(.site,.seo-shell) main ul,:is(.site,.seo-shell) main ol{padding-left:22px}
:is(.site,.seo-shell) main li{margin:4px 0}
:is(.site,.seo-shell) .card{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px 18px;margin:16px 0}
:is(.site,.seo-shell) .card.warn{background:var(--warnbg);border-color:#ecd08f;color:var(--warn)}
:is(.site,.seo-shell) .grid{display:grid;gap:12px;grid-template-columns:1fr}
:is(.site,.seo-shell) .grid .card{margin:0}
:is(.site,.seo-shell) .table-wrap{overflow-x:auto;margin:16px 0}
:is(.site,.seo-shell) table{border-collapse:collapse;width:100%;font-size:14.5px;background:var(--surface)}
:is(.site,.seo-shell) th,:is(.site,.seo-shell) td{border:1px solid var(--line);padding:8px 10px;text-align:left;vertical-align:top}
:is(.site,.seo-shell) th{background:var(--surface2)}
:is(.site,.seo-shell) td.n,:is(.site,.seo-shell) th.n{text-align:right;font-variant-numeric:tabular-nums}
:is(.site,.seo-shell) .ok{color:#0b7565;font-weight:600}.bad{color:#b3391a;font-weight:600}
:is(.site,.seo-shell) details{background:var(--surface);border:1px solid var(--line);border-radius:8px;margin:8px 0;padding:0 14px}
:is(.site,.seo-shell) summary{cursor:pointer;font-weight:600;padding:12px 0}
:is(.site,.seo-shell) details[open] summary{border-bottom:1px solid var(--line);margin-bottom:8px}
:is(.site,.seo-shell) details p{margin:0 0 12px}
:is(.site,.seo-shell) .related ul{list-style:none;padding:0;display:grid;gap:8px;grid-template-columns:1fr}
:is(.site,.seo-shell) .related li{margin:0;max-width:none}
:is(.site,.seo-shell) .related a{display:block;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:10px 14px;text-decoration:none;font-weight:600}
:is(.site,.seo-shell) .related a small{display:block;font-weight:400;color:var(--ink2)}
:is(.site,.seo-shell) .band{background:var(--ink);color:#eaf0f6;border-radius:12px;padding:22px 20px;margin:36px 0 10px}
:is(.site,.seo-shell) .band h2{margin:0 0 6px;color:#fff}.band p{margin:0 0 14px;color:#c4d0de}
:is(.site,.seo-shell) .band .btn{color:var(--ink)!important}
:is(.site,.seo-shell) .ftr{border-top:1px solid var(--line);background:var(--surface);margin-top:44px;padding:26px 0;font-size:14px;color:var(--ink2)}
:is(.site,.seo-shell) .ftr .cols{display:grid;gap:18px;grid-template-columns:1fr}
:is(.site,.seo-shell) .ftr h2{font-size:13px;text-transform:uppercase;letter-spacing:.06em;margin:0 0 8px;color:var(--ink)}
:is(.site,.seo-shell) .ftr ul{list-style:none;padding:0;margin:0}.ftr li{margin:3px 0}
:is(.site,.seo-shell) .ftr a{color:var(--ink2)}
:is(.site,.seo-shell) .meta{font-size:13px;color:var(--ink2)}
:is(.site,.seo-shell) code,:is(.site,.seo-shell) kbd{font:13.5px ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--surface2);border:1px solid var(--line);border-radius:4px;padding:1px 5px}
:is(.site,.seo-shell) pre{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:12px 14px;overflow-x:auto;font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace}
@media(min-width:640px){:is(.site,.seo-shell) .grid{grid-template-columns:1fr 1fr}:is(.site,.seo-shell) .related ul{grid-template-columns:1fr 1fr}:is(.site,.seo-shell) .ftr .cols{grid-template-columns:repeat(4,1fr)}}
@media(min-width:900px){:is(.site,.seo-shell) .grid.three{grid-template-columns:repeat(3,1fr)}:is(.site,.seo-shell) .hero{padding:44px 0 26px}}
@media(prefers-reduced-motion:reduce){:is(.site,.seo-shell) *{scroll-behavior:auto!important}}
/* crawlable fallback inside the app's #root (index.html); React replaces it on mount */
:is(.site,.seo-shell) .seo-shell{min-height:100vh}
.seo-shell main{max-width:1040px;margin:0 auto;padding:8px 16px 40px}


/* App page (index.html) only: the static shell inside #root is for crawlers and no-JS readers. With scripting on it is hidden so there is no flash before React mounts; the landing pages (body.site) are not inside #root and are unaffected. */
#root>.seo-shell{display:none}
@media (scripting:none){#root>.seo-shell{display:block}}
/* Boot background for the app page, matching src/index.css --bg (light). A stored dark choice cannot be read before JS runs, so those visitors see a brief light boot colour. */
/* :where() keeps specificity at zero so the app's own body background always wins once loaded. */
:where(body:not(.site)){background:#f4f2ed}
