/* /dental-practice-management-software/ — ported from the live Betheme page (#76). */

/* Live spacing is larger than the default .dmax-row clamp. */
.dmax-pms-row.dmax-row {
    padding-top: clamp(48px, 6vw, 86px) !important;
    padding-bottom: clamp(48px, 6vw, 86px) !important;
}

/* Clears the transparent header. */
.dmax-pms-row.dmax-pms-hero {
    padding-top: 170px !important;
}

/* Text */
.dmax-pms-row p,
.dmax-pms-row li {
    color: #656565;
    font-size: 18px;
    line-height: 1.65;
}

.dmax-pms-row li strong {
    color: #161922;
}

.dmax-pms-list {
    margin: 0 0 1em;
    padding-left: 30px;
}

.dmax-pms-list li {
    margin-bottom: 0.65em;
}

.dmax-pms-center {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.dmax-pms-twothirds {
    max-width: 66%;
}

/* Buttons */
.dmax-pms-btns.kb-buttons-wrap {
    flex-wrap: nowrap;
    gap: 24px;
    margin: 24px 0;
}

.dmax-pms-btns .kb-button {
    flex: 0 1 auto;
    min-width: min(276px, 48%);
    padding: 13px 20px;
    white-space: nowrap;
    font-size: 17px;
    font-weight: 700;
}

/* Built for Dental Teams */
.dmx-teams {
    padding: 48px 28px;
    border-radius: 16px;
    background: #88d7d4;
    text-align: center;
}

.dmx-teams .dmx-title {
    margin: 0 0 30px;
    font-size: 30px;
    font-weight: 600;
    text-align: center;
}

.dmx-teams .dmx-row {
    display: flex;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 30px;
}

.dmx-teams .dmx-pill {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    box-sizing: border-box;
    padding: 20px 16px;
    border: 2px solid #00b2b6;
    border-radius: 30px;
    background: #fff;
    color: #00b2b6;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.dmx-teams .dmx-pill:hover,
.dmx-teams .dmx-pill:focus,
.dmx-teams .dmx-pill.active {
    border-color: #00a2a6;
    background: #00a2a6;
    color: #fff;
}

.dmx-teams .dmx-ic {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #fff;
}

.dmx-teams .dmx-ic img {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 24px;
}

.dmx-teams .dmx-panel {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}

.dmx-teams .dmx-panel.active {
    display: block;
}

/* .dmax-section-light's white text shadow blurs on teal. */
.dmx-teams h2,
.dmx-teams h3,
.dmx-teams p {
    text-shadow: none;
}

.dmx-teams .dmx-panel h3 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 600;
}

.dmx-teams .dmx-panel p {
    line-height: 1.35;
}

/* Make Insurance Follow-Up More Organized */
.dmx-tl {
    position: relative;
    padding-left: 44px;
}

.dmx-tl .dmx-line {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 9px;
    width: 4px;
    border-radius: 2px;
    background: #88d7d4;
}

.dmx-tl .dmx-node {
    position: relative;
    margin-bottom: 30px;
}

.dmx-tl .dmx-node:last-child {
    margin-bottom: 0;
}

.dmx-tl .dmx-dot {
    position: absolute;
    top: 1px;
    left: -44px;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #00a2a6;
    box-shadow: 0 0 0 2px #88d7d4;
}

/* Cloud comparison table */
.dmx-compare {
    --panel-a: #aedcf0;
    --panel-b: #c3e6da;
    --cell: #fff;
    --ink: #2b2f33;
    --muted: #5b646c;
    --green: #4cc55a;
    --total-bg: #24566b;
    color: var(--ink);
}

.dmx-compare *,
.dmx-compare ::before,
.dmx-compare ::after {
    box-sizing: border-box;
}

.dmx-compare .scroll {
    overflow-x: auto;
}

.dmx-compare .panel {
    padding: 1rem;
    background: linear-gradient(120deg, var(--panel-a), var(--panel-b));
}

.dmax-pms-row .dmx-compare table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 5px;
    background: none;
    table-layout: fixed;
}

.dmx-compare col.c1 {
    width: 34%;
}

.dmx-compare col.c2 {
    width: 20%;
}

.dmx-compare col.c3,
.dmx-compare col.c4 {
    width: 23%;
}

.dmax-pms-row .dmx-compare th {
    padding: 0.75rem 0.35rem;
    border: 0;
    border-radius: 8px;
    background: #6ab1ab !important;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.3;
    text-align: center;
}

