/* ============================================================
   BillWise Health — Master Stylesheet
   Edit palette + type in :root and it cascades across every page.
   Palette is derived directly from the brand logo:
     navy  #16233D  ·  steel blue #4A7BA0  ·  gold #C69A3C  ·  cream #F5F2EA
   ============================================================ */

:root{
  /* --- Brand palette (from logo) --- */
  --paper:      #F5F2EA;   /* cream page background            */
  --paper-2:    #ECE7DB;   /* dimmer cream for alt sections    */
  --paper-3:    #E3DDCE;   /* card hover / tag borders         */
  --navy:       #16233D;   /* primary dark (logo wordmark)     */
  --navy-900:   #0F1930;   /* deepest navy (footer / dark band)*/
  --blue:       #4A7BA0;   /* steel blue accent (logo "Wise")  */
  --blue-soft:  #6B97B8;   /* lighter steel blue               */
  --gold:       #C69A3C;   /* gold accent (logo pulse tail)    */
  --gold-deep:  #A97F26;

  /* --- Text --- */
  --ink:        #24303F;   /* body text on cream               */
  --ink-soft:   #4C5A6B;   /* secondary text                   */
  --ink-faint:  #6E7A88;

  /* --- Lines --- */
  --line:       rgba(22,35,61,0.14);
  --line-soft:  rgba(22,35,61,0.08);

  /* --- Type --- */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius: 3px;
  --wrap: 1180px;
}

/* ============================================================
   Base
   ============================================================ */
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
h1,h2,h3,h4{ font-family:var(--serif); font-weight:600; letter-spacing:-0.01em; color:var(--navy); line-height:1.15; }
strong{ font-weight:600; }
::selection{ background:var(--gold); color:var(--navy-900); }

.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 32px; }

/* Skip link for accessibility + SEO */
.skip{ position:absolute; left:-999px; top:0; background:var(--navy); color:var(--paper); padding:10px 16px; z-index:200; }
.skip:focus{ left:12px; top:12px; }

:focus-visible{ outline:2px solid var(--blue); outline-offset:2px; }

/* Shared eyebrow label */
.eyebrow{
  font-family:var(--mono); font-size:11.5px; letter-spacing:0.15em;
  text-transform:uppercase; color:var(--gold-deep);
  display:inline-flex; align-items:center; gap:9px;
}
.eyebrow::before{ content:""; width:22px; height:1.5px; background:var(--gold); }

.ring{ width:9px; height:9px; border-radius:50%; border:1.6px solid currentColor; display:inline-block; flex:none; }

/* Reusable ECG pulse divider (the brand signature) */
.pulse-rule{ display:block; width:100%; height:26px; color:var(--gold); opacity:.9; }
.pulse-rule svg{ width:100%; height:100%; }

/* ============================================================
   Top bar
   ============================================================ */
