/* ===== Ad-free page ===== */

body.no-ads-body {
    background:
        radial-gradient(circle at 72% 12%, rgba(255, 222, 213, 0.55), transparent 34%),
        linear-gradient(180deg, #fffaf7 0%, #ffffff 52%);
}

.no-ads-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 40px;
}

/* Hero */
.ad-free-hero {
    display: grid;
    grid-template-columns: 1fr 320px;
    align-items: center;
    gap: 72px;
    margin-bottom: 4.4rem;
}
.hero-copy h1 {
    margin: 0 0 18px;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #111827;
    font-weight: 800;
}
.hero-copy h1 span {
    color: #d71920;
}
.hero-copy p {
    max-width: 560px;
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: #5f6b7a;
}
.hero-art {
    display: flex;
    justify-content: center;
}
.hero-art img {
    max-width: 260px;
    width: 100%;
    height: auto;
}

/* Pricing sections */
.pricing-section {
    margin-top: 38px;
}
.pricing-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.section-icon {
    width: 48px;
    height: 48px;
    border-radius: 1.6rem;
    display: grid;
    place-items: center;
    font-size: 24px;
    min-width: 48px;
    min-height: 48px;
}
.pass-icon {
    color: #d71920;
}
.section-icon.pass-icon {
    background: #fff0f0;
}
.subscription-icon {
    color: #2f8f3a;
}
.section-icon.subscription-icon {
    background: #edf8ef;
}
.pricing-section-header h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #111827;
    font-weight: 800;
}
.pricing-section-header p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #667085;
}

/* Pricing grid + cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}
.price-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    min-height: 150px;
    padding: 26px 32px;
    border-radius: 1.6rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow:
        0 16px 32px rgba(16, 24, 40, 0.07),
        0 1px 3px rgba(16, 24, 40, 0.05);
}
.price-card.pass-card {
    box-shadow:
        0 -0.3rem 0 0 #d71920,
        0 16px 32px rgba(16, 24, 40, 0.07),
        0 1px 3px rgba(16, 24, 40, 0.05);
}
.price-card.subscription-card {
    box-shadow:
        0 -0.3rem 0 0 #2f8f3a,
        0 16px 32px rgba(16, 24, 40, 0.07),
        0 1px 3px rgba(16, 24, 40, 0.05);
}

/* Card icon */
.card-icon {
    width: 72px;
    height: 72px;
    border-radius: 100%;
    display: grid;
    place-items: center;
    font-size: 30px;
}
.pass-card .card-icon {
    color: #d71920;
    background: #fff1f1;
}
.subscription-card .card-icon {
    color: #2f8f3a;
    background: #edf8ef;
}

.price-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}
.price {
    margin-bottom: 20px;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.pass-card .price {
    color: #d71920;
}
.subscription-card .price {
    color: #237a34;
}
.price small {
    font-size: 18px;
    font-weight: 700;
    color: #98a2b3;
}

/* Buttons */
.price-card .btn,
.no-ads-page .ad-free-submit {
    height: 42px;
    min-width: 136px;
    padding: 0 20px;
    border-radius: 1.6rem;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid transparent;
    box-shadow: 0 8px 16px rgba(16, 24, 40, 0.14);
    transition: filter 0.15s ease;
    cursor: pointer;
}
.pass-card .btn,
.no-ads-page .ad-free-submit,
.no-ads-page .secondary-btn {
    background: #d71920;
    border-color: #d71920;
    color: #fff;
}
.price-card .btn:hover,
.no-ads-page .ad-free-submit:hover,
.no-ads-page .secondary-btn:hover {
    filter: brightness(0.94);
    color: #fff;
}
.subscription-card .btn {
    background: #247a35;
    border-color: #247a35;
    color: #fff;
}

/* Quantity selector on one-off cards */
.qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1.4rem 0;
}
.qty-row label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #667085;
}
.qty-row .ad-free-qty {
    height: 36px;
    min-width: 72px;
    padding: 0 10px;
    border-radius: 1rem;
    border: 1px solid #d0d5dd;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}
.qty-row .qty-note {
    font-size: 13px;
}

/* Payment trust bar */
.payment-trust {
    margin-top: 36px;
    padding: 16px 18px;
    border-radius: 1.6rem;
    background: #fff;
    border: 1px solid #edf0f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.06);
}
.payment-copy {
    display: flex;
    align-items: center;
    gap: 14px;
}
.payment-icon {
    width: 36px;
    height: 36px;
    border-radius: 100%;
    display: grid;
    place-items: center;
    color: #d71920;
    background: #fff1f1;
    flex-shrink: 0;
}
.payment-trust strong {
    font-size: 14px;
    color: #172033;
}
.payment-trust .payment-copy > span:last-child {
    font-size: 13px;
    color: #667085;
}
.payment-cards {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 30px;
    color: #5f6b7a;
}

/* Logged-out: plan selection + account form */
#ad-free-form {
    margin-top: 1.8rem;
}
.ad-free-step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 1.8rem 0;
}
.ad-free-step-num {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #d71920;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    flex-shrink: 0;
}
.ad-free-step-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111827;
}
.plan-group-label {
    font-size: 14px;
    color: #667085;
    margin: 18px 0 10px;
}

