/* Light redesign layer. Loaded after buy.css and pricing-option-c.css.
   Markup, scripts and the buy() handlers are untouched. */

:root {
    --ink: #0b1220;
    --ink-2: #4b5565;
    --ink-3: #5b6676;
    --line: #e6e9f0;
    --bg: #f6f7fb;
    --card: #ffffff;
    --brand: #2563eb;
    --brand-2: #0ea5e9;
    --ok: #10b981;
    --radius: 20px;
    --shadow-sm: 0 1px 2px rgba(11, 18, 32, .04), 0 4px 16px rgba(11, 18, 32, .05);
    --shadow-md: 0 2px 4px rgba(11, 18, 32, .04), 0 18px 48px rgba(11, 18, 32, .08);
}

body {
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "cv11", "ss01";
}

#main-content {
    background:
        radial-gradient(900px 420px at 50% -80px, rgba(37, 99, 235, .10), transparent 70%),
        var(--bg);
}

main p { color: var(--ink-2); line-height: 1.6; }

/* ---------- Hero ---------- */
.hero { margin: 28px 0 40px; }
.hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 14px;
}
.hero p { font-size: 1.125rem; color: var(--ink-2); }

/* ---------- Pricing ---------- */
.pricing-grid {
    max-width: 980px;
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    margin-bottom: 40px;
}

.plan { padding: 40px 36px 28px; justify-content: flex-start; }
.plan > footer { margin-top: auto; }