.topbar{ background:var(--navy-900); color:#C4D0E0; font-family:var(--mono); font-size:12px; }
.topbar .wrap{ display:flex; justify-content:space-between; align-items:center; padding:9px 32px; gap:16px; flex-wrap:wrap; }
.topbar a:hover{ color:var(--gold); }
.topbar .tb-right{ display:flex; gap:20px; }

/* ============================================================
   Header / Nav
   ============================================================ */
header.site-nav{ background:var(--paper); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:80; }
.site-nav .wrap{ display:flex; align-items:center; justify-content:space-between; padding:16px 32px; }

.brand{ display:flex; align-items:center; gap:11px; }
.brand .mark{ width:38px; height:38px; flex:none; }
.brand .brand-text{ display:flex; flex-direction:column; line-height:1; }
.brand .brand-name{ font-family:var(--serif); font-weight:600; font-size:20px; color:var(--navy); }
.brand .brand-name .w{ color:var(--blue); }
.brand .brand-sub{ font-family:var(--mono); font-size:8.5px; letter-spacing:0.14em; text-transform:uppercase; color:var(--gold-deep); margin-top:4px; }

.nav-links{ display:flex; align-items:center; gap:32px; font-size:14.5px; font-weight:500; }
.nav-links > a, .has-sub > a{ position:relative; display:inline-flex; align-items:center; gap:5px; padding:8px 0; color:var(--ink); }
.nav-links a .caret{ font-size:9px; color:var(--gold-deep); }
.nav-links > a:hover, .has-sub:hover > a{ color:var(--blue); }
.nav-links a[aria-current="page"]{ color:var(--navy); }
.nav-links a[aria-current="page"]::after{ content:""; position:absolute; left:0; bottom:0; width:100%; height:2px; background:var(--gold); }

.has-sub{ position:relative; }
.submenu{
  position:absolute; top:calc(100% + 12px); left:-18px;
  background:var(--paper); border:1px solid var(--line); min-width:250px; padding:8px 0;
  opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity .16s ease, transform .16s ease, visibility .16s;
  box-shadow:0 16px 34px rgba(15,25,48,0.12);
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu{ opacity:1; visibility:visible; transform:translateY(0); }
.submenu a{ display:flex; align-items:center; gap:10px; padding:11px 22px; font-size:13.5px; font-weight:500; color:var(--ink); }
.submenu a:hover{ background:var(--paper-2); color:var(--blue); }
.submenu a .ring{ color:var(--gold); }
.submenu .view-all{ border-top:1px solid var(--line); margin-top:6px; padding-top:12px; }
.submenu .view-all a{ font-family:var(--mono); font-size:11px; letter-spacing:.05em; text-transform:uppercase; color:var(--gold-deep); }

.btn{
  display:inline-flex; align-items:center; gap:7px; cursor:pointer;
  font-family:var(--sans); font-size:14px; font-weight:600; border-radius:var(--radius);
  padding:12px 22px; border:1.5px solid var(--navy); background:var(--navy); color:var(--paper);
  transition:background .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover{ background:var(--blue); border-color:var(--blue); }
.btn.outline{ background:transparent; color:var(--navy); }
.btn.outline:hover{ background:var(--navy); color:var(--paper); }
.btn.gold{ background:var(--gold); border-color:var(--gold); color:var(--navy-900); }
.btn.gold:hover{ background:var(--gold-deep); border-color:var(--gold-deep); }
.btn.lg{ padding:15px 28px; font-size:15px; }

.nav-toggle{ display:none; background:none; border:1px solid var(--line); border-radius:var(--radius); padding:9px 13px; font-size:13px; font-weight:600; font-family:var(--sans); cursor:pointer; color:var(--navy); }

/* ============================================================
   Sections
   ============================================================ */
section{ padding:92px 0; }
section.tight{ padding:64px 0; }
.alt{ background:var(--paper-2); }
.dark{ background:var(--navy-900); color:#C7D2E2; }
.dark h1,.dark h2,.dark h3,.dark h4{ color:var(--paper); }
.dark .eyebrow{ color:var(--gold); }
.dark .eyebrow::before{ background:var(--gold); }

.section-head{ max-width:660px; margin-bottom:52px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(27px,3.4vw,36px); margin-top:18px; }
.section-head p{ color:var(--ink-soft); margin-top:16px; font-size:16px; }
.dark .section-head p{ color:#A9B7CB; }

.lede{ font-size:18px; color:var(--ink-soft); }

/* ============================================================
   Hero
   ============================================================ */
.hero{ padding:86px 0 90px; border-bottom:1px solid var(--line); overflow:hidden; }
.hero .wrap{ display:grid; grid-template-columns:1.05fr 0.9fr; gap:56px; align-items:center; }
.hero h1{ font-size:clamp(34px,4.6vw,50px); line-height:1.1; margin:22px 0 22px; }
.hero h1 em{ font-style:normal; color:var(--blue); }
.hero p.lede{ max-width:490px; margin-bottom:34px; }
.hero .ctas{ display:flex; gap:14px; margin-bottom:40px; flex-wrap:wrap; }
.trustrow{ display:flex; gap:26px; flex-wrap:wrap; font-family:var(--mono); font-size:12px; color:var(--ink-faint); }
.trustrow span{ display:inline-flex; align-items:center; gap:8px; }
.trustrow .ring{ color:var(--gold); }

/* Page hero (interior pages) */
.page-hero{ padding:70px 0 56px; border-bottom:1px solid var(--line); background:linear-gradient(180deg,var(--paper-2),var(--paper)); }
.page-hero h1{ font-size:clamp(32px,4.4vw,46px); margin:18px 0 18px; max-width:820px; }
.page-hero p{ max-width:640px; font-size:18px; color:var(--ink-soft); }
.crumbs{ font-family:var(--mono); font-size:11.5px; letter-spacing:.04em; color:var(--ink-faint); margin-bottom:6px; }
.crumbs a:hover{ color:var(--blue); }
.crumbs span{ color:var(--gold-deep); }

/* Hero accuracy target visual */
.hero-visual{ position:relative; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; }
.target{ position:relative; width:min(340px,80vw); aspect-ratio:1/1; }
.target .ring-el{ position:absolute; border-radius:50%; border:1.5px solid var(--line); top:50%; left:50%; transform:translate(-50%,-50%); }
.r1{ width:100%; height:100%; }
.r2{ width:74%; height:74%; border-color:rgba(74,123,160,0.28); }
.r3{ width:48%; height:48%; border-color:rgba(74,123,160,0.42); }
.r4{ width:23%; height:23%; background:var(--navy); display:flex; align-items:center; justify-content:center; }
.r4::after{ content:""; width:34%; height:34%; border-radius:50%; background:var(--gold); }
.metric-card{
  position:absolute; background:var(--paper); border:1px solid var(--line);
  padding:13px 17px; box-shadow:0 12px 26px rgba(15,25,48,0.10); border-radius:var(--radius);
}
.metric-card .num{ font-family:var(--serif); font-size:23px; color:var(--navy); font-weight:600; }
.metric-card .lbl{ font-family:var(--mono); font-size:10px; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-faint); margin-top:3px; }
.m1{ top:-4px; left:-26px; } .m2{ bottom:8px; right:-38px; } .m3{ bottom:-22px; left:30px; }

/* ============================================================
   Cards / grids
   ============================================================ */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:26px; }

.service-card{ background:var(--paper); padding:36px 32px; transition:background .15s ease; }
.alt .service-card{ background:var(--paper-2); }
.service-card:hover{ background:var(--paper-3); }
.service-card .idx{ font-family:var(--mono); font-size:12px; color:var(--gold-deep); display:flex; align-items:center; gap:7px; margin-bottom:22px; }
.service-card h3{ font-size:22px; margin-bottom:11px; }
.service-card p{ font-size:15px; color:var(--ink-soft); margin-bottom:18px; }
.service-card .go{ font-size:13.5px; font-weight:600; color:var(--blue); display:inline-flex; align-items:center; gap:6px; }
.service-card .go:hover{ color:var(--navy); }

.tag-row{ display:flex; flex-wrap:wrap; gap:8px; }
.tag{ font-family:var(--mono); font-size:11px; border:1px solid var(--line); border-radius:2px; padding:4px 10px; color:var(--ink-faint); background:var(--paper); }

/* Feature list w/ tick */
.feature-list{ list-style:none; display:grid; gap:16px; }
.feature-list li{ display:flex; gap:13px; align-items:flex-start; }
.feature-list .tick{ flex:none; width:22px; height:22px; border-radius:50%; background:var(--navy); color:var(--gold); display:flex; align-items:center; justify-content:center; font-size:12px; margin-top:2px; }
.feature-list li strong{ display:block; color:var(--navy); font-size:15.5px; margin-bottom:2px; }
.feature-list li span{ font-size:14.5px; color:var(--ink-soft); }

/* Two-col content split */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.split.narrow{ grid-template-columns:0.8fr 1.2fr; }

/* Stat band */
.stat-band{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.stat{ background:var(--paper); padding:32px 26px; }
.dark .stat{ background:var(--navy-900); }
.stat .n{ font-family:var(--serif); font-size:38px; color:var(--navy); font-weight:600; }
.dark .stat .n{ color:var(--paper); }
.stat .k{ font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-faint); margin-top:6px; }
.dark .stat .k{ color:#9DB0C8; }

/* ============================================================
   Process (numbered sequence)
   ============================================================ */
.process-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:28px; }
.process-step{ border-top:2px solid rgba(198,154,60,0.5); padding-top:20px; }
.process-step .step-no{ font-family:var(--mono); font-size:12px; color:var(--gold); margin-bottom:14px; }
.dark .process-step .step-no{ color:var(--gold); }
.process-step h3{ font-size:18px; margin-bottom:8px; }
.process-step p{ font-size:14.5px; }

/* ============================================================
   Specialty chips / grid
   ============================================================ */
.chip-row{ display:flex; flex-wrap:wrap; gap:12px; }
.chip{ border:1px solid var(--line); border-radius:2px; padding:12px 18px; font-size:14px; font-weight:500; display:inline-flex; align-items:center; gap:9px; background:var(--paper); }
.chip .ring{ color:var(--gold); }

.spec-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.spec-item{ background:var(--paper); padding:26px 24px; }
.spec-item .num{ font-family:var(--mono); font-size:11px; color:var(--gold-deep); }
.spec-item h3{ font-size:17px; margin:10px 0 7px; }
.spec-item p{ font-size:13.5px; color:var(--ink-soft); }

/* ============================================================
   FAQ
   ============================================================ */
.faq{ border-top:1px solid var(--line); }
.faq details{ border-bottom:1px solid var(--line); }
.faq summary{ cursor:pointer; list-style:none; padding:24px 40px 24px 0; position:relative; font-family:var(--serif); font-size:19px; color:var(--navy); font-weight:600; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; position:absolute; right:6px; top:22px; font-family:var(--sans); font-size:22px; color:var(--gold-deep); transition:transform .2s; }
.faq details[open] summary::after{ content:"–"; }
.faq details p{ padding:0 40px 26px 0; color:var(--ink-soft); font-size:15.5px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band .inner{ border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); padding:56px 48px; display:flex; justify-content:space-between; align-items:center; gap:32px; flex-wrap:wrap; }
.cta-band .inner h2{ font-size:clamp(24px,3vw,30px); max-width:520px; }
.cta-band .inner p{ color:var(--ink-soft); margin-top:12px; max-width:480px; font-size:15.5px; }

/* ============================================================
   Contact form
   ============================================================ */
.form-card{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:36px; }
.field{ margin-bottom:20px; }
.field label{ display:block; font-family:var(--mono); font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:8px; }
.field input, .field textarea{
  width:100%; font-family:var(--sans); font-size:15px; color:var(--ink);
  background:var(--paper-2); border:1px solid var(--line); border-radius:var(--radius);
  padding:13px 15px; transition:border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--blue); background:var(--paper); }
.field textarea{ min-height:130px; resize:vertical; }
.phi-note{ font-size:12.5px; color:var(--ink-faint); background:var(--paper-2); border-left:3px solid var(--gold); padding:11px 14px; margin-bottom:22px; border-radius:2px; }
.form-status{ font-size:14px; margin-top:14px; }
.form-status.ok{ color:#2E6B4F; }
.form-status.err{ color:#B84B2C; }

/* Contact detail rows */
.contact-lines{ display:grid; gap:20px; }
.contact-lines .row{ display:flex; gap:14px; align-items:flex-start; }
.contact-lines .row .ic{ flex:none; width:34px; height:34px; border-radius:50%; border:1.5px solid var(--gold); color:var(--gold-deep); display:flex; align-items:center; justify-content:center; font-size:15px; }
.contact-lines .row .k{ font-family:var(--mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-faint); }
.contact-lines .row .v{ font-size:16px; color:var(--navy); font-weight:500; }

/* ============================================================
   Prose (privacy / about long-form)
   ============================================================ */
.prose{ max-width:760px; }
.prose h2{ font-size:24px; margin:44px 0 14px; }
.prose h3{ font-size:19px; margin:28px 0 10px; }
.prose p{ margin-bottom:16px; color:var(--ink-soft); }
.prose ul{ margin:0 0 18px 20px; color:var(--ink-soft); }
.prose li{ margin-bottom:8px; }
.prose a{ color:var(--blue); text-decoration:underline; text-underline-offset:2px; }
.prose .updated{ font-family:var(--mono); font-size:12px; color:var(--ink-faint); }

/* ============================================================
   Footer
   ============================================================ */
footer.site-foot{ background:var(--navy-900); color:#A9B7CB; padding:66px 0 28px; }
.foot-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:40px; padding-bottom:44px; border-bottom:1px solid rgba(245,242,234,0.12); }
.foot-brand{ display:flex; align-items:center; gap:11px; margin-bottom:16px; }
.foot-brand .mark{ width:34px; height:34px; }
.foot-brand .fn{ font-family:var(--serif); font-weight:600; font-size:19px; color:var(--paper); }
.foot-brand .fn .w{ color:var(--blue-soft); }
footer.site-foot p.blurb{ font-size:14px; max-width:290px; color:#8FA0B8; }
.foot-col h4{ font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--gold); margin-bottom:16px; }
.foot-col a, .foot-col span{ display:block; font-size:14px; margin-bottom:11px; color:#BDC9D9; }
.foot-col a:hover{ color:var(--paper); }
.foot-bottom{ display:flex; justify-content:space-between; padding-top:24px; font-size:12.5px; color:#7385A0; flex-wrap:wrap; gap:10px; }
.foot-bottom a:hover{ color:var(--paper); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:960px){
  .nav-links{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--paper); border-bottom:1px solid var(--line);
    padding:8px 0; box-shadow:0 20px 30px rgba(15,25,48,0.10);
  }
  .nav-links.open{ display:flex; }
  .nav-links > a, .has-sub > a{ padding:14px 32px; }
  .has-sub{ position:static; }
  .submenu{ position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none; border-left:2px solid var(--line); margin:0 32px 8px; min-width:0; padding:0; }
  .nav-links .btn{ margin:10px 32px; justify-content:center; }
  .nav-toggle{ display:inline-block; }
  .hero .wrap{ grid-template-columns:1fr; }
  .hero-visual{ margin-top:12px; }
  .grid-3, .spec-grid{ grid-template-columns:1fr; }
  .grid-4, .process-grid, .stat-band{ grid-template-columns:1fr 1fr; }
  .split, .split.narrow{ grid-template-columns:1fr; gap:36px; }
  .foot-grid{ grid-template-columns:1fr 1fr; row-gap:32px; }
}
@media (max-width:560px){
  .wrap{ padding:0 20px; }
  .topbar .wrap{ padding:9px 20px; }
  .site-nav .wrap{ padding:14px 20px; }
  section{ padding:64px 0; }
  .grid-4, .process-grid, .stat-band, .foot-grid{ grid-template-columns:1fr; }
  .cta-band .inner{ padding:38px 26px; }
  .brand .brand-sub{ display:none; }
}
@media (prefers-reduced-motion:reduce){ *{ scroll-behavior:auto !important; transition:none !important; } }
header .btn, .site-nav .btn, nav .btn{
  background: var(--gold) !important;
  color: var(--navy-900) !important;
  border-color: var(--gold-deep) !important;
}
header .btn:hover, .site-nav .btn:hover, nav .btn:hover{
  background: var(--gold-deep) !important;
  color: var(--paper) !important;
}