/* ============================================================
   HMIS Pricing page
   File: assets/css/hmis-pricing.css
   Used only by: hmis-pricing.html
   Page-specific styles ONLY. Header, footer and Book Demo modal
   keep their existing styles from style.css. Every class here is
   prefixed "hp-" and scoped under .hp-main so nothing leaks to
   other pages.
   Font: Plus Jakarta Sans (already used by the blog pages)
   ============================================================ */

.hp-main {
    --hp-navy: #16294d;
    --hp-ink: #1b2a47;
    --hp-body: #55606f;
    --hp-muted: #8a94a3;
    --hp-blue: #2b5dce;
    --hp-blue-dark: #1f45a3;
    --hp-orange: #e8622c;
    --hp-orange-2: #f08a24;
    --hp-green: #16a34a;
    --hp-page-bg: #f6f9fd;
    --hp-head-bg: #f4f7fc;
    --hp-stripe: #f9fbfe;
    --hp-std-bg: #fff7f0;
    --hp-std-stripe: #fff3ea;
    --hp-total-bg: #eef3fb;
    --hp-border: #e8edf5;
    --hp-chip-bg: #f1f4f9;
    --hp-shadow: 0 18px 45px rgba(22, 41, 77, 0.09);
    --hp-radius: 22px;

    display: block;
    font-family: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--hp-body);
    background: var(--hp-page-bg);
    overflow-x: hidden;
}

.hp-main p {
    color: var(--hp-body);
}

/* ============================================================
   1. HERO
   ============================================================ */
.hp-hero {
    /* Top padding clears the existing fixed navbar */
    padding: 150px 0 56px;
    text-align: center;
    background:
        radial-gradient(900px 460px at 95% 0%, #e6efff 0%, rgba(230, 239, 255, 0) 62%),
        radial-gradient(760px 520px at 0% 110%, #fdebdc 0%, rgba(253, 235, 220, 0) 60%),
        var(--hp-page-bg);
}

.hp-hero-title {
    max-width: 920px;
    margin: 0 auto 20px;
    font-size: clamp(2rem, 4.6vw, 3.55rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}


.hp-hero-sub {
    max-width: 820px;
    margin: 0 auto 30px;
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    line-height: 1.7;
}

.hp-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.hp-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px;
    border: 1px solid var(--hp-border);
    border-radius: 40px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(22, 41, 77, 0.06);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hp-ink);
}

.hp-pill i {
    font-size: 1rem;
}

.hp-ic-green { color: var(--hp-green); }
.hp-ic-blue { color: var(--hp-blue); }
.hp-ic-orange { color: var(--hp-orange); }
.hp-ic-navy { color: var(--hp-navy); }

/* ============================================================
   2. TABLE CARDS (shared by both pricing tables)
   ============================================================ */
.hp-section {
    padding: 34px 0;
}

.hp-section:first-of-type {
    padding-top: 40px;
}

.hp-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
}

.hp-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 34px 36px 30px;
    background: linear-gradient(110deg, var(--hp-blue-dark) 0%, #2552c0 55%, var(--hp-blue) 100%);
    color: #fff;
}

.hp-card-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: clamp(1.35rem, 2.3vw, 1.95rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #fff;
}

.hp-card-title i {
    font-size: 1.15rem;
    color: #ff9b6b;
}

.hp-main .hp-card-sub {
    margin: 6px 0 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: #dbe5fb;
}

.hp-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

/* Phone-only scroll hint (shown via Bootstrap .d-sm-none) */
.hp-main .hp-swipe {
    margin: 0;
    padding: 10px 16px;
    background: var(--hp-head-bg);
    border-bottom: 1px solid var(--hp-border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--hp-blue);
}

.hp-swipe i {
    margin-right: 6px;
}

/* Base table */
.hp-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 1rem;
    color: var(--hp-ink);
}

.hp-table th,
.hp-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--hp-border);
    vertical-align: middle;
}

.hp-table td + td,
.hp-table th + th,
.hp-table th + td {
    border-left: 1px solid var(--hp-border);
}

.hp-table thead th {
    padding-top: 20px;
    padding-bottom: 20px;
    background: var(--hp-head-bg);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hp-navy);
}

.hp-table tbody tr:nth-child(even) > * {
    background: var(--hp-stripe);
}

.hp-table tbody tr:hover > * {
    background: #f2f6fd;
}

.hp-sr {
    width: 78px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--hp-muted);
}

.hp-table thead .hp-sr {
    font-size: 0.78rem;
    line-height: 1.3;
    color: var(--hp-muted);
}

.hp-item {
    font-weight: 600;
    color: var(--hp-ink);
}

/* ============================================================
   3. MODULE COMPARISON TABLE
   ============================================================ */
.hp-matrix .hp-item {
    width: 28%;
    padding-left: 26px;
}

.hp-plan {
    text-align: center;
}

