/* ==========================================================================
   ZOHO WORKPLACE & GOOGLE WORKSPACE - PREMIUM SaaS DESIGN
   ========================================================================== */

   :root {
    --zw-primary: #008acf;       /* Core Bitsware Blue */
    --zw-primary-dark: #1e40af; 
    --zw-text-dark: #0f172a;     /* Slate 900 */
    --zw-text-body: #475569;     /* Slate 600 */
    --zw-bg-white: #ffffff;
    --zw-bg-gray: #f8fafc;       /* Slate 50 */
    --zw-border: #e2e8f0;        /* Slate 200 */
    
    /* Zoho-inspired accent colors for features */
    --zw-blue: #00A3FE;
    --zw-green: #41A846;
    --zw-red: #F0483E;
    --zw-yellow: #F1B500;
    --zw-purple: #8B5CF6;
    --zw-teal: #0D9488;

    --zw-shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --zw-shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05);
    --zw-shadow-hover: 0 20px 25px -5px rgba(37,99,235,0.1);
}

* { box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    width: 100vw;
    max-width: 100%;
}

.zw-page-wrapper {
    font-family: 'Poppins', sans-serif;
    color: var(--zw-text-body);
    line-height: 1.6;
    margin: 0 3%; /* 3% Edge Margins */
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.zw-container { margin: 0 auto; padding: 0 0px; }
.zw-section { padding: 90px 0; }
.zw-bg-gray { background-color: var(--zw-bg-gray); border-top: 1px solid var(--zw-border); border-bottom: 1px solid var(--zw-border); }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.zw-w-full { width: 100%; justify-content: center; }
.zw-text-bold { font-weight: 700; color: var(--zw-text-dark); }
.zw-text-accent { color: var(--zw-primary); }

.zw-section-header { text-align: center; max-width: 800px; margin: 0 auto 50px auto; }
.zw-section-header h2 { font-size: 2.4rem; font-weight: 800; color: var(--zw-text-dark); margin-bottom: 16px; letter-spacing: -0.5px; line-height: 1.3; }
.zw-section-header p { font-size: 1.1rem; }

/* Grids */
.zw-grid { display: grid; gap: 30px; }
.zw-grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.zw-grid-3 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

/* Buttons */
.zw-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.zw-btn-primary { background: var(--zw-primary); color: #fff !important; box-shadow: 0 4px 14px rgba(37,99,235,0.25); border: 2px solid var(--zw-primary); }
.zw-btn-primary:hover { background: var(--zw-primary-dark); border-color: var(--zw-primary-dark); transform: translateY(-2px); }
.zw-btn-outline { background: transparent; color: var(--zw-primary) !important; border: 2px solid var(--zw-primary); }
.zw-btn-outline:hover { background: var(--zw-primary); color: #fff !important; }
.zw-btn-dark { background: var(--zw-text-dark); color: #fff !important; border: 2px solid var(--zw-text-dark); }
.zw-btn-dark:hover { background: #000; }

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.zw-hero {
    padding: 80px 0 60px;
    background: radial-gradient(circle at top right, #eff6ff 0%, #ffffff 100%);
    position: relative;
}

.zw-hero-layout { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.zw-hero-content { flex: 1.2; }
.zw-hero-visual { flex: 1; text-align: center; }
.zw-hero-visual img { width: 100%; max-width: 550px; border-radius: 16px; box-shadow: var(--zw-shadow-md); }

.zw-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--zw-text-dark);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid var(--zw-border);
    box-shadow: var(--zw-shadow-sm);
}

.zw-badge i { color: var(--zw-blue); }

.zw-badge-icon {
    width: 28px;
    height: auto;
    object-fit: contain;
}

.zw-hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; color: var(--zw-text-dark); letter-spacing: -1px; }
.zw-description { font-size: 1.15rem; margin-bottom: 35px; max-width: 90%; }
.zw-hero-actions { display: flex; gap: 16px; }

/* ==========================================================================
   2. FEATURES & SOVEREIGNTY BANNER
   ========================================================================== */
.zw-feature-card {
    background: #fff;
    padding: 35px 30px;
    border-radius: 16px;
    border: 1px solid var(--zw-border);
    transition: all 0.3s ease;
    box-shadow: var(--zw-shadow-sm);
}

.zw-feature-card:hover { transform: translateY(-5px); box-shadow: var(--zw-shadow-hover); border-color: rgba(37,99,235,0.3); }

.zw-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: transparent;
}

.zw-custom-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

.zw-inline-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 10px;
}

.zw-section-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

/* Feature Colors - kept for optional use */
.bg-blue-light { background: rgba(0, 163, 254, 0.1); color: var(--zw-blue); }
.bg-green-light { background: rgba(65, 168, 70, 0.1); color: var(--zw-green); }
.bg-yellow-light { background: rgba(241, 181, 0, 0.1); color: var(--zw-yellow); }
.bg-purple-light { background: rgba(139, 92, 246, 0.1); color: var(--zw-purple); }
.bg-red-light { background: rgba(240, 72, 62, 0.1); color: var(--zw-red); }
.bg-teal-light { background: rgba(13, 148, 136, 0.1); color: var(--zw-teal); }

.zw-feature-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--zw-text-dark); margin-bottom: 12px; }

