/* /how-to-pay — visual guide using the real checkout screens */

.page-how-to-pay .main--how-to-pay {
    padding-top: clamp(0.75rem, 2vw, 1.25rem);
}

.pg {
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: calc(2.75rem + env(safe-area-inset-bottom, 0px));
}

.pg-hero {
    padding: clamp(0.4rem, 1.5vw, 0.8rem) 0 clamp(1.25rem, 3vw, 1.75rem);
}

.pg-kicker {
    margin: 0 0 0.55rem;
    color: rgba(var(--primary-rgb), 0.95);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[lang="ka"] .pg-kicker {
    letter-spacing: 0.04em;
    text-transform: none;
}

.pg-title {
    margin: 0 0 0.75rem;
    max-width: 14em;
    font-size: clamp(1.85rem, 5vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.pg-lead {
    margin: 0;
    max-width: 42rem;
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.4vw, 1.12rem);
    line-height: 1.6;
}

.pg-free {
    margin: 1rem 0 0;
    max-width: 42rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

.pg-free a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.pg-free a:hover {
    text-decoration: underline;
}

.pg-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.25rem;
}

.pg-jump {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-rgb), 0.28);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.pg-jump:hover {
    background: rgba(var(--primary-rgb), 0.18);
}

.pg-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0.5rem 0 2.25rem;
}

.pg-plan {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
    padding: 1.05rem 1rem 1rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(var(--primary-rgb), 0.16), transparent 55%),
        var(--surface);
}

.pg-plan--vip {
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(168, 85, 247, 0.22), transparent 58%),
        var(--surface);
    border-color: rgba(168, 85, 247, 0.35);
}

.pg-plan--top {
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(251, 191, 36, 0.2), transparent 55%),
        var(--surface);
    border-color: rgba(251, 191, 36, 0.4);
}

.pg-plan__name {
    margin: 0;
    font-size: 1.05rem;
}

.pg-plan__desc {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
}

.pg-plan__price {
    margin-top: auto;
    padding-top: 0.35rem;
    font-size: 0.95rem;
}

.pg-plan__price span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
}

.pg-plan__price strong {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.pg-includes {
    margin: -1.15rem 0 2rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.pg-section-title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.pg-section-lead {
    margin: 0 0 1.25rem;
    max-width: 40rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.pg-steps {
    display: grid;
    gap: 1.35rem;
}

.pg-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: clamp(0.85rem, 2vw, 1.15rem);
    border-radius: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.pg-step__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0 0 0.55rem;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.18);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.pg-step__title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    line-height: 1.2;
}

.pg-step__body {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
}

.pg-step__note {
    margin: 0.75rem 0 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.45;
}

.pg-device {
    width: min(100%, 390px);
    margin-inline: auto;
    padding: 0.55rem 0.55rem 0.7rem;
    border-radius: 2rem;
    background: linear-gradient(180deg, #32384a 0%, #141821 100%);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.38),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pg-device__notch {
    width: 84px;
    height: 7px;
    margin: 0.15rem auto 0.45rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
}

.pg-device__screen {
    overflow: hidden;
    border-radius: 1.45rem;
    background: var(--background);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pg-device__caption {
    margin: 0.55rem 0 0;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

html[lang="ka"] .pg-device__caption {
    letter-spacing: 0.02em;
    text-transform: none;
}

/* Beat checkout mobile rules (max-width: 600px) and cards.css, which production
   links after this sheet. */
.page-how-to-pay .pg-device .activation-checkout {
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow: visible;
    border-radius: 0;
    background: var(--surface);
}

.page-how-to-pay .pg-device .activation-checkout-scroll {
    max-height: none;
    overflow: visible;
}

.page-how-to-pay .pg-device .activation-checkout-footer {
    position: static;
}

.page-how-to-pay .pg-device .page-manage-profiles .profile-list-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.35rem 0.65rem;
    padding: 0.75rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.page-how-to-pay .pg-device .page-manage-profiles .profile-list-card + .profile-list-card {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-how-to-pay .pg-device .page-manage-profiles .profile-list-card .profile-list-avatar {
    align-self: start;
    width: 64px;
    height: 64px;
    min-height: 0;
}

.pg-avatar {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 40%),
        linear-gradient(145deg, #7c3aed, #22d3ee);
    color: #fff;
    font-weight: 800;
    font-size: 1.35rem;
}

.pg-avatar--vip {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 40%),
        linear-gradient(145deg, #7e22ce, #f472b6);
}

.page-how-to-pay .pg-device .page-manage-profiles .profile-list-info {
    padding-right: 0;
}

.page-how-to-pay .pg-device .page-manage-profiles .profile-list-primary-actions {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    gap: 0.35rem;
}

.page-how-to-pay .pg-device .page-manage-profiles .profile-list-primary-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.48rem 0.35rem;
    font-size: 0.72rem;
}

.page-how-to-pay .pg-device .page-manage-profiles .profile-list-primary-btn__label--full {
    display: none;
}

.page-how-to-pay .pg-device .page-manage-profiles .profile-list-primary-btn__label--short {
    display: inline;
}

.pg-hot {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.45);
}

.pg-rows .profile-list-card:first-child .profile-list-primary-btn--activate {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.45);
}

.page-how-to-pay .pg-device .activation-currency-grid {
    grid-template-columns: 1fr;
}

.page-how-to-pay .pg-device .activation-payment-methods {
    grid-template-columns: 1fr;
}

.page-how-to-pay .pg-device .activation-payment-qr {
    width: 132px;
    height: 132px;
    max-width: 100%;
    display: block;
}

.page-how-to-pay .pg-device .activation-pay__card {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--surface);
}

.pg-example {
    display: inline-flex;
    margin: 0 0 0.55rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.18);
    border: 1px solid rgba(250, 204, 21, 0.55);
    color: #fde68a;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

html[lang="ka"] .pg-example {
    letter-spacing: 0.02em;
    text-transform: none;
}

.pg-know {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.75rem 0 0.5rem;
}

.pg-know article,
.pg-after article {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--surface);
}

