:root {
    --primary:#2e3f58;
    --accent:#05aaac;
    --light:#f2f7f9;
}

/* Base */
* { box-sizing:border-box; font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial; }
body { margin:0; color:var(--primary); background:#fff; overflow-x: hidden; }
a { text-decoration:none; color:inherit; }

/* Layout */
.container { max-width:1200px; margin:0 auto; padding:0 24px; }

/* Top bar */
.top-bar {
    background:var(--primary);
    color:#fff;
    font-size:13px;
    position: sticky;
    top: 0;              /* 🔥 REQUIRED */
    z-index: 1001;       /* 🔥 REQUIRED */
}
.top-bar .container {
    display:flex;
    justify-content:space-between;
    padding:8px 0;
}

/* Header */
.main-header {
    background:#fff;
    border-bottom:1px solid #eef2f7;
    position: sticky;
    top: 32px;           /* 🔥 height of top-bar */
    z-index: 1000;
}
.header-inner {
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:96px;
    padding-top:6px;
}
.logo img { height:156px; }

.main-nav {
    display:flex;
    align-items:center;
    gap:24px;
}
.main-nav a { font-weight:600; }

.btn-primary {
    background:var(--accent);
    color:#fff;
    padding:14px 28px;
    border-radius:8px;
    font-weight:600;
}

/* Hero */
/* .hero {
    position:relative;
    padding:90px 0 100px;
    background:
        linear-gradient(135deg, rgba(46, 63, 88, 0.18), rgba(46, 63, 88, 0.45)),
        url('/assets2/img/BallianteOneBanner.png');
    background-size:cover;
    background-position:center;
    color:#fff;
}
*/
.hero-inner {
    max-width:820px;
}

.hero h1 {
    font-size:40px;
    margin-bottom:20px;
}

.hero p {
    font-size:18px;
    margin-bottom:40px;
    color:#ffffff;
}

.hero-actions {
    display:flex;
    gap:24px;
    align-items:center;
    margin-top:10px;
}

.hero-link {
    color:#bfeff0;
    font-weight:600;
    text-decoration:underline;
}

/* Features */
.features {
    padding: 90px 0 30px;
    position: relative;
    overflow: hidden;
}
.feature p,
.who-for-card p {
    font-size: 15px;
    line-height: 1.6;
}

.who-for-card strong {
    display: block;
    margin-bottom: 8px; /* tighten heading-to-text gap */
}

.who-for-card h4 {
    margin-bottom: 10px;
}

.who-for-card p {
    margin: 0;
    line-height: 1.6;
}


.who-for-card {
    background: #fff;
    padding: 30px;               /* ← THIS is the missing piece */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}


/* Gradient belongs here */
.features.premium-features {
    background: linear-gradient(
        180deg,
        #f7fafc 0%,
        #ffffff 100%
    );
    position: relative;
    isolation: isolate;
}

/* Balliante B watermark */
.features.premium-features::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -160px;
    width: 520px;
    height: 520px;
    background-image: url('/assets/img/balliante-b-icon-features.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.04;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

/* Content above watermark */
.features .container {
    position: relative;
    z-index: 2;
}

/* Ensure feature content stays above watermark */
.features .container {
    position: relative;
    z-index: 1;
}
.features h2 {
    text-align:center;
    font-size:34px;
    margin-bottom:60px;
}
.feature-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:40px;
}
.feature {
    background:#fff;
    padding:30px;
    border-radius:16px;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
}

/* CTA */
.cta {
    background:var(--light);
    padding:110px 0;
    text-align:center;
    border-top:1px solid #e1edf2;
}
.cta h2 { font-size:36px; margin-bottom:16px; }
.cta p { font-size:18px; color:#5c6c84; margin-bottom:36px; }
.cta .btn-primary {
    font-size:16px;
    padding:16px 36px;
    box-shadow:0 12px 30px rgba(5,170,172,0.35);
}

/* Footer */
.site-footer {
    width:100%;
    background:#243a57;
    color:#ffffff;
    padding:80px 0 60px;
}

.footer-grid {
    display:grid;
    grid-template-columns:1.2fr 1fr 1fr 1fr;
    gap:50px;
}

.site-footer h4 {
    margin-bottom:14px;
}

.site-footer a,
.site-footer p {
    color:#cfd8e6;
    font-size:14px;
    display:block;
    margin-bottom:8px;
}

.footer-logo img { height:152px; }

.footer-bottom {
    width:100%;
    background:#2e3f58;
    color:#ffffff;
    font-size:13px;
}

.footer-bottom .container {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 0;
}

/* ===========================
   MOBILE FIXES (FINAL)
=========================== */
@media (max-width: 768px) {

    .top-bar .container {
        justify-content:center;
        gap:12px;
        padding:8px 16px;
        flex-wrap:wrap;
        text-align:center;
    }

    .header-inner {
        height:auto;
        padding:16px 0;
        flex-direction:column;
        gap:14px;
    }

    .logo img { height:88px; }

    .main-nav {
        flex-wrap:wrap;
        justify-content:center;
        gap:12px;
    }

    .main-nav a { font-size:14px; }

    .main-nav .btn-primary {
        padding:12px 22px;
    }

    .hero {
        padding:70px 0 80px;
    }

    .hero-inner { max-width:100%; }

    .hero h1 {
        font-size:30px;
        line-height:1.25;
        margin-bottom:16px;
    }

    .hero p {
        font-size:16px;
        line-height:1.6;
        margin-bottom:22px;
    }

    .hero-actions {
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
        margin-top:4px;
    }

    .features {
        padding:60px 20px;
    }

    .features h2 {
        font-size:26px;
        margin-bottom:36px;
    }

    .feature-grid {
        grid-template-columns:1fr;
        gap:24px;
    }
/* Integrations */
.integrations {
    background: #f6f9fc;
    padding: 70px 0 60px;
    overflow: hidden;
}

.integrations h3 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 40px;
    color: var(--primary);
}

/* Marquee */
.logo-marquee {
    position: relative;
    overflow: hidden;
}

.logo-track {
    display: flex;
    width: max-content;
    animation: scroll-logos 35s linear infinite;
}

.logo-track img {
    height: 40px;              /* uniform height */
    width: auto;               /* preserve aspect ratio */
    max-width: 120px;          /* prevents huge logos */
    object-fit: contain;       /* critical */
    margin: 0 36px;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-track img:hover {
    filter: none;
    opacity: 1;
}
.logo-item {
    height: 56px;              /* uniform vertical space */
    display: flex;
    align-items: center;
    justify-content: center;
}
/* INTEGRATION LOGOS – HARD SIZE LOCK */
.logo-marquee img {
    max-height: 40px !important;
    height: 40px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain !important;
    display: block;
}

/* Force container size */
.logo-item {
    height: 56px;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* Pause on hover (desktop) */
.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

    .site-footer {
        padding:50px 0 40px;
    }

    .footer-grid {
        grid-template-columns:1fr;
        gap:32px;
        text-align:center;
    }

    .footer-logo img {
        height:90px;
        margin:0 auto;
    }

    .footer-bottom .container {
        flex-direction:column;
        gap:8px;
        text-align:center;
    }

    .footer-bottom {
        font-size:12px;
        padding:14px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size:24px;
    }
}

.top-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
}

.top-item i {
    color: #ffffff;
    font-size: 13px;
}

/* Burger button */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ===========================
   MOBILE BURGER NAV (FIXED)
=========================== */
@media (max-width: 768px) {

    .burger {
        display: block;
    }

    .main-nav {
        display: none !important;
        flex-direction: column;
        width: 100%;
        gap: 16px;
        padding-top: 16px;
    }

    .main-nav.active {
        display: flex !important;
    }

    .main-nav a {
        font-size: 16px;
    }
}

/* Burger animation */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
@media (max-width: 768px) {
    .integrations {
        padding: 50px 0 40px;
    }

    .integrations h3 {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .logo-track img {
        height: 34px;
        margin: 0 24px;
    }
}
@media (max-width: 768px) {
    .logo-marquee img {
        height: 32px !important;
        max-height: 32px !important;
        max-width: 100px !important;
    }

    .logo-item {
        width: 110px;
        height: 44px;
    }
}

/* ===== FORCE INTEGRATION LOGO SIZE (OVERRIDES GLOBAL IMG RULES) ===== */
.logo-marquee img {
    width: auto !important;
    height: 40px !important;
    max-height: 40px !important;
    max-width: 120px !important;
    object-fit: contain !important;
    display: block !important;
    flex-shrink: 0 !important;
}
.logo-item {
    height: 56px;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* ===========================
   INTEGRATIONS SECTION
=========================== */

.integrations {
    padding: 80px 0;
    text-align: center;
}

.integrations h3 {
    font-size: 22px;
    margin-bottom: 40px;
}

/* viewport */
.logo-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
}

/* moving track */
.logo-track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    animation: marquee 40s linear infinite;
}

/* logo container */
.logo-item {
    width: 140px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* LOGO IMAGE — THIS IS THE IMPORTANT BIT */
.logo-item img {
    max-height: 64px !important;
    max-width: 120px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-item img:hover {
    filter: none;
    opacity: 1;
}

/* animation */
@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* pause on hover */
.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

/* mobile */
@media (max-width: 768px) {
    .logo-item {
        width: 120px;
        height: 50px;
    }

    .logo-item img {
        max-height: 32px !important;
        max-width: 90px !important;
    }
}
/* base logo sizing */
.logo-item img {
    max-height: 44px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* VISUAL BOOST for thin / padded logos */
.logo-small img {
    transform: scale(1.35);
}

/* prevent clipping */
.logo-item {
    overflow: visible;
}
/* Pricing */
.pricing {
    padding: 32px 0 90px;
    text-align: center;
}

.pricing h2 {
    font-size: 36px;
    margin-bottom: 10px;
}
.pricing h2 {
    margin-top: 0;
}
.pricing-sub {
    color: #5c6c84;
    margin-bottom: 40px;
}

/* Toggle */
.billing-toggle {
    display: inline-flex;
    background: #f1f4f9;
    border-radius: 999px;
    padding: 6px;
    margin-bottom: 50px;
}

.billing-toggle button {
    border: none;
    background: none;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    color: #5c6c84;
}

.billing-toggle button.active {
    background: var(--accent);
    color: #fff;
}

.billing-toggle span {
    background: #ff4d4d;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 6px;
}

/* Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Cards */
.plan {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    position: relative;
}

.plan h3 {
    margin-bottom: 14px;
}

.plan .price {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 25px;
}

.plan .price span {
    font-size: 16px;
    color: #5c6c84;
}

.plan ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.plan ul li {
    margin-bottom: 10px;
    color: #5c6c84;
}

/* Buttons */
.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

/* Featured */
.plan.featured {
    border: 2px solid var(--accent);
    transform: translateY(-10px);
}

.plan.featured .badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #2e3f58;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 999px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .plan.featured {
        transform: none;
    }
}
.premium-features {
    position: relative;
    padding: 110px 0;
    background-color: #ffffff;
    overflow: hidden;
}
/* ===== FEATURES BACKGROUND WITH BALLIANTE B ===== */
.features.premium-features {
    padding: 90px 0 30px;
    background:
        url('/assets/img/balliante-b-icon-features.png') no-repeat right -160px center,
        linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
    background-size: 520px, auto;
}
@media (max-width: 768px) {
    .features.premium-features {
        background:
            url('/assets/img/balliante-b-icon-features.pngg') no-repeat right -180px center,
            linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
        background-size: 320px, auto;
    }
}

.feature {
    background: #ffffff;
    padding: 34px;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(5,170,172,0.18);
}

.feature-icon {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 18px;
}

.feature h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature p {
    font-size: 15px;
    color: #5c6c84;
    line-height: 1.6;
}
.feature {
    background: #ffffff;
    padding: 34px;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(5,170,172,0.18);
}

.feature-icon {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 18px;
}

.feature h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature p {
    font-size: 15px;
    color: #5c6c84;
    line-height: 1.6;
}
.features h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 70px;
}

.features h2 span {
    color: var(--accent);
}
.section-divider {
    height: 1px;
    max-width: 900px;
    margin: 10px auto 16px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(46,63,88,0.15),
        transparent
    );
}
/* ===== FIX BLANK SPACE AFTER FOOTER ===== */
html, body {
    margin: 0;
    padding: 0;
}

.site-footer,
.footer-bottom {
    margin-bottom: 0;
}

.site-footer *:last-child,
.footer-bottom *:last-child {
    margin-bottom: 0;
}
/* ===== REMOVE SPACE BEFORE FOOTER (SAFE FIX) ===== */

/* Kill bottom margins on last content section */
.integrations:last-child,
.pricing:last-child,
.premium-features:last-child,
.features:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Divider should never add space before footer */
.section-divider:last-child {
    display: none;
}
/* Who is Balliante One For */
.who-for {
    padding: 90px 20px;
    background: #fbfbfb;
}

.who-for h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #2e3f58;
}

