/* ─────────────────────────────────────────────────────────────────────────
   OmniBiz's website (omnibizph.com): what every page of it shares, the tokens, the buttons, the
   header and the footer. index.html and tour/index.html both load it, so the tour is a page of the
   site rather than a site of its own. Each page's own layout is in its own file
   (marketing/landing.css, tour/tour.css).

   Copied from OmniCare's website (sandiwacare.com, itself OmniDental's shape): white panels
   separated by 1px lines on a light page, and colour only for what you press. Since 2026-11-28 in
   OmniBiz's own look, so it no longer reads like the clinics' (projects/shared/src/lib/ui/base.css):
   warm paper and ink greys, money green for what you press, marigold for what's on the dark hero,
   a ledger's crisp corners, Bricolage Grotesque for the headlines and Inter for the rest.

   Plain CSS for plain HTML: it ships from nginx with no build. The token names start --s- to stay
   clear of tour/tour.css's (--ink, --line, … there), because the tour's page loads both.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --s-ink: #1d1a16; --s-ink-2: #463f36; --s-ink-3: #5c554a; --s-ink-4: #7a7264;
  --s-line: #e7e1d5; --s-line-2: #d6cebf;
  --s-canvas: #f7f4ee;
  --s-brand: #1b6136; --s-brand-hover: #16502d; --s-brand-50: #eef7f0;
  --s-glow: #f9bb3b; --s-glow-hover: #e9a11a;
  --s-wrap: 92rem;
  --header: 4.5rem;
  --s-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --s-display: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.site {
  margin: 0; background: #fffdf8; color: var(--s-ink); font-family: var(--s-sans);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* The page's defaults carry no weight (:where), so every section's own rule wins over them. */
:where(.site) img { max-width: 100%; height: auto; display: block; }
:where(.site) a { color: var(--s-brand-hover); }
:where(.site) :is(h1, h2, h3, h4) { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
:where(.site) p { margin: 0; }
/* The headline face: the app's Bricolage Grotesque. */
.display { font-family: var(--s-display); font-weight: 700; letter-spacing: -.025em; }
.wrap { max-width: var(--s-wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 40rem) { .wrap { padding: 0 1.5rem; } }
@media (min-width: 64rem) { .wrap { padding: 0 2.5rem; } }
/* The sheet: warm paper ruled like a columnar pad, the notebook OmniBiz replaces, edge to edge. */
.sheet {
  background-color: #f7f1e3;
  background-image:
    linear-gradient(to right, rgb(122 90 40 / .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(122 90 40 / .07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.site :focus-visible { outline: 3px solid var(--s-brand); outline-offset: 2px; border-radius: .35rem; }

/* ── Buttons: money green is what you press; marigold on the dark hero (.s-btn: tour.css has its own .btn) ── */
.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 0; border-radius: .5rem; padding: .7rem 1.15rem; cursor: pointer; white-space: nowrap;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease, color .15s ease;
}
.s-btn-primary { background: var(--s-brand); color: #fff; }
.s-btn-primary:hover { background: var(--s-brand-hover); }
.s-btn-secondary { background: #fff; color: var(--s-ink); box-shadow: inset 0 0 0 1px var(--s-line-2); }
.s-btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--s-brand); color: var(--s-brand-hover); }
.s-btn-quiet { background: transparent; color: var(--s-ink); }
.s-btn-quiet:hover { background: var(--s-canvas); }
.s-btn-lg { padding: .9rem 1.5rem; font-size: 1.02rem; border-radius: .55rem; }
.s-btn-sm { padding: .5rem .9rem; font-size: .9rem; }

/* The header and footer carry their own type, because the tour's page (tour.css) sets its own. */
.site-header, .site-footer { font-family: var(--s-sans); line-height: 1.6; color: var(--s-ink); -webkit-font-smoothing: antialiased; }
.site-header *, .site-footer * { box-sizing: border-box; }
.footer-brand img { display: block; height: auto; }

/* ── Header: a white bar with a line under it, on every page and at every scroll position ───── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header);
  background: rgb(255 255 255 / .92); backdrop-filter: saturate(160%) blur(10px); box-shadow: 0 1px 0 var(--s-line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.site-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--s-ink); text-decoration: none; font-weight: 700; font-size: 1.12rem; white-space: nowrap; }
/* The app's mark: four bars, as on the sign-in pages and the app's icon. */
.site-brand .tile { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .55rem; background: var(--s-brand); color: #ffd27a; flex: none; }
.site-brand .tile svg { width: 1.3rem; height: 1.3rem; }
.site-nav { display: none; gap: 1.75rem; margin-left: 1rem; }
.site-nav a { color: var(--s-ink-2); font-size: .94rem; font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--s-brand-hover); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.wide-only { display: none !important; }
@media (min-width: 48rem) { .wide-only { display: inline-flex !important; } }
@media (min-width: 64rem) { .site-nav { display: flex; } }
/* On a large monitor the landing page's hero widens to 116rem; the header widens with it on every
   page, so the brand lines up with what is under it. */
@media (min-width: 100rem) { .site-header .wrap { max-width: 116rem; } }

/* Footer: quiet, on white. */
:where(.site-footer) :is(h4, p) { margin: 0; }
.site-footer { padding: 3.5rem 0 2rem; border-top: 1px solid var(--s-line); background: #fffdf8; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; }
.footer-brand img { width: 11rem; }
.footer-blurb { margin-top: 1rem; max-width: 26rem; color: var(--s-ink-3); font-size: .93rem; }
.footer-cols { display: flex; gap: 4rem; }
.footer-col { display: grid; gap: .5rem; align-content: start; }
.footer-col h4 { font-size: .92rem; margin-bottom: .25rem; }
.footer-col a { color: var(--s-ink-2); font-size: .93rem; text-decoration: none; }
.footer-col a:hover { color: var(--s-brand-hover); }
.footer-bot { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--s-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .85rem; color: var(--s-ink-3); }