.pg-know h3,
.pg-after h3 {
    margin: 0 0 0.3rem;
    font-size: 0.98rem;
}

.pg-know p,
.pg-after p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
}

.pg-after {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.pg-block {
    margin-top: 2.4rem;
}

.pg-trial {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.pg-faq {
    margin-top: 0.4rem;
}

.pg-cta {
    margin-top: 2rem;
    padding: clamp(1.15rem, 3vw, 1.6rem);
    border-radius: 1.35rem;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(var(--primary-rgb), 0.22), transparent 50%),
        var(--surface);
    border: 1px solid rgba(var(--primary-rgb), 0.22);
}

.pg-cta__title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
}

.pg-cta__text {
    margin: 0 0 1rem;
    max-width: 38rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pg-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: center;
}

.pg-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.05rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.pg-cta__btn:hover {
    filter: brightness(1.06);
}

.pg-cta__link {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
}

.pg-cta__link:hover {
    color: var(--primary-color);
}

:root[data-theme='light'] .pg-step,
:root[data-theme='light'] .pg-plan,
:root[data-theme='light'] .pg-know article,
:root[data-theme='light'] .pg-after article {
    border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme='light'] .pg-device {
    background: linear-gradient(180deg, #f8fafc 0%, #dbe3ee 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12), inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

:root[data-theme='light'] .pg-device__caption {
    color: rgba(15, 23, 42, 0.62);
}

:root[data-theme='light'] .pg-device__notch {
    background: rgba(15, 23, 42, 0.18);
}

:root[data-theme='light'] .pg-example {
    color: #854d0e;
    background: rgba(250, 204, 21, 0.28);
}

:root[data-theme='light'] .activation-network-banner {
    color: #713f12;
}

@media (min-width: 900px) {
    .pg-step {
        grid-template-columns: minmax(0, 1fr) 390px;
        gap: 1.5rem;
        padding: 1.25rem 1.25rem 1.25rem 1.4rem;
    }

    .pg-step--flip {
        grid-template-columns: 390px minmax(0, 1fr);
    }

    .pg-step--flip .pg-step__copy {
        order: 2;
    }
}

@media (max-width: 800px) {
    .pg-plans,
    .pg-after,
    .pg-know {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) and (max-width: 800px) {
    .pg-plans,
    .pg-know {
        grid-template-columns: 1fr 1fr;
    }

    .pg-after {
        grid-template-columns: 1fr 1fr;
    }
}
