/* Extra styles: intro section, site footer and term pages. Loaded after styles.css */

/* Intro section on the home page */
.intro {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border-neutral);
}
.intro h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
}
.intro p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 14px 0;
}
.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 18px 0;
}
.intro-card {
    background: var(--neutral-light-bg);
    border-radius: 12px;
    padding: 16px;
}
.intro-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
}
.intro-card p {
    font-size: 13px;
    margin: 0;
}
.intro ol {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    padding-left: 20px;
    margin: 0 0 14px 0;
}

/* Site footer */
.site-footer,
.term-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-neutral);
    font-size: 13px;
}
.site-footer a,
.term-footer a,
.term a,
.term-back {
    color: var(--brand-blue);
    text-decoration: none;
}
.site-footer a:hover,
.term-footer a:hover,
.term a:hover,
.term-back:hover {
    text-decoration: underline;
}

.term {
    align-self: flex-start;
}
.term h1 {
    font-size: 40px;
    text-align: left;
    margin-top: 16px;
}
.term h2 {
    font-size: 17px;
    font-weight: 600;
    margin: 28px 0 8px 0;
}
.term p,
.term li {
    font-size: 14px;
    line-height: 1.6;
}
.term ul {
    padding-left: 20px;
    margin: 8px 0;
}
.term-updated {
    font-size: 13px;
    color: var(--text-secondary);
}
.term-back {
    font-size: 13px;
}

/* Pricing page */
.pricing-page {
    max-width: 1040px;
    align-self: flex-start;
    padding: 40px 40px 32px;
}
.pricing-hero {
    text-align: center;
    margin: 24px auto 40px;
    max-width: 560px;
}
.pricing-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.pricing-page h1 {
    font-size: 40px;
    line-height: 1.12;
    letter-spacing: -1px;
    margin: 16px 0 12px;
}
.pricing-lead {
    font-size: 17px;
    color: var(--text-secondary);
    margin: 0;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: stretch;
}
.plan-card {
    display: flex;
    flex-direction: column;
    background: var(--card-surface-bg);
    border: 1px solid var(--border-neutral);
    border-radius: 20px;
    padding: 28px 24px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 28px;
}
.plan-card h2 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}
.plan-tag {
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--brand-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.plan-price {
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin: 18px 0 4px;
}
.plan-rate {
    font-size: 14px;
    color: var(--text-secondary);
}
.plan-save {
    align-self: flex-start;
    margin-top: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(52, 199, 89, 0.14);
    color: #1f8a3b;
    font-size: 12px;
    font-weight: 600;
}
.plan-save-empty {
    background: var(--neutral-light-bg);
    color: var(--text-secondary);
}
.plan-features {
    list-style: none;
    margin: 24px 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--border-neutral);
    flex: 1;
}
.plan-features li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
}
.plan-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 113, 227, 0.12)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%230071e3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        center / 16px no-repeat;
}
.paypal-slot {
    min-height: 48px;
}

/* Highlighted pack */
.plan-featured {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.plan-featured .plan-rate {
    color: #a1a1a6;
}
.plan-featured .plan-save {
    background: rgba(52, 199, 89, 0.2);
    color: #5fe07f;
}
.plan-featured .plan-features {
    border-top-color: rgba(255, 255, 255, 0.18);
}
.plan-featured .plan-features li::before {
    background-color: rgba(255, 255, 255, 0.16);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Loading skeletons */
.plan-skeleton {
    min-height: 420px;
    background: linear-gradient(100deg, var(--neutral-light-bg) 30%, #fafafa 50%, var(--neutral-light-bg) 70%);
    background-size: 200% 100%;
    animation: plan-shimmer 1.4s linear infinite;
    border-color: transparent;
}
.plan-skeleton:hover {
    transform: none;
    box-shadow: none;
}
@keyframes plan-shimmer {
    to { background-position: -200% 0; }
}

.plan-status {
    min-height: 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.trust-row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
    margin: 28px 0 0;
    padding: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* FAQ */
.pricing-faq {
    max-width: 680px;
    margin: 56px auto 0;
}
.pricing-faq h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.4px;
    text-align: center;
    margin: 0 0 20px;
}
.pricing-faq details {
    border-bottom: 1px solid var(--border-neutral);
    padding: 16px 0;
}
.pricing-faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}
.pricing-faq summary::-webkit-details-marker {
    display: none;
}
.pricing-faq summary::after {
    content: "+";
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}
.pricing-faq details[open] summary::after {
    transform: rotate(45deg);
}
.pricing-faq details p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .pricing-page {
        padding: 28px 20px 24px;
    }
    .pricing-page h1 {
        font-size: 30px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .plan-card,
    .plan-skeleton {
        transition: none;
        animation: none;
    }
}
