/*
 * Homepage visual refresh based on the supplied v4 prototype.
 * Every rule is scoped to .ba-home-v4 so the site header, footer, account,
 * checkout and members area keep their existing design and behaviour.
 */

.ba-home-v4 {
    --home-navy: #0f1b2d;
    --home-navy-soft: #17273d;
    --home-gold: #d4a853;
    --home-gold-hover: #c89a42;
    --home-ink: #0b1b30;
    --home-copy: #5c6878;
    --home-line: #e5e9ee;
    --home-soft: #f7f8fa;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #fff;
    color: var(--home-ink);
}

.ba-home-v4 > .hero { order: 1; }
.ba-home-v4 > .home-stats-section { order: 2; }
.ba-home-v4 > .news-section { order: 3; }
.ba-home-v4 > .section-darker { order: 4; }
.ba-home-v4 > .pricing-section { order: 5; }
.ba-home-v4 > .trust-section { order: 6; }
.ba-home-v4 > .testimonials-section { order: 7; }
.ba-home-v4 > .newsletter-section { order: 8; }

.ba-home-v4 .container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
    padding-inline: 0;
}

.ba-home-v4 .hero {
    position: relative;
    display: flex;
    min-height: 590px;
    align-items: center;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #091423 0%, #0f1b2d 52%, #13263e 100%);
}

.ba-home-v4 .hero::before {
    display: none;
}

.ba-home-v4 .hero .container {
    position: relative;
    z-index: 1;
}

.ba-home-v4 .hero-content {
    width: 100%;
    max-width: 920px;
    min-width: 0;
    margin-inline: auto;
    padding: 92px 0 98px;
    text-align: center;
}

.ba-home-v4 .hero-badge {
    display: inline-flex;
    align-items: center;
    width: auto;
    margin: 0 auto 24px;
    padding: 7px 13px;
    border: 1px solid rgba(212,168,83,.32);
    border-radius: 999px;
    background: rgba(212,168,83,.12);
    color: var(--home-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: none;
}

.ba-home-v4 .hero h1 {
    max-width: 860px;
    margin: 0 auto;
    color: #fff;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(44px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.08;
    overflow-wrap: break-word;
}

.ba-home-v4 .hero h1 .highlight { color: var(--home-gold); }

.ba-home-v4 .hero-content > p {
    max-width: 740px;
    margin: 24px auto 0;
    color: #cbd3de;
    font-size: clamp(17px, 1.55vw, 20px);
    line-height: 1.65;
}

.ba-home-v4 .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 32px;
}

.ba-home-v4 .btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    box-shadow: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.ba-home-v4 .btn:hover { transform: translateY(-1px); }
.ba-home-v4 .btn-primary { background: var(--home-gold); color: var(--home-navy); }
.ba-home-v4 .btn-primary:hover { background: var(--home-gold-hover); color: var(--home-navy); }
.ba-home-v4 .hero .btn-outline { border-color: rgba(255,255,255,.3); background: transparent; color: #fff; }
.ba-home-v4 .hero .btn-outline:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.07); color: #fff; }

.ba-home-v4 .home-stats-section {
    padding: 26px 0;
    border-bottom: 1px solid var(--home-line);
    background: #fff;
}

.ba-home-v4 .home-stats-section .hero-stats {
    display: grid;
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    align-items: stretch;
}

.ba-home-v4 .home-stats-section .hero-stat {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}
.ba-home-v4 .home-stats-section .hero-stat .number {
    color: var(--home-navy);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 29px;
    font-weight: 700;
    line-height: 1;
}

.ba-home-v4 .home-stats-section .hero-stat .label {
    margin-top: 7px;
    color: #778294;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.ba-home-v4 .news-section,
.ba-home-v4 .pricing-section,
.ba-home-v4 .newsletter-section {
    padding: 78px 0;
    background: #fff;
}

.ba-home-v4 .section-darker,
.ba-home-v4 .testimonials-section {
    padding: 78px 0;
    background: var(--home-soft);
}

.ba-home-v4 .section-header {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.ba-home-v4 .news-section .section-header {
    max-width: none;
    margin-bottom: 34px;
    text-align: left;
}

.ba-home-v4 .overline {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--home-gold-hover);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.ba-home-v4 .section-header h2 {
    margin: 0;
    color: var(--home-navy);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(29px, 3.5vw, 40px);
    letter-spacing: -.03em;
    line-height: 1.18;
}

.ba-home-v4 .section-header p {
    margin: 10px 0 0;
    color: var(--home-copy);
    font-size: 15px;
    line-height: 1.65;
}

.ba-home-v4 .news-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, .95fr);
    gap: 30px;
    align-items: start;
}

