/* Programs & Pricing page, "Which Program Is Right for You?" (template-parts/pricing/compare.php,
   docs/sections/programs/programs-which-program.png): heading with the "Compare Programs" button, four paths; under it
   "What Each Program Includes" (template-parts/pricing/compare-table.php — the table itself: compare-table.css). Small
   headings, accents, heading sizes, features list and the section background: pricing-programs.css. */

.prc-compare-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px 40px;
    margin-bottom: clamp(22px, 1.8vw, 34px);
}

.prc-compare-copy {
    min-width: 0;
}

/* Light blue, blue text (the design's secondary button). */
.amh-button.prc-compare-button {
    flex: 0 0 auto;
    margin-bottom: 6px;
    border-color: #cfe4fa;
    background: #eaf3fd;
    box-shadow: none;
    color: var(--prc-blue);
}

.amh-button.prc-compare-button:hover,
.amh-button.prc-compare-button:focus-visible {
    border-color: #a9cff5;
    background: #dcecfc;
    color: #075fd0;
}

.amh-button.prc-compare-button span {
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: .7;
}

/* ---------- The paths. */

.prc-compare-paths {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.2vw, 24px);
}

.prc-compare-paths-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prc-compare-paths-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prc-compare-paths-1 {
    grid-template-columns: minmax(0, 1fr);
}

.prc-compare-path {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(20px, 1.8vw, 34px) clamp(18px, 1.6vw, 30px) clamp(18px, 1.5vw, 28px);
    border: 1px solid var(--prc-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(1, 33, 106, .08);
}

.prc-compare-path-head {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.2vw, 22px);
    margin-bottom: clamp(14px, 1.2vw, 22px);
}

.prc-compare-icon {
    display: grid;
    width: clamp(52px, 3.4vw, 64px);
    height: clamp(52px, 3.4vw, 64px);
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #e3f0fc;
    color: var(--prc-blue);
}

.prc-compare-icon svg {
    width: 54%;
    height: 54%;
}

.prc-compare-path-title {
    margin: 0;
    color: var(--amh-navy);
    font-size: clamp(18px, 1.25vw, 23px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.prc-compare-path-description {
    margin: 0 0 clamp(16px, 1.3vw, 24px);
    padding-bottom: clamp(16px, 1.3vw, 24px);
    border-bottom: 1px solid var(--prc-line);
    color: var(--prc-muted);
    font-size: clamp(14px, .98vw, 17px);
    line-height: 1.5;
}

.prc-compare-features {
    margin-bottom: clamp(20px, 1.8vw, 32px);
}

.prc-compare-path-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.prc-compare-price {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
    margin: 0;
    color: var(--amh-navy);
    line-height: 1.15;
}

.prc-compare-price-prefix,
.prc-compare-price-unit {
    font-size: clamp(15px, 1.05vw, 19px);
    font-weight: 700;
}

.prc-compare-price-unit {
    margin-left: -4px;
}

.prc-compare-price strong {
    font-size: clamp(26px, 1.9vw, 36px);
    font-weight: 800;
    letter-spacing: -.03em;
}

/* The round pink arrow (the home pink, as the other buttons). */
.prc-compare-arrow {
    display: grid;
    width: clamp(46px, 3.2vw, 58px);
    height: clamp(46px, 3.2vw, 58px);
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--amh-pink);
    box-shadow: 0 10px 22px rgba(245, 0, 114, .22);
    color: #fff;
    transition: background-color .2s ease, transform .2s ease;
}

.prc-compare-arrow svg {
    width: 46%;
    height: 46%;
}

.prc-compare-arrow:hover,
.prc-compare-arrow:focus-visible {
    background: #d90063;
    color: #fff;
    transform: translateX(3px);
}

.prc-compare-arrow:focus-visible {
    outline: 2px solid #0381f8;
    outline-offset: 3px;
}

/* Laptops: four paths need the room — smaller inner spacing. */
/* ---------- What Each Program Includes. */

.prc-table-head {
    max-width: 860px;
    margin-bottom: clamp(22px, 1.8vw, 34px);
}

.prc-table .amx-table thead th:first-child {
    width: 34%;
}

/* Tablets: five programs beside the features — a narrower first column, so their names break only between words. */
@media (min-width: 701px) and (max-width: 1100px) {
    .prc-table .amx-table thead th:first-child {
        width: 24%;
    }
}

.prc-table-note {
    margin: 16px 0 0;
    color: #5b6b8c;
    font-size: 14px;
    font-style: italic;
}

@media (max-width: 1366px) {
    .prc-compare-path {
        padding-inline: 18px;
    }

    .prc-compare-features li {
        gap: 10px;
    }
}

/* Tablets: two by two, the button under the heading. */
@media (max-width: 1180px) {
    .prc-compare-paths,
    .prc-compare-paths-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .prc-compare-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Phones: one under another. */
@media (max-width: 700px) {
    .prc-compare-paths,
    .prc-compare-paths-2,
    .prc-compare-paths-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .amh-button.prc-compare-button {
        width: 100%;
    }
}
