/* =====================================================================
   BILL WISE — DESIGN SYSTEM
   =====================================================================

   The single source of truth for the public site's colour, type, spacing,
   shape and motion. Load order in the layouts is:

       bootstrap.min.css   framework baseline (Reboot, grid, components)
       billwise.css        this file — tokens and primitives
       website.css         page-specific styling, still being rebuilt

   Two rules keep this from rotting:

   1. Tokens are declared here and nowhere else. website.css consumes them
      and declares none. (public/css/app.css and calculator.css are
      separate areas with their own :root — see D-043.)

   2. Nothing here restyles a bare Bootstrap class. Every primitive has
      its own name, so the framework's baseline and this system coexist
      without a specificity war.

   Sections
     01  Tokens
     02  Base and typography
     03  Container
     04  Sections and rhythm
     05  Buttons
     06  Cards and surfaces
     07  Marks: eyebrow, ledger rule, pills
     08  Forms
     09  Motion
     10  Utilities
     11  Navbar
     12  Footer
     13  Welcome panel
     14  Product mockup
     15  Homepage sections
     16  Responsive
   ===================================================================== */


/* ------------------------------------------------------------------ *
   01  TOKENS
 * ------------------------------------------------------------------ */

:root{

  /* --- Brand -------------------------------------------------------
     Navy and brass on warm paper. These are the existing Bill Wise
     values, kept deliberately: the identity is already applied across
     the site and suits a Bill of Costs product better than a generic
     blue. Only the structure around them is new. */
  --billwise-navy:#102544;
  --billwise-navy-dark:#0b1a31;
  --billwise-navy-light:#17293f;
  --billwise-brass:#a9782f;
  --billwise-brass-light:#c7a667;
  --billwise-brass-dark:#8c6224;

  /* --- Text --------------------------------------------------------
     Warm greys, because the page sits on warm paper. A cool grey scale
     reads slightly dirty against #f7f5f0. */
  --billwise-text:#1c2b3d;
  --billwise-muted:#5b6472;
  --billwise-light-text:#8a8371;
  --billwise-on-navy:#dce5ef;
  --billwise-on-navy-muted:#9fb0c6;

  /* --- Surfaces ---------------------------------------------------- */
  --billwise-white:#ffffff;
  --billwise-off-white:#faf9f6;
  --billwise-paper:#f7f5f0;
  --billwise-border:#e4dfd3;
  --billwise-border-strong:#d5cfc0;
  --billwise-border-on-navy:#21385c;

  /* --- States ------------------------------------------------------
     --billwise-seal is not a state: it is the oxblood used for the
     "filed" stamp on a Bill, and stays reserved for that. */
  --billwise-success:#2e7d5b;
  --billwise-danger:#b54747;
  --billwise-warning:#b7791f;
  --billwise-seal:#7a2a2a;

  /* --- Type --------------------------------------------------------
     Spectral for display, IBM Plex Sans for body, IBM Plex Mono for
     eyebrows and figures. The serif is what stops the site reading as
     another blue SaaS template. */
  --billwise-font-display:'Spectral',Georgia,serif;
  --billwise-font-body:'IBM Plex Sans',Arial,sans-serif;
  --billwise-font-mono:'IBM Plex Mono','Courier New',monospace;

  /* --- Layout ------------------------------------------------------ */
  --billwise-container:1180px;
  --billwise-gutter:40px;

  /* --- Shape -------------------------------------------------------
     Softer than the prototype's 3px. The crisp edge read as a printed
     document; this reads as software, which is what the public site is
     selling. Document sharpness stays where it belongs — inside the
     Bill preview and the workspace. */
  --billwise-radius-sm:8px;
  --billwise-radius:14px;
  --billwise-radius-lg:22px;
  --billwise-radius-pill:999px;

  /* --- Elevation ---------------------------------------------------
     Tinted navy rather than black, so shadows sit in the palette
     instead of greying the paper. */
  --billwise-shadow-sm:0 4px 16px rgba(16,37,68,.06);
  --billwise-shadow:0 12px 40px rgba(16,37,68,.09);
  --billwise-shadow-lg:0 24px 70px rgba(16,37,68,.14);

  /* --- Rhythm ------------------------------------------------------ */
  --billwise-section-y:100px;
  --billwise-section-y-sm:70px;
  --billwise-section-y-lg:130px;

  /* --- Motion ------------------------------------------------------
     One duration and one curve. A legal platform should move a little,
     deliberately, and never bounce. */
  --billwise-ease:cubic-bezier(.2,.7,.3,1);
  --billwise-speed:180ms;

  /* --- Legacy aliases ----------------------------------------------
     website.css and the prototype markup are written against these
     short names. They resolve to the tokens above, so a colour is still
     decided in exactly one place. Retire them as each page is rebuilt;
     do not add new ones. */
  --navy:var(--billwise-navy);
  --navy-light:var(--billwise-navy-light);
  --ink:var(--billwise-text);
  --muted:var(--billwise-muted);
  --paper:var(--billwise-paper);
  --line:var(--billwise-border);
  --brass:var(--billwise-brass);
  --brass-light:var(--billwise-brass-light);
  --seal:var(--billwise-seal);
  --gold:var(--billwise-brass);
  --teal:var(--billwise-navy);
  --font-display:var(--billwise-font-display);
  --font-body:var(--billwise-font-body);
  --font-mono:var(--billwise-font-mono);
}


/* ------------------------------------------------------------------ *
   02  BASE AND TYPOGRAPHY

   Reboot supplies the reset; this supplies the voice. The scale is
   fluid, so there is no separate mobile type ramp to maintain. Tight
   tracking on the large sizes is what makes a serif at 62px read as
   confident rather than merely big.
 * ------------------------------------------------------------------ */

body{
  background:var(--billwise-paper);
  color:var(--billwise-text);
  font-family:var(--billwise-font-body);
  -webkit-font-smoothing:antialiased;
}

