/* WorksWithMyEHR: colorful clinical theme (v2). Previous theme: backup-pre-redesign/styles.before.css */
:root{
  --navy:#0a2540;--navy-2:#0e3a5c;--teal:#0e5a6b;--teal-d:#0b4f5c;--brand:#0b6477;--brand-d:#084b59;
  --coral:#ff7a59;--coral-h:#ff9f80;--coral-d:#b93a16;--amber:#fbbf24;
  --ink:#1e293b;--muted:#475569;--line:#d5dee8;--bg:#ffffff;--tint:#eef6f8;--warm:#fff6f1;--card:#fff;
  --ok:#166534;--okbg:#dcfce7;--mk:#1e40af;--mkbg:#dbeafe;--api:#92400e;--apibg:#fef3c7;--unk:#475569;--unkbg:#e2e8f0;
  --radius:14px;--shadow:0 1px 2px rgba(10,37,64,.06),0 6px 18px rgba(10,37,64,.08)
}
/* category accents: --c = accent (white text OK on it), --ct = tint (accent text OK on it) */
.c-ai-receptionist{--c:#4338ca;--ct:#eef2ff}
.c-patient-intake{--c:#0f766e;--ct:#e6f6f4}
.c-online-scheduling{--c:#1d4ed8;--ct:#e8f0fe}
.c-reminders-messaging{--c:#7e22ce;--ct:#f5ecfd}
.c-reviews-reputation{--c:#a14a07;--ct:#fff4e5}
.c-ai-scribe{--c:#be123c;--ct:#ffeef1}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font:17px/1.65 system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg)}
a{color:var(--brand);text-underline-offset:2px}a:hover{color:var(--brand-d)}
:focus-visible{outline:3px solid var(--amber);outline-offset:2px;box-shadow:0 0 0 5px var(--navy)}
.skip{position:absolute;left:-999px;top:0;background:#fff;color:var(--navy);padding:.5rem 1rem;z-index:10;font-weight:700}.skip:focus{left:1rem}
.wrap{max-width:1160px;margin:0 auto;padding:0 1.25rem}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* header */
header.site{background:var(--navy);color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
header.site .wrap{display:flex;align-items:center;justify-content:space-between;gap:.6rem 1.25rem;flex-wrap:wrap;padding-top:.85rem;padding-bottom:.85rem}
.logo{display:inline-flex;align-items:center;gap:.5rem;font-weight:800;font-size:1.2rem;letter-spacing:-.01em;text-decoration:none;color:#fff}
.logo:hover{color:#fff}.logo-text span{color:var(--coral)}
.logo-mark{width:28px;height:28px;border-radius:8px;background:var(--coral);display:inline-grid;place-items:center}
nav.main{display:flex;flex-wrap:wrap;gap:.25rem 1.1rem}
nav.main a{text-decoration:none;color:#d6e6f2;font-size:.95rem;font-weight:600}nav.main a:hover{color:#fff;text-decoration:underline}

/* type */
h1{font-size:clamp(1.9rem,4.2vw,2.9rem);line-height:1.12;letter-spacing:-.02em;font-weight:800;margin:.3rem 0 .7rem;color:var(--navy)}
h2{font-size:clamp(1.4rem,2.6vw,1.85rem);line-height:1.2;letter-spacing:-.01em;font-weight:800;margin:2.2rem 0 .8rem;color:var(--navy)}
h3{font-size:1.12rem;line-height:1.3;font-weight:750;margin:.2rem 0 .35rem;color:var(--navy)}
.lead{font-size:1.15rem;color:var(--muted);max-width:780px}
.meta{font-size:.9rem;color:var(--muted)}
main{padding:0 0 3.5rem}
main > .wrap{padding-top:1.5rem}
.eyebrow{display:inline-block;font-size:.8rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#ffd2c4;margin:0 0 .4rem}

/* hero (home) */
.hero{background:radial-gradient(1200px 400px at 85% -10%,rgba(255,122,89,.20),transparent 60%),linear-gradient(135deg,var(--navy) 0%,var(--navy-2) 55%,var(--teal) 100%);color:#fff;padding:3.5rem 0 3.25rem}
.hero h1{color:#fff;font-size:clamp(2.1rem,5vw,3.4rem);max-width:900px}
.hero h1 em{font-style:normal;color:var(--coral)}
.hero .lead{color:#dbe8f2;font-size:1.2rem;max-width:780px}
.picker{display:flex;gap:.8rem;flex-wrap:wrap;align-items:flex-end;margin-top:1.6rem;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:var(--radius);padding:1rem 1.1rem;max-width:860px}
.picker > div{flex:1 1 220px}.picker > div:last-child{flex:0 0 auto}
.picker label{display:block;font-weight:700;font-size:.92rem;margin-bottom:.3rem;color:#fff}
.picker select{width:100%;min-width:0}
.stats{display:flex;flex-wrap:wrap;gap:.6rem 1.6rem;list-style:none;padding:0;margin:1.6rem 0 0;color:#dbe8f2;font-size:.98rem}
.stats strong{color:#fff;font-size:1.35rem;font-weight:800;margin-right:.3rem}

/* page header band (inner pages) */
.page-head{background:linear-gradient(135deg,var(--navy) 0%,var(--teal) 100%);color:#fff;padding:1.4rem 0 2rem}
.page-head h1{color:#fff;margin-top:.5rem}
.page-head .lead{color:#dbe8f2}
.page-head.cat .lead,.page-head.cat .meta,.page-head.cat .crumbs,.page-head.cat .crumbs a{color:#fff}
.page-head .meta{color:#d6e6f2}
.page-head a{color:#fff}
.page-head a.btn,.page-head a.btn:hover{color:var(--navy)}
.page-head.cat{background:linear-gradient(135deg,var(--navy) 0%,var(--c) 120%)}
.page-head .crumbs,.page-head .crumbs a{color:#d6e6f2}
.page-head .head-icon{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:14px;background:var(--c);color:#fff;margin-top:.6rem;box-shadow:0 0 0 4px rgba(255,255,255,.15)}
.page-head .head-icon svg{width:28px;height:28px}
.page-head .cat-tag{box-shadow:0 0 0 2px rgba(255,255,255,.35)}
.page-head .btn{margin-top:.3rem}
.crumbs{font-size:.9rem;color:var(--muted)}.crumbs a{color:var(--muted)}

/* bands (home sections) */
.band{padding:3rem 0}
.band > .wrap > h2:first-child{margin-top:0}
.band-tint{background:var(--tint);border-top:1px solid #dcebf0;border-bottom:1px solid #dcebf0}
.band-warm{background:var(--warm);border-top:1px solid #f6e1d6}
.section-intro{color:var(--muted);margin:-.3rem 0 1.2rem;max-width:760px}

/* forms & buttons */
select,input[type=text],input[type=email],input[type=url],textarea{font:inherit;color:var(--ink);padding:.7rem .8rem;border:1.5px solid #94a3b8;border-radius:10px;background:#fff;min-width:220px;max-width:100%}
textarea{width:100%;min-height:110px}
.btn{display:inline-block;background:var(--coral);color:var(--navy);border:0;border-radius:10px;padding:.72rem 1.3rem;font:inherit;font-weight:800;text-decoration:none;cursor:pointer;box-shadow:0 2px 0 rgba(10,37,64,.18);transition:background .15s,transform .15s}
.btn:hover{background:var(--coral-h);color:var(--navy);transform:translateY(-1px)}
.btn.secondary{background:#fff;color:var(--brand);border:2px solid var(--brand);box-shadow:none;padding:.5rem 1rem}
.btn.secondary:hover{background:var(--brand);color:#fff}
form .field{margin-bottom:.9rem}form label{display:block;font-weight:700;margin-bottom:.3rem}
.form-msg{display:none;margin-top:.7rem}

/* cards */
.grid{display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.grid.list{grid-template-columns:1fr}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem 1.25rem;box-shadow:var(--shadow)}
.card p{margin:.3rem 0;color:var(--muted);font-size:.96rem}
.card a.stretch{text-decoration:none;color:inherit;display:block}
.cat-card{position:relative;border-top:6px solid var(--c);transition:transform .15s,box-shadow .15s}
.cat-card:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(10,37,64,.14)}
.cat-card .ico-wrap{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:12px;background:var(--ct);color:var(--c);margin-bottom:.6rem}
.cat-card h3{font-size:1.2rem}
.cat-card .count{font-weight:800;color:var(--c)}
.cat-card .go{display:inline-block;margin-top:.5rem;font-weight:800;color:var(--c)}
.tool-card{border-left:5px solid var(--c,var(--brand))}
.tool-card h3 a{color:var(--navy);text-decoration:none}.tool-card h3 a:hover{color:var(--brand);text-decoration:underline}
.tool-row{display:grid;grid-template-columns:1fr auto;gap:.5rem 1rem;align-items:start}
.ico{width:26px;height:26px;flex:none}.ico.sm{width:16px;height:16px}

/* chips & tags */
.ehr-chips{display:flex;flex-wrap:wrap;gap:.65rem}
.chip{display:inline-flex;align-items:center;gap:.55rem;border:2px solid #a7d8dc;background:#d5efee;border-radius:999px;padding:.5rem .6rem .5rem 1rem;text-decoration:none;font-size:1rem;font-weight:750;color:var(--teal-d);transition:background .15s,border-color .15s}
.chip .n{background:var(--brand);color:#fff;border-radius:999px;padding:.05rem .55rem;font-size:.85rem;font-weight:800;min-width:2rem;text-align:center}
.chip:hover{background:var(--teal-d);border-color:var(--teal-d);color:#fff}.chip:hover .n{background:var(--coral);color:var(--navy)}
.cat-tag{display:inline-flex;align-items:center;gap:.35rem;background:var(--ct);color:var(--c);border-radius:999px;padding:.25rem .7rem;font-size:.85rem;font-weight:750;text-decoration:none;line-height:1.3}
.cat-tag:hover{background:var(--c);color:#fff}
.page-head .cat-tag{background:var(--ct);color:var(--c)}.page-head .cat-tag:hover{background:var(--c);color:#fff}
.tag-row{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}
.jump{margin:1rem 0 .5rem}

/* badges */
.badge{display:inline-block;font-size:.78rem;font-weight:800;border-radius:999px;padding:.14rem .6rem;white-space:nowrap;letter-spacing:.01em;border:1px solid transparent}
.b-native{color:var(--ok);background:var(--okbg);border-color:#86efac}
.b-marketplace{color:var(--mk);background:var(--mkbg);border-color:#93c5fd}
.b-api{color:var(--api);background:var(--apibg);border-color:#fcd34d}
.b-unknown{color:var(--unk);background:var(--unkbg);border-color:#cbd5e1}
.b-yes{color:var(--ok);background:var(--okbg);border-color:#86efac}.b-no{color:#991b1b;background:#fee2e2;border-color:#fca5a5}.b-aff{color:#6b21a8;background:#f3e8ff;border-color:#d8b4fe}
.dot{display:inline-block;width:.85rem;height:.85rem;border-radius:50%;vertical-align:middle}
.d-native{background:#15803d}.d-marketplace{background:#1d4ed8}.d-api{background:#d97706}.d-unknown{background:#fff;border:2px solid #94a3b8}
.legend{display:grid;grid-template-columns:repeat(auto-fit,minmax(430px,1fr));gap:.55rem 1.4rem;font-size:.9rem;color:var(--muted);margin:1rem 0;padding:.8rem 1rem;background:#f8fafc;border:1px solid var(--line);border-radius:12px}
.legend > span{display:flex;align-items:center;gap:.45rem;line-height:1.4}
.legend .dot,.legend .badge{flex:none}

/* category sections on EHR pages */
.cat-sec{margin-top:2.2rem;padding-top:.2rem}
.cat-sec h2{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin-top:0;padding-bottom:.5rem;border-bottom:3px solid var(--c)}
.cat-sec h2 a{color:var(--navy);text-decoration:none}.cat-sec h2 a:hover{color:var(--c);text-decoration:underline}
.cat-sec h2 .ico-wrap{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--c);color:#fff}
.cat-sec h2 .meta{font-weight:600}

/* tables */
table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;font-size:.95rem}
th,td{text-align:left;padding:.6rem .75rem;border-bottom:1px solid var(--line);vertical-align:top}
tbody tr:last-child th,tbody tr:last-child td{border-bottom:0}
thead th{background:var(--navy);color:#fff;font-weight:700}
thead th a{color:#fff}
tbody th{background:#f1f6f9;font-weight:700}
tbody tr:nth-child(even) td{background:#fafcfd}
.table-scroll{position:relative;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:12px}
.matrix td,.matrix th{text-align:center;white-space:nowrap}.matrix td:first-child,.matrix th:first-child{text-align:left}
.matrix td:first-child a{font-weight:700}

/* notices, newsletter, aside */
.notice{background:#fff8e6;border:1px solid #f1d58a;border-left:5px solid #d97706;border-radius:12px;padding:.85rem 1rem;font-size:.96rem;color:var(--ink)}
.disclosure{background:#f5efff;border:1px solid #ddd0f5;border-left:5px solid #7e22ce;border-radius:12px;padding:.75rem 1rem;font-size:.93rem}
.nl{background:linear-gradient(140deg,#0b3b52 0%,var(--teal) 100%);color:#fff;border:0;border-radius:18px;padding:1.6rem 1.5rem;box-shadow:0 10px 30px rgba(10,37,64,.22);position:relative;overflow:hidden}
.nl::after{content:"";position:absolute;right:-70px;bottom:-70px;width:180px;height:180px;border-radius:50%;background:rgba(255,122,89,.18);pointer-events:none}
.nl > *{position:relative;z-index:1}
.nl h2{color:#fff;margin-top:0;position:relative}
.nl p{color:#dbeef3}.nl label{color:#fff}
.nl input[type=email]{width:100%;border-color:#fff}
.nl .notice{color:var(--ink)}
.verify-list{list-style:none;padding:0;margin:1rem 0;display:grid;gap:.6rem}
.verify-list li{display:flex;gap:.6rem;align-items:flex-start}
.verify-list li::before{content:"";flex:none;width:22px;height:22px;margin-top:.15rem;border-radius:50%;background:var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%23fff' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat}
.two{display:grid;gap:1.75rem;grid-template-columns:2fr 1fr;align-items:start}
.two > div > h2:first-child{margin-top:0}
.two > *{min-width:0}
main.bare{padding-bottom:0}
.grid.cats{grid-template-columns:repeat(3,1fr)}
.stat-pill{display:inline-flex;align-items:center;gap:.4rem;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:.2rem .35rem .2rem .7rem;color:#fff}
.stat-pill strong{font-size:1.05rem}
.glance{border-top:6px solid var(--c,var(--brand));position:sticky;top:1rem}
.kv{display:grid;grid-template-columns:120px 1fr;gap:.45rem .8rem;font-size:.97rem}.kv dt{font-weight:700;color:var(--navy)}.kv dd{margin:0}
.about{display:flex;gap:1.2rem;align-items:flex-start;max-width:900px}
.about .mark{flex:none;width:56px;height:56px;border-radius:16px;background:var(--coral);display:grid;place-items:center}

/* footer */
footer.site{background:var(--navy);color:#c8d8e6;padding:2rem 0;font-size:.92rem}
footer.site strong{color:#fff}
footer.site a{color:#fff}
footer.site .b-aff{color:#6b21a8}

@media (max-width:980px) and (min-width:761px){.grid.cats{grid-template-columns:repeat(2,1fr)}}
@media (max-width:760px){
  body{font-size:16.5px}
  .two{grid-template-columns:1fr}.kv{grid-template-columns:1fr}.kv dt{margin-top:.4rem}
  .tool-row{grid-template-columns:1fr}
  .grid.cats{grid-template-columns:1fr}
  .stats{display:grid;grid-template-columns:1fr 1fr;gap:.6rem 1rem}
  .legend{grid-template-columns:1fr}.legend > span{display:block}.legend .dot,.legend .badge{margin-right:.35rem}
  .hero{padding:2.2rem 0 2.4rem}.band{padding:2.2rem 0}
  .picker > div,.picker > div:last-child{flex:1 1 100%}.picker .btn{width:100%}
  .glance{position:static}
  nav.main{gap:.2rem .9rem}nav.main a{font-size:.9rem}
  .about{flex-direction:column}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