.zw-sovereignty-banner {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    border: 1px solid var(--zw-border);
    box-shadow: var(--zw-shadow-sm);
}

.zw-sovereignty-content { flex: 1.5; }
.zw-sovereignty-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--zw-text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.zw-sovereignty-content h3 i { color: var(--zw-red); }
.zw-sovereignty-visual { flex: 1; text-align: right; }
.zw-sovereignty-visual img { max-width: 250px; }

/* ==========================================================================
   3. AI BANNER
   ========================================================================== */
.zw-ai-banner {
    position: relative;
    padding: 0 !important;
    margin: 40px 0 40px;
    overflow: hidden;
    border-radius: 16px;
    line-height: 0;
}

.zw-ai-banner-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 16px;
}

/* ==========================================================================
   4. INTERACTIVE PRICING SECTION (Google Workspace theme)
   ========================================================================== */
#pricing.zw-section {
    background: #ffffff;
    padding: 4.375rem 0;
}

#pricing .zw-section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #3AB2EA, #2B3D91);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#pricing .zw-section-header p {
    color: #505050;
    font-size: 1rem;
}

.zw-pricing-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    background: rgb(0 0 0 / 14%);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Billing toggle — pill style like Google Workspace */
.zw-billing-toggle {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    padding: 0.4rem;
    border-radius: 50px;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.zw-billing-toggle span {
    padding: 0.6rem 1.75rem;
    border-radius: 50px;
    cursor: pointer;
    color: #505050;
    transition: all 0.3s ease;
}

.zw-billing-toggle span.active {
    background: #008ACF;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 138, 207, 0.3);
}

.zw-switch { display: none; }

.zw-discount-badge {
    background: #E6F4EA;
    color: #1E8E3E;
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-left: 5px;
    font-weight: 700;
}

.zw-billing-toggle span.active .zw-discount-badge {
    background: #ffffff;
    color: #008ACF;
}

/* User counter */
.zw-user-counter {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: #2B3D91;
}

.zw-counter-widget {
    display: flex;
    align-items: center;
    border: 1.5px solid #008ACF;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.zw-counter-widget button {
    background: #008ACF;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
    color: #ffffff;
    transition: 0.2s;
}

.zw-counter-widget button:hover {
    background: #0070a8;
}

.zw-counter-widget input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    outline: none;
    background: #fff;
    color: #2B3D91;
}

.zw-counter-widget input::-webkit-outer-spin-button,
.zw-counter-widget input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Pricing Grid */
.zw-pricing-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.zw-pricing-card {
    background: #FFFFFF;
    border: 0.125rem solid rgba(196, 196, 196, 0.75);
    border-radius: 1rem;
    padding: 1.5rem 1.125rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 34.375rem;
}

.zw-pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(43, 61, 145, 0.15);
}

.zw-popular {
    background: linear-gradient(180deg, #2BABE1 0%, #879FF3 100%);
    border: 3px solid #008ACF;
    transform: none;
    box-shadow: none;
}

.zw-popular:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(43, 61, 145, 0.2);
}

.zw-popular-badge {
    display: none;
}

.zw-pricing-card h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #008ACF;
    margin-bottom: 1rem;
}

.zw-popular h3 {
    color: #FFFFFF;
}

.zw-price-block {
    background: #008ACF;
    color: #FFFFFF;
    width: calc(100% + 2.25rem);
    margin-left: -1.125rem;
    min-height: 2.8125rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    border-top: none;
    padding-top: 0.75rem;
}

.zw-popular .zw-price-block {
    background: #FFFFFF;
    color: #008ACF;
}

.zw-price-block::before {
    content: "Price";
    font-weight: 400;
    font-size: 1.125rem;
}

.zw-enterprise .zw-price-block::before {
    content: none;
}

.zw-enterprise .zw-price-block {
    justify-content: center;
}

.zw-currency,
.zw-duration {
    display: none;
}

.zw-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: inherit;
    line-height: 1;
    transition: opacity 0.15s ease;
}