.hero-title{
  font-family:var(--billwise-font-display);
  font-size:clamp(2.6rem,5vw,4.4rem);
  line-height:1.05;
  font-weight:700;
  letter-spacing:-.03em;
  color:var(--billwise-navy);
  margin:0 0 20px;
}
.hero-title em{font-style:normal;color:var(--billwise-brass)}

.section-title{
  font-family:var(--billwise-font-display);
  font-size:clamp(1.9rem,3.4vw,2.9rem);
  line-height:1.15;
  font-weight:600;
  letter-spacing:-.02em;
  color:var(--billwise-navy);
  margin:0 0 16px;
}

.subsection-title{
  font-family:var(--billwise-font-display);
  font-size:1.2rem;
  line-height:1.3;
  font-weight:600;
  color:var(--billwise-navy);
  margin:0 0 8px;
}

.section-lede{
  font-size:1.125rem;
  line-height:1.7;
  color:var(--billwise-muted);
  margin:0 0 8px;
  max-width:62ch;
}

.section-description{
  font-size:1.0125rem;
  line-height:1.75;
  color:var(--billwise-muted);
  max-width:68ch;
}

.text-fine{font-size:.8125rem;line-height:1.6;color:var(--billwise-light-text)}

/* Figures — money, matter numbers, dates — only line up in the mono face.
   Prefixed because Bootstrap already has a .figure component. */
.billwise-figure{font-family:var(--billwise-font-mono);font-variant-numeric:tabular-nums}