.dmax-pms-row .dmx-compare th.flow {
    background: #4f9f98 !important;
}

.dmax-pms-row .dmx-compare tr,
.dmax-pms-row .dmx-compare thead {
    border: 0;
    background: transparent;
}

.dmax-pms-row .dmx-compare td {
    height: 54px;
    padding: 0.5rem 0.4rem;
    border: 0;
    border-radius: 8px;
    background: var(--cell) !important;
    color: var(--ink);
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: center;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.dmx-compare td small {
    display: block;
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: 0.72rem;
}

.dmx-compare .logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dmx-compare img.logo {
    display: block;
    width: 34px;
    height: 34px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    object-fit: contain;
}

.dmx-compare .check {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green);
    vertical-align: middle;
}

.dmx-compare .check::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 10px;
    width: 8px;
    height: 14px;
    border: solid #fff;
    border-width: 0 3.5px 3.5px 0;
    border-radius: 1px;
    transform: rotate(45deg);
}

.dmax-pms-row .dmx-compare tr.total td {
    height: auto;
    padding: 0.9rem 0.4rem;
}

.dmax-pms-row .dmx-compare tr.total td.label,
.dmax-pms-row .dmx-compare tr.total td.others {
    background: var(--total-bg) !important;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

.dmx-compare tr.total td small {
    color: #fff;
    font-weight: 500;
}

.dmx-compare tr.total td.others strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: line-through 2px rgba(255, 255, 255, 0.6);
}

.dmax-pms-row .dmx-compare tr.total td.flowcell {
    background: #fff !important;
    box-shadow: 0 0 0 3px var(--green) inset;
}

.dmx-compare tr.total td.flowcell strong {
    display: block;
    color: #1f6f68;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.05;
}

.dmx-compare tr.total td.flowcell small {
    color: var(--muted);
}

.dmax-pms-row .dmx-compare tr.save td {
    height: auto;
    padding: 0.75rem;
    background: #e9fbe9 !important;
    color: #1f7a2c;
    font-size: 0.95rem;
    font-weight: 800;
}

.dmax-pms-row .dmx-compare p.foot {
    margin: 0.75rem 0.3rem 0;
    color: #35505c;
    font-size: 11px;
    line-height: 1.45;
}

/* Plans */
.dmax-pms-row .dmax-pms-plans {
    margin-top: 76px;
}

.dmax-pms-plan > .kt-inside-inner-col {
    position: relative;
    padding: 30px 24px 26px;
    border: 1px solid #ececec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.dmax-pms-plan-popular > .kt-inside-inner-col {
    border: 2px solid #3cbce6;
    border-top: 0;
    border-radius: 0 0 16px 16px;
}

.dmax-pms-plan-popular > .kt-inside-inner-col::before {
    content: "Most Popular";
    position: absolute;
    top: -46px;
    right: -2px;
    left: -2px;
    height: 46px;
    border-radius: 16px 16px 0 0;
    background: #3cbce6;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 46px;
    text-align: center;
}

.dmax-pms-plan-title {
    margin: 0 0 8px;
    font-size: 25px;
}

.dmax-pms-row .dmax-pms-price {
    margin: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid #c8d9e6;
    color: #161922;
    font-size: 48px;
    line-height: 1.2;
}

.dmax-pms-price sup {
    top: -0.8em;
    margin-right: 6px;
    font-size: 24px;
}

.dmax-pms-row .dmax-pms-period {
    margin: 18px 0;
    text-align: center;
}

.dmax-pms-row .dmax-pms-features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dmax-pms-row .dmax-pms-features li {
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f1f1;
    font-size: 16px;
    line-height: 1.75;
}

.dmax-pms-row .dmax-pms-features li:last-child {
    border-bottom: 0;
}

.dmax-pms-row .dmax-pms-plan-note {
    max-width: 66%;
    margin-top: 40px;
    line-height: 1.35;
    text-align: center;
}

/* Getting started with Flow */
.dmx-steps {
    --ink: #2b2f33;
    --muted: #5b646c;
    --blue: #5bb8e6;
    --teal: #88cbb8;
    --accent: #3aa6db;
    --rail: #e4e8eb;
    --rail-shade: rgba(0, 0, 0, 0.14);
    --check-bg: #e9f6fb;
    box-sizing: border-box;
    max-width: 1120px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4rem;
    color: var(--ink);
    line-height: 1.5;
}

.dmx-steps *,
.dmx-steps ::before,
.dmx-steps ::after {
    box-sizing: border-box;
}

