/* CollabRev Solutions: design tokens follow design-system/collabrev-solutions/MASTER.md
   (Swiss minimal: navy + trust blue, orange reserved for the primary call to action). */
:root {
  --navy: #0b2a4a;
  --navy-deep: #071c33;
  --ink: #0b1a2c;
  --text: #2b3a4d;
  --muted: #55657a;
  --blue: #0b6fb3;          /* links, primary buttons: 5.3:1 on white */
  --blue-bright: #1690e0;   /* brand blue, decorative only */
  --blue-tint: #eaf3fb;
  --accent: #f7a823;        /* primary CTA only */
  --accent-dark: #e0920c;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --line: #e3e8ef;
  --line-strong: #cfd7e2;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(11, 26, 44, .06), 0 8px 24px rgba(11, 26, 44, .06);
  --container: 1180px;
  --font-head: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "DM Serif Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.025em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--radius); z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: var(--radius); font-family: var(--font-head); font-weight: 700; font-size: .98rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; line-height: 1.2; min-height: 46px; }
.btn svg { flex: none; }
.btn-accent { background: var(--accent); color: var(--navy-deep); }
.btn-accent:hover { background: var(--accent-dark); color: var(--navy-deep); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.text-link { font-family: var(--font-head); font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.text-link:hover { text-decoration: underline; }

/* Top bar */
.topbar { background: var(--navy-deep); color: #c5d3e3; font-size: .84rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .group { display: flex; gap: 22px; align-items: center; }
.topbar .group > * { display: inline-flex; gap: 7px; align-items: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); flex: none; }
.logo span { font-family: var(--font-logo); font-size: 1.6rem; line-height: .95; display: block; letter-spacing: -.01em; white-space: nowrap; }
.logo b { font-weight: 400; color: var(--blue-bright); }
.logo small { display: block; font-family: var(--font-head); font-size: .56rem; font-weight: 700; letter-spacing: .42em; text-transform: uppercase; color: var(--accent-dark); margin-top: 5px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a:not(.btn), .nav-links .dd-btn { display: inline-flex; align-items: center; gap: 5px; padding: 10px 13px; border-radius: var(--radius); text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .97rem; background: none; border: 0; cursor: pointer; }
.nav-links a:not(.btn):hover, .nav-links .dd-btn:hover { color: var(--blue); }
.nav-links a[aria-current="page"] { color: var(--blue); }
.nav-links li.nav-cta { margin-left: 10px; }
.nav-links li.nav-cta a { color: var(--navy-deep); }
.dropdown { position: absolute; top: calc(100% + 6px); left: -12px; min-width: 310px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 8px; list-style: none; display: none; }
.has-dd:hover .dropdown, .has-dd:focus-within .dropdown, .has-dd.open .dropdown { display: block; }
.has-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.dropdown a { display: block; padding: 10px 12px; font-weight: 600; }
.dropdown a small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 1px; }
.dropdown a:hover { background: var(--bg-alt); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px; cursor: pointer; color: var(--ink); min-width: 44px; min-height: 44px; }

/* Sections */
section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--navy); color: #c9d6e5; }
.section-dark h2, .section-dark h3 { color: #fff; }
.label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.label::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section-dark .label { color: #8cc6f2; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .label::after { content: ""; width: 22px; height: 2px; background: currentColor; }
.lead { font-size: 1.13rem; color: var(--muted); line-height: 1.7; }
.section-dark .lead { color: #b5c6d9; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; }
.head-row .section-head { margin-bottom: 0; }

/* Hero */
.hero { padding: 80px 0 88px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .hl { color: var(--blue); }
.hero .lead { max-width: 580px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero-facts { list-style: none; padding: 26px 0 0; display: flex; flex-wrap: wrap; gap: 12px 30px; border-top: 1px solid var(--line); font-size: .93rem; }
.hero-facts li { white-space: nowrap; display: flex; gap: 9px; align-items: center; color: var(--ink); font-weight: 500; }
.hero-facts svg { color: var(--blue); }

/* Revenue-cycle panel */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head strong { font-family: var(--font-head); color: var(--ink); font-size: 1rem; }
.panel-head span { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.cycle { list-style: none; padding: 0; margin: 0; }
.cycle li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); font-size: .96rem; }
.cycle li:last-child { border-bottom: 0; }
.cycle .n { font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--blue); }
.cycle .tag { font-size: .74rem; font-weight: 600; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--line); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.panel-foot { padding: 16px 22px; background: var(--bg-alt); border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

/* Systems strip */
.systems { padding: 30px 0; border-bottom: 1px solid var(--line); }
.systems .container { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.systems .k { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-family: var(--font-head); }
.systems .names { display: flex; flex-wrap: wrap; gap: 10px 34px; }
.systems .names span { font-family: var(--font-head); font-weight: 700; color: #66768a; font-size: 1.06rem; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.split.mid { align-items: center; }

/* Ruled grid: Swiss-style cells divided by hairlines */
.ruled { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ruled.c2 { grid-template-columns: repeat(2, 1fr); }
.ruled.c3 { grid-template-columns: repeat(3, 1fr); }
.ruled.c4 { grid-template-columns: repeat(4, 1fr); }
.ruled > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 28px; background: #fff; }
.ruled h3 { font-size: 1.08rem; margin-bottom: 8px; }
.ruled p { margin: 0; color: var(--muted); font-size: .97rem; }
.ruled .n { font-family: var(--font-head); font-weight: 700; color: var(--blue); font-size: .85rem; display: block; margin-bottom: 18px; }

/* Service cards */
.svc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; transition: border-color .2s, box-shadow .2s; }
.svc:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.svc .ico { width: 44px; height: 44px; border-radius: var(--radius); background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; margin-bottom: 22px; }
.svc h3 { font-size: 1.3rem; }
.svc h3 a { color: inherit; text-decoration: none; }
.svc h3 a:hover { color: var(--blue); }
.svc p { color: var(--muted); }
.svc ul { list-style: none; padding: 0; margin: 4px 0 26px; display: grid; gap: 9px; font-size: .95rem; color: var(--ink); }
.svc ul li { display: flex; gap: 10px; }
.svc ul li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--blue); border-radius: 1px; margin-top: .62em; }
.svc .text-link { margin-top: auto; }

/* Small link cards */
.link-card { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; text-decoration: none; color: inherit; transition: border-color .2s; }
.link-card:hover { border-color: var(--blue); color: inherit; }
.link-card strong { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-head); color: var(--ink); font-size: 1.04rem; margin-bottom: 4px; }
.link-card strong svg { color: var(--blue); flex: none; }
.link-card span { color: var(--muted); font-size: .93rem; }

/* Checklist */
.checks { list-style: none; padding: 0; display: grid; gap: 18px; margin: 28px 0 0; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
.checks svg { color: var(--blue); margin-top: 3px; }
.checks strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.04rem; }
.checks span { color: var(--muted); }
.section-dark .checks strong { color: #fff; }
.section-dark .checks span { color: #b5c6d9; }
.section-dark .checks svg { color: #8cc6f2; }

/* Commitments (non-numeric facts) */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.facts > div { padding: 26px 24px 26px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.facts > div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.14); }
.facts > div:nth-child(even) { padding-left: 24px; }
.facts .v { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: #fff; margin-bottom: 4px; }
.facts .d { font-size: .93rem; color: #b5c6d9; }

/* Pills / tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags a, .tags span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 99px; background: #fff; color: var(--ink); font-weight: 500; font-size: .94rem; text-decoration: none; }
.tags a:hover { border-color: var(--blue); color: var(--blue); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.06rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 760px; }

/* CTA band */
.cta { background: var(--navy); border-radius: var(--radius-lg); padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; color: #b5c6d9; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { margin: 0; max-width: 620px; }
.cta .actions { margin: 0; }

/* Page hero (inner pages) */
.page-hero { padding: 60px 0 56px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 880px; }
.page-hero .lead { max-width: 740px; margin-bottom: 0; }
.page-hero .actions { margin: 28px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* Long-form content */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.content-grid > *, .split > * { min-width: 0; }
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 1.8em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; display: grid; gap: 6px; }
.prose li::marker { color: var(--blue); }
.prose .ruled { margin: 8px 0 28px; }
.prose .faq { margin-top: 8px; }
.aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: #fff; }
.aside-box h3 { font-size: 1.05rem; }
.aside-box p { color: var(--muted); font-size: .95rem; }
.aside-box ul { list-style: none; padding: 0; display: grid; }
.aside-box ul a { display: block; padding: 8px 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.aside-box ul a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.aside-box ul li:last-child a { border-bottom: 0; }
.aside-box.dark { background: var(--navy); border-color: var(--navy); }
.aside-box.dark h3 { color: #fff; }
.aside-box.dark p { color: #b5c6d9; }
.aside-box .btn { width: 100%; justify-content: center; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); margin: 8px 0 28px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-head); color: var(--ink); background: var(--bg-alt); font-size: .88rem; }
tr:last-child td { border-bottom: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item .ico { width: 44px; height: 44px; border-radius: var(--radius); background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.contact-item strong { display: block; color: var(--ink); font-family: var(--font-head); }
.form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; background: #fff; box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 600; color: var(--ink); font-size: .93rem; }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink); min-height: 46px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form-note { font-size: .86rem; color: var(--muted); margin: 14px 0 0; }
.form-status { font-weight: 600; color: var(--blue); margin: 10px 0 0; min-height: 1.4em; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #9fb2c8; padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; }
.site-footer .logo { color: #fff; }
.site-footer .logo b { color: #5cb8f5; }
.site-footer .logo small { color: var(--accent); }
.site-footer p { margin-top: 18px; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #c9d6e5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 52px; padding-top: 24px; font-size: .86rem; }
.footer-bottom nav { display: flex; gap: 20px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .split, .content-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .aside { position: static; }
  .grid-4, .ruled.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .ruled.c3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; padding: 44px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 24px 22px; gap: 0; box-shadow: var(--shadow); max-height: calc(100vh - 112px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links > li > a, .nav-links .dd-btn { width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .dropdown a small { display: none; }
  .has-dd::after { display: none; }
  .nav-links li.nav-cta { margin: 16px 0 0; }
  .nav-links li.nav-cta a { justify-content: center; border: 0; border-radius: var(--radius); }
  .topbar .hide-sm { display: none; }
  .head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  section { padding: 68px 0; }
  .container { padding: 0 16px; }
  .nav-links { padding: 10px 16px 22px; }
  .hero { padding: 52px 0 60px; }
  .grid-2, .grid-3, .grid-4, .ruled.c2, .ruled.c3, .ruled.c4, .row, .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div:nth-child(even) { padding: 22px 0; border-right: 0; }
  .facts > div:nth-child(odd) { border-right: 0; }
  .hero-facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta { padding: 32px 24px; }
  .form-card { padding: 24px; }
  .svc { padding: 26px; }
  .actions .btn { width: 100%; justify-content: center; }
  .cycle li { grid-template-columns: 28px 1fr; }
  .cycle .tag { display: none; }
}
