/* ==========================================================================
   Wepido Modern 4-Plan Pricing Table - UI/UX Best Practices
   ========================================================================== */

:root {
    --wep-company: #0284c7;
    --wep-company-dark: #0369a1;
    --wep-company-bg: #f0f9ff;
    --wep-shop: #6366f1;
    --wep-shop-dark: #4f46e5;
    --wep-shop-bg: #eef2ff;
    --wep-border: #e2e8f0;
    --wep-radius-card: 20px;
}

.wepido-plans-section {
    position: relative;
    padding: 3.5rem 0 5rem;
}

.wepido-plans-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.wepido-plans-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 1rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.wepido-plans-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.wepido-plans-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.wepido-plans-demos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.wepido-demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none !important;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569 !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.wepido-demo-btn:hover {
    border-color: #2563eb;
    color: #2563eb !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

/* 4-Column Grid */
.wepido-plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

@media (min-width: 640px) {
    .wepido-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .wepido-plans-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Modern Card */
.wepido-plan-card {
    background: #ffffff;
    border: 1.5px solid var(--wep-border);
    border-radius: var(--wep-radius-card);
    padding: 1.75rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.wepido-plan-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

/* Featured: Company Pro */
.wepido-plan-card--featured-company {
    border: 2px solid var(--wep-company);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
}

.wepido-plan-card--featured-company:hover {
    border-color: var(--wep-company-dark);
    box-shadow: 0 16px 36px rgba(2, 132, 199, 0.2);
}

/* Featured: Shop Pro */
.wepido-plan-card--featured-shop {
    border: 2px solid var(--wep-shop);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

.wepido-plan-card--featured-shop:hover {
    border-color: var(--wep-shop-dark);
    box-shadow: 0 16px 36px rgba(99, 102, 241, 0.2);
}

/* Featured Floating Badges */
.wepido-featured-pill {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 0.73rem;
    font-weight: 800;
    padding: 0.28rem 0.95rem;
    border-radius: 9999px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 10;
}

.wepido-featured-pill--company {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.35);
}

.wepido-featured-pill--shop {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.35);
}

/* Top Bar: Tag & Question Help Button */
.wepido-card-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.wepido-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    width: fit-content;
}

.wepido-card-tag--company {
    background: var(--wep-company-bg);
    color: var(--wep-company);
}

.wepido-card-tag--shop {
    background: var(--wep-shop-bg);
    color: var(--wep-shop);
}

/* Question Mark Help Button */
.wepido-help-trigger {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.wepido-help-trigger:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: scale(1.1);
}

/* Help Popover Box */
.wepido-help-popover {
    position: absolute;
    top: 2.2rem;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 1.15rem 1rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
    z-index: 60;
    display: none;
    text-align: right;
    animation: wepidoFadeIn 0.2s ease;
}

.wepido-help-popover.is-active {
    display: block;
}

@keyframes wepidoFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.wepido-help-popover__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f1f5f9;
}

.wepido-help-popover__title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.wepido-help-popover__close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.2rem;
}

.wepido-help-popover__close:hover {
    color: #0f172a;
}

.wepido-help-popover__text {
    font-size: 0.8rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 0.6rem;
}

.wepido-help-popover__examples {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    font-size: 0.74rem;
    color: #475569;
    line-height: 1.5;
}

.wepido-help-popover__examples strong {
    color: #0f172a;
}

/* Title & Description */
.wepido-card-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.wepido-card-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    min-height: 2.5rem;
    margin-bottom: 1.25rem;
}

/* Price Display */
.wepido-card-price-wrap {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.wepido-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.wepido-card-price__num {
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.02em;
}

.wepido-card-price__num--free {
    color: #059669;
    font-size: 2.1rem;
}

.wepido-card-price__unit {
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
}

.wepido-card-price__note {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.wepido-card-price__discount {
    color: #059669;
    font-weight: 700;
}

/* Feature Rows */
.wepido-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0 0 0.75rem 0;
    padding: 0;
}

.wepido-feature-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.55;
}

.wepido-feature-row i {
    color: #10b981;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.wepido-feature-row--company-pro i {
    color: var(--wep-company);
}

.wepido-feature-row--shop-pro i {
    color: var(--wep-shop);
}

.wepido-feature-row strong {
    color: #0f172a;
    font-weight: 700;
}

/* Expandable Features Accordion */
.wepido-more-features-wrap {
    margin-bottom: 1.5rem;
}

.wepido-more-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease;
    margin: 0;
    padding: 0;
}

.wepido-more-features-list.is-open {
    max-height: 600px;
    opacity: 1;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px dashed #e2e8f0;
}

.wepido-btn-toggle-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    margin-top: 0.25rem;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.wepido-btn-toggle-more:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.wepido-btn-toggle-more i {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
}

.wepido-btn-toggle-more.is-open {
    background: #f8fafc;
    color: #2563eb;
    border-color: #cbd5e1;
}

.wepido-btn-toggle-more.is-open i {
    transform: rotate(180deg);
}

/* CTA Buttons */
.wepido-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none !important;
    transition: all 0.2s ease;
    text-align: center;
    margin-top: auto;
}

.wepido-card-btn--outline {
    background: #ffffff;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1;
}

.wepido-card-btn--outline:hover {
    background: #f8fafc;
    border-color: #0f172a;
    transform: translateY(-1px);
}

.wepido-card-btn--company {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.wepido-card-btn--company:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.wepido-card-btn--shop {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.wepido-card-btn--shop:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

/* Minimal Footer Reassurance Bar */
.wepido-reassurance-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border: 1px solid var(--wep-border);
    border-radius: 9999px;
    max-width: 900px;
    margin: 0 auto 2rem;
    font-size: 0.84rem;
    color: #475569;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.wepido-reassurance-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.wepido-reassurance-item i {
    color: #10b981;
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .wepido-reassurance-bar {
        border-radius: var(--wep-radius-card);
        gap: 1rem;
        justify-content: flex-start;
    }
}