.who-for-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.who-for-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    font-size: 1.05rem;
    color: #4a5568;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
    position: relative;
}

.who-for-card::before {
    content: "✓";
    display: block;
    font-size: 1.6rem;
    color: #05aaac;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Mobile */
@media (max-width: 768px) {
    .who-for-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section */
.faq {
    padding: 90px 20px;
    background: #ffffff;
}

.faq h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #2e3f58;
}

.faq-item {
    max-width: 900px;
    margin: 0 auto 15px;
    border-radius: 14px;
    background: #fbfbfb;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.faq-question {
    width: 100%;
    padding: 22px 26px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2e3f58;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-icon {
    font-size: 1.4rem;
    color: #05aaac;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 26px;
}

.faq-answer p {
    margin: 0;
    padding-bottom: 25px;
    color: #4a5568;
    line-height: 1.7;
}

/* Active state */
.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .who-for {
        padding: 70px 20px;
    }

    .faq {
        padding: 70px 20px;
    }

    .who-for h2,
    .faq h2 {
        font-size: 1.8rem;
    }

    .who-for li {
        padding: 25px 20px;
    }
}
/* FINAL HERO OVERRIDE */
.hero {
    position:relative;
    padding:90px 0 100px;
    background:
        linear-gradient(135deg, rgba(46, 63, 88, 0.45), rgba(46, 63, 88, 0.75)),
        url('/assets2/img/BallianteOneBanner.png');
    background-size:cover;
    background-position:center;
    color:#fff;
}
/* === FORCE COMPARISON TABLE STYLES === */

.bo-compare {
  background: #f7f9fb;
  padding: 80px 20px;
}

.bo-compare-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.bo-compare-box {
  background: #ffffff !important;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  padding: 24px;
  overflow-x: auto;
}

.bo-compare-table {
  width: 100% !important;
  min-width: 720px;
  border-collapse: collapse !important;
  background: #ffffff !important;
}

.bo-compare-table th,
.bo-compare-table td {
  padding: 16px 18px !important;
  border-bottom: 1px solid #e5e9ef !important;
  text-align: left !important;
  background: transparent;
}

.bo-compare-table thead th {
  background: #2e3f58 !important;
  color: #ffffff !important;
  font-weight: 600;
}

.bo-compare-table thead th.bo-col {
  background: #05aaac !important;
}

.bo-compare-table .bo-section td {
  background: #eef2f6 !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #2e3f58;
}

.bo-compare-table td.yes {
  color: #1a9c57;
  font-weight: 600;
}

.bo-compare-table td.no {
  color: #d63638;
  font-weight: 600;
}

.bo-compare-table td.warn {
  color: #e0a800;
  font-weight: 600;
}
