/* CareNotes /integrations/<system>/ pages: layered on sample3.css + integrations.css. */

/* ---------------- HERO: CareNotes <-> system pair ---------------- */
.in-hero.pm-hero { padding-bottom: 96px; }
.pm-live {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 4px;
    font-size: 13px; font-weight: 600; color: #15803d; background: rgba(21, 128, 61, .09);
    padding: 6px 12px; border-radius: 980px;
}
.pm-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }

.pm-pair {
    display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; gap: 0;
    max-width: 760px; margin: 52px auto 0;
}
.pm-end {
    display: grid; place-items: center; height: 132px; border-radius: 28px; background: rgba(255, 255, 255, .86);
    box-shadow: 0 30px 60px -38px rgba(30, 64, 175, .45), 0 0 0 1px rgba(37, 99, 235, .1);
}
.pm-end > div { width: 100%; text-align: center; }
.pm-end img { display: block; margin: 0 auto; max-height: 44px; max-width: 68%; width: auto; height: auto; object-fit: contain; }
.pm-end .txt { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: #1d1d1f; }
.pm-end small { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6e6e73; }
.pm-wire { position: relative; height: 132px; }
.pm-lane { position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: rgba(37, 99, 235, .2); overflow: visible; }
.pm-lane.in { top: 44px; }
.pm-lane.out { top: 86px; }
.pm-lane span {
    position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--in); box-shadow: 0 0 0 5px rgba(37, 99, 235, .14);
}
.pm-lane.in span { animation: pm-left 2.6s cubic-bezier(.45, 0, .2, 1) infinite; }
.pm-lane.out span { animation: pm-right 2.6s cubic-bezier(.45, 0, .2, 1) infinite 1.3s; background: #16a34a; box-shadow: 0 0 0 5px rgba(22, 163, 74, .14); left: 0; }
.pm-lane em {
    position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap;
    font-style: normal; font-size: 12px; font-weight: 600; color: #4b5675;
}
.pm-lane.in em { top: -26px; }
.pm-lane.out em { top: 12px; }
@keyframes pm-left { 0% { left: calc(100% - 10px); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 0; opacity: 0; } }
@keyframes pm-right { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }

.pm-legend {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 40px auto 0; max-width: 900px;
    font-size: 15px; color: #4b5675;
}
.pm-legend span { display: inline-flex; align-items: center; gap: 8px; }
.pm-legend i { color: var(--in); font-size: 13px; }

/* ---------------- FACTS STRIP ---------------- */
.pm-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 44px auto 0; text-align: left; }
.pm-fact { background: #f5f5f7; border-radius: 20px; padding: 22px 22px 24px; }
.detail-alt .pm-fact { background: #fff; }
.pm-fact .k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--in-deep); }
.pm-fact .v { margin-top: 8px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; color: #1d1d1f; }
.pm-fact p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: #6e6e73; }

/* ---------------- PHONE SHOT IN SPLIT ---------------- */
.pm-phone { display: flex; justify-content: center; }
.pm-phone .phone { margin: 0 auto; }
.pm-phone figcaption { margin-top: 14px; font-size: 13px; color: #6e6e73; text-align: center; }

/* ---------------- PLANS ---------------- */
.pm-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 44px auto 0; max-width: 900px; text-align: left; }
.pm-plan { border-radius: 24px; padding: 30px 28px 30px; background: #f5f5f7; }
.pm-plan.pro { background: linear-gradient(180deg, #eef3ff 0%, #e3ecff 100%); box-shadow: 0 0 0 1px rgba(37, 99, 235, .14); }
.pm-plan .nm { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6e6e73; }
.pm-plan.pro .nm { color: var(--in-deep); }
.pm-plan .pr { margin-top: 8px; font-size: 42px; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: #1d1d1f; }
.pm-plan .pr small { font-size: 17px; font-weight: 600; letter-spacing: 0; color: #6e6e73; margin-left: 4px; }
.pm-plan .per { margin-top: 8px; font-size: 15px; color: #424245; }
.pm-plan ul { margin: 18px 0 0; padding: 0; list-style: none; }
.pm-plan li { position: relative; padding-left: 26px; margin-top: 10px; font-size: 15.5px; line-height: 1.45; color: #424245; }
.pm-plan li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 2px; font-size: 12px; color: #30a14e; }
.pm-plans + .fine a { color: var(--in); }

/* ---------------- SETUP (dark): four steps ---------------- */
.in-steps.pm-steps-4 { grid-template-columns: repeat(4, 1fr); }
.pm-before { margin: 26px auto 0; max-width: 860px; font-size: 14.5px; line-height: 1.55; color: #a1a1a6; }
.pm-before strong { color: #f5f5f7; }
.pm-before code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #f5f5f7; background: #1c1c1e; padding: 2px 6px; border-radius: 6px; }
.in-step code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #f5f5f7; background: #2c2c2e; padding: 1px 5px; border-radius: 5px; }

/* ---------------- OTHER SYSTEMS ---------------- */
.in-systems.pm-others { grid-template-columns: repeat(5, 1fr); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1068px) {
    .pm-facts, .in-steps.pm-steps-4 { grid-template-columns: repeat(2, 1fr); }
    .in-systems.pm-others { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 734px) {
    .in-hero.pm-hero { padding-bottom: 72px; }
    .pm-pair { grid-template-columns: 1fr .9fr 1fr; margin-top: 40px; }
    .pm-end { height: 96px; border-radius: 22px; }
    .pm-end .txt { font-size: 17px; }
    .pm-end small { font-size: 10px; }
    .pm-wire { height: 96px; }
    .pm-lane { left: 6px; right: 6px; }
    .pm-lane.in { top: 30px; }
    .pm-lane.out { top: 64px; }
    .pm-lane em { font-size: 10.5px; }
    .pm-facts, .pm-plans, .in-steps.pm-steps-4 { grid-template-columns: 1fr; }
    .in-systems.pm-others { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .pm-lane span { animation: none; left: 50% !important; opacity: 1; }
}
