/* Nova Ledger 2026-11-08: unified four-color visual language.
   Accessible interaction variants. Loaded last on marketing site and PWA. */
:root{
 --nl-ice:#EAF4F4;--nl-navy:#1F3A5F;--nl-sky:#5AA9E6;--nl-charcoal:#222831;
 --nl-text:#222831;--nl-muted:#42556a;--nl-surface:#fff;--nl-border:#b7d4e6;
 --nova-accent:#1F3A5F;--nova-accent-2:#5AA9E6;--nova-ink:#222831;--nova-deep:#1F3A5F;
 color-scheme:light;
}
body{font-family:Ubuntu,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.55;color:var(--nl-text)}
h1,h2,h3,h4{letter-spacing:-.025em;line-height:1.22}
h1{font-size:clamp(2.5rem,5vw,4.4rem)}h2{font-size:clamp(1.55rem,2.7vw,2.5rem)}
button,input,select,textarea{font:inherit}
button,a,[role="tab"]{touch-action:manipulation}
:where(button,a,input,select,textarea,[role="tab"]):focus-visible{outline:3px solid var(--nl-sky)!important;outline-offset:3px}
/* Explicit reusable button variants: markup can use btn--primary / secondary / ghost / text / outline */
:where(.nl-btn,.btn--primary,.btn--secondary,.btn--ghost,.btn--text,.btn--outline){
 display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;
 padding:.68rem 1.15rem;border-radius:12px;font-weight:650;line-height:1.25;
 text-decoration:none;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
 cursor:pointer;
}
:where(.btn--primary,.nl-btn--primary){background:linear-gradient(125deg,#1F3A5F,#345f8a)!important;color:#fff!important;border:1px solid #1F3A5F!important;box-shadow:0 6px 18px #1F3A5F24}
:where(.btn--secondary,.nl-btn--secondary){background:#5AA9E6!important;color:#14283f!important;border:1px solid #397fb4!important}
:where(.btn--ghost,.nl-btn--ghost){background:transparent!important;color:#1F3A5F!important;border:1px solid transparent!important;box-shadow:none!important}
:where(.btn--text,.nl-btn--text){background:transparent!important;color:#1F3A5F!important;border:0!important;box-shadow:none!important;padding-inline:.4rem;text-decoration:underline;text-underline-offset:4px}
:where(.btn--outline,.nl-btn--outline){background:transparent!important;color:#1F3A5F!important;border:1px solid #5AA9E6!important;box-shadow:none!important}
:where(.btn--primary,.btn--secondary,.btn--ghost,.btn--text,.btn--outline):not(:disabled):hover{filter:brightness(.96);transform:translateY(-1px)}
:where(button,.nl-btn):disabled{opacity:.55;cursor:not-allowed;transform:none!important}
/* Existing button classes mapped to coherent visual hierarchy. */
.shell .btn.primary,.top-quick,.auth-submit,.plan-pay-button{background:linear-gradient(125deg,#1F3A5F,#345f8a)!important;color:#fff!important;border:1px solid #1F3A5F!important;min-height:44px}
.shell .btn:not(.primary):not(.danger),.home-login{min-height:44px;border-radius:11px}
/* Keep hero sales and expense actions visually equivalent */
.ribbon-btn,.ribbon-btn-quiet{min-height:44px!important;border:1px solid #5AA9E6!important;background:rgba(234,244,244,.13)!important;color:#fff!important}
/* Tabs are visible controls with deliberate selected and hover states */
:where([role="tab"],.tab-btn,.tabs button,.segmented button,.pulse-range button){min-height:40px;border-radius:10px;transition:background-color .16s,border-color .16s,box-shadow .16s;cursor:pointer}
:where([role="tab"][aria-selected="true"],.tab-btn.active,.tabs button.active,.segmented button.active,.pulse-range button.is-selected){background:#1F3A5F!important;color:#fff!important;box-shadow:0 4px 12px #1F3A5F24}
:where([role="tab"],.tab-btn,.tabs button,.segmented button,.pulse-range button):not([aria-selected="true"]):not(.active):not(.is-selected):hover{background:#EAF4F4;color:#1F3A5F}
/* Public homepage */
body:has(.home-header){background:radial-gradient(circle at 90% 0%,#5AA9E640,transparent 35%),linear-gradient(130deg,#EAF4F4,#fff 52%,#EAF4F4);color:#222831}
.home-header nav{font-size:16px;color:#1F3A5F}.home-header nav a:hover,.home-footer a:hover{color:#397fb4}
.home-hero p,.home-about p,.home-features p,.steps p{font-size:clamp(16px,1.15vw,18px);color:#42556a}
.home-hero em,.section-heading em,.home-bottom em{color:#397fb4}
.home-cta{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:linear-gradient(125deg,#1F3A5F,#345f8a)!important;color:#fff!important;border:1px solid #1F3A5F!important;border-radius:12px;box-shadow:0 7px 16px #1F3A5F24}
.home-login{display:inline-flex;align-items:center;justify-content:center;color:#1F3A5F;border:1px solid #5AA9E6;padding:.65rem 1rem}
.home-features article,.home-plans article,.steps>div{border-color:#b7d4e6!important}
.home-showcase{background:linear-gradient(135deg,#1F3A5F,#294f77 65%,#397fb4)!important}
.home-brand img{object-fit:contain!important}
/* PWA shell: avoid changing layout or existing JS action handlers */
body:has(.shell){background:linear-gradient(140deg,#EAF4F4,#f8fcfc 58%,#e2f0f8)}
.shell{--primary:#1F3A5F;--accent:#5AA9E6;--ink:#222831}
.shell .nav-item{min-height:44px;font-size:14px}
.shell :where(.card,.panel){border-color:#b7d4e6}
/* Dark mode: preserve readable text and contrast */
:where(body.dark,body[data-theme="dark"],html[data-theme="dark"] body,html.dark body){
 --nl-text:#EAF4F4;--nl-muted:#b9d2e0;--nl-surface:#222831;--nl-border:#3e617b;color:#EAF4F4;
}
:where(body.dark,body[data-theme="dark"],html[data-theme="dark"] body,html.dark body) :where(.btn--ghost,.btn--text,.btn--outline,.nl-btn--ghost,.nl-btn--text,.nl-btn--outline){color:#EAF4F4!important}
:where(body.dark,body[data-theme="dark"],html[data-theme="dark"] body,html.dark body) :where([role="tab"],.tab-btn,.tabs button):not([aria-selected="true"]):not(.active){color:#EAF4F4}
@media(prefers-reduced-motion:reduce){:where(.nl-btn,button,a,[role="tab"]){transition:none!important;transform:none!important}}
@media(max-width:650px){.home-header nav{font-size:16px}.shell .nav-item{font-size:14px}}
