/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap-xxxxl);
    margin-top: var(--space-5);
}

.pricing-card {
    background: var(--body-background);
    padding: var(--padding-xxxxxxl) var(--padding-xxxxl);
    border-radius: var(--border-radius-xxl);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.3s ease;
    transform: scale(1) translateY(0);
    border: none;
    outline: none;
    justify-content: space-between;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.pricing-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: scale(1) translateY(-0.625rem);
}

.pricing-card.selected {
    box-shadow: var(--card-selected-shadow);
    transform: scale(1.05) translateY(-0.625rem);
}

.pricing-card.selected:hover {
    background: var(--card-selected-hover-background);
    color: var(--card-selected-hover-text);
}

.popular-tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    
    background: var(--button-tertiary-outline-background);
    color: var(--button-tertiary-outline-text);
    border: 2px solid var(--button-tertiary-outline-border); 
    box-shadow: var(--button-tertiary-outline-shadow);
    font-size: var(--font-size-body-xs);
    font-weight: 700;
    font-family: 'Varela Round', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--padding-xxs) var(--padding-xxl);
    border-radius: var(--border-radius-rounded-rectangle);
}

.pricing-card.selected .popular-tag {
    background: var(--button-tertiary-background);
    color: var(--button-tertiary-text);
    border: none;
    box-shadow: var(--button-tertiary-shadow);
}

.pricing-card h3 {
    font-size: var(--font-size-heading-h2);
    margin-bottom: var(--margin-xl);
}

.pricing-card .price {
    font-size: var(--font-size-xxl);
    font-weight: 700;
    margin: var(--margin-xxxl) 0;
}

.pricing-card ul {
    list-style: disc;
    margin: 0 var(--margin-xxxxl) var(--margin-xxxxl);
    text-align: left;
    display: inline-flex;
    flex-direction: column;
    flex-grow: 1;
}

.pricing-card li {
    padding: var(--padding-lg) 0;
}

.pricing-card.selected li {
    /* Intentional empty rule */
}

/* Apply this counter-scale to text children of the selected card to prevent them from growing */

.pricing-card.selected h3,
.pricing-card.selected .free-trial-tag,
.pricing-card.selected .price,
.pricing-card.selected ul {
    /* Counter-scale the child element by the inverse of the parent's scale (1/1.05) ≈ 0.95238 */
    transform: scale(0.95238);
    
    /* Ensure the transition is applied to the child elements too for a smooth change */
    transition: transform 0.3s ease;
}

/* Processing Fees Box */
.processing-fees {
    max-width: 600px;
    margin: var(--margin-xxxxxxl) auto 0 auto;
    padding: var(--padding-xxxl);
    border: 1px solid var(--grey-light);
    border-radius: var(--border-radius-lg);
    background: var(--grey-lighter);
    font-size: var(--font-size-body-xs);
    text-align: left;
}

.processing-fees .fee-header {
    font-weight: 600;
    margin-bottom: var(--margin-sm);
    color: var(--text-header-neutral);
}

.processing-fees ul {
    list-style: none;
    padding-left: 0;
    margin: var(--margin-sm) 0 var(--margin-xl) 0;
}

.processing-fees ul li {
    padding: var(--padding-xxxs) 0;
    line-height: var(--line-height-body);
}

.processing-fees .fee-disclaimer {
    font-size: var(--font-size-body-xs);
    color: var(--text-subtitle);
    margin-top: var(--margin-xl);
}

/* Features Grid */
.features-grid {
    display: grid;
    /* Keeping minmax(300px, 1fr) for grid structure */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap-xxxxxxl);
    margin-top: var(--margin-xxxxl);
}

.features-container {
    display: inline-flex;
    flex-direction: column;
    gap: var(--gap-xxxxl);
}

.feature-container {
    
}

.feature-card {
    background: var(--body-background);
    padding: var(--padding-xxxxxl);
    border-radius: var(--border-radius-xxl);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--grey-lighter);
}

.feature-card:hover {
    transform: translateY(-0.625rem);
    box-shadow: var(--card-featured-shadow);
}

.feature-icon {
    width: var(--space-3-75); 
    height: var(--space-3-75); 
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    margin-bottom: var(--margin-xxxl);
}

.feature-icon img {
    max-width: var(--space-2-5);
    max-height: var(--space-2-5);
}

.feature-card h3 {
    font-size: var(--font-size-heading-h3);
    margin-bottom: var(--margin-xl);
    color: var(--text-header-neutral);
}

.feature-category-heading {
    font-size: var(--font-size-heading-h3);
}

.feature-card p {
    color: var(--text-subtitle);
    line-height: var(--line-height-body);
}