.solution-hero {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: clamp(64px, 9vw, 112px) 0;
    border-radius: 0 0 40px 40px;
    background:
        radial-gradient(680px 440px at 92% 8%, rgba(201, 242, 111, .22), transparent 64%),
        radial-gradient(520px 320px at -5% 100%, rgba(191, 232, 207, .16), transparent 68%),
        var(--evergreen);
    color: var(--cream);
}

.solution-hero .layout,
.solution-split {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: clamp(36px, 6vw, 76px);
    align-items: center;
}

.solution-hero .eyebrow,
.solution-hero h1 {
    color: var(--cream);
}

.solution-hero .eyebrow .dot {
    background: var(--lime);
}

.solution-hero h1 {
    margin: 18px 0 20px;
    font-size: clamp(38px, 5vw, 64px);
}

.solution-hero h1 em {
    color: var(--lime);
    font-style: normal;
}

.solution-hero .lede {
    color: rgba(250, 246, 239, .8);
}

.solution-hero .ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.solution-hero .btn-on-dark {
    border-color: rgba(250, 246, 239, .36);
    color: var(--cream) !important;
}

.solution-hero .btn-on-dark:hover {
    border-color: var(--lime);
    background: rgba(201, 242, 111, .1);
}

.solution-hero .visual {
    position: relative;
    padding: 0;
    border: 1px solid rgba(250, 246, 239, .28);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 32px 72px rgba(0, 0, 0, .24);
}

.solution-hero .visual img,
.solution-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 23px;
}

.solution-hero .float-note {
    position: absolute;
    right: -18px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--paper);
    color: var(--evergreen);
    font-size: 12.5px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

/* EHR product hero: full-bleed, compact copy, and an interface that sits directly
   in the green field instead of inside a second decorative card. */
.solution-product-page .tb-announce {
    background: #123B30;
    color: #FAF6EF;
}

.solution-product-page .tb-announce a {
    color: #D8F47A;
}

.solution-product-hero {
    border-radius: 0;
    padding: clamp(62px, 8vw, 100px) 0 clamp(72px, 9vw, 112px);
}

.solution-product-hero .layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(48px, 5vw, 68px);
}

.solution-product-hero h1 {
    max-width: none;
    margin: 0 0 24px;
    font-size: clamp(42px, 3.5vw, 50px);
    line-height: 1.08;
}

.solution-product-hero h1 > span {
    display: block;
    white-space: nowrap;
}

.solution-hero .solution-product-visual {
    margin-right: clamp(-72px, -5vw, -34px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.solution-hero .solution-product-visual img {
    width: 110%;
    max-width: none;
    margin-left: 0;
    border-radius: 0;
    filter: drop-shadow(0 30px 38px rgba(0, 0, 0, .2));
}

.page-ehr #ai-scribe .solution-media {
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.page-ehr #ai-scribe .solution-media img {
    width: 125%;
    max-width: none;
    margin-left: -12%;
    border-radius: 0;
    filter: drop-shadow(0 24px 32px rgba(14, 59, 46, .14));
}

.ehr-feature-chips {
    position: absolute;
    right: -2%;
    bottom: 5%;
    left: 2%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.ehr-feature-chips span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid rgba(14, 59, 46, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--evergreen);
    box-shadow: 0 10px 22px rgba(6, 38, 29, .14);
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.ehr-feature-chips i {
    color: var(--lime-dark);
}

.solution-hero-board {
    position: relative;
    padding: clamp(22px, 4vw, 34px);
    overflow: hidden;
    border: 1px solid rgba(250, 246, 239, .2);
    border-radius: 28px;
    background:
        radial-gradient(360px 220px at 100% 0, rgba(201, 242, 111, .18), transparent 70%),
        rgba(250, 246, 239, .09);
    box-shadow: 0 35px 80px rgba(0, 0, 0, .25);
    backdrop-filter: blur(14px);
}

.hero-board-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(250, 246, 239, .15);
}

.hero-board-head > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: var(--lime);
    color: var(--evergreen);
}

.hero-board-head span {
    color: var(--cream);
    font-weight: 800;
}