.ba-home-v4 .news-layout > *,
.ba-home-v4 .news-grid > *,
.ba-home-v4 .features-grid > *,
.ba-home-v4 .pricing-grid > *,
.ba-home-v4 .testimonials-grid > * { min-width: 0; }

.ba-home-v4 .news-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15,27,45,.07);
}

.ba-home-v4 .news-card-image {
    display: grid;
    height: 150px;
    place-items: center;
    color: rgba(212,168,83,.82);
}

.ba-home-v4 .news-card-image .placeholder-icon {
    font-size: 43px;
    opacity: .78;
}

.ba-home-v4 .news-card-body { padding: 20px; }
.ba-home-v4 .news-card-source { color: var(--home-gold-hover); font-size: 11px; font-weight: 700; }
.ba-home-v4 .news-card-title { margin-top: 8px; color: var(--home-navy); font-size: 16px; font-weight: 700; line-height: 1.4; }
.ba-home-v4 .news-card-excerpt { margin-top: 9px; color: var(--home-copy); font-size: 13px; line-height: 1.58; }
.ba-home-v4 .news-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; color: #8993a2; font-size: 11px; }
.ba-home-v4 .news-card-category { color: var(--home-gold-hover); font-weight: 700; }
.ba-home-v4 .paywall-badge {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    padding: 5px 8px;
    border: 1px solid rgba(212,168,83,.45);
    border-radius: 4px;
    background: rgba(15,27,45,.88);
    color: var(--home-gold);
    font-size: 10px;
    font-weight: 700;
}