/* Three package columns share the width equally */
.hp-matrix .hp-plan {
    width: 22%;
}

.hp-matrix thead .hp-plan {
    text-transform: none;
    letter-spacing: 0;
}

.hp-plan-name {
    display: block;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hp-navy);
}

.hp-plan-beds {
    display: block;
    margin-top: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--hp-muted);
}

/* Highlighted Standard column */
.hp-matrix .hp-std {
    background: var(--hp-std-bg);
}

.hp-matrix tbody tr:nth-child(even) > .hp-std {
    background: var(--hp-std-stripe);
}

.hp-matrix thead .hp-std {
    background: var(--hp-std-bg);
}

.hp-matrix .hp-std .hp-plan-name {
    color: var(--hp-orange);
}

.hp-yes {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    color: var(--hp-green);
}

.hp-no {
    font-weight: 600;
    color: var(--hp-muted);
}

.hp-note-green {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--hp-green);
}

/* Total costing / beds */
.hp-matrix tfoot th,
.hp-matrix tfoot td {
    padding-top: 18px;
    padding-bottom: 18px;
    background: var(--hp-total-bg);
    font-weight: 700;
    color: var(--hp-navy);
}

.hp-matrix tfoot th {
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hp-matrix tfoot tr:first-child > * {
    border-top: 2px solid #d9e2f1;
}

.hp-matrix tfoot .hp-std {
    background: #fdeee2;
    color: var(--hp-orange);
}

.hp-matrix tfoot .hp-prem {
    color: var(--hp-blue);
}

.hp-matrix tfoot .hp-beds-row td {
    font-weight: 600;
}

.hp-matrix tfoot .hp-beds-row td:not(.hp-std):not(.hp-prem) {
    color: var(--hp-ink);
}

.hp-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 22px;
    padding: 16px 26px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--hp-body);
}

.hp-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hp-legend .hp-yes {
    font-size: 1.05rem;
}

/* ============================================================
   4. ADD-ONS & TERMS TABLE
   ============================================================ */
.hp-addons .hp-item {
    width: 30%;
    padding-left: 26px;
}

.hp-rate {
    font-weight: 700;
    color: var(--hp-navy);
}

.hp-unit {
    font-size: 0.92rem;
    color: var(--hp-body);
}

.hp-chip {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    background: var(--hp-chip-bg);
    font-size: 0.88rem;
    font-weight: 500;
    color: #4b5563;
}

.hp-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 9px;
    border-radius: 5px;
    background: var(--hp-orange);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
    color: #fff;
}

.hp-item a {
    color: inherit;
    text-decoration: none;
}

.hp-item a:hover {
    color: var(--hp-blue);
}

/* MedScribe AI row */
.hp-addons tbody tr.hp-row-ai > * {
    background: var(--hp-std-bg);
    vertical-align: top;
}

.hp-ai-block + .hp-ai-block {
    margin-top: 12px;
}

.hp-ai-block strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hp-navy);
}

.hp-ai-block ul {
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

.hp-ai-block li {
    position: relative;
    padding-left: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--hp-body);
}

.hp-ai-block li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.hp-ai-block li.hp-ai-price {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--hp-orange);
}

.hp-ai-block li.hp-ai-price::before {
    width: 7px;
    height: 7px;
    top: 0.55em;
}

.hp-ai-block li b {
    font-weight: 700;
    color: var(--hp-navy);
}

/* Free implementation man-days */
.hp-days {
    font-weight: 700;
    color: var(--hp-navy);
}

.hp-days-std {
    color: var(--hp-orange);
}

.hp-days-prem {
    color: var(--hp-blue);
}

.hp-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 20px;
    padding: 16px 26px 18px;
    background: var(--hp-head-bg);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--hp-body);
}

.hp-card-foot small {
    font-size: 0.82rem;
    color: var(--hp-muted);
}

/* ============================================================
   5. CTA
   ============================================================ */
.hp-cta-sec {
    padding: 50px 0 90px;
}

.hp-cta {
    max-width: 100%;
    padding: 56px 24px 52px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
}

.hp-cta h2 {
    max-width: 560px;
    margin: 0 auto 14px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--hp-navy);
}

.hp-cta p {
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 1.08rem;
}

/* .btn has "font-size: 1.2rem !important" in style.css;
   the doubled class keeps this page's size without editing it. */
.btn.hp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--hp-orange-2) 0%, var(--hp-orange) 100%);
    box-shadow: 0 12px 26px rgba(232, 98, 44, 0.3);
    font-family: inherit;
    font-size: 1.05rem !important;
    font-weight: 700;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.hp-cta-btn:hover,
.btn.hp-cta-btn:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(232, 98, 44, 0.36);
}

.btn.hp-cta-btn:focus-visible {
    outline: 3px solid rgba(43, 93, 206, 0.45);
    outline-offset: 3px;
}

