:root {
  --p3-plum: #2a0d3f;
  --p3-purple: #8e2fc7;
  --p3-magenta: #d94e6e;
  --p3-orange: #e87040;
  --p3-muted: #6b5a80;
  --p3-line: #eadce8;
  --p3-soft: #fcf6fa;
  --p3-shadow: 0 22px 60px rgba(42, 13, 63, .1);
}

body.home-medicy-page { overflow-x: clip; background: #fff !important; color: var(--p3-plum); }
body.home-medicy-page .medicy-frame { display: block; width: 100%; height: 860px; border: 0; overflow: hidden; }
.section { padding: 92px 0; }
.soft { background: var(--p3-soft); }
.kicker { color: var(--p3-purple); }
.lead { color: var(--p3-muted); }
.btn { min-height: 48px; border-radius: 999px; }
.btn-primary { background: linear-gradient(135deg, var(--p3-purple), var(--p3-magenta) 58%, var(--p3-orange)); }
.btn-outline { border-color: rgba(142,47,199,.24); color: var(--p3-purple); }
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.visible { opacity: 1; transform: none; }

/* Experience strip */
.home-stats { border-block: 1px solid #f0e2eb; background: #fff; }
.home-stats__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.home-stats article { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: center; min-width: 0; padding: 27px 24px; border-right: 1px solid #f0e2eb; }
.home-stats article:last-child { border-right: 0; }
.home-stats strong { color: var(--p3-purple); font: 800 31px/1 "DM Sans",sans-serif; letter-spacing: -.045em; }
.home-stats b,.home-stats span { display: block; }
.home-stats b { color: var(--p3-plum); font-size: 14px; }
.home-stats span { margin-top: 4px; color: var(--p3-muted); font-size: 11px; line-height: 1.35; }

/* Consultation form */
.p3-lead { padding-top: 52px; }
.home-form-card { display: grid; grid-template-columns: .82fr 1.18fr; gap: 44px; padding: 36px; border: 1px solid rgba(142,47,199,.12); border-radius: 25px; background: #fff; box-shadow: var(--p3-shadow); }
.home-form-intro { align-self: center; }
.home-form-intro h2 { font-size: clamp(30px,3vw,44px); }
.home-form-intro p { max-width: 39ch; margin: 15px 0 0; color: var(--p3-muted); }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label { display: grid; gap: 7px; min-width: 0; color: var(--p3-plum); font-size: 13px; font-weight: 700; }
.lead-form input,.lead-form select,.lead-form textarea { width: 100%; min-width: 0; padding: 13px 15px; border: 1px solid #e8cfdf; border-radius: 12px; outline: 0; background: #fff; color: var(--p3-plum); font: inherit; transition: border-color .2s,box-shadow .2s; }
.lead-form select { padding-right: 42px; }
.lead-form input,.lead-form select { min-height: 49px; }
.lead-form textarea { min-height: 120px; resize: vertical; }
.lead-form input:focus,.lead-form select:focus,.lead-form textarea:focus { border-color: var(--p3-purple); box-shadow: 0 0 0 4px rgba(142,47,199,.1); }
.lead-form__service,.lead-form__message,.lead-form__submit { grid-column: 1/-1; }
.lead-form__submit { width: 100%; border: 0; color: #fff; }

/* Approved About */
.p3-image-card { margin: 0; min-height: 430px; overflow: hidden; border-radius: 24px; background: linear-gradient(145deg,#fbf3f8,#fff5ed); box-shadow: var(--p3-shadow); }
.p3-image-card img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }

/* Service tabs and mobile rail */
.service-shell { min-height: 478px; overflow: hidden; border: 1px solid var(--p3-line); border-radius: 24px; background: #fff; box-shadow: var(--p3-shadow); }
.tabs { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border-bottom: 1px solid var(--p3-line); }
.tab { min-height: 70px; padding: 15px 8px; border: 0; border-bottom: 3px solid transparent; background: #fff; color: var(--p3-plum); font: 700 12px/1.35 "DM Sans",sans-serif; cursor: pointer; }
.tab.active { border-bottom-color: var(--p3-purple); color: var(--p3-purple); background: #fcf7ff; }
.service-panel { display: none; min-height: 405px; grid-template-columns: .78fr 1.22fr; gap: 38px; align-items: center; padding: 30px; }
.service-panel.active { display: grid; }
.service-art { min-height: 342px; margin: 0; background: #f7edf4; }
.service-art { position: relative; display: grid; overflow: hidden; place-items: center; border-radius: 16px; }
.service-art__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s cubic-bezier(.2,.75,.2,1); }
.service-art__scrim { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(42,13,63,0) 40%,rgba(42,13,63,.72) 100%); }
.service-art .big-icon { position: absolute; z-index: 1; left: 24px; bottom: 24px; display: grid; width: 72px; height: 72px; place-items: center; border-radius: 20px; background: #fff; color: var(--p3-purple); box-shadow: var(--p3-shadow); }
.service-art .big-icon .icon { width: 34px; height: 34px; }
.service-panel.active .service-art__image { transform: scale(1.025); }
.service-copy h2 { font-size: clamp(27px,2.8vw,38px); }
.service-copy .lead { max-width: 50ch; margin: 13px 0 18px; font-size: 16px; }
.service-copy ul { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.service-copy li { margin: 0; color: var(--p3-muted); }
.service-copy li::before { content: "✓"; display: inline-grid; width: 18px; height: 18px; margin-right: 10px; place-items: center; border-radius: 50%; background: var(--p3-purple); color: #fff; font-size: 10px; }
.service-mobile { display: none; }

/* Why SOMA + outcomes */
.why-heading { max-width: 760px; margin-bottom: 42px; }
.why-heading p { margin-bottom: 0; }
.why-layout { display: grid; grid-template-columns: 1.16fr .84fr; gap: 42px; align-items: stretch; }
.why-compare { overflow: hidden; border: 1px solid var(--p3-line); border-radius: 22px; background: #fff; box-shadow: 0 18px 45px rgba(42,13,63,.07); }
.why-compare__head,.why-row { display: grid; grid-template-columns: 1.5fr .52fr 1fr; gap: 12px; align-items: center; padding: 15px 20px; }
.why-compare__head { min-height: 62px; color: #fff; background: var(--p3-plum); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.why-compare__head strong { color: #fff; }
.why-row { min-height: 57px; border-top: 1px solid #f1e6ed; color: var(--p3-muted); font-size: 13px; }
.why-row:nth-child(odd) { background: #fffafd; }
.why-row b { color: var(--p3-plum); }
.why-row span:nth-child(2) { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg,var(--p3-purple),var(--p3-magenta)); font-weight: 900; }
.why-image,.why-image img { min-height: 100%; }
.outcomes-band { padding: 76px 0; color: #fff; background: var(--p3-plum); }
.outcomes-band .kicker { color: #f6a17a !important; }
.outcomes-band__head { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 40px; }
.outcomes-band h2 { max-width: 650px; color: #fff; }
.outcomes-band p { max-width: 720px; margin: 14px 0 0; color: #d7c8dc; }
.outcomes-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-block: 1px solid rgba(255,255,255,.15); }
.outcomes-grid article { min-width: 0; padding: 28px 20px; border-right: 1px solid rgba(255,255,255,.15); }
.outcomes-grid article:last-child { border-right: 0; }
.outcomes-grid strong,.outcomes-grid b,.outcomes-grid span { display: block; }
.outcomes-grid strong { color: #f29a72; font: 800 clamp(24px,2.4vw,34px)/1 "DM Sans",sans-serif; }
.outcomes-grid b { margin-top: 10px; color: #fff; font-size: 14px; }
.outcomes-grid span { margin-top: 8px; color: #cdbbd2; font-size: 11px; line-height: 1.45; }

/* Final approved revenue-cycle process */
.home-rcm { overflow: clip; }
.home-rcm__layout { display: grid; grid-template-columns: minmax(330px,1.08fr) minmax(0,.92fr); gap: clamp(34px,5vw,68px); align-items: start; }
.home-rcm__visual { position: sticky; top: 28px; min-height: 760px; overflow: visible; }
.home-rcm__svg { display: block; width: 100%; max-width: 600px; height: 760px; margin-left: auto; overflow: visible; }
.home-rcm__copy { position: absolute; top: 50%; right: 0; width: 58%; padding-left: clamp(22px,4vw,48px); transform: translateY(-50%); }
.home-rcm__copy h2 { max-width: 430px; margin-bottom: 16px; overflow-wrap: normal; font-size: clamp(28px,3.15vw,44px); line-height: 1.04; }
.home-rcm__copy p { max-width: 400px; margin: 0; color: var(--p3-muted); font-size: clamp(14px,1.35vw,17px); }
.home-rcm__track,.home-rcm__progress { fill: none; stroke-linecap: round; }
.home-rcm__track { stroke: #eadfe9; stroke-width: 8; }
.home-rcm__progress { stroke: url(#homeRcmGradient); stroke-width: 5; opacity: .62; transition: stroke-dashoffset .12s linear; }
.home-rcm__node-base { fill: #fff; stroke: #e5d5e4; stroke-width: 1.5; filter: drop-shadow(0 7px 12px rgba(42,13,63,.09)); transition: fill .42s ease,stroke .42s ease; }
.home-rcm__node-halo { fill: url(#homeRcmGradient); stroke: transparent; opacity: var(--activation,0); transform: scale(var(--node-scale,.92)); transform-box: fill-box; transform-origin: center; transition: opacity .14s linear,transform .14s linear; }
.home-rcm__node use { fill: none; stroke: #806c8a; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.home-rcm__node.is-complete .home-rcm__node-base,.home-rcm__node.is-active .home-rcm__node-base { stroke: var(--p3-purple); }
.home-rcm__node.is-complete .home-rcm__node-base { fill: #fbf6fd; }
.home-rcm__node.is-complete use { stroke: var(--p3-purple); }
.home-rcm__node.is-active use { stroke: #fff; }
.home-rcm__list { display: grid; gap: 32px; padding: 56px 0 120px; }
.home-rcm__card { position: relative; min-height: 210px; padding: 34px; border: 1px solid var(--p3-line); border-radius: 24px; background: rgba(255,255,255,.95); box-shadow: 0 16px 44px rgba(42,13,63,.06); opacity: .42; transform: translateY(18px) scale(.985); transition: opacity .5s,transform .5s,border-color .3s,box-shadow .3s; }
.home-rcm__card::before { position: absolute; top: 24px; left: -7px; width: 4px; height: calc(100% - 48px); border-radius: 999px; background: linear-gradient(var(--p3-purple),var(--p3-magenta),var(--p3-orange)); content: ""; opacity: 0; transform: scaleY(.4); transition: opacity .3s,transform .35s; }
.home-rcm__card.is-visible { opacity: .72; transform: none; }
.home-rcm__card.is-active { border-color: rgba(142,47,199,.34); opacity: 1; transform: translateY(-2px); box-shadow: 0 24px 64px rgba(42,13,63,.13); }
.home-rcm__card.is-active::before { opacity: 1; transform: scaleY(1); }
.home-rcm__top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.home-rcm__number { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 1px solid rgba(142,47,199,.16); border-radius: 15px; color: var(--p3-purple); background: #fbf4ff; font-weight: 900; }
.home-rcm__tag { color: var(--p3-magenta); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.home-rcm__tag--mobile,.home-rcm__marker,.home-rcm__mobile-intro { display: none; }
.home-rcm__card h3 { margin-bottom: 12px; font-size: clamp(22px,2.4vw,29px); }
.home-rcm__card p { max-width: 42ch; margin: 0; color: var(--p3-muted); font-size: 16px; }

/* Specialty system */
.specialty-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 35px; }
.specialty { display: flex; min-width: 0; min-height: 88px; align-items: center; gap: 14px; padding: 17px 18px; border: 1px solid var(--p3-line); border-radius: 16px; color: var(--p3-plum); background: #fff; box-shadow: 0 9px 26px rgba(42,13,63,.04); font-weight: 750; line-height: 1.3; text-decoration: none; transition: border-color .2s ease,box-shadow .2s ease,transform .2s ease; }
.specialty img { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; }
.specialty:hover,.specialty:focus-visible { border-color: rgba(142,47,199,.42); outline: 0; box-shadow: 0 12px 28px rgba(42,13,63,.08); transform: translateY(-2px); }

/* Two-direction software rails */
.p3-logo-grid { display: grid; gap: 14px; overflow: hidden; }
.p3-logo-row { width: 100%; overflow: hidden; padding: 4px 0; }
.p3-logo-track { display: flex; width: max-content; gap: 14px; animation: p3LogoLeft 46s linear infinite; will-change: transform; }
.p3-logo-row:nth-child(2) .p3-logo-track { animation-name: p3LogoRight; animation-duration: 50s; }
.p3-logo-group { display: flex; gap: 14px; }
.p3-logo-card { display: grid; width: 208px; min-width: 208px; min-height: 108px; margin: 0; overflow: hidden; place-items: center; padding: 7px; border: 1px solid var(--p3-line); border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(42,13,63,.05); }
.p3-logo-card img { width: 160%; max-width: none; height: auto; max-height: none; object-fit: contain; }
.p3-logo-card--carestream-dental img,.p3-logo-card--drchrono img { width: 138%; }
.p3-logo-card--curve-dental img { width: 100%; }
.p3-logo-grid:hover .p3-logo-track,.p3-logo-grid:focus-within .p3-logo-track { animation-play-state: paused; }
@keyframes p3LogoLeft { to { transform: translateX(calc(-50% - 7px)); } }
@keyframes p3LogoRight { from { transform: translateX(calc(-50% - 7px)); } to { transform: translateX(0); } }

/* Calendly */
.calendly-section { background: #fff; }
.calendly-shell { min-width: 0; overflow: hidden; border: 1px solid var(--p3-line); border-radius: 25px; background: #fff; box-shadow: var(--p3-shadow); }
.calendly-inline-widget { width: 100%; min-width: 0 !important; }

/* Credentialing */
.credentialing-layout { display: grid; grid-template-columns: 40fr 60fr; gap: 64px; align-items: center; }
.credentialing-copy p { margin: 18px 0 0; }
.credentialing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.credentialing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.credentialing-grid article { display: grid; grid-template-columns: 38px 1fr; gap: 12px 14px; align-items: start; padding: 22px; border: 1px solid var(--p3-line); border-radius: 17px; background: #fff; box-shadow: 0 12px 30px rgba(42,13,63,.05); }
.credentialing-grid .icon { width: 32px; height: 32px; color: var(--p3-purple); }
.credentialing-grid h3 { font-size: 18px; }
.credentialing-grid p { margin: 7px 0 0; color: var(--p3-muted); font-size: 13px; }
.credentialing-grid a { grid-column: 2; color: var(--p3-purple); font-size: 12px; font-weight: 800; }

/* Coverage map */
.coverage-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: 58px; align-items: center; }
.coverage-facts { display: grid; gap: 10px; margin-top: 25px; }
.coverage-facts span { color: var(--p3-muted); font-size: 13px; }
.coverage-facts b { display: inline-block; min-width: 94px; color: var(--p3-plum); }
.p3-location-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.p3-location-chips span { padding: 9px 12px; border: 1px solid var(--p3-line); border-radius: 999px; background: #fff; color: var(--p3-plum); font-size: 12px; font-weight: 700; }
.p3-location-chips small { color: var(--p3-purple); }
.coverage-map { min-width: 0; padding: 20px; border: 1px solid var(--p3-line); border-radius: 25px; background: linear-gradient(145deg,#fff,#fff8f4); box-shadow: var(--p3-shadow); }
.coverage-map__stage { position: relative; min-height: 0; aspect-ratio: 962/583; }
.coverage-map__states { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 15px rgba(42,13,63,.1)); }
.map-pin { position: absolute; z-index: 2; left: var(--pin-x); top: var(--pin-y); width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; transform: translate(-50%,-50%); cursor: pointer; touch-action: manipulation; }
.map-pin::before { position: absolute; inset: 14px; border: 3px solid #fff; border-radius: 50%; background: var(--p3-magenta); box-shadow: 0 4px 11px rgba(42,13,63,.26); content: ""; transition: inset .25s ease,background .25s ease,box-shadow .25s ease; }
.map-pin::after { position: absolute; inset: 8px; border: 1px solid rgba(217,78,110,.28); border-radius: 50%; content: ""; opacity: 0; transform: scale(.7); transition: opacity .25s ease,transform .25s ease; }
.map-pin span { position: absolute; left: 50%; bottom: calc(100% - 3px); width: max-content; max-width: 135px; padding: 6px 8px; border: 1px solid var(--p3-line); border-radius: 8px; opacity: 0; color: var(--p3-plum); background: #fff; box-shadow: 0 8px 22px rgba(42,13,63,.12); font-size: 10px; font-weight: 800; line-height: 1.2; pointer-events: none; transform: translate(-50%,5px); transition: opacity .2s ease,transform .2s ease; }
.map-pin:hover,.map-pin:focus-visible,.map-pin.is-active { z-index: 5; outline: 0; }
.map-pin:hover::before,.map-pin:focus-visible::before,.map-pin.is-active::before { inset: 11px; background: var(--p3-magenta); box-shadow: 0 6px 16px rgba(217,78,110,.3); }
.map-pin:hover::after,.map-pin:focus-visible::after,.map-pin.is-active::after { opacity: 1; transform: scale(1); }
.map-pin:hover span,.map-pin:focus-visible span,.map-pin.is-active span { opacity: 1; transform: translate(-50%,0); }
.map-pin--office::before { inset: 10px; background: var(--p3-purple); }
.map-pin--office::after { inset: 4px; border: 2px solid rgba(142,47,199,.34); opacity: 1; transform: scale(1); }
.map-pin--office:hover::before,.map-pin--office:focus-visible::before,.map-pin--office.is-active::before { background: var(--p3-purple); box-shadow: 0 6px 16px rgba(142,47,199,.3); }
.coverage-details { display: grid; grid-template-columns: auto auto 1fr; gap: 8px 14px; align-items: center; margin: 4px 4px 18px; padding: 15px 17px; border: 1px solid var(--p3-line); border-radius: 15px; background: rgba(255,255,255,.92); box-shadow: 0 10px 28px rgba(42,13,63,.07); }
.coverage-details__type { padding: 6px 9px; border-radius: 999px; color: #fff; background: var(--p3-magenta); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.coverage-details strong { color: var(--p3-plum); font-size: 14px; }
.coverage-details p { margin: 0; color: var(--p3-muted); font-size: 11px; }
.coverage-details.is-office .coverage-details__type { background: var(--p3-purple); }
.coverage-legend { display: flex; justify-content: center; gap: 22px; color: var(--p3-muted); font-size: 12px; }
.coverage-legend span { display: flex; align-items: center; gap: 8px; }
.coverage-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--p3-magenta); box-shadow: 0 0 0 3px #fff,0 0 0 4px rgba(217,78,110,.2); }
.coverage-legend i.is-office { background: var(--p3-purple); }

/* Testimonials, blog and FAQ — shared Home component foundations. */
.testimonial-grid { display: block; overflow: hidden; }
.testimonial-track { display: flex; width: max-content; gap: 22px; animation: p3TestimonialsLeft 34s linear infinite; will-change: transform; }
.testimonial-group { display: flex; gap: 22px; }
.testimonial-grid:hover .testimonial-track,.testimonial-grid:focus-within .testimonial-track { animation-play-state: paused; }
.quote { display: flex; width: min(579px,calc((100vw - 62px)/2)); min-width: 0; flex: 0 0 min(579px,calc((100vw - 62px)/2)); flex-direction: column; padding: 34px; border: 1px solid var(--p3-line); border-radius: 20px; background: #fff; }
.stars { color: #f5a623; letter-spacing: 3px; }
.quote p { color: #40516a; font-size: 17px; }
.person { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg,var(--p3-purple),var(--p3-magenta)); font-weight: 800; }
.quote .person { margin-top: auto; padding-top: 22px; }
.blog-grid,.p3-blog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; max-width: none; margin-inline: auto; }
.post { min-width: 0; height: 100%; display: flex; overflow: hidden; flex-direction: column; border: 1px solid var(--p3-line); border-radius: 15px; background: #fff; }
.post-img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; object-position: center; background: #f4edf3; }
.post-body { flex: 1; display: grid; align-content: start; min-height: 190px; padding: 20px; }
.post-body small { color: var(--p3-purple); }
.post-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.post-meta span { color: var(--p3-muted); font-size: 11px; }
.post-body h3 { margin-top: 9px; }
.post-body a { align-self: end; display: inline-block; margin-top: 18px; color: var(--p3-purple); font-weight: 700; }
.p3-faq-wrap { max-width: 880px; }
.accordion { border-top: 1px solid var(--p3-line); }
.faq { border-bottom: 1px solid var(--p3-line); }
.faq button { display: flex; width: 100%; min-height: 72px; align-items: center; justify-content: space-between; gap: 22px; padding: 20px 4px; border: 0; color: var(--p3-plum); background: transparent; text-align: left; font: 700 16px/1.4 "DM Sans",sans-serif; cursor: pointer; }
.faq button span { flex: 0 0 auto; color: var(--p3-purple); font-size: 22px; line-height: 1; }
.faq button:focus-visible { outline: 3px solid rgba(142,47,199,.25); outline-offset: 4px; }
.faq .answer { max-height: 0; overflow: hidden; padding: 0 4px; color: var(--p3-muted); line-height: 1.7; transition: max-height .35s cubic-bezier(.22,.61,.36,1),padding .3s ease; }
.faq.open .answer { max-height: 560px; padding: 0 4px 22px; }
@keyframes p3TestimonialsLeft { to { transform: translateX(calc(-50% - 11px)); } }

/* Footer stays approved */
.p3-final-cta { padding-top: 40px; }
.p3-final-cta .cta { background: linear-gradient(115deg,var(--p3-purple),var(--p3-magenta) 58%,var(--p3-orange)) !important; }
.p3-footer { padding: 76px 0 52px; background: var(--p3-plum); color: #f7edf4; }
.p3-footer a { color: #eaddea; }
.p3-footer a:hover { color: #fff; }
.p3-footer-main { display: grid; grid-template-columns: 1.25fr 1.45fr .9fr; gap: 48px; }
.p3-footer-brand > img { display: block; width: 180px; margin-bottom: 22px; filter: brightness(0) invert(1); }
.p3-footer-brand p,.p3-footer-brand address,.p3-footer-brand small,.p3-subscribe p { color: #cdbbd0; font-style: normal; line-height: 1.7; }
.p3-footer-brand address { margin: 22px 0 8px; }
.p3-networks,.p3-ai { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.p3-networks a { padding: 7px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: 12px; }
.p3-ai img { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: #fff; object-fit: contain; }
.p3-footer-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.p3-footer-links > div { display: grid; align-content: start; gap: 10px; }
.p3-footer-links strong { margin-bottom: 7px; color: #fff; }
.p3-footer-links a { font-size: 13px; }
.p3-subscribe h2 { color: #fff; font-size: 27px; }
.p3-subscribe > img { display: block; box-sizing: border-box; width: 125px; height: auto; margin-top: 25px; padding: 8px 10px; border-radius: 11px; background: #fff; object-fit: contain; }
.p3-footer-row { margin-top: 38px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.16); }
.p3-footer-row > strong { display: block; margin-bottom: 16px; color: #fff; }
.p3-footer-row > div { display: flex; flex-wrap: wrap; gap: 9px 16px; }
.p3-footer-row span,.p3-footer-row a { color: #cdbbd0; font-size: 12px; }
.p3-footer-row small { color: #f8aa77; }
.p3-footer-row p,.p3-footer .copyright { color: #ac98b1; }
.newsletter { display: flex; }
.newsletter input { width: 100%; min-width: 0; padding: 12px; border: 0; border-radius: 9px 0 0 9px; }
.newsletter button { min-width: 46px; border: 0; border-radius: 0 9px 9px 0; color: #fff; background: var(--p3-purple); }
.copyright { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); font-size: 12px; }
.mobile-cta { display: none; }

@media (max-width: 980px) {
  .home-stats__grid { grid-template-columns: 1fr 1fr; }
  .home-stats article:nth-child(2) { border-right: 0; }
  .home-stats article:nth-child(-n+2) { border-bottom: 1px solid #f0e2eb; }
  .home-form-card { grid-template-columns: 1fr; }
  .service-panel { grid-template-columns: 1fr; }
  .why-layout,.coverage-layout { grid-template-columns: 1fr; }
  .why-image { max-height: 480px; }
  .outcomes-grid { grid-template-columns: repeat(3,1fr); }
  .outcomes-grid article:nth-child(3) { border-right: 0; }
  .outcomes-grid article:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,.15); }
  .home-rcm__layout { grid-template-columns: minmax(260px,.9fr) minmax(0,1.1fr); gap: 24px; }
  .home-rcm__visual,.home-rcm__svg { min-height: 680px; height: 680px; }
  .home-rcm__copy { width: 61%; padding-left: 20px; }
  .home-rcm__copy h2 { font-size: clamp(25px,3.6vw,35px); }
  .home-rcm__copy p { font-size: 13px; }
  .home-rcm__list { padding-top: 38px; }
  .home-rcm__card { padding: 28px 26px; }
  .credentialing-layout { grid-template-columns: 1fr; gap: 40px; }
  .p3-blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .p3-footer-main { grid-template-columns: 1fr 1fr; }
  .p3-subscribe { grid-column: 1/-1; }
}

@media (max-width: 760px) {
  body.home-medicy-page { padding-bottom: 0; }
  body.home-medicy-page .medicy-frame { height: 900px; min-height: 0; }
  .section { padding: 68px 0; }
  .home-stats article { padding: 20px 14px; grid-template-columns: 1fr; gap: 7px; }
  .home-stats strong { font-size: 28px; }
  .home-stats span { font-size: 10px; }
  .p3-lead { padding-top: 34px; }
  .home-form-card { gap: 28px; padding: 22px; border-radius: 21px; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-form__service,.lead-form__message,.lead-form__submit { grid-column: auto; }
  .p3-image-card,.p3-image-card img { min-height: 340px; }
  .service-shell { display: none; }
  .service-mobile { display: flex; gap: 14px; width: calc(100% + 14px); margin-top: 28px; padding: 4px 14px 16px 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .service-mobile::-webkit-scrollbar { display: none; }
  .service-mobile__card { flex: 0 0 min(86vw,360px); min-height: 395px; scroll-snap-align: center; padding: 25px; border: 1px solid var(--p3-line); border-radius: 21px; background: #fff; box-shadow: 0 16px 36px rgba(42,13,63,.08); }
  .service-mobile__icon { display: grid; width: 62px; height: 62px; margin-bottom: 30px; place-items: center; border-radius: 18px; color: var(--p3-purple); background: linear-gradient(145deg,#fbf3f8,#fff3ec); }
  .service-mobile__icon .icon { width: 31px; height: 31px; }
  .service-mobile__card h3 { font-size: 25px; }
  .service-mobile__card p { color: var(--p3-muted); }
  .service-mobile__card ul { min-height: 102px; padding-left: 19px; color: var(--p3-muted); }
  .why-heading { margin-bottom: 28px; }
  .why-layout { display: flex; flex-direction: column; gap: 30px; }
  .why-compare { order: 1; overflow: hidden; }
  .why-image { order: 2; }
  .why-compare__head,.why-row { grid-template-columns: 1.32fr .42fr .76fr; min-width: 0; gap: 6px; padding: 13px 9px; }
  .why-compare__head { font-size: 9px; letter-spacing: .035em; }
  .why-row { min-height: 62px; font-size: 10px; line-height: 1.3; }
  .why-row span:nth-child(2) { width: 25px; height: 25px; }
  .outcomes-band { padding: 62px 0; }
  .outcomes-band__head { display: block; }
  .outcomes-band__head .btn { width: 100%; margin-top: 24px; }
  .outcomes-grid { grid-template-columns: 1fr 1fr; }
  .outcomes-grid article { border-right: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); }
  .outcomes-grid article:nth-child(even) { border-right: 0; }
  .outcomes-grid article:last-child { grid-column: 1/-1; border-bottom: 0; }
  .home-rcm { padding-top: 64px; }
  .home-rcm__layout { display: block; }
  .home-rcm__visual { display: none; }
  .home-rcm__mobile-intro { display: block; margin-bottom: 38px; }
  .home-rcm__mobile-intro p { color: var(--p3-muted); }
  .home-rcm__list { gap: 0; padding: 0; }
  .home-rcm__card { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 17px; min-height: 0; padding: 0 0 34px; border: 0; border-radius: 0; background: transparent; box-shadow: none; opacity: 0; transform: translateY(24px); }
  .home-rcm__card::before { display: none; }
  .home-rcm__card:not(:last-child)::after { position: absolute; top: 46px; bottom: 0; left: 22px; width: 1px; background: linear-gradient(#d9c8dc,#eee3ec); content: ""; }
  .home-rcm__card.is-visible,.home-rcm__card.is-active { opacity: 1; transform: none; box-shadow: none; }
  .home-rcm__marker { position: relative; z-index: 1; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(142,47,199,.22); border-radius: 50%; color: var(--p3-purple); background: #fff; box-shadow: 0 8px 22px rgba(42,13,63,.08); font-size: 12px; font-weight: 900; }
  .home-rcm__card.is-active .home-rcm__marker { border-color: transparent; color: #fff; background: linear-gradient(135deg,var(--p3-purple),var(--p3-magenta) 58%,var(--p3-orange)); }
  .home-rcm__content { min-width: 0; padding-top: 2px; }
  .home-rcm__top { justify-content: flex-start; margin-bottom: 8px; }
  .home-rcm__number,.home-rcm__tag--desktop { display: none; }
  .home-rcm__tag--mobile { display: inline; font-size: 11px; letter-spacing: .04em; text-transform: none; }
  .home-rcm__card h3 { font-size: 23px; }
  .home-rcm__card p { font-size: 15px; }
  .specialty-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .specialty { min-width: 0; min-height: 96px; padding: 13px; font-size: 12px; overflow-wrap: anywhere; }
  .specialty img { width: 38px; height: 38px; flex-basis: 38px; }
  .p3-logo-card { width: calc((100vw - 56px)/2); min-width: calc((100vw - 56px)/2); min-height: 92px; padding: 2px; }
  .p3-logo-card img { width: 205%; max-width: none; height: auto; max-height: 90px; object-fit: contain; }
  .p3-logo-card--carestream-dental img,.p3-logo-card--drchrono img { width: 185%; }
  .p3-logo-card--curve-dental img { width: 135%; }
  .calendly-shell { margin-inline: -2px; border-radius: 18px; }
  .calendly-inline-widget { height: 760px !important; }
  .credentialing-grid { grid-template-columns: 1fr; }
  .credentialing-actions .btn { width: 100%; }
  .coverage-map { padding: 11px; }
  .map-pin { width: 40px; height: 40px; }
  .map-pin::before { inset: 13px; }
  .map-pin:hover::before,.map-pin:focus-visible::before,.map-pin.is-active::before { inset: 10px; }
  .map-pin--office::before { inset: 9px; }
  .map-pin span { display: none; }
  .coverage-details { grid-template-columns: 1fr; margin: 3px 2px 14px; padding: 13px; }
  .coverage-details__type { justify-self: start; }
  .p3-location-chips { gap: 7px; }
  .testimonial-grid { display: flex; gap: 14px; padding-bottom: 13px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
  .testimonial-grid::-webkit-scrollbar { display: none; }
  .testimonial-track,.testimonial-group { display: contents; animation: none; }
  .testimonial-group[aria-hidden="true"] { display: none; }
  .quote { width: auto; min-width: 0; flex: 0 0 100%; padding: 26px 24px; scroll-snap-align: start; }
  .blog-grid,.p3-blog-grid { grid-template-columns: 1fr; }
  .post-img { height: 210px; }
  .p3-footer-main,.p3-footer-links { grid-template-columns: 1fr; }
  .p3-subscribe { grid-column: auto; }
  .p3-footer { padding: 60px 0 calc(148px + env(safe-area-inset-bottom)); }
  .p3-footer-row > div { gap: 11px 14px; }
  .p3-footer-row span,.p3-footer-row a { overflow-wrap: anywhere; }
  .copyright { display: block; }
  .copyright span { display: block; margin-top: 8px; }
  .mobile-cta { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1200; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); min-height: calc(66px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--p3-line); background: #fff; box-shadow: 0 -10px 28px rgba(42,13,63,.12); }
  .mobile-cta a,.mobile-cta button { display: flex; min-width: 0; min-height: 66px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 7px 4px; border: 0; color: var(--p3-plum); background: #fff; text-align: center; font: 800 11px/1.1 inherit; text-decoration: none; cursor: pointer; }
  .mobile-cta .icon { width: 19px; height: 19px; flex: 0 0 auto; }
  .mobile-cta > :last-child { color: #fff; background: linear-gradient(135deg,var(--p3-purple),var(--p3-magenta) 58%,var(--p3-orange)); }
}

@media (min-width: 761px) {
  .mobile-cta { display: none !important; }
}

@media (max-width: 390px) {
  .home-stats article { padding-inline: 10px; }
  .home-stats b { font-size: 12px; }
  .home-form-card { padding-inline: 18px; }
  .specialty { display: flex; align-items: center; justify-items: initial; }
  .coverage-legend { gap: 14px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal,.home-rcm__card { opacity: 1; transform: none; }
  .p3-logo-track { animation: none !important; }
  .p3-logo-row { overflow-x: auto; }
  .testimonial-track { animation: none !important; transform: none !important; }
}
