/* LedgerBay marketing preview. One shared system; each site sets --hue on <body>.
   Rules applied: one accent per site, neutral warm-gray base, 4/8 spacing scale, type scale 1.25,
   visible focus, 44px targets, no gradients-as-decoration, no fake logos or testimonials. */
:root {
  --ink: #16181d; --ink-2: #3d424d; --muted: #646a76; --line: #e3e1dc; --paper: #fbfaf7; --panel: #ffffff; --wash: #f3f1ec;
  --ok: #1f6b3a; --bad: #a32020; --warn-bg: #fff6e0; --warn-line: #e8c770;
  --r: 10px; --r-lg: 16px; --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --f: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-0: 0.875rem; --fs-1: 1rem; --fs-2: 1.125rem; --fs-3: 1.4rem; --fs-4: 1.75rem; --fs-5: clamp(2rem, 4.6vw, 3.1rem);
}
/* Accent is resolved where --hue is set (each site's <body>), not on :root, so every site gets its own color. */
body { --accent: hsl(var(--hue, 222) 62% 38%); --accent-ink: #fff; --accent-soft: hsl(var(--hue, 222) 60% 95%); --accent-line: hsl(var(--hue, 222) 45% 82%); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 var(--fs-1)/1.6 var(--f); color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid hsl(var(--hue, 222) 80% 45%); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 var(--s4); }
h1 { font-size: var(--fs-5); font-weight: 750; }
h2 { font-size: var(--fs-4); font-weight: 700; }
h3 { font-size: var(--fs-2); font-weight: 650; }
p { margin: 0 0 var(--s4); }
.wrap { width: min(1160px, 100% - 2 * var(--s5)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--s5)); }
.muted { color: var(--muted); } .small { font-size: var(--fs-0); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: var(--s3) var(--s4); z-index: 10; }
.skip:focus { left: var(--s4); top: var(--s4); }
.preview { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); color: #5a4300; text-align: center; font-size: var(--fs-0); padding: var(--s2) var(--s4); }

/* Header */
.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 750; color: var(--ink); text-decoration: none; font-size: var(--fs-2); min-height: 44px; }
.mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); box-shadow: inset -7px -7px 0 hsl(var(--hue, 222) 62% 28%); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--s1); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); color: var(--ink-2); text-decoration: none; border-radius: 8px; }
.nav a:hover { background: var(--wash); color: var(--ink); }
.nav .lang { border: 1px solid var(--line); }
.has-sub { position: relative; }
.sub { display: none !important; position: absolute; top: 100%; left: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s2) !important; min-width: 220px; flex-direction: column; align-items: stretch !important; box-shadow: 0 10px 30px rgb(0 0 0 / .08); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex !important; }
.menu-btn { display: none; min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--line); background: var(--panel); border-radius: 8px; font: inherit; color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s5); border-radius: 999px; font-weight: 650; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: 650 var(--fs-1)/1 var(--f); }
.btn-sm { min-height: 44px; padding: 0 var(--s4); }
.btn-primary { background: var(--accent); color: var(--accent-ink) !important; }
.btn-primary:hover { background: hsl(var(--hue, 222) 62% 31%); text-decoration: none; }
.btn-ghost { border-color: var(--accent-line); color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); }
.btn[disabled] { opacity: .6; cursor: progress; }
.ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

/* Hero */
.hero { padding: var(--s8) 0 var(--s7); background: linear-gradient(var(--accent-soft), var(--paper)); border-bottom: 1px solid var(--line); }
.hero.slim { padding: var(--s7) 0 var(--s6); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s7); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-0); font-weight: 700; color: var(--accent); margin-bottom: var(--s3); }
.lead { font-size: var(--fs-2); color: var(--ink-2); max-width: 60ch; }

/* Example-data panel */
.shot { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 18px 40px rgb(22 24 29 / .08); overflow: hidden; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); background: var(--wash); font-size: var(--fs-0); }
.shot-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.shot-bar b { margin-left: var(--s2); } .shot-bar em { margin-left: auto; font-style: normal; color: var(--muted); border: 1px dashed var(--line); padding: 1px 8px; border-radius: 999px; }
.shot-list { list-style: none; margin: 0; padding: var(--s3) var(--s4); }
.shot-list li { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--wash); }
.shot-list li:last-child { border-bottom: 0; } .shot-list span { color: var(--muted); text-align: right; }
.shot figcaption { padding: 0 var(--s4) var(--s3); }

