/*
 * PRO Programs & Pricing (pro-pricing.php, template-parts/pro/pricing-*.php, MILESTONES #27): what this page adds to
 * the Amerlink PRO page's sheet (pro-page.css: the eyebrows, headings, program cards, buttons, registration): the navy
 * band with the four programs, the prices of the cards with their actions, the section of the comparison (the table
 * itself: compare-table.css), the call to contact.
 * Prefix ampp-.
 */

/* ---------- The band under the header. */

.ampp-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(170px, 12vw, 220px) 0 clamp(56px, 5vw, 90px);
    background:
        radial-gradient(55% 85% at 92% 10%, rgba(8, 174, 243, .26) 0%, rgba(8, 174, 243, 0) 62%),
        radial-gradient(40% 70% at 0% 100%, rgba(245, 0, 114, .15) 0%, rgba(245, 0, 114, 0) 70%),
        var(--amp-band);
    color: #fff;
}

.ampp-hero-inner {
    display: grid;
    width: min(100% - 64px, 1510px);
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 4vw, 80px);
    margin-inline: auto;
}

.ampp-hero-title {
    margin: 0 0 18px;
    padding: 0;
    color: #fff;
    font-size: clamp(34px, 3.3vw, 60px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.06;
}

.ampp-hero-title span {
    color: #7cc4f8;
}

.ampp-hero-desc {
    max-width: 680px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.6;
}

.ampp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ampp-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ampp-tile {
    margin: 0;
}

.ampp-tile a {
    position: relative;
    display: grid;
    height: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 10px 14px;
    padding: 20px 46px 20px 20px;
    border: 1px solid rgba(35, 146, 243, .48);
    border-radius: 14px;
    background: rgba(0, 42, 88, .7);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.ampp-tile a:hover,
.ampp-tile a:focus-visible {
    border-color: #5ebaff;
    background: rgba(0, 71, 139, .9);
    color: #fff;
    transform: translateY(-3px);
}

.ampp-tile .amp-icon {
    grid-row: span 2;
}

.ampp-tile-name {
    font-size: clamp(15px, 1.1vw, 19px);
    font-weight: 800;
    line-height: 1.2;
}

.ampp-tile-price {
    color: #d5e6f5;
    font-size: 14px;
}

.ampp-tile-price strong {
    color: #fff;
    font-size: clamp(20px, 1.5vw, 26px);
    font-weight: 800;
    letter-spacing: -.02em;
}

/* A text in place of a price (Agent – Elite: "Agent Agreement", MILESTONES 38.B5): a label on one line. */
.ampp-tile-price.ampp-tile-price-label strong {
    font-size: clamp(14px, 1vw, 17px);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ampp-tile-arrow {
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--amh-pink);
    font-size: 22px;
    transform: translateY(-50%);
}

/* ---------- The cards: prices and actions. */

.ampp-programs {
    background: #f4f8fd;
    scroll-margin-top: 20px;
}

.ampp-program {
    scroll-margin-top: 24px;
}

.ampp-price-row {
    padding: 14px 0;
    border-top: 1px solid var(--amp-line);
    scroll-margin-top: 120px;
}

.ampp-price-row:first-child {
    border-top: 0;
    padding-top: 4px;
}

.ampp-price-label {
    margin: 0 0 6px;
    padding: 0;
    color: var(--amp-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ampp-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.ampp-card-actions .amh-button {
    width: 100%;
    min-height: 50px;
    gap: 10px;
    padding-inline: 12px;
    font-size: 15px;
    white-space: nowrap;
}

/* The signed-in actions of [shortcode_show_program_and_pricing_actions] (the Stripe button, or the links to the
   visitor's programs), laid out in the price; their "Read more" would lead to the old single program page. */
.ampp-buy {
    margin-top: 12px;
}

.ampp-buy .programs-and-pricing-acc-actions,
.ampp-buy .programs-and-pricing-acc-actions-container,
.ampp-buy .my-acc-actions,
.ampp-buy .my-acc-actions-inner {
    display: flex;
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.ampp-buy .read-more-sub-bt {
    display: none;
}

.ampp-buy .my-button {
    position: static;
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px 20px;
    border-radius: 8px;
    background: var(--amh-pink);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.ampp-buy .my-button-2 {
    border: 1px solid var(--amp-line);
    background: #fff;
    color: var(--amh-navy);
}

/* ---------- Comparison. */

.ampp-compare {
    background: #fff;
}

/* ---------- Call to contact. */

.ampp-cta {
    padding: clamp(56px, 5vw, 96px) 0;
    background:
        radial-gradient(45% 90% at 100% 0%, rgba(8, 174, 243, .22) 0%, rgba(8, 174, 243, 0) 65%),
        var(--amp-band);
    color: #fff;
}

.ampp-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px 48px;
}

.ampp-cta-copy {
    max-width: 760px;
}

.ampp-cta-copy .amp-title {
    margin-bottom: 12px;
}

.ampp-cta-text {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(16px, 1.15vw, 19px);
    line-height: 1.6;
}

.ampp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 1180px) {
    .ampp-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .ampp-tiles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ampp-tile a {
        grid-template-columns: minmax(0, 1fr);
        padding-right: 20px;
    }

    .ampp-tile .amp-icon {
        grid-row: auto;
    }

    .ampp-tile-arrow {
        display: none;
    }
}

@media (max-width: 780px) {
    .ampp-hero-inner {
        width: calc(100% - 32px);
    }

    .ampp-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .ampp-hero {
        padding-top: 150px;
    }

    .ampp-hero-actions .amh-button,
    .ampp-cta-actions .amh-button {
        width: 100%;
    }
}