.dmx-steps .intro {
    max-width: 40rem;
    margin-bottom: 3rem;
}

.dmx-steps h2 {
    margin: 0 0 0.75rem;
    color: var(--ink);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.dmx-steps .intro p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.dmx-steps .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.dmx-steps .step {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-left: 2.25rem;
}

.dmx-steps .step::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.5rem;
    width: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--rail-shade), transparent);
}

.dmx-steps .ribbon {
    position: relative;
    width: 11rem;
    margin-left: -2.25rem;
    padding: 1rem 1.25rem 1.1rem;
    background: linear-gradient(120deg, var(--blue), var(--teal));
    color: #fff;
    box-shadow: 6px 8px 18px rgba(0, 0, 0, 0.12);
}

.dmx-steps .ribbon::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 1.5rem;
    border-right: 34px solid transparent;
    border-bottom: 12px solid #3f98c4;
}

.dmx-steps .ribbon .label {
    display: block;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1;
}

.dmx-steps .ribbon .num {
    display: block;
    font-size: 4.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

.dmx-steps .icon {
    margin: 2rem 0 1.25rem;
}

.dmx-steps .icon img {
    display: block;
    width: 72px;
    height: 72px;
    max-width: none;
    border: 0;
    box-shadow: none;
}

.dmx-steps h3 {
    margin: 0 0 0.5rem;
    color: #161922;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
}

.dmx-steps p.summary {
    max-width: 30ch;
    margin: 0 0 1.5rem;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.dmx-steps .subs {
    margin: 0 0 1.75rem;
    padding: 0;
    border-top: 1px solid var(--rail);
    list-style: none;
}

.dmx-steps .subs li {
    display: grid;
    grid-template-columns: 1.75rem 1fr;
    gap: 0.75rem;
    margin: 0;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--rail);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.5;
}

.dmx-steps .subs .tick {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--check-bg);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

.dmx-steps .subs strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
}

.dmx-steps .subs span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.dmx-steps .bar {
    height: 7px;
    margin-top: auto;
    border-radius: 4px;
    background: linear-gradient(to right, var(--blue), var(--teal));
}

/* FAQ: numbered questions, as on live */
.dmax-pms-faq {
    max-width: 880px;
    margin-right: auto;
    margin-left: auto;
    counter-reset: dmax-pms-faq;
}

.dmax-pms-faq .kt-accordion-pane {
    border-bottom: 1px solid #e5e5e5;
}

.dmax-pms-faq .kt-blocks-accordion-header,
.dmax-pms-faq .kt-blocks-accordion-title {
    color: #161922;
    font-weight: 400;
}

.dmax-pms-faq .kt-blocks-accordion-icon-trigger {
    transform: scale(0.6);
}

.dmax-pms-faq .kt-blocks-accordion-icon-trigger::before,
.dmax-pms-faq .kt-blocks-accordion-icon-trigger::after {
    background: #b5b5b5;
}

.dmax-pms-faq .kt-blocks-accordion-title::before {
    content: counter(dmax-pms-faq);
    counter-increment: dmax-pms-faq;
    display: inline-block;
    width: 44px;
    font-weight: 700;
}

/* Contact: holds the space until the lazy HubSpot form arrives */
.flow-contact-form {
    min-height: 600px;
    scroll-margin-top: 120px;
}

@media (max-width: 959px) {
    /* Live stacks these rows here, later than Kadence's tablet breakpoint would. */
    .dmax-pms-stack > .kt-row-column-wrap {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .dmx-compare .panel {
        min-width: 600px;
    }
}

@media (max-width: 860px) {
    .dmx-steps .steps {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        max-width: 30rem;
    }

    .dmx-steps p.summary {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .dmax-pms-twothirds,
    .dmax-pms-row .dmax-pms-plan-note {
        max-width: none;
    }

    .dmax-pms-btns.kb-buttons-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .dmax-pms-btns .kb-button {
        flex: none;
        width: 100%;
        white-space: normal;
    }

    .dmx-teams {
        padding: 28px 16px;
    }

    .dmx-steps {
        padding: 2rem 0.5rem;
    }

    .dmx-steps .ribbon {
        width: 7rem;
        padding: 0.6rem 0.75rem;
    }

    .dmx-steps .ribbon .label {
        font-size: 0.85rem;
    }

    .dmx-steps .ribbon .num {
        font-size: 2.6rem;
    }

    .dmx-teams .dmx-row {
        flex-direction: column;
    }
}