.ba-home-v4 .news-card.featured { min-height: 390px; border: 0; }
.ba-home-v4 .news-card.featured .news-card-image { position: absolute; inset: 0; height: auto; }
.ba-home-v4 .news-card.featured .news-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,13,25,.96) 0, rgba(5,13,25,.64) 42%, rgba(5,13,25,.06) 78%);
}
.ba-home-v4 .news-card.featured .placeholder-icon { position: relative; z-index: 1; font-size: 72px; opacity: .36; }
.ba-home-v4 .news-card.featured .news-card-body { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 28px; }
.ba-home-v4 .news-card.featured .news-card-title { color: #fff; font-size: clamp(20px, 2.4vw, 27px); }
.ba-home-v4 .news-card.featured .news-card-excerpt { max-width: 720px; color: #d4dae3; }
.ba-home-v4 .news-card.featured .news-card-meta { color: #aab4c1; }

.ba-home-v4 .news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ba-home-v4 .news-sidebar {
    padding: 22px;
    border: 1px solid var(--home-line);
    border-radius: 11px;
    background: var(--home-soft);
}

.ba-home-v4 .news-sidebar h3 { margin: 0 0 5px; color: var(--home-navy); font-size: 16px; }
.ba-home-v4 .sidebar-item { padding: 15px 0; border-bottom: 1px solid #dfe4ea; }
.ba-home-v4 .sidebar-item:last-child { border-bottom: 0; }
.ba-home-v4 .sidebar-item .source { color: var(--home-gold-hover); font-size: 10px; font-weight: 700; }
.ba-home-v4 .sidebar-item .title { margin-top: 5px; color: var(--home-navy); font-size: 13px; font-weight: 650; line-height: 1.42; }
.ba-home-v4 .sidebar-item .time { margin-top: 4px; color: #929baa; font-size: 10px; }

.ba-home-v4 .news-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 26px;
    padding: 20px 22px;
    border: 1px solid var(--home-line);
    border-radius: 9px;
    background: var(--home-soft);
}
.ba-home-v4 .news-cta p { margin: 0; color: var(--home-copy); font-size: 13px; line-height: 1.55; }
.ba-home-v4 .news-cta strong { color: var(--home-navy); }

.ba-home-v4 .features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ba-home-v4 .feature-card {
    min-height: 220px;
    padding: 25px;
    border: 1px solid var(--home-line);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15,27,45,.045);
}
.ba-home-v4 .feature-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 8px;
    background: var(--home-navy);
    color: var(--home-gold);
    font-size: 22px;
}
.ba-home-v4 .feature-card h4 { margin: 0; color: var(--home-navy); font-size: 17px; }
.ba-home-v4 .feature-card p { margin: 10px 0 0; color: var(--home-copy); font-size: 13px; line-height: 1.62; }

.ba-home-v4 .pricing-grid {
    display: grid;
    max-width: 1030px;
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.ba-home-v4 .pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 27px;
    border: 2px solid var(--home-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(15,27,45,.055);
    color: var(--home-ink);
}
.ba-home-v4 .pricing-card.popular {
    border-color: var(--home-gold);
    background: var(--home-navy);
    box-shadow: 0 12px 30px rgba(15,27,45,.16);
    color: #fff;
    transform: translateY(-6px);
}
.ba-home-v4 .pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    padding: 5px 15px;
    border-radius: 999px;
    background: var(--home-gold);
    color: var(--home-navy);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    transform: translateX(-50%);
}
.ba-home-v4 .pricing-card h3 { margin: 0; color: var(--home-navy); font-size: 20px; }
.ba-home-v4 .pricing-card.popular h3 { color: #fff; }
.ba-home-v4 .pricing-price { display: flex; flex-wrap: wrap; align-items: flex-end; margin-top: 18px; color: var(--home-navy); }
.ba-home-v4 .pricing-price .currency { margin: 0 2px 8px 0; font-size: 16px; }
.ba-home-v4 .pricing-price .amount { font-family: "Space Grotesk", sans-serif; font-size: 42px; font-weight: 700; line-height: 1; }
.ba-home-v4 .pricing-price .period { margin: 0 0 6px 5px; color: #7c8796; font-size: 12px; }
.ba-home-v4 .pricing-price .monthly { width: 100%; margin-top: 8px; color: #7c8796; font-size: 11px; }
.ba-home-v4 .pricing-card:not(.popular) .pricing-price,
.ba-home-v4 .pricing-card:not(.popular) .pricing-price .amount { color: var(--home-navy); }
.ba-home-v4 .pricing-card:not(.popular) .pricing-price .currency { color: #a77b25; }
.ba-home-v4 .pricing-card:not(.popular) .pricing-price .period,
.ba-home-v4 .pricing-card:not(.popular) .pricing-price .monthly { color: #7c8796; }
.ba-home-v4 .pricing-card.popular .pricing-price,
.ba-home-v4 .pricing-card.popular .pricing-price .amount { color: var(--home-gold); }
.ba-home-v4 .pricing-card.popular .pricing-price .period,
.ba-home-v4 .pricing-card.popular .pricing-price .monthly { color: #9da9b9; }
.ba-home-v4 .pricing-desc { min-height: 44px; margin: 17px 0 0; color: var(--home-copy); font-size: 13px; line-height: 1.55; }
.ba-home-v4 .pricing-card.popular .pricing-desc { color: #bbc5d1; }
.ba-home-v4 .pricing-features { flex: 1; margin: 22px 0 25px; padding: 0; list-style: none; }
.ba-home-v4 .pricing-features li { display: flex; gap: 9px; margin: 11px 0; color: #5c6878; font-size: 12px; line-height: 1.45; }
.ba-home-v4 .pricing-card.popular .pricing-features li { color: #d5dbe3; }
.ba-home-v4 .pricing-features .check { color: #28a86b; font-weight: 800; }
.ba-home-v4 .pricing-card.popular .pricing-features .check { color: var(--home-gold); }
.ba-home-v4 .pricing-card > .btn { width: 100%; }
.ba-home-v4 .pricing-card:not(.popular) > .btn { border-color: var(--home-navy); background: var(--home-navy); color: #fff; }
.ba-home-v4 .pricing-card:not(.popular) > .btn:hover { background: var(--home-navy-soft); color: #fff; }
.ba-home-v4 .pricing-footer { margin-top: 30px; text-align: center; }
.ba-home-v4 .pricing-footer a { color: var(--home-gold-hover); font-size: 13px; font-weight: 700; }

.ba-home-v4 .trust-section {
    padding: 62px 0;
    border: 0;
    background: var(--home-navy);
}
.ba-home-v4 .trust-grid {
    display: grid;
    max-width: 920px;
    margin: 0 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.ba-home-v4 .trust-badge { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ba-home-v4 .trust-badge-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid rgba(212,168,83,.28);
    border-radius: 50%;
    background: rgba(212,168,83,.09);
    font-size: 20px;
}
.ba-home-v4 .trust-badge-text { color: #f2f5f8; font-size: 12px; font-weight: 650; line-height: 1.45; }

.ba-home-v4 .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.ba-home-v4 .testimonial-card {
    padding: 25px;
    border: 1px solid var(--home-line);
    border-radius: 11px;
    background: #fff;
}
.ba-home-v4 .testimonial-stars { color: var(--home-gold); letter-spacing: .08em; }
.ba-home-v4 .testimonial-text { margin: 16px 0 20px; color: var(--home-copy); font-size: 13px; font-style: normal; line-height: 1.7; }
.ba-home-v4 .testimonial-author { display: flex; align-items: center; gap: 12px; }
.ba-home-v4 .testimonial-avatar { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 50%; background: var(--home-navy); color: var(--home-gold); font-size: 11px; font-weight: 800; }
.ba-home-v4 .testimonial-info .name { color: var(--home-navy); font-size: 12px; font-weight: 700; }
.ba-home-v4 .testimonial-info .role { margin-top: 2px; color: #8b95a3; font-size: 10px; }

.ba-home-v4 .newsletter-section { padding-top: 68px; padding-bottom: 78px; }
.ba-home-v4 .newsletter-inner {
    max-width: 940px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid #263a55;
    border-radius: 12px;
    background: var(--home-navy);
    text-align: center;
}
.ba-home-v4 .newsletter-inner h3 { margin: 0; color: #fff; font-size: 25px; }
.ba-home-v4 .newsletter-inner p { margin: 9px auto 22px; color: #aeb9c7; font-size: 13px; }
.ba-home-v4 .newsletter-form { display: flex; max-width: 540px; margin: 0 auto; gap: 9px; }
.ba-home-v4 .newsletter-form input {
    min-width: 0;
    flex: 1;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    background: rgba(255,255,255,.07);
    color: #fff;
    font: inherit;
    font-size: 13px;
}
.ba-home-v4 .newsletter-form input::placeholder { color: #8390a2; }
.ba-home-v4 .newsletter-form input:focus { border-color: var(--home-gold); outline: 0; }
.ba-home-v4 .newsletter-form button {
    min-height: 46px;
    padding: 10px 20px;
    border: 0;
    border-radius: 6px;
    background: var(--home-gold);
    color: var(--home-navy);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}
.ba-home-v4 .newsletter-form button:hover { background: var(--home-gold-hover); }

.ba-home-v4 a:focus-visible,
.ba-home-v4 button:focus-visible,
.ba-home-v4 input:focus-visible {
    outline: 2px solid var(--home-gold);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .ba-home-v4 .hero { min-height: 570px; }
    .ba-home-v4 .hero::before { right: -10%; width: 52%; opacity: .3; }
    .ba-home-v4 .hero-content { max-width: 590px; }
    .ba-home-v4 .news-layout { grid-template-columns: minmax(0, 1.65fr) minmax(260px, .9fr); gap: 22px; }
    .ba-home-v4 .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .ba-home-v4 .container { width: min(calc(100% - 30px), 720px); }
    .ba-home-v4 .hero { min-height: auto; }
    .ba-home-v4 .hero::before { right: -20%; width: 70%; opacity: .18; }
    .ba-home-v4 .hero-content { max-width: 620px; padding: 76px 0 80px; }
    .ba-home-v4 .news-section,
    .ba-home-v4 .pricing-section,
    .ba-home-v4 .newsletter-section,
    .ba-home-v4 .section-darker,
    .ba-home-v4 .testimonials-section { padding: 62px 0; }
    .ba-home-v4 .news-layout { grid-template-columns: 1fr; }
    .ba-home-v4 .news-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
    .ba-home-v4 .news-sidebar h3 { grid-column: 1 / -1; }
    .ba-home-v4 .pricing-grid { grid-template-columns: 1fr; max-width: 540px; gap: 24px; }
    .ba-home-v4 .pricing-card.popular { transform: none; }
    .ba-home-v4 .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
    .ba-home-v4 .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .ba-home-v4 .container { width: min(calc(100% - 24px), 520px); }
    .ba-home-v4 .hero::before { display: none; }
    .ba-home-v4 .hero-content { padding: 58px 0 62px; }
    .ba-home-v4 .hero h1 { font-size: clamp(34px, 10.5vw, 44px); }
    .ba-home-v4 .hero-content > p { font-size: 16px; }
    .ba-home-v4 .hero-actions { align-items: stretch; flex-direction: column; }
    .ba-home-v4 .hero-actions .btn { width: 100%; }
    .ba-home-v4 .home-stats-section .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
    .ba-home-v4 .home-stats-section .hero-stat .number { font-size: 25px; }
    .ba-home-v4 .news-section,
    .ba-home-v4 .pricing-section,
    .ba-home-v4 .newsletter-section,
    .ba-home-v4 .section-darker,
    .ba-home-v4 .testimonials-section { padding: 48px 0; }
    .ba-home-v4 .section-header { margin-bottom: 30px; }
    .ba-home-v4 .news-card.featured { min-height: 420px; }
    .ba-home-v4 .news-card.featured .news-card-body { padding: 22px; }
    .ba-home-v4 .news-grid { grid-template-columns: 1fr; }
    .ba-home-v4 .news-sidebar { display: block; }
    .ba-home-v4 .news-cta { align-items: stretch; flex-direction: column; }
    .ba-home-v4 .news-cta .btn { width: 100%; }
    .ba-home-v4 .features-grid { grid-template-columns: 1fr; }
    .ba-home-v4 .feature-card { min-height: 0; }
    .ba-home-v4 .trust-section { padding: 48px 0; }
    .ba-home-v4 .trust-grid { gap: 28px 14px; }
    .ba-home-v4 .newsletter-inner { padding: 30px 18px; }
    .ba-home-v4 .newsletter-form { flex-direction: column; }
    .ba-home-v4 .newsletter-form button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .ba-home-v4 .btn { transition: none; }
}
