/* =============================================================================
   GP Subscription Table
   ============================================================================= */

.gp-pt {
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 1.4;
}

/* -----------------------------------------------------------------------------
   Grid layout — shared by header and plan rows
   ----------------------------------------------------------------------------- */

.gp-pt__header,
.gp-pt__row {
    display: grid;
    grid-template-columns:
        var(--gp-pt-col-plan, 40%)
        var(--gp-pt-col-monthly, 20%)
        var(--gp-pt-col-annual, 20%)
        var(--gp-pt-col-cta, 20%);
    align-items: center;
    padding: 16px 24px;
    gap: 12px;
}

.gp-pt__header {
    font-weight: 700;
    font-size: 16px;
}

/* -----------------------------------------------------------------------------
   Columns
   ----------------------------------------------------------------------------- */

.gp-pt__col--monthly,
.gp-pt__col--annual {
    text-align: center;
}

.gp-pt__col--cta {
    text-align: center;
}

/* Column dividers — padding so content doesn't sit flush against the border */
.gp-pt__row > .gp-pt__col + .gp-pt__col,
.gp-pt__header > .gp-pt__col + .gp-pt__col {
    padding-left: 12px;
}

/* Plan column — icon + text side-by-side */
.gp-pt__col--plan {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gp-pt__icon {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gp-pt__plan-info {
    display: flex;
    flex-direction: column;
}

.gp-pt__plan-name {
    font-weight: 700;
}

.gp-pt__plan-sub {
    font-size: 13px;
    opacity: 0.7;
}

/* -----------------------------------------------------------------------------
   Pricing
   ----------------------------------------------------------------------------- */

.gp-pt__price {
    font-size: 22px;
    font-weight: 700;
}

.gp-pt__period {
    font-size: 13px;
    opacity: 0.6;
    display: block;
}

/* -----------------------------------------------------------------------------
   Button
   ----------------------------------------------------------------------------- */

.gp-pt__btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s ease;
}

.gp-pt__btn:hover {
    opacity: 0.85;
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */

.gp-pt__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 24px;
    gap: 24px;
}

.gp-pt__footer-label {
    font-weight: 700;
}

.gp-pt__footer-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gp-pt__check {
    flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
   Scroll-triggered row stagger animation
   - Hidden state is only applied when JS adds the `--animated` class, so the
     Elementor editor (which does not run frontend JS) always shows content.
   - Each direct child (header, rows, footer) staggers in sequence using a
     CSS custom property set by JS.
   ----------------------------------------------------------------------------- */

.gp-pt--animated > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    transition-delay: calc(var(--gp-pt-index, 0) * 0.1s);
}

.gp-pt--visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .gp-pt--animated > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* -----------------------------------------------------------------------------
   Responsive — stack to card layout on mobile
   ----------------------------------------------------------------------------- */

@media (max-width: 767px) {
    .gp-pt__header {
        display: none;
    }

    .gp-pt__row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 12px 16px;
    }

    .gp-pt__col--plan {
        grid-column: 1 / -1;
    }

    .gp-pt__col--monthly,
    .gp-pt__col--annual {
        text-align: left;
        min-width: 0;
    }

    .gp-pt__col--cta {
        grid-column: 1 / -1;
        text-align: left;
    }

    .gp-pt__btn {
        width: 100%;
    }

    .gp-pt__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