.hero-board-head b {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(250, 246, 239, .12);
    color: rgba(250, 246, 239, .72);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.solution-hero-board ul {
    display: grid;
    gap: 12px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.solution-hero-board li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid rgba(250, 246, 239, .12);
    border-radius: 15px;
    background: rgba(250, 246, 239, .08);
    color: var(--cream);
    font-size: 13px;
    font-weight: 700;
}

.solution-hero-board li i {
    color: var(--lime);
}

.hero-board-pulse {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(250, 246, 239, .7);
    font-size: 12px;
}

.hero-board-pulse span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 5px rgba(201, 242, 111, .12);
}

.solution-section {
    padding: clamp(76px, 10vw, 124px) 0;
}

.solution-section.alt {
    background: var(--cream-2);
}

.solution-copy h2 {
    margin: 16px 0 18px;
    font-size: clamp(30px, 4vw, 50px);
}

.solution-copy > p {
    max-width: 610px;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.75;
}

.solution-points {
    display: grid;
    gap: 13px;
    margin-top: 24px;
}

.solution-points span {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--ink-soft);
    font-size: 14.5px;
    font-weight: 600;
}

.solution-points i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--evergreen);
    font-size: 10px;
}

.solution-media {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.solution-step-visual {
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.step-top b {
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--evergreen);
    font-size: 11px;
}

.solution-step-visual ol {
    display: grid;
    gap: 0;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.solution-step-visual li {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.solution-step-visual li:last-child {
    border-bottom: 0;
}

.solution-step-visual li > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: var(--cream);
    color: var(--evergreen);
    font-size: 12px;
    font-weight: 800;
}

.solution-step-visual strong,
.solution-step-visual small {
    display: block;
}

.solution-step-visual strong {
    color: var(--ink);
    font-size: 13px;
}

.solution-step-visual small {
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 11.5px;
}

.solution-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(20px, 3vw, 38px);
    align-items: start;
}

.solution-feature {
    min-height: 390px;
    padding: clamp(28px, 4vw, 42px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px 30px 90px 30px;
    background: var(--paper);
    position: relative;
    box-shadow: 0 22px 60px rgba(14, 59, 46, .08);
}

.solution-feature:nth-child(2) {
    margin-top: 74px;
    border-color: transparent;
    border-radius: 90px 30px 30px 30px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--solution-accent) 84%, var(--evergreen)), var(--evergreen));
    color: var(--cream);
}