.zw-amount-custom {
    font-size: 1.125rem;
    font-weight: 700;
    color: inherit;
    width: 100%;
    text-align: center;
}

.zw-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
    border-top: none;
    padding-top: 0;
}

.zw-pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    margin-bottom: 1.125rem;
    color: #000000;
}

.zw-pricing-features li i {
    display: none;
}

.zw-pricing-features li::before {
    content: "✓";
    min-width: 22px;
    height: 22px;
    background: #97DCFF;
    color: #008ACF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0;
}

.zw-popular .zw-pricing-features li {
    color: #FFFFFF;
}

.zw-popular .zw-pricing-features li::before {
    background: #FFFFFF;
    color: #008ACF;
}

.zw-pricing-features li.zw-text-muted {
    color: #505050;
}

.zw-popular .zw-pricing-features li.zw-text-muted {
    color: rgba(255, 255, 255, 0.9);
}

.zw-pricing-card .zw-btn {
    align-self: center;
    width: 8.75rem;
    height: 2.625rem;
    padding: 0.625rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    margin-top: auto;
    justify-content: center;
}

.zw-pricing-card .zw-btn-outline,
.zw-pricing-card .zw-btn-dark {
    border: 1.5px solid #2655A5;
    background: #FFFFFF;
    color: #2655A5 !important;
}

.zw-pricing-card .zw-btn-outline:hover,
.zw-pricing-card .zw-btn-dark:hover {
    background: linear-gradient(90deg, #2BACE2 0%, #2A3C90 100%);
    color: #ffffff !important;
    border-color: transparent;
}

.zw-popular .zw-btn-primary {
    border: 1.5px solid #FFFFFF;
    background: #FFFFFF;
    color: #2655A5 !important;
    box-shadow: none;
}

.zw-popular .zw-btn-primary:hover {
    background: linear-gradient(90deg, #2BACE2 0%, #2A3C90 100%);
    color: #ffffff !important;
    border-color: transparent;
}

#pricing .zw-text-bold {
    color: #505050;
    font-weight: 400;
}

/* ==========================================================================
   5. SECURITY TRUST BANNER
   ========================================================================== */
.zw-security-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.zw-security-item {
    background: #fff; padding: 30px 20px; border-radius: 12px; border: 1px solid var(--zw-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.zw-security-item .zw-section-icon {
    margin: 0 auto;
}

.zw-security-item span { display: block; font-weight: 600; color: var(--zw-text-dark); font-size: 1rem; }

/* ==========================================================================
   6. PARTNER BENEFITS
   ========================================================================== */
.zw-partner-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
.zw-partner-card { display: flex; gap: 20px; background: #fff; padding: 30px; border-radius: 16px; border: 1px solid var(--zw-border); }
.zw-partner-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 138, 207, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.zw-partner-icon .zw-section-icon {
    width: 40px;
    height: 40px;
}
.zw-partner-card h4 { font-size: 1.25rem; font-weight: 700; color: var(--zw-text-dark); margin-bottom: 10px; }
.zw-col-span-full { grid-column: 1 / -1; max-width: 800px; margin: 0 auto; }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (EXACT FIT)
   ========================================================================== */
@media (max-width: 1200px) {
    .zw-pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .zw-popular { transform: none; }
    .zw-popular:hover { transform: translateY(-5px); }
    .zw-security-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .zw-hero-layout { flex-direction: column; text-align: center; }
    .zw-hero-actions { justify-content: center; }
    
    .zw-sovereignty-banner { flex-direction: column; text-align: center; }
    .zw-sovereignty-visual { text-align: center; }
    
    .zw-partner-grid { grid-template-columns: 1fr; }
    .zw-col-span-full { grid-column: auto; }
}

@media (max-width: 768px) {
    .zw-grid-3 { grid-template-columns: 1fr; }
    .zw-section { padding: 60px 0; }
    
    .zw-hero h1 { font-size: 2.8rem; }
    
    .zw-pricing-grid { grid-template-columns: 1fr; }
    .zw-pricing-card { min-height: auto; }
    .zw-pricing-controls { flex-direction: column; gap: 1.5rem; }
    .zw-security-grid { grid-template-columns: 1fr; }
    
    .zw-partner-card { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 576px) {
    .zw-page-wrapper { margin: 0 15px; } /* Switch 3% to fixed on very small screens to avoid bleed */
    
    .zw-hero h1 { font-size: 2.2rem; }
    .zw-section-header h2 { font-size: 1.8rem; }
    
    .zw-hero-actions { flex-direction: column; width: 100%; }
    .zw-btn { width: 100%; justify-content: center; }
    
    .zw-billing-toggle { flex-direction: column; gap: 10px;  border-radius: 5px;}
}