.free-trial-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: #1a5c3a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #4ade80;
}

.free-trial-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.free-trial-text strong {
    color: #fff;
    font-size: 1rem;
}

.free-trial-text span {
    color: var(--landing-muted);
    font-size: 0.85rem;
}

.free-trial-btn {
    background: #16a34a;
    color: #fff;
    border: none;
    padding: 10px 22px;
    min-height: 44px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s;
    white-space: nowrap;
}

.free-trial-btn:hover {
    background: #15803d;
}

.free-trial-btn.subtitleai-btn-google {
    background: #ffffff;
    color: #1f2333;
    gap: 8px;
}

.free-trial-btn.subtitleai-btn-google:hover {
    background: #f1f3f8;
}

.free-trial-btn.subtitleai-btn-primary {
    background: linear-gradient(135deg, var(--landing-accent) 0%, #fb7185 120%);
    color: #ffffff;
}

/* Pricing headline */
.pricing-head {
    text-align: center;
    margin-bottom: 8px;
}

.pricing-headline {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    line-height: 1.06;
    letter-spacing: -0.01em;
}

.pricing-accent {
    color: #4ade80;
}

/* Billing Toggle + Save Badge */
.billing-toggle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 24px 0 32px;
}

.billing-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.billing-toggle-btn {
    border: none;
    background: transparent;
    color: var(--landing-muted);
    padding: 8px 24px;
    min-height: 44px;
    min-width: 44px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.billing-toggle-btn.active {
    background: #fff;
    color: #000;
    font-weight: 700;
}

.save-badge {
    background: #1a5c3a;
    color: #4ade80;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 999px;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.save-badge svg {
    flex-shrink: 0;
}

.pricing-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    align-items: stretch;
}

/* Plans arrive from /v1/plans after paint. Hold the grid's rendered height
   while it is empty so injecting the cards does not shove the page down. */
.pricing-grid:empty {
    min-height: 444px;
}

.plan-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.plan-card::after {
    content: "";
    position: absolute;
    left: 1px;
    right: 1px;
    top: 1px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(29, 78, 216, 0), rgba(29, 78, 216, 0.9), rgba(29, 78, 216, 0));
    opacity: 0.55;
}

.plan-card.is-popular {
    background: rgba(55, 30, 0, 0.95);
    border-color: #d97706;
    box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.4), 0 14px 36px rgba(217, 119, 6, 0.18);
}

.plan-card.is-popular::after {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0), #d97706, rgba(217, 119, 6, 0));
    opacity: 1;
}

/* Most Popular badge */
.most-popular-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #d97706;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding: 3px 10px;
    border-radius: 999px;
}

/* Price block */
.plan-price-block {
    margin: 14px 0 4px;
}

.plan-price-ils {
    font-size: 2rem;
    font-weight: 800;
    /* Use the body stack so currency glyph metrics stay stable. */
    font-family: var(--font-body);
}

.plan-price-suffix {
    font-size: 0.85rem;
    color: var(--landing-muted);
    margin-left: 3px;
}

.plan-price-original {
    font-size: 0.85em;
    text-decoration: line-through;
    opacity: 0.5;
    margin-right: 4px;
}

.plan-save-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}

.plan-price-annual {
    font-size: 0.75rem;
    color: var(--landing-muted);
    margin-top: 2px;
}

/* Yearly nudge */
.yearly-nudge {
    background: none;
    border: none;
    padding: 0;
    min-height: 44px;
    color: #4ade80;
    font-size: 0.8rem;
    margin: 10px 0;
    cursor: pointer;
    text-align: left;
}

.yearly-nudge:hover {
    text-decoration: underline;
}

/* CTA buttons */
.plan-card .plan-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 0;
    min-height: 44px;
    border-radius: 10px;
    margin: 14px 0 0;
    margin-top: auto;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.plan-card .plan-cta:hover {
    background: rgba(255, 255, 255, 0.1);
}

.plan-card .plan-cta.subtitleai-btn-google {
    background: #ffffff;
    border-color: #ffffff;
    color: #1f2333;
    gap: 10px;
}

.plan-card .plan-cta.subtitleai-btn-google:hover {
    background: #f1f3f8;
    border-color: #f1f3f8;
}

.plan-card .plan-cta.subtitleai-btn-primary {
    background: linear-gradient(135deg, var(--landing-accent) 0%, #fb7185 120%);
    border-color: transparent;
    color: #ffffff;
}

.plan-card.is-popular .plan-cta {
    background: #d97706;
    border-color: #d97706;
}

.plan-card.is-popular .plan-cta:hover {
    background: #b45309;
}

.plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.plan-title {
    margin: 0;
    font-size: 1.05rem;
}

.plan-tag {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(225, 29, 72, 0.55);
    background: rgba(225, 29, 72, 0.16);
    color: #ffdbe4;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-meta {
    margin: 2px 0 0;
    color: var(--landing-muted);
    font-size: 0.84rem;
}

.price {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--display-font);
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: -0.01em;
}

.price .price-suffix {
    font-family: var(--body-font);
    font-size: 0.82rem;
    color: var(--landing-muted);
    font-weight: 600;
}

.plan-feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    flex: 1 1 auto;
}

.plan-feature-list li {
    position: relative;
    padding-left: 16px;
    color: var(--landing-muted);
    font-size: 0.84rem;
}

.plan-feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(29, 78, 216, 0.9);
}

.plan-card.is-popular .plan-feature-list li::before {
    background: #d97706;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.review-quote {
    margin: 0;
    font-size: 1rem;
    line-height: 1.52;
}

.review-meta {
    margin: 12px 0 0;
    color: #c6d0f4;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.faq-intro p {
    margin: 14px 0 0;
    color: var(--landing-muted);
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(14, 17, 28, 0.86);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--landing-text);
    background: transparent;
    cursor: pointer;
    transition: background 180ms ease;
}

.faq-question:hover {
    background: rgba(225, 29, 72, 0.09);
}

/* ── Skeleton loaders for dynamic content ────────────────── */
.skeleton-card {
    /* Matches the rendered .plan-card height so the swap shifts nothing. */
    height: 444px;
    border-radius: 14px;
    border: 1px solid var(--bg-border);
    background: linear-gradient(
        90deg,
        var(--bg-surface) 25%,
        var(--bg-elevated) 50%,
        var(--bg-surface) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-card {
        animation: none;
    }
}