/* ============================================================
   EXISTING FOOTER — wrap fix (this page only)
   The footer email address is one unbroken word and pushes the
   page ~6px wider than a 768px tablet screen (same on other pages).
   This only lets it wrap; the footer markup and style.css are
   untouched.
   ============================================================ */
.footer-section span {
    overflow-wrap: anywhere;
}

/* ============================================================
   6. RESPONSIVE
   ============================================================ */
@media (max-width: 1199.98px) {
    .hp-table th,
    .hp-table td {
        padding: 14px 16px;
    }

    .hp-plan-name {
        font-size: 1.08rem;
    }
}

@media (max-width: 991.98px) {
    .hp-hero {
        padding: 130px 0 44px;
    }

    .hp-card-head {
        padding: 26px 24px 22px;
    }

    .hp-table {
        font-size: 0.95rem;
    }

    .hp-sr {
        width: 56px;
    }

    .hp-matrix .hp-item,
    .hp-addons .hp-item {
        padding-left: 18px;
    }
}

/* Tablet & phone: module table drops the Sr No column,
   add-ons table becomes stacked cards */
@media (max-width: 767.98px) {
    .hp-hero {
        padding: 120px 0 36px;
    }

    .hp-pill {
        padding: 8px 14px;
        font-size: 0.86rem;
    }

    .hp-section {
        padding: 22px 0;
    }

    .hp-card {
        border-radius: 18px;
    }

    .hp-card-tag {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .hp-main .hp-card-sub {
        font-size: 0.95rem;
    }

    .hp-matrix .hp-sr {
        display: none;
    }

    .hp-matrix th,
    .hp-matrix td {
        padding: 12px 10px;
    }

    .hp-matrix .hp-item {
        width: 34%;
        padding-left: 16px;
    }

    .hp-matrix tbody .hp-item {
        font-size: 0.9rem;
    }

    .hp-matrix tfoot th,
    .hp-matrix tfoot td {
        font-size: 0.85rem;
    }

    .hp-plan-name {
        font-size: 0.92rem;
        letter-spacing: 0.02em;
    }

    .hp-plan-beds {
        font-size: 0.75rem;
    }

    .hp-yes {
        font-size: 1.15rem;
    }

    .hp-legend,
    .hp-card-foot {
        padding: 14px 16px 16px;
        font-size: 0.82rem;
    }

    /* Add-ons as stacked cards */
    .hp-addons thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .hp-addons,
    .hp-addons tbody,
    .hp-addons tr,
    .hp-addons td {
        display: block;
        width: 100%;
    }

    .hp-addons tr {
        position: relative;
        padding: 16px 16px 14px 56px;
        border-bottom: 1px solid var(--hp-border);
    }

    .hp-addons tbody tr:nth-child(even) {
        background: var(--hp-stripe);
    }

    .hp-addons tbody tr.hp-row-ai {
        background: var(--hp-std-bg);
    }

    .hp-addons tbody tr > *,
    .hp-addons tbody tr:nth-child(even) > *,
    .hp-addons tbody tr:hover > *,
    .hp-addons tbody tr.hp-row-ai > * {
        padding: 3px 0;
        border: 0;
        background: transparent;
    }

    .hp-addons td.hp-sr {
        position: absolute;
        top: 16px;
        left: 0;
        width: 56px;
        padding: 0;
        text-align: center;
    }

    .hp-addons td.hp-item {
        width: 100%;
        padding: 0 0 6px;
        font-size: 1rem;
    }

    .hp-addons td[data-label]::before {
        content: attr(data-label) ": ";
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--hp-muted);
    }

    .hp-addons td[data-label=""]::before,
    .hp-addons td.hp-empty {
        display: none;
    }

    .hp-addons td.hp-stack::before {
        display: block;
        margin-bottom: 4px;
    }

    .hp-addons td.hp-days {
        display: inline-block;
        width: auto;
        margin-right: 16px;
    }

    .hp-cta-sec {
        padding: 30px 0 60px;
    }

    .hp-cta {
        padding: 40px 20px 38px;
    }
}

@media (max-width: 575.98px) {
    .hp-hero-title br {
        display: none;
    }

    .hp-pills {
        gap: 10px;
    }

    .hp-card-head {
        padding: 22px 18px 20px;
    }

    .hp-card-title {
        gap: 10px;
    }

    /* Narrowest phones: module table scrolls inside its card
       (never the page), with the module name pinned */
    .hp-matrix {
        min-width: 470px;
    }

    .hp-matrix .hp-item {
        position: sticky;
        left: 0;
        z-index: 1;
        width: 132px;
        min-width: 132px;
        background: #fff;
        box-shadow: 1px 0 0 var(--hp-border);
    }

    .hp-matrix thead .hp-item {
        background: var(--hp-head-bg);
    }

    .hp-matrix tfoot .hp-item {
        background: var(--hp-total-bg);
    }

    .btn.hp-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn.hp-cta-btn {
        transition: none;
    }
}
