/* Clarity EHR marketing site */
:root {
  --ink: #0f1d3a;
  --ink-2: #33415c;
  --muted: #5b6b85;
  --line: #dfe5ef;
  --bg: #ffffff;
  --bg-tint: #f3f6fb;
  --brand: #2450d6;
  --brand-dark: #1a3da8;
  --brand-soft: #e8eefc;
  --accent: #0e8a6b;
  --accent-soft: #e3f4ee;
  --warn: #a35a00;
  --warn-soft: #fff3e0;
  --footer-bg: #0f1d3a;
  --footer-ink: #c9d3e6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 29, 58, .06), 0 12px 32px rgba(15, 29, 58, .10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink-2); background: var(--bg); }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.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; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; text-decoration: none; border-radius: 10px; border: 1.5px solid transparent; padding: 12px 20px; font-size: 1rem; line-height: 1.2; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-sm { padding: 9px 16px; font-size: .9375rem; }
.btn-lg { padding: 15px 26px; font-size: 1.0625rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: var(--brand-soft); color: var(--brand-dark); }
.btn-secondary:hover { background: #d9e3fa; color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1875rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand-ehr { color: var(--brand); }
.site-nav { margin-left: 8px; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .9688rem; }
.site-nav a:hover { background: var(--bg-tint); color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }

@media (max-width: 920px) {
  .header-inner { gap: 12px; }
  .js .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15,29,58,.08); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .site-nav a { padding: 12px; font-size: 1.0625rem; }
  .no-js .site-nav { position: static; display: none; }
}
@media (max-width: 560px) { .hide-sm { display: none; } }

/* Shared section styles */
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .75em; }
.lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 40em; }
.section { padding: 96px 0; }
.section-tight { padding: 48px 0 96px; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); font-size: 1.0625rem; }
@media (max-width: 700px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* Hero */
.hero { padding: 80px 0 96px; background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.hero-note { font-size: .9375rem; color: var(--muted); }
@media (max-width: 920px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) { .hero-actions .btn { width: 100%; } }

/* Hero illustration */
.hero-visual { margin: 0; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; max-width: 520px; margin-left: auto; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--ink); color: #fff; font-size: .875rem; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.28); }
.mock-bar b { margin-left: 10px; font-weight: 600; }
.mock-body { padding: 20px; display: grid; gap: 12px; }
.mock-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .9375rem; }
.mock-label { color: var(--muted); }
.mock-value { color: var(--ink); font-weight: 600; text-align: right; }
.tag { font-style: normal; font-size: .75rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 999px; margin-left: 6px; white-space: nowrap; }
.mock-checks { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 8px; font-size: .9063rem; }
.mock-checks li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; }
.mock-checks .ok { background: var(--accent-soft); color: #0b5c48; }
.mock-checks .warn { background: var(--warn-soft); color: #7a4300; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: .55em; background: currentColor; }
.mock-send { display: flex; justify-content: flex-end; }
.mock-send span { background: var(--brand); color: #fff; font-weight: 600; font-size: .9375rem; padding: 10px 18px; border-radius: 10px; }
@media (max-width: 920px) { .mock { margin: 0 auto; } }

/* Tabs */
.tab-list { display: flex; gap: 6px; padding: 6px; background: var(--bg-tint); border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 32px; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab { font: inherit; font-weight: 600; font-size: .9688rem; color: var(--ink-2); background: transparent; border: 0; padding: 10px 18px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--brand-dark); box-shadow: 0 1px 3px rgba(15,29,58,.12); }
.tab-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.tab-panel[hidden] { display: none; }
@media (max-width: 600px) {
  .tab-list { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tab { white-space: normal; padding: 10px 8px; }
}
.no-js .tab-list { display: none; }
.no-js .tab-panel { margin-bottom: 56px; }
.panel-text p { color: var(--muted); font-size: 1.0625rem; }
@media (max-width: 860px) { .tab-panel { grid-template-columns: 1fr; gap: 20px; } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding: 16px 18px 16px 50px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.checklist li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230e8a6b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.checklist strong { color: var(--ink); }

/* Connected flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: none; }
.flow li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 40px; right: -17px; width: 18px; height: 2px; background: var(--brand); opacity: .35; }
.flow p { font-size: .9688rem; color: var(--muted); margin: 0; }
.flow-num, .step-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; margin-bottom: 14px; }
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; gap: 12px; }
  .flow li { display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; padding: 20px; }
  .flow-num { grid-row: span 2; margin: 0; }
  .flow h3 { margin-bottom: .25em; }
  .flow li:not(:last-child)::after { top: auto; bottom: -13px; left: 35px; right: auto; width: 2px; height: 14px; }
}

/* Security summary */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-grid li { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .9688rem; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--ink); color: #dfe6f5; border-radius: 18px; padding: 40px; }
.cta-band p { margin: 0; }
.cta-title { color: #fff; font-size: 1.5rem; margin-bottom: .3em; }
@media (max-width: 600px) { .cta-band { padding: 28px 22px; } .cta-actions, .cta-actions .btn { width: 100%; } }

/* Inner pages */
.page-hero { padding: 72px 0 24px; background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%); }
.page-404 { padding: 96px 0 120px; }
.prose h2 { font-size: 1.375rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .75em; }
.prose strong { color: var(--ink); }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 64px 0 24px; font-size: .9375rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, .85fr) 1.5fr; gap: 32px; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-ehr { color: #9db6ff; }
.footer-brand p { margin: 14px 0 0; max-width: 28em; }
.footer-heading { color: #fff; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; margin: 4px 0 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-small { font-size: .875rem; color: #a9b6cf; }
.site-footer .footer-small a { color: #fff; overflow-wrap: anywhere; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .875rem; color: #a9b6cf; }
.footer-bottom p { margin: 0; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Visual refresh: photos, hero, highlights ───────────────────────── */
.hero { position: relative; padding: 72px 0 88px; background: linear-gradient(160deg, #eef3ff 0%, #f8faff 45%, #ffffff 100%); }
.hero-glow { position: absolute; inset: auto -10% -40% auto; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(closest-side, rgba(36,80,214,.16), rgba(36,80,214,0)); pointer-events: none; }
.hero-grid { position: relative; grid-template-columns: 1fr 1fr; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: .8438rem; font-weight: 600; color: var(--brand-dark); background: #fff; border: 1px solid #d6e0fa; padding: 6px 14px 6px 10px; border-radius: 999px; box-shadow: 0 1px 2px rgba(15,29,58,.05); margin-bottom: 22px; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hl { background: linear-gradient(transparent 62%, #cfe0ff 62%); padding: 0 .08em; }
.hero-media { position: relative; padding: 0 0 48px 32px; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.mock-float { position: absolute; left: 0; bottom: 0; width: min(330px, 78%); margin: 0; }
.mock-float .mock-checks { padding: 14px; margin: 0; }
.mock-float .mock-checks li { padding: 8px 10px; font-size: .8438rem; }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { padding: 0 0 56px 0; max-width: 620px; }
  .mock-float { left: 16px; }
}

.works-with { border-bottom: 1px solid var(--line); background: #fff; }
.works-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 28px; padding-top: 22px; padding-bottom: 22px; }
.works-inner p { margin: 0; font-size: .875rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.works-inner ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.works-inner li { font-weight: 700; color: var(--ink); font-size: 1.0625rem; letter-spacing: -.01em; }

.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.icon-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.icon-grid li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; transition: box-shadow .2s, transform .2s; }
.icon-grid li:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.icon-grid p { margin: 0; color: var(--muted); font-size: .9688rem; }
.icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: var(--brand-soft); margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) { .icon-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .icon-grid { grid-template-columns: 1fr; } }

.tab-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px; }
.panel-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; margin-top: 24px; }
.mock-inline { margin: 24px 0 0; max-width: none; }
.section-tint .checklist li { background: var(--bg-tint); border-color: transparent; }
@media (max-width: 600px) { .tab-panel { padding: 20px; border-radius: 16px; } }

.connected-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 40px; }
.connected-top .section-head { margin-bottom: 0; }
.connected-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; }
.flow li { background: var(--bg-tint); border-color: transparent; }
@media (max-width: 860px) { .connected-top { grid-template-columns: 1fr; gap: 28px; } }

.section-dark { background: radial-gradient(1200px 500px at 100% 0%, #1d3a86 0%, rgba(29,58,134,0) 60%), var(--ink); color: #c9d3e6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .link-arrow { color: #9db6ff; }
.eyebrow-light { color: #9db6ff; }
.section-dark .feature-grid li { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.section-dark .feature-grid p { color: #b4c0d8; }

.start-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.start-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.start-grid .steps { grid-template-columns: 1fr; gap: 14px; margin: 24px 0 0; }
.start-grid .steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding: 22px; }
.start-grid .step-num { margin: 0; width: 36px; height: 36px; }
@media (max-width: 960px) { .start-grid { grid-template-columns: 1fr; gap: 32px; } .start-media img { aspect-ratio: 16 / 10; } }

.cta-band { background: linear-gradient(120deg, #2450d6 0%, #1a3da8 55%, #12307f 100%); color: #dfe8ff; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: #eef3ff; color: var(--brand-dark); }

.photo-credits { margin-top: 8px !important; font-size: .8125rem; }
@media (max-width: 600px) {
  .hero-media { padding: 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .mock-float { position: relative; left: auto; bottom: auto; width: auto; margin: -36px 14px 0; }
}