.solution-product-page { --solution-accent: #0e7b55; --solution-tint: #e9f3ec; }
.solution-billing { --solution-accent: #147d65; --solution-tint: #e3f2eb; }
.solution-practice-management { --solution-accent: #557b31; --solution-tint: #edf3df; }
.solution-fax-management { --solution-accent: #276f78; --solution-tint: #e2f0ef; }
.solution-patient-engagement { --solution-accent: #93603a; --solution-tint: #f5e9dc; }
.solution-telehealth-messaging { --solution-accent: #486c8a; --solution-tint: #e4edf4; }

.feature-index {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feature-index > span {
    color: var(--solution-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
}

.feature-index > i {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: var(--solution-tint);
    color: var(--solution-accent);
    font-size: 18px;
}

.solution-feature:nth-child(2) .feature-index > span { color: rgba(250, 246, 239, .62); }
.solution-feature:nth-child(2) .feature-index > i { background: rgba(250, 246, 239, .12); color: var(--lime); }

.solution-feature h3 {
    margin: 28px 0 12px;
    font-size: clamp(24px, 3vw, 34px);
}

.solution-feature:nth-child(2) h3 {
    color: var(--cream);
}

.solution-feature p {
    max-width: 48ch;
    color: var(--ink-soft);
    line-height: 1.7;
}

.solution-feature:nth-child(2) p {
    color: rgba(250, 246, 239, .74);
}

.solution-feature .mini-ui {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    color: var(--ink);
}

.solution-feature .mini-ui span {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--cream);
    font-size: 12.5px;
    font-weight: 700;
}

.solution-feature .mini-ui i { color: var(--solution-accent); }
.solution-feature:nth-child(2) .mini-ui span { border-color: rgba(250, 246, 239, .13); background: rgba(250, 246, 239, .08); color: var(--cream); }
.solution-feature:nth-child(2) .mini-ui i { color: var(--lime); }

.solution-signal-section .solution-split { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }

.decision-card {
    position: relative;
    padding: clamp(26px, 4vw, 44px);
    border-radius: 26px 80px 26px 26px;
    background:
        linear-gradient(150deg, color-mix(in srgb, var(--solution-accent, #0e7b55) 70%, var(--evergreen)), var(--evergreen));
    color: var(--cream);
    box-shadow: var(--shadow);
}

.decision-label {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(250, 246, 239, .15);
    color: rgba(250, 246, 239, .6);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.decision-card .alert {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 19px 0;
    border-bottom: 1px solid rgba(250, 246, 239, .13);
}

.decision-card .alert:last-child { border-bottom: 0; }
.decision-card .alert > i { color: rgba(250, 246, 239, .38); font-size: 11px; }
.decision-card .alert-number { color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .08em; }

.decision-card .alert strong,
.decision-card .alert small {
    display: block;
}

.decision-card .alert small {
    margin-top: 4px;
    color: rgba(250, 246, 239, .7);
    line-height: 1.5;
}

.solution-connect {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: clamp(36px, 6vw, 82px);
    align-items: center;
    padding: clamp(42px, 6vw, 68px);
    border-radius: 28px 90px 28px 28px;
    background:
        radial-gradient(520px 260px at 100% 0, color-mix(in srgb, var(--solution-accent, #0e7b55) 20%, transparent), transparent 70%),
        var(--evergreen);
    color: var(--cream);
    box-shadow: 0 28px 70px rgba(14, 59, 46, .14);
}

.solution-connect .eyebrow,
.tb .solution-connect h2.disp { color: var(--cream); }
.solution-connect .lede { color: rgba(250, 246, 239, .72); line-height: 1.75; }

.solution-connect .flow {
    display: grid;
    gap: 10px;
    margin: 0;
    counter-reset: workflow;
}

.solution-connect .flow div {
    counter-increment: workflow;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 17px 18px;
    border: 1px solid rgba(250, 246, 239, .13);
    border-radius: 16px;
    background: rgba(250, 246, 239, .08);
    color: var(--cream);
    font-size: 13px;
    font-weight: 700;
}

.solution-connect .flow div:nth-child(even) { transform: translateX(28px); }
.solution-connect .flow div::after { content: "0" counter(workflow); color: rgba(250, 246, 239, .34); font-size: 10px; letter-spacing: .12em; }

.solution-connect .flow i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: var(--lime);
    color: var(--evergreen);
    font-size: 15px;
}

.solution-connect .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.tb .solution-connect .btn-green { background: var(--lime); color: var(--evergreen) !important; }
.tb .solution-connect .btn-ghost { border-color: rgba(255, 255, 255, .8); color: #fff !important; }

/* Patient Engagement: restored front-office story and live-call demonstration. */
.solution-patient-engagement .patient-watch { padding-bottom: clamp(72px, 8vw, 104px); }
.solution-patient-engagement .patient-front-office { padding-bottom: clamp(76px, 9vw, 112px); }
.solution-patient-engagement .patient-front-office .tbp-head { margin-bottom: 38px; }
.solution-patient-engagement .patient-front-office .tbp-card,
.solution-patient-engagement .patient-platform .tbp-card { border-radius: 26px; }
.solution-patient-engagement .patient-memory { padding: clamp(76px, 9vw, 112px) 0; }
.solution-patient-engagement .patient-platform { padding: clamp(82px, 9vw, 116px) 0; }
.solution-patient-engagement .patient-platform .tbp-head { margin-bottom: 38px; }

.crm-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 30px 0 0; }
.crm-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid rgba(17,32,26,.14); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; transition: transform .22s ease, border-color .22s ease, background .22s ease, color .22s ease; }
.crm-tab i { color: var(--evergreen); transition: color .22s ease; }
.crm-tab:hover { border-color: rgba(14,59,46,.42); transform: translateY(-2px); }
.crm-tab.active { border-color: var(--evergreen); background: var(--evergreen); color: var(--cream); box-shadow: 0 10px 24px rgba(14,59,46,.2); }
.crm-tab.active i { color: var(--lime); }

.crm-demo { display: grid; max-width: 1040px; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; margin: 42px auto 0; }
.crm-panel { display: flex; overflow: hidden; flex-direction: column; border: 1px solid rgba(17,32,26,.08); border-radius: 22px; background: #fff; box-shadow: 0 20px 48px rgba(14,59,46,.1); }
.crm-panel .hd { display: flex; min-height: 62px; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(17,32,26,.07); color: var(--ink); font-size: .9rem; font-weight: 700; }
.crm-panel .hd .ic { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 10px; background: rgba(14,59,46,.08); color: var(--evergreen); font-size: .84rem; }
.crm-panel .hd .live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #c63f45; font-size: .69rem; font-weight: 800; letter-spacing: .06em; }
.crm-panel .hd .live::before { width: 7px; height: 7px; border-radius: 50%; background: #d94a50; content: ""; animation: crmPulse 1.2s ease-in-out infinite; }

.crm-chat { display: flex; min-height: 350px; flex-direction: column; gap: 10px; padding: 18px; }
.crm-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; opacity: 0; font-size: .84rem; line-height: 1.45; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.crm-msg.show { opacity: 1; transform: none; }
.crm-msg.assistant { align-self: flex-start; border-bottom-left-radius: 4px; background: rgba(14,59,46,.07); color: var(--ink); }
.crm-msg.patient { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--evergreen); color: var(--cream); }
.crm-msg .who { display: block; margin-bottom: 3px; opacity: .56; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.crm-typing { display: none; align-self: flex-start; gap: 4px; padding: 12px 16px; border-radius: 14px 14px 14px 4px; background: rgba(14,59,46,.07); }
.crm-typing.show { display: inline-flex; }
.crm-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); animation: crmDot 1s infinite; }
.crm-typing i:nth-child(2) { animation-delay: .18s; }
.crm-typing i:nth-child(3) { animation-delay: .36s; }

.crm-wave { display: inline-flex; height: 16px; align-items: flex-end; gap: 2px; margin-left: 6px; }
.crm-wave b { width: 3px; border-radius: 2px; background: var(--lime-dark); animation: crmWave 1s ease-in-out infinite; }
.crm-wave b:nth-child(1) { height: 6px; }
.crm-wave b:nth-child(2) { height: 13px; animation-delay: .12s; }
.crm-wave b:nth-child(3) { height: 9px; animation-delay: .24s; }
.crm-wave b:nth-child(4) { height: 15px; animation-delay: .36s; }
.crm-wave b:nth-child(5) { height: 7px; animation-delay: .48s; }

.crm-flow { display: flex; min-height: 350px; flex-direction: column; gap: 12px; padding: 18px; }
.crm-step { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid rgba(17,32,26,.08); border-radius: 14px; opacity: .32; background: #fff; filter: saturate(.4); transform: translateX(14px); transition: opacity .45s ease, filter .45s ease, transform .45s ease, box-shadow .45s ease; }
.crm-step.on { border-color: rgba(14,59,46,.22); opacity: 1; box-shadow: 0 10px 26px rgba(14,59,46,.1); filter: none; transform: none; }
.crm-step .sic { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; background: rgba(14,59,46,.08); color: var(--evergreen); font-size: .86rem; }
.crm-step.on .sic { background: var(--evergreen); color: var(--lime); }
.crm-step h5 { margin: 0 0 3px; color: var(--ink); font-size: .84rem; }
.crm-step p { margin: 0; color: var(--ink-soft); font-size: .74rem; line-height: 1.45; }
.crm-step .tick { margin-left: auto; align-self: center; opacity: 0; color: var(--lime-dark); transform: scale(.4); transition: opacity .3s ease, transform .3s cubic-bezier(.2,1.6,.4,1); }
.crm-step.done .tick { opacity: 1; transform: none; }
.crm-task { display: flex; margin-top: auto; align-items: center; gap: 12px; padding: 13px 15px; border: 1.5px dashed rgba(14,59,46,.3); border-radius: 14px; opacity: 0; background: linear-gradient(135deg, rgba(201,242,111,.25), rgba(201,242,111,.06)); transform: translateY(16px) scale(.96); transition: opacity .5s ease, transform .5s cubic-bezier(.2,1.4,.4,1); }
.crm-task.show { opacity: 1; transform: none; }
.crm-task .tic { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; background: var(--evergreen); color: var(--lime); }
.crm-task b, .crm-task span { display: block; }
.crm-task b { color: var(--ink); font-size: .81rem; }
.crm-task span { color: var(--ink-soft); font-size: .7rem; line-height: 1.4; }
.crm-task .bell { position: relative; margin-left: auto; color: var(--evergreen); font-size: 1.1rem; }
.crm-task .bell u { position: absolute; top: -6px; right: -8px; display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; background: #d94a50; color: #fff; font-size: .58rem; font-weight: 800; text-decoration: none; }
.crm-replay { margin-top: 18px; text-align: center; }
.crm-replay button { padding: 8px 18px; border: 1px solid rgba(14,59,46,.25); border-radius: 999px; background: transparent; color: var(--evergreen); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; transition: background .2s ease, color .2s ease; }
.crm-replay button:hover { background: var(--evergreen); color: var(--cream); }

.crm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.crm-stat { padding: 24px 12px; border: 1px solid rgba(250,246,239,.12); border-radius: 18px; background: rgba(250,246,239,.06); text-align: center; }
.crm-stat b { display: block; color: var(--lime); font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 800; }
.crm-stat span { display: block; margin-top: 7px; color: rgba(250,246,239,.75); font-size: .78rem; line-height: 1.45; }

@keyframes crmPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(1.5); } }
@keyframes crmDot { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
@keyframes crmWave { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1.15); } }

/* EHR feature story: product-like visuals with a tighter, more deliberate rhythm. */
.page-ehr .ehr-feature-section {
    padding: clamp(72px, 7.5vw, 98px) 0;
}

.ehr-feature-layout {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(44px, 6vw, 82px);
    align-items: center;
}

.ehr-feature-layout-reverse {
    grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
}

.ehr-chart-visual,
.ehr-alert-visual {
    overflow: hidden;
    border: 1px solid rgba(14, 59, 46, .12);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 24px 54px rgba(14, 59, 46, .13);
}

.ehr-ui-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .82);
    color: var(--ink);
    font-size: 12px;
}

.ehr-ui-top > div,
.ehr-save-state,
.ehr-patient-row,
.ehr-alert-header,
.ehr-record-status,
.ehr-record-footer > div,
.ehr-template-note {
    display: flex;
    align-items: center;
}

.ehr-ui-top > div { gap: 9px; }

.ehr-logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 4px rgba(201, 242, 111, .2);
}

.ehr-save-state {
    gap: 7px;
    color: #547066;
    font-size: 10px;
    font-weight: 700;
}

.ehr-chart-workspace {
    display: grid;
    grid-template-columns: 170px 1fr;
    min-height: 410px;
}

.ehr-template-rail {
    padding: 22px 14px;
    background: #0e3b2e;
    color: var(--cream);
}

.ehr-template-rail > small {
    display: block;
    margin: 0 9px 12px;
    color: rgba(250, 246, 239, .55);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .14em;
}

.ehr-template-rail button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 9px;
    margin: 4px 0;
    padding: 11px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(250, 246, 239, .7);
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    text-align: left;
}

.ehr-template-rail button.active {
    background: rgba(201, 242, 111, .15);
    color: var(--cream);
}

.ehr-template-rail button.active i { color: var(--lime); }

.ehr-template-note {
    gap: 10px;
    margin-top: 82px;
    padding: 12px 10px;
    border: 1px solid rgba(250, 246, 239, .12);
    border-radius: 10px;
    background: rgba(250, 246, 239, .07);
}

.ehr-template-note > i { color: var(--lime); }
.ehr-template-note span,
.ehr-template-note strong,
.ehr-template-note small { display: block; }
.ehr-template-note strong { font-size: 9px; }
.ehr-template-note small { margin-top: 3px; color: rgba(250, 246, 239, .55); font-size: 7.5px; }

.ehr-note-builder { padding: 20px; background: #f8faf8; }
.ehr-patient-row { justify-content: space-between; gap: 16px; }
.ehr-patient-row strong,
.ehr-patient-row small { display: block; }
.ehr-patient-row strong { color: var(--ink); font-size: 12px; }
.ehr-patient-row small { margin-top: 4px; color: var(--ink-soft); font-size: 8.5px; }
.ehr-patient-row > span { padding: 6px 9px; border-radius: 999px; background: var(--mint); color: var(--evergreen); font-size: 8px; font-weight: 800; }

.ehr-note-tabs {
    display: flex;
    gap: 20px;
    margin: 20px 0 16px;
    border-bottom: 1px solid var(--line);
    color: #71837a;
    font-size: 8.5px;
    font-weight: 700;
}

.ehr-note-tabs > * { padding: 0 0 10px; }
.ehr-note-tabs b { margin-bottom: -1px; border-bottom: 2px solid var(--evergreen); color: var(--evergreen); }

.ehr-note-field {
    position: relative;
    display: block;
    min-height: 72px;
    padding: 13px 36px 13px 13px;
    border: 1px solid #dce5df;
    border-radius: 10px;
    background: #fff;
}

.ehr-note-field > span { color: #61756b; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.ehr-note-field p { margin: 9px 0 0; color: #334a40; font-size: 9.5px; line-height: 1.45; }
.ehr-note-field > i { position: absolute; top: 18px; right: 14px; color: var(--evergreen); font-size: 12px; }
.ehr-note-field.active { border-color: rgba(14, 123, 85, .42); box-shadow: 0 0 0 4px rgba(191, 232, 207, .28); }

.ehr-note-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ehr-note-columns .ehr-note-field { min-height: 68px; padding-right: 12px; }
.ehr-note-progress { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 15px; color: #536b60; font-size: 8px; font-weight: 700; }
.ehr-note-progress span { display: flex; align-items: center; gap: 5px; }
.ehr-note-progress i { display: grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; background: var(--mint); color: var(--evergreen); font-size: 6px; }

.ehr-alert-visual { padding: 22px; background: linear-gradient(145deg, #f9fbf9, #eef5f0); }
.ehr-alert-header { gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ehr-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 50%; background: var(--evergreen); color: var(--lime); font-size: 11px; font-weight: 800; }
.ehr-alert-header strong,
.ehr-alert-header small { display: block; }
.ehr-alert-header strong { color: var(--ink); font-size: 12px; }
.ehr-alert-header small { margin-top: 4px; color: var(--ink-soft); font-size: 8.5px; }
.ehr-risk-pill { display: flex; align-items: center; gap: 6px; margin-left: auto; padding: 7px 10px; border-radius: 999px; background: #e5f4e7; color: #356046; font-size: 8px; font-weight: 800; }
.ehr-risk-pill i { width: 7px; height: 7px; border-radius: 50%; background: #38a16b; }

.ehr-clinical-summary { display: grid; grid-template-columns: .76fr 1.24fr; gap: 16px; margin-top: 18px; }
.ehr-summary-main { padding: 18px; border-radius: 15px; background: #fff; border: 1px solid var(--line); }
.ehr-summary-main > small { color: #7b8b83; font-size: 7.5px; font-weight: 800; letter-spacing: .12em; }
.ehr-vital-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 14px; }
.ehr-vital-row span { padding: 11px 7px; border-radius: 10px; background: #f2f7f3; text-align: center; }
.ehr-vital-row strong,
.ehr-vital-row small { display: block; }
.ehr-vital-row strong { color: var(--evergreen); font-size: 13px; }
.ehr-vital-row small { margin-top: 4px; color: #74877d; font-size: 6.5px; }
.ehr-medication-row { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; margin-top: 13px; padding: 12px; border-radius: 10px; background: #edf5ef; color: var(--evergreen); }
.ehr-medication-row strong,
.ehr-medication-row small { display: block; }
.ehr-medication-row strong { color: #2c493e; font-size: 8.5px; }
.ehr-medication-row small { margin-top: 3px; color: #6c8076; font-size: 6.8px; line-height: 1.4; }
.ehr-medication-row > i:last-child { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #d7efda; font-size: 7px; }

.ehr-alert-stack { display: grid; gap: 9px; }
.ehr-alert-stack article { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: start; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ehr-alert-stack article > i { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: #edf5ef; color: var(--evergreen); font-size: 10px; }
.ehr-alert-stack article strong,
.ehr-alert-stack article small { display: block; }
.ehr-alert-stack article strong { color: #2c4439; font-size: 9px; }
.ehr-alert-stack article small { margin-top: 4px; color: #6d8076; font-size: 7px; line-height: 1.4; }
.ehr-alert-stack article.priority { border-color: rgba(201, 242, 111, .9); box-shadow: 0 0 0 4px rgba(201, 242, 111, .16); }
.ehr-alert-stack article.priority > i { background: var(--lime); }
.ehr-alert-stack article.priority > span { position: absolute; top: 11px; right: 11px; padding: 4px 6px; border-radius: 999px; background: var(--evergreen); color: #fff; font-size: 6.5px; font-weight: 800; }

.ehr-record-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(38px, 5vw, 58px);
    border-radius: 28px;
    background:
        radial-gradient(560px 300px at 95% 0, rgba(201, 242, 111, .16), transparent 70%),
        var(--evergreen);
    color: var(--cream);
    box-shadow: 0 28px 64px rgba(14, 59, 46, .18);
}

.ehr-record-panel .eyebrow,
.page-ehr .ehr-record-panel h2.disp { color: var(--cream); }
.ehr-record-panel h2 { max-width: 760px; margin: 15px 0 16px; font-size: clamp(32px, 4.2vw, 52px); }
.ehr-record-copy > p { max-width: 680px; color: rgba(250, 246, 239, .72); font-size: 15.5px; line-height: 1.7; }
.ehr-record-status { position: absolute; top: clamp(38px, 5vw, 58px); right: clamp(38px, 5vw, 58px); gap: 10px; padding: 10px 13px; border: 1px solid rgba(250, 246, 239, .13); border-radius: 12px; background: rgba(250, 246, 239, .07); }
.ehr-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(201, 242, 111, .12); }
.ehr-record-status strong,
.ehr-record-status small { display: block; }
.ehr-record-status strong { font-size: 9px; }
.ehr-record-status small { margin-top: 3px; color: rgba(250, 246, 239, .55); font-size: 7px; }

.ehr-record-timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 42px; }
.ehr-record-line { position: absolute; top: 25px; right: 12%; left: 12%; height: 2px; overflow: hidden; background: rgba(250, 246, 239, .18); }
.ehr-record-line::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 68%; background: var(--lime); }
.ehr-record-line span { position: absolute; top: -3px; left: 66%; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(201, 242, 111, .14); }
.ehr-record-timeline article { position: relative; z-index: 1; padding: 0 12px 18px; border: 1px solid rgba(250, 246, 239, .12); border-radius: 16px; background: rgba(250, 246, 239, .07); text-align: center; }
.ehr-record-timeline article > i { display: grid; width: 50px; height: 50px; margin: -1px auto 17px; place-items: center; border: 1px solid rgba(250, 246, 239, .2); border-radius: 50%; background: #164c3c; color: rgba(250, 246, 239, .65); font-size: 17px; }
.ehr-record-timeline article.complete > i { background: var(--lime); color: var(--evergreen); }
.ehr-record-timeline article.current > i { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 0 7px rgba(201, 242, 111, .1); }
.ehr-record-timeline article small,
.ehr-record-timeline article strong,
.ehr-record-timeline article span { display: block; }
.ehr-record-timeline article small { color: rgba(250, 246, 239, .48); font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.ehr-record-timeline article strong { margin-top: 8px; color: var(--cream); font-size: 11px; }
.ehr-record-timeline article span { margin-top: 5px; color: rgba(250, 246, 239, .58); font-size: 8px; }

.ehr-record-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(250, 246, 239, .12); }
.ehr-record-footer > div:first-child { gap: 11px; }
.ehr-record-footer > div:first-child > i { color: var(--lime); }
.ehr-record-footer strong,
.ehr-record-footer small { display: block; }
.ehr-record-footer strong { font-size: 10px; }
.ehr-record-footer small { margin-top: 4px; color: rgba(250, 246, 239, .56); font-size: 8px; }
.ehr-record-footer .cta-row { margin: 0; }

@keyframes ehr-soft-focus {
    0%, 100% { box-shadow: 0 0 0 4px rgba(191, 232, 207, .22); }
    50% { box-shadow: 0 0 0 7px rgba(191, 232, 207, .38); }
}

@keyframes ehr-alert-breathe {
    0%, 100% { box-shadow: 0 0 0 4px rgba(201, 242, 111, .12); }
    50% { box-shadow: 0 0 0 8px rgba(201, 242, 111, .22); }
}

@keyframes ehr-record-travel {
    0% { left: 2%; opacity: 0; }
    12%, 88% { opacity: 1; }
    100% { left: 66%; opacity: 0; }
}

.ehr-note-field.active { animation: ehr-soft-focus 3.2s ease-in-out infinite; }
.ehr-alert-stack article.priority { animation: ehr-alert-breathe 3.4s ease-in-out infinite; }
.ehr-record-line span { animation: ehr-record-travel 4.8s ease-in-out infinite; }

@media (max-width: 991px) {
    .solution-hero .layout,
    .solution-split {
        grid-template-columns: 1fr;
    }

    .solution-hero .visual {
        max-width: 720px;
    }

    .solution-product-hero .layout {
        grid-template-columns: 1fr;
    }

    .solution-hero .solution-product-visual {
        width: min(760px, 100%);
        max-width: none;
        margin: 12px auto 0;
    }

    .solution-hero .solution-product-visual img {
        width: 108%;
        margin-left: -4%;
    }

    .page-ehr #ai-scribe .solution-media img {
        width: 108%;
        margin-left: -4%;
    }

    .solution-connect { grid-template-columns: 1fr; }

    .crm-demo { grid-template-columns: 1fr; }
    .crm-stats { grid-template-columns: repeat(2, 1fr); }

    .ehr-feature-layout,
    .ehr-feature-layout-reverse {
        grid-template-columns: 1fr;
    }

    .ehr-feature-layout-reverse .solution-copy { grid-row: 1; }
    .ehr-feature-layout-reverse .ehr-alert-visual { grid-row: 2; }

    .ehr-record-status {
        position: static;
        width: fit-content;
        margin-top: 22px;
    }

    .ehr-record-timeline { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
    .ehr-record-line { display: none; }
}

@media (max-width: 767px) {
    .solution-hero {
        margin: 0;
        border-radius: 0 0 24px 24px;
    }

    .solution-feature-grid {
        grid-template-columns: 1fr;
    }

    .solution-feature:nth-child(2) { margin-top: 0; }
    .solution-connect .flow div:nth-child(even) { transform: none; }

    .solution-product-hero {
        border-radius: 0;
    }

    .solution-product-hero h1 {
        font-size: clamp(31px, 7.8vw, 38px);
    }

    .ehr-feature-chips {
        right: 2%;
        bottom: 3%;
        left: 2%;
        gap: 7px;
    }

    .ehr-feature-chips span {
        padding: 8px 10px;
        font-size: 9.5px;
    }

    .solution-hero .float-note {
        right: 8px;
        bottom: 16px;
    }

    .page-ehr .ehr-feature-section { padding: 64px 0; }
    .ehr-feature-layout { gap: 36px; }
    .ehr-chart-workspace { grid-template-columns: 120px 1fr; min-height: 375px; }
    .ehr-template-rail { padding: 18px 9px; }
    .ehr-template-rail button { padding: 10px 8px; font-size: 8.5px; }
    .ehr-template-note { margin-top: 58px; padding: 9px 7px; }
    .ehr-template-note > i { display: none; }
    .ehr-note-builder { padding: 15px; }
    .ehr-note-tabs { gap: 12px; }
    .ehr-clinical-summary { grid-template-columns: 1fr; }
    .ehr-record-panel { padding: 32px 22px; border-radius: 22px; }
    .ehr-record-timeline { gap: 10px; }
    .ehr-record-timeline article { padding-right: 8px; padding-left: 8px; }
    .ehr-record-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
    .solution-hero .ctas a,
    .solution-connect .cta-row a {
        width: 100%;
        justify-content: center;
    }

    .solution-connect .flow {
        grid-template-columns: 1fr;
    }

    .crm-tab { flex: 1 1 calc(50% - 8px); justify-content: center; padding-right: 11px; padding-left: 11px; }
    .crm-panel .hd { font-size: .78rem; }
    .crm-wave { display: none; }
    .crm-chat, .crm-flow { min-height: 330px; padding: 14px; }
    .crm-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .crm-stat { padding: 18px 8px; }

    .ehr-chart-workspace { grid-template-columns: 1fr; }
    .ehr-template-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
    .ehr-template-rail > small,
    .ehr-template-note { display: none; }
    .ehr-template-rail button { justify-content: center; margin: 0; padding: 9px 4px; text-align: center; }
    .ehr-template-rail button i { display: none; }
    .ehr-note-columns { grid-template-columns: 1fr; }
    .ehr-record-timeline { grid-template-columns: 1fr; }
    .ehr-record-timeline article { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; text-align: left; }
    .ehr-record-timeline article > i { grid-row: 1 / 4; width: 42px; height: 42px; margin: 0; }
    .ehr-record-timeline article small,
    .ehr-record-timeline article strong,
    .ehr-record-timeline article span { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
    .ehr-note-field.active,
    .ehr-alert-stack article.priority,
    .ehr-record-line span,
    .crm-panel .hd .live::before,
    .crm-wave b,
    .crm-typing i { animation: none; }
}