/* On navy sections, invert once rather than restating every colour. */
.on-navy{background:var(--billwise-navy);color:var(--billwise-on-navy)}
.on-navy .section-title,.on-navy .hero-title,.on-navy .subsection-title{color:#fff}
.on-navy .section-lede,.on-navy .section-description{color:var(--billwise-on-navy-muted)}
.on-navy a{color:var(--billwise-brass-light)}


/* ------------------------------------------------------------------ *
   03  CONTAINER

   One container, used by the navbar, every section and the footer.
   This single rule is most of what makes a site feel deliberately laid
   out rather than assembled.
 * ------------------------------------------------------------------ */

.billwise-container{
  width:min(100% - (var(--billwise-gutter) * 2),var(--billwise-container));
  margin-inline:auto;
}
.billwise-container-narrow{
  width:min(100% - (var(--billwise-gutter) * 2),820px);
  margin-inline:auto;
}


/* ------------------------------------------------------------------ *
   04  SECTIONS AND RHYTHM

   Vertical space is set here, at the section, and not by nudging the
   margins of individual paragraphs and headings. That is what keeps
   Reboot's defaults from mattering.
 * ------------------------------------------------------------------ */

.section{padding:var(--billwise-section-y) 0}
.section-sm{padding:var(--billwise-section-y-sm) 0}
.section-lg{padding:var(--billwise-section-y-lg) 0}

.section-white{background:var(--billwise-white)}
.section-paper{background:var(--billwise-paper)}
.section-tint{background:var(--billwise-off-white)}

/* A centred introduction to a section. */
.section-head{max-width:700px;margin:0 auto 52px;text-align:center}
.section-head .section-lede,.section-head .section-description{margin-inline:auto}

/* Left-aligned variant, for sections with a figure beside the text. */
.section-head-start{max-width:640px;margin:0 0 44px;text-align:left}
.section-head-start .section-lede{margin-inline:0}


/* ------------------------------------------------------------------ *
   05  BUTTONS

   Named so they never collide with Bootstrap's .btn. Brass is the
   accent, so exactly one button in a view should carry it — the action
   we actually want taken.
 * ------------------------------------------------------------------ */

.btn-billwise,
.btn-billwise-outline,
.btn-billwise-navy,
.btn-billwise-ghost{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-family:var(--billwise-font-body);font-size:.9375rem;font-weight:600;
  line-height:1;text-align:center;text-decoration:none;white-space:nowrap;
  padding:14px 24px;border-radius:var(--billwise-radius-sm);
  border:1px solid transparent;cursor:pointer;
  transition:background-color var(--billwise-speed) var(--billwise-ease),
             border-color var(--billwise-speed) var(--billwise-ease),
             color var(--billwise-speed) var(--billwise-ease),
             transform var(--billwise-speed) var(--billwise-ease);
}

/* Brass with navy text: far better contrast than brass on white, and
   the one place the accent carries a whole element. */
.btn-billwise{background:var(--billwise-brass);border-color:var(--billwise-brass);color:var(--billwise-navy)}
.btn-billwise:hover,.btn-billwise:focus-visible{background:var(--billwise-brass-light);border-color:var(--billwise-brass-light);color:var(--billwise-navy)}

.btn-billwise-navy{background:var(--billwise-navy);border-color:var(--billwise-navy);color:#fff}
.btn-billwise-navy:hover,.btn-billwise-navy:focus-visible{background:var(--billwise-navy-light);border-color:var(--billwise-navy-light);color:#fff}

.btn-billwise-outline{background:transparent;border-color:var(--billwise-border-strong);color:var(--billwise-navy)}
.btn-billwise-outline:hover,.btn-billwise-outline:focus-visible{border-color:var(--billwise-navy);background:var(--billwise-white)}

.btn-billwise-ghost{background:transparent;border-color:transparent;color:var(--billwise-navy)}
.btn-billwise-ghost:hover,.btn-billwise-ghost:focus-visible{background:var(--billwise-off-white)}

.on-navy .btn-billwise-outline{border-color:rgba(255,255,255,.28);color:#fff}
.on-navy .btn-billwise-outline:hover,.on-navy .btn-billwise-outline:focus-visible{border-color:#fff;background:rgba(255,255,255,.08)}

.btn-billwise-sm{padding:10px 17px;font-size:.875rem}
.btn-billwise-lg{padding:17px 30px;font-size:1rem}
.btn-billwise-block{display:flex;width:100%}

/* A visible focus ring is not optional. Reboot removes the outline on
   some controls, so it is restated deliberately. */
.btn-billwise:focus-visible,
.btn-billwise-outline:focus-visible,
.btn-billwise-navy:focus-visible,
.btn-billwise-ghost:focus-visible{
  outline:2px solid var(--billwise-brass);outline-offset:2px;
}

.btn-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}


/* ------------------------------------------------------------------ *
   06  CARDS AND SURFACES
 * ------------------------------------------------------------------ */

.billwise-card{
  background:var(--billwise-white);
  border:1px solid var(--billwise-border);
  border-radius:var(--billwise-radius);
  padding:28px;
  box-shadow:var(--billwise-shadow-sm);
  transition:transform var(--billwise-speed) var(--billwise-ease),
             box-shadow var(--billwise-speed) var(--billwise-ease),
             border-color var(--billwise-speed) var(--billwise-ease);
}
.billwise-card-lg{border-radius:var(--billwise-radius-lg);padding:38px}
.billwise-card-flat{box-shadow:none}
.billwise-card-quiet{background:var(--billwise-off-white);box-shadow:none}

/* Only a card that is actually a link should lift. A static card that
   moves under the cursor promises something it does not do. */
.billwise-card-interactive:hover{
  transform:translateY(-4px);
  box-shadow:var(--billwise-shadow);
  border-color:var(--billwise-border-strong);
}

.on-navy .billwise-card{
  background:var(--billwise-navy-light);
  border-color:var(--billwise-border-on-navy);
  box-shadow:none;
  color:var(--billwise-on-navy);
}

/* An icon plate, sized so a Bootstrap Icon sits centred without nudging. */
.billwise-icon{
  width:46px;height:46px;flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:var(--billwise-radius-sm);
  background:var(--billwise-paper);color:var(--billwise-brass);
  font-size:1.25rem;line-height:1;
}
.billwise-icon-navy{background:var(--billwise-navy);color:var(--billwise-brass-light)}
.on-navy .billwise-icon{background:rgba(199,166,103,.12);color:var(--billwise-brass-light)}

.billwise-grid{display:grid;gap:22px}
.billwise-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.billwise-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.billwise-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}


/* ------------------------------------------------------------------ *
   07  MARKS — eyebrow, ledger rule, pills

   The ledger rule is the site's signature device and predates this
   system; it moves here so it is defined once.
 * ------------------------------------------------------------------ */

.eyebrow{
  display:inline-block;
  font-family:var(--billwise-font-mono);
  font-size:.6875rem;font-weight:600;
  letter-spacing:.24em;text-transform:uppercase;
  color:var(--billwise-brass);
  margin:0 0 14px;
}
.on-navy .eyebrow{color:var(--billwise-brass-light)}

.ledger-rule{display:flex;align-items:center;justify-content:center;gap:12px;color:var(--billwise-brass)}
.ledger-rule:before,.ledger-rule:after{content:"";height:1px;width:34px;background:var(--billwise-border)}

.billwise-pill{
  display:inline-flex;align-items:center;gap:7px;
  padding:6px 13px;border-radius:var(--billwise-radius-pill);
  background:var(--billwise-paper);border:1px solid var(--billwise-border);
  font-size:.8125rem;font-weight:600;color:var(--billwise-navy);
}
.billwise-pill-brass{background:rgba(169,120,47,.1);border-color:rgba(169,120,47,.28);color:var(--billwise-brass-dark)}
.on-navy .billwise-pill{background:rgba(255,255,255,.06);border-color:var(--billwise-border-on-navy);color:#fff}


/* ------------------------------------------------------------------ *
   08  FORMS
 * ------------------------------------------------------------------ */

.billwise-field{margin-bottom:18px}
.billwise-label{
  display:block;font-size:.6875rem;font-weight:600;
  letter-spacing:.08em;text-transform:uppercase;
  color:var(--billwise-muted);margin-bottom:7px;
}
.billwise-input,.billwise-select,.billwise-textarea{
  width:100%;padding:13px 15px;
  font-family:var(--billwise-font-body);font-size:.9375rem;
  color:var(--billwise-text);background:var(--billwise-white);
  border:1px solid var(--billwise-border-strong);
  border-radius:var(--billwise-radius-sm);
  transition:border-color var(--billwise-speed) var(--billwise-ease),
             box-shadow var(--billwise-speed) var(--billwise-ease);
}
.billwise-input:focus,.billwise-select:focus,.billwise-textarea:focus{
  outline:none;border-color:var(--billwise-brass);
  box-shadow:0 0 0 3px rgba(169,120,47,.16);
}
.billwise-input[aria-invalid="true"]{border-color:var(--billwise-danger)}
.billwise-hint{display:block;font-size:.75rem;color:var(--billwise-light-text);margin-top:6px}
.billwise-error{display:block;font-size:.8125rem;color:var(--billwise-danger);margin-top:6px}


/* ------------------------------------------------------------------ *
   09  MOTION

   Restrained on purpose. Everything animated here is a response to
   something the visitor did.
 * ------------------------------------------------------------------ */

.rise{animation:billwise-rise 420ms var(--billwise-ease) both}
@keyframes billwise-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;animation-iteration-count:1 !important;
    transition-duration:.01ms !important;scroll-behavior:auto !important;
  }
  .billwise-card-interactive:hover{transform:none}
}


/* ------------------------------------------------------------------ *
   10  UTILITIES

   A deliberately short list. Bootstrap's utilities cover spacing and
   flex; these are only the things tied to the Bill Wise identity.
 * ------------------------------------------------------------------ */

.text-brass{color:var(--billwise-brass)}
.text-navy{color:var(--billwise-navy)}
.text-muted-bw{color:var(--billwise-muted)}
.bg-navy{background:var(--billwise-navy)}
.bg-paper{background:var(--billwise-paper)}
.rule{height:1px;background:var(--billwise-border);border:0;margin:0}
.rule-on-navy{height:1px;background:var(--billwise-border-on-navy);border:0;margin:0}

/* Jumps a keyboard user past the navbar. Off-screen until focused, then
   it lands under the sticky bar rather than behind it. */
.skip-link{
  position:absolute;left:16px;top:-60px;z-index:1040;
  padding:11px 18px;border-radius:var(--billwise-radius-sm);
  background:var(--billwise-navy);color:#fff;
  font-size:.875rem;font-weight:600;text-decoration:none;
  transition:top var(--billwise-speed) var(--billwise-ease);
}
.skip-link:focus{top:16px;color:#fff}

/* Visible only to screen readers — for landmark labels that would be
   redundant on screen. */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}


/* ------------------------------------------------------------------ *
   11  NAVBAR

   Custom rather than Bootstrap's .navbar, so nothing here overrides a
   framework class. Bootstrap still supplies the mechanics of the mobile
   panel — offcanvas gives focus trap, backdrop, Escape and scroll lock
   for free, the same reasoning as the welcome modal.

   Three zones: brand, links, actions. The links collapse into the panel
   below 992px.
 * ------------------------------------------------------------------ */

.billwise-nav{
  position:sticky;top:0;z-index:1030;
  background:var(--billwise-navy);
  border-bottom:1px solid rgba(255,255,255,.07);
}
.billwise-nav-inner{
  display:flex;align-items:center;justify-content:space-between;gap:28px;
  height:78px;
}

.billwise-brand{
  display:inline-flex;align-items:baseline;gap:9px;
  font-family:var(--billwise-font-display);font-size:1.3rem;font-weight:600;
  color:#fff;text-decoration:none;white-space:nowrap;
}
.billwise-brand span{
  font-family:var(--billwise-font-mono);font-size:.625rem;font-weight:600;
  letter-spacing:.2em;text-transform:uppercase;color:var(--billwise-brass-light);
}
.billwise-brand:hover{color:#fff}

.billwise-nav-links{
  display:flex;align-items:center;gap:6px;
  margin:0;padding:0;list-style:none;
}
.billwise-nav-links a{
  display:block;padding:9px 14px;border-radius:var(--billwise-radius-sm);
  font-size:.875rem;font-weight:500;color:#c8d4e3;text-decoration:none;
  transition:color var(--billwise-speed) var(--billwise-ease),
             background-color var(--billwise-speed) var(--billwise-ease);
}
.billwise-nav-links a:hover{color:#fff;background:rgba(255,255,255,.06)}
.billwise-nav-links a.is-current{color:#fff;background:rgba(255,255,255,.08)}

/* The demo is the one link we actively want followed, so it carries the
   accent — as text, not as a second brass button competing with the CTA. */
.billwise-nav-links a.is-accent{color:var(--billwise-brass-light);font-weight:600}
.billwise-nav-links a.is-accent:hover{color:var(--billwise-brass-light)}

.billwise-nav-actions{display:flex;align-items:center;gap:10px}
.billwise-nav-signin{
  padding:9px 14px;font-size:.875rem;font-weight:600;
  color:#c8d4e3;text-decoration:none;border-radius:var(--billwise-radius-sm);
  transition:color var(--billwise-speed) var(--billwise-ease);
}
.billwise-nav-signin:hover{color:#fff}

.billwise-nav-toggle{
  display:none;
  width:42px;height:42px;align-items:center;justify-content:center;
  background:transparent;border:1px solid rgba(255,255,255,.18);
  border-radius:var(--billwise-radius-sm);
  color:#fff;font-size:1.25rem;line-height:1;cursor:pointer;
}
.billwise-nav-toggle:hover{background:rgba(255,255,255,.08)}
.billwise-nav-toggle:focus-visible{outline:2px solid var(--billwise-brass);outline-offset:2px}

/* The mobile panel. Scoped to the instance rather than restyling
   Bootstrap's .offcanvas, which other components may yet use. */
#billwiseMenu.offcanvas{
  background:var(--billwise-navy);
  color:var(--billwise-on-navy);
  width:min(88vw,340px);
  border-left:1px solid rgba(255,255,255,.08);
}
#billwiseMenu .offcanvas-header{
  padding:22px var(--billwise-gutter);
  border-bottom:1px solid rgba(255,255,255,.08);
}
#billwiseMenu .offcanvas-body{padding:22px var(--billwise-gutter) 30px}
#billwiseMenu .billwise-nav-links{flex-direction:column;align-items:stretch;gap:2px}
#billwiseMenu .billwise-nav-links a{padding:13px 14px;font-size:1rem}
#billwiseMenu .billwise-nav-actions{
  flex-direction:column;align-items:stretch;gap:10px;
  margin-top:26px;padding-top:26px;border-top:1px solid rgba(255,255,255,.08);
}
#billwiseMenu .billwise-nav-signin{text-align:center;border:1px solid rgba(255,255,255,.2);padding:13px}
#billwiseMenu .btn-billwise{display:flex;width:100%}

.billwise-nav-close{
  width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;
  background:transparent;border:0;color:#c8d4e3;font-size:1.4rem;line-height:1;
  cursor:pointer;border-radius:var(--billwise-radius-sm);
}
.billwise-nav-close:hover{color:#fff;background:rgba(255,255,255,.08)}

@media (max-width:1199.98px){
  .billwise-nav-links a{padding:9px 11px;font-size:.8125rem}
  .billwise-nav-inner{gap:18px}
}
@media (max-width:991.98px){
  .billwise-nav-inner > .billwise-nav-links,
  .billwise-nav-inner > .billwise-nav-actions{display:none}
  .billwise-nav-toggle{display:inline-flex}
  .billwise-nav-inner{height:70px}
}


/* ------------------------------------------------------------------ *
   12  FOOTER
 * ------------------------------------------------------------------ */

.billwise-footer{
  background:var(--billwise-navy-dark);
  color:var(--billwise-on-navy-muted);
  padding:72px 0 0;
}
.billwise-footer-top{
  display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:48px;
  padding-bottom:52px;
}
.billwise-footer .billwise-brand{margin-bottom:14px}
.billwise-footer-blurb{
  font-size:.9375rem;line-height:1.7;max-width:38ch;margin:0 0 20px;
  color:var(--billwise-on-navy-muted);
}
.billwise-footer h3{
  font-family:var(--billwise-font-mono);font-size:.6875rem;font-weight:600;
  letter-spacing:.2em;text-transform:uppercase;
  color:var(--billwise-brass-light);margin:0 0 16px;
}
.billwise-footer ul{list-style:none;margin:0;padding:0}
.billwise-footer li{margin-bottom:11px}
.billwise-footer li a{
  color:#c8d4e3;font-size:.9375rem;text-decoration:none;
  transition:color var(--billwise-speed) var(--billwise-ease);
}
.billwise-footer li a:hover{color:#fff}

.billwise-footer-bottom{
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;
  padding:24px 0 30px;border-top:1px solid rgba(255,255,255,.08);
  font-size:.8125rem;
}
.billwise-footer-bottom p{margin:0}

@media (max-width:767.98px){
  .billwise-footer{padding-top:52px}
  .billwise-footer-top{grid-template-columns:1fr;gap:34px;padding-bottom:34px}
}


/* ------------------------------------------------------------------ *
   13  WELCOME PANEL

   Global chrome like the navbar and footer, so it lives here rather than
   in a page stylesheet. Bootstrap supplies the dialog mechanics; this is
   only the Bill Wise dress over it, now written against the system
   instead of the hard-coded values it launched with.
 * ------------------------------------------------------------------ */

.modal-backdrop.welcome-backdrop{background:var(--billwise-navy)}
.modal-backdrop.welcome-backdrop.show{opacity:.72}

.billwise-welcome-modal{
  border:0;
  border-radius:var(--billwise-radius-lg);
  border-top:3px solid var(--billwise-brass);
  box-shadow:var(--billwise-shadow-lg);
  overflow:hidden;
}
#welcomeModal .modal-dialog{max-width:486px}

.welcome-close{
  position:absolute;top:12px;right:12px;z-index:2;
  width:32px;height:32px;border:0;background:none;padding:0;
  color:var(--billwise-muted);font-size:1.25rem;line-height:1;cursor:pointer;
  border-radius:var(--billwise-radius-sm);
}
.welcome-close:hover{color:var(--billwise-navy);background:var(--billwise-paper)}
.welcome-close:focus-visible{outline:2px solid var(--billwise-brass);outline-offset:2px}

.welcome-logo{
  width:56px;height:56px;margin:0 auto;display:flex;
  align-items:center;justify-content:center;
  background:var(--billwise-navy);border-radius:var(--billwise-radius);
}
.welcome-logo svg{width:30px;height:30px}
.welcome-logo img{width:34px;height:34px;object-fit:contain}

.welcome-eyebrow{
  font-family:var(--billwise-font-mono);font-size:.6875rem;font-weight:600;
  letter-spacing:.24em;text-transform:uppercase;
  color:var(--billwise-brass);margin:0 0 10px;
}
.welcome-title{
  font-family:var(--billwise-font-display);
  font-size:1.875rem;line-height:1.15;font-weight:600;letter-spacing:-.02em;
  color:var(--billwise-navy);margin:0 0 14px;
}
.welcome-text{
  font-size:.9375rem;line-height:1.65;
  color:var(--billwise-muted);margin:0 auto 22px;max-width:380px;
}

.welcome-security{
  display:flex;gap:12px;text-align:left;
  background:var(--billwise-off-white);
  border:1px solid var(--billwise-border);
  border-radius:var(--billwise-radius-sm);
  padding:15px 16px;margin-bottom:24px;
  font-size:.8125rem;line-height:1.6;color:var(--billwise-muted);
}
.welcome-security i{color:var(--billwise-brass);font-size:1.0625rem;line-height:1.4}
.welcome-security b{display:block;color:var(--billwise-navy);font-weight:600;margin-bottom:2px}

.continue-btn{
  background:none;border:0;padding:4px;
  font-size:.8125rem;font-weight:600;color:var(--billwise-muted);
  text-decoration:underline;text-underline-offset:3px;
}
.continue-btn:hover{color:var(--billwise-navy)}

.welcome-legal{
  font-size:.6875rem;line-height:1.6;color:var(--billwise-light-text);
  margin:20px 0 0;padding-top:16px;border-top:1px solid var(--billwise-border);
}

@media (max-width:520px){
  .welcome-title{font-size:1.5rem}
}


/* ------------------------------------------------------------------ *
   14  PRODUCT MOCKUP

   A drawn representation of the workspace, not a screenshot. The real
   application exists but its interface has not been designed yet, and a
   screenshot of it now would be a claim about a product still being
   built. This is honest about being an illustration while still showing
   the actual shape of the thing: sidebar, matter, items, total.

   Everything is HTML and CSS, so it stays sharp at any size and can be
   read by a screen reader. It is replaced by a real screenshot once the
   workspace has its own design.
 * ------------------------------------------------------------------ */

.billwise-mockup{
  background:var(--billwise-white);
  border-radius:var(--billwise-radius-lg);
  box-shadow:var(--billwise-shadow-lg);
  overflow:hidden;
  border:1px solid rgba(16,37,68,.08);
}

.billwise-mockup-bar{
  display:flex;align-items:center;gap:12px;
  padding:12px 16px;
  background:var(--billwise-navy);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.billwise-mockup-dots{display:flex;gap:6px}
.billwise-mockup-dots span{
  width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.22);
}
.billwise-mockup-bar b{
  font-family:var(--billwise-font-display);font-size:.8125rem;font-weight:600;color:#fff;
}
.billwise-mockup-bar .billwise-mockup-badge{
  margin-left:auto;
  font-family:var(--billwise-font-mono);font-size:.5625rem;font-weight:600;
  letter-spacing:.12em;text-transform:uppercase;
  color:#fff;background:var(--billwise-seal);
  padding:4px 9px;border-radius:var(--billwise-radius-pill);
}

.billwise-mockup-body{display:grid;grid-template-columns:150px minmax(0,1fr)}

.billwise-mockup-side{
  background:var(--billwise-navy-light);
  padding:16px 0;
  border-right:1px solid rgba(255,255,255,.06);
}
.billwise-mockup-side p{
  margin:0 0 10px;padding:0 16px;
  font-family:var(--billwise-font-mono);font-size:.5625rem;font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;color:rgba(199,166,103,.85);
}
.billwise-mockup-side ul{list-style:none;margin:0;padding:0}
.billwise-mockup-side li{
  display:flex;align-items:center;gap:9px;
  padding:9px 16px;font-size:.8125rem;color:#a8b8cc;
  border-left:2px solid transparent;
}
.billwise-mockup-side li.is-current{
  color:#fff;background:rgba(255,255,255,.06);
  border-left-color:var(--billwise-brass);font-weight:600;
}

.billwise-mockup-main{padding:20px}
.billwise-mockup-matter{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;
  padding-bottom:14px;margin-bottom:14px;
  border-bottom:1px solid var(--billwise-border);
}
.billwise-mockup-matter b{
  font-family:var(--billwise-font-display);font-size:1rem;color:var(--billwise-navy);
}
.billwise-mockup-matter span{
  font-family:var(--billwise-font-mono);font-size:.75rem;color:var(--billwise-muted);
}

.billwise-mockup-rows{width:100%;border-collapse:collapse}
.billwise-mockup-rows th{
  font-family:var(--billwise-font-mono);font-size:.5625rem;font-weight:600;
  letter-spacing:.12em;text-transform:uppercase;color:var(--billwise-light-text);
  text-align:left;padding:0 0 9px;font-weight:600;
}
.billwise-mockup-rows th:last-child,.billwise-mockup-rows td:last-child{text-align:right}
.billwise-mockup-rows td{
  padding:9px 0;font-size:.8125rem;color:var(--billwise-text);
  border-top:1px solid var(--billwise-border);vertical-align:top;
}
.billwise-mockup-rows td small{
  display:block;font-size:.6875rem;color:var(--billwise-muted);margin-top:2px;
}
.billwise-mockup-rows td:last-child{
  font-family:var(--billwise-font-mono);font-variant-numeric:tabular-nums;
  white-space:nowrap;color:var(--billwise-navy);
}

.billwise-mockup-total{
  display:flex;justify-content:space-between;align-items:baseline;gap:14px;
  margin-top:16px;padding:14px 16px;
  background:var(--billwise-navy);border-radius:var(--billwise-radius-sm);
}
.billwise-mockup-total span{
  font-family:var(--billwise-font-mono);font-size:.625rem;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;color:var(--billwise-brass-light);
}
.billwise-mockup-total b{
  font-family:var(--billwise-font-mono);font-size:1.25rem;font-weight:600;
  font-variant-numeric:tabular-nums;color:#fff;
}

/* The larger treatment, for the product-preview section. */
.billwise-mockup-lg .billwise-mockup-body{grid-template-columns:190px minmax(0,1fr)}
.billwise-mockup-lg .billwise-mockup-main{padding:30px}
.billwise-mockup-lg .billwise-mockup-rows td{padding:12px 0;font-size:.875rem}
.billwise-mockup-lg .billwise-mockup-total b{font-size:1.6rem}

@media (max-width:575.98px){
  .billwise-mockup-body,
  .billwise-mockup-lg .billwise-mockup-body{grid-template-columns:minmax(0,1fr)}
  .billwise-mockup-side{
    display:flex;gap:4px;overflow-x:auto;padding:10px 12px;
    border-right:0;border-bottom:1px solid rgba(255,255,255,.06);
  }
  .billwise-mockup-side p{display:none}
  .billwise-mockup-side ul{display:flex;gap:4px}
  .billwise-mockup-side li{
    border-left:0;border-bottom:2px solid transparent;
    padding:6px 10px;white-space:nowrap;
  }
  .billwise-mockup-side li.is-current{border-left:0;border-bottom-color:var(--billwise-brass)}
}


/* ------------------------------------------------------------------ *
   15  HOMEPAGE SECTIONS

   Layouts that only the homepage uses, but built from the same tokens so
   they stay in step with everything else.
 * ------------------------------------------------------------------ */

/* Hero — text beside the mockup, stacking below 992px. The navy ground
   carries a very faint ledger grid: enough to be felt, not seen. */
.billwise-hero{
  position:relative;overflow:hidden;
  background:var(--billwise-navy);
  padding:96px 0 104px;
}
.billwise-hero:before{
  content:"";position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.028) 1px,transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 0%,#000,transparent 75%);
  mask-image:radial-gradient(ellipse 80% 60% at 50% 0%,#000,transparent 75%);
  pointer-events:none;
}
.billwise-hero:after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:3px;
  background:var(--billwise-brass);
}
.billwise-hero > .billwise-container{position:relative;z-index:1}

.billwise-hero-grid{
  display:grid;grid-template-columns:1.05fr .95fr;gap:60px;align-items:center;
}
.billwise-hero .hero-title{color:#fff}
.billwise-hero .hero-title em{color:var(--billwise-brass-light)}
.billwise-hero-lede{
  font-size:1.1875rem;line-height:1.7;color:var(--billwise-on-navy-muted);
  max-width:52ch;margin:0 0 30px;
}
.billwise-hero-micro{
  margin:20px 0 0;font-size:.8125rem;color:var(--billwise-on-navy-muted);
}

/* Trust strip — a thin band of claims we can actually stand behind. */
.billwise-trust{
  background:var(--billwise-navy-dark);
  padding:26px 0;
  border-top:1px solid rgba(255,255,255,.06);
}
.billwise-trust-inner{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:14px 40px;
}
.billwise-trust-inner > p{
  margin:0;font-family:var(--billwise-font-mono);font-size:.6875rem;font-weight:600;
  letter-spacing:.2em;text-transform:uppercase;color:var(--billwise-brass-light);
}
.billwise-trust-inner ul{
  display:flex;flex-wrap:wrap;gap:12px 30px;list-style:none;margin:0;padding:0;
}
.billwise-trust-inner li{
  display:flex;align-items:center;gap:9px;
  font-size:.875rem;font-weight:500;color:#c8d4e3;
}
.billwise-trust-inner li i{color:var(--billwise-brass-light);font-size:1rem}

/* Features — one dominant panel, then the rest at a smaller weight. */
.billwise-feature-lead{
  display:grid;grid-template-columns:1fr 1.1fr;gap:52px;align-items:center;
  margin-bottom:26px;
}

/* How it works — numbered, connected by a hairline on wide screens. */
.billwise-steps{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;
  position:relative;
}
.billwise-step-no{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;margin-bottom:16px;
  border-radius:50%;border:1px solid var(--billwise-brass);
  background:var(--billwise-white);
  font-family:var(--billwise-font-mono);font-size:.8125rem;font-weight:600;
  color:var(--billwise-brass);
}
.billwise-step{position:relative}
.billwise-step:not(:last-child):before{
  content:"";position:absolute;top:22px;left:56px;right:-22px;height:1px;
  background:var(--billwise-border);
}

/* Pricing — the recommended plan lifted rather than recoloured. */
.billwise-plans{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;max-width:820px;margin-inline:auto;align-items:start;
}
.billwise-plan{position:relative;display:flex;flex-direction:column}
.billwise-plan-best{
  border-color:var(--billwise-brass);
  box-shadow:var(--billwise-shadow);
}
.billwise-plan-flag{
  position:absolute;top:-11px;left:50%;transform:translateX(-50%);
  white-space:nowrap;
}
.billwise-plan-amount{
  font-family:var(--billwise-font-mono);font-size:2.1rem;font-weight:600;
  font-variant-numeric:tabular-nums;color:var(--billwise-navy);
  line-height:1.1;margin:6px 0 4px;
}
.billwise-plan-amount span{
  font-size:.8125rem;font-weight:500;color:var(--billwise-muted);letter-spacing:0;
}
.billwise-plan ul{list-style:none;margin:18px 0 24px;padding:0;flex:1}
.billwise-plan li{
  display:flex;gap:10px;margin-bottom:10px;
  font-size:.9375rem;line-height:1.5;color:var(--billwise-muted);
}
.billwise-plan li i{color:var(--billwise-success);font-size:.9375rem;margin-top:2px}

/* FAQ — Bootstrap's accordion, dressed. Scoped under .billwise-faq rather
   than restyling .accordion-button globally, so the framework component
   stays usable elsewhere as it ships. */
.billwise-faq.accordion{--bs-accordion-border-color:var(--billwise-border)}
.billwise-faq .accordion-item{
  background:var(--billwise-white);
  border:1px solid var(--billwise-border);
  border-radius:var(--billwise-radius) !important;
  margin-bottom:12px;
  overflow:hidden;
}
.billwise-faq .accordion-button{
  padding:20px 22px;
  font-family:var(--billwise-font-body);font-size:1rem;font-weight:600;
  color:var(--billwise-navy);background:var(--billwise-white);
  box-shadow:none;
}
.billwise-faq .accordion-button:not(.collapsed){
  color:var(--billwise-navy);background:var(--billwise-off-white);box-shadow:none;
}
.billwise-faq .accordion-button:focus{
  box-shadow:none;outline:2px solid var(--billwise-brass);outline-offset:-2px;
}
.billwise-faq .accordion-button::after{
  width:1rem;height:1rem;background-size:1rem;
}
.billwise-faq .accordion-body{
  padding:4px 22px 22px;
  font-size:.9375rem;line-height:1.75;color:var(--billwise-muted);
}

/* Closing call to action. */
.billwise-cta{text-align:center}
.billwise-cta .btn-row{justify-content:center}


/* ------------------------------------------------------------------ *
   AUTHENTICATION SCREENS

   Sign in, firm registration, verification, password reset and the
   account-status notices. One card on the paper ground, using the form
   primitives from section 08 rather than a second set of field styles.
 * ------------------------------------------------------------------ */

.billwise-auth-wrap{
  min-height:calc(100vh - 78px);
  display:grid;place-items:center;
  padding:56px var(--billwise-gutter);
}
.billwise-auth{
  width:min(460px,100%);
  background:var(--billwise-white);
  border:1px solid var(--billwise-border);
  border-top:3px solid var(--billwise-brass);
  border-radius:var(--billwise-radius);
  box-shadow:var(--billwise-shadow);
  padding:36px;
}
.billwise-auth-wide{width:min(620px,100%)}

.billwise-auth h1{
  font-family:var(--billwise-font-display);
  font-size:1.75rem;line-height:1.2;font-weight:600;letter-spacing:-.02em;
  color:var(--billwise-navy);margin:0 0 8px;
}
.billwise-auth-intro{
  font-size:.9375rem;line-height:1.65;color:var(--billwise-muted);margin:0 0 24px;
}
.billwise-auth-foot{
  margin:22px 0 0;padding-top:20px;border-top:1px solid var(--billwise-border);
  text-align:center;font-size:.875rem;color:var(--billwise-muted);
}
.billwise-auth-aside{
  display:flex;justify-content:flex-end;margin:-10px 0 18px;
  font-size:.8125rem;
}

/* Notices — success, error and the neutral standing message. */
.billwise-notice{
  display:flex;gap:11px;align-items:flex-start;
  padding:13px 15px;margin-bottom:20px;
  border:1px solid var(--billwise-border);
  border-radius:var(--billwise-radius-sm);
  background:var(--billwise-off-white);
  font-size:.875rem;line-height:1.6;color:var(--billwise-muted);
}
.billwise-notice i{font-size:1rem;line-height:1.5;flex-shrink:0}
.billwise-notice p{margin:0}
.billwise-notice ul{margin:0;padding-left:18px}
.billwise-notice-ok{
  border-color:rgba(46,125,91,.35);background:rgba(46,125,91,.06);color:#245e45;
}
.billwise-notice-ok i{color:var(--billwise-success)}
.billwise-notice-bad{
  border-color:rgba(181,71,71,.35);background:rgba(181,71,71,.05);color:#8f3a3a;
}
.billwise-notice-bad i{color:var(--billwise-danger)}
.billwise-notice-warn{
  border-color:rgba(183,121,31,.35);background:rgba(183,121,31,.06);color:#8a5b16;
}
.billwise-notice-warn i{color:var(--billwise-warning)}

/* Registration wizard progress. Three steps, the current one carried in
   brass, the completed ones ticked. */
.billwise-steps-bar{
  display:flex;align-items:center;gap:8px;
  margin:0 0 26px;padding:0;list-style:none;
}
.billwise-steps-bar li{
  display:flex;align-items:center;gap:8px;flex:1;
  font-size:.75rem;font-weight:600;color:var(--billwise-light-text);
}
.billwise-steps-bar li span{
  display:inline-flex;align-items:center;justify-content:center;
  width:26px;height:26px;flex-shrink:0;border-radius:50%;
  border:1px solid var(--billwise-border-strong);
  background:var(--billwise-white);
  font-family:var(--billwise-font-mono);font-size:.6875rem;
}
.billwise-steps-bar li.is-current{color:var(--billwise-navy)}
.billwise-steps-bar li.is-current span{
  border-color:var(--billwise-brass);color:var(--billwise-brass);
  background:rgba(169,120,47,.08);
}
.billwise-steps-bar li.is-done{color:var(--billwise-muted)}
.billwise-steps-bar li.is-done span{
  border-color:var(--billwise-success);background:var(--billwise-success);color:#fff;
}
.billwise-steps-bar li:not(:last-child):after{
  content:"";flex:1;height:1px;background:var(--billwise-border);
}

/* Choosing a plan during registration. */
.billwise-choice{
  display:flex;gap:12px;align-items:flex-start;
  padding:15px 16px;margin-bottom:10px;
  border:1px solid var(--billwise-border-strong);
  border-radius:var(--billwise-radius-sm);
  background:var(--billwise-white);cursor:pointer;
  transition:border-color var(--billwise-speed) var(--billwise-ease),
             background-color var(--billwise-speed) var(--billwise-ease);
}
.billwise-choice:hover{border-color:var(--billwise-brass)}
.billwise-choice:has(input:checked){
  border-color:var(--billwise-brass);background:rgba(169,120,47,.05);
}
.billwise-choice input{margin-top:3px;flex-shrink:0}
.billwise-choice b{display:block;color:var(--billwise-navy);font-size:.9375rem}
.billwise-choice em{
  display:block;font-style:normal;font-size:.875rem;
  color:var(--billwise-muted);margin-top:2px;
}
.billwise-choice small{
  display:block;font-size:.8125rem;color:var(--billwise-light-text);margin-top:5px;
}

.billwise-choice-group{display:grid;gap:0;margin:16px 0 20px}

/* The review step's read-back of what was entered. */
.billwise-review{margin:0 0 22px}
.billwise-review dt{
  font-family:var(--billwise-font-mono);font-size:.625rem;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--billwise-light-text);margin-top:14px;
}
.billwise-review dd{
  margin:3px 0 0;font-size:.9375rem;color:var(--billwise-text);
}

@media (max-width:575.98px){
  .billwise-auth{padding:26px 22px}
  .billwise-auth-wrap{padding:32px var(--billwise-gutter)}
  .billwise-steps-bar li span{width:23px;height:23px}
  .billwise-steps-bar li{font-size:0}
  .billwise-steps-bar li.is-current{font-size:.75rem}
}

@media (max-width:991.98px){
  .billwise-hero{padding:66px 0 74px}
  .billwise-hero-grid,.billwise-feature-lead{grid-template-columns:minmax(0,1fr);gap:44px}
  .billwise-steps{grid-template-columns:minmax(0,1fr);gap:26px}
  .billwise-step:not(:last-child):before{display:none}
}


/* ------------------------------------------------------------------ *
   16  RESPONSIVE

   Breakpoints follow Bootstrap's, so the system and the grid agree.
   The type scale is fluid and needs no ramp of its own.
 * ------------------------------------------------------------------ */

@media (max-width:991.98px){
  :root{--billwise-section-y:76px;--billwise-section-y-lg:96px;--billwise-section-y-sm:56px}
  .billwise-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .billwise-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:767.98px){
  :root{--billwise-gutter:24px}
  .billwise-grid-2,.billwise-grid-3,.billwise-grid-4{grid-template-columns:minmax(0,1fr)}
  .section-head{margin-bottom:36px}
  .billwise-card{padding:24px}
  .billwise-card-lg{padding:28px}
}

@media (max-width:575.98px){
  :root{--billwise-gutter:20px;--billwise-section-y:60px;--billwise-section-y-lg:72px}
  .btn-row{flex-direction:column;align-items:stretch}
  .btn-row > *{width:100%}
}
