/* BillingBell Healthcare Systems — site styles */
:root {
  --ink: #0E1830;        /* brand navy */
  --ink-2: #24304d;
  --paper: #F6F8FB;      /* cool page background */
  --white: #FFFFFF;
  --slate: #56607A;      /* secondary text */
  --line: #DCE2EC;
  --brass: #A87420;      /* bell brass accent */
  --brass-soft: #F5EAD6;
  --bell: #FBCF33;       /* logo bell yellow */
  --verified: #237152;   /* checked / cleared */
  --verified-soft: #E3F2EA;
  --flag: #A4570E;       /* needs review */
  --flag-soft: #FBEBDA;
  --serif: "IBM Plex Serif", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius-s: 6px;
  --radius-m: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--slate); }
.small { font-size: .9rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 10px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand { gap: 16px; }
.brand-bell { height: 52px; width: auto; transform-origin: 50% 6%; }
.brand-word { height: 46px; width: auto; }
@media (max-width: 400px) { .brand-bell { height: 38px; } .brand-word { height: 32px; } }
@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-11deg); }
  45% { transform: rotate(7deg); }
  60% { transform: rotate(-4deg); }
  75% { transform: rotate(2deg); }
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--radius-s); font-size: .97rem; color: var(--ink-2); }
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--bell); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brass); padding-left: 14px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem; padding: 12px 20px; border-radius: var(--radius-s); border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.nav .btn { padding: 9px 16px; color: #fff; }
.nav .btn:hover { color: #fff; background: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Sections */
section { padding: 72px 0; }
.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-ink { background: var(--ink); color: #E8ECF4; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink a { color: #fff; }
.band-ink .muted { color: #AEB8CC; }
.section-head { margin-bottom: 36px; max-width: 720px; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero .services-line { color: var(--slate); font-size: .98rem; margin-bottom: 18px; }

/* Claim check — the signature element */
.claim { margin: 0; width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: 0 18px 40px -24px rgba(14,24,48,.35); overflow: hidden; }
.claim-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.claim-top strong { font-family: var(--serif); font-size: 1.05rem; }
.claim-top span { font-size: .85rem; color: var(--slate); }
@media (max-width: 480px) { .claim-top { flex-direction: column; gap: 2px; } .claim li { padding: 12px 16px; } }
.claim ol { list-style: none; margin: 0; padding: 0; }
.claim li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: start; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.claim li:last-child { border-bottom: 0; }
.claim .step { font-weight: 600; font-size: .98rem; }
.claim .detail { display: block; font-size: .87rem; color: var(--slate); line-height: 1.45; }
.dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.dot svg { width: 13px; height: 13px; }
.dot.ok { background: var(--verified-soft); color: var(--verified); }
.dot.flag { background: var(--flag-soft); color: var(--flag); }
.dot.person { background: var(--brass-soft); color: var(--brass); }
.tag { font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: var(--verified-soft); color: var(--verified); }
.tag.flag { background: var(--flag-soft); color: var(--flag); }
.tag.person { background: var(--brass-soft); color: #7A5413; }
.claim li.is-flag { background: #FFFBF5; }
.claim-foot { padding: 12px 20px; font-size: .82rem; color: var(--slate); background: var(--paper); border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .claim li { opacity: 0; transform: translateY(6px); animation: rowIn .45s ease forwards; }
  .claim li:nth-child(1) { animation-delay: .15s; }
  .claim li:nth-child(2) { animation-delay: .35s; }
  .claim li:nth-child(3) { animation-delay: .55s; }
  .claim li:nth-child(4) { animation-delay: .8s; }
  .claim li:nth-child(5) { animation-delay: 1.05s; }
  @keyframes rowIn { to { opacity: 1; transform: none; } }
}

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.fact { padding: 28px 28px 8px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact .num { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1; margin-bottom: 8px; }
.fact p { font-size: .95rem; color: var(--ink-2); }
.fact cite { font-style: normal; font-size: .8rem; color: var(--slate); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .fact + .fact { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } }

/* Lists and grids */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .cols-2, .cols-3 { grid-template-columns: 1fr; gap: 28px; } }

.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.service-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.service-list h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.service-list p { margin: 0; font-size: .97rem; color: var(--ink-2); }
@media (max-width: 760px) { .service-list { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding: 6px 0 6px 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 9px; border-left: 2.5px solid var(--verified); border-bottom: 2.5px solid var(--verified); transform: rotate(-45deg); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(s); font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--brass); display: block; margin-bottom: 6px; }
.steps h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin-bottom: 4px; }
.steps p { font-size: .95rem; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.band-ink .steps li { border-top-color: #3A4766; }
.band-ink .steps li::before { color: var(--bell); }
.band-ink .steps p { color: #C9D1E0; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; }
.panel h3 { margin-bottom: 8px; }
.panel p:last-child { margin-bottom: 0; }

.specialty { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.specialty h3 { margin: 0; }
@media (max-width: 760px) { .specialty { grid-template-columns: 1fr; gap: 8px; } }

.status { display: inline-block; font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--flag-soft); color: var(--flag); margin-bottom: 16px; }

/* Sentinel page */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 8px 0 12px; }
.flow > div { padding: 16px 16px 16px 0; border-top: 3px solid var(--line); position: relative; }
.flow > div.ai { border-top-color: var(--flag); }
.flow > div.human { border-top-color: var(--brass); }
.flow > div.go { border-top-color: var(--verified); }
.flow strong { display: block; font-size: .98rem; margin-bottom: 4px; }
.flow span { font-size: .9rem; color: var(--slate); display: block; line-height: 1.45; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .flow > div { border-top: 0; border-left: 3px solid var(--line); padding: 10px 0 10px 16px; } .flow > div.ai { border-left-color: var(--flag); } .flow > div.human { border-left-color: var(--brass); } .flow > div.go { border-left-color: var(--verified); } }

.rq { list-style: none; counter-reset: q; padding: 0; margin: 0; }
.rq li { counter-increment: q; padding: 16px 0 16px 56px; border-top: 1px solid var(--line); position: relative; }
.rq li::before { content: "RQ" counter(q); position: absolute; left: 0; top: 16px; font-weight: 600; color: var(--brass); font-size: .95rem; }

.audiences { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .audiences { grid-template-columns: 1fr; } }
.audiences .panel a { font-weight: 600; }

table.data { width: 100%; border-collapse: collapse; font-size: .97rem; background: var(--white); }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-weight: 600; background: var(--paper); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); }

/* Founder — round portrait with a slowly turning brand ring */
.founder { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; }
.portrait { position: relative; width: 100%; max-width: 260px; aspect-ratio: 1; padding: 10px; }
.portrait img { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 6px solid var(--white); background: var(--line); }
.portrait-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--bell) 0deg, var(--bell) 110deg, var(--ink) 170deg, var(--ink) 250deg, rgba(14,24,48,.12) 300deg, var(--bell) 360deg); }
.portrait::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .portrait-ring { animation: ringTurn 14s linear infinite; }
  .portrait img { animation: portraitIn .9s ease-out .2s both; }
}
@keyframes ringTurn { to { transform: rotate(360deg); } }
@keyframes portraitIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; gap: 28px; } .portrait { max-width: 220px; } }