/* Plan step validation */
.plan-step {
    border-radius: 14px;
    padding: 4px 16px 12px;
    margin: 0 -16px;
    border: 1px solid transparent;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}
.plan-step-error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fdecec;
    border: 1px solid #f3b7b7;
    color: #b42318;
    font-size: 14px;
    font-weight: 600;
}
.plan-step--error {
    border-color: #f3b7b7;
    background: rgba(253, 236, 236, 0.5);
    animation: plan-step-flash 0.9s ease;
}
@keyframes plan-step-flash {
    0%   { border-color: #d71920; background: rgba(215, 25, 32, 0.10); }
    60%  { border-color: #d71920; background: rgba(215, 25, 32, 0.10); }
    100% { border-color: #f3b7b7; background: rgba(253, 236, 236, 0.5); }
}
.plan-option {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.05);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    margin: 0;
}
.plan-option .card-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
}
.plan-option .plan-option-title {
    font-weight: 700;
    color: #344054;
}
.plan-option .plan-option-price {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.plan-option.pass-card .plan-option-price { color: #d71920; }
.plan-option.subscription-card .plan-option-price { color: #237a34; }
.plan-option input[type="radio"] {
    width: 18px;
    height: 18px;
}
.plan-option.pass-card input[type="radio"] {
    accent-color: #d71920;
}
.plan-option.subscription-card input[type="radio"] {
    accent-color: #2f8f3a;
}
.plan-option.pass-card:has(input:checked) {
    border-color: #d71920;
    box-shadow: 0 0 0 1px #d71920, 0 6px 16px rgba(16, 24, 40, 0.05);
}
.plan-option.subscription-card:has(input:checked) {
    border-color: #2f8f3a;
    box-shadow: 0 0 0 1px #2f8f3a, 0 6px 16px rgba(16, 24, 40, 0.05);
}

.ad-free-login-note {
    display: inline-block;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 1.6rem;
    padding: 1.4rem 1.8rem;
    margin-bottom: 0.8rem;
    color: #475467;
}
.ad-free-login-note .info-icon {
    color: #d71920;
}
.ad-free-login-note a {
    color: #d71920;
    font-weight: 700;
}

.ad-free-submit {
    height: 48px;
    min-width: 280px;
    font-size: 15px;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 760px) {
    .ad-free-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .hero-copy p { margin: 0 auto; }
    .hero-copy h1 { font-size: 36px; }
    .pricing-grid { grid-template-columns: 1fr; gap: 18px; }
    .payment-trust { flex-direction: column; gap: 12px; align-items: flex-start; }
    .plan-option { grid-template-columns: 48px 1fr auto; gap: 12px; padding: 14px; }
}