.plan--highlight {
    background: linear-gradient(180deg, #f2f6ff 0%, #ffffff 55%);
    border-right: 1px solid var(--line);
}

.plan--highlight::before {
    content: "Best value";
    left: 36px;
    transform: none;
    background: var(--brand);
    box-shadow: none;
    border-radius: 0 0 10px 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 600;
}

.plan--dark {
    background: linear-gradient(160deg, #0b1220 0%, #16213a 100%);
}

.plan-label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--ink-3);
    margin-bottom: 10px;
}
.plan--dark .plan-label { color: #94a3b8; }

.plan-price,
.plan--highlight .plan-price {
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-right: 6px;
}
.plan-period,
.plan--highlight .plan-period { font-size: .9375rem; color: var(--ink-3); }
.plan--dark .plan-period { color: #94a3b8; }

.plan-small-label,
.plan--highlight .plan-small-label { font-size: .9375rem; margin-top: 8px; color: var(--ink-2); }
.plan--dark .plan-small-label { color: #cbd5e1; }

.plan-header { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.plan--dark .plan-header { border-bottom-color: rgba(255, 255, 255, .12); }

.plan-badge {
    background: #dcfce7;
    color: #047857;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: .8125rem;
    font-weight: 600;
}

.plan-list,
.plan--highlight .plan-list {
    font-size: .9375rem;
    margin: 10px 0 14px;
}
.plan-list li { margin-bottom: 6px; align-items: flex-start; }
.plan-list li::before {
    content: "";
    flex: 0 0 18px;
    height: 18px;
    margin: 2px 12px 0 0;
    border-radius: 50%;
    background: rgba(16, 185, 129, .14)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.plan--dark .plan-list li::before {
    background-color: rgba(250, 204, 21, .16);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23facc15' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.plan-desc,
.plan--highlight .plan-desc { font-size: .875rem; color: var(--ink-3); }
.plan--dark .plan-desc { color: #94a3b8; }

.plan-footer-text,
.plan--highlight .plan-footer-text { font-size: .8125rem; margin-top: 14px; color: var(--ink-3); }
.plan--dark .plan-footer-text { color: #94a3b8; }

/* ---------- Buttons ---------- */
.bttn {
    border-radius: 14px;
    padding: 13px 20px;
    font-size: 1rem;
    letter-spacing: -0.005em;
}
.bttn-green {
    background: linear-gradient(180deg, #34d399, #10b981);
    box-shadow: 0 8px 22px rgba(16, 185, 129, .32);
}
.bttn-blue { background: var(--brand); }
.bttn-dark {
    background: linear-gradient(180deg, #fb923c, #f97316);
    box-shadow: 0 8px 22px rgba(249, 115, 22, .35);
}
.bttn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.bttn:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; }

/* ---------- Sections ---------- */
.why-upgrade,
.testimonials-section,
.faq-section,
.stats-section,
.reviews-section { margin-top: 88px; }

.section-heading {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.section-sub { font-size: 1.0625rem; margin: 0 0 28px; max-width: 800px; }

/* Stats */
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); 
	gap: 20px;
}
.stat-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.stat-value {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 6px;
}
.stat-label { font-size: .75rem; color: var(--brand); margin-bottom: 10px; }
.stat-desc { font-size: .875rem; color: var(--ink-2); line-height: 1.55; }
.stat-card--full {
    background: linear-gradient(135deg, #0b1220, #16213a);
    border-color: transparent;
}
.stat-card--full .stat-value { color: #fff; }
.stat-card--full .stat-label { color: #7dd3fc; }
.stat-card--full .stat-desc { color: #cbd5e1; }

/* Testimonials */
#branding {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.testimonial {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 26px;
    gap: 14px;
}
.testimonial-avatar { border-color: #fff; box-shadow: 0 0 0 1px var(--line); }
.testimonial-name { font-size: 1rem; }
.testimonial-role { font-size: .8125rem; color: var(--ink-3); }
.testimonial-body { font-size: 1rem; line-height: 1.6; margin-top: 0; }

/* Reviews */
#reviewsContainer {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* FAQ */
.faq-list { gap: 12px; }
.faq-item {
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.faq-item:hover { transform: none; border-color: #cfd6e4; }
.faq-item.open { border-color: var(--brand); background: #fff; }
.faq-header { padding: 18px 24px; font-size: 1rem; background: #fff; }
.faq-body { background: #fff; }
.faq-body-inner { padding: 4px 24px 20px; font-size: .9375rem; }

/* CTA */
.cta {
    border-radius: 24px;
    padding: 48px 24px 44px;
    background:
        radial-gradient(600px 240px at 85% 0%, rgba(255, 255, 255, .18), transparent 70%),
        linear-gradient(135deg, #1d4ed8, #0ea5e9);
    box-shadow: 0 24px 60px rgba(29, 78, 216, .35);
}
.cta h2 { font-size: 1.75rem; letter-spacing: -0.02em; }
.cta p { font-size: 1rem; }
.cta-actions .bttn { max-width: 300px; font-size: .9375rem; }
.cta-note { font-size: .8125rem; }

#footerElement { background: #fff; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (min-width: 1001px) {
    .stat-card--full {
        margin-top: 15px;
    }
}
@media (max-width: 1000px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .plan { padding: 32px 24px 26px; }
    .plan--highlight { border-right: none; border-bottom: 1px solid var(--line); }
    .plan--highlight::before { left: 24px; }
    .plan-price, .plan--highlight .plan-price { font-size: 2.5rem; }
}
@media (max-width: 560px) {
    .stats-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* Align the two cards' feature lists; tidy the promo countdown */
@media (min-width: 901px) {
    .plan-header { min-height: 148px; }
}
#CDTSmall3 {
    top: 20px !important;
    right: 24px;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: .6875rem;
}

/* ---------- Black Friday ---------- */
.bf-only { display: none; }
body.bf-on .bf-only { display: revert; }
body.bf-on .bf-off-only { display: none; }

.bf-banner {
    background:
        radial-gradient(500px 160px at 12% 0%, rgba(250, 204, 21, .22), transparent 70%),
        linear-gradient(100deg, #0b1220 0%, #1b1033 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.bf-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.bf-copy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bf-tag {
    background: #facc15;
    color: #111827;
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}
.bf-title { font-size: 1.0625rem; letter-spacing: -0.01em; }
.bf-sub { font-size: .8125rem; color: #cbd5e1; }

.bf-voucher {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 18px;
    border: 1.5px dashed rgba(250, 204, 21, .7);
    border-radius: 12px;
    background: rgba(250, 204, 21, .08);
}
.bf-voucher-label {
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fde68a;
}
.bf-voucher code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: #fff;
    background: none;
    padding: 0;
}
.bf-copy-btn {
    border: 0;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: .8125rem;
    font-weight: 700;
    background: #facc15;
    color: #111827;
    cursor: pointer;
    transition: transform .1s ease, filter .1s ease;
}
.bf-copy-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.bf-copy-btn:focus-visible { outline: 3px solid rgba(250, 204, 21, .5); outline-offset: 2px; }

/* Old (struck-through) price next to the new one */
.price-old {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--ink-3);
    margin-right: 8px;
    letter-spacing: 0;
}
.plan--dark .price-old { color: #94a3b8; }
.cta .price-old, .cta-actions .price-old { font-size: .875rem; opacity: .8; }

@media (max-width: 640px) {
    .bf-inner { justify-content: center; text-align: center; }
    .bf-copy { justify-content: center; }
}

/* Banner must sit above the fixed reveal-footer (z-index 1) */
.bf-banner { position: relative; z-index: 3; }
/* .bttn is inline-flex, so text/spans become flex items: restore the space */
.bttn { gap: .35em; }
.plan-badge { white-space: nowrap; }
.bf-tag { white-space: nowrap; }

/* Banner: bright, so it no longer blends into the dark navbar */
.bf-banner {
    background: linear-gradient(100deg, #fde047 0%, #facc15 45%, #fb923c 100%);
    color: #111827;
    border-bottom: 0;
    box-shadow: 0 6px 20px rgba(11, 18, 32, .12);
}
.bf-tag { background: #111827; color: #facc15; }
.bf-title { color: #111827; }
.bf-sub { color: rgba(17, 24, 39, .75); }
.bf-voucher {
    background: #111827;
    border: 1.5px dashed rgba(250, 204, 21, .8);
}
.bf-voucher-label { color: #fde68a; }
.bf-voucher code { color: #fff; }
.bf-copy-btn { background: #facc15; color: #111827; }

/* Let the price row wrap on narrow screens (badge no longer overflows the card) */
.plan-header > div[style*="display:flex"] { flex-wrap: wrap; row-gap: 8px; }
@media (max-width: 560px) {
    .plan-price, .plan--highlight .plan-price { font-size: 2.25rem; }
}

/* ---------- Round 3: trust, plans, stats, hero, contrast ---------- */
.mbg-only { display: none; }
body.mbg-on .mbg-only { display: revert; }

/* Hero browsers */
.hero p { max-width: 640px; margin: 0 auto; }
.hero-browsers {
    list-style: none; padding: 0; margin: 20px 0 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.hero-browsers li {
    font-size: .8125rem; font-weight: 600; color: var(--ink-2);
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 5px 12px;
}

/* Compare link under Yearly list */
.plan-compare { margin: -6px 0 12px; font-size: .875rem; }
.plan-compare a { color: var(--brand); font-weight: 600; }
.plan-compare a:hover { text-decoration: underline; }

/* Trust row */
.trust-row {
    list-style: none; padding: 0; margin: 0 auto 32px; max-width: 980px;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.trust-row li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: .875rem; color: var(--ink-2); line-height: 1.45;
}
.trust-row b { display: block; color: var(--ink); font-size: .9375rem; }
.trust-ico {
    flex: 0 0 34px; height: 34px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #e8efff; color: var(--brand); font-weight: 700; font-size: 1rem;
}
body:not(.mbg-on) .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Brand logos right under pricing */
#branding.branding-near-pricing {
    max-width: 980px; margin: 0 auto; padding: 24px;
    background: transparent; border: 0; box-shadow: none;
}

/* Stats: big rating, small review count */
.stat-star { color: #f59e0b; }
.stat-value-sub {
    display: block; font-size: .875rem; font-weight: 500; letter-spacing: 0;
    color: var(--ink-2); margin-top: 2px;
}

/* Contrast fixes (WCAG AA on light backgrounds) */
main p { color: #4b5565; }
.plan-label { color: #5b6676; }
.plan-footer-text, .plan--highlight .plan-footer-text { color: #5b6676; }
.plan--dark .plan-label, .plan--dark .plan-period,
.plan--dark .plan-desc, .plan--dark .plan-footer-text { color: #a8b3c4; }
.price-old { color: #6b7280; }
.plan--dark .price-old { color: #a8b3c4; }
.divReviewText, .spanTimestamp { color: #374151; }
.cta-note { color: #eff6ff; }
.testimonial-role { color: #5b6676; }

@media (max-width: 900px) {
    .trust-row, body:not(.mbg-on) .trust-row { grid-template-columns: 1fr; max-width: 520px; }
}
body.mbg-on .trust-row li.mbg-only { display: flex; }

/* Trust row: quiet monochrome line icons */
.trust-ico {
    flex: 0 0 auto; width: auto; height: auto;
    background: none; border-radius: 0;
    color: var(--ink-2); margin-top: 2px;
}
.trust-row li { gap: 10px; }

/* Stats: rating card */
.stat-rating { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 4px; }
.stat-rating-num { font-size: 1.5rem; line-height: 1.2; }
.stat-rating-of { font-size: .9375rem; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.stat-rating-stars {
    font-size: 1.125rem;
    letter-spacing: 2px;
    line-height: 1;
    background: linear-gradient(90deg, #f59e0b calc(var(--rating) / 5 * 100%), #e5e7eb 0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-rating .stat-value-sub { flex-basis: 100%; margin-top: 0; }

/* ---------- Discount-applied banner (non–Black Friday codes) ---------- */
.code-banner {
    position: relative;
    z-index: 3;
    background: linear-gradient(100deg, #059669, #10b981);
    color: #fff;
    box-shadow: 0 6px 20px rgba(5, 150, 105, .28);
}
.code-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.code-pct {
    flex: 0 0 auto;
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #065f46;
    background: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.code-text { display: flex; flex-direction: column; line-height: 1.4; }
.code-text strong { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.code-sub { font-size: .9375rem; color: #d1fae5; }
.code-sub code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #065f46;
    background: #fff;
    border-radius: 6px;
    padding: 1px 7px;
}
@media (max-width: 640px) {
    .code-inner { justify-content: flex-start; }
}

/* Branding logos: scale down with the container instead of scrolling */
#branding .container,
#branding .row { max-width: 100%; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
#branding .col-auto {
    flex: 0 1 auto;
    max-width: 100%;
    overflow: visible !important;
    padding-left: 0;
    padding-right: 0;
}
#branding img { display: block; max-width: 100%; height: auto; }
@media (max-width: 640px) {
    #branding { padding: 20px 16px; }
}

/* Compact feature lists in the pricing cards */
.plan-list,
.plan--highlight .plan-list {
    font-size: .875rem;
    line-height: 1.35;
    margin: 8px 0 12px;
}
.plan-list li { margin-bottom: 3px; }
.plan-list li::before {
    flex-basis: 16px;
    height: 16px;
    margin: 1px 10px 0 0;
}

.bf-nav {
    display: none !important;
}

/* Two-column pricing: align header / list / footer rows across both cards,
   so the buy buttons stay level even when one footer note wraps */
@media (min-width: 901px) {
    @supports (grid-template-rows: subgrid) {
        .pricing-grid { grid-auto-rows: auto; }
        .plan {
            display: grid;
            grid-row: span 3;
            grid-template-rows: subgrid;
            grid-template-columns: minmax(0, 1fr);  /* full card width */
            justify-content: stretch;
            row-gap: 0;
        }
        .plan > footer { margin-top: 0; align-self: start; }
        .plan-header { min-height: 0; }
    }
}

/* 901-1100px: keep the price row (old price, price, badge) on one line */
@media (min-width: 901px) and (max-width: 1100px) {
    .plan { padding-left: 28px; padding-right: 28px; }
    .plan--highlight::before { left: 28px; }
    .plan-price, .plan--highlight .plan-price { font-size: 2.125rem; }
    .price-old { font-size: 1rem; margin-right: 6px; }
    .plan-header > div[style*="display:flex"] { gap: 10px !important; }
    .plan-badge { padding: 4px 10px; font-size: .75rem; }
}