/* Page header */
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: var(--white); }
.page-head p { margin-bottom: 0; }

/* CTA */
.cta { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta p { margin: 0; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }
.band-ink .btn { background: var(--bell); color: var(--ink); border-color: var(--bell); }
.band-ink .btn:hover { background: var(--brass-soft); border-color: var(--brass-soft); color: var(--ink); }

/* Forms */
form .field { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--slate); font-size: .85rem; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid #C3CBD9; border-radius: var(--radius-s); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(168,116,32,.35); border-color: var(--brass); }
textarea { min-height: 130px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -5000px; }
.notice { padding: 14px 16px; border-radius: var(--radius-s); background: var(--flag-soft); color: #6B3A08; margin-bottom: 20px; }
.notice.good { background: var(--verified-soft); color: #174C37; }
.notice[hidden] { display: none; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D1E0; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h3 { font-family: var(--sans); font-size: .95rem; color: #fff; margin-bottom: 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 3px 0; }
.foot-legal { border-top: 1px solid #2A3654; margin-top: 40px; padding-top: 20px; font-size: .82rem; color: #97A3BC; }
.foot-legal p { max-width: none; margin-bottom: 6px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

.headline { font-size: .98rem; color: var(--slate); border-left: 3px solid var(--bell); padding-left: 12px; margin-bottom: 1.2em; }
.btn-li { display: inline-flex; align-items: center; gap: 8px; }
.btn-li svg { width: 18px; height: 18px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.foot-brand img { height: 52px; width: auto; }
.foot-brand img + img { height: 46px; }

/* Ringing bell: swings every few seconds with sound waves */
.bell-wrap { position: relative; display: inline-block; line-height: 0; }
.bell-wrap::before, .bell-wrap::after {
  content: ""; position: absolute; top: 22%; width: 34%; height: 46%;
  border: 3px solid var(--bell); border-radius: 50%; opacity: 0; pointer-events: none;
}
.bell-wrap::before { left: -22%; border-right-color: transparent; border-top-color: transparent; border-bottom-color: transparent; }
.bell-wrap::after { right: -22%; border-left-color: transparent; border-top-color: transparent; border-bottom-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .brand-bell { animation: bellCycle 5s ease-in-out .4s infinite; }
  .bell-wrap::before { animation: waveLeft 5s ease-out .4s infinite; }
  .bell-wrap::after { animation: waveRight 5s ease-out .4s infinite; }
  .brand:hover .brand-bell, .foot-brand:hover .brand-bell { animation: bellRing 1s ease-in-out infinite; }
}
@keyframes bellCycle {
  0%, 30%, 100% { transform: rotate(0); }
  4% { transform: rotate(16deg); }
  9% { transform: rotate(-13deg); }
  14% { transform: rotate(9deg); }
  19% { transform: rotate(-6deg); }
  24% { transform: rotate(3deg); }
}
@keyframes waveLeft {
  0%, 2% { opacity: 0; transform: translateX(0) scale(.7); }
  8% { opacity: .9; }
  26%, 100% { opacity: 0; transform: translateX(-10px) scale(1.25); }
}
@keyframes waveRight {
  0%, 2% { opacity: 0; transform: translateX(0) scale(.7); }
  8% { opacity: .9; }
  26%, 100% { opacity: 0; transform: translateX(10px) scale(1.25); }
}
.foot-brand { gap: 16px; }

/* Slogan with flowing brand colours */
.slogan {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.35;
  margin-bottom: 18px; max-width: 40ch;
  background: linear-gradient(100deg, var(--ink) 0%, #9A6A12 25%, #D39A08 40%, var(--ink) 55%, #9A6A12 75%, var(--ink) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.slogan-foot {
  font-size: 1rem; max-width: 36ch; margin-bottom: 14px;
  background-image: linear-gradient(100deg, #FFFFFF 0%, var(--bell) 25%, #FFE58A 40%, #FFFFFF 55%, var(--bell) 75%, #FFFFFF 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .slogan { animation: sloganFlow 7s ease-in-out infinite alternate; }
}
@keyframes sloganFlow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (forced-colors: active) { .slogan { color: CanvasText; background: none; } }

/* Keep every menu item on one line; shorten "Sentinel Research" to "Research" when space is tight */
.nav a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1100px) {
  .nav-long { display: none; }
  .nav a { padding: 8px 9px; }
}