/* Bands */
.band { padding: var(--s7) 0; } .band.alt { background: var(--wash); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.cards li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); }
.cards p { color: var(--ink-2); margin: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.steps li { counter-increment: s; display: flex; gap: var(--s3); align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); font-weight: 600; }
.steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 750; }
.split { display: grid; grid-template-columns: 1.4fr .8fr; gap: var(--s6); align-items: start; }
.apps { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.apps a { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s3); align-items: center; min-height: 64px; padding: var(--s4); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.apps a:hover { border-color: hsl(var(--hue) 45% 70%); }
.apps .app-dot { grid-row: span 2; width: 14px; height: 14px; border-radius: 4px; background: hsl(var(--hue) 62% 42%); }
.apps span:last-child { color: var(--muted); font-size: var(--fs-0); }
.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.price-card.wide { margin-bottom: var(--s5); }
.badge { display: inline-block; background: var(--warn-bg); border: 1px solid var(--warn-line); color: #5a4300; font-size: var(--fs-0); font-weight: 650; padding: 2px var(--s3); border-radius: 999px; }
.price { font-size: var(--fs-4); }
.prices { width: 100%; border-collapse: collapse; margin: var(--s4) 0; }
.prices th, .prices td { text-align: left; padding: var(--s3) var(--s2); border-bottom: 1px solid var(--line); }
.prices td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.prices thead th { font-size: var(--fs-0); color: var(--muted); font-weight: 600; } .prices thead th:last-child { text-align: right; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: var(--s3); }
.faq summary { cursor: pointer; padding: var(--s4) var(--s5); font-weight: 650; min-height: 44px; list-style-position: outside; }
.faq p { padding: 0 var(--s5) var(--s4); margin: 0; color: var(--ink-2); }
.final { padding: var(--s8) 0; text-align: center; background: var(--ink); color: #fff; }
.final p { color: #d6d8de; } .final .ctas { justify-content: center; }
.final .btn-primary { background: #fff; color: var(--ink) !important; }
.notice { background: var(--warn-bg); color: #5a4300; border: 1px solid var(--warn-line); padding: var(--s4); border-radius: var(--r); }
.choose { padding: var(--s8) 0; text-align: center; }

/* Forms */
.lead-form, .estimator { display: grid; gap: var(--s4); }
.lead-form > *, .estimator > *, fieldset { min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
.estimator .badge, .price-card .badge { justify-self: start; }
.field { display: grid; gap: var(--s2); border: 0; padding: 0; margin: 0; }
.field > label, legend { font-weight: 650; }
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 48px; padding: var(--s3); border: 1px solid #b9b6ae; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 112px; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); vertical-align: middle; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.checks label, .inline, .est-row label { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; }
.est-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 var(--s4); border-bottom: 1px solid var(--wash); }
.est-row .loc input { width: 92px; min-height: 44px; }
.estimate { font-size: var(--fs-2); }
.req { color: var(--bad); }
.err { color: var(--bad); font-size: var(--fs-0); margin: 0; font-weight: 600; }
[aria-invalid=true] { border-color: var(--bad) !important; }
.err-summary { border: 2px solid var(--bad); border-radius: var(--r); padding: var(--s4); background: #fff5f5; }
.err-summary ul { margin: var(--s2) 0 0; padding-left: var(--s5); }
.form-status:not(:empty) { padding: var(--s4); border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.form-status.bad { border-color: var(--bad); color: var(--bad); } .form-status.ok { border-color: var(--ok); }

/* Footer */
.foot { background: var(--panel); border-top: 1px solid var(--line); padding: var(--s7) 0; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s6); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-2); }
.foot-h { font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: var(--s2); }

@media (max-width: 960px) {
  .hero-in, .split { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid var(--line); padding: var(--s3) var(--s5) var(--s5); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .sub { position: static !important; display: flex !important; box-shadow: none; border: 0; padding: 0 0 0 var(--s4) !important; }
}
@media (max-width: 720px) {
  .cards, .steps, .apps, .checks { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .hero { padding: var(--s7) 0 var(--s6); }
  .prices th, .prices td { padding: var(--s3) var(--s1); }
}
@media (prefers-reduced-motion: no-preference) { .btn, .apps a, .nav a { transition: background-color .15s, border-color .15s; } }
@media (forced-colors: active) { .btn-primary { border-color: ButtonText; } .mark { forced-color-adjust: none; } }

/* ---- Premium pass (DESIGN.md "The Shop Ledger", owner direction 2026-11-28): navy, white, sky; flat, hairline-first;
   one sky primary action per view, 44px+ targets; per-app hue only as a small identity accent. ---- */
:root { --navy: #0B1B2B; --navy-2: #13283A; --sky: #35C0ED; --sky-cta: #2FBCE3; --sky-ink: #0A77A8; --floor: #F4F8FB; --mist: #EEF4F8;
  --hair: #DDE6EE; --ink: #0B1B2B; --ink-2: #33475B; --muted: #5B6B7B; --line: #DDE6EE; --paper: #F4F8FB; --wash: #EEF4F8;
  --f: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; }
body { --accent: var(--sky-ink); --accent-soft: #E3F5FC; --accent-line: #BFE6F5; --app: hsl(var(--hue, 205) 70% 46%); font-feature-settings: "ss01"; }
h1 { font-weight: 650; letter-spacing: -0.035em; line-height: 1.06; }
h2 { font-weight: 650; letter-spacing: -0.02em; }
.top { background: var(--navy); border-bottom: 1px solid #1B3043; }
.top .brand, .top .nav a { color: #E8F1F7; }
.top .nav a:hover { background: #16293B; color: #fff; }
.top .lang { border: 1px solid #2A4257; }
.menu-btn { color: #E8F1F7; border-color: #2A4257 !important; background: transparent; }
.mark { background: var(--sky); box-shadow: inset -7px -7px 0 #0A77A8; border-radius: 7px; }
.nav .sub { background: var(--navy-2) !important; border-color: #1B3043 !important; }
.btn { min-height: 44px; border-radius: 8px; font-weight: 600; letter-spacing: -0.005em; }
.btn-primary { background: var(--sky-cta); color: var(--navy); border: 1px solid var(--sky-cta); }
.btn-primary:hover { background: #4FCAEC; color: var(--navy); }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--hair); }
.btn-ghost:hover { background: var(--mist); }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; }
.hero { background: var(--navy); color: #E8F1F7; border-bottom: 1px solid #1B3043; padding-block: clamp(40px, 7vw, 88px); }
.hero h1 { color: #fff; }
.hero .lead { color: #B9C9D6; font-size: 1.1875rem; max-width: 34em; }
.hero .eyebrow { color: var(--sky); font: 600 0.75rem/1.4 var(--f); letter-spacing: 0.12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--app); box-shadow: 0 0 0 3px #13283A; }
.hero .btn-ghost { background: transparent; color: #E8F1F7; border-color: #33506A; }
.hero .btn-ghost:hover { background: #13283A; }
.hero.slim { background: var(--navy); }
.hero.slim .badge { color: var(--navy); }
.trust { margin-top: 14px; font-size: 0.875rem; color: #93A7B8; }
.band .trust, .final .trust { color: var(--muted); }
.hero-in { align-items: center; gap: clamp(24px, 4vw, 56px); }
.real { margin: 0; background: #fff; border: 1px solid #22394D; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px -32px rgba(0,0,0,.65); }
.band .real { border-color: var(--hair); box-shadow: none; }
.real-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #0F2030; color: #93A7B8; font: 600 0.75rem/1 var(--f); }
.real-bar span { width: 8px; height: 8px; border-radius: 99px; background: #2A4257; }
.real-bar b { margin-left: 8px; color: #E8F1F7; font-weight: 600; }
.real img { display: block; width: 100%; height: auto; }
.real figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.band { background: #fff; border-bottom: 1px solid var(--hair); }
.band.alt { background: var(--floor); }
.cards li, .steps li, .price-card, .faq details, .apps a { border: 1px solid var(--hair); border-radius: 12px; box-shadow: none; background: #fff; }
.cards li h3 { font-size: 1.0625rem; }
.steps li::before { background: var(--navy) !important; color: #fff !important; }
.apps a:hover { border-color: #BFE6F5; background: #F7FBFD; }
.app-dot { background: var(--app) !important; }
.showcase .lead { color: var(--muted); max-width: 40em; }
.gallery { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.gallery a { display: block; text-decoration: none; color: var(--ink); }
.gallery .real { transition: border-color .15s; }
.gallery a:hover .real { border-color: var(--sky-ink); }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.g-name { display: block; margin-top: 12px; font-weight: 650; }
.g-h { display: block; color: var(--muted); font-size: 0.9375rem; }
.final { background: var(--navy); color: #E8F1F7; }
.final h2 { color: #fff; } .final p { color: #B9C9D6; }
.final .btn-ghost { background: transparent; color: #E8F1F7; border-color: #33506A; }
.prices td { font-variant-numeric: tabular-nums; text-align: right; }
.estimate strong { font-variant-numeric: tabular-nums; }
.preview { background: #FBF0DC; border-color: #E8C770; }
.foot { background: var(--navy); color: #B9C9D6; border-top: 1px solid #1B3043; }
.foot a, .foot .brand { color: #E8F1F7; }
.foot .muted { color: #93A7B8; }
.foot-h { color: #fff; }
@media (prefers-reduced-motion: reduce) { .gallery .real { transition: none; } }
.apps li, .real, .gallery li { --app: hsl(var(--hue, 205) 70% 46%); }
.btn-lg { line-height: 1.2; padding-block: 10px; text-align: center; text-wrap: balance; }
